1 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
5 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
6 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
7 (STACK_CHECK_MOVING_SP): Likewise.
8 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
9 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
10 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
11 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
13 * explow.c (anti_adjust_stack_and_probe): New function.
14 (allocate_dynamic_stack_space): Do not directly allocate space if
15 STACK_CHECK_MOVING_SP, instead invoke above function.
16 (emit_stack_probe): Handle probe_stack insn.
17 (PROBE_INTERVAL): New macro.
18 (STACK_GROW_OPTAB): Likewise.
19 (STACK_GROW_OFF): Likewise.
20 (probe_stack_range): Use Pmode and memory_address consistently. Fix
21 loop condition in the small constant case. Rewrite in the general
22 case to be immune to wraparounds. Make sure the address of probes
23 is valid. Try to use [base + disp] addressing mode if possible.
24 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
25 checking is enabled and STACK_CHECK_MOVING_SP.
26 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
27 return 1 for volatile references to the stack pointer.
28 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
29 __builtin_alloca if stack checking is enabled.
30 * unwind-dw2.c (uw_identify_context): Take into account whether the
31 context is that of a signal frame or not.
32 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
33 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
35 2009-11-03 Jakub Jelinek <jakub@redhat.com>
37 PR rtl-optimization/41917
38 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
39 operand isn't known to be 0, return 1.
41 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
43 * config/mips/mips.md: Fix typos.
45 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
47 * doc/invoke.texi: Fix typo.
49 2009-11-03 Paul Brook <paul@codesourcery.com>
51 * config/arm/neon.ml (vectype): Add T_floatSF.
52 (string_of_vectype): Ditto.
53 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
54 (deftypes): Use float for float32_t.
55 * config/arm/arm_neon.h: Regenerate.
57 2009-11-03 Nick Clifton <nickc@redhat.com>
58 Kevin Buettner <kevinb@redhat.com>
60 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
61 order of expected registers.
62 (rx_load_multiple_vector): Likewise.
63 (rx_rtsd_vector): Likewise.
64 * config/rx/rx.c (rx_cpu_type): New variable.
65 (rx_print_operand): Fix bug printing 64-bit constant values.
66 (rx_emit_stack_pushm): Reverse order of pushed registers.
67 (gen_rx_store_vector): Likewise.
68 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
70 (is_exception_func): Rename to is_interrupt_func and only accept
71 "interrupt" as the attribute name.
72 (rx_get_stack_layout): Use new function name.
73 (rx_func_attr_inlinable): Likewise.
74 (rx_attribute_table): Remove "exception".
75 (rx_expand_prologue): If necessary push the accumulator register
76 in the prologue of interrupt functions.
77 (rx_expand_epilogue): If necessary pop the accumulator.
78 (rx_builtins): Add RX_BUILTIN_MVTIPL.
79 (rx_expand_builtin_stz): Remove.
80 (rx_expand_builtin_mvtipl): New function.
81 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
82 (rx_expand_builtin): Likewise.
83 (rx_enable_fpu): New variable.
84 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
85 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
86 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
87 (enum rx_cpu_types): Define.
88 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
89 (INCOMING_FRAME_SP_OFFSET): Define.
90 (ARG_POINTER_CFA_OFFSET): Define.
91 (FRAME_POINTER_CFA_OFFSET): Define.
92 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
93 (ALLOW_RX_FPU_INSNS): Define.
94 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
95 fast_math_flags_set_p.
96 (UNSPEC_BUILTIN_MVTIPL): Define.
97 (revl): Rename to bswapsi2.
98 (bswaphi2): New pattern.
99 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
102 (mvtc): Remove clobber of cc0.
105 * config/rx/rx.opt (mieee): Remove.
110 (msave-acc-in-interrupts): Add.
111 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
112 (MULTILIB_DIRS): Likewise.
113 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
114 * doc/extend.texi: Remove description of "exception" function
116 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
117 -msave-acc-in-interrupts options.
119 2009-11-03 Richard Guenther <rguenther@suse.de>
121 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
123 2009-11-03 Dodji Seketeli <dodji@redhat.com>
126 * c-common.c (fold_offsetof_1): Issue errors when the member designator
127 of the offsetoff expression is not legitimate.
129 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
131 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
132 names instead of numerical constants.
133 (sse_prologue_save): Ditto.
134 (*sse_prologue_save_insn): Ditto.
136 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
139 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
140 (TARGET_CALL_ESP): New define.
141 * config/i386/i386.c (initial_ix86_tune_features): Initialize
143 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
144 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
145 *call_1, *call_value_pop_1 and *call_value_1. Depend on
147 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
148 New patterns, use "lsm" as operand 1 constraint.
149 * config/i386/predicates.md (call_insn_operand): Depend on
150 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
152 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
154 PR tree-optimization/41857
155 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
156 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
158 * tree-ssa-address.c (move_hint_to_base): New function.
159 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
160 address space associated with TYPE.
161 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
162 most_expensive_mult_to_index. Call move_hint_to_base.
163 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
164 TYPE to addr_to_parts.
166 2009-11-02 Martin Jambor <mjambor@suse.cz>
168 PR tree-optimization/41750
169 * tree-sra.c (analyze_modified_params): Loop over all
170 representatives of components of a parameter.
172 2009-11-02 Jakub Jelinek <jakub@redhat.com>
174 PR tree-optimization/41841
175 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
176 local variables of not yet materialized clones.
179 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
180 for a VOIDmode variable.
183 * c-pragma.c (visstack): Change into vector of ints rather than
184 enum symbol_visibility.
185 (push_visibility): Add kind argument, push default_visibility together
187 (pop_visibility): Add kind argument, return true if successful, fail
188 if visibility stack is empty or if stack top is of different kind.
189 (handle_pragma_visibility): Don't check length of visstack, instead
190 call pop_visibility and issue diagnostics if it failed. Pass 0
191 as last argument to push_visibility and pop_visibility.
192 * c-pragma.h (push_visibility): Add kind argument.
193 (pop_visibility): Likewise. Return bool instead of void.
195 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
197 * tree.def (TARGET_MEM_REF): Update comment.
198 * alias.c (get_alias_set): Retrieve the original memory reference for
199 a TARGET_MEM_REF before proceeding.
201 2009-10-31 Anatoly Sokolov <aesok@post.ru>
203 * config/frv/frv.c (frv_function_value, frv_libcall_value,
204 frv_function_value_regno_p): New functions.
205 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
206 * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
207 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
208 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
210 2009-10-31 Anatoly Sokolov <aesok@post.ru>
212 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
213 new 'outgoing' argument.
214 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
215 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
216 * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
217 LIBCALL_VALUE): Remove.
218 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
219 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
220 (mh10300_function_value_regno_p): Declare.
222 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
224 * config/arm/cortex-a9.md: New - integer pipeline description.
226 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
228 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
229 aborting if the sizes of the two references don't match.
231 2009-10-31 Toon Moene <toon@moene.org>
233 * ipa-inline.c (cgraph_decide_inlining):
234 Include reason for not inlining called-once functions in dump file.
236 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
238 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
239 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
240 (LINK_SPEC): BE_LINK_SPEC added.
242 2009-10-30 Richard Guenther <rguenther@suse.de>
245 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
247 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
249 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
250 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
253 2009-10-30 Martin Jambor <mjambor@suse.cz>
255 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
257 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
260 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
261 first. Move assert on stack_alignment_estimated just before
262 setting stack_realign_needed.
263 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
264 Don't call update_stack_boundary.
266 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
267 (verride_options): Don't check ix86_force_align_arg_pointer here.
268 (ix86_function_ok_for_sibcall): Use it.
269 (ix86_update_stack_boundary): Likewise.
271 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
273 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
275 * arm.md (QHSI): New mode iterator.
276 (movqi): If generating for thumb, then truncate any immediate to
278 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
280 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
283 2009-10-29 Cary Coutant <ccoutant@google.com>
286 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
287 locations in the source).
288 (store_vcall_insn): New function.
289 (lookup_vcall_insn): New function.
290 (dwarf2out_virtual_call_token): Use store_vcall_insn.
291 (dwarf2out_copy_call_info): New function.
292 (dwarf2out_virtual_call): Use lookup_vcall_insn.
293 * emit-rtl.c (try_split): Call copy_call_info debug hook.
294 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
295 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
296 (debug_nothing_rtx_rtx): New dummy hook.
297 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
298 (xcoff_debug_hooks): Likewise.
299 * sdbout.c (sdb_debug_hooks): Likewise.
300 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
302 2009-10-29 David Daney <ddaney@caviumnetworks.com>
304 * doc/invoke.texi (mmcount-ra-address): Document new command line
306 * config/mips/mips.opt (mmcount-ra-address): New option.
307 * config/mips/mips-protos.h (mips_function_profiler): Declare new
309 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
311 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
312 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
314 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
315 mips_function_profiler.
317 2009-10-29 Steve Ellcey <sje@cup.hp.com>
321 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
322 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
323 * optc-gen.awk (cl_target_option_restore): Include call to
324 targetm.override_options_after_change.
325 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
326 * target.h (override_options_after_change): New.
327 * c-common.c (parse_optimize_options): Call
328 targetm.override_options_after_change.
329 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
330 (ia64_override_options_after_change): New.
331 (ia64_override_options) Add call to above.
333 2009-10-29 Michael Matz <matz@suse.de>
335 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
336 (gate_convert_to_rsqrt): Ditto.
337 (pass_convert_to_rsqrt): Ditto.
338 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
339 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
342 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
344 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
346 * config/arm/arm.c (find_best_start): Fix type of remainder to be
349 2009-10-29 Martin Jambor <mjambor@suse.cz>
351 PR tree-optimization/41775
352 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
353 (generate_subtree_copies): Do not unshare agg.
354 (load_assign_lhs_subreplacements): Do not unshare rhs.
355 (sra_modify_assign): Do not unshare exprs.
356 (propagate_subacesses_accross_link): Renamed to
357 propagate_subaccesses_across_link.
359 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
361 * arm.c (count_insns_for_constant): Rework to support counting for
362 thumb2 immediates as well.
363 (find_best_start): Split out from arm_gen_constant.
364 (arm_gen_constant): Rework to support XOR with immediate.
366 2009-10-29 Chao-ying Fu <fu@mips.com>
368 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
370 (mips_expand_synci_loop): Use the length rtx to control the
371 synci loop from the begin rtx that points to the first byte of
374 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
376 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
378 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
380 * dbxout.c (dbxout_common_check): Accept non public trees.
381 * dwarf2out.c (fortran_common): Accept non public trees.
383 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
385 * common.opt (fuse-linker-plugin): New option.
386 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
388 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
390 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
392 PR rtl-optimization/39715
393 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
394 (gen_cstoresi_ltu_thumb1): New splitter.
396 2009-10-28 Richard Guenther <rguenther@suse.de>
400 * tree-ssa.c (useless_type_conversion_p): Do not treat
401 conversions to pointers to incomplete types as useless.
402 * gimple.c (gimple_types_compatible_p): Compare struct tags,
405 2009-10-28 Jakub Jelinek <jakub@redhat.com>
407 * var-tracking.c (emit_note_insn_var_location): Don't call the second
408 vt_expand_loc unnecessarily when location is not a register nor
412 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
413 fields don't have DECL_NAME.
416 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
417 call convert_memory_address on addr.
420 * config/i386/i386.c (ix86_pic_register_p): Don't call
421 rtx_equal_for_cselib_p for VALUEs discarded as useless.
423 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
425 * var-tracking.c (emit_note_insn_var_location): Get the mode of
426 a variable part from its REG, MEM or VALUE.
428 2009-10-28 Richard Guenther <rguenther@suse.de>
430 * gimple.c (gimple_get_alias_set): Fix comment typo.
432 2009-10-28 Richard Guenther <rguenther@suse.de>
434 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
435 (free_lang_data): Unconditionally compute alias sets for all
436 standard integer types. Bail out if gate bailed out previously.
437 Do not reset the types_compatible_p langhook.
438 (gate_free_lang_data): Remove.
439 (struct pass_ipa_free_lang_data): Enable unconditionally.
440 * gimple.c (gimple_get_alias_set): Use the same alias-set for
443 2009-10-28 Richard Guenther <rguenther@suse.de>
446 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
447 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
448 (call_may_clobber_ref_p_1): Likewise.
449 * tree-ssa-structalias.c (find_func_aliases): Likewise.
450 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
452 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
454 PR rtl-optimization/41812
457 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
459 * df-problems.c (df_md_scratch): New.
460 (df_md_alloc, df_md_free): Allocate/free it.
461 (df_md_local_compute): Only include live registers in init.
462 (df_md_transfer_function): Prune the in-set computed by
463 the confluence function, and the gen-set too.
465 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
467 PR rtl-optimization/39715
468 * combine.c (simplify_comparison): Use extensions to
469 widen comparisons. Try an ANDing first.
471 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
473 PR rtl-optimization/40741
474 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
475 a small constant is cheap.
476 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
477 force_reg on the LHS.
478 (xorsi3): Likewise, and split the XOR if the constant is complex
479 and not in Thumb mode.
481 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
483 * expmed.c (emit_store_flag): Check costs before
484 transforming to the opposite representation.
486 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
488 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
489 cstore result to DImode.
491 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
493 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
494 inside the unspec vector.
496 2009-10-27 Richard Henderson <rth@redhat.com>
498 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
500 2009-10-27 Richard Henderson <rth@redhat.com>
503 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
504 eh_region_may_contain_throw; update users.
505 (eh_region_may_contain_throw): New function.
506 (lower_catch): Check flag_exceptions before creating exception region.
507 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
508 (lower_cleanup): Tidy existing flag_exceptions check to match.
510 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
513 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
514 * config/i386/mingw.opt: Add fset-stack-executable.
515 * config/i386/i386.c (ix86_trampoline_init): Make call to
516 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
517 defined and its value is not zero.
520 2009-10-27 Richard Guenther <rguenther@suse.de>
522 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
523 handle calls to externally visible functions like in regular mode.
524 (create_variable_info_for): Do not create function infos here.
525 (have_alias_info): Remove write-only variable.
526 (solve_constraints): New function split out from common code
527 in compute_points_to_sets and ipa_pta_execute.
528 (compute_points_to_sets): Adjust.
529 (ipa_pta_execute): Likewise. Handle clones and externally visible
530 functions like in non-IPA mode.
532 2009-10-27 Jakub Jelinek <jakub@redhat.com>
535 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
538 2009-10-27 Richard Guenther <rguenther@suse.de>
540 * tree-complex.c (expand_complex_div_wide): Check for
541 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
543 2009-10-27 Revital Eres <eres@il.ibm.com>
545 PR tree-optimization/40648
546 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
547 Change decision of when to peel for alignment.
549 2009-10-27 Richard Guenther <rguenther@suse.de>
552 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
554 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
557 * fold-const.c (fold_binary_loc): Do not call
558 protected_set_expr_location.
560 2009-10-27 Wei Guozhi <carrot@google.com>
563 * target.h (have_conditional_execution): Add a new target hook
565 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
566 * targhooks.h (default_have_conditional_execution): Likewise.
567 * targhooks.c (default_have_conditional_execution): Likewise.
568 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
569 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
570 (arm_have_conditional_execution): New function.
571 * ifcvt.c (noce_process_if_block, find_if_header,
572 cond_exec_find_if_block, dead_or_predicable): Change the usage of
573 macro HAVE_conditional_execution to a target hook call.
574 * recog.c (peephole2_optimize): Likewise.
575 * sched-rgn.c (add_branch_dependences): Likewise.
576 * final.c (asm_insn_count, final_scan_insn): Likewise.
577 * bb-reorder.c (HAVE_conditional_execution): Remove it.
579 2009-10-26 Ben Elliston <bje@au.ibm.com>
580 Michael Meissner <meissner@linux.vnet.ibm.com>
581 Ulrich Weigand <uweigand@de.ibm.com>
583 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
584 * config/spu/spu_cache.h: New file.
586 * config/spu/cachemgr.c: New file.
587 * config/spu/cache.S: New file.
589 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
590 (ADDR_SPACE_EA): Define.
591 (TARGET_ADDR_SPACE_KEYWORDS): Define.
592 * config/spu/spu.c (EAmode): New macro.
593 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
594 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
595 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
596 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
597 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
598 (TARGET_ADDR_SPACE_CONVERT): Likewise.
599 (TARGET_ASM_SELECT_SECTION): Likewise.
600 (TARGET_ASM_UNIQUE_SECTION): Likewise.
601 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
602 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
603 (ea_symbol_ref): New function.
604 (spu_legitimate_constant_p): Handle __ea qualified addresses.
605 (spu_addr_space_legitimate_address_p): New function.
606 (spu_addr_space_legitimize_address): Likewise.
607 (cache_fetch): New global.
608 (cache_fetch_dirty): Likewise.
609 (ea_alias_set): Likewise.
610 (ea_load_store): New function.
611 (ea_load_store_inline): Likewise.
612 (expand_ea_mem): Likewise.
613 (spu_expand_mov): Handle __ea qualified memory references.
614 (spu_addr_space_pointer_mode): New function.
615 (spu_addr_space_address_mode): Likewise.
616 (spu_addr_space_subset_p): Likewise.
617 (spu_addr_space_convert): Likewise.
618 (spu_section_type_flags): Handle "._ea" section.
619 (spu_select_section): New function.
620 (spu_unique_section): Likewise.
621 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
622 and __EA64__ predefined macros.
623 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
624 -matomic-updates switches.
626 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
627 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
628 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
629 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
630 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
631 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
632 $(T)cache128k.o): Likewise.
633 ($(T)libgcc_%.a): Likewise.
635 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
636 * config/spu/spu.opt (-mea32/-mea64): Add switches.
637 (-maddress-space-conversion): Likewise.
638 (-mcache-size=): Likewise.
639 (-matomic-updates): Likewise.
640 * doc/invoke.texi (-mea32/-mea64): Document.
641 (-maddress-space-conversion): Likewise.
642 (-mcache-size=): Likewise.
643 (-matomic-updates): Likewise.
645 2009-10-26 Ben Elliston <bje@au.ibm.com>
646 Michael Meissner <meissner@linux.vnet.ibm.com>
647 Ulrich Weigand <uweigand@de.ibm.com>
649 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
651 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
652 defined, add the named address space keywords.
653 (c_addr_space_name): New function.
654 (complete_array_type): Preserve named address space.
655 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
656 instead of targetm.valid_pointer_mode.
658 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
659 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
660 (ADDR_SPACE_KEYWORD): New macro.
661 (c_addr_space_name): Add prototype.
663 * c-tree.h (struct c_declspecs): Add address_space member.
664 (declspecs_add_addrspace): Add prototype.
666 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
668 * c-parser.c (c_parse_init): Add assertion.
669 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
670 (c_lex_one_token): Handle address space keywords.
671 (c_token_starts_typename): Likewise.
672 (c_token_starts_declspecs): Likewise.
673 (c_parser_declspecs): Likewise.
674 (c_parser_postfix_expression_after_paren_type): Diagnose compound
675 literal within function qualified with named address space.
677 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
678 address space qualifiers.
679 (shadow_tag_warned): Warn about useless address space qualifiers.
680 (quals_from_declspecs): Handle address space qualifiers.
681 (grokdeclarator): Likewise.
682 (build_null_declspecs): Likewise.
683 (declspecs_add_addrspace): New function.
685 * c-typeck.c (addr_space_superset): New function.
686 (qualify_type): Handle named address spaces.
687 (composite_type): Likewise.
688 (common_pointer_type): Likewise.
689 (comp_target_types): Likewise.
690 (build_conditional_expr): Likewise.
691 (handle_warn_cast_qual): Likewise.
692 (build_c_cast): Likewise.
693 (convert_for_assignment): Likewise.
694 (build_binary_op): Likewise.
695 (pointer_diff): Handle named address spaces. Use intermediate
696 integer type of sufficient size if required.
698 2009-10-26 Ben Elliston <bje@au.ibm.com>
699 Michael Meissner <meissner@linux.vnet.ibm.com>
700 Ulrich Weigand <uweigand@de.ibm.com>
702 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
703 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
704 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
706 * target.h (struct target_def): Add pointer_mode, address_mode,
707 and valid_pointer_mode to addr_space substructure.
708 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
709 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
710 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
711 (TARGET_ADDR_SPACE_HOOKS): Add them.
712 * targhooks.c (target_default_pointer_address_modes_p): New function.
713 * target.h (target_default_pointer_address_modes_p): Add prototype.
714 * targhooks.c (default_addr_space_pointer_mode): New function.
715 (default_addr_space_address_mode): Likewise.
716 (default_addr_space_valid_pointer_mode): Likewise.
717 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
718 (default_addr_space_address_mode): Likewise.
719 (default_addr_space_valid_pointer_mode): Likewise.
720 * output.h (default_valid_pointer_mode): Move to ...
721 * targhooks.h (default_valid_pointer_mode): ... here.
722 * varasm.c (default_valid_pointer_mode): Move to ...
723 * targhooks.c (default_valid_pointer_mode): ... here.
725 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
726 instead of targetm.valid_pointer_mode.
728 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
729 * tree.c (integer_pow2p): Likewise.
730 (tree_log2): Likewise.
731 (tree_floor_log2): Likewise.
732 (signed_or_unsigned_type_for): Support pointer type of different size.
733 (int_or_pointer_precision): New function.
734 * tree.h (int_or_pointer_precision): Add prototype.
735 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
736 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
737 incoming pointer type instead of POINTER_SIZE.
739 * tree.c (build_pointer_type): Use appropriate pointer mode
741 (build_reference_type): Likewise.
742 * expr.c (store_expr): Likewise.
743 (expand_expr_addr_expr): Likewise.
744 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
745 * cfgexpand.c (expand_debug_expr): Likewise.
747 * auto-inc-dec.c: Include "target.h".
748 (try_merge): Use appropriate address mode instead of Pmode.
749 (find_inc): Likewise.
750 * combine.c (find_split_point): Likewise.
751 * cselib.c (cselib_record_sets): Likewise.
752 * dse.c (replace_inc_dec): Likewise.
753 (canon_address): Likewise.
754 * var-tracking.c (replace_expr_with_values): Likewise.
755 (count_uses): Likewise.
756 (add_uses): Likewise.
757 (add_stores): Likewise.
758 * emit-rtl.c: Include "target.h".
759 (adjust_address_1): Use appropriate address mode instead of Pmode.
760 (offset_address): Likewise.
761 * explow.c (break_out_memory_refs): Likewise.
762 (memory_address_addr_space): Likewise.
763 (promote_mode): Likewise.
764 * expr.c (move_by_pieces): Likewise.
765 (emit_block_move_via_loop): Likewise.
766 (store_by_pieces): Likewise.
767 (store_by_pieces_1): Likewise.
768 (expand_assignment): Likewise.
769 (store_constructor): Likewise.
770 (expand_expr_addr_expr): Likewise.
771 (expand_expr_real_1): Likewise.
772 * cfgexpand.c (expand_debug_expr): Likewise.
773 * ifcvt.c (noce_try_cmove_arith): Likewise.
774 * regcprop.c (kill_autoinc_value): Likewise.
775 * regmove.c (try_auto_increment): Likewise.
776 * reload.c (find_reloads): Likewise.
777 (find_reloads_address): Likewise.
778 (find_reloads_address_1): Likewise.
779 * sched-deps.c: Include "target.h".
780 (sched_analyze_1): Use appropriate address mode instead of Pmode.
781 (sched_analyze_2): Likewise.
782 * sel-sched-dump.c: Include "target.h".
783 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
784 * stor-layout.c (layout_type): Likewise.
785 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
786 (multiplier_allowed_in_address_p): Likewise.
787 (get_address_cost): Likewise.
788 * varasm.c (make_decl_rtl): Likewise.
790 * expr.c (expand_assignment): Always convert offsets to appropriate
792 (store_expr): Likewise.
793 (store_constructor): Likewise.
794 (expand_expr_real_1): Likewise.
796 * reload.h (form_sum): Add MODE argument.
797 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
798 Update recursive calls.
799 (subst_indexed_address): Update calls to form_sum.
801 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
802 * tree-ssa-address.c: Include "target.h".
803 (templates): Replace by ...
804 (mem_addr_template_list): ... this new vector.
805 (TEMPL_IDX): Handle address space numbers.
806 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
807 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
808 instead of global cache. Update call to gen_addr_rtx.
809 (valid_mem_ref_p): Update call to addr_for_mem_ref.
810 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
812 * rtl.h (convert_memory_address_addr_space): Add prototype.
813 (convert_memory_address): Define as macro.
814 * explow.c (convert_memory_address): Rename to ...
815 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
816 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
817 Update recursive calls.
818 (memory_address_addr_space): Call convert_memory_address_addr_space.
819 * expmed.c (make_tree): Likewise.
820 * expr.c (expand_assignment): Likewise.
821 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
822 (expand_expr_addr_expr): Likewise. Also, update call.
824 * alias.c (find_base_value): Guard pointer size optimizations.
825 (find_base_term): Likewise.
826 * rtlanal.c (nonzero_bits1): Likewise.
827 (num_sign_bit_copies1): Likewise.
828 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
830 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
831 (emit-rtl.o): Likewise.
832 (auto-inc-dec.o): Likewise.
833 (sched-deps.o): Likewise.
835 2009-10-26 Ben Elliston <bje@au.ibm.com>
836 Michael Meissner <meissner@linux.vnet.ibm.com>
837 Ulrich Weigand <uweigand@de.ibm.com>
839 * doc/extend.texi (Named Address Spaces): New section.
840 * coretypes.h (addr_space_t): New type.
841 (ADDR_SPACE_GENERIC): New define.
842 (ADDR_SPACE_GENERIC_P): New macro.
844 * doc/tm.texi (Named Address Spaces): New section.
845 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
846 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
847 (TARGET_ADDR_SPACE_SUBSET_P): Document.
848 (TARGET_ADDR_SPACE_CONVERT): Document.
849 * target.h (struct gcc_target): Add addr_space substructure.
850 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
851 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
852 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
853 (TARGET_ADDR_SPACE_CONVERT): Likewise.
854 (TARGET_ADDR_SPACE_HOOKS): Likewise.
855 (TARGET_INITIALIZER): Initialize addr_space hooks.
856 * targhooks.c (default_addr_space_legitimate_address_p): New function.
857 (default_addr_space_legitimize_address): Likewise.
858 (default_addr_space_subset_p): Likewise.
859 (default_addr_space_convert): Likewise.
860 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
861 (default_addr_space_legitimize_address): Likewise.
862 (default_addr_space_subset_p): Likewise.
863 (default_addr_space_convert): Likewise.
865 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
866 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
867 (MEM_ADDR_SPACE): New macro.
868 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
869 address space memory attribute.
870 (mem_attrs_htab_hash): Handle address space memory attribute.
871 (mem_attrs_htab_eq): Likewise.
872 (set_mem_attributes_minus_bitpos): Likewise.
873 (set_mem_alias_set): Likewise.
874 (set_mem_align): Likewise.
875 (set_mem_expr): Likewise.
876 (set_mem_offset): Likewise.
877 (set_mem_size): Likewise.
878 (adjust_address_1): Likewise.
879 (offset_address): Likewise.
880 (widen_memoy_address): Likewise.
881 (get_spill_slot_decl): Likewise.
882 (set_mem_attrs_for_spill): Likewise.
883 (set_mem_addr_space): New function.
884 * emit-rtl.h (set_mem_addr_space): Add prototype.
885 * print-rtl.c (print_rtx): Print address space memory attribute.
886 * expr.c (expand_assignment): Set address space memory attribute
887 of generated MEM RTXes as appropriate.
888 (expand_expr_real_1): Likewise.
889 * cfgexpand.c (expand_debug_expr): Likewise.
890 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
892 * tree.h (struct tree_base): Add address_space bitfield. Reduce
893 size of "spare" bitfield.
894 (TYPE_ADDR_SPACE): New macro.
895 (ENCODE_QUAL_ADDR_SPACE): Likewise.
896 (DECODE_QUAL_ADDR_SPACE): Likewise.
897 (CLEAR_QUAL_ADDR_SPACE): Likewise.
898 (KEEP_QUAL_ADDR_SPACE): Likewise.
899 (TYPE_QUALS): Encode type address space.
900 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
901 * tree.c (set_type_quals): Set type address space.
902 (build_array_type): Inherit array address space from element type.
903 * print-tree.c (print_node_brief): Print type address space.
904 (print_node): Likewise.
905 * tree-pretty-print.c (dump_generic_node): Likewise.
907 * explow.c (memory_address): Rename to ...
908 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
909 Use address-space aware variants of memory address routines.
910 * recog.c (memory_address_p): Rename to ...
911 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
912 Use address-space aware variants of memory address routines.
913 (offsettable_address_p): Rename to ...
914 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
915 Use address-space aware variants of memory address routines.
916 * reload.c (strict_memory_address_p): Rename to ...
917 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
918 Use address-space aware variants of memory address routines.
919 (maybe_memory_address_p): Rename to ...
920 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
921 Use address-space aware variants of memory address routines.
922 * expr.h (memory_address_addr_space): Add prototype.
923 (memory_address): Define as macro.
924 * recog.h (memory_address_addr_space_p): Add prototype.
925 (memory_address_p): Define as macro.
926 (offsettable_address_addr_space_p): Add prototype.
927 (offsettable_address_p): Define as macro.
928 (strict_memory_address_addr_space_p): Add prototype.
929 (strict_memory_address_p): Define as macro.
931 * combine.c (find_split_point): Use address-space aware variants
932 of memory address routines.
933 * emit-rtl.c (operand_subword): Likewise.
934 (change_address_1): Likewise.
935 (adjust_address_1): Likewise.
936 (offset_address): Likewise.
937 * expr.c (emit_move_insn): Likewise.
938 (expand_assignment): Likewise.
939 (expand_expr_real_1): Likewise.
940 * recog.c (verify_changes): Likewise.
941 (general_operand): Likewise.
942 (offsettable_memref_p): Likewise.
943 (offsettable_nonstrict_memref_p): Likewise.
944 (constrain_operands): Likewise.
945 * reload.c (get_secondary_mem): Likewise.
946 (find_reloads_toplev): Likewise.
947 (find_reloads_address): Likewise.
948 (find_reloads_subreg_address): Likewise.
949 * reload1.c (reload): Likewise.
950 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
951 * rtl.h (address_cost): Add ADDRSPACE argument.
952 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
953 aware variant of memory address routines.
954 * loop-invariant.c (create_new_invariant): Update address_cost call.
955 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
956 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
957 Use address-space aware variant of memory address routines.
958 (propagate_rtx_1): Update call to should_replace_address.
959 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
961 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
962 ADDRSPACE argument. Use per-address-space instead of global cache.
963 Use address-space aware variant of memory address routines.
964 (get_address_cost): Likewise.
965 (get_computation_cost_at): Update calls.
966 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
967 Use address-space aware variant of memory address routines.
968 (create_mem_ref_raw): Update call to valid_mem_ref_p.
969 (most_expensive_mult_to_index): Update call to
970 multiplier_allowed_in_address_p.
972 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
973 attribute to indicate named address spaces.
975 * varasm.c (get_variable_section): DECLs in named address spaces
978 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
979 for addresses in a non-generic address space.
981 * expr.c (emit_block_move_hints): Do not use libcalls for
982 memory in non-generic address spaces.
983 (clear_storage_hints): Likewise.
984 (expand_assignment): Likewise.
986 * fold-const.c (operand_equal_p): Expressions refering to different
987 address spaces are not equivalent.
989 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
990 spaces are not equivalent.
991 (rtx_equal_p): Likewise.
992 * cse.c (exp_equiv_p): Likewise.
993 * jump.c (rtx_renumbered_equal_p): Likewise.
994 * reload.c (operands_match_p): Likewise.
996 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
997 address spaces may alias.
998 (true_dependence): Likewise.
999 (canon_true_dependence): Likewise.
1000 (write_dependence_p): Likewise.
1002 * dse.c (canon_address): Handle named address spaces.
1003 * ifcvt.c (noce_try_cmove_arith): Likewise.
1005 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
1006 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
1007 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
1008 to handle conversions between different address spaces.
1009 * fold-const.c (fold_convert_loc): Likewise.
1010 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
1011 * tree-pretty-print.c (dump_generic_node): Likewise.
1012 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
1013 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
1014 * tree-inline.c (estimate_operator_cost): Likewise.
1015 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
1016 to different address spaces are not useless.
1018 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1021 * cfgcleanup.c (trivially_empty_bb_p): New function.
1022 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
1025 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
1026 add_name_and_src_coords_attributes, gen_namespace_die,
1027 dwarf2out_set_name): Handle dwarf2_name returning NULL.
1029 2009-10-26 Nick Clifton <nickc@redhat.com>
1031 * config.gcc: Add support for RX target.
1032 * config/rx: New directory.
1033 * config/rx/constraints.md: New file.
1034 * config/rx/predicates.md: New file.
1035 * config/rx/rx.c: New file.
1036 * config/rx/rx.h: New file.
1037 * config/rx/rx.md: New file.
1038 * config/rx/rx.opt: New file.
1039 * config/rx/rx-protos.h: New file.
1040 * config/rx/t-rx: New file.
1041 * doc/extend.texi: Document RX function attributes.
1042 * doc/invoke.texi: Document RX specific command line options.
1043 * doc/contrib.texi: Document RX contribution.
1044 * doc/md.texi: Document RX constraints.
1045 * doc/install.texi: Document RX support.
1047 2009-10-26 Michael Matz <matz@suse.de>
1049 PR tree-optimization/41783
1050 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
1051 case for simple diamonds.
1052 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
1053 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
1054 argument, use alias oracle to skip some vdefs.
1055 (phi_translate_1): Change call to above, don't allocate new
1056 value ids if they can stay the same.
1057 (compute_avail): Allow vuse walking when looking up references.
1059 2009-10-26 Richard Guenther <rguenther@suse.de>
1061 PR tree-optimization/41826
1062 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
1063 access to re-allocated vector fields.
1065 2009-10-26 Richard Guenther <rguenther@suse.de>
1067 * graphite-sese-to-poly.c (check_poly_representation): Fix
1068 compile without checking.
1070 2009-10-26 Janus Weil <janus@gcc.gnu.org>
1073 * gimple.h (tree_annotate_all_with_location): Remove prototype.
1074 * gimplify.c (tree_should_carry_location_p,
1075 tree_annotate_one_with_location,tree_annotate_all_with_location):
1076 Remove obsolete functions.
1078 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
1081 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
1083 2009-10-25 Richard Guenther <rguenther@suse.de>
1085 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1086 Stream DECL_RESTRICTED_P.
1087 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1089 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
1091 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
1092 a note when expanding to nothing.
1094 2009-10-25 Richard Guenther <rguenther@suse.de>
1097 * tree.c (find_decls_types_r): Deal with Java overloading
1098 BINFO_VIRTUALS for its own purpose.
1100 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
1102 * config/mips/predicates.md (hilo_operand): New predicate.
1103 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
1104 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
1105 splitter part from here ...:
1106 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
1107 op0 and op4 to match the DINS case.
1108 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
1110 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1113 * avr.md (QIDI): Add new mode iterator.
1114 (sbrx_branch<mode>): Create new zero extract bit, test and jump
1115 patterns for all QI thru DI modes combinations.
1116 (sbrx_and_branch<mode>): Create new and based bit test and jump
1117 patterns for QI thru SI modes.
1118 avr.c (avr_out_sbxx_branch): Use only bit number.
1120 2009-10-24 Jan Hubicka <jh@suse.cz>
1122 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1124 (analyze_function): When analyzing noreturn nothrow call, do not
1125 compute written stats; free bitmaps of vars early if possible.
1126 (generate_summary): Only update bitmaps if computed.
1127 (propagate): Only dump bitmaps if computed.
1128 (ipa_reference_read_summary): Fix pasto.
1130 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1132 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1133 (aliasing_component_refs_p): ...this. Return true if there is no
1134 common base and the base access types have the same alias set.
1135 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1136 (indirect_refs_may_alias_p): Likewise.
1138 2009-10-23 Joseph Myers <joseph@codesourcery.com>
1141 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1142 a C_MAYBE_CONST_EXPR.
1144 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1147 * config/rs6000/rs6000.c (struct machine_function): Add
1148 vsx_or_altivec_used_p to record if vector types are used.
1149 (rs6000_expand_to_rtl_hook): Rename from
1150 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
1151 any vector operations, so if there are, we can set VRSAVE to
1152 non-zero when only floating point vector registers are used.
1153 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1154 (rs6000_check_vector_mode): Inner function to check if vector
1155 types are used in the code.
1156 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1157 vector instructions are used.
1159 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1160 Indicate that VSX registers which overlap floating point
1161 registers, can't be used across a call, since the ABI only states
1162 the scalar part of the register will be saved and restored.
1164 2009-10-23 Joseph Myers <joseph@codesourcery.com>
1167 * alias.c (get_alias_set): Call langhook before returning 0 for
1168 types with structural equality.
1169 * c-common.c (c_common_get_alias_set): Use alias set of element
1170 type for arrays with structural comparison.
1172 2009-10-23 Richard Guenther <rguenther@suse.de>
1175 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1176 gimple_call_nothrow_p.
1178 2009-10-23 Richard Guenther <rguenther@suse.de>
1180 PR tree-optimization/41778
1181 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1182 redundancy along a path in the CFG we want to optimize for speed
1183 is going to be removed.
1184 (execute_pre): Do partial-PRE only if the function is to be
1185 optimized for speed.
1186 (gate_pre): Do not turn off all of PRE when not optimizing a
1189 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1191 * builtins.c (fold_builtin_cabs): Use validate_arg().
1192 (fold_builtin_cexp): Fix if-logic.
1193 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1195 2009-10-22 Jeff Law <law@redhat.com>
1197 * ira-lives.c (process_single_reg_class_operands): Update the
1198 hard reg costs for all the hard registers desired by the
1199 single reg class operand.
1201 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1203 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1204 for rtxes that aren't handled specially.
1206 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1208 * rtl.h (shallow_copy_rtvec): Declare.
1209 * rtl.c (shallow_copy_rtvec): New function.
1210 * cselib.c (cselib_subst_to_values): Use it. Only modify an
1211 rtx field if the subrtx has changed.
1213 2009-10-22 Anatoly Sokolov <aesok@post.ru>
1215 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1216 (m32c_function_value): Make static, add new 'outgoing' argument.
1217 (m32c_libcall_value): Make static, add new 'fun' argument.
1218 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1219 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1220 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1221 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1222 (m32c_function_value, m32c_libcall_value): Delete declaration.
1224 2009-10-22 Diego Novillo <dnovillo@google.com>
1226 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1228 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1230 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1233 2009-10-22 Richard Guenther <rguenther@suse.de>
1235 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1236 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1237 (lto_symtab_merge): Do not merge cgraph nodes here.
1238 (lto_symtab_resolve_can_prevail_p): Simplify.
1239 (lto_symtab_resolve_symbols): Store cgraph node.
1240 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
1241 functions from the symtab.
1242 (lto_symtab_merge_cgraph_nodes_1): New function.
1243 (lto_symtab_merge_cgraph_nodes): Likewise.
1245 2009-10-22 Richard Guenther <rguenther@suse.de>
1248 * lto-streamer-out.c (lto_output_location): Stream the
1250 * lto-streamer-in.c (lto_input_location): Likewise.
1252 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1254 * cfgloopmanip.c (duplicate_subloops): Export.
1255 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1256 (transform_to_exit_first_loop): Duplicate bbs starting from
1257 header up to loop->latch instead of exit->src.
1258 Initialize control variable to the correct number of iterations.
1259 (gather_scalar_reductions): Do not register double reductions.
1260 (parallelize_loops): Dump which loop is tested.
1261 Indicate whether the parallelized loop is inner or not.
1262 Remove the innermost-loop requirement.
1263 * cfgloop.h (duplicate_subloops): Export.
1264 * tree-cfg.c (add_phi_args_after_redirect): New function.
1265 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1266 Call duplicate_subloops.
1267 Update number of iterations at the exit condition.
1268 Don't redirect nexits always to the loop exit.
1269 Redirect copied edges from latch to the loop exit.
1271 2009-10-22 Jan Hubicka <jh@suse.cz>
1273 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1275 * ipa-inline.c (cgraph_mark_inline_edge,
1276 cgraph_decide_inlining_of_small_function,
1277 cgraph_decide_inlining, inline_read_summary): Disable indirect
1278 inlining for WPA for time being.
1280 PR tree-optimize/40556
1281 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1283 2009-10-22 Richard Guenther <rguenther@suse.de>
1285 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1286 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1288 2009-10-22 Jan Hubicka <jh@suse.cz>
1291 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1293 (check_call): Handle only indirect calls.
1294 (propagate_bits): Update comment.
1295 (write_node_summary_p): Turn bogus check to assert.
1296 (ipa_reference_write_summary): Stream calls_read_all properly.
1297 (ipa_reference_read_summary): Stream in calls_read_all properly.
1298 (read_write_all_from_decl): New function.
1299 (propagate): Handle OVERWRITABLE nodes and external calls here.
1300 * ipa-pre-const.c (check_call): In IPA mode handle indirect
1302 (analyze_function): Do not check visibility here.
1303 (add_new_function): We summary OVERWRITABLE too.
1304 (generate_summary): Stream OVERWRITABLE nodes too.
1305 (propagate): Handle external calls and OVERWRITABLE nodes here.
1306 (local_pure_const): Check visibility here.
1308 2009-10-22 Jan Hubicka <jh@suse.cz>
1310 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1311 (pass_ipa_cp): Register them.
1312 (ipcp_init_stage): Analyze all functions for whopr/lto.
1313 (ipcp_propagate_stage): Skip external calls.
1314 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1315 * ipa-reference.c (write_node_summary_p): Fix thinko about
1317 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1318 when in ltrans, skip executing of ipa passes since everything
1319 should've been done.
1320 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1321 (inline_generate_summary): Likewise.
1322 (inline_read_summary): New function.
1323 (inline_write_summary): New function.
1324 (pass_ipa_inline): Register new hooks.
1325 * ipa-prop.c: Inlcude lto-streamer.h
1326 (ipa_edge_args_vector): Update declaration.
1327 (ipa_count_arguments, ipa_compute_jump_functions,
1328 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1329 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1330 ipa_read_node_info): New static functions.
1331 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1332 (duplicate_array): Use xmalloc.
1333 (duplicate_ggc_array): New.
1334 (ipa_edge_duplication_hook): Use it.
1335 (ipa_update_after_lto_read): New function.
1336 * ipa-prop.h (ipa_prop_write_jump_functions,
1337 ipa_prop_read_jump_functions): Declare.
1338 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1339 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1340 (ipa_edge_args_vector): Move into GGC.
1341 (ipa_check_create_edge_args): Update.
1342 (ipa_update_after_lto_read): New.
1343 * passes.c (ipa_write_summaries_1): When in wpa, do not write
1345 (ipa_read_summaries): When in ltrans, so not read summaries.
1346 * lto-streamer.c (lto_get_section_name): Add
1347 LTO_section_jump_functions.
1348 * lto-streamer.h (LTO_section_jump_functions): New section.
1349 (produce_asm): Declare.
1350 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1351 * lto-streamer-out.c (produce_asm): Export.
1352 * lto-streamer-in.c: Include tree-pass.h
1353 (input_function): Free dominance info when done.
1354 (lto_read_body): Push ipa_inline in ltrans stage.
1355 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1356 * Makefile.in (GTFILES): Add ipa-prop.h
1358 2009-10-22 Matthias Klose <doko@ubuntu.com>
1360 * doc/install.texi: Document --enable-browser-plugin.
1362 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
1364 * doc/invoke.texi (fira-loop-pressure): Update default value.
1365 * opts.c (decode_options): Remove default value setting for
1366 flag_ira_loop_pressure.
1367 * config/ia64/ia64.c (ia64_override_options): Set
1368 flag_ira_loop_pressure up for -O3.
1369 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1371 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
1373 PR tree-optimization/41497
1374 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1375 chrec_dont_know if the evolution function returned by follow_ssa_edge
1376 is constant in the analyzed loop and is not compatible with the
1377 initial value before the loop.
1378 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1380 2009-10-21 Joseph Myers <joseph@codesourcery.com>
1382 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1384 2009-10-21 Jakub Jelinek <jakub@redhat.com>
1387 * doc/invoke.texi: Document -print-multi-os-directory.
1389 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
1392 * gcc/config/darwin10.h: Use default_emit_unwind_label.
1393 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1394 when darwin_emit_unwind_label is used.
1396 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1398 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1401 2009-10-20 Richard Henderson <rth@redhat.com>
1403 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1404 before emit_post_landing_pad.
1406 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
1408 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1409 Use when calling rtx_costs.
1410 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
1411 global optimize_size. Pass speed to mips_binary_cost.
1413 2009-10-20 Jakub Jelinek <jakub@redhat.com>
1415 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1418 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
1420 * rtl.h (simplify_replace_fn_rtx): Declare.
1421 (wrap_constant, unwrap_constant): Delete.
1422 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1423 (expand_debug_expr): Don't call wrap_constant.
1424 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1425 (auto_adjust_pair): Fold into...
1426 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
1427 Just return a new value.
1428 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1429 otherwise use simplify_replace_rtx.
1430 * cselib.c (wrap_constant): Reinstate old definition.
1431 (cselib_expand_value_rtx_1): Don't wrap constants.
1432 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1433 simplify_replace_rtx.
1434 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1435 * reload1.c (reload): Skip all uses for an insn before adjusting it.
1436 Use simplify_replace_rtx.
1437 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1439 (simplify_replace_rtx): ...here. Turn into a wrapper for
1440 simplify_replace_fn_rtx.
1441 (simplify_unary_operation): Don't unwrap CONSTs.
1442 * var-tracking.c (check_wrap_constant): Delete.
1443 (vt_expand_loc_callback): Don't call it.
1444 (vt_expand_loc): Likewise.
1446 2009-10-20 Pascal Obry <obry@adacore.com>
1447 Eric Botcazou <ebotcazou@adacore.com>
1449 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1451 2009-10-20 Michael Matz <matz@suse.de>
1453 * loop-invariant.c (create_new_invariant): Use different magic number.
1455 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
1458 * arm.c (arm_override_options): Forcibly disable hot/cold block
1461 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
1464 * haifa-sched.c (try_ready): Skip debug deps updating speculation
1467 2009-10-20 Richard Guenther <rguenther@suse.de>
1469 * ggc-page.c: Include cfgloop.h.
1470 (struct max_alignment): Drop long double, add void *.
1471 (extra_order_size_table): Add low non-power-of-two multiples
1472 of MAX_ALIGNMENT. Drop small type-based entries, add
1473 tree_type, cgraph_node and loop.
1474 * alloc-pool.c (struct allocation_object_def): Drop long double
1477 2009-10-20 Jakub Jelinek <jakub@redhat.com>
1480 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1481 referenced just in DEBUG_INSNs.
1483 2009-10-20 Richard Guenther <rguenther@suse.de>
1486 * gimple.c (gimple_register_type): Make sure we register
1487 the types main variant first.
1489 2009-10-20 Richard Guenther <rguenther@suse.de>
1491 * gimple.c (gimple_types_compatible_p): Simplify. Move
1492 cheap checks before hashtable queries. Add checks for
1493 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1495 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
1497 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1498 without size or with size that can't be represented as a host integer.
1500 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
1502 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1503 the removal of a debug stmt as a significant change.
1505 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
1507 * config/s390/s390.md: Added agen condition to operand
1508 forwarding bypasses. Added bypass for early address generation
1509 use of int results. Updated comments.
1511 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
1513 * config/i386/i386.c: Remove signal.h #include.
1515 2009-10-20 Jie Zhang <jie.zhang@analog.com>
1517 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1518 * doc/rtl.texi: Document ss_abs.
1520 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1522 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1523 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
1524 instead of C_LEX_RAW_STRINGS.
1525 (lex_string): Handle CPP_UTF8STRING.
1526 * c-parser.c (c_parser_postfix_expression): Likewise.
1527 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1528 (C_LEX_STRING_NO_JOIN): ... this.
1530 2009-10-19 Anatoly Sokolov <aesok@post.ru>
1532 * config/cris/cris.c (cris_function_value, cris_libcall_value,
1533 cris_function_value_regno_p): New functions.
1534 (cris_promote_function_mode): Update comment.
1535 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1536 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1537 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1538 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1540 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1542 * unwind-dw2.c (execute_stack_op): Fix operand order for
1543 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1545 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
1547 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1548 (lower_stmt) <GIMPLE_BIND>: Add comment.
1549 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1551 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1552 Otherwise lower it and set cannot_fallthru to true.
1553 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1554 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1555 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1556 to true for a noreturn call. Do not remove statements.
1557 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1558 Set cannot_fallthru to false on function exit.
1559 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1560 <GIMPLE_ASSIGN>: Remove.
1562 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1564 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1566 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1568 * config/s390/s390.c (s390_z10_optimize_cmp): Use
1569 next/prev_active_insn to skip DEBUG_INSNs as well.
1571 2009-10-19 Joseph Myers <joseph@codesourcery.com>
1573 * config/arm/arm.c (output_move_neon): Use DImode in call to
1576 2009-10-19 Matthias Klose <doko@ubuntu.com>
1579 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1581 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1583 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1585 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1588 * optabs.c (expand_binop): Make mode of shift count expression mode
1589 of shift count not target.
1592 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1594 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1595 case. Force using values to replace references within the statement.
1596 (convert_local_reference_stmt): Likewise.
1598 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1600 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1601 remove a subsequent GOTO or RETURN statement.
1603 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
1605 * config/avr.md (*movqi): Add zero as equally preferable constraint
1606 as general register.
1609 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1611 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1613 2009-10-17 Richard Guenther <rguenther@suse.de>
1615 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1617 2009-10-17 Richard Guenther <rguenther@suse.de>
1619 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1620 operands in COMPONENT_REFs.
1622 2009-10-17 Anatoly Sokolov <aesok@post.ru>
1624 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1625 if not defined. Change type of second argument to const_rtx.
1626 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1628 * targhooks.h (default_libcall_value): Update prototype.
1629 * target.h (struct gcc_target): Change type of second argument of
1630 libcall_value to const_rtx.
1631 * config/arm/arm.c (arm_libcall_value): Change type of second argument
1633 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1634 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
1636 2009-10-17 Jakub Jelinek <jakub@redhat.com>
1639 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1640 * cgraphunit.c (cgraph_optimize): Call it.
1641 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1642 (dwarf2out_assembly_start): ... here. New hook.
1643 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1644 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1646 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1647 * sdbout.c (sdb_debug_hooks): Likewise.
1648 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1649 (vmsdbgout_assembly_start): New hook.
1651 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
1653 * rtl.h (RTL_LOCATION): Fix typo.
1655 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
1657 * print-rtl.c (print_rtx): Print locators in asm_operands
1660 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
1663 * sched-deps.c (depl_on_debug_p): New.
1664 (attach_dep_link): Reject debug deps before nondebug deps.
1665 (add_to_deps_list): Insert debug deps after nondebug deps.
1666 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
1668 (sd_add_dep): Do not reject debug deps.
1669 (add_insn_mem_dependence): Don't count debug deps.
1670 (remove_from_deps): Likewise.
1671 (sched_analyze_2): Set up mem deps on debug insns.
1672 (sched_analyze_insn): Record reg uses for deps on debug insns.
1673 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
1674 try_ready nondebug insn after debug insn.
1675 * ddg.c (create_ddg_dep_from_intra_loop_link,
1676 create_ddg_dep_no_link): Don't reject debug deps.
1678 2009-10-16 Richard Guenther <rguenther@suse.de>
1680 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1681 (maybe_merge_incomplete_and_complete_type): Likewise.
1682 (lto_symtab_merge): Do not call them. Do not warn for
1683 complete vs. incomplete compatible types.
1684 (lto_symtab_merge_decls_2): Simplify.
1685 * gimple.c (gimple_force_type_merge): Remove.
1686 (gimple_types_compatible_p): Make it static.
1687 * gimple.h (gimple_force_type_merge): Remove.
1688 (gimple_types_compatible_p): Likewise.
1690 2009-10-16 Jakub Jelinek <jakub@redhat.com>
1692 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1693 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1695 2009-10-16 Richard Guenther <rguenther@suse.de>
1697 PR tree-optimization/41728
1698 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1699 if fold_stmt did anything.
1701 2009-10-16 Richard Guenther <rguenther@suse.de>
1704 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1705 (maybe_fixup_handled_component): New function.
1706 (input_gimple_stmt): Fixup mismatched decl replacements.
1708 2009-10-16 Richard Guenther <rguenther@suse.de>
1711 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1712 the same as VAR_DECL.
1714 2009-10-16 Richard Guenther <rguenther@suse.de>
1716 * gimple.c (iterative_hash_gimple_type): For integer types
1717 also hash their minimum and maximum values and the string flag.
1718 For array types hash their domain and the string flag.
1720 2009-10-16 Richard Guenther <rguenther@suse.de>
1722 * gimple.c (gimple_types_compatible_p): Restrict completing
1723 types to record or unions. Simplify completion.
1724 Do not merge records or unions with different
1725 TYPE_STRUCTURAL_EQUALITY_P tag.
1726 (iterative_hash_gimple_type): Restrict non-recursing into
1727 pointer targets for records and unions.
1729 2009-10-15 Jakub Jelinek <jakub@redhat.com>
1732 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1733 * dwarf2out.c (mem_loc_descriptor): Don't handle
1734 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
1735 punt if it is not lowpart subreg or if inner mode isn't
1738 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1740 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1741 investigating previous or next insns.
1743 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1745 * tree-sra.c (build_ref_for_offset_1): Update comment.
1747 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
1749 * config/s390/s390.md (atype): Added missing values.
1751 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1754 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
1755 (casesi64p): Update pattern to reflect above.
1757 2009-10-15 Steve Ellcey <sje@cup.hp.com>
1759 PR rtl-optimization/41697
1760 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1762 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1765 * config/rs6000/predicates.md: Update copyright year.
1766 * config/rs6000/altivec.md: Ditto.
1768 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1769 (MD_INCLUDES): Add a2.md.
1771 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1772 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1773 (builtin_classify): New static vector to classify various builtins
1774 to get the tree attributes correct.
1775 (def_builtin): Set the attributes of builtins based on what the
1776 builtin does (i.e. memory operation, floating point, saturation
1777 need special attributes, others are pure functions).
1779 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1781 (enum rs6000_builtins): Include rs6000-builtin.def to define the
1782 builtins. Change the end marker to MAX_RS6000_BUILTINS from
1783 RS6000_BUILTIN_COUNT.
1784 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1785 MAX_RS6000_BUILTINS.
1787 * config/rs6000/rs6000-builtin.def: New file that combines the
1788 builtin enumeration name and attributes.
1790 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
1792 * config/i386/linux.h (ASM_SPEC): Add --32.
1794 2009-10-15 Jakub Jelinek <jakub@redhat.com>
1796 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1797 and DW_TAG_template_alias.
1798 (dwarf_attr_name): Handle DW_AT_main_subprogram,
1799 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1800 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1801 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1802 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1803 and DW_AT_GNU_odr_signature.
1804 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1805 DW_FORM_flag_present and DW_FORM_ref_sig8.
1806 (output_signature): Only print name on the first byte.
1807 (output_die): Likewise for dw_val_class_data8.
1809 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
1811 * doc/invoke.texi: Clarify that most optimizations are not enabled
1814 2009-10-15 Richard Guenther <rguenther@suse.de>
1817 * gimple.c (compare_type_names_p): Handle anonymous names
1818 differently based on new mode argument.
1819 (gimple_types_compatible_p): For structs also compare the tags.
1820 (iterative_hash_type_name): Rename to ...
1821 (iterative_hash_name): ... this. Hash all names.
1822 (iterative_hash_gimple_type): Fix hashing the struct tag of
1823 pointer targets. Hash field decl names.
1825 2009-10-15 Richard Guenther <rguenther@suse.de>
1828 * gimple.c (gimple_get_alias_set): Avoid recursing on
1829 invalid type topology.
1831 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1833 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1835 2009-10-15 Richard Guenther <rguenther@suse.de>
1837 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1839 2009-10-15 Jakub Jelinek <jakub@redhat.com>
1841 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1842 add --with-tune{,-32,-64} configured default for -mtune if explicit
1845 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
1847 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
1849 2009-10-14 DJ Delorie <dj@redhat.com>
1851 * config/h8300/h8300.c (F): New.
1853 (h8300_emit_stack_adjustment): Call them.
1855 (h8300_push_pop): Likewise.
1856 (h8300_expand_prologue): Likewise.
1857 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1858 (MUST_USE_SJLJ_EXCEPTIONS): Define.
1859 (INCOMING_RETURN_ADDR_RTX): Define.
1860 (INCOMING_FRAME_SP_OFFSET): Define.
1861 (DWARF_CIE_DATA_ALIGNMENT): Define.
1863 2009-10-14 Jakub Jelinek <jakub@redhat.com>
1865 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1866 fields in builtin structs.
1867 (finalize_record_size): Likewise.
1869 2009-10-14 Richard Guenther <rguenther@suse.de>
1871 * gimple.c (gtc_ob): New global.
1872 (struct type_pair_d): Replace pointers with type UIDs.
1873 (type_pair_hash): Adjust.
1874 (type_pair_eq): Likewise.
1875 (lookup_type_pair): Likewise. Allocate from an obstack.
1876 (gimple_force_type_merge): Adjust.
1877 (gimple_types_compatible_p): Likewise.
1878 (free_gimple_type_tables): Free the obstack.
1880 2009-10-14 Jakub Jelinek <jakub@redhat.com>
1882 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1883 stmts setting DEBUG_EXPR_DECLs.
1885 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1886 Don't crash if mode1 is VOIDmode.
1888 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
1890 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
1891 * params.h (IRA_LOOP_RESERVED_REGS): New.
1892 * tree-pass.h (pass_subregs_of_mode_init,
1893 pass_subregs_of_mode_finish): Remove.
1894 * passes.c (pass_subregs_of_mode_init,
1895 pass_subregs_of_mode_finish): Remove.
1896 (pass_reginfo_init): Move before loop optimizations.
1897 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1898 * common.opt (fira-loop-pressure): New.
1899 * toplev.h (flag_ira_loop_pressure): New.
1900 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1901 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1902 Make external and void type functions.
1903 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1904 pass_subregs_of_mode_finish): Remove.
1905 * ira-costs.c (init_costs): Call init_subregs_of_mode.
1906 * regmove.c: Include ira.h.
1907 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1908 register pressure calculation in loops.
1909 * loop-invariant.c: Include REGS_H and ira.h.
1910 (struct loop_data): New members max_reg_pressure, regs_ref, and
1912 (struct invariant): New member orig_regno.
1913 (curr_loop): New variable.
1914 (find_exits): Initialize regs_ref and regs_live.
1915 (create_new_invariant): Initialize orig_regno.
1916 (get_cover_class_and_nregs): New.
1917 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
1918 array. Add code for flag_ira_loop_pressure.
1919 (gain_for_invariant): Make new_regs an array. Add code for
1920 flag_ira_loop_pressure.
1921 (best_gain_for_invariant): Ditto.
1922 (set_move_mark): New parameter gain. Use it for debugging output.
1923 (find_invariants_to_move): Make regs_needed and new_regs an array.
1924 Add code for flag_ira_loop_pressure.
1925 (move_invariant_reg): Set up orig_regno.
1926 (move_invariants): Set up reg classes for pseudos for
1927 flag_ira_loop_pressure.
1928 (free_loop_data): Clear regs_ref and regs_live.
1929 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1930 get_regno_cover_class, change_pressure, mark_regno_live,
1931 mark_regno_death, mark_reg_store, mark_reg_clobber,
1932 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1933 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
1934 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1935 register pressure calculation in loops if new regs were added.
1936 Call finish_subregs_of_mode.
1937 * opts.c (decode_options): Set up flag_ira_loop_pressure.
1938 * Makefile.in (loop-invariant.o): Add ira.h.
1940 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1942 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
1944 2009-10-14 Richard Guenther <rguenther@suse.de>
1946 * lto-symtab.c (lto_symtab_compatible): Fold in ...
1947 (lto_symtab_merge): ... here. Rewrite both to take the
1948 prevailing and a to-be-merged entry and to queue diagnostics properly.
1949 (lto_symtab_resolve_replaceable_p): New predicate for
1951 (lto_symtab_resolve_can_prevail_p): Likewise.
1952 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
1953 handles merging commons by choosing the largest decl. Fold
1954 in code that gives ODR errors.
1955 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
1957 (lto_symtab_merge_decls_1): Re-structure. Deal with the
1958 case of no prevailing decl here. Diagnose mismatches
1959 in object types here. Drop all but the prevailing decls.
1960 (lto_symtab_prevailing_decl): Return the single prevailing decl.
1961 * lto-streamer-in.c (lto_input_tree_ref): Deal with
1962 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
1964 2009-10-14 Richard Guenther <rguenther@suse.de>
1967 * lto-streamer-in.c (input_bb): Replace debug stmts with
1968 nops instead of dropping them.
1970 2009-10-14 Nick Clifton <nickc@redhat.com>
1972 * gcc/doc/extended.texi: Replace the dash character with @minus{}
1973 in situations where it is being used as a minus symbol.
1974 * gcc/doc/tm.texi: Likewise.
1975 * gcc/doc/md.texi: Likewise.
1977 2009-10-14 Jakub Jelinek <jakub@redhat.com>
1979 PR preprocessor/41543
1980 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1981 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1982 * tree.c: Include intl.h.
1983 (expand_location): Handle BUILTINS_LOCATION.
1984 * Makefile.in (tree.o): Depend on intl.h.
1987 * dwarf2out.c (dwarf2out_var_location): Always clear
1988 last_postcall_label when changing last_label.
1990 2009-10-14 Pascal Obry <obry@adacore.com>
1992 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1993 (process_command): Handle -E as done with -c and -S. Do not add
1994 the target executable suffix to the output file when -E is used.
1995 (main): Adjust error message accordingly.
1997 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
2003 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
2005 (tree_code_size): Likewise.
2007 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2009 * builtins.c (fold_builtin_1): Support complex "arc" functions.
2010 * real.h (HAVE_mpc_arc): Define.
2012 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
2014 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
2015 (struct builtin_description): Add fndecl field.
2016 (bdesc): Remove const qualifier. Update initializer.
2017 (sh_media_init_builtins): Remove const qualifier for d. Record
2018 the result of add_builtin_function to the fndecl field.
2019 (sh_builtin_decl): New.
2020 (sh_media_builtin_decl): New.
2022 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
2025 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
2026 requests between special registers.
2028 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
2030 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
2032 2009-10-13 Richard Henderson <rth@redhat.com>
2034 PR tree-optimization/41377
2035 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
2036 (cleanup_empty_eh_merge_phis): New change_region parameter;
2037 pass it on to redirect_eh_edge_1. Update callers.
2038 (cleanup_empty_eh_unsplit): Don't require an existing EH label
2039 at the destination block.
2041 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
2043 * passes.c (register_pass): Replaced gcc_unreachable by
2044 fatal_error on failure. Mentions plugins in comments & messages.
2046 2009-10-13 Jakub Jelinek <jakub@redhat.com>
2049 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
2050 * sched-vis.c (print_value): Use it.
2051 * cselib.c (cselib_hash_rtx): Likewise.
2052 * print-rtl.c (print_rtx): Likewise.
2053 * cfgexpand.c (expand_debug_rtx): Likewise.
2054 * var-tracking.c (vt_expand_loc_callback): Likewise.
2056 2009-10-13 Richard Guenther <rguenther@suse.de>
2059 * opts.c (handle_option): Split out code to handle setting
2060 the options flag var ...
2061 (set_option): ... here.
2062 * opts.h (set_option): Declare.
2063 * lto-opts.c (register_user_option_p): Include -fexceptions
2064 and all position independent code variants.
2065 (handle_common_option): Remove.
2066 (lto_reissue_options): Use set_option.
2068 2009-10-13 Martin Jambor <mjambor@suse.cz>
2070 PR tree-optimization/41661
2071 * ipa-prop.c (compute_complex_pass_through): Allow only operations
2072 that are tcc_comparisons or do not change the type in any
2074 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
2075 folding tcc_comparison operations.
2077 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2079 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
2082 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
2088 * tree.def (DEBUG_EXPR_DECL): New.
2089 * rtl.def (DEBUG_EXPR): New.
2090 * gengtype.c (adjust_field_rtx_def): Handle it.
2091 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
2092 (insert_debug_temp_for_var_def): ... this. Drop support for
2093 moving. Take iterator for def stmt; insert debug stmt before it.
2094 Scan early for use count and kind in debug stmts.
2095 (propagate_defs_into_debug_stmts): Rename to...
2096 (insert_debug_temps_for_defs): ... this. Likewise.
2097 * tree.h (DEBUG_TEMP_UID): New.
2098 * tree.c (next_debug_decl_uid): New.
2099 (make_node_stat): Count debug decls separately.
2100 (copy_node_stat): Likewise.
2101 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
2102 * var-tracking.c (dv_is_decl_p): Recognize it.
2103 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
2104 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
2105 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
2106 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
2107 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
2108 (cselib_hash_rtx): Likewise.
2109 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
2110 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
2112 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
2113 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
2114 * rtl.c (copy_rtx): Likewise.
2115 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
2116 * print-rtl.c (print_rtx): Likewise.
2117 * sched-vis.c (print_value): Likewise.
2118 (print_insn): Handle DEBUG_EXPR_DECL.
2119 * tree-dump.c (dequeue_and_dump): Likewise.
2120 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2121 * gimple-iterator (gsi_replace): Check for same lhs.
2122 (gsi_remove): Insert debug temps.
2123 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2124 (move_computations_stmt): Drop explicit propagation into debug stmts.
2125 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
2126 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2127 * tree-ssa-sink.c (statement_sink_location): Likewise.
2128 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2129 * tree-ssanames.c (release_ssa_name): Adjust for rename.
2130 * tree-flow.h: Likewise.
2131 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2132 debug temps without values.
2133 (eliminate_unnecessary_stmts): Don't discard just-inserted
2136 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
2139 * config/cris/cris.md (andu): Check that operand 1 is one of the
2140 general registers. Fix typo in head comment.
2142 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
2144 * config/i386/i386.md (vswapmov): New.
2145 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2146 (ix86_function_ms_hook_prologue): New.
2147 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2148 * configure.ac: Test for swap suffix support in as.
2149 * configure: Rebuild.
2151 2009-10-12 Jakub Jelinek <jakub@redhat.com>
2154 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2155 paradoxical subregs to prevent partial register stalls if the inner
2156 mode is integer mode.
2158 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
2160 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2162 2009-10-12 Dodji Seketeli <dodji@redhat.com>
2165 * gcc/dwarf2out.c (template_parameter_pack_die,
2166 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2168 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
2171 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2173 (maybe_register_def): Likewise. Take stmt iterator.
2174 (rewrite_update_stmt): Take stmt iterator and pass it on.
2175 (rewrite_update_enter_block): Pass stmt iterator.
2177 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2179 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2180 (spu_builtin_decl): New function.
2182 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
2184 * config/i386/i386.md (SWIM): New mode iterator.
2185 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2186 using SWIM mode iterator.
2187 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2188 patterns using SWI48 mode iterator.
2189 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
2190 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2191 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2192 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2193 patterns using SWI248 mode iterator.
2194 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2195 gen_x86_movdicc_0_m1_rex64 for renamed function
2197 2009-10-11 Jose Ruiz <ruiz@adacore.com>
2198 Eric Botcazou <ebotcazou@adacore.com>
2201 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2202 * config/sparc/sol2-unwind.h: New file.
2204 2009-10-11 Olivier Hainque <hainque@adacore.com>
2205 Eric Botcazou <ebotcazou@adacore.com>
2208 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2209 * config/i386/sol2-unwind.h: New file.
2211 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
2214 * config/i386/i386.md (addsi_1_zext): Get the proper second
2217 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
2219 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2220 all OLD_RTXes, not just REGs. Use copy_rtx to create the
2223 2009-10-11 Richard Guenther <rguenther@suse.de>
2225 * gimple.c (iterative_hash_type_name): Do not handle special
2228 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
2230 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2231 (*setcc_si_1_and): Ditto.
2232 (*setcc_si_1_movzbl): Ditto.
2233 (*setcc_<mode>_2): Ditto.
2234 (*setcc_qi): Rename from *setcc_1.
2235 (*setcc_qi_slp): Rename from *setcc_2.
2237 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2238 (*zero_extendqisi2_movzbw_and splitter): Ditto.
2240 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2241 "if" condition, there is already assert with reload_completed present.
2243 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
2245 * plugin.c (try_init_one_plugin): Improve constness of variable err.
2247 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
2249 * doc/install.texi (Final install): Refer to
2250 http://gcc.gnu.org/bugs/ for bug reporting.
2252 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
2254 * configure.ac: Add test for dci instruction.
2255 * configure: Regenerate.
2256 * config.in: Likewise.
2257 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2258 * doc/invoke.texi: Add cpu_type 476 and 476fp.
2259 (-mmulhw): Add 476 to description.
2260 (-mdlmzb): Likewise.
2261 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2262 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2263 (processor_target_table): Add 476 and 476fp entries.
2264 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2265 (rs6000_issue_rate): Add CPU_PPC476.
2266 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2267 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2268 (processor_type): Add PROCESSOR_PPC476.
2269 (EXTRA_SPECS): Add asm_cpu_476 string.
2270 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2271 (define_attr "cpu"): Add ppc476.
2273 Update comments for 476.
2274 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2275 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2276 Update copyright year.
2277 * config/rs6000/476.md: New file.
2278 * config/rs6000/40x.md: Add description for "isel" attribute.
2279 Update copyright year.
2280 * config/rs6000/440.md: Likewise.
2281 * config/rs6000/603.md: Likewise.
2282 * config/rs6000/6xx.md: Likewise.
2283 * config/rs6000/7450.md: Likewise.
2284 * config/rs6000/7xx.md: Likewise.
2285 * config/rs6000/8540.md: Likewise.
2286 * config/rs6000/cell.md: Likewise.
2287 * config/rs6000/e300c2c3.md: Likewise.
2288 * config/rs6000/e500mc.md: Likewise.
2289 * config/rs6000/mpc.md: Likewise.
2290 * config/rs6000/power4.md: Likewise.
2291 * config/rs6000/power5.md: Likewise.
2292 * config/rs6000/power6.md: Likewise.
2293 * config/rs6000/power7.md: Likewise.
2294 * config/rs6000/rios1.md: Likewise.
2295 * config/rs6000/rios2.md: Likewise.
2296 * config/rs6000/rs64.md: Likewise.
2298 2009-10-10 Richard Guenther <rguenther@suse.de>
2300 PR tree-optimization/41654
2301 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2302 a cond expr before calling gimple_cond_set_condition_from_tree.
2303 (ifcombine_iforif): Likewise.
2305 2009-10-09 Ian Lance Taylor <iant@google.com>
2307 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2308 * configure: Rebuild.
2310 2009-10-09 Neil Vachharajani <nvachhar@google.com>
2312 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2315 2009-10-09 Richard Guenther <rguenther@suse.de>
2318 * target-def.h (TARGET_BUILTIN_DECL): Define.
2319 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2320 * target.h (struct gcc_target): Add builtin_decl target hook.
2321 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2322 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2324 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2325 not gcc_unreachable.
2326 (lto_output_builtin_tree): Sorry if the target does not support
2327 streaming target builtins.
2328 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2329 (rs6000_builtin_decl): New function.
2330 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2331 (ix86_builtin_decl): New function.
2333 2009-10-09 Jakub Jelinek <jakub@redhat.com>
2335 PR preprocessor/41445
2336 * c-ppoutput.c (do_line_change): New function.
2337 (cb_line_change): Use it.
2338 (scan_translation_unit): Call do_line_change if
2339 avoid_paste or PREV_WHITE and token location is on a different line
2340 than print.src_line.
2343 * dwarf2out.c (dwarf2out_init): Test whether
2344 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2347 PR rtl-optimization/41646
2348 * calls.c (expand_call): For BLKmode types returned in registers
2349 avoid likely spilled hard regs in copy_blkmode_from_reg generated
2352 2009-10-09 Richard Guenther <rguenther@suse.de>
2354 PR tree-optimization/41634
2355 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2356 we remove the correct elements.
2357 (optimize_stmt): Make sure to update stmt operands before
2358 optimizing redundancies.
2360 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2362 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2364 2009-10-09 Richard Guenther <rguenther@suse.de>
2367 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2369 (lto_wrapper_exit): New function.
2371 (fatal_perror): Likewise.
2372 (fork_execute): Use global args_name, do not free it.
2373 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2374 * lto-streamer.h: Remove duplicate prototypes.
2376 2009-10-09 Richard Guenther <rguenther@suse.de>
2378 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2379 before calling stmt_can_throw_external.
2381 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
2383 PR tree-optimization/40071
2384 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2385 pointer if the original data reference doesn't conflict with the
2386 created vector data reference. Fix long line.
2388 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
2390 * config/i386/i386.md (any_div): New code iterator.
2391 (u): Handle div and udiv.
2393 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
2395 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2396 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2397 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2398 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2400 2009-10-08 Joseph Myers <joseph@codesourcery.com>
2402 * gcc.c (main): Remove trailing "." from diagnostics.
2404 2009-10-08 Cary Coutant <ccoutant@google.com>
2406 Add support for debugging with ICF (Identical Code Folding).
2407 * calls.c (debug.h): New #include.
2408 (emit_call_1): Call virtual_call_token debug hook.
2409 * common.opt (-fenable-icf-debug): New option.
2410 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2411 locations in the source).
2412 (poc_label_num): New variable.
2413 (dcall_entry, vcall_entry): New typedefs.
2414 (dcall_table, vcall_table): New variables.
2415 (struct vcall_insn): New type.
2416 (vcall_insn_table): New variable.
2417 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2418 (size_of_dcall_table): New function.
2419 (output_dcall_table): New function.
2420 (size_of_vcall_table): New function.
2421 (output_vcall_table): New function.
2422 (dwarf2out_direct_call): New function.
2423 (vcall_insn_table_hash): New function.
2424 (vcall_insn_table_eq): New function.
2425 (dwarf2out_virtual_call_token): New function.
2426 (dwarf2out_virtual_call): New function.
2427 (dwarf2out_init): Allocate new tables and sections.
2428 (prune_unused_types): Mark DIEs referenced from direct call table.
2429 (dwarf2out_finish): Output direct and virtual call tables.
2430 * final.c (final_scan_insn): Call direct_call and virtual_call
2432 * debug.h (struct gcc_debug_hooks): Add direct_call,
2433 virtual_call_token, virtual_call hooks.
2434 (debug_nothing_uid): New function.
2435 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2436 (debug_nothing_uid): New function.
2437 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2438 (xcoff_debug_hooks): Likewise.
2439 * sdbout.c (sdb_debug_hooks): Likewise.
2440 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2441 * doc/invoke.texi (-fenable-icf-debug): New option.
2443 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
2446 * regmove.c (regmove_backward_pass): Replace src with dst in the
2447 debug insn, and check for dst before rather than after.
2449 2009-10-08 Janis Johnson <janis187@us.ibm.com>
2451 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2452 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2454 2009-10-08 Jan Hubicka <jh@suse.cz>
2457 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2458 do not mark cgraph nodes as needed.
2459 (record_references_in_initializer): Add new only_vars parameter.
2460 * cgraph.h (record_references_in_initializer): New parameter.
2461 * varasm.c (assemble_variable): Update call.
2462 * varpool.c (varpool_analyze_pending_decls): Always look for
2465 2009-10-08 Anatoly Sokolov <aesok@post.ru>
2467 * config/avr/avr.c (last_insn_address) Remove variable.
2468 (expand_prologue): Don't initialise last_insn_address variable.
2469 (final_prescan_insn): Don't output insn size.
2470 * config/avr/avr.opt (msize): Remove switch.
2471 * doc/invoke.texi (AVR Options): Remove documentation of -msize
2474 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
2476 * combine.c (label_tick_ebb_start): Fix comment.
2477 (combine_instructions): Set label_tick and label_tick_ebb_start before
2478 calling setup_incoming_promotions. Start them from 1. Increment
2479 label_tick instead of deriving it from the BB index. Rather than
2480 comparing ticks use the block from the previous iteration to decide
2481 whether to start a new EBB. Remove empty lines before function.
2483 2009-10-08 Michael Matz <matz@suse.de>
2486 * builtins.c (fold_builtin_isascii): Use fold_build2.
2487 (fold_builtin_isdigit): Ditto.
2488 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2489 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2490 remove_useless_stmts_cond, remove_useless_stmts_tf,
2491 remove_useless_stmts_tc, remove_useless_stmts_bind,
2492 remove_useless_stmts_goto, remove_useless_stmts_label,
2493 remove_useless_stmts_1, remove_useless_stmts,
2494 pass_remove_useless_stmts): Remove.
2495 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2496 * passes.c (init_optimization_passes): Don't add
2497 pass_remove_useless_stmts.
2498 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2499 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2501 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2502 for static constants.
2503 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2504 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2506 2009-10-08 Richard Guenther <rguenther@suse.de>
2508 * gimple.c (free_gimple_type_tables): New function.
2509 * gimple.h (free_gimple_type_tables): Declare.
2511 2009-10-07 Mark Heffernan <meheff@google.com>
2513 * ipa-prop.c (ipa_print_node_params) Only print
2514 names of named arguments.
2516 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
2518 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2519 being statically linked.
2521 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2523 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2525 2009-10-08 Jan Hubicka <jh@suse.cz>
2528 * ipa.c (cgraph_externally_visible_p,
2529 function_and_variable_visibility,
2530 whole_program_function_and_variable_visibility): Skip non-finalized
2533 2009-10-08 Nick Clifton <nickc@redhat.com>
2535 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2538 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
2541 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2543 2009-10-07 Joseph Myers <joseph@codesourcery.com>
2546 * c-common.c (c_fully_fold_internal): Strip nops from the result
2547 of recursive calls to c_fully_fold_internal.
2548 (c_wrap_maybe_const): New.
2549 (c_save_expr): Use c_wrap_maybe_const.
2550 * c-common.h (c_wrap_maybe_const): Declare.
2551 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2552 build_binary_op): Use c_wrap_maybe_const.
2554 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2556 * real.c: Fix comment to reflect actual exponent size.
2558 2009-10-08 Ben Elliston <bje@au.ibm.com>
2560 * config/rs6000/a2.md: Add FSF comment header.
2562 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
2564 * config/i386/i386.md (any_extend): New code iterator.
2565 (u, s): New code attributes.
2567 (DWIH): Rewrite as code iterator for SI and DI modes.
2568 (DWI): Rewrite as mode attribute.
2569 (dwi): New mode attribute.
2570 (di): Depend on SI mode and DI mode.
2571 (doubleint_general_operand): Remove mode attribute.
2573 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2576 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2577 (*sub<mode>3_doubleword): Ditto.
2579 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2580 using SWIM248 mode iterator.
2581 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2582 using SWI48 mode iterator.
2583 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2584 patterns using DWIH mode iterator and any_extend code iterator.
2585 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2586 using any_extend code iterator.
2587 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2588 patterns using DWIH mode iterator and any_extend code iterator.
2589 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2590 using any_extend code iterator.
2591 (<s>mul<mode>3_highpart): Macroize expander from
2592 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2593 and any_extend code iterator.
2594 (*<s>muldi3_highpart_1): Macroize insn from
2595 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2596 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2597 patterns using any_extend code iterator.
2598 (*<s>mulsi3_highpart_zext): Macroize insn from
2599 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2601 2009-10-07 Jakub Jelinek <jakub@redhat.com>
2603 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2604 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2605 refering to a DIE with DW_AT_const_value.
2607 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
2610 * ira-lives.c (check_and_make_def_conflict): Process all operands.
2612 2009-10-06 Jan Hubicka <jh@suse.cz>
2614 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2617 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
2619 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2620 *lea_2_rex64): Move before *add<mode>_1 pattern.
2622 2009-10-07 Jan Hubicka <jh@suse.cz>
2624 * collect2.c (main): Add -fno-whole-program.
2625 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2627 2009-10-07 Jan Hubicka <jh@suse.cz>
2629 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2630 has no address taken.
2631 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2633 (cgraph_clone_node): Clear externally_visible flag for clones.
2634 * cgraph.h (cgraph_only_called_directly_p,
2635 cgraph_can_remove_if_no_direct_calls_p): New predicates.
2636 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2637 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2638 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2639 ipcp_insert_stage): Likwise.
2640 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2641 externally_visible flag.
2642 (verify_cgraph_node): Verify that inline clones look right.
2643 (process_function_and_variable_attributes): Do not set
2644 externally_visible flags.
2645 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2647 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2649 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2650 clear externally_visible when turning into inline clones
2651 (cgraph_mark_inline_edge): Use new predicates.
2652 (cgraph_estimate_growth): Likewise.
2653 (cgraph_decide_inlining): Likewise.
2654 * ipa.c (cgraph_postorder): Likewise.
2655 (cgraph_remove_unreachable_nodes): Likewise; sanity check
2656 that inline clones are not needed.
2657 (cgraph_externally_visible_p): New predicate.
2658 (function_and_variable_visibility): Add whole_program parameter;
2659 always set externally_visible flag; handle COMDAT function
2661 (local_function_and_variable_visibility): New function.
2662 (gate_whole_program_function_and_variable_visibility): New function.
2663 (whole_program_function_and_variable_visibility): New function.
2664 (pass_ipa_whole_program_visibility): New function.
2665 * passes.c (init_optimization_passes): Add whole program visibility
2667 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2668 not care about needed/reachable flags.
2669 * varpool.c: Include flags.h
2670 (decide_is_variable_needed): When doing LTO assume whole-program mode.
2671 (varpool_finalize_decl): When we are in LTO read-back, all variables
2673 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2675 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2677 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2680 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2682 * config.gcc: Don't include the makefile fragments intended for
2684 * config/s390/fixdfdi.h: File removed.
2685 * config/s390/libgcc-glibc.ver: File removed.
2686 * config/s390/s390.h: Remove the fixdfdi.h hack.
2687 * config/s390/t-crtstuff: File moved to libgcc dir.
2688 * config/s390/t-linux: Likewise.
2689 * config/s390/t-tpf: libgcc specific parts removed.
2690 * config/s390/t-linux64: Likewise.
2692 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
2694 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2695 (lto-compress.o): Likewise.
2697 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2700 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2701 dllexport to class members here.
2702 (i386_pe_determine_dllimport_p): Only check static class data for
2704 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2705 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2706 functions for vague linkage.
2707 (i386_pe_type_dllexport_p): Fix formatting.
2708 (maybe_add_dllexport) New function.
2709 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2712 2009-10-07 Ben Elliston <bje@au.ibm.com>
2714 * config/rs6000/a2.md: Remove duplicated lines.
2716 2009-10-07 Ben Elliston <bje@au.ibm.com>
2718 * config.gcc (powerpc*-*-*): Handle a2.
2719 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
2720 * config/rs6000/a2.md: New file.
2721 * config/rs6000/rs6000.opt (mno-update): New.
2722 (mupdate): Return to using a mask, not a var.
2723 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2724 (enum processor_type): Add PROCESSOR_PPCA2.
2725 * config/rs6000/rs6000.c (ppca2_cost): New costs.
2726 (rs6000_override_options): Add "a2" to processor_target_table.
2727 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
2728 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
2730 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
2732 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2733 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2734 reference to nonexistent gen_truncxfxf2 function.
2736 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
2738 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
2739 (DWIH, g, di, doubleint_general_operand): New mode attributes.
2740 (general_operand): Handle TI mode.
2741 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
2742 using SDWIM mode iterator.
2743 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
2744 pattern from *add{di,ti}3_1 patterns and corresponding splitters
2745 using DWI mode iterator.
2746 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2747 patterns using SWI mode iterator.
2748 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2749 using SWI48 mode iterator.
2750 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2751 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2752 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2753 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2754 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
2755 using SDWIM mode iterator.
2756 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
2757 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
2758 using DWI mode iterator.
2759 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2760 patterns using SWI mode iterator.
2761 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2762 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2763 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2764 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2765 patterns using plusminus code iterator.
2766 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2767 sub<mode>3 patterns using plusminus code iterator.
2768 * config/i386/i386.c (override_options): Update the call to
2769 gen_subdi_carry_rex64 for renamed function.
2770 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2771 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
2772 calls to instruction expanders.
2774 2009-10-06 Martin Jambor <mjambor@suse.cz>
2777 * opts.c (decode_options): Run IPA-SRA at -O2.
2779 2009-10-06 Richard Guenther <rguenther@suse.de>
2781 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2783 2009-10-06 Tobias Burnus <burnus@net-b.de>
2786 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2787 -flto and -fwhole-program flags can be combined.
2789 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
2792 * gcc.c (process_command): Check that -o argument was specified.
2794 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
2796 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
2798 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2800 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2801 * doc/invoke.texi (Warning Options): Annotate allowed languages
2802 for -Wunsuffixed-float-constants.
2804 2009-10-05 Jakub Jelinek <jakub@redhat.com>
2806 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2807 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2808 same name and isn't the main variant.
2811 * dwarf2out.c (loc_by_reference): Removed.
2812 (dw_loc_list_1): New function.
2813 (dw_loc_list): Remove toplev argument, add want_address argument.
2814 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
2815 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2816 want_address == 2 to dw_loc_list. For successful dw_loc_list
2817 set have_address to 1 only if want_address is not 0.
2819 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2821 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2822 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2823 a code block followed by two pointers.
2824 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2825 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2826 (MIPS_MOVE): Likewise.
2827 (MIPS_LUI): Likewise.
2828 (MIPS_JR): Likewise.
2829 (MIPS_BAL): Likewise.
2830 (MIPS_NOP): Likewise.
2831 (mips_asm_trampoline_template): Delete.
2832 (mips_trampoline_code_size): New function.
2833 (mips_trampoline_init): Add shorter sequences for all cases
2834 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2835 Calculate the opcodes directly, rather than copying from a template.
2836 Only flush the code part of the trampoline.
2837 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2839 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2841 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2842 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2843 (INCOMING_RETURN_ADDR_RTX): Likewise.
2844 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
2846 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2847 with RETURN_ADDR_REGNUM.
2848 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2849 * config/mips/mips.c (mips16_build_call_stub): Replace
2850 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2851 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2852 (mips_print_operand_punctuation): Likewise.
2853 (mips_frame_set): Likewise.
2854 (mips16e_output_save_restore): Likewise.
2855 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2856 (mips_save_reg_p): Likewise.
2857 (mips_return_addr): Likewise.
2858 (mips_set_return_address): Likewise.
2859 (mips_direct_save_slot_move_p): Likewise.
2860 (mips_output_function_prologue): Likewise.
2861 (mips_restore_reg): Likewise.
2862 (mips_expand_epilogue): Likewise.
2863 (mips_epilogue_uses): Likewise.
2864 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2865 (*mov<mode>_ra): Use it instead of a hard-coded 31.
2866 (clear_hazard_<mode>): Likewise.
2867 (call_internal): Likewise.
2868 (call_internal_direct): Likewise.
2869 (call_direct_split): Likewise.
2870 (call_value_internal): Likewise.
2871 (call_value_split): Likewise.
2872 (call_value_internal_direct): Likewise.
2873 (call_value_direct_split): Likewise.
2874 (call_value_multiple_internal): Likewise.
2875 (call_value_multiple_split): Likewise.
2877 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
2878 Jakub Jelinek <jakub@redhat.com>
2880 PR rtl-optimization/41511
2881 * combine.c (record_value_for_reg): Pass explicit values as argument
2882 to get_last_value_validate.
2883 (get_last_value_validate): Document INSN parameter.
2884 For non-readonly MEMs, assume they might have been modified if INSN
2885 was in another basic block.
2886 (get_last_value): Minor reformatting.
2888 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2891 * final.c (asm_str_count): Split out from asm_insn_count.
2892 * rtl.h (asm_str_count): New prototype.
2893 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2896 2009-10-05 Sriraman Tallam <tmsriram@google.com>
2898 * doc/plugins.texi: Change plugin_pass to register_pass_info.
2900 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
2901 Rafael Espindola <espindola@google.com>
2903 * gengtype.c (write_types): Moved call to write_func_for_structure
2904 into seperate loops.
2906 2009-10-05 Richard Guenther <rguenther@suse.de>
2909 * lto-cgraph.c (output_cgraph): Output toplevel asms.
2910 (input_cgraph_1): Input toplevel asms.
2912 2009-10-05 Richard Guenther <rguenther@suse.de>
2915 * lto-symtab.c (lto_compatible_attributes_p): Remove.
2916 (external_aggregate_decl_p): Likewise.
2917 (lto_symtab_compatible): Re-structure. Remove dead code.
2918 For variables ignore toplevel qualifiers when comparing types.
2919 Issue warnings, not errors for mismatched user-alignment.
2921 2009-10-05 Richard Guenther <rguenther@suse.de>
2925 * lto-symtab.c (struct lto_symtab_base_def): Remove.
2926 (struct lto_symtab_identifier_def): Likewise.
2927 (struct lto_symtab_decl_def): Likewise.
2928 (struct lto_symtab_entry_def): New.
2929 (lto_symtab_identifier_t): Rename to ...
2930 (lto_symtab_entry_t): ... this.
2931 (lto_symtab_decls): Remove.
2932 (lto_symtab_base_hash): Rename to ...
2933 (lto_symtab_entry_hash): ... this.
2934 (lto_symtab_base_eq): Rename to ...
2935 (lto_symtab_entry_eq): ... this.
2936 (lto_symtab_base_marked_p): Rename to ...
2937 (lto_symtab_entry_marked_p): ... this.
2938 (lto_symtab_identifier_marked_p): Remove.
2939 (lto_symtab_decl_marked_p): Likewise.
2940 (lto_symtab_maybe_init_hash_tables): Rename to ...
2941 (lto_symtab_maybe_init_hash_table): ... this.
2942 (lto_symtab_set_resolution_and_file_data): Remove.
2943 (lto_symtab_register_decl): New function.
2944 (lto_symtab_get_identifier): Remove.
2945 (lto_symtab_get): New function.
2946 (lto_symtab_get_resolution): Adjust.
2947 (lto_symtab_get_identifier_decl): Remove.
2948 (lto_symtab_set_identifier_decl): Likewise.
2949 (lto_symtab_merge_decl): Rename to ...
2950 (lto_symtab_merge): ... this. Rewrite.
2951 (lto_symtab_merge_var): Remove.
2952 (lto_symtab_merge_fn): Likewise.
2953 (lto_symtab_prevailing_decl): Adjust.
2954 (lto_cgraph_replace_node): New function.
2955 (lto_symtab_merge_decls_2): Likewise.
2956 (lto_symtab_merge_decls_1): Likewise.
2957 (lto_symtab_fixup_var_decls): Likewise.
2958 (lto_symtab_resolve_symbols): Likewise.
2959 (lto_symtab_merge_decls): Likewise.
2960 (lto_symtab_prevailing_decl): Adjust.
2961 (lto_symtab_get_symtab_def): Remove.
2962 (lto_symtab_get_file_data): Likewise.
2963 (lto_symtab_clear_resolution): Adjust.
2964 (lto_symtab_clear_resolution): Likewise.
2965 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2966 (input_cgraph_1): Likewise.
2967 * lto-streamer-in.c (get_resolution): Do not provide fake
2968 symbol resolutions here.
2969 (deferred_global_decls): Remove.
2970 (lto_register_deferred_decls_in_symtab): Likewise.
2971 (lto_register_var_decl_in_symtab): Change signature, register
2972 variable via lto_symtab_register_decl.
2973 (lto_register_function_decl_in_symtab): Likewise.
2974 (lto_read_tree): Adjust.
2975 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2976 (lto_symtab_merge_var): Likewise.
2977 (lto_symtab_merge_fn): Likewise.
2978 (lto_symtab_register_decl): Declare.
2979 (lto_symtab_merge_decls): Likewise.
2981 2009-10-05 Richard Guenther <rguenther@suse.de>
2983 PR tree-optimization/23821
2984 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2985 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2986 simple IV increments.
2988 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2990 * config/arm/arm.c (arm_override_options): Really initialize
2991 flag_dwarf2_cfi_asm to 0.
2993 2009-10-05 Doug Kwan <dougkwan@google.com>
2995 PR rtl-optimization/41574
2996 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
2997 floating point and we are not doing unsafe math optimizations.
2999 2009-10-03 Simon Baldwin <simonb@google.com>
3000 Cary Coutant <ccoutant@google.com>
3001 Rafael Espindola <espindola@google.com>
3002 Richard Guenther <rguenther@suse.de>
3003 Jan Hubicka <jh@suse.cz>
3004 Doug Kwan <dougkwan@google.com>
3005 H.J. Lu <hongjiu.lu@intel.com>
3006 Bill Maddox <maddox@google.com>
3007 Ryan Mansfield <rmansfield@qnx.com>
3008 Diego Novillo <dnovillo@google.com>
3009 Ollie Wild <aaw@google.com>
3010 Kenneth Zadeck <zadeck@naturalbridge.com>
3012 * lto-cgraph.c: New file.
3013 * lto-compress.c: New file.
3014 * lto-compress.h: New file.
3015 * lto-opts.c: New file.
3016 * lto-section-in.c: New file.
3017 * lto-section-out.c: New file.
3018 * lto-streamer-in.c: New file.
3019 * lto-streamer-out.c: New file.
3020 * lto-streamer.c: New file.
3021 * lto-streamer.h: New file.
3022 * lto-symtab.c: New file.
3023 * lto-wpa-fixup.c: New file.
3024 * lto-wrapper.c: New file.
3026 2009-10-03 Simon Baldwin <baldwin@google.com>
3027 Ben Elliston <bje@au.ibm.com>
3028 Rafael Espindola <espindola@google.com>
3029 Nathan Froyd <froydnj@codesourcery.com>
3030 Jan Hubicka <jh@suse.cz>
3031 Doug Kwan <dougkwan@google.com>
3032 Diego Novillo <dnovillo@google.com>
3033 Kenneth Zadeck <zadeck@naturalbridge.com>
3035 * Makefile.in (enable_lto): New.
3036 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
3037 (LINKER_PLUGIN_API_H): Define.
3038 (LTO_SYMTAB_H): Define.
3039 (LTO_STREAMER_H): Define.
3040 (TREE_VECTORIZER_H): Define.
3041 (INCLUDES): Add LIBELFINC.
3042 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
3043 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
3044 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
3045 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
3046 (native): Add lto-wrapper$(exeext)
3047 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
3048 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
3049 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
3050 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
3051 (varasm.o): Add dependency on tree-iterator.h.
3052 (cgraph.o): Add dependency on cif-code.def.
3053 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
3054 (ipa-pure-const.o): Likewise.
3055 (GTFILES): Add lto-symtab.c.
3056 (install-lto-wrapper): New.
3057 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
3058 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
3059 * config.in: Regenerate.
3061 2009-10-03 Rafael Espindola <espindola@google.com>
3062 Diego Novillo <dnovillo@google.com>
3064 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
3065 ipa_write_summaries.
3066 Call execute_ipa_summary_passes for all_regular_ipa_passes and
3068 (cgraph_optimize): Make extern.
3070 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
3071 Kenneth Zadeck <zadeck@naturalbridge.com>
3073 * toplev.c (in_lto_p): Declare.
3074 * collect2.c (scan_prog_file): Read all the output when reading
3075 information for LTO.
3076 (enum lto_mode_d): Declare.
3078 2009-10-03 Richard Guenther <rguenther@suse.de>
3079 Diego Novillo <dnovillo@google.com>
3081 * gimple.c: Include target.h and alias.h.
3082 (gimple_types): Declare.
3083 (type_hash_cache): Declare.
3084 (gimple_alloc_stat): Make extern.
3085 (gimple_build_eh_must_not_throw): Call
3086 gimple_eh_must_not_throw_set_fndecl.
3087 (struct type_pair_d): Declare.
3088 (type_pair_t): Declare.
3089 (type_pair_hash): New.
3090 (type_pair_eq): New.
3091 (lookup_type_pair): New.
3092 (gimple_force_type_merge): New.
3093 (compare_type_names_p): New.
3094 (compare_field_offset): New.
3095 (gimple_types_compatible_p): New.
3096 (struct sccs): Declare.
3097 (next_dfs_num): Declare.
3098 (iterative_hash_gimple_type): New.
3100 (iterative_hash_type_name): New.
3101 (iterative_hash_gimple_type): New.
3102 (gimple_type_hash): New.
3103 (gimple_type_eq): New.
3104 (gimple_register_type): New.
3105 (print_gimple_types_stats): New.
3106 (gimple_signed_or_unsigned_type): New.
3107 (gimple_unsigned_type): New.
3108 (gimple_signed_type): New.
3109 (gimple_get_alias_set): New.
3110 (gimple_decl_printable_name): Do not use DMGL_TYPES.
3111 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
3112 (gimple_force_type_merge): Declare.
3113 (gimple_types_compatible_p): Declare.
3114 (gimple_register_type): Declare.
3115 (print_gimple_types_stats): Declare.
3116 (gimple_unsigned_type): Declare.
3117 (gimple_signed_type): Declare.
3118 (gimple_get_alias_set): Declare.
3119 (gimple_eh_must_not_throw_set_fndecl): New.
3121 2009-10-03 Jan Hubicka <jh@suse.cz>
3122 Kenneth Zadeck <zadeck@naturalbridge.com>
3124 * ipa-pure-const.c: Include lto-streamer.h.
3125 (register_hooks): Factor out of ...
3126 (generate_summary): ... here.
3127 (pure_const_write_summary): New.
3128 (pure_const_read_summary): New.
3129 (pass_ipa_pure_const): Add pure_const_write_summary and
3130 pure_const_read_summary.
3131 * ipa-reference.c: Include lto-streamer.h.
3132 (add_new_function): New.
3133 (remove_node_data): New.
3134 (duplicate_node_data): New.
3135 (ipa_init): Guard against multiple calls.
3136 Move hook setup from analyze_function.
3137 (write_node_summary_p): New.
3138 (ipa_reference_write_summary): New.
3139 (ipa_reference_read_summary): New.
3140 (pass_ipa_reference): Add ipa_reference_write_summary and
3141 ipa_reference_read_summary.
3142 * cgraph.h (cgraph_local_info): Add field lto_file_data.
3143 (struct cgraph_edge): Add fields lto_stmt_uid and
3144 call_stmt_cannot_inline_p.
3145 (cgraph_optimize): Declare.
3146 (cgraph_decide_is_function_needed): Declare.
3147 (reset_inline_failed): Declare.
3148 (enum LTO_cgraph_tags): Declare.
3149 (LTO_cgraph_tag_names): Declare.
3150 (LCC_NOT_FOUND): Define.
3152 2009-10-03 Doug Kwan <dougkwan@google.com>
3153 Rafael Espindola <espindola@google.com>
3154 Jan Hubicka <jh@suse.cz>
3155 Diego Novillo <dnovillo@google.com>
3156 Kenneth Zadeck <zadeck@naturalbridge.com>
3158 * passes.c (all_regular_ipa_passes): New.
3159 (all_ipa_passes): Rename to all_small_ipa_passes.
3160 (init_optimization_passes): Init all_regular_ipa_passes.
3161 * tree-pass.h (all_regular_ipa_passes): New.
3162 (all_ipa_passes): Rename to all_small_ipa_passes.
3163 * passes.c (all_lto_gen_passes): New.
3164 (init_optimization_passes): Initialize all_lto_gen_passes.
3165 (execute_ipa_summary_passes): Make non-static.
3166 (ipa_write_summaries_1): New.
3167 (ipa_write_summaries_2): New.
3168 (ipa_write_summaries): New.
3169 (ipa_write_summaries_of_cgraph_node_set): New.
3170 (ipa_read_summaries_1): New.
3171 (ipa_read_summaries): New.
3172 (execute_ipa_pass_list): Call cgraph_process_new_functions.
3173 (execute_regular_ipa_pass_list): Remove.
3174 (init_optimization_passes): Schedule
3175 pass_rebuild_cgraph_edges and pass_early_inline outside
3176 of pass_all_early_optimizations. Document reason.
3177 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3178 pass_ipa_lto_finish_out): New pass.
3179 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3180 (execute_all_ipa_transforms): New.
3181 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3182 (dump_properties, debug_properties): New.
3183 * tree-optimize.c (gate_all_early_local_passes): Return
3184 false if we are in lto1.
3185 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3186 * tree-pass.h (execute_all_ipa_transforms): Declare.
3187 (pass_ipa_function_and_variable_visibility): Declare.
3188 (pass_ipa_early_inline): Declare.
3189 (pass_ipa_lto_gimple_out): Declare.
3190 (pass_ipa_lto_wpa_fixup): Declare.
3191 (pass_ipa_lto_finish_out): Declare.
3192 (all_small_ipa_passes, all_regular_ipa_passes,
3193 all_lto_gen_passes): Declare.
3194 (execute_ipa_summary_passes): Declare.
3195 (execute_all_ipa_transforms): Declare.
3196 (ipa_write_summaries): Declare
3197 (ipa_write_summaries_of_cgraph_node_set): Declare.
3198 (ipa_read_summaries): Declare.
3200 2009-10-03 Doug Kwan <dougkwan@google.com>
3201 Ollie Wild <aaw@google.com>
3203 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3205 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3206 (lto_mode): New variable.
3207 (maybe_run_lto_and_relink): Handle the -fwpa option.
3208 (main): Handle the -fwpa option.
3209 (maybe_unlink_list): New function.
3210 * gcc.c (link_lto_options): Replace -flto with -fwpa.
3211 * common.opt (flto): New flag.
3212 * toplev.c (flag_generate_lto): Declare.
3214 2009-10-03 Simon Baldwin <simonb@google.com>
3216 * common.opt (flto-compression-level): New flag.
3218 * opts.c: Include lto-opts.h.
3219 (handle_option): Call lto_register_user_option for each
3220 valid option handled.
3221 (decode_options): Clear registered options before the options
3224 2009-10-03 Cary Coutant <ccoutant@google.com>
3226 * collect2.c (is_elf): New function.
3227 (scan_prog_file): Require LTO object to be in ELF format.
3229 2009-10-03 Rafael Espindola <espindola@google.com>
3231 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3232 libgcc to the linker.
3234 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3236 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3237 (collect_execute): Add flags argument. Pass flags to pex_run. Update
3239 * collect2.h (collect_execute): Add flags argument.
3240 * tlink.c (tlink_execute): Update call to collect_execute.
3241 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3242 (use_linker_plugin): New.
3243 (use_linker_plugin_spec_function): New.
3244 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3245 (linker_plugin_file_spec): New.
3246 (lto_wrapper_spec): New.
3247 (lto_gcc_spec): New.
3248 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3249 (static_spec_functions): Add use-linker-plugin.
3250 (process_command): Handle -use-linker-plugin.
3251 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3252 linker_plugin_file_spec and lto_gcc_spec.
3253 (use_linker_plugin_spec_function): New.
3255 2009-10-03 Richard Guenther <rguenther@suse.de>
3259 * tree.h (is_lang_specific): Include LANG_TYPE.
3260 * tree.c (find_decls_types_r): Manually add interesting parts
3261 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
3263 * gimple.c (type_pair_hash): Make symmetric.
3264 (type_pair_eq): Likewise.
3265 (lookup_type_pair): Increase initial hashtable size.
3266 (gimple_force_type_merge): Rely on type-pair symmetry.
3267 (visit): Remove excessive checking code.
3268 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3269 (gimple_register_type): Remove getenv calls, shrink initial
3273 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3274 inline functions if not generating lto output.
3277 * toplev.c (finalize): In WPA mode remove the asm file.
3279 2009-10-03 Doug Kwan <dougkwan@google.com>
3281 * ipa-inline.c (cgraph_mark_inline): Check
3282 edge->call_stmt_cannot_inline_p instead of calling
3283 gimple_call_cannot_inline_p.
3284 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3285 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3286 (inline_generate_summary): Do nothing in LTRANS.
3287 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3288 exists before calling gimple_call_cannot_inline_p.
3289 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3290 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
3291 Update new_edge->lto_stmt_uid.
3292 * cgraphbuild.c (reset_inline_failed): New.
3294 * common.opt (fwpa): New flag.
3295 (fltrans): New option.
3296 * gcc.c (gcc_lto_option_t): New type.
3297 (current_lto_option): New variable.
3298 (lto_single_spec_function): Remove and is replaced by ..
3299 (lto_option_spec_function): New function.
3300 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3301 passing the -flto flag.
3302 (cc1_options): Separate non-LTO related parts into ..
3303 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3304 (lto1_options): New spec for lto FE.
3305 (link_lto_options): New spec for handling LTO flags in linker.
3306 (invoke_lto_single): Re-format to fit in 80 column. Replace
3307 lto-single with lto-option.
3308 (static_specs): Add cc1_non_lto_options, lto1_options and
3310 (static_spec_function): Replace lto-single with lto-option.
3311 (process_command): Handle -flto, -fwpa and -fltran by setting
3312 current_lto_option and not passing it to subprocess unconditionally.
3314 2009-10-03 Bill Maddox <maddox@google.com>
3316 Add `gcc' driver support for link-time code generation (LTO).
3318 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3319 (lto_flag, lto_objects, lto_o_file): New variables.
3320 (struct lto_object, struct lto_object_list): New structures.
3321 (collect_exit, handler): Remove LTO temporary output file on exit.
3322 (add_lto_object): New function.
3323 (maybe_run_lto_and_relink): New function. Perform link time code
3324 generation and relinking for object files containing LTO information.
3325 (main): Invoke maybe_run_lto_and_relink().
3326 (dump_argv): New function. For debugging, currently disabled.
3327 (scan_prog_file): Add LTO information pass.
3328 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3330 * toplev.c (compile_file): Emit assembler directive to create
3331 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3333 2009-10-03 Diego Novillo <dnovillo@google.com>
3335 * c.opt: Add LTO to warn_abi and warn_psabi.
3337 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
3338 inline function. Ignore language-specific nodes. Update all users.
3339 (find_decls_types_r): Do not traverse the subtrees of
3340 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
3341 * tree.h (is_lang_specific): New.
3342 * langhooks.h (struct lang_hooks_for_decls): Remove
3343 may_need_assembler_name_p. Update all users.
3345 * c-common.c (set_builtin_user_assembler_name): Move ...
3346 * builtins.c (set_builtin_user_assembler_name): ... here.
3347 (is_builtin_name): Add comment
3348 (is_builtin_fn): New.
3349 * except.c (output_ttype): Only call
3350 lookup_type_for_runtime if TYPE is not a runtime type.
3352 * passes.c (register_pass): Call position_pass on
3353 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3354 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3355 (TV_IPA_LTO_DECL_IO): Define.
3356 (TV_IPA_LTO_CGRAPH_IO): Define.
3358 (TV_WHOPR_WPA): Define.
3359 (TV_WHOPR_WPA_IO): Define.
3360 (TV_WHOPR_LTRANS): Define.
3361 (TV_WHOPR_WPA_FIXUP): Define.
3362 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3363 * tree-cfg.c (tree_node_can_be_shared): Make extern.
3364 * tree-flow.h (tree_node_can_be_shared): Declare.
3365 * tree-inline.c (tree_can_inline_p): Check that E has a
3366 statement associated with it.
3367 * tree.c (free_lang_data_in_binf): Factor out of ...
3368 (free_lang_data_in_type): ... here.
3369 Call RECORD_OR_UNION_TYPE_P.
3370 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3371 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
3372 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3373 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
3374 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
3375 (gate_free_lang_data): Return true if flag_generate_lto is set.
3376 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3377 * c-common.h (set_builtin_user_assembler_name): Move ...
3378 * tree.h (set_builtin_user_assembler_name): ... here.
3380 * common.opt (flto-report): New flag.
3381 * opts.c (complain_wrong_lang): Do not complain if running lto1.
3382 * collect2.c (scan_prog_file): Send the error output of
3383 'nm' to HOST_BIT_BUCKET.
3385 2009-10-03 Ollie Wild <aaw@google.com>
3387 * langhooks-def.h (lhd_begin_section): New function declaration.
3388 (lhd_write_section): New function declaration.
3389 (lhd_end_section): New function declaration.
3390 (LANG_HOOKS_BEGIN_SECTION): New macro.
3391 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3392 (LANG_HOOKS_END_SECTION): New macro.
3393 (LANG_HOOKS_LTO): New macro.
3394 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3395 * langhooks.c (output.h): Add include.
3396 (saved_section): New static variable.
3397 (lhd_begin_section): New function.
3398 (lhd_write_section_data): New function.
3399 (lhd_end_section): New function.
3400 * langhooks.h (struct lang_hooks_for_lto): New structure.
3401 (struct lang_hooks): Add member lto.
3402 * Makefile.in (langhooks.o): Add dependency on output.h.
3404 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3406 2009-10-03 Richard Guenther <rguenther@suse.de>
3408 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3411 2009-10-03 Simon Baldwin <simonb@google.com>
3412 Richard Guenther <rguenther@suse.de>
3413 Janis Johnson <janis187@us.ibm.com>
3414 Doug Kwan <dougkwan@google.com>
3415 Diego Novillo <dnovillo@google.com>
3416 Ramana Radhakrishnan <ramana.r@gmail.com>
3417 Ollie Wild <aaw@google.com>
3419 * doc/install.texi: Add documentation for libelf and --enable-lto.
3420 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3421 -flto-report, -flto-compression-level and -use-linker-plugin.
3422 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
3423 Add section for LTO Testing.
3425 2009-10-02 Cary Coutant <ccoutant@google.com>
3427 Add support for comdat type sections for DWARF v4.
3428 Merge from dwarf4 branch.
3430 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3431 (dw_die_ref): Define vector type.
3432 (enum dw_val_class): Add dw_val_class_data8.
3433 (struct dw_val_struct): Add v.val_data8.
3434 (comdat_type_node_ref): New type.
3435 (struct die_struct): Move die_symbol into a union; add new field
3436 die_type_node. Change all uses.
3437 (comdat_type_node): New type.
3438 (skeleton_chain_node): New type.
3439 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3440 (comdat_type_list): New variable.
3441 (dwarf_tag_name): Add DW_TAG_type_unit.
3442 (dwarf_attr_name): Add DW_AT_signature.
3443 (add_AT_data8): New function.
3444 (replace_child): New function.
3445 (move_all_children): New function.
3446 (print_signature): New function.
3447 (print_die): Print signature information; add dw_val_class_data8.
3448 (attr_checksum): Support dw_val_class_data8.
3449 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3450 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3451 (checksum_sleb128, checksum_uleb128): New functions.
3452 (checksum_die_context): New function.
3453 (loc_checksum_ordered): New function.
3454 (attr_checksum_ordered): New function.
3455 (struct checksum_attributes): New structure.
3456 (collect_checksum_attributes): New function.
3457 (die_checksum_ordered): New function.
3458 (generate_type_signature): New function.
3459 (same_dw_val_p): Add dw_val_class_data8.
3460 (is_symbol_die): Use new is_declaration_die function.
3461 (is_declaration_die): New function.
3462 (should_move_die_to_comdat): New function.
3463 (clone_die): New function.
3464 (clone_tree): New function.
3465 (clone_as_declaration): New function.
3466 (copy_declaration_context): New function.
3467 (generate_skeleton_ancestor_tree): New function.
3468 (generate_skeleton_bottom_up): New function.
3469 (generate_skeleton): New function.
3470 (remove_child_or_replace_with_skeleton): New function.
3471 (break_out_comdat_types): New function.
3472 (struct decl_table_entry): New type.
3473 (htab_decl_hash): New function.
3474 (htab_decl_eq): New function.
3475 (htab_decl_del): New function.
3476 (copy_ancestor_tree): New function.
3477 (copy_decls_walk): New function.
3478 (copy_decls_for_unworthy_types): New function.
3479 (build_abbrev_table): Don't assert on missing die_symbol when doing
3480 comdat type sections.
3481 (size_of_die): Use DW_FORM_sig8 for external references. Add
3483 (unmark_dies): Don't assert for unmarked dies when doing comdat
3485 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3486 (output_signature): New function.
3487 (output_die): Likewise.
3488 (output_compilation_unit_header): Mark output as DWARF version 3
3489 even if generating DWARF 4.
3490 (output_comdat_type_unit): New function.
3491 (output_line_info): Mark output as DWARF version 3 even if generating
3493 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3495 (dwarf2out_end_source_file): Likewise.
3496 (prune_unused_types_walk_attribs): Don't follow references into
3497 comdat type sections.
3498 (prune_unused_types_mark): When generating type units, do not mark
3499 children of non-defining declarations of types; do mark children of
3501 (prune_unused_types): Process comdat type sections.
3502 (htab_ct_hash): New function.
3503 (htab_ct_eq): New function.
3504 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3505 Add a pointer to the line table from type unit entries so
3506 DW_AT_decl_file has meaning.
3507 * varasm.c (default_elf_asm_named_section): Use identifier name as
3508 comdat key instead of lang hook.
3510 2009-10-02 Neil Vachharajani <nvachhar@google.com>
3512 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3514 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
3516 * config/i386/i386.md (SWIM248): New mode iterator.
3517 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3518 divmodhi4 patterns using SWIM248 macro.
3519 (*divmod<mode>4): Macroize insn_and_split pattern from
3520 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3521 and their corresponding splitters usign SWIM248 macro. Split SImode
3522 insn to generate cltd and DImode insn to generate cqto instead of
3523 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3524 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3525 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3526 *divmodsi_noext patterns using SWIM248 macro.
3527 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3528 udivmodhi4 patterns using SWIM248 macro.
3529 (*udivmod<mode>4): Macroize insn_and_split pattern from
3530 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3531 corresponding splitters using SWIM248 macro.
3532 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3533 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3535 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
3537 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3538 of zero-sized element is zero-sized regardless of its extent.
3540 2009-10-02 Jakub Jelinek <jakub@redhat.com>
3543 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3544 * configure: Regenerated.
3545 * config.in: Regenerated.
3546 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3547 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3548 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3549 not emitting .eh_frame, emit .cfi_sections .debug_frame
3554 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3555 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3557 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3558 vars use DECL_RTL with resetting it back to NULL afterwards.
3559 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3560 rtx_equal_p instead of asserting it is a SYMBOL_REF.
3561 (value_format): For dw_val_class_addr only use DW_FORM_addr if
3562 the attribute type allows it, otherwise use DW_FORM_dataN.
3563 (mem_loc_descriptor): Handle CONST_STRING.
3564 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3565 Handle MEM with CONST_STRING address using add_AT_string.
3566 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3567 CONST_STRING for const arrays initialized with a string literal.
3568 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3569 (dwarf2out_finish): Call resolve_addr.
3571 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
3572 Maxim Kuvyrkov <maxim@codesourcery.com>
3574 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3576 2009-10-02 Nick Clifton <nickc@redhat.com>
3578 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3579 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3581 2009-10-01 Jan Hubicka <jh@suse.cz>
3583 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3584 (cgraph_create_virtual_clone): Just pass redirect_callers
3586 * cgraph.h (cgraph_clone_node): Update prototype.
3587 * ipa-pure-const.c (self_recursive_p): New function.
3588 (propagate): Use it.
3589 * ipa-inline.c (cgraph_clone_inlined_nodes,
3590 cgraph_decide_recursive_inlining): Update.
3592 2009-10-01 David Daney <ddaney@caviumnetworks.com>
3594 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3595 instructions for TARGET_OCTEON.
3597 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3599 * config/arm/arm.c (arm_override_options): Turn off
3600 flag_dwarf2_cfi_asm for AAPCS variants.
3602 2009-10-01 Martin Jambor <mjambor@suse.cz>
3605 * tree-sra.c (convert_callers): Do not call
3606 compute_inline_parameters on one caller more than once.
3608 2009-10-01 Nick Clifton <nickc@redhat.com>
3610 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3611 an empty string if not already defined.
3613 2009-10-01 Martin Jambor <mjambor@suse.cz>
3616 * tree-sra.c (is_va_list_type): New function.
3617 (find_var_candidates): Call is_va_list_type.
3618 (find_param_candidates): Check that the type or the type pointed
3619 to are not va_list types.
3621 2009-10-01 Martin Jambor <mjambor@suse.cz>
3624 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3625 DECL_ARTIFICIAL (param_decl) is true.
3627 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
3629 * tree.h (tree_decl_common::lang_flag_8): New.
3630 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
3632 * c-common.h (RID_CONSTEXPR): New.
3634 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
3636 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3637 Use ref-all pointers.
3638 (alpha_gimplify_va_arg): Ditto.
3640 2009-09-30 Jakub Jelinek <jakub@redhat.com>
3643 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3644 before insn counting loop now that BB_END (bb) is counted. Ensure
3645 the return value isn't zero.
3647 2009-09-30 Nick Clifton <nickc@redhat.com>
3649 * config.gcc (sh-symbianelf): Replace definition of extra_objs
3650 with separate definitions of c_target_objs and cxx_target_objs.
3651 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3653 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3654 sh_symbian_import_export_class.
3655 * config/sh/sh-protos.h: Fix names of exported symbian functions.
3656 * config/sh/symbian.c: Delete, moving code into...
3657 * config/sh/symbian-base.c: ... here
3658 * config/sh/symbian-c.c: ... and here
3659 * config/sh/symbian-cxx.c: ... and here.
3661 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
3664 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3665 of plus RTX into register.
3667 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3669 * doc/install.texi: Linguistic and markup fixes.
3670 (Configuration) <--disable-cpp>: Remove description.
3671 <--enable-maintainer-mode>: Autotools files are affected, too.
3672 <--with-sysroot>: Improve description.
3673 (Building): Bump required GNU make version.
3675 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3677 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3678 (x86_64-*-*): Ditto.
3680 * config/i386/fma4intrin.h: New file, provide common x86 compiler
3681 intrinisics for FMA4.
3682 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3683 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3684 Add FMA4 check and fma4intrin.h.
3685 * config/i386/i386-c.c(ix86_target_macros_internal): Check
3687 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3688 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3689 constant for FMA4 support.
3690 (UNSPEC_FMA4_FMADDSUB): Ditto.
3691 (UNSPEC_FMA4_FMSUBADD): Ditto.
3692 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
3693 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
3694 (ix86_expand_fma4_multiple_memory): Ditto.
3695 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
3696 (OPTION_MASK_ISA_FMA4_UNSET): New.
3697 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3698 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
3699 (ix86_handle_option): Handle -mfma4.
3700 (isa_opts): Handle -mfma4.
3701 (enum pta_flags): Add PTA_FMA4.
3702 (override_options): Add FMA4 support.
3703 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3704 (IX86_BUILTIN_VFMADDSD): Ditto.
3705 (IX86_BUILTIN_VFMADDPS): Ditto.
3706 (IX86_BUILTIN_VFMADDPD): Ditto.
3707 (IX86_BUILTIN_VFMSUBSS): Ditto.
3708 (IX86_BUILTIN_VFMSUBSD): Ditto.
3709 (IX86_BUILTIN_VFMSUBPS): Ditto.
3710 (IX86_BUILTIN_VFMSUBPD): Ditto.
3711 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3712 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3713 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3714 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3715 (IX86_BUILTIN_VFNMADDSS): Ditto.
3716 (IX86_BUILTIN_VFNMADDSD): Ditto.
3717 (IX86_BUILTIN_VFNMADDPS): Ditto.
3718 (IX86_BUILTIN_VFNMADDPD): Ditto.
3719 (IX86_BUILTIN_VFNMSUBSS): Ditto.
3720 (IX86_BUILTIN_VFNMSUBSD): Ditto.
3721 (IX86_BUILTIN_VFNMSUBPS): Ditto.
3722 (IX86_BUILTIN_VFNMSUBPD): Ditto.
3723 (IX86_BUILTIN_VFMADDPS256): Ditto.
3724 (IX86_BUILTIN_VFMADDPD256): Ditto.
3725 (IX86_BUILTIN_VFMSUBPS256): Ditto.
3726 (IX86_BUILTIN_VFMSUBPD256): Ditto.
3727 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3728 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3729 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3730 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3731 (IX86_BUILTIN_VFNMADDPS256): Ditto.
3732 (IX86_BUILTIN_VFNMADDPD256): Ditto.
3733 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3734 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3735 (enum multi_arg_type): New enum for describing the various FMA4
3736 intrinsic argument types.
3737 (bdesc_multi_arg): New table for FMA4 intrinsics.
3738 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3739 (ix86_expand_multi_arg_builtin): New function for creating FMA4
3741 (ix86_expand_builtin): Add FMA4 intrinsic support.
3742 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3743 operand instructions.
3744 (ix86_expand_fma4_multiple_memory): New function to split the
3745 second memory reference from FMA4 instructions.
3746 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3747 (ssemodesuffixf2s): Ditto.
3748 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3750 (fma4_fmsub<mode>4): Ditto.
3751 (fma4_fnmadd<mode>4): Ditto.
3752 (fma4_fnmsub<mode>4): Ditto.
3753 (fma4_vmfmadd<mode>4): Ditto.
3754 (fma4_vmfmsub<mode>4): Ditto.
3755 (fma4_vmfnmadd<mode>4): Ditto.
3756 (fma4_vmfnmsub<mode>4): Ditto.
3757 (fma4_fmadd<mode>4256): Ditto.
3758 (fma4_fmsub<mode>4256): Ditto.
3759 (fma4_fnmadd<mode>4256): Ditto.
3760 (fma4_fnmsub<mode>4256): Ditto.
3761 (fma4_fmaddsubv8sf4): Ditto.
3762 (fma4_fmaddsubv4sf4): Ditto.
3763 (fma4_fmaddsubv4df4): Ditto.
3764 (fma4_fmaddsubv2df4): Ditto.
3765 (fma4_fmsubaddv8sf4): Ditto.
3766 (fma4_fmsubaddv4sf4): Ditto.
3767 (fma4_fmsubaddv4df4): Ditto.
3768 (fma4_fmsubaddv2df4): Ditto.
3769 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3770 instructions for intrinsics.
3771 (fma4i_fmsub<mode>4): Ditto.
3772 (fma4i_fnmadd<mode>4): Ditto.
3773 (fma4i_fnmsub<mode>4): Ditto.
3774 (fma4i_vmfmadd<mode>4): Ditto.
3775 (fma4i_vmfmsub<mode>4): Ditto.
3776 (fma4i_vmfnmadd<mode>4): Ditto.
3777 (fma4i_vmfnmsub<mode>4): Ditto.
3778 (fma4i_fmadd<mode>4256): Ditto.
3779 (fma4i_fmsub<mode>4256): Ditto.
3780 (fma4i_fnmadd<mode>4256): Ditto.
3781 (fma4i_fnmsub<mode>4256): Ditto.
3782 (fma4i_fmaddsubv8sf4): Ditto.
3783 (fma4i_fmaddsubv4sf4): Ditto.
3784 (fma4i_fmaddsubv4df4): Ditto.
3785 (fma4i_fmaddsubv2df4): Ditto.
3786 (fma4i_fmsubaddv8sf4): Ditto.
3787 (fma4i_fmsubaddv4sf4): Ditto.
3788 (fma4i_fmsubaddv4df4): Ditto.
3789 (fma4i_fmsubaddv2df4): Ditto.
3791 * doc/invoke.texi (-mfma4): Add documentation.
3792 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3794 2009-09-29 Richard Henderson <rth@redhat.com>
3796 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3797 an edge to the new destination block.
3799 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3802 * pa.c (hppa_profile_hook): Use
3803 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3805 2009-09-29 Steve Ellcey <sje@cup.hp.com>
3806 Alexander Monakov <amonakov@ispras.ru>
3809 * config/ia64/predicates.md (not_postinc_destination_operand): New.
3810 (not_postinc_memory_operand): New.
3811 (not_postinc_move_operand): New.
3812 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3813 (*cmovsi_internal): Ditto.
3815 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
3817 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3818 restrict issue_rate in first pass when scheduling for register
3821 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
3822 Rafael Avila de Espindola <espindola@google.com>
3824 * gengtype.c (plugin_output): New.
3825 (get_output_file_with_visibility): Return plugin_output for plugins.
3826 (main): Parse and use the -P option.
3827 * gty.texi: Update the command line format.
3829 2009-09-29 Jakub Jelinek <jakub@redhat.com>
3832 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3834 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3835 out if !const_ok_for_output.
3838 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3839 case VAR_LOCATION>: Remove gcc_unreachable ().
3841 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3843 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
3844 (x86_64-*-*): Ditto.
3845 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3846 back to smmintrin.h.
3847 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
3848 * config/i386/x86intrin.h: Remove SSE5.
3849 * config/i386/mmintrin-common.h: Delete file.
3850 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
3852 2009-09-29 Richard Guenther <rguenther@suse.de>
3854 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3855 resulting from stack temporaries on STRICT_ALIGNMENT targets.
3857 2009-09-29 Nick Clifton <nickc@redhat.com>
3859 * function.c (current_function_name): If there is no current
3860 function just return "<none>".
3862 2009-09-28 Sriraman Tallam <tmsriram@google.com>
3864 * tree-pass.h (register_pass_info): New structure.
3865 (pass_positioning_ops): Move enum from gcc-plugin.h.
3866 (register_pass): New function.
3867 * gcc-plugin.h (plugin_pass): Delete structure.
3868 (pass_positioning_ops): Delete enum.
3869 * plugin.c (regsiter_pass): Delete function.
3870 (position_pass): Delete function.
3871 (added_pass_nodes): Delete variable.
3872 (prev_added_pass_nodes): Delete variable.
3873 (pass_list_node): Delete structure.
3874 * passes.c (make_pass_instance): New function.
3875 (next_pass_1): Change to call make_pass_instance.
3876 (pass_list_node): Move structure from gcc-plugin.h.
3877 (added_pass_nodes): Move variable from plugin.c.
3878 (prev_added_pass_nodes): Move variable from plugin.c.
3879 (position_pass): New function.
3880 (register_pass): New function.
3882 2009-09-28 Easwaran Raman <eraman@google.com>
3884 * ifcvt.c (noce_try_abs): Recognize pattern and call
3885 expand_one_cmpl_abs_nojump.
3886 * optabs.c (expand_one_cmpl_abs_nojump): New function.
3887 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3889 2009-09-28 Ian Lance Taylor <iant@google.com>
3892 * c-opts.c (c_common_handle_option): Don't set
3893 warn_jump_misses_init for -Wall.
3894 * doc/invoke.texi (Warning Options): Update documentation.
3896 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3898 * Makefile.in ($(out_object_file)): Depend on
3899 gt-$(basename $(notdir $(out_file))).h.
3901 2009-09-28 Richard Henderson <rth@redhat.com>
3903 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3904 * except.c (gen_eh_region): Set it.
3905 (duplicate_eh_regions_1): Copy it.
3906 * tree-eh.c (lower_resx): Use it to determine which function
3909 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3910 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3911 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3912 * tree.c (build_common_builtin_nodes): Remove parameter. Build
3913 BUILT_IN_CXA_END_CLEANUP if necessary.
3915 * c-common.c (c_define_builtins): Update call to
3916 build_common_builtin_nodes.
3918 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3920 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3922 2009-09-28 Michael Matz <matz@suse.de>
3924 * builtins.c (interclass_mathfn_icode): New helper.
3925 (expand_builtin_interclass_mathfn): Use it here, and split folding
3927 (fold_builtin_interclass_mathfn): ... this new folder.
3928 (build_call_nofold_loc): New static helper.
3929 (build_call_nofold): New wrapper macro for above.
3930 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3931 (expand_builtin_pow): Ditto.
3932 (expand_builtin_memset_args): Ditto.
3933 (expand_builtin_printf): Ditto.
3934 (expand_builtin_fprintf): Ditto.
3935 (expand_builtin_sprintf): Ditto.
3936 (expand_builtin_memory_chk): Ditto.
3937 (expand_builtin_mempcpy_args): Ditto and don't call folders.
3938 (expand_builtin_stpcpy): Ditto.
3939 (expand_builtin_strcmp): Ditto.
3940 (expand_builtin_strncmp): Ditto.
3941 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3942 (expand_builtin_strcpy_args): Don't call folders.
3943 (expand_builtin_memcmp): Ditto.
3944 (expand_builtin_strncpy): Ditto, and use target.
3945 (expand_builtin_memcpy): Ditto.
3946 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3947 expand_builtin_strpbrk, expand_builtin_memmove,
3948 expand_builtin_memmove_args, expand_builtin_bcopy,
3949 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3950 expand_builtin_strspn, expand_builtin_strcspn,
3951 expand_builtin_fputs): Remove these.
3952 (expand_builtin): Don't call the above, change calls to other
3953 expanders that changed prototype.
3954 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3955 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3956 fold_builtin_interclass_mathfn.
3957 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3958 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3960 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3961 * passes.c (init_optimization_passes): Move pass_fold_builtins
3962 after last phiopt pass.
3963 * tree-inline.c (fold_marked_statements): When folding builtins
3964 iterate over all instruction potentially generated.
3965 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3967 (fold_gimple_call): Use it to always fold calls (into potentially
3968 multiple instructions).
3969 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3970 calls into zero at this time.
3971 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
3972 statements generated by builtin folding.
3974 2009-09-28 Nick Clifton <nickc@redhat.com>
3976 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
3978 2009-09-28 Duncan Sands <baldrick@free.fr>
3980 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3981 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3982 (register_callback): Dispatch it.
3983 (invoke_plugin_callbacks): Incorporate in sanity check.
3984 * ggc.h (ggc_register_cache_tab): Add declaration.
3985 * ggc-common.c (ggc_register_root_tab): Simplify.
3986 (const_ggc_cache_tab_t): New typedef.
3987 (extra_cache_vec): New vector of dynamically added cache tables.
3988 (ggc_register_cache_tab): New function.
3989 (ggc_scan_cache_tab): New function.
3990 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
3991 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3993 2009-09-27 Richard Henderson <rth@redhat.com>
3995 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3996 which we remove __builtin_stack_restore.
3998 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
4000 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
4001 to test for GRD_INVARIANT.
4002 (simple_rhs_p): Anything that's function_invariant_p is fine.
4004 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
4006 * gengtype.c (main): Use plunge_files instead of plugin_output.
4008 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
4009 Rafael Avila de Espindola <espindola@google.com>
4011 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
4012 Don't print pch related info if it is false.
4013 (main): Don't print pch info in plugin mode.
4015 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
4017 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
4018 with dw_val_class_const_double.
4019 (struct dw_val_struct): Replace val_long_long with val_double and
4020 adjust for above change.
4021 (output_loc_operands): Likewise.
4022 (add_AT_long_long): Rename into...
4023 (add_AT_double): ...this.
4024 (print_die): Replace dw_val_class_long_long with
4025 dw_val_class_const_double and adjust.
4026 (attr_checksum): Likewise.
4027 (same_dw_val_p): Likewise.
4028 (size_of_die): Likewise.
4029 (value_format): Likewise.
4030 (output_die): Likewise.
4031 (loc_descriptor) <CONST_DOUBLE>: Likewise.
4032 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
4033 instead of add_AT_long_long.
4034 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
4035 value with the precision of its type.
4037 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
4040 * c-typeck.c (build_conditional_expr): Use the readonly and
4041 volatile flags of the operand types, not of the operands itself.
4043 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
4045 * collect2.c (main): Look for -brtl before adding libraries.
4047 2009-09-27 Jonathan Gray <jsg@openbsd.org>
4049 * config.gcc: Update OpenBSD targets.
4050 * config/openbsd-stdint.h: New file.
4051 * config/openbsd-libpthread.h: New file.
4052 * config/openbsd.h: Update and break out LIB_SPEC definition.
4053 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
4054 * config/i386/openbsdelf.h: Correct types.
4055 * config/m68k/openbsd.h: Likewise.
4056 * config/mips/openbsd.h: Likewise.
4057 * config/vax/openbsd.h: Likewise.
4059 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
4061 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
4062 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
4063 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
4064 of the length and zero.
4066 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4068 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
4069 (FLAGS_H): Add options.h $(REAL_H).
4070 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
4071 (TREE_VECTORIZER_H): New.
4072 (EBITMAP_H): Renamed from EBIMAP_H.
4073 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
4074 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
4075 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
4076 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
4077 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
4078 (graphite-clast-to-gimple.o, graphite-dependences.o)
4079 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
4080 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
4081 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
4082 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
4083 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
4084 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
4085 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
4086 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
4087 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
4088 updated and fixed as per above changes and per
4089 check_makefile_deps.sh output.
4092 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
4093 * configure: Regenerate.
4095 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4097 * doc/install.texi: Update minimum MPC version to 0.7.
4099 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
4101 * doc/install.texi (Binaries): Remove reference to the binary
4102 distribution CD-ROM from the FSF.
4104 2009-09-26 Michael Matz <matz@suse.de>
4108 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
4109 that are mentioned in the body.
4111 2009-09-26 Michael Matz <matz@suse.de>
4113 PR tree-optimization/41454
4114 * tree-ssa-dom (stmts_to_rescan): Remove variable.
4115 (tree_ssa_dominator_optimize): Don't allocate and free it.
4116 (dom_opt_leave_block): Don't iterate over it.
4117 (eliminate_redundant_computations): Don't return a value.
4118 (cprop_operand, cprop_into_stmt): Ditto.
4119 (optimize_stmt): Don't defer updating stmts.
4121 2009-09-25 Dodji Seketeli <dodji@redhat.com>
4123 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4124 generic_parameter_die, template_parameter_pack_die,
4125 gen_formal_parameter_die, gen_subprogram_die): Adjust after
4126 renaming DW_TAG_formal_parameter_pack and
4127 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4128 and DW_TAG_GNU_template_parameter_pack.
4130 2009-09-25 Anatoly Sokolov <aesok@post.ru>
4132 * config/v850/v850.h (FUNCTION_VALUE): Remove.
4133 * config/v850/v850.c (v850_function_value): New function.
4134 (TARGET_FUNCTION_VALUE): Define.
4136 2009-09-25 Jakub Jelinek <jakub@redhat.com>
4138 * tree-vect-stmts.c (vectorizable_call): Call
4139 mark_symbols_for_renaming after vect_finish_stmt_generation.
4141 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4142 to loc_descriptor_from_tree.
4143 (add_location_or_const_value_attribute): Pass 0 instead of 2
4144 for decl_by_reference_p decls.
4146 2009-09-25 Richard Guenther <rguenther@suse.de>
4149 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4152 2009-09-25 Ben Elliston <bje@au.ibm.com>
4154 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4157 2009-09-25 Alan Modra <amodra@bigpond.net.au>
4159 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4160 form of instruction.
4162 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4165 * fold-const.c (const_binop): Handle complex int division.
4166 * tree-complex.c (expand_complex_div_straight,
4167 expand_complex_div_wide): Update comments.
4169 2009-09-24 DJ Delorie <dj@redhat.com>
4172 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4173 (reg_class): Likewise.
4174 (REG_CLASS_NAMES): Likewise.
4175 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4176 (m32c_override_options): Disable -fivopts for M32C.
4178 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4180 * config/rs6000/predicates.md (indexed_or_indirect_operand):
4181 Delete VSX load/store with update support.
4182 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4183 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4187 (VStype_load_update): Ditto.
4188 (VStype_store_update): Ditto.
4189 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4190 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4192 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4193 load/store with update builtins.
4195 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
4197 * libgcc2.c (L_trampoline): Prototype for getpagesize
4198 and mprotect in WINNT case.
4200 2009-09-24 Anatoly Sokolov <aesok@post.ru>
4202 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4203 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4204 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4205 'outgoing' argument.
4206 (TARGET_FUNCTION_VALUE): Define.
4208 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4210 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4212 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4215 * common.opt: Initialize dwarf_strict to -1.
4216 * toplev.c (process_options): Catch unset dwarf_strict
4217 and set to 0 for all targets not overriding.
4218 * config/darwin.c (darwin_override_options): Catch unset
4219 dwarf_strict and override to 1.
4221 2009-09-24 Jeff Law <law@redhat.com>
4223 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4225 2009-09-24 Richard Guenther <rguenther@suse.de>
4227 PR tree-optimization/36143
4228 PR tree-optimization/38747
4229 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4230 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4232 2009-09-24 Jakub Jelinek <jakub@redhat.com>
4235 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4236 return false instead of gcc_unreachable (). For CONST return the
4237 value returned by recursive call instead of always returning true.
4238 (tree_add_const_value_attribute): Return the value returned by
4239 add_const_value_attribute instead of always returning true if rtl
4242 2009-09-23 Justin Seyster <jrseys@gmail.com>
4244 * Makefile.in (PLUGIN_HEADERS): Include real.h.
4246 2009-09-24 Jakub Jelinek <jakub@redhat.com>
4248 * cgraphunit.c (cgraph_lower_function): Revert last change.
4249 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4250 instead of DECL_NO_STATIC_CHAIN.
4251 * tree-cfg.c (verify_gimple_call): Likewise.
4252 * tree-nested.c (get_chain_decl, get_chain_field,
4253 convert_tramp_reference_op, convert_gimple_call): Likewise.
4254 (convert_all_function_calls): Likewise. Always set or clear
4255 DECL_STATIC_CHAIN initially, for !n->outer clear it.
4256 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4257 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4259 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4260 DECL_NO_STATIC_CHAIN.
4261 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4262 instead of DECL_NO_STATIC_CHAIN.
4263 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
4264 decl_function_context.
4265 * varasm.c (initializer_constant_valid_p): Likewise.
4266 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4267 (DECL_STATIC_CHAIN): ... this.
4268 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4269 instead of DECL_NO_STATIC_CHAIN.
4271 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
4272 Rafael Avila de Espindola <espindola@google.com>
4274 * gengtype.c (nb_plugin_files): Make it unsigned to match
4275 num_gt_files. Adjust other variables to avoid warnings.
4276 (main): Allocate an all zero lang_bitmap before each plugin file name
4277 to match regular file names.
4279 2009-09-23 Richard Henderson <rth@redhat.com>
4281 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4282 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4283 static chain passed in memory.
4284 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4285 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4286 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
4287 STATIC_CHAIN_REGNUM defined.
4289 * config/picochip/picochip-protos.h: s/class/klass/.
4290 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4291 (picochip_static_chain): New.
4292 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4293 (STATIC_CHAIN_INCOMING): Remove.
4295 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4296 (xtensa_static_chain): New.
4297 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4298 (STATIC_CHAIN_INCOMING): Remove.
4300 2009-09-23 Anatoly Sokolov <aesok@post.ru>
4302 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4303 * config/pa/pa-protos.h (function_value): Remove.
4304 * config/pa/pa.c (pa_function_value): Rename from function_value.
4305 Make static, add 'outgoing' argument.
4306 (TARGET_FUNCTION_VALUE): Define.
4308 2009-09-23 Anatoly Sokolov <aesok@post.ru>
4310 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4311 instead of cfun->machine->is_leaf.
4312 * config/avr/avr.h (machine_function): Remove is_leaf field.
4314 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4317 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4318 DW_OP_piece after DW_OP_stack_value, adjust size calculations
4319 for it, when DW_OP_stack_value and DW_OP_implicit_value has
4320 the same size, prefer DW_OP_stack_value.
4321 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4322 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4324 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
4327 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4329 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
4332 * cfgexpand.c (convert_debug_memory_address): New.
4333 (expand_debug_expr): Convert base address and offset to the same
4334 mode. Use it to convert addresses to other modes. Accept
4337 2009-09-23 Richard Guenther <rguenther@suse.de>
4339 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4340 produced for bigendian targets with promoted subregs.
4342 2009-09-23 Richard Guenther <rguenther@suse.de>
4344 * value-prof.c (gimple_ic): Purge old EH edges only after building
4347 2009-09-23 Nick Clifton <nickc@redhat.com>
4349 * config/arc/arc.c (arc_trampoline_init): Fix typo.
4351 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4354 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4357 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4358 on non-nested functions.
4360 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4361 Jan Hubicka <jh@suse.cz>
4363 * dwarf2out.c (loc_list_plus_const): Only define if
4364 DWARF2_DEBUGGING_INFO.
4365 (address_of_int_loc_descriptor): Likewise.
4368 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4370 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
4373 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4374 constant is more than zero.
4376 2009-09-23 Alan Modra <amodra@bigpond.net.au>
4379 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4380 call final to emit non-scheduled prologue, instead insert at entry.
4382 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
4383 Joseph S. Myers <joseph@codesourcery.com>
4385 * doc/install.texi (*-*-freebsd*): Add proper format codes.
4387 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
4388 Rafael Avila de Espindola <espindola@google.com>
4390 * gengtype.c (is_file_equal): New function.
4391 (close_output_files): Use is_file_equal. Free of->buf.
4393 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
4394 Rafael Avila de Espindola <espindola@google.com>
4396 * gengtype.c (write_types, write_local): Add the output_header
4397 argument. Update all callers.
4399 2009-09-22 Dodji Seketeli <dodji@redhat.com>
4401 * dwarf2out.c (template_parameter_pack_die,
4402 gen_formal_parameter_pack_die ): New functions.
4403 (make_ith_pack_parameter_name): Remove this function.
4404 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4405 DW_TAG_formal_parameter_pack.
4406 (gen_generic_params_dies): Represent each template parameter pack
4407 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4408 represented by usual DW_TAG_template_*_parameter DIEs that are
4409 children of the DW_TAG_template_parameter_pack element DIE.
4410 (generic_parameter_die): This doesn't deal with parameter pack
4411 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4412 of parameter pack DIEs.
4413 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4414 in certain cases, e.g. for pack elements.
4415 (gen_formal_types_die, gen_decl_die): Adjust usage of
4416 gen_formal_parameter_die.
4417 (gen_subprogram_die): Represent each function parameter pack by a
4418 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4419 represented by usual DW_TAG_formal_parameter DIEs that are children
4420 of the DW_TAG_formal_parameter_pack DIE. Remove references to
4421 ____builtin_va_alist decls as no part of the compiler uses those
4423 * langhooks.h (struct lang_hooks_for_decls): Add
4424 function_parm_expanded_from_pack_p, get_generic_function_decl
4425 and function_parameter_pack_p hooks. Fix comment for
4426 get_innermost_generic_parms hook.
4427 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4428 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4429 macros and use them to initialize lang_hook.
4431 2009-09-22 Richard Henderson <rth@redhat.com>
4433 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4434 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4435 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4436 on TRAMPOLINE_TEMPLATE.
4437 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4438 TRAMPOLINE_ADJUST_ADDRESS.
4439 * targhooks.c (default_asm_trampoline_template): Remove.
4440 (default_trampoline_adjust_address): Remove.
4441 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4442 * targhooks.h: Update decls.
4444 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4446 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4447 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4448 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4450 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
4453 * reload1.c (reload): Reset debug insns with pseudos without
4456 2009-09-22 Janis Johnson <janis187@us.ibm.com>
4458 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4459 unconditional true for decimal float modes.
4460 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4461 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4463 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
4465 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4466 Enable a new case for __FreeBSD__ >= 7.
4467 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4468 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4469 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4470 and USE_LD_AS_NEEDED.
4472 * doc/install.texi (*-*-freebsd*): Update target information.
4474 2009-09-22 Richard Guenther <rguenther@suse.de>
4477 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4478 arrays really properly.
4480 2009-09-22 Richard Henderson <rth@redhat.com>
4483 * target.h (struct gcc_target): Add asm_out.trampoline_template,
4484 calls.static_chain, calls.trampoline_init,
4485 calls.trampoline_adjust_address.
4486 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4487 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4488 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4489 * builtins.c (expand_builtin_setjmp_receiver): Use
4490 targetm.calls.static_chain; only clobber registers.
4491 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4492 set up memory attributes properly for the trampoline block.
4493 (expand_builtin_adjust_trampoline): Use
4494 targetm.calls.trampoline_adjust_address.
4495 * calls.c (prepare_call_address): Add fndecl argument. Use
4496 targetm.calls.static_chain.
4497 * df-scan.c (df_need_static_chain_reg): Remove.
4498 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4499 consolodate static chain handling.
4500 * doc/tm.texi: Document new hooks.
4501 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4502 (init_emit_regs): Don't initialize them.
4503 * expr.h (prepare_call_address): Update decl.
4504 * final.c (profile_function): Use targetm.calls.static_chain.
4505 * function.c (expand_function_start): Likewise.
4506 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4507 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4508 only clobber registers.
4509 * targhooks.c (default_static_chain): New.
4510 (default_asm_trampoline_template, default_trampoline_init): New.
4511 (default_trampoline_adjust_address): New.
4512 * targhooks.h: Declare them.
4513 * varasm.c (assemble_trampoline_template): Use
4514 targetm.asm_out.trampoline_template. Make the memory block const
4517 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4518 alpha_initialize_trampoline. Make static. Merge VMS parameter
4519 differences into the TARGET_ABI_OPEN_VMS code block.
4520 (TARGET_TRAMPOLINE_INIT): New.
4521 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4522 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4523 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4524 (INITIALIZE_TRAMPOLINE): Remove.
4526 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4527 (TRAMPOLINE_TEMPLATE): Merge with ...
4528 (INITIALIZE_TRAMPOLINE): ... this and move ...
4529 * config/arc/arc.c (arc_trampoline_init): ... here.
4530 (TARGET_TRAMPOLINE_INIT): New.
4532 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4533 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4534 (arm_asm_trampoline_template): New.
4535 (arm_trampoline_init, arm_trampoline_adjust_address): New.
4536 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4537 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4538 code to arm_asm_trampoline_template.
4539 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4540 arm_trampoline_adjust_address.
4541 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4542 adjust for target hook parameters.
4544 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4547 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4548 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4549 (bfin_trampoline_init): Rename from initialize_trampoline;
4550 make static; update for target hook parameters.
4551 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4552 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4553 bfin_asm_trampoline_template.
4554 (INITIALIZE_TRAMPOLINE): Remove.
4556 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4557 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4558 cris_trampoline_init): New.
4559 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4560 cris_asm_trampoline_template.
4561 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4562 adjust for target hook parameters.
4564 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4566 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4567 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4568 fr30_trampoline_init): New.
4569 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4570 fr30_asm_trampoline_template.
4571 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4572 adjust for target hook parameters.
4574 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4575 (frv_trampoline_init): Rename from frv_initialize_trampoline;
4576 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4577 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4578 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4580 * config/h8300/h8300.c (h8300_trampoline_init): New.
4581 (TARGET_TRAMPOLINE_INIT): New.
4582 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4583 to h8300_trampoline_init and adjust for hook parameters.
4585 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4586 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4587 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4588 make static; adjust for hook parameters.
4589 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4591 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4592 (TARGET_TRAMPOLINE_INIT): New.
4593 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4594 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4595 iq2000_asm_trampoline_template.
4596 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4597 (TRAMPOLINE_CODE_SIZE): New.
4598 (TRAMPOLINE_SIZE): Use it.
4599 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4601 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4602 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4603 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4604 adjust for hook parameters.
4605 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4607 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4608 (m32r_trampoline_init): New.
4609 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4610 m32r_trampoline_init.
4612 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4613 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4614 make static; update for hook parameters.
4615 * config/m68hc11/m68hc11-protos.h: Update.
4616 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4618 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4619 (TARGET_TRAMPOLINE_INIT): New.
4620 (mcore_function_value): Fix typo.
4621 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
4622 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
4623 to mcore_asm_trampoline_template.
4624 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4626 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4627 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4628 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4629 update for hook parameters.
4630 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4632 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4633 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4634 mips_trampoline_init): New.
4635 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4636 mips_asm_trampoline_template.
4637 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4638 update for hook parameters.
4640 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4641 (TARGET_TRAMPOLINE_INIT): New.
4642 (mmix_trampoline_size): Remove.
4643 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4644 make static. Remove out-of-date tetra vs octa comment.
4645 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4646 make static; update for hook parameters.
4647 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4648 (INITIALIZE_TRAMPOLINE): Remove.
4649 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4650 (TRAMPOLINE_ALIGNMENT): New.
4651 * gcc/config/mmix/mmix-protos.h: Update.
4653 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4654 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4655 mn10300_trampoline_init): New.
4656 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4657 mn10300_asm_trampoline_template.
4658 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4660 * config/moxie/moxie.c (moxie_static_chain,
4661 moxie_asm_trampoline_template, moxie_trampoline_init,
4662 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4663 TARGET_TRAMPOLINE_INIT): New.
4664 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4665 moxie_trampoline_init.
4666 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4667 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4669 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4670 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4671 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4672 pa_trampoline_adjust_address): New.
4673 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4674 pa_asm_trampoline_template.
4675 (TRAMPOLINE_ALIGNMENT): New.
4676 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4677 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4678 adjust for hook parameters.
4679 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4681 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4682 (TARGET_TRAMPOLINE_INIT): New.
4683 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4684 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4686 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4688 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4689 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4690 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4691 make static; adjust parameters for the hook.
4692 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4694 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4695 s390_trampoline_template; make static.
4696 (s390_trampoline_init): Rename from s390_initialize_trampoline;
4697 make static; adjust for target hook.
4698 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4699 * config/s390/s390-protos.h: Remove trampoline decls.
4700 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4701 (TRAMPOLINE_TEMPLATE): Remove.
4702 (TRAMPOLINE_ALIGNMENT): New.
4704 * config/score/score-protos.h (score_initialize_trampoline): Remove.
4705 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4706 (TARGET_TRAMPOLINE_INIT): New.
4707 (score_asm_trampoline_template): New.
4708 (score_trampoline_init): Rename from score_initialize_trampoline;
4709 make static; adjust for hook parameters.
4710 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4711 score[37]_asm_trampoline_template.
4712 (INITIALIZE_TRAMPOLINE): Remove.
4713 * config/score/score3.c (score3_asm_trampoline_template): New.
4714 (score3_trampoline_init): Rename from score3_initialize_trampoline;
4715 adjust for target hook.
4716 * config/score/score7.c (score7_asm_trampoline_template): New.
4717 (score7_trampoline_init): Rename from score7_initialize_trampoline;
4718 adjust for target hook.
4719 * config/score/score3.h, config/score/score7.h: Update.
4721 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4722 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4723 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4724 (sh_trampoline_init): Rename from sh_initialize_trampoline;
4725 make static; adjust for target hook parameters.
4726 (sh_trampoline_adjust_address): New.
4727 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4728 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4730 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4731 (sparc32_initialize_trampoline): Rename from
4732 sparc_initialize_trampoline; make static; replace tramp parameter
4733 with m_tramp and update memory accesses.
4734 (sparc64_initialize_trampoline): Similarly.
4735 (sparc_trampoline_init): New.
4736 * config/sparc/sparc-protos.h: Remove trampoline decls.
4737 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4738 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4740 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4741 (array_to_constant): Make ARR parameter const.
4742 (spu_trampoline_init): Rename from spu_initialize_trampoline;
4743 make static; update for hook parameters.
4744 * config/spu/spu-protos.h: Update decls.
4745 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4747 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4748 from xstormy16_initialize_trampoline; make static; update for
4750 (TARGET_TRAMPOLINE_INIT): New.
4751 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4753 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4754 (TARGET_TRAMPOLINE_INIT): New.
4755 (v850_can_eliminate): Make static.
4756 (v850_asm_trampoline_template, v850_trampoline_init): New.
4757 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4758 v850_asm_trampoline_template.
4759 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4760 and adjust for target hook parameters.
4762 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4763 (TARGET_TRAMPOLINE_INIT): New.
4764 (vax_asm_trampoline_template, vax_trampoline_init): New.
4765 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4766 vax_asm_trampoline_template.
4767 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4769 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4770 (TARGET_TRAMPOLINE_INIT): New.
4771 (xtensa_asm_trampoline_template): Rename from
4772 xtensa_trampoline_template; make static.
4773 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4774 make static; update for hook parameters.
4775 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4776 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4777 (INITIALIZE_TRAMPOLINE): Remove.
4779 * config/i386/i386.c (ix86_function_regparm): Do not issue an
4780 error for nested functions with regparm=3.
4781 (ix86_compute_frame_layout): Adjust frame pointer offset for
4782 ix86_static_chain_on_stack.
4783 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4784 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4785 don't reset to UNITS_PER_WORD.
4786 (ix86_emit_leave): Adjust ix86_cfa_state.
4787 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4788 (ix86_static_chain): New.
4789 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4790 make static; update for target hook parameters; use ix86_static_chain.
4791 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4792 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4793 (INITIALIZE_TRAMPOLINE): Remove.
4794 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4795 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4796 to the end. Add static_chain_on_stack.
4797 (ix86_static_chain_on_stack): New.
4799 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4800 (m68k_output_mi_thunk): Don't use static_chain_rtx.
4801 (m68k_trampoline_init): New.
4802 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4803 m68k_trampoline_init and adjust for hook parameters.
4804 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4805 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4807 2009-09-22 Jakub Jelinek <jakub@redhat.com>
4809 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4810 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4812 * reload1.c (reload): Call wrap_constant when substituting
4813 reg for equiv inside of DEBUG_INSNs.
4816 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4817 add_call_src_coords_attributes, add_high_low_attributes,
4818 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4819 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4820 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4821 when -gdwarf-2 -gstrict-dwarf.
4822 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
4823 -gdwarf-[23] -gstrict-dwarf.
4824 (address_of_int_loc_descriptor, loc_descriptor,
4825 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4826 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4827 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4829 2009-09-22 Richard Guenther <rguenther@suse.de>
4831 PR tree-optimization/41428
4832 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4833 (ccp_finalize): Pass it to substitute_and_fold.
4835 2009-09-22 Richard Guenther <rguenther@suse.de>
4837 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4838 (substitute_and_fold): Adjust prototype.
4839 * tree-vrp.c (vrp_evaluate_conditional): Make static.
4840 (simplify_stmt_using_ranges): Likewise.
4841 (fold_predicate_in): Move here from tree-ssa-propagate.c.
4842 (vrp_fold_stmt): New function.
4843 (vrp_finalize): Pass it to substitute_and_fold.
4844 * tree-flow.h (vrp_evaluate_conditional): Remove.
4845 (simplify_stmt_using_ranges): Likewise.
4846 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4847 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4848 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4850 (fold_predicate_in): Move to tree-vrp.c.
4851 (substitute_and_fold): Use the callback instead of calling into
4852 tree-vrp.c functions directly.
4854 2009-09-22 Jakub Jelinek <jakub@redhat.com>
4856 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4857 comparison warning on rs6000.
4860 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4861 GIMPLE_EH_MUST_NOT_THROW cleanup.
4862 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4864 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
4867 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4868 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4869 LIB_SPEC for darwin10 and later since it always uses the unwinder in
4870 libSystem which is derived from the gcc 4.2.1 unwinder.
4872 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4875 * varasm.c (default_encode_section_info): Copy TLS model into
4876 sym_ref flags regardless of backend support for TLS, for all
4877 model types except TLS_MODEL_EMULATED.
4879 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4882 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4883 we can handle it correctly.
4885 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4887 * doc/install.texi (os2): Remove section.
4889 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4891 * doc/standards.texi (Objective-C): Adjust two URLs.
4893 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
4895 * tree-tailcall.c (process_assignment): Don't check if a
4896 multiplication or an addition are already present.
4897 (find_tail_calls): Combine multiple additions and multiplications.
4898 (adjust_accumulator_values): Emit accumulators.
4900 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
4902 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4903 xmm register restore.
4905 2009-09-21 Jan Hubicka <jh@suse.cz>
4907 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4908 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4911 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
4913 * stor-layout.c (layout_type): Remove obsolete code.
4915 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
4918 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4920 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4923 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4924 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4925 (fold_builtin_2, do_mpc_arg1): Update accordingly.
4926 * fold-const.c (const_binop): Likewise.
4927 * real.h (do_mpc_arg2): Update prototype.
4929 2009-09-20 Jan Hubicka <jh@suse.cz>
4931 * dwarf2out.c (add_const_value_attribute): Return true if successful.
4932 (add_location_or_const_value_attribute): Rewrite using
4934 (tree_add_const_value_attribute): Return true if successful.
4935 (tree_add_const_value_attribute_for_decl): Likewise.
4937 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4938 (loc_descriptor): ... here;
4939 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4940 (cst_pool_loc_descr): Break out from ...; do not reffer constant
4941 pool items that was not marked for output.
4942 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4943 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4944 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4945 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4946 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4947 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4948 DW_OP_stack_value to get address of items that are not available
4950 (dw_loc_list): Handle single element lists correctly.
4952 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
4953 Pascal Obry <obry@adacore.com>
4955 * unwind-dw2-fde.c (classify_object_over_fdes):
4956 Cast the constant 1 to _Unwind_Ptr.
4957 (add_fdes): Likewise.
4958 (linear_search_fdes): Likewise.
4960 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
4962 * stor-layout.c (set_sizetype): Avoid useless type copy.
4964 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
4966 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4968 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4969 * configure, config.in: Regenerate.
4970 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4972 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4973 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
4974 for global data if the output could be used in a shared library.
4975 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4976 to 0 if TARGET_WRITABLE_EH_FRAME.
4978 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
4980 PR rtl-optimization/39886
4981 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4982 just when insn is equal to BB_END (bb).
4984 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
4986 * config/mips/mips.opt (mrelax-pic-calls): New option.
4987 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4989 (mips_unspec_call): Change "unspec_call" expander into this.
4990 (mips_strip_unspec_call): New function.
4991 (mips_got_load): Call mips_unspec_call instead of
4992 gen_unspec_call<mode>.
4993 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
4995 (mips_cfg_in_reorg): New function.
4996 (mips16_lay_out_constants): Use it to decide whether to call
4997 CFG-aware insn splitting.
4998 (r10k_insert_cache_barriers): Move CFG set-up code from here to
4999 mips_reorg. Move DF set-up code from here ...
5000 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
5002 (mips_reorg): Call mips_df_reorg instead of
5003 r10k_insert_cache_barriers. Move CFG set-up code here from
5004 r10k_insert_cache_barriers.
5005 (mips_call_expr_from_insn): New function.
5006 (mips_pic_call_symbol_from_set): Likewise.
5007 (mips_find_pic_call_symbol): Likewise.
5008 (mips_annotate_pic_call_expr): Likewise.
5009 (mips_get_pic_call_symbol): Likewise.
5010 (mips_annotate_pic_calls): Likewise.
5011 (mips_override_options): Disable -mrelax-pic-calls unless PIC
5013 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
5014 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
5015 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
5017 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
5018 (unspec_call<mode>): Remove it.
5019 (sibcall_internal, sibcall_value_internal,
5020 sibcall_value_multiple_internal, call_internal, call_split,
5021 call_value_internal, call_value_split,
5022 call_value_multiple_internal, call_value_multiple_split): Pass
5023 SIZE_OPNO to MIPS_CALL.
5024 (call_internal_direct, call_direct_split,
5025 call_value_internal_direct, call_value_direct_split): Pass -1 as
5026 SIZE_OPNO to MIPS_CALL.
5027 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
5028 * configure: Regenerate.
5029 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
5030 and -mno-relax-pic-calls.
5031 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
5033 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5036 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
5037 in the directory this rule is called from, rather than the
5038 toplevel 'gcc' directory, to fix in-tree build.
5040 2009-09-19 Chris Demetriou <cgd@google.com>
5042 PR preprocessor/28435:
5043 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
5044 to cpplib that the preprocessor output is needed.
5046 2009-09-19 Jakub Jelinek <jakub@redhat.com>
5048 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
5049 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
5050 *return_and_restore_fpregs_<mode>,
5051 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
5054 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
5055 instead of assuming it has always a REG inside of it.
5057 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
5059 * config/freebsd.h: Update comment on types.
5060 (WINT_TYPE): Define.
5062 2009-09-18 Jason Merrill <jason@redhat.com>
5064 * c.opt: Add -fno-deduce-init-list.
5066 2009-09-18 Neil Vachharajani <nvachhar@google.com>
5068 * value-prof.c (interesting_stringop_to_profile_p): Added output
5069 argument to indicate which parameter is the size parameter.
5070 * value-prof.c (gimple_stringop_fixed_value): Use
5071 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
5072 * value-prof.c (gimple_stringops_transform): Update call sites to
5073 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
5075 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
5078 From David Binderman <dcb314@hotmail.com>:
5079 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
5080 local variable f. Remove stale comments.
5081 (ix86_compute_frame_layout): Remove useless local variable total_size.
5082 Remove #if 0'd code.
5083 (legitimate_address_p): Remove useless local variables
5084 reason_rtx and reason.
5085 (ix86_split_copysign_const): Remove useless local variable op1.
5086 (scale_counter): Remove useless local variable piece_size_mask.
5088 2009-09-18 Jakub Jelinek <jakub@redhat.com>
5090 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
5093 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5096 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
5098 2009-09-17 Jakub Jelinek <jakub@redhat.com>
5100 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
5103 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
5105 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
5106 DW_OP_implicit_value even without dwarf_version 4.
5108 2009-09-17 Jan Hubicka <jh@suse.cz>
5110 * dwarf2out.c: Include tree-pass.h and gimple.h.
5111 (loc_list_plus_const): New function.
5112 (loc_descriptor_from_tree_1): Rename to ...
5113 (loc_descriptor_from_tree): ... remove original.
5114 (loc_list_from_tree): New function.
5115 (add_AT_location_description): Accept location list.
5116 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5117 (concatn_mem_loc_descriptor): Remove.
5118 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5120 (secname_for_decl): Move up.
5121 (hidden_reference_p): New function; break out from ...
5122 (loc_by_refernece): ... here; move up.
5123 (dw_loc_list): New function.
5124 (single_element_loc_list): New function.
5125 (single_element_loc_list_p): New function.
5126 (add_loc_descr_to_each): New function.
5127 (add_loc_list): New function.
5128 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5129 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5130 add diagnostics why expansion failed.
5131 (add_location_or_const_value_attribute): Support location lists.
5132 (add_bound_info): Likewise.
5133 (descr_info_loc): Update call of loc_descriptor_from_tree.
5134 (gen_variable_die): Work on location lists.
5135 * final.c (pass_final): Add dump file.
5136 * Makefile.in (dwarf2out.o): Add new dependencies.
5138 2009-09-17 Janis Johnson <janis187@us.ibm.com>
5141 * real.c decimal_from_integer, decimal_integer_string): New.
5142 (real_from_integer): Use them as special case for decimal float.
5143 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5144 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5145 Do not append zero after the decimal point in string to convert.
5147 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
5149 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5150 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
5152 2009-09-17 Martin Jambor <mjambor@suse.cz>
5154 * common.opt (fipa-sra): New switch.
5155 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5156 * timevar.def (TV_IPA_SRA): New timevar.
5157 * params.def (ipa-sra-ptr-growth-factor): New parameter.
5158 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5159 * tree-sra.c: Include cgraph.c.
5160 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5161 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5162 and grp_not_necessarilly_dereferenced.
5163 (func_param_count): New variable.
5164 (encountered_apply_args): New variable.
5165 (bb_dereferences): New variable.
5166 (final_bbs): New variable.
5167 (no_accesses_representant): New variable.
5168 (no_accesses_p): New function.
5169 (dump_access): Dump the new fields.
5170 (sra_initialize): Set encountered_apply_args to false.
5171 (get_ssa_base_param): New function.
5172 (mark_parm_dereference): New function.
5173 (create_access): Caring for INIDRECT_REFs and different handling of
5174 varialble length accesses in early IPA SRA. Store the stmt - a new
5175 parameter - to the new access.
5176 (build_access_from_expr_1): New parameter stmt, passed to
5177 create_access. Handle INDIRECT_REFs.
5178 (build_access_from_expr): Pass the current statement to
5179 build_access_from_expr_1.
5180 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5182 (build_accesses_from_assign): Pass the current statement to
5183 build_access_from_expr_1. Do not create assign links in IPA-SRA.
5184 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
5185 final_bbs when necessary. Check for calls to __builtin_apply_args.
5186 Fixup EH info if anythng was changed.
5187 (is_unused_scalar_param): New function.
5188 (ptr_parm_has_direct_uses): New function.
5189 (find_param_candidates): New function.
5190 (mark_maybe_modified): New function.
5191 (analyze_modified_params): New function.
5192 (propagate_dereference_distances): New function.
5193 (dump_dereferences_table): New function.
5194 (analyze_caller_dereference_legality): New function.
5195 (unmodified_by_ref_scalar_representative): New function.
5196 (splice_param_accesses): New function.
5197 (decide_one_param_reduction): New function.
5198 (enum ipa_splicing_result): New type.
5199 (splice_all_param_accesses): New function.
5200 (get_param_index): New function.
5201 (turn_representatives_into_adjustments): New function.
5202 (analyze_all_param_acesses): New function.
5203 (get_replaced_param_substitute): New function.
5204 (get_adjustment_for_base): New function.
5205 (replace_removed_params_ssa_names): New function.
5206 (sra_ipa_reset_debug_stmts): New function.
5207 (sra_ipa_modify_expr): New function.
5208 (sra_ipa_modify_assign): New function.
5209 (convert_callers): New function.
5210 (modify_function): New function.
5211 (ipa_sra_preliminary_function_checks): New function.
5212 (ipa_early_sra): New function.
5213 (ipa_early_sra_gate): New function.
5214 (pass_early_ipa_sra): New variable.
5215 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5217 2009-09-17 Michael Matz <matz@suse.de>
5220 * tree.c (build_type_attribute_qual_variant): Export.
5221 * tree.h (build_type_attribute_qual_variant): Declare.
5222 * tree-inline.c (remap_type_1): Use it to build variants with
5223 the original qualifiers and attributes.
5225 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5227 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5228 without a fallthrough edge.
5230 2009-09-16 DJ Delorie <dj@redhat.com>
5232 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5233 chip and ignore the "fast_interrupt" attribute if so.
5235 2009-09-16 Richard Henderson <rth@redhat.com>
5238 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5241 2009-09-16 Richard Henderson <rth@redhat.com>
5244 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5245 is set only if DECL_NO_STATIC_CHAIN is unset.
5246 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5247 (FOR_EACH_NEST_INFO): New.
5248 (walk_all_functions): Use it.
5249 (finalize_nesting_tree): Likewise.
5250 (unnest_nesting_tree): Likewise.
5251 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5252 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5253 (convert_gimple_call): Early out if gimple_call_chain already set.
5254 (convert_all_function_calls): Iterate until no new functions
5255 require a static chain.
5256 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5257 when building a trampoline. Use dump_function_to_file instead
5259 (lower_nested_functions): Open dump_file. Validate that decls
5260 that have DECL_NO_STATIC_CHAIN from the front end don't have that
5261 bit reset by this pass.
5263 2009-09-16 Michael Matz <matz@suse.de>
5266 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5267 shorten decl_common_unused.
5268 (DECL_RESTRICTED_P): New accessor.
5269 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5270 to disambiguate marked decls and restrict pointers.
5272 2009-09-16 Richard Henderson <rth@redhat.com>
5275 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5277 2009-09-16 Jakub Jelinek <jakub@redhat.com>
5279 * integrate.c (set_block_abstract_flags): Call
5280 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5282 2009-09-16 Richard Guenther <rguenther@suse.de>
5285 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5288 2009-09-16 DJ Delorie <dj@redhat.com>
5289 Kaz Kojima <kkojima@gcc.gnu.org>
5291 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5292 (sh_expand_prologue): Update calls to output_stack_adjust.
5293 (sh_expand_epilogue): Likewise.
5295 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
5298 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5299 trying to limit the extent of searches in the insn stream.
5301 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
5302 Jakub Jelinek <jakub@redhat.com>
5306 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5308 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5309 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5310 (rs6000_savres_strategy): Always save FP registers inline if the
5311 target doesn't support hardware double-precision. Set the above
5312 bits in return value when needed.
5313 (rs6000_savres_routine_sym): Fix computation for cache selector.
5314 Mark the generated symbol as a function. Rename exitp argument to
5315 lr. Move code for determining the name of the symbol...
5316 (rs6000_savres_routine_name): ...here. New function. Add cases for
5317 getting the names right on AIX and 64-bit Linux.
5318 (savres_routine_name): New variable.
5319 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
5320 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
5321 on what the target routine uses as a base register. If savep && lr
5322 describe saving of r0 into memory slot.
5323 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
5324 line calls for AIX ABI.
5325 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5326 determine FP save/restore functions.
5327 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5328 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
5330 (rs6000_emit_epilogue): Adjust computation of restore_lr.
5331 Duplicate restoration of LR and execute the appropriate one
5332 depending on whether GPRs are being restored inline. Set r11 from
5333 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5334 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
5335 Fix out of line calls for AIX ABI.
5336 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5338 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5340 (*restore_gpregs_spe): Likewise.
5341 (*return_and_restore_gpregs_spe): Likewise.
5342 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5343 Define to empty string unconditionally.
5344 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5345 Define to empty string unconditionally.
5346 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5349 2009-09-15 Jan Hubicka <jh@suse.cz>
5351 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5352 * params.def (inline-insns-auto): Likewise.
5354 2009-09-15 Martin Jambor <mjambor@suse.cz>
5356 * ipa-inline.c (estimate_function_body_sizes): Dump info about
5357 individual statements only at TDF_DETAILS dump level. Format
5358 source for 80 characters per line.
5360 2009-09-15 Christian Bruel <christian.bruel@st.com>
5362 * regrename.c (do_replace): Update REG_DEAD notes.
5364 2009-09-15 Revital Eres <eres@il.ibm.com>
5366 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5367 * targhooks.c (default_builtin_support_vector_misalignment):
5368 New builtin function.
5369 * targhooks.h (default_builtin_support_vector_misalignment):
5371 * target.h (builtin_support_vector_misalignment):
5372 New field in struct gcc_target.
5373 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5374 new builtin function.
5375 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5377 * config/rs6000/rs6000.c
5378 (rs6000_builtin_support_vector_misalignment): New function.
5379 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5381 2009-09-15 Jie Zhang <jie.zhang@analog.com>
5383 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5385 (bfin_optimize_loop): Likewise.
5386 (bfin_gen_bundles): Likewise.
5387 (workaround_speculation): Likewise.
5388 (find_load): Return NULL_RTX for debug_insn.
5390 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
5392 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5395 2009-09-14 DJ Delorie <dj@redhat.com>
5397 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5398 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5401 2009-09-14 Richard Henderson <rth@redhat.com>
5402 Jakub Jelinek <jakub@redhat.com>
5404 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5405 * cfgbuild.c (make_edges): Handle asm goto.
5406 * cfglayout.c (fixup_reorder_chain): Likewise.
5407 * cfgrtl.c (patch_jump_insn): Likewise.
5408 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5409 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5410 (gimple_build_asm_vec): Add and use labels parameter.
5411 (gimple_build_asm): Remove.
5412 (walk_gimple_asm): Walk labels too.
5413 * gimple.def (GIMPLE_ASM): Update docs.
5414 * gimple.h: Update decls.
5415 (struct gimple_statement_asm): Change nc to use unsigned char;
5417 (gimple_asm_nlabels): New.
5418 (gimple_asm_label_op, gimple_asm_set_label_op): New.
5419 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5420 into gimple_build_asm_vec.
5421 * jump.c (mark_jump_label_asm): New.
5422 (mark_jump_label): Use it.
5423 (redirect_jump_1): Handle asm goto.
5424 (invert_jump_1): Soft fail if X is null.
5425 * recog.c (extract_asm_operands): New.
5426 (asm_noperands): Use it; handle asm labels.
5427 (decode_asm_operands): Use extract_asm_operands.
5428 (asm_operand_ok): Properly handle empty string.
5429 * reg-stack.c (get_asm_operands_in_out): Rename from
5430 get_asm_operand_n_inputs; use extract_asm_operands; return both
5431 inputs and outputs by reference; update all callers.
5432 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5433 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5434 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5435 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5436 (extract_asm_operands): Declare.
5437 * stmt.c (expand_asm_operands): Add and use labels parameter.
5438 (check_unique_operand_names): Likewise.
5439 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5440 (expand_asm_stmt): Handle asm labels.
5441 * tree-cfg.c (make_gimple_asm_edges): New.
5442 (make_edges): Use it.
5443 (cleanup_dead_labels): Handle asm labels.
5444 (is_ctrl_altering_stmt): Likewise.
5445 (gimple_redirect_edge_and_branch): Likewise.
5446 * tree.def (ASM_EXPR): Add 5th operand.
5447 * tree.h (ASM_LABELS): New.
5448 (resolve_asm_operand_names): Update decl.
5450 * c-parser.c (c_parser_asm_statement): Parse asm goto.
5451 (c_parser_asm_goto_operands): New.
5452 * c-tree.h (build_asm_expr): Update decl.
5453 * c-typeck.c (build_asm_expr): Add and use labels parameter.
5454 * doc/extend.texi: Document asm goto.
5456 2009-09-14 Richard Henderson <rth@redhat.com>
5458 * except.h: Update declarations.
5459 (struct pointer_map_t): Forward declare.
5460 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5461 (struct eh_landing_pad_d, eh_landing_pad): New.
5462 (struct eh_catch_d, eh_catch): New.
5463 (struct eh_region_d): Remove next_region_sharing_label, aka,
5464 label, tree_label, landing_pad, post_landing_pad, resume,
5465 may_contain_throw. Rename region_number to index. Remove
5466 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
5467 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5468 (VEC(eh_landing_pad,gc)): New.
5469 (struct eh_status): Remove last_region_number. Add lp_array,
5470 throw_stmt_table, ttype_data, ehspec_data.
5471 (ehr_next, FOR_ALL_EH_REGION_AT): New.
5472 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5473 * except.c (lang_protect_cleanup_actions): Return tree.
5474 (struct ehl_map_entry): Remove.
5475 (init_eh_for_function): Push zero entries for region and lp_array.
5476 (gen_eh_region): Add to region_array immediately.
5477 (gen_eh_region_catch): Operate on eh_catch objects.
5478 (gen_eh_landing_pad): New.
5479 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5480 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5481 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5482 (get_eh_landing_pad_from_number_fn): New.
5483 (get_eh_landing_pad_from_number): New.
5484 (get_eh_region_from_lp_number_fn): New.
5485 (get_eh_region_from_lp_number): New.
5486 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5487 (get_exception_pointer, get_exception_filter): Remove.
5488 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5489 (current_function_has_exception_handlers): Simplify.
5490 (bring_to_root, eh_region_replaceable_by_p): Remove.
5491 (replace_region, hash_type_list, hash_eh_region): Remove.
5492 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5493 (label_to_region_map, num_eh_regions): Remove.
5494 (get_next_region_sharing_label, must_not_throw_labels): Remove.
5495 (find_exception_handler_labels): Remove.
5496 (duplicate_eh_regions_0, find_prev_try): Remove.
5497 (struct duplicate_eh_regions_data): New.
5498 (duplicate_eh_regions_1): Rewrite.
5499 (duplicate_eh_regions): Return a pointer map instead of an
5501 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5502 (redirect_eh_edge_to_label): Remove.
5503 (eh_region_outermost): Rewrite using eh_region pointers
5504 instead of integers.
5505 (add_ttypes_entry): Update for ttype_data move to eh_status.
5506 (add_ehspec_entry): Rewrite with VEC instead of varray.
5507 (assign_filter_values): Likewise. Export.
5508 (build_post_landing_pads, connect_post_landing_pads): Remove.
5509 (dw2_build_landing_pads): Rewrite to use lp_array.
5510 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5511 (sjlj_assign_call_site_values): Rewrite to use lp_array.
5512 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5513 (sjlj_mark_call_sites): Update for landing pad numbers.
5514 (finish_eh_generation): Rewrite.
5515 (gate_handle_eh): Do nothing for no eh tree.
5516 (pass_rtl_eh): Move up near finish_eh_generation.
5517 (remove_eh_landing_pad): New.
5518 (remove_eh_handler): Export.
5519 (remove_eh_region, remove_eh_handler_and_replace): Remove.
5520 (for_each_eh_label): Rewrite to use lp_array.
5521 (make_reg_eh_region_note): New.
5522 (make_reg_eh_region_note_nothrow_nononlocal): New.
5523 (insn_could_throw_p): New.
5524 (copy_reg_eh_region_note_forward): New.
5525 (copy_reg_eh_region_note_backward): New.
5526 (check_handled, add_reachable_handler): Remove.
5527 (reachable_next_level, foreach_reachable_handler): Remove.
5528 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5529 (get_eh_region_and_lp_from_rtx): New.
5530 (get_eh_region_from_rtx): New.
5531 (can_throw_internal_1, can_throw_external_1): Remove.
5532 (can_throw_internal): Use get_eh_region_from_rtx.
5533 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5534 (insn_nothrow_p, can_nonlocal_goto): New.
5535 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5536 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5537 (add_action_record): Use VEC not varray.
5538 (collect_one_action_chain): Update for eh_region changes.
5539 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
5540 Use get_eh_region_and_lp_from_rtx.
5541 (gate_convert_to_eh_region_ranges): New.
5542 (pass_convert_to_eh_region_ranges): Use it.
5543 (push_uleb128, push_sleb128): Use VEC not varray.
5544 (output_one_function_exception_table): Likewise.
5545 (dump_eh_tree): Update for eh_region changes.
5546 (verify_eh_tree): Likewise.
5547 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5548 * tree-eh.c: Include target.h.
5549 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5550 Don't disallow GIMPLE_RESX; adjust argument check.
5551 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5552 (record_stmt_eh_region): Update for landing pad numbers;
5553 generate a landing pad if necessary.
5554 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5555 (remove_stmt_from_eh_lp_fn): Similarly.
5556 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5557 Update for lp numbers; don't special case missing throw_stmt_table.
5558 (lookup_expr_eh_lp): Similarly.
5559 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5560 (eh_seq, eh_region_may_contain_throw): New.
5561 (struct leh_state): Add ehp_region.
5562 (struct leh_tf_state): Remove eh_label.
5563 (emit_post_landing_pad): New.
5564 (emit_resx, emit_eh_dispatch): New.
5565 (note_eh_region_may_contain_throw): New.
5566 (frob_into_branch_around): Take eh_region not eh label;
5567 emit eh code into eh_seq.
5568 (honor_protect_cleanup_actions): Early exit for no actions. Don't
5569 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
5570 lower_eh_must_not_throw. Emit code to eh_seq.
5571 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5572 (lower_try_finally_onedest): Likewise.
5573 (lower_try_finally_copy): Likewise.
5574 (lower_try_finally_switch): Likewise.
5575 (lower_try_finally): Initialize ehp_region.
5576 (lower_catch): Update for eh_catch objects.
5577 (lower_eh_filter): Don't handle must_not_throw.
5578 (lower_eh_must_not_throw): New.
5579 (lower_cleanup): Don't set eh_label.
5580 (lower_eh_constructs_2): Resolve eh builtins.
5581 Handle GIMPLE_EH_MUST_NOT_THROW.
5582 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5583 Add eh_seq to the end of the function body.
5584 (make_eh_dispatch_edges): New.
5585 (make_eh_edge): Remove.
5586 (make_eh_edges): Simplify for landing pads.
5587 (redirect_eh_edge_1): New.
5588 (redirect_eh_edge): Use it.
5589 (redirect_eh_dispatch_edge): New.
5590 (stmt_could_throw_p): Use a switch. Allow RESX.
5591 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5592 (stmt_can_throw_internal): Likewise.
5593 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5594 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5595 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5596 (gate_refactor_eh): New.
5597 (pass_refactor_eh): Use it.
5598 (lower_resx, execute_lower_resx, pass_lower_resx): New.
5599 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5600 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5601 (remove_unreachable_handlers): Rename from
5602 tree_remove_unreachable_handlers; rewrite for landing pads;
5603 call remove_eh_handler directly.
5604 (remove_unreachable_handlers_no_lp): New.
5605 (unsplit_eh, unsplit_all_eh): New.
5606 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5607 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5608 (cleanup_empty_eh_unsplit): New.
5609 (cleanup_empty_eh): Rewrite.
5610 (cleanup_all_empty_eh): New.
5611 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
5612 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
5613 (gate_cleanup_eh): New.
5614 (pass_cleanup_eh): Use it.
5615 (verify_eh_edges): Move later in file. Expect one EH edge.
5616 (verify_eh_dispatch_edge): New.
5618 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5619 (gtype-desc.o): Add TARGET_H.
5620 (tree.o): Use EXCEPT_H, not except.h.
5621 (cfgbuild.o): Add EXPR_H.
5622 (GTFILES): Add vecprim.h.
5623 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5624 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5625 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5626 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5627 * calls.c (emit_call_1): Use make_reg_eh_region_note.
5628 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5629 calls to can_throw_internal.
5630 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5631 (make_edges): Don't handle RESX; use can_nonlocal_goto.
5632 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5633 (expand_gimple_stmt): Use make_reg_eh_region_note.
5634 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5635 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5636 or find_exception_handler_labels.
5637 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
5638 there is exacly one EH edge. Use can_nonlocal_goto and
5640 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5641 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5642 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5643 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5644 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5645 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5646 * dse.c (scan_insn): Use insn_could_throw_p.
5647 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5648 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5649 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5650 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5651 EXC_PTR_EXPR or FILTER_EXPR.
5652 (tree_expr_nonzero_warnv_p): Likewise.
5653 * function.h: Include vecprim.h, not varray.h
5654 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5655 move ttype_data and ehspec_data members to struct eh_status; change
5656 action_record_data member to a VEC.
5657 * gcse.c (hash_scan_set): Use can_throw_internal.
5658 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5659 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5660 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5661 (block_may_fallthru): Don't handle RESX_EXPR.
5662 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5663 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5664 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5665 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5666 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5667 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5668 (gimple_size): Likewise.
5669 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5670 (gimple_build_resx): Use gimple_build_with_ops.
5671 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5672 (is_gimple_val): Likewise.
5673 (is_gimple_stmt): Remove RESX_EXPR.
5674 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5675 (GIMPLE_RESX): Reorder with other EH constructs.
5676 * gimple.h (struct gimple_statement_eh_mnt): New.
5677 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5678 (gimple_eh_filter_must_not_throw): Remove.
5679 (gimple_eh_filter_set_must_not_throw): Remove.
5680 (gimple_eh_must_not_throw_fndecl): New.
5681 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5682 (is_gimple_resx): New.
5683 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5684 Don't copy EH_FILTER_MUST_NOT_THROW.
5685 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5686 * ipa-inline.c (estimate_function_body_sizes): Don't try to
5687 handle must_not_throw_labels specially.
5688 * ipa-pure-const.c (check_call): Update debug statement for LP.
5689 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5690 * ipa-utils.c (get_base_var): Likewise.
5691 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5692 * lower-subreg.c (move_eh_region_note): Remove.
5693 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5694 * omp-low.c (new_omp_context): Update for eh_lp_nr.
5695 (create_task_copyfn): Likewise.
5696 (maybe_catch_exception): Use gimple_build_eh_filter.
5697 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5698 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
5699 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5700 and pass_lower_resx.
5701 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5702 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5703 can_throw_internal, can_nonlocal_goto.
5704 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5705 copy_reg_eh_region_note_forward.
5706 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5707 (emit_output_reload_insns): Likewise.
5708 (copy_eh_notes): Remove.
5709 * rtl.def (RESX): Remove.
5710 * rtl.h: Update declarations.
5711 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5712 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5713 (update_eh_label): Remove.
5714 (cleanup_dead_labels_eh): New.
5715 (cleanup_deal_labels): Use it instead of update_eh_label.
5716 (gimple_merge_blocks): Update landing pad data structure when
5717 removing a landing pad label.
5718 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5719 test; handle GIMPLE_EH_MUST_NOT_THROW.
5720 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5721 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5722 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5723 (verify_stmt): Likewise. Verify landing pads.
5724 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5725 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5726 (struct move_stmt_d): Add eh_map.
5727 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5728 (move_stmt_r): Remap eh region numbers in builtin calls,
5729 resx and eh_dispatch.
5730 (move_block_to_fn): Remove eh_offset parameter. Use
5731 maybe_duplicate_eh_stmt_fn.
5732 (find_outermost_region_in_block): Operate on eh_region pointers
5733 instead of region numbers.
5734 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5735 duplicate_eh_regions.
5736 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5737 test earlier. Disallow EH landing pads.
5738 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5739 * tree-flow.h: Update declarations.
5740 (struct tree_ann_common_d): Replace rn with lp_nr.
5741 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5742 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5743 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5744 resx and eh_dispatch.
5745 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5746 (copy_edges_for_bb): Use make_eh_dispatch_edges.
5747 (copy_cfg_body): Expect eh_map instead of eh_region_offset
5748 from duplicate_eh_regions.
5749 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5750 update RESX; handle EH_DISPATCH.
5751 (expand_call_inline): Set eh_lp_nr, not eh_region.
5752 (maybe_inline_call_in_expr): Likewise.
5753 * tree-inline.h (struct copy_body_data): Replace eh_region with
5754 eh_lp_nr, eh_region_offset with eh_map.
5755 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5756 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5757 * tree-pretty-print.c (dump_generic_node): Don't handle
5758 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5759 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5760 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5761 EXC_PTR_EXPR, FILTER_EXPR.
5762 * tree-ssa-operands.c (get_expr_operands): Likewise.
5763 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5764 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5765 (ao_ref_init_from_vn_reference): Likewise.
5766 * tree-ssa-sink.c (statement_sink_location): Likewise.
5767 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5768 (mark_virtual_phi_result_for_renaming): Export. Tidy.
5769 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5770 EXC_PTR_EXPR, FILTER_EXPR.
5771 (is_exception_related): Remove.
5772 (compute_avail): Don't call it.
5773 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5774 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5775 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5776 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5778 (build_resx): Remove.
5779 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5780 * tree.h: Update declarations.
5781 (EH_FILTER_MUST_NOT_THROW): Remove.
5782 (struct tree_label_decl): Add eh_landing_pad_nr.
5783 (EH_LANDING_PAD_NR): New.
5784 * value-prof.c (gimple_ic): Tidy variable names. Update for
5785 landing pad numbers.
5786 (gimple_stringop_fixed_value): Tidy variable names. Assert
5787 that neither call stmt can throw.
5788 * vecprim.h (uchar): New.
5789 (VEC(uchar,heap), VEC(uchar,gc)): New.
5791 * c-common.c (c_define_builtins): Update call to
5792 build_common_builtin_nodes.
5793 * c-parser.c (c_parse_file): Don't call
5794 default_init_unwind_resume_libfunc.
5796 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5798 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5799 (mips_cprestore_address_p): Likewise.
5800 (mips_save_gp_to_cprestore_slot): Likewise.
5801 (mips_restore_gp): Rename to...
5802 (mips_restore_gp_from_cprestore_slot): ...this.
5803 (mips_must_initialize_gp_p): Declare.
5804 (mips_emit_save_slot_move): Likewise.
5805 (mips_output_load_label): Return nothing.
5806 (mips_eh_uses): Declare.
5807 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5808 (TARGET_CPRESTORE_DIRECTIVE): New macro.
5809 (TARGET_ABSOLUTE_JUMPS): Likewise.
5810 (EH_USES): Likewise.
5811 (FIRST_PSEUDO_REGISTER): Update comment.
5812 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5813 (MIPS_CALL): ...here.
5814 (REGISTER_NAMES): Add $cprestore.
5815 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5816 Add load_label_length, has_inflexible_gp_insn_p,
5817 has_flexible_gp_insn_p, must_initialize_gp_p and
5818 must_restore_gp_when_clobbered_p.
5819 (mips_expand_call): Don't generate split instructions here.
5820 (mips_split_call): Update the call to mips_restore_gp after
5821 the above name change.
5822 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5823 (mips_find_gp_ref): New function.
5824 (mips_insn_has_inflexible_gp_ref_p): Likewise.
5825 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5826 (mips_insn_has_flexible_gp_ref_p): Likewise.
5827 (mips_cfun_has_flexible_gp_ref_p): Likewise.
5828 (mips_function_has_gp_insn): Delete.
5829 (mips_global_pointer): Drop the df_regs_ever_live_p check.
5830 Use the new functions above. Only return INVALID_REGNUM
5831 for TARGET_ABSOLUTE_JUMPS.
5832 (mips_must_initialize_gp_p): New function.
5833 (mips_get_cprestore_base_and_offset): New function, extracted from...
5834 (mips_cprestore_slot): ...here. Take a bool parameter.
5835 (mips_cfun_has_cprestore_slot_p): New function.
5836 (mips_cprestore_address_p): Likewise.
5837 (mips_save_gp_to_cprestore_slot): Likewise.
5838 (mips_restore_gp): Rename to...
5839 (mips_restore_gp_from_cprestore_slot): ...this. Assert
5840 epilogue_completed. Update the call to mips_cprestore_slot.
5841 Test cfun->machine->must_restore_gp_when_clobbered_p.
5842 (mips_direct_save_slot_move_p): New function.
5843 (mips_emit_save_slot_move): Likewise.
5844 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5845 of cfun->machine->global_pointer.
5846 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5847 (mips_save_reg): Use mips_emit_save_slot_move.
5848 (mips_expand_prologue): Set must_initialize_gp_p.
5849 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
5850 for all cprestore saves. Emit a use_cprestore instruction after
5851 setting up the cprestore slot.
5852 (mips_restore_reg): Use mips_emit_save_slot_move.
5853 (mips_process_load_label): New function.
5854 (mips_load_label_length): Likewise.
5855 (mips_output_load_label): Don't return asm: output it here instead.
5856 Use mips_process_load_label.
5857 (mips_adjust_insn_length): Adjust the length of branch instructions
5858 that have length MAX_PIC_BRANCH_LENGTH.
5859 (mips_output_conditional_branch): Update the call to
5860 mips_output_load_label. Assume the branch target is OPERANDS[0]
5861 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5862 (mips_output_order_conditional_branch): Swap the meaning of
5863 OPERANDS[0] and OPERANDS[1].
5864 (mips_variable_issue): Don't count ghost instructions.
5865 (mips_expand_ghost_gp_insns): New function.
5866 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5867 (mips_output_mi_thunk): Set must_initialize_gp_p.
5868 (mips_eh_uses): New function.
5869 * config/mips/predicates.md (cprestore_save_slot_operand)
5870 (cprestore_load_slot_operand): New predicates.
5871 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5872 (UNSPEC_MOVE_GP): Likewise.
5873 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5874 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5875 (CPRESTORE_SLOT_REGNUM): New register.
5876 (MAX_PIC_BRANCH_LENGTH): New constant.
5877 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5878 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5879 branches. Fix commentary.
5880 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5881 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5882 Change type to "ghost".
5883 (loadgp_absolute_<mode>): Likewise.
5884 (loadgp_rtp_<mode>): Likewise.
5885 (copygp_mips16): Likewise.
5886 (loadgp_blockage): Remove redundant mode attribute.
5887 (potential_cprestore): New instruction.
5888 (cprestore): Turn into an unspec set.
5889 (use_cprestore): New instruction.
5890 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
5891 (*branch_fp_inverted): Likewise.
5892 (*branch_order<mode>): Likewise.
5893 (*branch_order<mode>_inverted): Likewise.
5894 (*branch_equality<mode>): Likewise.
5895 (*branch_equality<mode>_inverted): Likewise.
5896 (*branch_bit<bbv><mode>): Likewise.
5897 (*branch_bit<bbv><mode>_inverted): Likewise.
5898 (*branch_equality<mode>_mips16): Remove redundant mode.
5899 (jump): Turn into a define_expand.
5900 (*jump_absolute): New instruction.
5901 (*jump_pic): Likewise.
5902 (*jump_mips16): Rename previously-unnamed pattern. Remove
5903 redundant mode attribute.
5904 (restore_gp): Split on epilogue_completed rather than
5905 reload_completed. Change type to "ghost".
5906 (move_gp<mode>): New instruction.
5907 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5908 Remove redundant mode attribute.
5909 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5910 (bc1any4f, bc1any2t, bc1any2f): Likewise.
5911 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5913 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5916 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5917 are returned in the same register (vs34 or v2) that Altivec vector
5918 types are returned in.
5919 (rs6000_libcall_value): Ditto.
5922 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5923 instead of explicit addsi3/adddi3 calls.
5924 (rs6000_split_multireg_move): Ditto.
5925 (rs6000_emit_allocate_stack): Ditto.
5926 (rs6000_emit_prologue): Ditto.
5927 (rs6000_output_mi_thunk): Ditto.
5929 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5930 size is 64 bits if we can use 64-bit registers.
5932 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
5934 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5937 From Jie Zhang <jie.zhang@analog.com>:
5938 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5939 save FP and RETS with saveall attribute.
5940 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5941 with saveall attribute.
5943 * config/bfin/bfin.c (bfin_expand_builtin,
5944 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5947 From Jie Zhang <jie.zhang@analog.com>:
5948 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5949 before use in two places.
5950 * config/bfin/bfin.md (AREG): Define mode iterator.
5951 (reload_in, reload_out): Use mode iterator AREG.
5953 2009-09-14 Richard Guenther <rguenther@suse.de>
5956 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5957 EH personality path.
5959 2009-09-13 Richard Guenther <rguenther@suse.de>
5960 Rafael Avila de Espindola <espindola@google.com>
5962 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5963 (LANG_HOOKS_EH_PERSONALITY): Likewise.
5964 (LANG_HOOKS_INITIALIZER): Adjust.
5965 (lhd_pass_through_t): Declare.
5966 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5968 * langhooks.c (lhd_pass_through_t): New function.
5969 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
5970 dwarf2out_begin_prologue): Use personality from current_function_decl.
5971 * expr.h (get_personality_function): Declare.
5972 * expr.c (get_personality_function): New function.
5973 (build_personality_function): Likewise.
5974 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5975 (eh_personality_libfunc): Remove.
5976 * optabs.c (build_libfunc_function): New function split out from ...
5977 (init_one_libfunc): ... here.
5978 * tree.h (DECL_FUNCTION_PERSONALITY): New.
5979 (tree_function_decl): Add personality.
5980 (lhd_gcc_personality): Declare.
5981 (build_personality_function): Likewise.
5982 * tree.c (gcc_eh_personality_decl): New.
5983 (lhd_gcc_personality): New function.
5984 * except.h (lang_eh_runtime_type): Remove.
5985 (enum eh_personality_kind): New.
5986 (build_personality_function): Declare.
5987 (function_needs_eh_personality): Declare.
5988 * except.c (lang_eh_runtime_type): Remove.
5989 (function_needs_eh_personality): New function.
5990 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
5991 (sjlj_emit_function_enter, output_function_exception_table):
5992 Use personality from current_function_decl.
5993 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5994 * tree-inline.c (tree_can_inline_p): Do not inline across different
5996 (expand_call_inline): Likewise. Adjust the callers EH personality.
5997 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5998 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5999 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
6000 (c-parser.o): Likewise
6001 * c-tree.h (c_eh_initialized_p): Remove.
6002 (c_maybe_initialize_eh): Likewise.
6003 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
6004 (finish_decl): Don't call c_maybe_initialize_eh.
6005 (c_eh_initialized_p): Remove.
6006 (c_maybe_initialize_eh): Likewise.
6007 * c-parser.c (c_parser_omp_construct): Likewise.
6008 (c_parse_file): Initialize exception handling.
6010 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
6012 * config.gcc (tm_file): Remove i386/biarch32.h
6013 for i?86-w64-mingw* case.
6014 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
6016 * config.host: Set for x64 mingw the option
6017 use_long_long_for_widest_fast_int to yes.
6019 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
6021 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6022 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
6023 (dbxout_begin_function): Likewise.
6024 * final.c (dwarf2_debug_info_emitted_p): New predicate.
6025 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
6026 set on the function.
6027 (final_end_function): Likewise.
6028 (final_scan_insn): Likewise.
6029 (rest_of_handle_final): Likewise.
6030 * varasm.c (assemble_start_function): Likewise.
6031 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6033 2009-09-12 Jason Merrill <jason@redhat.com>
6035 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
6036 * opts.c (common_handle_option): constify.
6038 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
6040 * doc/install.texi (avr): Remove obsolete reference site.
6042 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
6044 * doc/install.texi (Binaries): Adjust AIX link.
6046 2009-09-12 Akim Demaille <demaille@gostai.com>
6048 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
6049 Use an imperative sentence.
6051 2009-09-11 Richard Henderson <rth@redhat.com>
6053 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
6054 structure-name and has-tree-operands arguments; update all entries.
6055 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
6057 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
6058 (gsstruct_code_size): New.
6059 (gss_for_code_): New.
6060 (gss_for_code): Remove.
6061 (gimple_size): Rewrite using gsstruct_code_size.
6062 (gimple_statement_structure): Move to gimple.h.
6063 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
6064 (gss_for_code, gimple_statement_structure): New.
6065 (gimple_ops): Use new arrays; tidy.
6067 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6069 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
6070 operand to be a PLUS expression.
6071 * config/pa/pa.c (pa_secondary_reload): Likewise.
6073 2009-09-11 Jakub Jelinek <jakub@redhat.com>
6075 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
6077 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
6080 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
6082 From Jie Zhang <jie.zhang@analog.com>:
6083 * doc/extend.texi (node Function Attributes): Document l2
6085 (node Blackfin Variable Attributes): Document l2 variable attributes.
6087 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
6089 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
6090 to match the system compiler's configuration at inflection point.
6091 Add comment to remark a remaining difference with system compiler.
6093 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
6094 * configure: Regenerate.
6096 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
6098 From Jie Zhang <jie.zhang@analog.com>:
6099 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
6100 (bfin_handle_l2_attribute): New.
6101 (bfin_attribute_table): Add l2 attribute.
6103 2009-09-11 Michael Matz <matz@suse.de>
6106 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
6107 on the local_decls list.
6109 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
6113 * cselib.c (cselib_expand_value_rtx_cb): Document callback
6115 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
6116 for VALUEs, to implement the documented interface.
6117 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6118 Adjust for VALUEs and anything else, to implement the
6119 documented interface.
6121 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
6123 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6124 with actual SPE/paired vector modes before using 64-bit alignment.
6125 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6127 2009-09-10 DJ Delorie <dj@redhat.com>
6129 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6132 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6133 * config/mep/mep.c (mep_legitimate_constant_p): New.
6134 * config/mep/mep-protos.h: Prototype it.
6136 2009-09-10 Richard Henderson <rth@redhat.com>
6138 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6140 2009-09-10 Jason Merrill <jason@redhat.com>
6142 * tree.c (chain_index): New fn.
6143 * tree.h: Declare it.
6145 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6147 * config/sol2-c.c (cmn_err_length_specs): Initialize
6148 scalar_identity_flag.
6150 2009-09-10 Richard Henderson <rth@redhat.com>
6152 * tree.h (struct tree_decl_common): Move align member earlier;
6153 move label_decl_uid member ...
6154 (struct tree_label_decl): ... here.
6155 (LABEL_DECL_UID): Update to match.
6157 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6160 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6161 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6163 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6164 dest_prev if the edge is complex.
6166 * tree-cfg.c (is_ctrl_stmt): Use a switch.
6168 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6169 loop latch tests earlier.
6171 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6172 before GIMPLE_RETURN, not after its predecessor; insert
6175 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6176 gimple_seq_empty_p to test for no PHI nodes.
6177 * tree-cfg.c (split_critical_edges): Likewise.
6179 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6181 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6183 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6184 introduced by the VTA branch merge.
6186 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
6188 * ira-conflicts.c: Use fputs or putc instead of fprintf
6192 * tree-switch-conversion.c: Ditto.
6194 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6196 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6197 introduced by the VTA branch merge.
6199 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
6202 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6204 PR rtl-optimization/39779
6205 * expr.c (convert_modes): Return when mode == oldmode after
6206 CONST_INTs are processed.
6208 2009-09-10 Nick Clifton <nickc@redhat.com>
6210 * config/mep/mep.c (mep_encode_section_info): Copy weakness
6211 attribute and referring decl when creating renamed symbol.
6213 2009-09-10 Richard Guenther <rguenther@suse.de>
6216 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6218 (cgraph_finalize_compilation_unit): Compute reachability
6219 before emitting thunks. Properly process aliases before
6220 possibly removing unreachable nodes.
6222 2009-09-10 Richard Guenther <rguenther@suse.de>
6225 * tree.c (struct free_lang_data_d): Add worklist member.
6226 (find_decls_types_r): Push onto the worklist instead of recursing.
6227 Handle TREE_BINFOs properly.
6228 (find_decls_types): New function wrapped around find_decls_types_r
6229 to process the worklist.
6230 (find_decls_types_in_eh_region): Use it.
6231 (find_decls_types_in_node): Likewise.
6232 (find_decls_types_in_var): Likewise.
6233 (free_lang_data_in_cgraph): Likewise. Free the worklist.
6234 * tree.h (RECORD_OR_UNION_TYPE_P): New.
6235 (AGGREGATE_TYPE_P): Adjust.
6237 2009-09-09 Jason Merrill <jason@redhat.com>
6239 * configure.ac: Check glibc version even if we have an in-tree
6242 2009-09-09 Anthony Green <green@moxielogic.com>
6244 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6245 the constant 0 when appropriate.
6246 * config/moxie/constraints.md: Add constraint O.
6248 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6249 to pass up to 6 32-bit argument values in registers.
6250 (moxie_function_arg): Ditto.
6251 (moxie_arg_partial_bytes): Ditto.
6252 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6253 (REG_PARM_STACK_SPACE): Ditto.
6254 (FUNCTION_ARG_REGNO_P): Ditto.
6256 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6257 instruction to allocate stack space.
6259 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
6261 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6262 unnecessarily stringent constraints. Fix address
6263 calculation in the splitters.
6265 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6267 PR rtl-optimization/39779
6268 * expr.c (convert_modes): Return when mode == oldmode after
6269 CONST_INTs are processed.
6271 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
6274 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6275 (ix86_expand_prologue): Take frame.padding0 into logic of
6277 (ix86_expand_epilogue): Likewise.
6279 2009-09-09 Jakub Jelinek <jakub@redhat.com>
6281 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6283 (SHLIB_LINK, SHLIB_INSTALL): Use them.
6284 * config/t-slibgcc-libgcc: New file.
6285 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6287 2009-09-09 Martin Jambor <mjambor@suse.cz>
6289 PR tree-optimization/41089
6290 * tree-sra.c (find_var_candidates): Do not consider va_lists in
6293 2009-09-09 Richard Henderson <rth@redhat.com>
6295 * gimple.h (CASE_GIMPLE_OMP): New.
6296 (is_gimple_omp): Use it.
6297 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6298 (verify_gimple_debug): Likewise.
6300 2009-09-09 Richard Guenther <rguenther@suse.de>
6302 PR tree-optimization/41101
6303 * tree-ssa-pre.c (maximal_set): Remove.
6304 (compute_antic_aux): Treat the maximal set as implicitly all ones.
6305 Defer all blocks we didn't visit at least one successor.
6306 (add_to_exp_gen): Do not add to the maximal set.
6307 (make_values_for_phi): Likewise.
6308 (compute_avail): Likewise.
6309 (init_pre): Do not allocate the maximal set.
6310 (execute_pre): Do not dump it.
6312 2009-09-09 Martin Jambor <mjambor@suse.cz>
6314 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6315 an SSA_NAME rather than a is_gimple_variable.
6317 2009-09-09 Richard Guenther <rguenther@suse.de>
6320 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6321 code dealing with plain pointer bases.
6322 (maybe_fold_offset_to_reference): Likewise.
6323 (maybe_fold_stmt_addition): Adjust.
6325 2009-09-09 Richard Guenther <rguenther@suse.de>
6327 * tree.c (free_lang_data_in_type): Do not free the type variant
6329 (free_lang_data): Merge char_type_node with its properly signed
6331 (pass_ipa_free): Collect after freeing language specific data.
6333 2009-09-09 Michael Matz <matz@suse.de>
6336 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6337 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6338 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6341 2009-09-08 DJ Delorie <dj@redhat.com>
6343 * config/mep/mep.c (conversions[]): Add "ml" pattern.
6345 2009-09-04 Jason Merrill <jason@redhat.com>
6347 * tree.c (tree_find_value): Remove.
6348 * tree.h: Remove prototype.
6349 * varasm.c (assemble_external): Use value_member instead.
6351 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6353 * toplev.c (process_options): Choose default debugging type when
6354 gtoggle enables debug info and type is unset.
6356 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6360 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6363 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6365 * configure: Rebuilt with modified libtool.m4.
6367 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6372 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6374 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6376 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6377 (remove_statement): Likewise.
6378 (rewrite_use_nonlinear_expr): Adjust.
6379 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6380 * tree-ssa.c (release_defs_bitset): ... this. New.
6381 * tree-flow.h (release_defs_bitset): Declare.
6383 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6386 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6387 in the middle block.
6389 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
6391 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6392 via intptr_t to long type.
6393 (insert_operand_rank): Cast long type via intptr_t to
6395 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6397 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6398 from pointer to unsigned via uintptr_t.
6400 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6401 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6403 * configure: Regenerated.
6404 * config.in: Regenerated
6405 * system.h (stdint.h): Add include.
6406 (inttypes.h): Likewise.
6407 * Makefile.in (aclocal): Add config/stdint.m4.
6408 * aclocal.m4: Regenerated.
6410 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
6412 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6414 (note_np_check_stores): New function.
6415 (harmless_null_pointer_p): New function.
6416 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
6417 changed. Take into account whether we're in the shadow of a condjump
6418 that tested NP_REG for NULL.
6419 Lose all code that tested for SEQUENCEs.
6420 (workaround_speculation): Avoid inserting NOPs for loads that are
6421 either always executed or a NULL pointer.
6423 2009-09-08 Jan Hubicka <jh@suse.cz>
6425 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6426 * params.def (early-inlining-insns): Likewise.
6428 2009-09-08 Jakub Jelinek <jakub@redhat.com>
6430 PR rtl-optimization/41239
6431 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6432 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6434 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6435 across calls, as the calls might not always return normally.
6436 (call_may_noreturn_p): New function.
6437 (deps_analyze_insn): Update last_function_call_may_noreturn list.
6438 (init_deps): Initialize it.
6439 (remove_from_deps): Also remove calls from
6440 last_function_call_may_noreturn list.
6442 2009-09-07 Richard Henderson <rth@redhat.com>
6444 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6445 more VR->OPERANDS than LHS operands. Free LHS before returning.
6447 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6449 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6450 (attr "addrtype"): New member "spreg".
6451 Use it if mem_spfp_address_operand is true for the address.
6452 (attr "type"): New entry "stall".
6453 (cpu_unit "load"): New.
6454 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6456 (insn_reservation "loadsp"): New.
6457 (insn_reservation "load_stall1"): New.
6458 (insn_reservation "load_stall3"): New.
6460 * config/bfin/predicates.md (const1_operand, const3_operand): New.
6461 (mem_p_address_operand): Exclude stack and frame pointer based
6463 (mem_spfp_address_operand): New; match them here.
6464 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6465 (bfin_reorg): Call it if scheduling insns.
6466 (bfin_gen_bundles): Remove dummy insns created by
6467 add_sched_insns_for_speculation.
6469 From Jie Zhang <jie.zhang@analog.com>:
6470 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6471 bfin_si_revision, bfin_workarounds): Move these ...
6472 * config/bfin/bfin.h: ... here.
6474 From Mike Frysinger <michael.frysinger@analog.com>
6475 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6476 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6477 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6478 bf547m, bf548m, and bf549m.
6479 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6480 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6481 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6482 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6483 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6484 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6485 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6486 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6487 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6488 bf542m, bf544m, bf547m, bf548m, and bf549m.
6490 From Jie Zhang <jie.zhang@analog.com>:
6491 * config/bfin/predicates.md (p_register_operand): New predicate.
6492 (dp_register_operand): New predicate.
6493 * config/bfin/bfin-protos.h (WA_05000074): Define.
6494 (ENABLE_WA_05000074): Define.
6495 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6496 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6497 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6498 (define_attr addrtype): Allow load/store register to be P register.
6499 (define_attr storereg): New.
6500 (define_cpu_unit anomaly_05000074): New.
6501 (define_insn_reservation dsp32shiftimm): New.
6502 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6503 (define_insn_reservation loadp): Cannot use slot2.
6504 (define_insn_reservation loadsp): Cannot use slot2.
6505 (define_insn_reservation storep): Cannot use slot2. Does not
6506 apply when working around 05000074.
6507 (define_insn_reservation storep_anomaly_05000074): New.
6508 (define_insn_reservation storei): Does not apply when working
6510 (define_insn_reservation storei_anomaly_05000074): New.
6511 (define_attr length): Add dsp32shiftimm case.
6512 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6513 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6514 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6515 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6516 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6518 2009-09-07 Martin Jambor <mjambor@suse.cz>
6521 * tree-sra.c (create_artificial_child_access): Return NULL if
6522 build_ref_for_offset fails.
6523 (propagate_subacesses_accross_link): Allow build_ref_for_offset
6524 and create_artificial_child_access to fail.
6526 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
6529 * unwind-dw2.c (uw_init_context_1): Mark noinline.
6530 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6531 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6533 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6535 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6536 block, ensure it has an exit edge. Emit a barrier after a jump.
6538 2009-09-07 Nick Clifton <nickc@redhat.com>
6540 * gcc.c (this_is_linker_script): New variable. Like
6541 this_is_library_file but for the %T constructor.
6542 (end_going_arg): If this_is_linker_script is set then locate the
6543 script and insert a --script switch before it
6544 (do_spec_2): Initialise this_is_linker_script.
6545 (do_spec_1): Likewise. Handle %T construct.
6546 (eval_spec_function): Preserve this_is_linker_script.
6547 * doc/invoke.texi: Document %T construct in spec files.
6548 * config/m32c/m32c.h (LIB_SPEC): Use it.
6550 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6552 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6553 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6554 when volatile flag is set.
6555 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6557 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
6560 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6561 (combine_stack_adjustments_for_block): Allow insns between stack
6562 adjustments and stores with corresponding pre-(dec|inc)rement or
6563 pre-modify operation.
6565 2009-09-06 Jakub Jelinek <jakub@redhat.com>
6568 * combine-stack-adj.c (struct csa_memlist): Rename to...
6569 (struct csa_reflist): ... this. Rename mem field to ref.
6570 (free_csa_memlist): Rename to...
6571 (free_csa_reflist): ... this.
6572 (record_one_stack_memref): Rename to...
6573 (record_one_stack_ref): ... this. Handle also REG_P.
6574 (try_apply_stack_adjustment): Handle also REG_P.
6575 (struct record_stack_memrefs_data): Rename to...
6576 (struct record_stack_refs_data): ... this. Rename memlist field to
6578 (record_stack_memrefs): Rename to...
6579 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
6580 subexpressions instead of failing when a MEM contains SP references.
6581 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6582 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6584 2009-09-06 Richard Guenther <rguenther@suse.de>
6587 * tree.c (build_array_type): Do not record types marked
6588 with structural equality in the canonical type hashtable.
6590 2009-09-06 Richard Guenther <rguenther@suse.de>
6593 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6595 2009-09-05 Richard Guenther <rguenther@suse.de>
6598 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6600 2009-09-05 Richard Guenther <rguenther@suse.de>
6603 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6605 2009-09-05 Richard Guenther <rguenther@suse.de>
6608 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6609 before comparing function argument types.
6611 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6614 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6617 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
6620 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
6622 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6623 locators before emit_insn is called.
6625 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
6628 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6629 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6630 (reginfo_init): Don't call allocate_reg_info.
6632 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
6635 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6636 NONDEBUG_INSN_P instead of INSN_P.
6638 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6641 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6643 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6646 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6647 pattern of the split.
6649 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6651 * toplev.c (process_options): Move setter of flag_var_tracking
6652 before other tests that depend on it. Move down setter of
6653 flag_rename_registers. Don't enable var-tracking-assignments
6654 by default if selective scheduling is enabled. Warn if both
6657 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6659 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6660 comment. Use switch statement to catch overlaps between rtx
6661 and tree codes. Accept FUNCTION_DECLs in addition to those in...
6662 (IS_DECL_CODE): ... here. Remove.
6663 (check_value_is_not_decl): Remove.
6664 (dv_from_decl, dv_from_value): Check after conversion.
6666 2009-09-04 Richard Guenther <rguenther@suse.de>
6669 * (cgraph_finalize_compilation_unit): Move finalizing aliases
6670 after emitting tunks. Move emitting thunks and ctors from ...
6671 (cgraph_optimize): ... here. Remove redundant
6672 cgraph_analyze_functions.
6673 * varasm.c (find_decl_and_mark_needed): Remove no longer
6675 (finish_aliases_1): Adjust check for thunk aliases.
6677 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
6679 * config/arm/arm.md (ctzsi2): Added braces
6680 to avoid warning that broke booststrap.
6682 2009-09-04 Martin Jambor <mjambor@suse.cz>
6684 PR tree-optimization/41112
6685 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6686 handle variable-bounded arrays.
6687 (expr_with_var_bounded_array_refs_p): New function.
6688 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6690 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
6692 * config/s390/2097.md: Removed two incorrect bypasses.
6693 (z10_fsimpdf): Fixed latency.
6694 (z10_fhex): New insn_reservation.
6695 (z10_floaddf): Fixed latency.
6696 (z10_floadsf): Fixed latency.
6697 (z10_ftrunctf): Fixed latency.
6698 (z10_ftruncdf): Fixed latency.
6699 * config/s390/s390.c (z10_cost): Fixed values.
6700 (s390_adjust_priority): Added z10 path.
6701 * config/s390/s390.md (type): Added fhex.
6702 (*mov<mode>_64dfp): Updated type attribute.
6703 (*mov<mode>_64): Updated type attribute.
6704 (*mov<mode>_31): Updated type attribute.
6705 (*mov<mode>"): Likewise.
6706 * config/s390/2084.md (x_fsimpdf): Updated condition.
6708 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
6710 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6711 RTXs in the predicate for operand 1.
6713 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
6715 * config/arm/arm.md (UNSPEC_RBIT): New constant.
6716 (rbitsi2): New insn.
6717 (ctzsi2): New expand.
6718 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6720 2009-09-03 Martin Jambor <mjambor@suse.cz>
6722 * tree-sra.c (duplicate_expr_for_different_base): Removed.
6723 (create_artificial_child_access): Use build_ref_for_offset instead
6724 of duplicate_expr_for_different_base.
6725 (propagate_subacesses_accross_link): Likewise.
6727 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
6729 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6731 (mips16e_collect_argument_saves): Skip debug instructions.
6732 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6733 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6734 (r10k_insert_cache_barriers): Likewise.
6735 (mips_reorg_process_insns): Likewise.
6737 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
6740 * ira.c (update_equiv_reg): Remove check on class likely spill.
6742 2009-09-03 Jakub Jelinek <jakub@redhat.com>
6745 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6746 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
6750 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6751 the stack slot if it is passed by invisible reference.
6752 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6753 by invisible reference.
6755 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
6757 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6758 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6759 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6761 * config/bfin/sync.md: New file.
6762 * config/bfin/bfin.md: Include it.
6763 (UNSPEC_ATOMIC): New.
6764 (UNSPEC_ONES): Provide a unique number.
6766 From Jie Zhang <jie.zhang@analog.com>:
6767 * config/bfin/bfin.c (ret_regs): New.
6768 (must_save_fp_p): Don't return true because of frame_pointer_needed.
6769 (must_save_rets_p): New.
6770 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6771 current_function_is_leaf.
6772 (do_link): Likewise.
6773 (do_unlink): Likewise.
6774 (expand_interrupt_handler_prologue): Use ret_regs array.
6775 (expand_interrupt_handler_epilogue): Use ret_regs array and
6776 pass return register to gen_return_internal.
6777 (bfin_expand_epilogue): Pass return register to
6778 gen_return_internal.
6779 (bfin_expand_call): Explicitly clobber RETS.
6780 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6781 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6782 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6783 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6785 (return_internal): Take a reg rtx rather than the register number.
6787 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
6789 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6790 when comparing against estimated_loop_iterations_int return.
6792 2009-09-03 Richard Guenther <rguenther@suse.de>
6794 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6795 eh_personality_libfunc.
6797 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
6799 * tree-parloops.c (separate_decls_in_region): Add space.
6801 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
6803 * tree-parloops.c (separate_decls_in_region): Change the condition
6804 checking if there are reductions in the loop.
6806 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
6808 PR tree-optimization/38275
6809 * tree-parloops.c (parallelize_loops): Replace profitability condition
6810 for expected number of iterations.
6812 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
6814 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6815 (bootstrap-debug): Explain conditions in which it becomes default.
6816 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6819 2009-09-03 Namhyung Kim <namhyung@gmail.com>
6821 * doc/invoke.texi (Optimize Options): Move
6822 -finline-small-functions to the -O2 list.
6824 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
6826 * toplev.c (process_options): Enable var-tracking-assignments
6827 by default if var-tracking is enabled.
6829 2009-09-02 David Daney <ddaney@caviumnetworks.com>
6831 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6833 * emit-rtl.c (prev_nonnote_insn_bb): New function.
6834 * rtl.h (prev_nonnote_insn_bb): Declare it.
6836 2009-09-03 Diego Novillo <dnovillo@google.com>
6838 * cgraph.c (cgraph_node_for_decl): New.
6839 * cgraph.h (cgraph_node_for_decl): Declare.
6840 * tree.c (host_integerp): Return 0 if T is NULL.
6842 2009-09-03 Diego Novillo <dnovillo@google.com>
6844 * tree.h (struct alias_pair): Move from varasm.c.
6845 (alias_pairs): Likewise.
6846 (TYPE_MAXVAL): Define.
6847 (TYPE_MINVAL): Define.
6848 (iterative_hash_host_wide_int): Declare.
6849 (remove_unreachable_alias_pairs): Declare.
6850 * tree-pass.h (pass_ipa_free_lang_data): Declare.
6851 * diagnostic.c (default_diagnostic_starter): Make extern.
6852 (default_diagnostic_finalizer): Make extern.
6853 * diagnostic.h (default_diagnostic_starter): Declare.
6854 (default_diagnostic_finalizer): Declare.
6855 (default_tree_printer): Declare.
6856 * toplev.c (default_tree_printer): Make extern.
6858 2009-09-03 Richard Guenther <rguenther@suse.de>
6859 Diego Novillo <dnovillo@google.com>
6861 * cgraph.c (cgraph_add_new_function): Remove gimplification.
6862 * cgraphunit.c (cgraph_expand_function): Do not emit
6863 associated thunks from here.
6864 (cgraph_emit_thunks): New.
6865 (cgraph_optimize): Call it.
6866 Return if any IPA pass finds an error.
6867 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6870 2009-09-03 Simon Baldwin <simonb@google.com>
6871 Rafael Espindola <espindola@google.com>
6872 Richard Guenther <rguenther@suse.de>
6873 Doug Kwan <dougkwan@google.com>
6874 Diego Novillo <dnovillo@google.com>
6876 * tree.c: Include tree-pass.h, langhooks-def.h,
6877 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6878 (free_lang_data_in_type): New.
6879 (need_assembler_name_p): New.
6880 (free_lang_data_in_block): New.
6881 (free_lang_data_in_decl): New.
6882 (struct free_lang_data_d): New.
6883 (add_tree_to_fld_list): New.
6884 (find_decls_types_r): New.
6885 (get_eh_types_for_runtime): New.
6886 (find_decls_types_in_eh_region): New.
6887 (find_decls_types_in_node): New.
6888 (find_decls_types_in_var): New.
6889 (free_lang_data_in_cgraph): New.
6890 (free_lang_data): New.
6891 (gate_free_lang_data): New.
6892 (pass_ipa_free_lang_data): New.
6894 2009-09-03 Diego Novillo <dnovillo@google.com>
6896 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6897 * langhooks.h (struct lang_hooks): Add field free_lang_data.
6898 (lang_hooks): Remove const qualifier.
6899 * ipa.c (cgraph_remove_unreachable_nodes): Call
6900 remove_unreachable_alias_pairs.
6901 * except.c (add_type_for_runtime): Check if TYPE has
6902 already been converted.
6903 (lookup_type_for_runtime): Likewise.
6904 (check_handled): Handle converted types.
6905 * varasm.c (remove_unreachable_alias_pairs): New.
6906 * gimple.c: Include demangle.h.
6907 (gimple_decl_printable_name): New.
6908 (gimple_fold_obj_type_ref): New.
6909 * gimple.h (gimple_decl_printable_name): Declare.
6910 (gimple_fold_obj_type_ref): Declare.
6911 * passes.c (init_optimization_passes): Add pass
6912 pass_ipa_free_lang_data.
6913 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6914 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6916 2009-09-03 Diego Novillo <dnovillo@google.com>
6918 * c-lang.c (lang_hooks): Remove const qualifier.
6920 2009-09-02 Loren James Rittle <ljrittle@acm.org>
6922 * doc/install.texi (*-*-freebsd*): Update target information.
6924 2009-09-02 Anatoly Sokolov <aesok@post.ru>
6926 * hard-reg-set.h (call_fixed_regs): Remove.
6927 * reginfo.c (call_fixed_regs): Remove.
6928 (init_reg_sets_1): Remove initialization of call_fixed_regs.
6929 (globalize_reg): Don't use call_fixed_regs.
6930 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6933 2009-09-01 Michael Matz <matz@suse.de>
6935 * expr.h (emit_storent_insn, expand_expr_real_1,
6936 expand_expr_real_2): Declare.
6937 * expr.c (emit_storent_insn, expand_expr_real_1,
6938 expand_expr_real_2): Export.
6939 (store_expr): Setting and evaluating dont_return_target is useless.
6940 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6941 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6942 * except.c (expand_resx_expr): Rename to ...
6943 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
6944 * except.h (expand_resx_stmt): Declare.
6945 * stmt.c: Add include gimple.h
6946 (expand_asm_expr): Rename to ...
6947 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6948 (expand_case): Rewrite to take gimple statement.
6949 * tree.h (expand_asm_stmt): Declare.
6950 (expand_case): Change prototype.
6951 * Makefile.in (stmt.o): Depend on gimple.h.
6952 * builtins.c (expand_builtin_synchronize): Build gimple asm
6953 statement, not an ASM_EXPR.
6954 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6955 gimple_to_tree, release_stmt_tree): Remove.
6956 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6957 ggc_free, but hold comparison code and operands separately.
6958 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6959 (expand_call_stmt, expand_gimple_stmt_1,
6960 expand_gimple_stmt): New helpers.
6961 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6962 release_stmt_tree. Call expand_gimple_stmt instead.
6963 (expand_gimple_basic_block): Ditto.
6965 * calls.c (emit_call_1): Don't look at EH regions here, make
6966 fntree parameter useless.
6967 (expand_call): New local rettype for TREE_TYPE(exp), use it
6968 throughout. Remove local p, use addr instead.
6969 Don't look at EH regions here.
6971 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
6973 * doc/invoke.texi (-fsched-pressure): Document it.
6974 (-fsched-reg-pressure-heuristic): Remove it.
6976 * reload.c (ira.h): Include.
6977 (find_reloads): Add choosing reload on number of small spilled
6980 * haifa-sched.c (ira.h): Include.
6981 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6982 saved_reg_pressure, curr_reg_live, saved_reg_live,
6983 region_ref_regs): New variables.
6984 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6985 initiate_reg_pressure_info, setup_ref_regs,
6986 initiate_bb_reg_pressure_info, save_reg_pressure,
6987 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6989 (setup_insn_reg_pressure_info): New function.
6990 (rank_for_schedule): Add pressure checking and insn issue time.
6991 Remove comparison of insn reg weights.
6992 (ready_sort): Set insn reg pressure info.
6993 (update_register_pressure, setup_insn_max_reg_pressure,
6994 update_reg_and_insn_max_reg_pressure,
6995 sched_setup_bb_reg_pressure_info): New functions.
6996 (schedule_insn): Add code for printing and updating reg pressure info.
6997 (find_set_reg_weight, find_insn_reg_weight): Remove.
6998 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6999 (debug_ready_list): Print reg pressure info.
7000 (schedule_block): Ditto. Check insn issue time.
7001 (sched_init): Set up sched_pressure_p. Allocate and set up some
7002 reg pressure related info.
7003 (sched_finish): Free some reg pressure related info.
7004 (fix_tick_ready): Make insn always ready if pressure_p.
7005 (init_h_i_d): Don't call find_insn_reg_weight.
7006 (haifa_finish_h_i_d): Free insn reg pressure info.
7008 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7009 ira_memory_move_cost, ira_class_hard_regs,
7010 ira_class_hard_regs_num, ira_no_alloc_regs,
7011 ira_available_class_regs, ira_reg_class_cover_size,
7012 ira_reg_class_cover, ira_class_translate): Move to ira.h.
7014 * ira-lives.c (single_reg_class): Check mode to find how many
7015 registers are necessary for operand.
7016 (ira_implicitly_set_insn_hard_regs): New.
7018 * common.opt (fsched-pressure): New options.
7019 (fsched-reg-pressure-heuristic): Remove.
7021 * ira.c (setup_eliminable_regset): Rename to
7022 ira_setup_eliminable_regset. Make it external.
7023 (expand_reg_info): Pass cover class to setup_reg_classes.
7024 (ira): Call resize_reg_info instead of allocate_reg_info.
7026 * sched-deps.c: Include ira.h.
7027 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
7028 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
7029 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
7030 mark_insn_hard_regno_birth, mark_insn_reg_birth,
7031 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
7032 mark_insn_reg_store, mark_insn_reg_clobber,
7033 setup_insn_reg_pressure_info): New.
7034 (sched_analyze_1): Update implicit_reg_pending_uses.
7035 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
7036 Use them to create dependencies. Set insn reg uses and pressure
7037 info. Process reg_pending_uses in one place.
7038 (free_deps): Free implicit sets.
7039 (remove_from_deps): Remove implicit sets if necessary. Check
7040 implicit sets when clearing reg_last_in_use.
7041 (init_deps_global): Clear implicit_reg_pending_clobbers and
7042 implicit_reg_pending_uses.
7044 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7045 ira_memory_move_cost, ira_class_hard_regs,
7046 ira_class_hard_regs_num, ira_no_alloc_regs,
7047 ira_available_class_regs, ira_reg_class_cover_size,
7048 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
7049 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
7050 ira_implicitly_set_insn_hard_regs): New prototypes.
7052 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
7053 cost_elements_num): New variables.
7054 (allocno_costs, total_costs): Rename to costs and
7055 total_allocno_costs.
7056 (COSTS_OF_ALLOCNO): Rename to COSTS.
7057 (allocno_pref): Rename to pref.
7058 (allocno_pref_buffer): Rename to pref_buffer.
7059 (common_classes): Rename to regno_cover_class.
7061 (record_reg_classes): Set allocno attributes only if allocno_p.
7062 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
7063 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
7064 and COSTS_OF_ALLOCNO.
7065 (print_costs): Rename to print_allocno_costs.
7066 (print_pseudo_costs): New.
7067 (process_bb_node_for_costs): Split into 2 functions with new
7068 function process_bb_for_costs. Pass BB to process_bb_for_costs.
7069 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
7070 new parameter dump_file. Use cost_elements_num instead of
7071 ira_allocnos_num. Make one iteration if preferred classes were
7072 already calculated for scheduler. Make 2 versions of code
7073 depending on allocno_p.
7074 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
7075 regno_cover_class and COSTS instead of common_classes and
7077 (init_costs, finish_costs): New.
7078 (ira_costs): Set up allocno_p and cost_elements_num. Call
7079 init_costs and finish_costs.
7080 (ira_set_pseudo_classes): New.
7082 * rtl.h (allocate_reg_info): Remove.
7083 (resize_reg_info): Change return type.
7084 (reg_cover_class): New.
7085 (setup_reg_classes): Add new parameter.
7087 * sched-int.h (struct deps_reg): New member implicit_sets.
7088 (sched_pressure_p, sched_regno_cover_class): New external definitions.
7089 (INCREASE_BITS): New macro.
7090 (struct reg_pressure_data, struct reg_use_data): New.
7091 (struct _haifa_insn_data): Remove reg_weight. Add members
7092 reg_pressure, reg_use_list, reg_set_list, and
7093 reg_pressure_excess_cost_change.
7094 (struct deps): New member implicit_sets.
7095 (pressure_p): New variable.
7096 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
7097 (struct reg_pressure_data, struct reg_use_data): New.
7098 (INSN_REG_WEIGHT): Remove.
7099 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
7100 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
7101 (sched_init_region_reg_pressure_info,
7102 sched_setup_bb_reg_pressure_info): New prototypes.
7104 * reginfo.c (struct reg_pref): New member coverclass.
7105 (reg_cover_class): New function.
7106 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
7107 (reg_info_size): New variable.
7108 (allocate_reg_info): Make static. Setup reg_info_size.
7109 (resize_reg_info): Use reg_info_size. Return flag of resizing.
7110 (setup_reg_classes): Add a new parameter. Setup cover class too.
7112 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
7115 * sched-rgn.c (deps_join): Set up implicit_sets.
7116 (schedule_region): Set up region and basic blocks pressure
7119 * passes.c (init_optimization_passes): Move
7120 pass_subregs_of_mode_init before pass_sched.
7122 2009-09-02 Martin Jambor <mjambor@suse.cz>
7124 * tree-sra.c (struct access): New field grp_hint.
7125 (dump_access): Dump grp_hint.
7126 (sort_and_splice_var_accesses): Set grp_hint if a group is read
7128 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7129 those which have been specifically read and somehow written to.
7130 (propagate_subacesses_accross_link): Set grp_hint of right child and
7131 also possibly of the left child.
7133 2009-09-02 Jakub Jelinek <jakub@redhat.com>
7135 * tree-object-size.c (addr_object_size): Always use object_size_type
7136 0 or 2 when determining the pointer pointed object size.
7138 2009-09-02 Richard Guenther <rguenther@suse.de>
7141 2009-08-31 Richard Guenther <rguenther@suse.de>
7143 * builtins.c (fold_builtin_memory_op): Use the alias oracle
7144 to query if the memory regions for memmove overlap.
7145 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7146 asserts on pointers, instead deal with odd trees.
7147 (ptr_derefs_may_alias_p): Likewise.
7148 (refs_may_alias_p_1): Constructor bases also never alias.
7150 2009-08-01 Christian Bruel <christian.bruel@st.com>
7153 2009-07-31 Christian Bruel <christian.bruel@st.com>
7154 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7156 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
7158 * doc/invoke.texi (-fvar-tracking-assignments): New.
7159 (-fvar-tracking-assignments-toggle): New.
7160 (-fdump-final-insns=file): Mark filename as optional.
7161 (--param min-nondebug-insn-uid): New.
7162 (-gdwarf-@{version}): Mention version 4.
7163 * opts.c (common_handle_option): Accept it.
7164 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7165 * regrename.c (regrename_optimize): Drop last. Don't count debug
7166 insns as uses. Don't reject change because of debug insn.
7167 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
7168 from the chain starter, and check for inexact matches in DEBUG_INSNS.
7169 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7170 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7171 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7172 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7173 * doc/gimple.texi (is_gimple_debug): New.
7174 (gimple_debug_bind_p): New.
7175 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7176 * doc/install.texi (bootstrap-debug): More details.
7177 (bootstrap-debug-big, bootstrap-debug-lean): Document.
7178 (bootstrap-debug-lib): More details.
7179 (bootstrap-debug-ckovw): Update.
7180 (bootstrap-time): New.
7181 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7182 (insert_phi_nodes_for): Insert debug stmts.
7183 (rewrite_stmt): Take iterator. Insert debug stmts.
7184 (rewrite_enter_block): Adjust.
7185 (maybe_replace_use_in_debug_stmt): New.
7186 (rewrite_update_stmt): Use it.
7187 (mark_use_interesting): Return early for debug stmts.
7188 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7189 stmts before replacing stmt.
7190 (move_computations_stmt): Likewise.
7191 * ira-conflicts.c (add_copies): Skip debug insns.
7192 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7193 (regstat_bb_compute_ri): Skip debug insns.
7194 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7195 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7196 check_loop_closed_ssa_stmt): Skip debug stmts.
7197 * tree-tailcall.c (find_tail_calls): Likewise.
7198 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7199 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7200 (build_var_debug_value_stat): Declare.
7201 (build_var_debug_value): Define.
7202 (target_for_debug_bind): Declare.
7203 * reload.c (find_equiv_reg): Skip debug insns.
7204 * rtlanal.c (reg_used_between_p): Skip debug insns.
7205 (side_effects_p): Likewise.
7206 (canonicalize_condition): Likewise.
7207 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7208 insns never depend on debug insns.
7209 (create_ddg_dep_no_link): Likewise.
7210 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7211 Don't add inter-loop dependencies for debug insns.
7212 (build_intra_loop_deps): Likewise.
7213 (create_ddg): Count debug insns.
7214 * ddg.h (struct ddg::num_debug): New.
7215 (num_backargs): Pair up with previous int field.
7216 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7217 -fcompare-debug-second.
7218 * final.c (get_attr_length_1): Skip debug insns.
7219 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7220 * gcc.c (invoke_as): Call compare-debug-dump-opt.
7221 (driver_self_specs): Map -fdump-final-insns to
7222 -fdump-final-insns=..
7223 (get_local_tick): New.
7224 (compare_debug_dump_opt_spec_function): Test for . argument and
7225 compute output name. Compute temp output spec without flag name.
7226 Compute -frandom-seed.
7227 (OPT): Undef after use.
7228 * cfgloopanal.c (num_loop_insns): Skip debug insns.
7229 (average_num_loop_insns): Likewise.
7230 * params.h (MIN_NONDEBUG_INSN_UID): New.
7231 * gimple.def (GIMPLE_DEBUG): New.
7232 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7233 * auto-inc-dec.c (merge_in_block): Skip debug insns.
7234 (merge_in_block): Fix whitespace.
7235 * toplev.c (flag_var_tracking): Update comment.
7236 (flag_var_tracking_assignments): New.
7237 (flag_var_tracking_assignments_toggle): New.
7238 (process_options): Don't open final insns dump file if we're not
7239 going to write to it. Compute defaults for var_tracking.
7240 * df-scan.c (df_insn_rescan_debug_internal): New.
7241 (df_uses_record): Handle debug insns.
7242 * haifa-sched.c (ready): Initialize n_debug.
7243 (contributes_to_priority): Skip debug insns.
7244 (dep_list_size): New.
7246 (rank_for_schedule): Likewise. Schedule debug insns as soon as
7247 they're ready. Disregard previous debug insns to make decisions.
7248 (queue_insn): Never queue debug insns.
7249 (ready_add, ready_remove_first, ready_remove): Count debug insns.
7250 (schedule_insn): Don't reject debug insns because of issue rate.
7251 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7252 (queue_to_ready): Skip and discount debug insns.
7253 (choose_ready): Let debug insns through.
7254 (schedule_block): Check boundary debug insns. Discount debug
7255 insns, schedule them early. Adjust whitespace.
7256 (set_priorities): Check for boundary debug insns.
7257 (add_jump_dependencies): Use dep_list_size.
7258 (prev_non_location_insn): New.
7259 (check_cfg): Use it.
7260 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7262 (remove_unused_ivs): Reset debug stmts.
7263 * modulo-sched.c (const_iteration_count): Skip debug insns.
7264 (res_MII): Discount debug insns.
7265 (loop_single_full_bb_p): Skip debug insns.
7266 (sms_schedule): Likewise.
7267 (sms_schedule_by_order): Likewise.
7268 (ps_has_conflicts): Likewise.
7269 * caller-save.c (refmarker_fn): New.
7270 (save_call_clobbered_regs): Replace regs with saved mem in
7272 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
7273 Call refmarker_fn mark for hardregnos.
7274 (mark_reg_as_referenced): New.
7275 (replace_reg_with_saved_mem): New.
7276 * ipa-pure-const.c (check_stmt): Skip debug stmts.
7277 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
7279 (cse_extended_basic_block): Skip debug insns.
7280 (count_reg_usage): Likewise.
7281 (is_dead_reg): New, split out of...
7282 (set_live_p): ... here.
7283 (insn_live_p): Use it for debug insns.
7284 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7285 (execute_optimize_stdarg): Likewise.
7286 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7287 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7288 changes in debug stmts as changes.
7289 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7290 (moveup_expr): Don't move across debug insns. Don't move
7291 debug insn if it would create a bookkeeping block.
7292 (moveup_expr_cached): Don't use cache for debug insns that
7293 are heads of blocks.
7294 (compute_av_set_inside_bb): Skip debug insns.
7295 (sel_rank_for_schedule): Schedule debug insns first. Remove
7297 (block_valid_for_bookkeeping_p); Support lax searches.
7298 (create_block_for_bookkeeping): Adjust block numbers when
7299 encountering debug-only blocks.
7300 (find_place_for_bookkeeping): Deal with debug-only blocks.
7301 (generate_bookkeeping_insn): Accept no place to insert.
7302 (remove_temp_moveop_nops): New argument full_tidying.
7303 (prepare_place_to_insert): Deal with debug insns.
7304 (advance_state_on_fence): Debug insns don't start cycles.
7305 (update_boundaries): Take fence as argument. Deal with
7307 (schedule_expr_on_boundary): No full_tidying on debug insns.
7308 (fill_insns): Deal with debug insns.
7309 (track_scheduled_insns_and_blocks): Don't count debug insns.
7310 (need_nop_to_preserve_insn_bb): New, split out of...
7311 (remove_insn_from_stream): ... this.
7312 (fur_orig_expr_not_found): Skip debug insns.
7313 * rtl.def (VALUE): Move up.
7315 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7316 (nearest_common_dominator_of_uses): Take debug_stmts argument.
7317 Set it if debug stmts are found.
7318 (statement_sink_location): Skip debug stmts. Propagate
7319 moving defs into debug stmts.
7320 * ifcvt.c (first_active_insn): Skip debug insns.
7321 (last_active_insns): Likewise.
7322 (cond_exec_process_insns): Likewise.
7323 (noce_process_if_block): Likewise.
7324 (check_cond_move_block): Likewise.
7325 (cond_move_convert_if_block): Likewise.
7326 (block_jumps_and_fallthru_p): Likewise.
7327 (dead_or_predicable): Likewise.
7328 * dwarf2out.c (debug_str_hash_forced): New.
7329 (find_AT_string): Add comment.
7330 (gen_label_for_indirect_string): New.
7331 (get_debug_string_label): New.
7332 (AT_string_form): Use it.
7333 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
7334 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
7335 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7336 several operations that cannot be represented with DWARF opcodes.
7337 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
7338 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7339 (dwarf2out_var_location): Take during-call mark into account.
7340 (output_indirect_string): Update comment. Output if there are
7341 label and references.
7342 (prune_indirect_string): New.
7343 (prune_unused_types): Call it if debug_str_hash_forced.
7344 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7345 (dw_long_long_const): Remove.
7346 (struct dw_val_struct): Change val_long_long type to rtx.
7347 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7348 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7349 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
7350 component instead of HOST_BITS_PER_LONG.
7351 (output_loc_operands): Likewise. For const8* assert
7352 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7353 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7354 rather than HOST_BITS_PER_LONG is >= 64.
7355 (add_AT_long_long): Remove val_hi and val_lo arguments, add
7357 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7358 HOST_BITS_PER_LONG for dw_val_class_long_long.
7359 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
7360 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
7361 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7363 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7364 Handle DW_OP_implicit_value.
7365 (extract_int): Move prototype earlier.
7366 (mem_loc_descriptor): For SUBREG punt if inner
7367 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
7368 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
7369 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7370 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7371 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7372 instead of Pmode size.
7373 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
7374 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7375 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
7376 (concat_loc_descriptor, concatn_loc_descriptor,
7377 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7378 (add_location_or_const_value_attribute): Likewise. For single
7379 location loc_lists attempt to use add_const_value_attribute
7380 for constant decls. Add DW_AT_const_value even if
7381 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7383 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7384 (control_flow_insn_p): Likewise.
7385 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7386 (separate_decls_in_region_debug_bind): New.
7387 (separate_decls_in_region): Process debug bind stmts afterwards.
7388 * recog.c (verify_changes): Handle debug insns.
7389 (extract_insn): Likewise.
7390 (peephole2_optimize): Skip debug insns.
7391 * dse.c (scan_insn): Skip debug insns.
7392 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7394 (setup_id_for_insn): Handle debug insns.
7395 (maybe_tidy_empty_bb): Adjust whitespace.
7396 (tidy_control_flow): Skip debug insns.
7397 (sel_remove_insn): Adjust for debug insns.
7398 (sel_estimate_number_of_insns): Skip debug insns.
7399 (create_insn_rtx_from_pattern): Handle debug insns.
7400 (create_copy_of_insn_rtx): Likewise.
7401 * sel-sched-.h (sel_bb_end): Declare.
7402 (sel_bb_empty_or_nop_p): New.
7403 (get_all_loop_exits): Use it.
7404 (_eligible_successor_edge_p): Likewise.
7405 (return_nop_to_pool): Adjust.
7406 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7407 * ira-lives.c (process_bb_node_lives): Skip debug insns.
7408 * gimple-pretty-print.c (dump_gimple_debug): New.
7409 (dump_gimple_stmt): Use it.
7410 (dump_bb_header): Skip gimple debug stmts.
7411 * regmove.c (optimize_reg_copy_1): Discount debug insns.
7412 (fixup_match_2): Likewise.
7413 (regmove_backward_pass): Likewise. Simplify combined
7414 replacement. Handle debug insns.
7415 * function.c (instantiate_virtual_regs): Handle debug insns.
7416 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7417 * print-rtl.h: Include cselib.h.
7418 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
7419 * df.h (df_inns_rescan_debug_internal): Declare.
7420 * gcse.c (alloc_hash_table): Estimate n_insns.
7421 (cprop_insn): Don't regard debug insns as changes.
7422 (bypass_conditional_jumps): Skip debug insns.
7423 (one_pre_gcse_pass): Adjust.
7424 (one_code_hoisting_pass): Likewise.
7425 (compute_ld_motion_mems): Skip debug insns.
7426 (one_cprop_pass): Adjust.
7427 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7428 (if_convertible_stmt_p): Handle debug stmts.
7429 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7430 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7431 * ira-build.c (create_bb_allocnos): Skip debug insns.
7432 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7433 (has_single_use): Likewise.
7434 (single_imm_use): Likewise.
7435 (num_imm_uses): Likewise.
7436 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7437 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7438 (create_outofssa_var_map): Likewise.
7439 * lower-subreg.c (adjust_decomposed_uses): New.
7440 (resolve_debug): New.
7441 (decompose_multiword_subregs): Use it.
7442 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7443 * emit-rtl.c: Include params.h.
7444 (cur_debug_insn_uid): Define.
7445 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7446 (copy_rtx_if_shared_1): Handle debug insns.
7447 (reset_used_flags): Likewise.
7448 (set_used_flags): LIkewise.
7449 (get_max_insn_count): New.
7450 (next_nondebug_insn): New.
7451 (prev_nondebug_insn): New.
7452 (make_debug_insn_raw): New.
7453 (emit_insn_before_noloc): Handle debug insns.
7454 (emit_jump_insn_before_noloc): Likewise.
7455 (emit_call_insn_before_noloc): Likewise.
7456 (emit_debug_insn_before_noloc): New.
7457 (emit_insn_after_noloc): Handle debug insns.
7458 (emit_jump_insn_after_noloc): Likewise.
7459 (emit_call_insn_after_noloc): Likewise.
7460 (emit_debug_insn_after_noloc): Likewise.
7461 (emit_insn_after): Take loc from earlier non-debug insn.
7462 (emit_jump_insn_after): Likewise.
7463 (emit_call_insn_after): Likewise.
7464 (emit_debug_insn_after_setloc): New.
7465 (emit_debug_insn_after): New.
7466 (emit_insn_before): Take loc from later non-debug insn.
7467 (emit_jump_insn_before): Likewise.
7468 (emit_call_insn_before): Likewise.
7469 (emit_debug_insn_before_setloc): New.
7470 (emit_debug_insn_before): New.
7471 (emit_insn): Handle debug insns.
7472 (emit_debug_insn): New.
7473 (emit_jump_insn): Handle debug insns.
7474 (emit_call_insn): Likewise.
7476 (init_emit): Take min-nondebug-insn-uid into account.
7477 Initialize cur_debug_insn_uid.
7478 (emit_copy_of_insn_after): Handle debug insns.
7479 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7480 location of single rhs in place.
7481 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7482 (floor_sdiv_adjust): New.
7483 (cell_sdiv_adjust): New.
7484 (cell_udiv_adjust): New.
7485 (round_sdiv_adjust): New.
7486 (round_udiv_adjust): New.
7487 (wrap_constant): Moved from cselib.
7488 (unwrap_constant): New.
7489 (expand_debug_expr): New.
7490 (expand_debug_locations): New.
7491 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
7493 (gimple_expand_cfg): Expand debug locations.
7494 * cselib.c: Include tree-pass.h.
7495 (struct expand_value_data): New.
7496 (cselib_record_sets_hook): New.
7497 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7498 (cselib_clear_table): Move, and implemnet in terms of...
7499 (cselib_reset_table_with_next_value): ... this.
7500 (cselib_get_next_unknown_value): New.
7501 (discard_useless_locs): Don't discard preserved values.
7502 (cselib_preserve_value): New.
7503 (cselib_preserved_value_p): New.
7504 (cselib_preserve_definitely): New.
7505 (cselib_clear_preserve): New.
7506 (cselib_preserve_only_values): New.
7507 (new_cselib_val): Take rtx argument. Dump it in details.
7508 (cselib_lookup_mem): Adjust.
7509 (expand_loc): Take regs_active in struct. Adjust. Silence
7510 dumps unless details are requested.
7511 (cselib_expand_value_rtx_cb): New.
7512 (cselib_expand_value_rtx): Rename and reimplment in terms of...
7513 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
7514 without details. Copy more subregs. Try to resolve values
7515 using a callback. Wrap constants.
7516 (cselib_subst_to_values): Adjust.
7517 (cselib_log_lookup): New.
7518 (cselib_lookup): Call it.
7519 (cselib_invalidate_regno): Don't count preserved values as useless.
7520 (cselib_invalidate_mem): Likewise.
7521 (cselib_record_set): Likewise.
7522 (struct set): Renamed to cselib_set, moved to cselib.h.
7523 (cselib_record_sets): Adjust. Call hook.
7524 (cselib_process_insn): Reset table when it would be cleared.
7525 (dump_cselib_val): New.
7526 (dump_cselib_table): New.
7527 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7528 (remove_forwarder_block): Support moving debug stmts.
7529 * cselib.h (cselib_record_sets_hook): Declare.
7530 (cselib_expand_callback): New type.
7531 (cselib_expand_value_rtx_cb): Declare.
7532 (cselib_reset_table_with_next_value): Declare.
7533 (cselib_get_next_unknown_value): Declare.
7534 (cselib_preserve_value): Declare.
7535 (cselib_preserved_value_p): Declare.
7536 (cselib_preserve_only_values): Declare.
7537 (dump_cselib_table): Declare.
7538 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7539 (try_crossjump_to_edge): Likewise.
7540 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7541 dominated blocks when debug stmts are present.
7542 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7543 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7544 (set_var_live_on_entry): Likewise.
7545 * loop-invariant.c (find_invariants_bb): Skip debug insns.
7546 * cfglayout.c (curr_location, last_location): Make static.
7547 (set_curr_insn_source_location): Don't avoid bouncing.
7548 (get_curr_insn_source_location): New.
7549 (get_curr_insn_block): New.
7550 (duplicate_insn_chain): Handle debug insns.
7551 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7553 * common.opt (fcompare-debug): Move to sort order.
7554 (fdump-unnumbered-links): Likewise.
7555 (fvar-tracking-assignments): New.
7556 (fvar-tracking-assignments-toggle): New.
7557 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7558 because of debug stmts.
7559 (mark_stmt_if_obviously_necessary): Mark debug stmts.
7560 (eliminate_unnecessary_stmts): Walk dominated blocks before
7562 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7563 * ira.c (memref_used_between_p): Skip debug insns.
7564 (update_equiv_regs): Likewise.
7565 * sched-deps.c (sd_lists_size): Accept empty list.
7566 (sd_init_insn): Mark debug insns.
7567 (sd_finish_insn): Unmark them.
7568 (sd_add_dep): Reject non-debug deps on debug insns.
7569 (fixup_sched_groups): Give debug insns group treatment.
7571 (sched_analyze_reg): Don't mark debug insns for sched before call.
7572 (sched_analyze_2): Handle debug insns.
7573 (sched_analyze_insn): Compute next non-debug insn. Handle debug
7575 (deps_analyze_insn): Handle debug insns.
7576 (deps_start_bb): Skip debug insns.
7577 (init_deps): Initialize last_debug_insn.
7578 * tree-ssa.c (target_for_debug_bind): New.
7579 (find_released_ssa_name): New.
7580 (propagate_var_def_into_debug_stmts): New.
7581 (propagate_defs_into_debug_stmts): New.
7582 (verify_ssa): Skip debug bind stmts without values.
7583 (warn_uninialized_vars): Skip debug stmts.
7584 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7585 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7586 (rtx_equal_p): Likewise.
7587 * ira-costs.c (scan_one_insn): Skip debug insns.
7588 (process_bb_node_for_hard_reg_moves): Likewise.
7589 * rtl.h (DEBUG_INSN_P): New.
7590 (NONDEBUG_INSN_P): New.
7591 (MAY_HAVE_DEBUG_INSNS): New.
7592 (INSN_P): Accept debug insns.
7593 (RTX_FRAME_RELATED_P): Likewise.
7594 (INSN_DELETED_P): Likewise
7595 (PAT_VAR_LOCATION_DECL): New.
7596 (PAT_VAR_LOCATION_LOC): New.
7597 (PAT_VAR_OCATION_STATUS): New.
7598 (NOTE_VAR_LOCATION_DECL): Reimplement.
7599 (NOTE_VAR_LOCATION_LOC): Likewise.
7600 (NOTE_VAR_LOCATION_STATUS): Likewise.
7601 (INSN_VAR_LOCATION): New.
7602 (INSN_VAR_LOCATION_DECL): New.
7603 (INSN_VAR_LOCATION_LOC): New.
7604 (INSN_VAR_LOCATION_STATUS): New.
7605 (gen_rtx_UNKNOWN_VAR_LOC): New.
7606 (VAR_LOC_UNKNOWN_P): New.
7607 (NOTE_DURING_CALL_P): New.
7608 (SCHED_GROUP_P): Accept debug insns.
7609 (emit_debug_insn_before): Declare.
7610 (emit_debug_insn_before_noloc): Declare.
7611 (emit_debug_insn_beore_setloc): Declare.
7612 (emit_debug_insn_after): Declare.
7613 (emit_debug_insn_after_noloc): Declare.
7614 (emit_debug_insn_after_setloc): Declare.
7615 (emit_debug_insn): Declare.
7616 (make_debug_insn_raw): Declare.
7617 (prev_nondebug_insn): Declare.
7618 (next_nondebug_insn): Declare.
7619 (delegitimize_mem_from_attrs): Declare.
7620 (get_max_insn_count): Declare.
7621 (wrap_constant): Declare.
7622 (unwrap_constant): Declare.
7623 (get_curr_insn_source_location): Declare.
7624 (get_curr_insn_block): Declare.
7625 * tree-inline.c (insert_debug_decl_map): New.
7626 (processing_debug_stmt): New.
7627 (remap_decl): Don't create new mappings in debug stmts.
7628 (remap_gimple_op_r): Don't add references in debug stmts.
7629 (copy_tree_body_r): Likewise.
7630 (remap_gimple_stmt): Handle debug bind stmts.
7631 (copy_bb): Skip debug stmts.
7632 (copy_edges_for_bb): Likewise.
7633 (copy_debug_stmt): New.
7634 (copy_debug_stmts): New.
7635 (copy_body): Copy debug stmts at the end.
7636 (insert_init_debug_bind): New.
7637 (insert_init_stmt): Take id. Skip and emit debug stmts.
7638 (setup_one_parameter): Remap variable earlier, register debug mapping.
7639 (estimate_num_insns): Skip debug stmts.
7640 (expand_call_inline): Preserve debug_map.
7641 (optimize_inline_calls): Check for no debug_stmts left-overs.
7642 (unsave_expr_now): Preserve debug_map.
7643 (copy_gimple_seq_and_replace_locals): Likewise.
7644 (tree_function_versioning): Check for no debug_stmts left-overs.
7645 Init and destroy debug_map as needed. Split edges unconditionally.
7646 (build_duplicate_type): Init and destroy debug_map as needed.
7647 * tree-inline.h: Include gimple.h instead of pointer-set.h.
7648 (struct copy_body_data): Add debug_stmts and debug_map.
7649 * sched-int.h (struct ready_list): Add n_debug.
7650 (struct deps): Add last_debug_insn.
7651 (DEBUG_INSN_SCHED_P): New.
7652 (BOUNDARY_DEBUG_INSN_P): New.
7653 (SCHEDULE_DEBUG_INSN_P): New.
7654 (sd_iterator_cond): Accept empty list.
7655 * combine.c (create_log_links): Skip debug insns.
7656 (combine_instructions): Likewise.
7657 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
7658 return value is always unshared.
7659 (struct rtx_subst_pair): New.
7660 (auto_adjust_pair): New.
7661 (propagate_for_debug_subst): New.
7662 (propagate_for_debug): New.
7663 (try_combine): Skip debug insns. Propagate removed defs into
7665 (next_nonnote_nondebug_insn): New.
7666 (distribute_notes): Use it. Skip debug insns.
7667 (distribute_links): Skip debug insns.
7668 * tree-outof-ssa.c (set_location_for_edge): Likewise.
7669 * resource.c (mark_target_live_regs): Likewise.
7670 * var-tracking.c: Include cselib.h and target.h.
7671 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7673 (micro_operation_type_name): New.
7674 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7675 (struct micro_operation_def): Update comments.
7676 (decl_or_value): New type. Use instead of decls.
7677 (struct emit_note_data_def): Add vars.
7678 (struct attrs_def): Use decl_or_value.
7679 (struct variable_tracking_info_def): Add permp, flooded.
7680 (struct location_chain_def): Update comment.
7681 (struct variable_part_def): Use decl_or_value.
7682 (struct variable_def): Make var_part a variable length array.
7684 (scratch_regs): New.
7685 (cselib_hook_called): New.
7686 (dv_is_decl_p): New.
7687 (dv_is_value_p): New.
7690 (dv_as_opaque): New.
7691 (dv_onepart_p): New.
7693 (IS_DECL_CODE): New.
7694 (check_value_is_not_decl): New.
7695 (dv_from_decl): New.
7696 (dv_from_value): New.
7697 (dv_htab_hash): New.
7698 (variable_htab_hash): Use it.
7699 (variable_htab_eq): Support values.
7700 (variable_htab_free): Free from the right pool.
7701 (attrs_list_member, attrs_list_insert): Use decl_or_value.
7702 (attrs_list_union): Adjust.
7703 (attrs_list_mpdv_union): New.
7704 (tie_break_pointers): New.
7705 (canon_value_cmp): New.
7706 (unshare_variable): Return possibly-modified slot.
7707 (vars_copy_1): Adjust.
7708 (var_reg_decl_set): Adjust. Split out of...
7709 (var_reg_set): ... this.
7710 (get_init_value): Adjust.
7711 (var_reg_delete_and_set): Adjust.
7712 (var_reg_delete): Adjust.
7713 (var_regno_delete): Adjust.
7714 (var_mem_decl_set): Split out of...
7715 (var_mem_set): ... this.
7716 (var_mem_delete_and_set): Adjust.
7717 (var_mem_delete): Adjust.
7721 (variable_union): Adjust. Speed up merge of 1-part vars.
7722 (variable_canonicalize): Use unshared slot.
7723 (VALUED_RECURSED_INTO): New.
7724 (find_loc_in_1pdv): New.
7725 (struct dfset_merge): New.
7726 (insert_into_intersection): New.
7727 (intersect_loc_chains): New.
7729 (canonicalize_loc_order_check): New.
7730 (canonicalize_values_mark): New.
7731 (canonicalize_values_star): New.
7732 (variable_merge_over_cur): New.
7733 (variable_merge_over_src): New.
7734 (dataflow_set_merge): New.
7735 (dataflow_set_equiv_regs): New.
7736 (remove_duplicate_values): New.
7737 (struct dfset_post_merge): New.
7738 (variable_post_merge_new_vals): New.
7739 (variable_post_merge_perm_vals): New.
7740 (dataflow_post_merge_adjust): New.
7741 (find_mem_expr_in_1pdv): New.
7742 (dataflow_set_preserve_mem_locs): New.
7743 (dataflow_set_remove_mem_locs): New.
7744 (dataflow_set_clear_at_call): New.
7745 (onepart_variable_different_p): New.
7746 (variable_different_p): Use it.
7747 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
7748 (track_expr_p): Add need_rtl parameter. Don't generate rtl
7750 (track_loc_p): Pass it true.
7751 (struct count_use_info): New.
7752 (find_use_val): New.
7753 (replace_expr_with_values): New.
7755 (use_type): New, partially split out of...
7756 (count_uses): ... this. Count new micro-ops.
7757 (count_uses_1): Adjust.
7758 (count_stores): Adjust.
7759 (count_with_sets): New.
7760 (VAL_NEEDS_RESOLUTION): New.
7761 (VAL_HOLDS_TRACK_EXPR): New.
7762 (VAL_EXPR_IS_COPIED): New.
7763 (VAL_EXPR_IS_CLOBBERED): New.
7764 (add_uses): Adjust. Generate new micro-ops.
7765 (add_uses_1): Adjust.
7766 (add_stores): Generate new micro-ops.
7767 (add_with_sets): New.
7768 (find_src_status): Adjust.
7769 (find_src_set_src): Adjust.
7770 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7771 Handle new micro-ops. Canonicalize value equivalances.
7772 (vt_find_locations): Compute total size of hash tables for
7773 dumping. Perform merge for var-tracking-assignments. Don't
7774 disregard single-block loops.
7775 (dump_attrs_list): Handle decl_or_value.
7776 (dump_variable): Take variable. Deal with decl_or_value.
7777 (dump_variable_slot): New.
7778 (dump_vars): Use it.
7779 (dump_dataflow_sets): Adjust.
7780 (set_slot_part): New, extended to support one-part variables
7781 after splitting out of...
7782 (set_variable_part): ... this.
7783 (clobber_slot_part): New, split out of...
7784 (clobber_variable_part): ... this.
7785 (delete_slot_part): New, split out of...
7786 (delete_variable_part): .... this.
7787 (check_wrap_constant): New.
7788 (vt_expand_loc_callback): New.
7789 (vt_expand_loc): New.
7790 (emit_note_insn_var_location): Adjust. Handle values. Handle
7791 EMIT_NOTE_AFTER_CALL_INSN.
7792 (emit_notes_for_differences_1): Adjust. Handle values.
7793 (emit_notes_for_differences_2): Likewise.
7794 (emit_notes_for_differences): Adjust.
7795 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
7796 Adjust. Handle new micro-ops.
7797 (vt_add_function_parameters): Adjust. Create and bind values.
7798 (vt_initialize): Adjust. Initialize scratch_regs and
7799 valvar_pool, flooded and perm.. Initialize and use cselib. Log
7800 operations. Move some code to count_with_sets and add_with_sets.
7801 (delete_debug_insns): New.
7802 (vt_debug_insns_local): New.
7803 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
7805 (var_tracking_main): If var-tracking-assignments is enabled
7806 but var-tracking isn't, delete debug insns and leave. Likewise
7807 if we exceed limits or fail the stack adjustments tests, and
7808 after all var-tracking processing.
7809 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7810 (dataflow_set): Add traversed_vars.
7811 (value_chain, const_value_chain): New typedefs.
7812 (value_chain_pool, value_chains): New variables.
7813 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7814 add_value_chains, add_cselib_value_chains, remove_value_chain,
7815 remove_value_chains, remove_cselib_value_chains): New functions.
7816 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7817 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7819 (shared_hash_find_slot_unshare, shared_hash_find_slot,
7820 shared_hash_find_slot_noinsert, shared_hash_find): Update.
7821 (dst_can_be_shared): New variable.
7822 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7823 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
7824 different from set->vars, look up slot again instead of using the
7826 (dataflow_set_init): Initialize traversed_vars.
7827 (variable_union): Use shared_hash_*. Use initially NO_INSERT
7828 lookup if set->vars is shared. Don't keep slot cleared before
7829 calling unshare_variable. Unshare set->vars if needed. Adjust
7830 unshare_variable callers. Clear dst_can_be_shared if needed.
7831 Even ->refcount == 1 vars must be unshared if set->vars is shared
7832 and var needs to be modified.
7833 (dataflow_set_union): Set traversed_vars during canonicalization.
7834 (VALUE_CHANGED, DECL_CHANGED): Define.
7835 (set_dv_changed, dv_changed_p): New static inlines.
7836 (track_expr_p): Clear DECL_CHANGED.
7837 (dump_dataflow_sets): Set it.
7838 (variable_was_changed): Call set_dv_changed.
7839 (emit_note_insn_var_location): Likewise.
7840 (changed_variables_stack): New variable.
7841 (check_changed_vars_1, check_changed_vars_2): New functions.
7842 (emit_notes_for_changes): Do nothing if changed_variables is
7843 empty. Traverse changed_variables with check_changed_vars_1,
7844 call check_changed_vars_2 on each changed_variables_stack entry.
7845 (emit_notes_in_bb): Add SET argument. Just clear it at the
7846 beginning, use it instead of local &set, don't destroy it at the end.
7847 (vt_emit_notes): Call dataflow_set_clear early on all
7848 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7849 computed set, dataflow_set_clear also VTI(bb)->in when we are
7850 done with the basic block. Initialize changed_variables_stack,
7851 free it afterwards. If ENABLE_CHECKING verify that after noting
7852 differences to an empty set value_chains hash table is empty.
7853 (vt_initialize): Initialize value_chains and value_chain_pool.
7854 (vt_finalize): Delete value_chains htab, free value_chain_pool.
7855 (variable_tracking_main): Call dump_dataflow_sets before calling
7856 vt_emit_notes, not after it.
7857 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7858 (propagate_var_def_into_debug_stmts): Declare.
7859 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7860 (df_set_note): Reject debug insns.
7861 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
7862 add notes to debug insns.
7863 (df_note_bb_compute): Adjust. Likewise.
7864 (df_simulate_uses): Skip debug insns.
7865 (df_simulate_initialize_backwards): Likewise.
7866 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7867 (subst_stack_regs_pat): Reject debug insns.
7868 (convert_regs_1): Handle debug insns.
7869 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7870 (print-rtl.o): Depend on cselib.h.
7871 (cselib.o): Depend on TREE_PASS_H.
7872 (var-tracking.o): Depend on cselib.h and TARGET_H.
7873 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
7874 (init_ready_list): Skip boundary debug insns.
7875 (add_branch_dependences): Skip debug insns.
7876 (free_block_dependencies): Check for blocks with only debug insns.
7877 (compute_priorities): Likewise.
7878 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7879 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
7881 (gimple_build_debug_bind_stat): New.
7882 (empty_body_p): Skip debug stmts.
7883 (gimple_has_side_effects): Likewise.
7884 (gimple_rhs_has_side_effects): Likewise.
7885 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7886 (gimple_build_debug_bind_stat): Declare.
7887 (gimple_build_debug_bind): Define.
7888 (is_gimple_debug): New.
7889 (gimple_debug_bind_p): New.
7890 (gimple_debug_bind_get_var): New.
7891 (gimple_debug_bind_get_value): New.
7892 (gimple_debug_bind_get_value_ptr): New.
7893 (gimple_debug_bind_set_var): New.
7894 (gimple_debug_bind_set_value): New.
7895 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7896 (gimple_debug_bind_reset_value): New.
7897 (gimple_debug_bind_has_value_p): New.
7898 (gsi_next_nondebug): New.
7899 (gsi_prev_nondebug): New.
7900 (gsi_start_nondebug_bb): New.
7901 (gsi_last_nondebug_bb): New.
7902 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7903 (print_insn): Handle DEBUG_INSN.
7904 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
7905 of first insn prevail.
7906 (first_stmt): Skip debug stmts.
7907 (first_non_label_stmt): Likewise.
7908 (last_stmt): Likewise.
7909 (has_zero_uses_1): New.
7910 (single_imm_use_1): New.
7911 (verify_gimple_debug): New.
7912 (verify_types_in_gimple_stmt): Handle debug stmts.
7913 (verify_stmt): Likewise.
7914 (debug_loop_num): Skip debug stmts.
7915 (remove_edge_and_dominated_blocks): Remove dominators last.
7916 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
7917 (linearize_expr): Likewise.
7918 * config/i386/i386.c (ix86_delegitimize_address): Call
7919 default implementation.
7920 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
7921 (group_barrier_needed): Skip debug insns.
7922 (emit_insn_group_barriers): Likewise.
7923 (emit_all_insn_group_barriers): Likewise.
7924 (ia64_variable_issue): Handle debug insns.
7925 (ia64_dfa_new_cycle): Likewise.
7926 (final_emit_insn_group_barriers): Skip debug insns.
7927 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
7928 def cfa without frame.
7929 (process_set): Likewise.
7930 (process_for_unwind_directive): Pass frame on.
7931 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7932 (rs6000_delegitimize_address): New.
7933 (rs6000_debug_adjust_cost): Handle debug insns.
7934 (is_microcoded_insn): Likewise.
7935 (is_cracked_insn): Likewise.
7936 (is_nonpipeline_insn): Likewise.
7937 (insn_must_be_first_in_group): Likewise.
7938 (insn_must_be_last_in_group): Likewise.
7939 (force_new_group): Likewise.
7940 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7941 contains only debug insns.
7942 (rtl_merge_blocks): Skip debug insns.
7943 (purge_dead_edges): Likewise.
7944 (rtl_block_ends_with_call_p): Skip debug insns.
7945 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7946 (mark_reg_dependencies): Skip debug insns.
7947 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
7948 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
7949 * tree-ssa-threadedge.c
7950 (record_temporary_equivalences_from_stmts): Skip debug stmts.
7951 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7952 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7953 (copyprop_hardreg_forward_1): Handle debug insns.
7954 * reload1.c (reload): Skip debug insns. Replace unassigned
7955 pseudos in debug insns with their equivalences.
7956 (eliminate_regs_in_insn): Skip debug insns.
7957 (emit_input_reload_insns): Skip debug insns at first, adjust
7959 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7960 (get_indirect_ref_operands): Pass opf_no_vops on.
7961 (get_expr_operands): Likewise. Skip debug stmts.
7962 (parse_ssa_operands): Scan debug insns with opf_no_vops.
7964 2009-09-01 Richard Henderson <rth@redhat.com>
7966 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
7967 stmt_ends_pp_p statements at least once.
7968 * tree-vrp.c (vrp_initialize): Likewise.
7969 (vrp_visit_stmt): Be prepared for non-interesting stmts.
7971 2009-09-01 Dodji Seketeli <dodji@redhat.com>
7974 Fix AIX bootstrap after PR debug/30161
7975 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7976 that is a GNU extension.
7977 (tmpl_value_parm_die_table): Move the definition of this global
7978 outside #ifdef DWARF2_DEBUGGING_INFO region.
7980 2009-09-01 Richard Guenther <rguenther@suse.de>
7982 * tree.c (tree_expr_size): New function.
7983 * tree.h (tree_expr_size): Declare.
7984 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7985 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7986 * langhooks.c (lhd_expr_size): Remove.
7987 * langhooks.h (struct lang_hooks): Remove expr_size.
7988 * explow.c (expr_size): Use tree_expr_size.
7989 (int_expr_size): Likewise.
7990 * langhooks-def.h (lhd_expr_size): Remove.
7991 (LANG_HOOKS_EXPR_SIZE): Likewise.
7992 (LANG_HOOKS_INITIALIZER): Adjust.
7994 2009-09-01 Richard Guenther <rguenther@suse.de>
7996 * tree-flow.h (mark_addressable): Move declaration ...
7997 * tree.h (mark_addressable): ... here.
7998 * stmt.c (expand_asm_operands): Use mark_addressable, not
7999 lang_hooks.mark_addressable.
8000 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8001 LANG_HOOKS_MARK_ADDRESSABLE.
8002 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
8003 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
8005 2009-08-31 Chris Demetriou <cgd@google.com>
8007 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
8008 vectorize if not TARGET_SSE2.
8010 2009-08-31 DJ Delorie <dj@redhat.com>
8012 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
8013 registers if no coprocessor is enabled.
8015 2009-08-31 Dodji Seketeli <dodji@redhat.com>
8018 * cgraph.h (cgraph_get_node): Declare ...
8019 * cgraph.c (cgraph_get_node): ... new function.
8020 * dwarf2out.c (gen_generic_params_dies,
8021 generic_parameter_die, tree_add_const_value_attribute_for_decl,
8022 make_ith_pack_parameter_name,
8023 append_entry_to_tmpl_value_parm_die_table,
8024 gen_remaining_tmpl_value_param_die_attribute): New functions.
8025 (gen_subprogram_die): Generate debug info for template parameters
8026 if debug info level is higher than DINFO_LEVEL_TERSE.
8027 Use tree_add_const_value_attribute_for_decl instead of
8028 tree_add_const_value_attribute.
8029 (gen_const_die): Use tree_add_const_value_attribute_for_decl
8030 instead of tree_add_const_value_attribute.
8031 (gen_struct_or_union_type_die): Generate debug
8032 info for template parameters if debug info level is higher than
8034 (tree_add_const_value_attribute): Handle integral and pointer
8035 constants. Update comment.
8036 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
8037 (dwarf_attr_name): Support DW_AT_GNU_template_name.
8038 (reference_to_unused): Fix thinko. Remove redundant predicates from
8040 (tree_add_const_value_attribute): Make this work for constant
8042 tree_add_const_value_attribute_for_decl is to be used for variable
8044 (add_location_or_const_value_attribute): Use
8045 tree_add_const_value_attribute_for_decl now.
8046 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
8047 DW_TAG_template_value_param DIEs after function DIEs have been
8049 * langhooks.h (lang_hooks_for_types): Add
8050 get_argument_pack_elems.
8051 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
8052 (lang_hooks): Added get_innermost_generic_parms,
8053 get_innermost_generic_args.
8054 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
8055 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
8056 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
8057 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
8059 2009-08-31 DJ Delorie <dj@redhat.com>
8061 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
8062 it once we start generating the prologue or epilogue.
8063 (mep_call_saves_register): If the frame is locked, re-use
8065 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
8066 (mep_expand_prologue): Call it.
8067 (mep_expand_epilogue): Likewise.
8068 (mep_start_function): Use the same logic as mep_expand_prologue.
8069 (mep_pass_by_reference): Make logic more readable.
8070 (mep_return_in_memory): Zero-sized objects are passed in memory.
8071 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
8073 2009-08-31 Richard Guenther <rguenther@suse.de>
8075 * builtins.c (fold_builtin_memory_op): Use the alias oracle
8076 to query if the memory regions for memmove overlap.
8077 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8078 asserts on pointers, instead deal with odd trees.
8079 (ptr_derefs_may_alias_p): Likewise.
8080 (refs_may_alias_p_1): Constructor bases also never alias.
8082 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
8084 * doc/install.texi (Final install): Adjust reference on where to
8085 order printed manuals.
8087 2009-08-30 Olivier Hainque <hainque@adacore.com>
8089 * dwarf2out.c (switch_to_frame_table_section): Move
8090 definition prior to first use.
8092 2009-08-30 Richard Guenther <rguenther@suse.de>
8094 PR tree-optimization/41186
8095 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
8096 (ao_ref_init_from_ptr_and_size): New function.
8097 (ref_maybe_used_by_call_p_1): Be more precise tracking
8098 used ranges for builtin functions.
8099 (ref_maybe_used_by_call_p): Adjust.
8100 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
8101 ranges for builtin functions.
8102 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
8104 2009-08-30 Alan Modra <amodra@bigpond.net.au>
8107 * fwprop.c (get_reg_use_in): Delete.
8108 (free_load_extend): New function.
8109 (forward_propagate_subreg): Use it.
8111 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
8113 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
8115 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
8118 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8121 2009-08-29 Douglas B Rupp <rupp@gnat.com>
8123 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8124 fini or fini_array section.
8126 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8128 * graphite-dependences.c (graphite_legal_transform_bb): Call
8129 pbb_remove_duplicate_pdrs.
8130 * graphite-poly.c (can_collapse_pdr): Removed.
8131 (pdr_find_duplicate): Removed.
8132 (can_collapse_pdrs): New.
8133 (pbb_remove_duplicate_pdrs): New.
8134 (new_poly_dr): Do not look for duplicates.
8135 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8136 (PBB_PDR_DUPLICATES_REMOVED): New.
8137 (pbb_remove_duplicate_pdrs): Declared.
8139 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8141 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8142 the strides by multiplying by PDR_NB_REFS.
8143 * graphite-poly.c (can_collapse_pdr): New.
8144 (pdr_find_duplicate): New.
8145 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
8146 Initialize PDR_NB_REFS.
8147 * graphite-poly.h (struct poly_dr): Add field nb_refs.
8149 (new_poly_dr): Number of subscripts is a graphite_dim_t.
8151 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8154 * graphite-poly.c (apply_poly_transforms): Remove legality test before
8157 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8159 * graphite-dependences.c (pddr_original_scattering): Return NULL
8160 for read-read dependence relations.
8161 * graphite-poly.h (enum poly_dr_type): Fix comment.
8164 (pdr_may_write_p): New.
8166 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8168 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8169 (struct poly_dr): Same.
8170 (new_poly_dr): Same.
8171 * graphite-poly.c (new_poly_dr): Same.
8172 * graphite-dependences.c (dot_deps): Disable call to system.
8174 2009-08-28 Cary Coutant <ccoutant@google.com>
8177 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8178 struct/union/enum types local to a function.
8180 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8181 Sebastian Pop <sebastian.pop@amd.com>
8183 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8184 pbb_strip_mine_time_depth. Changed the implementation so that
8185 transformation is expressed as a transformation on
8186 time (scatttering) dimensions. Also, ensures that the 2d+1
8187 scheduling format is preserved.
8188 (pbb_strip_mine_profitable_p): Profitability is based on the
8189 iteration number of a given time (scattering) dimension,
8190 and not on a original loop depth dimension.
8191 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8192 (pbb_do_strip_mine): Call psct_dynamic_dim.
8193 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8194 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8195 (pbb_nb_dynamic_scattering_transform): New.
8196 (psct_dynamic_dim): New.
8198 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8200 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8201 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8202 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8203 * graphite-interchange.c (build_linearized_memory_access): Same.
8204 (memory_stride_in_loop): Same.
8206 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8208 * graphite-dependences.c (pddr_original_scattering): New.
8209 (graphite_legal_transform_dr): Call pddr_original_scattering.
8212 * graphite-dependences.h (dot_deps): Declared.
8213 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8214 (print_pdr): Print PDR_ID.
8215 * graphite-poly.h (struct poly_dr): Add field id.
8218 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8220 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8222 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8223 not delete the original dependence relation.
8225 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8227 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8228 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8229 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8230 (free_poly_ddr): New.
8231 (pddr_is_empty): New.
8232 (dependence_polyhedron_1): Now returns a poly_ddr_p.
8233 (dependence_polyhedron): Same. Remove useless gcc_assert.
8235 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8236 (graphite_carried_dependence_level_k): Call pddr_is_empty.
8237 * graphite-dependences.h (enum poly_dependence_kind): New.
8238 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
8239 (PDRP_SOURCE): Renamed PDDR_SOURCE.
8240 (PDRP_SINK): Renamed PDDR_SINK.
8241 (PDRP_DDP): Renamed PDDR_DDP.
8243 (free_poly_ddr): Declared.
8244 * graphite-poly.c (new_scop): Use the new hash function names.
8245 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8246 into original_pddrs.
8247 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8249 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8251 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8252 bounds with LT_EXPR to make niter analysis more precise on code
8253 generated by Graphite.
8255 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8257 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8258 (graphite_legal_transform_bb): Same.
8259 (poly_drs_may_alias_p): Same.
8261 2009-08-28 Richard Guenther <rguenther@suse.de>
8263 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8265 2009-08-28 Jan Beulich <jbeulich@novell.com>
8267 * config/i386/netware.c: Include langhooks.h.
8268 (i386_nlm_encode_section_info): Simplify.
8269 (netware_override_options): Delete.
8270 * config/i386/netware.h (netware_override_options): Delete
8272 (OVERRIDE_OPTIONS): Delete definition.
8273 (SUBTARGET_OVERRIDE_OPTIONS): Define.
8274 (ASM_COMMENT_START): Define.
8275 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8277 2009-08-28 Jan Beulich <jbeulich@novell.com>
8279 * configure.ac: For in-tree ld, do a plain version check to
8280 determine whether comdat groups are supported.
8281 * configure: Regenerate.
8283 2009-08-28 Olivier Hainque <hainque@adacore.com>
8285 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8286 always defined. Reflect definition or absence of such for
8287 COLLECT_EXPORT_LIST. Readability helper.
8288 (scanfilter): New enum, to help control what symbols
8289 are to be considered or ignored by scan_prog_file.
8290 (enum pass): Rename as "scanpass", moved together with scanfilter
8291 prior to scan_prog_file's prototype.
8292 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8293 Group prototype with the scanpass/scanfilter definitions, factorize
8294 head comments for the several implementations at the prototype.
8295 (main): Reorganize the first pass link control to let AIX
8296 drag only the needed frame tables in executables. Prevent
8297 frame tables collection during the scan aimed at static ctors.
8298 Pre-link and scan for frame tables later to compensate.
8299 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8300 A C statement to issue assembly directives that create a reference
8301 to the given DWARF table identifier label from the current function
8303 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8304 to differentiate first time section entry. Only emit a .data
8305 tables start identifier label the first time around.
8306 (switch_to_frame_table_section): New function. Helper for
8307 output_call_frame_info to switch possibly BACK into the eh_frame
8308 or the debug_frame section depending on FOR_EH.
8309 (output_call_frame_info): Use helper to first enter the proper
8311 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8312 emit a link to the frame table start label from each function
8314 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8315 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8316 * config/rs6000/rs6000-protos.h: Declare it.
8317 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8319 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8321 * config/sh/sh.c (split_branches): Check the result of
8324 2009-08-27 Steve Ellcey <sje@cup.hp.com>
8326 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8327 using -pthread -fopenmp
8329 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
8331 * doc/service.texi (service directory): Update URL.
8333 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
8335 PR rtl-optimization/40861
8336 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8337 extract word from a multi-word subreg for negative byte positions.
8339 2009-08-27 Tristan Gingold <gingold@adacore.com>
8340 Douglas B Rupp <rupp@gnat.com>
8342 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8343 (SECTION_VMS_OVERLAY): Define.
8344 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
8346 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
8348 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
8349 common_object declarations.
8350 (ia64_section_type_flags): Set section flag for common_object.
8351 * config/ia64/ia64-protos.h
8352 (ia64_vms_output_aligned_decl_common): Declare.
8353 (ia64_vms_elf_asm_named_section): Declare.
8355 2009-08-27 Michael Matz <matz@suse.de>
8357 * expr.c (expand_expr_real_2): New function taking exploded
8358 unary or binary expression, split out from ...
8359 (expand_expr_real_1): ... here. Move over all unary/binary
8360 switch parts to above function, in particular these codes:
8361 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8362 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8363 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8364 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8365 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8366 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8367 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8368 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8369 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8370 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8371 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8372 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8373 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8374 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8375 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8376 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8377 VEC_PACK_FIX_TRUNC_EXPR.
8378 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8381 2009-08-27 Richard Guenther <rguenther@suse.de>
8383 * gengtype.c (main): Handle uint64_t.
8384 * ipa-utils.c (get_base_var): Indent properly.
8385 * tree-ssa-live.c (debug_scope_block): New function.
8386 * tree-flow.h (debug_scope_block): Declare.
8387 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8388 * basic-block.h (enum profile_status): Rename to
8389 enum profile_status_d.
8390 (x_profile_status): Adjust type.
8392 2009-08-27 Dodji Seketeli <dodji@redhat.com>
8395 * dwarf2out.c (get_context_die): Declare this static function.
8396 (gen_type_die_with_usage): Make sure a DIE is a generated for
8397 the context of a typedef.
8399 2009-08-26 Anatoly Sokolov <aesok@post.ru>
8401 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8404 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
8406 * config/mips/mips-protos.h (mips_output_sync): Declare.
8407 (mips_sync_loop_insns): Likewise.
8408 (mips_output_sync_loop): Replace first two parameters with an rtx.
8409 * config/mips/mips.c (mips_multi_member): New structure.
8410 (mips_multi_members): New variable.
8411 (mips_multi_start): New function.
8412 (mips_multi_add): Likewise.
8413 (mips_multi_add_insn): Likewise.
8414 (mips_multi_add_label): Likewise.
8415 (mips_multi_last_index): Likewise.
8416 (mips_multi_copy_insn): Likewise.
8417 (mips_multi_set_operand): Likewise.
8418 (mips_multi_write): Likewise.
8419 (mips_print_operand_punctuation): Remove '%|' and '%-'.
8420 (mips_init_print_operand_punct): Update accordingly.
8421 (mips_start_ll_sc_sync_block): New function.
8422 (mips_end_ll_sc_sync_block): Likewise.
8423 (mips_output_sync): Likewise.
8424 (mips_sync_insn1_template): Likewise.
8425 (mips_sync_insn2_template): Likewise.
8426 (mips_get_sync_operand): Likewise.
8427 (mips_process_sync_loop): Likewise.
8428 (mips_output_sync_loop): Use mips_process_sync_loop.
8429 (mips_sync_loop_insns): New function.
8430 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8431 (MIPS_COMPARE_AND_SWAP_12): Likewise.
8432 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8433 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8434 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8435 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8436 (MIPS_SYNC_OLD_OP_12): Likewise.
8437 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8438 (MIPS_SYNC_NEW_OP_12): Likewise.
8439 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8440 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8441 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8442 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8443 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8444 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8445 * config/mips/mips.md (sync_mem): New attribute.
8446 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8447 (sync_exclusive_mask, sync_required_oldval): Likewise.
8448 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8449 (sync_release_barrier): Likewise.
8450 (length): Handle sync loops.
8451 (sync): Use mips_output_sync.
8452 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8453 (sync_compare_and_swap<mode>): Set the new sync_* attributes
8454 and use mips_output_sync_loop.
8455 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8456 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8457 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8458 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8459 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8460 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8461 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8462 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8463 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8465 2009-08-26 Richard Guenther <rguenther@suse.de>
8468 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8469 the types to not match.
8470 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8472 * tree-ssa.c (useless_type_conversion_p): Conversions to
8473 pointers to unprototyped functions are useless.
8475 2009-08-26 Richard Guenther <rguenther@suse.de>
8477 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8478 whole-program condition, prepare to be called for non-globals.
8479 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8480 params build a representative with known type and track its fields.
8482 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
8484 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8485 clearing by a taken branch.
8486 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8487 effectively after bbro pass.
8488 (sync_nand<mode>): Ditto.
8489 (sync_old_<fetchop_name><mode>): Ditto.
8490 (sync_old_nand<mode>): Ditto.
8491 (sync_new_<fetchop_name><mode>): Dito.
8492 (sync_new_nand<mode>): Ditto.
8493 (sync_compare_and_swap<mode>_1): Ditto.
8494 (*sync_compare_and_swap<mode>): Ditto.
8495 (sync_lock_test_and_set<mode>_1): Ditto.
8496 ("sync_lock_test_and_set<mode>): Ditto.
8498 2009-08-25 Douglas B Rupp <rupp@gnat.com>
8500 * hwint.h (HOST_LONG_FORMAT): New macro
8501 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8502 Use HOST_PTR_PRINTF.
8503 * system.h (HOST_PTR_PRINTF): Resurrect old macro
8504 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8505 (HOST_PTR_PRINTF): Document.
8507 2009-08-25 Jan Hubicka <jh@suse.cz>
8509 * config/i386/bmmintrin.h: Replace by #error.
8512 Michael Meissner <michael.meissner@amd.com>
8513 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8514 Tony Linthicum <tony.linthicum@amd.com>
8516 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8517 (TARGET_ROUND): New macro for the round/ptest instructions which
8518 are shared between SSE4.1 and SSE5.
8519 (OPTION_MASK_ISA_ROUND): Ditto.
8520 (OPTION_ISA_ROUND): Ditto.
8521 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8522 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8524 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8525 (-mfused-madd): New switch to give users control over whether the
8526 compiler optimizes to use the multiply/add SSE5 instructions.
8528 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8529 (ix86_handle_option): Turn off 3dnow if -msse5.
8530 (override_options): Add SSE5 support.
8531 (print_operand): %Y prints comparison codes for SSE5 com/pcom
8533 (ix86_expand_sse_movcc): Add SSE5 support.
8534 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8535 vector type to the next largest size.
8536 (ix86_expand_sse5_pack): New function to use pperm to pack a
8537 vector type to the next smallest size.
8538 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8539 (IX86_BUILTIN_FMADDSD): Ditto.
8540 (IX86_BUILTIN_FMADDPS): Ditto.
8541 (IX86_BUILTIN_FMADDPD): Ditto.
8542 (IX86_BUILTIN_FMSUBSS): Ditto.
8543 (IX86_BUILTIN_FMSUBSD): Ditto.
8544 (IX86_BUILTIN_FMSUBPS): Ditto.
8545 (IX86_BUILTIN_FMSUBPD): Ditto.
8546 (IX86_BUILTIN_FNMADDSS): Ditto.
8547 (IX86_BUILTIN_FNMADDSD): Ditto.
8548 (IX86_BUILTIN_FNMADDPS): Ditto.
8549 (IX86_BUILTIN_FNMADDPD): Ditto.
8550 (IX86_BUILTIN_FNMSUBSS): Ditto.
8551 (IX86_BUILTIN_FNMSUBSD): Ditto.
8552 (IX86_BUILTIN_FNMSUBPS): Ditto.
8553 (IX86_BUILTIN_FNMSUBPD): Ditto.
8554 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8555 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8556 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8557 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8558 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8559 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8560 (IX86_BUILTIN_PPERM): Ditto.
8561 (IX86_BUILTIN_PERMPS): Ditto.
8562 (IX86_BUILTIN_PERMPD): Ditto.
8563 (IX86_BUILTIN_PMACSSWW): Ditto.
8564 (IX86_BUILTIN_PMACSWW): Ditto.
8565 (IX86_BUILTIN_PMACSSWD): Ditto.
8566 (IX86_BUILTIN_PMACSWD): Ditto.
8567 (IX86_BUILTIN_PMACSSDD): Ditto.
8568 (IX86_BUILTIN_PMACSDD): Ditto.
8569 (IX86_BUILTIN_PMACSSDQL): Ditto.
8570 (IX86_BUILTIN_PMACSSDQH): Ditto.
8571 (IX86_BUILTIN_PMACSDQL): Ditto.
8572 (IX86_BUILTIN_PMACSDQH): Ditto.
8573 (IX86_BUILTIN_PMADCSSWD): Ditto.
8574 (IX86_BUILTIN_PMADCSWD): Ditto.
8575 (IX86_BUILTIN_PHADDBW): Ditto.
8576 (IX86_BUILTIN_PHADDBD): Ditto.
8577 (IX86_BUILTIN_PHADDBQ): Ditto.
8578 (IX86_BUILTIN_PHADDWD): Ditto.
8579 (IX86_BUILTIN_PHADDWQ): Ditto.
8580 (IX86_BUILTIN_PHADDDQ): Ditto.
8581 (IX86_BUILTIN_PHADDUBW): Ditto.
8582 (IX86_BUILTIN_PHADDUBD): Ditto.
8583 (IX86_BUILTIN_PHADDUBQ): Ditto.
8584 (IX86_BUILTIN_PHADDUWD): Ditto.
8585 (IX86_BUILTIN_PHADDUWQ): Ditto.
8586 (IX86_BUILTIN_PHADDUDQ): Ditto.
8587 (IX86_BUILTIN_PHSUBBW): Ditto.
8588 (IX86_BUILTIN_PHSUBWD): Ditto.
8589 (IX86_BUILTIN_PHSUBDQ): Ditto.
8590 (IX86_BUILTIN_PROTB): Ditto.
8591 (IX86_BUILTIN_PROTW): Ditto.
8592 (IX86_BUILTIN_PROTD): Ditto.
8593 (IX86_BUILTIN_PROTQ): Ditto.
8594 (IX86_BUILTIN_PROTB_IMM): Ditto.
8595 (IX86_BUILTIN_PROTW_IMM): Ditto.
8596 (IX86_BUILTIN_PROTD_IMM): Ditto.
8597 (IX86_BUILTIN_PROTQ_IMM): Ditto.
8598 (IX86_BUILTIN_PSHLB): Ditto.
8599 (IX86_BUILTIN_PSHLW): Ditto.
8600 (IX86_BUILTIN_PSHLD): Ditto.
8601 (IX86_BUILTIN_PSHLQ): Ditto.
8602 (IX86_BUILTIN_PSHAB): Ditto.
8603 (IX86_BUILTIN_PSHAW): Ditto.
8604 (IX86_BUILTIN_PSHAD): Ditto.
8605 (IX86_BUILTIN_PSHAQ): Ditto.
8606 (IX86_BUILTIN_FRCZSS): Ditto.
8607 (IX86_BUILTIN_FRCZSD): Ditto.
8608 (IX86_BUILTIN_FRCZPS): Ditto.
8609 (IX86_BUILTIN_FRCZPD): Ditto.
8610 (IX86_BUILTIN_CVTPH2PS): Ditto.
8611 (IX86_BUILTIN_CVTPS2PH): Ditto.
8612 (IX86_BUILTIN_COMEQSS): Ditto.
8613 (IX86_BUILTIN_COMNESS): Ditto.
8614 (IX86_BUILTIN_COMLTSS): Ditto.
8615 (IX86_BUILTIN_COMLESS): Ditto.
8616 (IX86_BUILTIN_COMGTSS): Ditto.
8617 (IX86_BUILTIN_COMGESS): Ditto.
8618 (IX86_BUILTIN_COMUEQSS): Ditto.
8619 (IX86_BUILTIN_COMUNESS): Ditto.
8620 (IX86_BUILTIN_COMULTSS): Ditto.
8621 (IX86_BUILTIN_COMULESS): Ditto.
8622 (IX86_BUILTIN_COMUGTSS): Ditto.
8623 (IX86_BUILTIN_COMUGESS): Ditto.
8624 (IX86_BUILTIN_COMORDSS): Ditto.
8625 (IX86_BUILTIN_COMUNORDSS): Ditto.
8626 (IX86_BUILTIN_COMFALSESS): Ditto.
8627 (IX86_BUILTIN_COMTRUESS): Ditto.
8628 (IX86_BUILTIN_COMEQSD): Ditto.
8629 (IX86_BUILTIN_COMNESD): Ditto.
8630 (IX86_BUILTIN_COMLTSD): Ditto.
8631 (IX86_BUILTIN_COMLESD): Ditto.
8632 (IX86_BUILTIN_COMGTSD): Ditto.
8633 (IX86_BUILTIN_COMGESD): Ditto.
8634 (IX86_BUILTIN_COMUEQSD): Ditto.
8635 (IX86_BUILTIN_COMUNESD): Ditto.
8636 (IX86_BUILTIN_COMULTSD): Ditto.
8637 (IX86_BUILTIN_COMULESD): Ditto.
8638 (IX86_BUILTIN_COMUGTSD): Ditto.
8639 (IX86_BUILTIN_COMUGESD): Ditto.
8640 (IX86_BUILTIN_COMORDSD): Ditto.
8641 (IX86_BUILTIN_COMUNORDSD): Ditto.
8642 (IX86_BUILTIN_COMFALSESD): Ditto.
8643 (IX86_BUILTIN_COMTRUESD): Ditto.
8644 (IX86_BUILTIN_COMEQPS): Ditto.
8645 (IX86_BUILTIN_COMNEPS): Ditto.
8646 (IX86_BUILTIN_COMLTPS): Ditto.
8647 (IX86_BUILTIN_COMLEPS): Ditto.
8648 (IX86_BUILTIN_COMGTPS): Ditto.
8649 (IX86_BUILTIN_COMGEPS): Ditto.
8650 (IX86_BUILTIN_COMUEQPS): Ditto.
8651 (IX86_BUILTIN_COMUNEPS): Ditto.
8652 (IX86_BUILTIN_COMULTPS): Ditto.
8653 (IX86_BUILTIN_COMULEPS): Ditto.
8654 (IX86_BUILTIN_COMUGTPS): Ditto.
8655 (IX86_BUILTIN_COMUGEPS): Ditto.
8656 (IX86_BUILTIN_COMORDPS): Ditto.
8657 (IX86_BUILTIN_COMUNORDPS): Ditto.
8658 (IX86_BUILTIN_COMFALSEPS): Ditto.
8659 (IX86_BUILTIN_COMTRUEPS): Ditto.
8660 (IX86_BUILTIN_COMEQPD): Ditto.
8661 (IX86_BUILTIN_COMNEPD): Ditto.
8662 (IX86_BUILTIN_COMLTPD): Ditto.
8663 (IX86_BUILTIN_COMLEPD): Ditto.
8664 (IX86_BUILTIN_COMGTPD): Ditto.
8665 (IX86_BUILTIN_COMGEPD): Ditto.
8666 (IX86_BUILTIN_COMUEQPD): Ditto.
8667 (IX86_BUILTIN_COMUNEPD): Ditto.
8668 (IX86_BUILTIN_COMULTPD): Ditto.
8669 (IX86_BUILTIN_COMULEPD): Ditto.
8670 (IX86_BUILTIN_COMUGTPD): Ditto.
8671 (IX86_BUILTIN_COMUGEPD): Ditto.
8672 (IX86_BUILTIN_COMORDPD): Ditto.
8673 (IX86_BUILTIN_COMUNORDPD): Ditto.
8674 (IX86_BUILTIN_COMFALSEPD): Ditto.
8675 (IX86_BUILTIN_COMTRUEPD): Ditto.
8676 (IX86_BUILTIN_PCOMEQUB): Ditto.
8677 (IX86_BUILTIN_PCOMNEUB): Ditto.
8678 (IX86_BUILTIN_PCOMLTUB): Ditto.
8679 (IX86_BUILTIN_PCOMLEUB): Ditto.
8680 (IX86_BUILTIN_PCOMGTUB): Ditto.
8681 (IX86_BUILTIN_PCOMGEUB): Ditto.
8682 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8683 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8684 (IX86_BUILTIN_PCOMEQUW): Ditto.
8685 (IX86_BUILTIN_PCOMNEUW): Ditto.
8686 (IX86_BUILTIN_PCOMLTUW): Ditto.
8687 (IX86_BUILTIN_PCOMLEUW): Ditto.
8688 (IX86_BUILTIN_PCOMGTUW): Ditto.
8689 (IX86_BUILTIN_PCOMGEUW): Ditto.
8690 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8691 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8692 (IX86_BUILTIN_PCOMEQUD): Ditto.
8693 (IX86_BUILTIN_PCOMNEUD): Ditto.
8694 (IX86_BUILTIN_PCOMLTUD): Ditto.
8695 (IX86_BUILTIN_PCOMLEUD): Ditto.
8696 (IX86_BUILTIN_PCOMGTUD): Ditto.
8697 (IX86_BUILTIN_PCOMGEUD): Ditto.
8698 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8699 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8700 (IX86_BUILTIN_PCOMEQUQ): Ditto.
8701 (IX86_BUILTIN_PCOMNEUQ): Ditto.
8702 (IX86_BUILTIN_PCOMLTUQ): Ditto.
8703 (IX86_BUILTIN_PCOMLEUQ): Ditto.
8704 (IX86_BUILTIN_PCOMGTUQ): Ditto.
8705 (IX86_BUILTIN_PCOMGEUQ): Ditto.
8706 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8707 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8708 (IX86_BUILTIN_PCOMEQB): Ditto.
8709 (IX86_BUILTIN_PCOMNEB): Ditto.
8710 (IX86_BUILTIN_PCOMLTB): Ditto.
8711 (IX86_BUILTIN_PCOMLEB): Ditto.
8712 (IX86_BUILTIN_PCOMGTB): Ditto.
8713 (IX86_BUILTIN_PCOMGEB): Ditto.
8714 (IX86_BUILTIN_PCOMFALSEB): Ditto.
8715 (IX86_BUILTIN_PCOMTRUEB): Ditto.
8716 (IX86_BUILTIN_PCOMEQW): Ditto.
8717 (IX86_BUILTIN_PCOMNEW): Ditto.
8718 (IX86_BUILTIN_PCOMLTW): Ditto.
8719 (IX86_BUILTIN_PCOMLEW): Ditto.
8720 (IX86_BUILTIN_PCOMGTW): Ditto.
8721 (IX86_BUILTIN_PCOMGEW): Ditto.
8722 (IX86_BUILTIN_PCOMFALSEW): Ditto.
8723 (IX86_BUILTIN_PCOMTRUEW): Ditto.
8724 (IX86_BUILTIN_PCOMEQD): Ditto.
8725 (IX86_BUILTIN_PCOMNED): Ditto.
8726 (IX86_BUILTIN_PCOMLTD): Ditto.
8727 (IX86_BUILTIN_PCOMLED): Ditto.
8728 (IX86_BUILTIN_PCOMGTD): Ditto.
8729 (IX86_BUILTIN_PCOMGED): Ditto.
8730 (IX86_BUILTIN_PCOMFALSED): Ditto.
8731 (IX86_BUILTIN_PCOMTRUED): Ditto.
8732 (IX86_BUILTIN_PCOMEQQ): Ditto.
8733 (IX86_BUILTIN_PCOMNEQ): Ditto.
8734 (IX86_BUILTIN_PCOMLTQ): Ditto.
8735 (IX86_BUILTIN_PCOMLEQ): Ditto.
8736 (IX86_BUILTIN_PCOMGTQ): Ditto.
8737 (IX86_BUILTIN_PCOMGEQ): Ditto.
8738 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8739 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8740 (enum multi_arg_type): New enum for describing the various SSE5
8741 intrinsic argument types.
8742 (bdesc_multi_arg): New table for SSE5 intrinsics.
8743 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8744 (ix86_expand_multi_arg_builtin): New function for creating SSE5
8746 (ix86_expand_builtin): Add SSE5 intrinsic support.
8747 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8748 operand instructions.
8749 (ix86_expand_sse5_multiple_memory): New function to split the
8750 second memory reference from SSE5 instructions.
8751 (type_has_variadic_args_p): Delete in favor of stdarg_p.
8752 (ix86_return_pops_args): Use stdarg_p to determine if the function
8753 has variable arguments.
8754 (ix86_setup_incoming_varargs): Ditto.
8755 (x86_this_parameter): Ditto.
8757 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8759 (ix86_expand_sse5_pack): Ditto.
8760 (ix86_sse5_valid_op_p): Ditto.
8761 (ix86_expand_sse5_multiple_memory): Ditto.
8763 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8764 constant for SSE5 support.
8765 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8766 (UNSPEC_SSE5_TRUEFALSE): Ditto.
8767 (UNSPEC_SSE5_PERMUTE): Ditto.
8768 (UNSPEC_SSE5_ASHIFT): Ditto.
8769 (UNSPEC_SSE5_LSHIFT): Ditto.
8770 (UNSPEC_FRCZ): Ditto.
8771 (UNSPEC_CVTPH2PS): Ditto.
8772 (UNSPEC_CVTPS2PH): Ditto.
8773 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8775 (COM_FALSE_S): Ditto.
8776 (COM_FALSE_P): Ditto.
8777 (COM_TRUE_S): Ditto.
8778 (COM_TRUE_P): Ditto.
8779 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8780 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8782 (memory attribute): Ditto.
8783 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8784 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8785 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8786 (floor<mode>2): Ditto.
8787 (ceil<mode>2): Ditto.
8788 (btrunc<mode>2): Ditto.
8789 (nearbyintdf2): Ditto.
8790 (nearbyintsf2): Ditto.
8791 (sse_setccsf): Disable if SSE5.
8792 (sse_setccdf): Ditto.
8793 (sse5_setcc<mode>): New support for SSE5 conditional move.
8794 (sse5_pcmov_<mode>): Ditto.
8796 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8798 (SSEMODEF2P): Ditto.
8799 (ssemodesuffixf4): New mode attribute for SSE5.
8800 (ssemodesuffixf2s): Ditto.
8801 (ssemodesuffixf2c): Ditto.
8802 (sserotatemax): Ditto.
8803 (ssescalarmode): Ditto.
8804 (sse_maskcmpv4sf3): Disable if SSE5.
8805 (sse_maskcmpv2df3): Ditto.
8806 (sse_vmmaskcmpv4sf3): Ditto.
8807 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
8808 (sse5_vmfmadd<mode>4): Ditto.
8809 (sse5_fmsub<mode>4): Ditto.
8810 (sse5_vmfmsub<mode>4): Ditto.
8811 (sse5_fnmadd<mode>4): Ditto.
8812 (sse5_vmfnmadd<mode>4): Ditto.
8813 (sse5_fnmsub<mode>4): Ditto.
8814 (sse5_vmfnmsub<mode>4): Ditto.
8815 (sse5i_fmadd<mode>4): Ditto.
8816 (sse5i_fmsub<mode>4): Ditto.
8817 (sse5i_fnmadd<mode>4): Ditto.
8818 (sse5i_fnmsub<mode>4): Ditto.
8819 (sse5i_vmfmadd<mode>4): Ditto.
8820 (sse5i_vmfmsub<mode>4): Ditto.
8821 (sse5i_vmfnmadd<mode>4): Ditto.
8822 (sse5i_vmfnmsub<mode>4): Ditto.
8823 (mulv16qi3): Add SSE5 support.
8825 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8826 (sse2_mulv4si3): Disable if SSE5.
8827 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8828 (sse4_1_roundps): Ditto.
8829 (sse4_1_roundsd): Ditto.
8830 (sse4_1_roundss): Ditto.
8831 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8833 (sse_maskcmpsf3): Ditto.
8834 (sse_vmmaskcmpv4sf3): Ditto.
8835 (sse2_maskcmpv2df3): Ditto.
8836 (sse2_maskcmpdf3): Ditto.
8837 (sse2_vmmaskcmpv2df3): Ditto.
8838 (sse2_eq<mode>3): Ditto.
8839 (sse2_gt<mode>3): Ditto.
8840 (sse5_pcmov_<mode>): Add SSE5 support.
8841 (vec_unpacku_hi_v16qi): Ditto.
8842 (vec_unpacks_hi_v16qi): Ditto.
8843 (vec_unpacku_lo_v16qi): Ditto.
8844 (vec_unpacks_lo_v16qi): Ditto.
8845 (vec_unpacku_hi_v8hi): Ditto.
8846 (vec_unpacks_hi_v8hi): Ditto.
8847 (vec_unpacku_lo_v8hi): Ditto.
8848 (vec_unpacks_lo_v8hi): Ditto.
8849 (vec_unpacku_hi_v4si): Ditto.
8850 (vec_unpacks_hi_v4si): Ditto.
8851 (vec_unpacku_lo_v4si): Ditto.
8852 (vec_unpacks_lo_v4si): Ditto.
8853 (sse5_pmacsww): New SSE5 intrinsic insn.
8854 (sse5_pmacssww): Ditto.
8855 (sse5_pmacsdd): Ditto.
8856 (sse5_pmacssdd): Ditto.
8857 (sse5_pmacssdql): Ditto.
8858 (sse5_pmacssdqh): Ditto.
8859 (sse5_pmacsdqh): Ditto.
8860 (sse5_pmacsswd): Ditto.
8861 (sse5_pmacswd): Ditto.
8862 (sse5_pmadcsswd): Ditto.
8863 (sse5_pmadcswd): Ditto.
8864 (sse5_pcmov_<move>): Conditional move support on SSE5.
8865 (sse5_phaddbw): New SSE5 intrinsic insn.
8866 (sse5_phaddbd): Ditto.
8867 (sse5_phaddbq): Ditto.
8868 (sse5_phaddwd): Ditto.
8869 (sse5_phaddwq): Ditto.
8870 (sse5_phadddq): Ditto.
8871 (sse5_phaddubw): Ditto.
8872 (sse5_phaddubd): Ditto.
8873 (sse5_phaddubq): Ditto.
8874 (sse5_phadduwd): Ditto.
8875 (sse5_phadduwq): Ditto.
8876 (sse5_phaddudq): Ditto.
8877 (sse5_phsubbw): Ditto.
8878 (sse5_phsubwd): Ditto.
8879 (sse5_phsubdq): Ditto.
8880 (sse5_pperm): Ditto.
8881 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8882 (sse5_pperm_zero_v16qi_v8hi): Ditto.
8883 (sse5_pperm_sign_v8hi_v4si): Ditto.
8884 (sse5_pperm_zero_v8hi_v4si): Ditto.
8885 (sse5_pperm_sign_v4si_v2di): Ditto.
8886 (sse5_pperm_sign_v4si_v2di): Ditto.
8887 (sse5_pperm_pack_v2di_v4si): Ditto.
8888 (sse5_pperm_pack_v4si_v8hi): Ditto.
8889 (sse5_pperm_pack_v8hi_v16qi): Ditto.
8890 (sse5_perm<mode>): New SSE5 intrinsic insn.
8891 (rotl<mode>3): Ditto.
8892 (sse5_rotl<mode>3): Ditto.
8893 (sse5_ashl<mode>3): Ditto.
8894 (sse5_lshl<mode>3): Ditto.
8895 (sse5_frcz<mode>2): Ditto.
8896 (sse5s_frcz<mode>2): Ditto.
8897 (sse5_cvtph2ps): Ditto.
8898 (sse5_cvtps2ph): Ditto.
8899 (sse5_vmmaskcmp<mode>3): Ditto.
8900 (sse5_com_tf<mode>3): Ditto.
8901 (sse5_maskcmp<mode>3): Ditto.
8902 (sse5_maskcmp_uns<mode>3): Ditto.
8903 (sse5_maskcmp_uns2<mode>3): Ditto.
8904 (sse5_pcom_tf<mode>3): Ditto.
8906 * config/i386/predicates.md (sse5_comparison_float_operator):
8907 New predicate to match the comparison operators supported by
8908 the SSE5 com instruction.
8909 (ix86_comparison_int_operator): New predicate to match just the
8910 signed int comparisons.
8911 (ix86_comparison_uns_operator): New predicate to match just the
8912 unsigned int comparisons.
8914 * doc/invoke.texi (-msse5): Add documentation.
8915 (-mfused-madd): Ditto.
8917 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8919 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8921 (x86_64-*-*): Ditto.
8923 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8925 * config/i386/bmmintrin.h: New file, provide common x86 compiler
8926 intrinisics for SSE5.
8928 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8931 * config/i386/mmintrin-common.h: New file, to contain common
8932 instructions between SSE4.1 and SSE5.
8934 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8935 FOREACH_FUNCTION_ARGS to iterate over the argument list.
8936 (gen_regparm_prefix): Ditto.
8938 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8939 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
8940 prototype_p to determine if a function is prototyped.
8942 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8944 * c-common.c (c_common_reswords) add the alignof keyword,
8945 with same RID as __alignof and __alignof__
8947 2009-08-25 Anatoly Sokolov <aesok@post.ru>
8949 * hooks.h (hook_bool_const_int_const_int_true): Declare.
8950 * hooks.c (hook_bool_const_int_const_int_true): New function.
8951 * target.h (struct gcc_target): Add can_eliminate field.
8952 * target-def.h (TARGET_CAN_ELIMINATE): Define.
8953 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8954 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8955 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8956 (elim_table): Revise comment.
8957 * system.h (CAN_ELIMINATE): Poison.
8958 * defaults.h (CAN_ELIMINATE): Remove.
8959 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8961 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8962 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8964 (alpha_vms_can_eliminate): Declare as static, change return type to
8966 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8968 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8969 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8970 (arm_can_eliminate): New function.
8972 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8973 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8974 (avr_can_eliminate): Declare as static.
8975 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8977 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8978 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8979 (bfin_can_eliminate): New function.
8981 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8982 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8983 (crx_can_eliminate): New function.
8985 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8986 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8987 (fr30_can_eliminate): New function.
8989 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8990 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8991 (frv_can_eliminate): New function.
8993 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8994 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8995 (h8300_can_eliminate): New function.
8997 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8998 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8999 (i386_can_eliminate): Declare as static, change return type to bool.
9000 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
9002 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
9003 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
9004 (ia64_can_eliminate): New function.
9006 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
9007 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
9008 (iq2000_can_eliminate): New function.
9010 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
9011 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
9012 (m32r_can_eliminate): New function.
9014 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
9015 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
9016 (m68hc11_can_eliminate): New function.
9018 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
9019 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
9020 (m68k_can_eliminate): New function.
9022 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
9023 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
9024 (mep_can_eliminate): New function.
9026 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
9027 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
9028 (mips_can_eliminate): New function.
9030 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
9031 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
9032 (rs6000_can_eliminate): New function.
9034 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
9035 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
9036 (s390_can_eliminate): Declare as static.
9037 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
9039 * config/score/score.h (CAN_ELIMINATE): Remove macro.
9040 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
9041 (score_can_eliminate): New function.
9043 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
9044 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
9045 (sparc_can_eliminate): Declare as static.
9046 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
9048 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
9049 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
9050 (xstormy16_can_eliminate): New function.
9052 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
9053 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
9054 (v850_can_eliminate): New function.
9056 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
9058 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
9059 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
9060 (*movdfcc_ext[1234]): Disable for IEEE mode.
9062 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
9064 * gimplify.c (prepare_gimple_addressable): New static function.
9065 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
9067 (gimplify_addr_expr): Invoke it similarly on the operand instead of
9068 manually fiddling with it.
9070 2009-08-25 Michael Matz <matz@suse.de>
9072 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
9073 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
9075 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
9076 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
9077 (do_jump): Split out code for simple binary comparisons into ...
9078 (do_jump_1): ... this, taking the individual operands and code.
9079 Change callers to helper function above accordingly.
9080 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
9083 2009-08-25 Michael Matz <matz@suse.de>
9085 * expr.h (struct separate_ops, sepops): New type for passing
9086 around an exploded simple expression.
9087 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
9088 Use this structure instead of expression tree.
9089 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
9090 expression, only its type.
9091 (expand_vec_cond_expr): Take type and individual operands instead
9093 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
9094 expand_vec_shift_expr): Change prototype accordingly.
9095 * tree-vect-stmts.c (vectorizable_condition): Change call of
9096 expand_vec_cond_expr_p to pass only type.
9097 * expr.c (do_store_flags): Change prototype and implementation
9098 to take an exploded expression.
9099 (expand_expr_real_1): New local ops initialized with details
9100 of the full expression. Use it instead of full
9101 expression in calls to do_store_flags, expand_vec_cond_expr,
9102 expand_widen_pattern_expr and expand_vec_shift_expr.
9104 2009-08-25 Michael Matz <matz@suse.de>
9106 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
9107 treeop2 initialized with first three operands of the full expression.
9108 Substitute all TREE_OPERAND (exp, [012]) calls with them.
9110 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
9112 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
9113 (__gthread_objc_condition_allocate): Mark arguments as unused.
9114 (__gthread_objc_condition_deallocate): Likewise.
9115 (__gthread_objc_condition_wait): Likewise.
9116 (__gthread_objc_condition_broadcast): Likewise.
9117 (__gthread_objc_condition_signal): Likewise.
9118 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9119 (__gthread_objc_thread_id): Likewise.
9121 2009-08-25 Janus Weil <janus@gcc.gnu.org>
9124 * tree-pretty-print.c (print_call_name): Print the correct call name
9125 for procedure pointer components.
9127 2009-08-24 Steve Ellcey <sje@cup.hp.com>
9129 * config/ia64/ia64.c (ia64_promote_function_mode): Call
9130 default_promote_function_mode when not VMS.
9132 2009-08-24 Olivier Hainque <hainque@adacore.com>
9134 * convert.c (convert_to_integer): Don't assume an input pointer is
9135 POINTER_SIZE wide. Fetch from the type instead.
9137 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9139 * configure.ac (AC_PREREQ): Bump to 2.64.
9141 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
9143 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9144 (process_command): Don't search standard_exec_prefix_1 and
9145 standard_exec_prefix_2.
9147 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9149 * config/arm/arm.c (output_return_instruction): Handle for
9152 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9154 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9156 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9158 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9159 (*arm_movdf_vfp): Likewise.
9161 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9163 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9164 (vashr<mode>3): Rename from ashr<mode>3.
9165 (vlshr<mode>3): Rename from lshr<mode>3.
9167 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
9170 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9171 (check_format_info_main): Use scalar_identify_flag.
9172 (check_format_types): Check for scalar size identity if
9173 scalar_identify_flag is set.
9174 (printf_length_specs): Extend by new field.
9175 (asm_fprintf_length_specs): Likewise.
9176 (gcc_diag_length_specs): Likewise.
9177 (scanf_length_specs): Likewise.
9178 (strfmon_length_specs): Likewise.
9179 (gcc_gfc_length_specs): Likewise.
9180 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9181 (ms_printf_flag_specs): Likewise.
9182 * c-format.h (format_length_info): Add new member scalar_identity_flag.
9184 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
9187 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9188 (*call_value_pop_1): Ditto.
9189 (*sibcall_pop_1): New insn pattern.
9190 (*sibcall_value_pop_1): Ditto.
9192 2009-08-23 Alan Modra <amodra@bigpond.net.au>
9195 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9198 2009-08-23 Alan Modra <amodra@bigpond.net.au>
9201 * fwprop.c (try_fwprop_subst): Allow multiple sets.
9202 (get_reg_use_in): New function.
9203 (forward_propagate_subreg): Propagate through subreg of zero_extend
9206 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
9208 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9209 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9211 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9213 * configure.ac: Remove --with-datarootdir, --with-docdir,
9214 --with-htmldir switches. No need to call AC_SUBST for
9215 datarootdir, docdir, htmldir any more.
9216 * configure: Regenerate.
9217 * doc/install.texi (Configuration): Document --datarootdir,
9218 --docdir, --htmldir, --pdfdir; update documentation for
9219 --infodir, --mandir.
9220 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9223 * aclocal.m4: Regenerate.
9224 * config.in: Regenerate.
9225 * configure: Regenerate.
9227 2009-08-21 Douglas B Rupp <rupp@gnat.com>
9228 Olivier Hainque <hainque@adacore.com>
9230 * config/ia64/ia64.c: Include libfuncs.h.
9231 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9232 (ia64_expand_call): Use reg 25 on VMS.
9233 (ia64_initialize_trampoline): Fix for VMS ABI.
9234 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9235 (ia64_function_arg): Initialize reg 25 on VMS.
9236 Fix OpenVMS ABI issues for varargs.
9237 For OpenVMS, emit the Argument Information register set in the
9238 incoming/sibcall case as well.
9239 (ia64_arg_type): New function.
9240 (ia64_function_arg_advance): Keep track of cum->words.
9241 Fix OpenVMS ABI issues for varargs.
9242 (ia64_function_value): On VMS, promote mode of non-aggregate types.
9243 (ia64_override_options): Set flag_no_common on VMS.
9244 (ia64_init_builtins): Disable FWRITE builtin.
9245 (ia64_asm_output_external): Call DO_CRTL_NAMES.
9246 (ia64_vms_init_libfuncs): Add decc$ routines.
9247 (ia64_vms_valid_pointer_mode): New function.
9248 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9249 (ia64_promote_function_mode): New function
9250 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9251 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9252 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9253 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9254 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9255 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9256 Suppress trailing '#' if VALUE is numeric.
9257 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9258 ia64_promote_function_mode.
9259 (TARGET_VALID_POINTER_MODE): Define.
9261 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9264 * config/rs6000/rs6000.c (rs6000_override_options): Use
9265 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9268 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9269 reporting of vector + decimal/boolean/complex error.
9271 2009-08-21 Jakub Jelinek <jakub@redhat.com>
9273 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9274 __vector double TYPE_DECL.
9276 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
9278 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
9279 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9280 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9281 to pointer to enum machine_mode. Update all callers as needed.
9283 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9285 * config/alpha/alpha.md (exception_receiver): Emit alternative
9286 GP load sequence if flag_reorder_blocks_and_partition is set.
9287 (*exception_receiver_2): Also enable when
9288 flag_reorder_blocks_and_partition is set.
9290 2009-08-20 Matt Rice <ratmice@gmail.com>
9291 Diego Novillo <dnovillo@google.com>
9293 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9296 2009-08-20 Richard Guenther <rguenther@suse.de>
9298 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9299 * c-tree.h (c_dup_lang_specific_decl): Remove.
9300 (struct lang_decl, struct lang_type): Move definitions ...
9301 * c-lang.h: ... here. New file.
9302 * c-decl.c: Include c-lang.h.
9303 (c_dup_lang_specific_decl): Remove.
9304 * c-typeck.c: Include c-lang.h.
9305 * Makefile.in (c-decl.o): Add c-lang.h dependency.
9306 (c-typeck.o): Likewise.
9307 * c-config-lang.in (gtfiles): Add c-lang.h.
9308 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9311 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
9313 * config/alpha/alpha.c (alpha_end_function): Do not clear
9314 crtl->emit structure and free insn locators if cfun->is_thunk is true,
9315 this is now handled in generic code.
9317 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9319 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9320 (s390_z10_fix_long_loop_prediction): New function.
9321 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9322 (s390_reorg): Walk over the INSNs and invoke
9323 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9325 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9327 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9328 "*brx_64bit", "*brx_31bit"): New patterns.
9329 * config/s390/s390.c ('E'): New output modifier.
9331 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9332 Richard Earnshaw <richard.earnshaw@arm.com>
9334 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9335 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9337 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9339 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9341 * pa.c (emit_move_sequence): Check if address of operand1 is valid
9342 for mode mode of operand0 when doing secondary reload for SAR.
9344 2009-08-19 Jakub Jelinek <jakub@redhat.com>
9347 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9348 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9350 2009-08-19 Jason Merrill <jason@redhat.com>
9352 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9353 supported template depth in C++0x.
9355 2009-08-19 Jakub Jelinek <jakub@redhat.com>
9357 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9358 free_after_compilation.
9359 * config/score/score7.c (score7_output_mi_thunk): Likewise.
9360 * config/score/score3.c (score3_output_mi_thunk): Likewise.
9361 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9362 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9363 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9364 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9365 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9367 2009-08-19 Ian Lance Taylor <iant@google.com>
9369 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9370 of (plus (mult (neg B) C) A).
9372 2009-08-18 Michael Matz <matz@suse.de>
9374 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9375 instead of comparing TYPE_MAIN_VARIANT for equality.
9376 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9377 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9378 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9379 * gimplify.c (goa_lhs_expr_p): Ditto and use
9380 STRIP_USELESS_TYPE_CONVERSION.
9382 2009-08-18 Michael Matz <matz@suse.de>
9384 * tree-ssa-structalias.c (create_variable_info_for): Also mark
9385 first field in a struct.
9386 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9388 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
9390 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9391 locators before emit_insn is called. Remove assert that
9393 (alpha_end_function): Clear crtl->emit structure and free insn
9394 locators if cfun->is_thunk is true.
9396 2009-08-18 Jason Merrill <jason@redhat.com>
9398 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9400 * configure.ac: Test for it.
9401 * configure, config.in: Regenerate.
9402 * doc/install.texi: Document --enable-gnu-unique-object.
9404 2009-08-18 Richard Guenther <rguenther@suse.de>
9407 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9408 pow(x,y*z) only if x is nonnegative.
9410 2009-08-18 Jakub Jelinek <jakub@redhat.com>
9412 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9416 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9417 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9419 2009-08-17 DJ Delorie <dj@redhat.com>
9421 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9422 * config/m32c/prologue.md (epilogue_freit): New.
9424 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9425 (bank_switch_p): Likewise.
9426 (fast_interrupt_p): Likewise.
9427 (interrupt_p): Likewise.
9428 (m32c_conditional_register_usage): Round memregs size up.
9429 (need_to_save): We only need to save $a0 when we use ENTER.
9430 (interrupt_p): Check for fast_interrupt too.
9431 (bank_switch_p): New.
9432 (fast_interrupt_p): New.
9433 (m32c_attribute_table): Add bank_switch and fast_interrupt.
9434 (m32c_emit_prolog): Support bank switching and fast interrupts.
9435 * doc/extend.texi (Function Attributes): Add bank_switch and
9438 2009-08-17 Douglas B Rupp <rupp@gnat.com>
9440 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9441 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9443 2009-08-16 Douglas B Rupp <rupp@gnat.com>
9445 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9446 (menu): Add IA-64/VMS Options.
9447 (IA-64/VMS Options): Likewise.
9449 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9452 * config/mips/mips.md (*lwxs): Use :P for pointer values.
9454 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9456 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9457 (mips_pop_asm_switch): Likewise.
9458 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9460 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9461 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9462 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9463 (mips_print_operand_punctuation): Use them. Check mips_noreorder
9464 instead of set_noreorder.
9465 (mips_output_function_prologue): Use the new functions.
9466 (mips_output_function_epilogue): Likewise.
9467 (mips_need_noat_wrapper_p): New function, split out from...
9468 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9469 Use mips_push_asm_switch and mips_pop_asm_switch.
9470 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9471 and mips_pop_asm_switch.
9472 (ASM_OUTPUT_REG_POP): Likewise.
9473 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9474 Use mips_pop_asm_switch.
9475 (mips_asm_switch): New structure.
9476 (set_noreorder, set_nomacro): Replace with...
9477 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9478 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9479 instead of set_nomacro.
9480 (fix_truncsfsi2_macro): Likewise.
9481 (cprestore): Likewise.
9482 (hazard): Use mips_noreorder instead of set_noreorder.
9483 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9485 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
9487 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9488 from prev_active_insn.
9490 2009-08-16 Anatoly Sokolov <aesok@post.ru>
9492 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9493 * config/avr/avr.c (avr_override_options): Initialize
9494 avr_current_arch variable.
9495 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9496 __AVR_HAVE_16BIT_SP__ according to the device type.
9497 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9499 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9500 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9502 2009-08-16 Dodji Seketeli <dodji@redhat.com>
9505 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9506 generating inlined subroutine die only. We shouldn't be
9507 called for anything else.
9508 (gen_block_die): Don't generate inline subroutine debug info for
9511 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9513 * graphite-poly.c (print_pbb): Print PBB index.
9515 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9518 * graphite-interchange.c (ppl_max_for_le): Moved...
9519 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9520 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
9521 ppl_Pointset_Powerset_C_Polyhedron_maximize.
9522 * graphite-ppl.h (ppl_max_for_le): Declared.
9524 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
9526 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9527 supported on all platforms.
9528 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9529 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9530 * c-pragma.c: Likewise.
9531 * target-def.h (TARGET_INITIALIZER): Remove
9532 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9533 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9535 2009-08-14 Douglas B Rupp <rupp@gnat.com>
9537 * config/ia64/fde-vms.c: New file.
9538 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9539 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9540 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9541 (uw_frame_state_for): Only register a personality routine if it is
9542 known to be compatible with our expectations.
9543 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9544 Declare unw_table_entry stack variable and
9545 mod all calls to _Unwind_FindTableEntry to add arg.
9546 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9547 (_Unwind_FindTableEntry): Add arg to prototype.
9549 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
9551 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9552 field 'signal_pfs_loc'.
9553 (uw_frame_state_for): Remove duplicate code dealing with leaf
9554 procedures without unwind info.
9555 If in the frame after unwinding through a signal handler, restore
9556 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9557 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9558 'pfs_loc' to the AR.PFS location in the signal context; instead
9559 set 'signal_pfs_loc'.
9560 Manually generate the unwind info for the AR.PFS register.
9561 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9562 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9563 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9564 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9565 instead set 'signal_pfs_loc'.
9566 Remove code preventing the AR.PFS register from being restored
9567 from the signal context.
9569 2009-08-14 Douglas B Rupp <rupp@gnat.com>
9570 Tristan Gingold <gingold@adacore.com>
9572 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9573 * config/ia64/t-vms: New file.
9574 * config/ia64/vms64.h: New file.
9575 * config/ia64/vms.h: New file.
9576 * config/ia64/vms-crtinit.asm: New file.
9577 * config/ia64/vms_symvec_libgcc_s.opt: New file.
9578 * config/ia64/vms-unwind.h: New file.
9580 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
9582 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9585 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9588 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9590 * real.h (do_mpc_arg2): ... here.
9591 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9594 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
9596 * final.c (add_debug_prefix_map): Don't use GC memory for
9597 old_prefix and new_prefix.
9599 2009-08-14 Richard Guenther <rguenther@suse.de>
9601 * ipa-prop.c (compute_complex_pass_through): If we cannot
9602 compute a non-varying offset for IPA_JF_ANCESTOR punt.
9604 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9606 * c-lex.c (c_lex_with_flags): Increase size of local variable
9607 to avoid memory clobber.
9609 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
9612 * config/i386/i386.c (ix86_fp_comparison_strategy):
9613 Only enable/disable sahf at function granularity.
9615 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
9617 PR rtl-optimization/41064
9618 * reload1.c (reload_as_needed): Don't call extract_insn
9619 for known invalid replacements after calling
9620 validate_replace_rtx_group and verify_changes.
9622 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
9625 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9626 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9627 ix86_expand_fp_vcond.
9628 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9629 Assert that operation is supported by ix86_expand_int_vcond.
9630 (vcondu<SSEMODE124C8:mode>): Ditto.
9632 2009-08-13 DJ Delorie <dj@redhat.com>
9634 * config/i386/djgpp-stdint.h: New.
9635 * config.gcc (djgpp): Use it.
9637 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
9639 * config/sh/sh.c (sh_override_options): When flag_exceptions or
9640 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
9642 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
9644 * tree-ssa-loop-prefetch.c
9645 (prune_ref_by_group_reuse): Enhance probabilistic analysis
9646 for long-stride pruning.
9647 (compute_miss_rate): New function to compute the probability
9648 that two memory references access different cache lines.
9650 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
9652 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9654 2009-08-13 Richard Guenther <rguenther@suse.de>
9657 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9658 use the constant pointer type.
9659 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9660 of CV qualifiers on the target pointer type.
9661 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9662 conversion check before restrict check.
9664 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9667 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9669 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9671 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9673 2009-08-12 Richard Guenther <rguenther@suse.de>
9675 PR tree-optimization/41011
9676 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9677 and reference constructing.
9679 2009-08-12 Xinliang David Li <davidxl@google.com>
9681 PR tree-optimization/41012
9682 * tree-flow.h : New external interface.
9683 * gimple-low.c (check_call_arg): Change to public function.
9684 Remove argument mismatch check in lowering.
9685 * tree-inline.h (tree_can_inline_p): Interface change.
9686 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9688 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
9689 Call change to tree_can_inline_p function.
9690 (cgraph_decide_inlining_incrementally): Ditto.
9692 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
9694 PR tree-optimization/41031
9695 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9696 on the partition variable rather than promote_mode on the source
9697 type. Assert that the partition variable's type has the same
9698 mode as the source value's.
9700 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
9702 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9703 for for_return == 2.
9704 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9706 * calls.c (expand_call): Fix typo.
9707 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9709 * stmt.c (expand_value_return): Use promote_function_mode to copy out
9711 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9712 * config/cris/cris.c (cris_promote_function_mode): Likewise.
9713 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9714 * config/pa/pa.c (pa_promote_function_mode): Likewise.
9716 2009-08-12 Andrew Haley <aph@redhat.com>
9718 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9720 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9723 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9725 2009-08-12 Richard Guenther <rguenther@suse.de>
9727 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9728 * gimplify.c (gimplify_modify_expr): Do not use
9729 lang_hooks.types_compatible_p.
9730 * tree-ssa.c (useless_type_conversion_p): For aggregates
9731 just return false if the canonical types differ.
9733 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9736 * sese.c (convert_for_phi_arg): New.
9737 (add_guard_exit_phis): Use convert_for_phi_arg.
9739 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9741 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9742 unknown subscript upper bounds.
9744 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9745 Pranav Garg <pranav.garg2107@gmail.com>
9747 * graphite-interchange.c (gather_access_strides): Removed.
9748 (ppl_max_for_le): New.
9749 (build_linearized_memory_access): New.
9750 (memory_stride_in_loop): New.
9751 (pbb_interchange_profitable_p): Reimplemented.
9752 * graphite-ppl.h (ppl_new_id_map): New.
9753 (ppl_interchange): New.
9755 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9757 * graphite-interchange.c (compute_subscript): Removed.
9758 (compute_array_size_cstr): Removed.
9759 (compute_array_size_poly): Removed.
9760 (compute_array_size): Removed.
9761 (gather_access_strides_poly): Removed.
9762 (gather_access_strides): Empty.
9764 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9766 * graphite-dependences.c (dependence_polyhedron_1): Replace
9767 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9768 (graphite_legal_transform_dr): Same.
9769 (graphite_carried_dependence_level_k): Same.
9770 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9771 Initialize PDR_NB_SUBSCRIPTS.
9772 (print_pdr_access_layout): Replace pdr_nb_subscripts with
9774 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9775 (PDR_NB_SUBSCRIPTS): New.
9776 (pdr_nb_subscripts): Removed.
9777 (pdr_dim): Simplified.
9778 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9779 with PDR_NB_SUBSCRIPTS.
9781 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9783 * graphite-interchange.c (compute_array_size): Remove use of
9785 * graphite-poly.c (new_poly_dr): Remove argument data_container.
9786 Do not initialize PDR_DATA_CONTAINER.
9787 (print_pdr): Do not print PDR_DATA_CONTAINER.
9788 * graphite-poly.h (struct poly_dr): Remove data_container field.
9789 (PDR_DATA_CONTAINER): Removed.
9790 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9792 (build_poly_dr): Same.
9794 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
9795 Sebastian Pop <sebastian.pop@amd.com>
9797 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9798 copy of the dependence polyhedron. Free the temporary objects.
9799 (graphite_carried_dependence_level_k): Free unused objects before
9802 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9804 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9805 Early return without analyzing the data dependences if no
9806 transform has been done. Call restore_scattering if the transform
9808 (graphite-interchange.c): Same.
9809 * graphite-poly.c (print_scattering_function): Test for
9811 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9812 (apply_poly_transforms): Do not gcc_assert that
9813 the transform is legal.
9814 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
9815 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9816 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9817 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9818 * graphite-poly.h (struct poly_scattering): New.
9819 (struct poly_bb): Add original, transformed, and saved fields.
9820 Remove transformed_scattering, original_scattering,
9821 nb_local_variables and nb_scattering_transform fields.
9822 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9823 (poly_scattering_new): New.
9824 (poly_scattering_free): New.
9825 (poly_scattering_copy): New.
9826 (store_scattering_pbb): New.
9827 (store_scattering): New.
9828 (restore_scattering_pbb): New.
9829 (restore_scattering): New.
9830 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9831 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9833 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9835 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9838 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9840 * Makefile.in (graphite.o): Depends on PREDICT_H.
9841 * graphite.c: Include predict.h.
9842 (graphite_finalize): Call tree_estimate_probability.
9843 * predict.c (predict_loops): Do not call scev_initialize and
9845 (tree_estimate_probability_bb): New.
9846 (tree_estimate_probability): Do not initialize loops: move that
9847 code to the driver. Call tree_estimate_probability_bb.
9848 (tree_estimate_probability_driver): New.
9849 (pass_profile): Use tree_estimate_probability_driver.
9850 * predict.h (tree_estimate_probability): Declared.
9852 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9854 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9855 * graphite-dependences.c (graphite_legal_transform): Add time to
9856 TV_GRAPHITE_DATA_DEPS.
9857 (dependency_between_pbbs_p): Same.
9858 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9860 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
9862 PR rtl-optimization/41033
9863 * alias.c (nonoverlapping_component_refs_p): Punt when strict
9864 aliasing is disabled.
9866 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9868 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9869 si_mask_operand, and_load_operand, low_bitmask_operand,
9870 and_reg_operand, and_operand): New predicates.
9871 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9872 * config/mips/mips.c (and_operands_ok): New function.
9873 * config/mips/mips-protos.h (and_operands_ok): Declare it.
9874 * config/mips/mips.md (move_type): Add ext_ins and logical.
9875 (type): Handle them.
9876 (and<mode>3): Use and_reg_operand as the second operand's predicate.
9877 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9878 shift_shift. Remove commutative constraint modifier.
9879 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9881 (*clear_upper32_dext): Remove define_insn_and_split.
9882 (*clear_upper32): Turn this define_insn_and_split ...
9883 (splitter for ANDing register with 0xffff_ffff): .. into this.
9885 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9887 * combine.c (try_widen_shift_mode): Factor out code to check if an
9888 integer constant is a low-order bitmask from here ...
9889 * rtlanal.c (low_bitmask_len): ... to here.
9890 * rtl.h (low_bitmask_len): Declare.
9892 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
9895 * config/alpha/alpha.md (addsi3): Remove expander.
9896 (addsi3): Rename from *addsi3_internal insn pattern.
9897 (subsi3): Remove expander.
9898 (subsi3): Rename from *subsi3_internal insn pattern.
9900 2009-08-11 Douglas B Rupp <rupp@gnat.com>
9902 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9905 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
9906 Eric Botcazou <botcazou@adacore.com>
9907 Douglas B Rupp <rupp@gnat.com>
9909 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9910 that records that fit in 64 bits are returned by immediate value,
9911 as required by OpenVMS Calling Standard.
9912 (function_value): Adjust for above modification.
9913 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9914 virtual_incoming_args_rtx as base object, not next_arg.
9915 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9917 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9919 * reload.c (find_reloads_subreg_address): Check the original
9920 req_equiv_mem address to detect the case where an address is
9921 not valid in the outer mode.
9923 2009-08-11 Richard Guenther <rguenther@suse.de>
9926 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
9928 2009-08-10 Douglas B Rupp <rupp@gnat.com>
9930 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9931 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9933 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
9934 Douglas B Rupp <rupp@gnat.com>
9936 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9937 PT_STACK when frame_pointer_needed on OpenVMS.
9938 (alpha_pv_save_size, alpha_using_fp): Remove.
9939 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9940 with proper processing for PT_NULL.
9941 (alpha_vms_initial_elimination_offset): New function. Support for
9942 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9943 (alpha_sa_size): Force procedure type to PT_STACK when
9944 frame_pointer_needed on OpenVMS.
9945 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9946 (alpha_using_fp): Likewise.
9947 (alpha_vms_can_eliminate): Add prototype.
9948 (alpha_vms_initial_elimination_offset): Likewise.
9949 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9950 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9952 2009-08-10 Eric Botcazou <botcazou@adacore.com>
9953 Douglas B Rupp <rupp@gnat.com>
9955 * config/alpha/alpha.c (common_object_handler): New function.
9956 (vms_attribute_table): Declare a single attribute "common_object".
9957 (vms_output_aligned_decl_common): New global function.
9958 (SECTION_VMS_OVERLAY): Delete.
9959 (SECTION_VMS_GLOBAL): Likewise.
9960 (SECTION_VMS_INITIALIZE): Likewise.
9961 (vms_asm_named_section): Remove support for above flags.
9962 (vms_section_type_flags): Delete.
9963 (TARGET_SECTION_TYPE_FLAGS): Likewise.
9964 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9965 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9966 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9968 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9971 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9972 (sub_ddmmss): Likewise.
9974 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
9977 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9980 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9983 * reload1.c (reload_as_needed): Use cancel_changes to completely
9984 undo a failed replacement attempt.
9986 2009-08-10 Richard Guenther <rguenther@suse.de>
9989 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9990 (useless_type_conversion_p): ... here. Require pointer targets
9993 2009-08-10 Dodji Seketeli <dodji@redhat.com>
9996 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9997 loose the original type of the statement list.
9999 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10001 * config/alpha/alpha.c: Include libfuncs.h
10002 (avms_asm_output_extern): New function.
10003 (alpha_init_libfuncs): Init some decc libfuncs.
10004 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
10005 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
10006 (DO_CRTL_NAMES): Define.
10007 (LIB_SPEC): Remove.
10008 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
10009 (LONG_TYPE_SIZE): Define.
10010 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
10011 (SUBTARGET_SWITCHES): Define malloc64 switch.
10012 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
10013 (MASK_RETURN_ADDR): Define.
10014 doc/invoke.texi (mmalloc64): Document switch.
10016 2009-08-09 Olivier Hainque <hainque@adacore.com>
10017 Douglas B Rupp <rupp@gnat.com>
10019 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
10020 uses_condition_handler.
10021 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
10022 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
10023 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
10024 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
10025 (code_for_builtin): New insn codes for the new alpha_builtins.
10026 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
10027 (alpha_sa_size): Account for uses_condition_handler.
10028 (alpha_expand_prologue): Likewise.
10029 (alpha_start_function): Likewise.
10030 (alpha_expand_epilogue): Likewise.
10031 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
10032 establish/revert expanders.
10033 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
10034 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
10035 New expander, resorting to the alpha.c associated function.
10036 (builtin_revert_vms_condition_handler): Likewise.
10037 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
10038 __gcc_shell_handler, the static VMS condition handler used as
10039 an indirection wrapper to the current dynamically established
10041 * config/alpha/vms-unwind.h: Complete rewrite.
10042 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
10043 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
10045 2009-08-09 Eric Botcazou <botcazou@adacore.com>
10046 Douglas B Rupp <rupp@gnat.com>
10048 * config/alpha/alpha.c (alpha_links): Add 'target' field.
10049 (alpha_need_linkage): Handle aliases. Return function symbol.
10050 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
10051 Use ultimate alias target for the linkage name.
10052 * config/alpha/alpha.md (movmemdi): Use the symbol returned
10053 by alpha_need_linkage for the function symbol.
10054 (setmemdi): Likewise.
10056 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10058 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
10059 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
10060 (ASM_WEAKEN_LABEL): Define.
10061 (CRT_CALL_STATIC_FUNCTION): Define.
10062 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
10063 (ENDFILE_SPEC): Define.
10064 (INIT_SECTION_ASM_OP): Define.
10065 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
10066 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
10067 crtend.o crtendS.o.
10068 (MULTILIB_OSDIRNAMES): Define.
10069 (shlib_version): Define.
10070 (SHLIB_EXT): Define.
10071 (SHLIB_OBJS): Define.
10072 (SHLIB_NAME): Define.
10073 (SHLIB_MULTILIB): Define.
10074 (SHLIB_INSTALL): Define.
10075 (SHLIB_SYMVEC): Define.
10076 (SHLIB_SYMVECX2): Define.
10077 (SHLIB_LINK): Define.
10079 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10081 * config/alpha/alpha.c (alpha_initialize_trampoline):
10082 Initialize VMS trampoline IAW ABI for bounded procedure calls.
10083 (alpha_start_function): Emit transfer address on nested functions
10084 for VMS trampoline call.
10085 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
10086 since no longer used.
10087 * config/alpha/vms-tramp.asm: Remove.
10088 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
10089 since now only data initialized at runtime.
10091 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10093 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
10094 (LINK_GCC_C_SEQUENCE_SPEC): Define.
10095 (MD_EXEC_PREFIX): Remove, no longer used.
10096 (MD_STARTFILE_PREFIX): Likewise.
10097 (INCLUDE_DEFAULTS): Likewise.
10098 * config/alpha/t-vms:
10099 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
10101 2009-08-09 Richard Guenther <rguenther@suse.de>
10103 PR tree-optimization/41016
10104 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
10105 (operand_precision): Remove.
10106 (integral_operand_p): Likewise.
10107 (recognize_single_bit_test): Adjust.
10109 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
10111 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
10112 operation overflows. Likewise non-cast unary arithmetic.
10113 If one arm of a conditional expression is always taken,
10114 inhibit evaluation warnings for the other arm. Likewise inhibit
10115 evaluation warnings for the second && or || operand if the first
10116 operand is enough to determine the result.
10117 * c-typeck.c (build_conditional_expr): Apply the same inhibition
10119 (build_binary_op): Prevent duplicate evaluation warnings.
10121 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
10123 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10124 and destination have different modes, Use promote_mode to
10125 determine the signedness of the conversion. Assert that the
10126 promoted source mode matches the destination mode. Don't pass
10127 the destination and destination mode to expand_expr if the source
10128 mode is different. Simplify conversion logic.
10130 2009-08-09 Ira Rosen <irar@il.ibm.com>
10132 PR tree-optimization/41008
10133 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10134 from condition only in case it's a comparison. Adjust checks.
10136 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
10138 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10139 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10140 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10141 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10142 (dump_cand): Handle them.
10143 (struct iv_cand): New members COST_STEP and AINC_USE.
10144 (stmt_after_increment): Likewise.
10145 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
10146 callers changed. Use gimple_uid comparison instead of scanning.
10147 (add_candidate_1): When looking for identical candidates, take
10148 AINC_USE into account. Set it for new candidates.
10149 (force_expr_to_var_cost): Cast target_spill_cost to int.
10150 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10151 All callers changed. Check for availability of autoinc addressing
10152 modes, both in general for a given mode, and in the specific use case.
10153 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
10155 (get_computation_cost): Likewise.
10156 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10157 add_autoinc_candidates): New static functions.
10158 (add_candidate): Call add_autoinc_candidates for candidates based on
10160 (find_iv_candidates): Call set_autoinc_for_original_candidates.
10161 (determine_use_iv_cost_address): If we have an autoinc candidate at
10162 the matching use, verify autoinc is possible and subtract the cost
10163 of the candidate's step from the cost.
10164 (determine_iv_cost): Record the cost of the increment in the COST_STEP
10165 member of the candidate.
10166 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10167 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
10169 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10171 * config.build (ia64-hp-*vms*): New target.
10172 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10173 with ia64-hp-*vms*.
10174 * config.gcc (ia64-hp-*vms*): New target.
10175 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10176 with ia64-hp-*vms*.
10177 * config.host (ia64-hp-*vms*): New target.
10178 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10179 with ia64-hp-*vms*.
10181 2009-08-08 Richard Guenther <rguenther@suse.de>
10183 PR tree-optimization/40991
10184 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10186 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
10188 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10189 mode check. Do truncations in an integer mode.
10190 (force_to_mode): Handle subregs for all mode types. Only do
10191 arithmetic simplifications on integer modes.
10193 2009-08-07 Richard Guenther <rguenther@suse.de>
10195 PR tree-optimization/40999
10196 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10197 (maybe_fold_reference): Lookup constant initializers.
10198 (fold_gimple_assign): Likewise.
10200 2009-08-07 Richard Guenther <rguenther@suse.de>
10202 * tree-ssa.c (useless_type_conversion_p_1): Only for types
10203 that require structural equality defer to the langhook.
10205 2009-08-07 Martin Jambor <mjambor@suse.cz>
10207 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10209 (struct ipa_pass_through_data): New type.
10210 (struct ipa_ancestor_jf_data): New type.
10211 (union jump_func_value): Removed field formal_id, added fields
10212 pass_through and ancestor.
10213 (struct ipa_param_call_note): Changed type of formal_id to int from
10215 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10216 operations jump functions and ancestor jump functions.
10217 (compute_complex_pass_through): New function.
10218 (compute_scalar_jump_functions): Call compute_complex_pass_through,
10219 reflect changes in the jump function strucutre.
10220 (update_jump_functions_after_inlining): Ignore complex pass-through
10221 and ancestor jump functions.
10222 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10223 polynomial pass-through with operation jump functions.
10225 2009-08-07 Jakub Jelinek <jakub@redhat.com>
10227 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10228 fde->dw_fde_begin as begin label instead of hot/cold label.
10229 Use LLSDAC label instead of LLSDA for second section lsda.
10230 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
10231 label instead of LLSDA if it is true.
10232 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10234 * except.c (add_call_site, dw2_size_of_call_site_table): Add
10235 SECTION argument. Use it as index into crtl->eh.call_site_record
10237 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
10238 use it to determine how to print table entries instead of using
10239 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
10240 label instead of normal begin label as base.
10241 (sjlj_assign_call_site_values): Adjust add_call_site caller.
10242 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10243 ensure no EH range spans between sections and that landing pads
10244 are always in the corresponding section.
10245 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10246 for crtl->eh.call_site_record being an array rather than scalar.
10247 (output_one_function_exception_table): New function, copied
10248 from output_function_exception_table. Adjust
10249 dw2_size_of_call_site_table, dw2_output_call_site_table
10250 callers. For SECOND section use *C suffixed labels.
10251 (output_function_exception_table): Call
10252 output_one_function_exception_table and, when doing hot/cold
10253 partitioning, also another time for the second section.
10254 * opts.c: Include except.h.
10255 (decode_options): Allow -freorder-blocks-and-partition with
10256 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10257 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10258 * function.h (struct rtl_eh): Change call_site_record from
10259 scalar into array of 2 elements.
10261 2009-08-07 Martin Jambor <mjambor@suse.cz>
10263 * ipa-prop.c (count_formal_params_1): New function.
10264 (ipa_get_vector_of_formal_parms): New function.
10265 (get_vector_of_formal_parm_types): New function.
10266 (ipa_modify_formal_parameters): New function.
10267 (ipa_modify_call_arguments): New function.
10268 (index_in_adjustments_multiple_times_p): New function.
10269 (ipa_combine_adjustments): New function.
10270 (ipa_dump_param_adjustments): New function.
10271 * ipa-prop.h (struct ipa_parm_adjustment): New type.
10272 (ipa_get_vector_of_formal_parms): Declare.
10273 (ipa_modify_formal_parameters): Declare.
10274 (ipa_modify_call_arguments): Declare.
10275 (ipa_combine_adjustments): Declare.
10276 (ipa_dump_param_adjustments): Declare.
10277 (build_ref_for_offset): Declare.
10278 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10279 * tree-sra.c: Include ipa-prop.c.
10280 (build_ref_for_offset): Make public.
10282 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
10284 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10286 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
10288 * gcc/doc/extend.texi (__builtin_extract_return_address)
10289 (__builtin_frob_return_address): Document.
10291 2009-08-06 Paul Brook <paul@codesourcery.com>
10293 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10294 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10295 implementation on ARMv6-M.
10297 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10299 * doc/extend.texi (pcs): Document new attribute for ARM.
10301 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10303 * arm.c (pcs_attribute_args): Comment out unsupported attribute
10306 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10308 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10311 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10313 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10315 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10317 Merge ARM/hard_vfp_branch to trunk.
10319 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
10321 * arm.c (libcall_eq): New function.
10322 (libcall_hash): New function.
10323 (add_libcall): New function.
10324 (arm_libcall_uses_aapcs_base): New function.
10325 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10326 libcalls using the base PCS.
10327 (arm_init_cumulative_args): Likewise.
10329 2009-07-20 Joseph Myers <joseph@codesourcery.com>
10331 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10332 Use base ABI for conversion libfuncs between HFmode and SFmode.
10334 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10336 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10337 V4SImode as representatives of all 64-bit and 128-bit vector
10338 types. Allow vector types without vector modes.
10339 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10340 without vector modes like BLKmode.
10341 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10342 BLKmode. Avoid unsupported vector modes or TImode moves for
10344 (aapcs_vfp_allocate_return_reg): Likewise.
10345 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10346 V8QImode if TARGET_NEON || TARGET_IWMMXT.
10348 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10350 * config/arm/arm.c (arm_handle_pcs_attribute): New.
10351 (arm_get_pcs_model): Pass attribute arguments to
10352 arm_pcs_from_attribute.
10353 (arm_init_cumulative_args): Use base AAPCS for conversions from
10354 floating-point types to DImode.
10355 (arm_attribute_table): Add pcs attribute.
10356 (arm_handle_pcs_attribute): New.
10357 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10358 conversions from floating-point types to DImode, also declare them
10359 to use base AAPCS and declare functions they call to use base
10360 AAPCS and their RTABI names.
10362 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10364 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10365 -mfloat-abi=hard not being supported for VFP.
10367 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
10369 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10370 SYMBOL_REF to hard_libcall_value.
10372 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10373 Richard Earnshaw <rearnsha@arm.com>
10375 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10376 has been put on the stack, all remaining co-processory arguments for
10377 that co-processor also go on the stack.
10379 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10381 * config/arm/arm.c (arm_return_in_memory): Handle returning
10382 vectors of suitable size in registers also for AAPCS case.
10384 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
10386 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10388 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
10390 ARM Hard-VFP calling convention
10391 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10392 * target.h (gcc_target): Add libcall_value to table of call hooks.
10393 * targhooks.h (default_libcall_value): Default implementation.
10394 * targhooks.c (default_libcall_value): Likewise.
10395 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10396 * optabs.c (expand_unop): Use it.
10397 * expr.h (hard_libcall_value): Pass the function RTX through.
10398 * calls.c (emit_library_call_value_1): Update call to
10399 hard_libcall_value.
10400 * explow.c (hard_libcall_value): Use new target hook.
10401 * config/arm/arm.c: Include cgraph.h
10402 (TARGET_FUNCTION_VALUE): Override default hook.
10403 (arm_pcs_default): New variable.
10404 (arm_override_options): Don't fault hard calling convention with VFP.
10405 Add support for AAPCS variants.
10406 (arm_function_value): Make static. Handle AAPCS variants.
10407 (arm_libcall_value): New function.
10408 (arm_apply_result_size): Handle VFP registers in results.
10409 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10411 (pcs_attribute_args): New variable.
10412 (arm_pcs_from_attribute): New function.
10413 (arm_get_pcs_model): New function.
10414 (aapcs_vfp_cum_init): New function.
10415 (aapcs_vfp_sub_candidate): New function.
10416 (aapcs_vfp_is_return_candidate): New function.
10417 (aapcs_vfp_is_call_candidate): New function.
10418 (aapcs_vfp_allocate): New function.
10419 (aapcs_vfp_allocate_return_reg): New function.
10420 (aapcs_vfp_advance): New function.
10421 (aapcs_cp_arg_layout): New variable.
10422 (aapcs_select_call_coproc): New function.
10423 (aapcs_select_return_coproc): New function.
10424 (aapcs_allocate_return_reg): New function.
10425 (aapcs_libcall_value): New function.
10426 (aapcs_layout_arg): New function.
10427 (arm_init_cumulative_args): Initialize AAPCS args data.
10428 (arm_function_arg): Handle AAPCS variants using new interface.
10429 (arm_arg_parital_bytes): Likewise.
10430 (arm_function_arg_advance): New function.
10431 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10432 calling conventions.
10433 (arm_setup_incoming_varargs): Handle new AAPCS args data.
10434 * arm.h (NUM_VFP_ARG_REGS): Define.
10435 (LIBCALL_VALUE): Update.
10436 (FUNCTION_VALUE): Delete.
10437 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10438 (arm_pcs): New enum.
10439 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10440 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10441 (FUNCTION_ARG_REGNO_P): Add VFP regs.
10442 * arm-protos.h (arm_function_arg_advance): Add.
10443 (aapcs_libcall_value): Add.
10444 (arm_function_value): Delete.
10446 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
10447 H.J. Lu <hongjiu.lu@intel.com>
10450 * config/i386/i386.c (standard_sse_mode_p): Remove.
10451 (standard_sse_constant_p): Return 2 for integer mode
10452 vector_all_ones_operand when SSE2 is enabled.
10453 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10454 (ix86_expand_vector_move): Do not check for negative values from
10455 standard_sse_constant_p.
10457 2009-08-06 Richard Guenther <rguenther@suse.de>
10459 * tree-ssa.c (useless_type_conversion_p_1): Make function and
10460 array type comparisons frontend independent.
10461 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10462 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10463 out array reference lower bound and element size operands.
10464 (ao_ref_init_from_vn_reference): Properly compute the offset
10465 for ARRAY_RANGE_REF.
10466 (vn_reference_fold_indirect): Fill out array reference lower
10467 bound and element size operands.
10468 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10469 a non gimple valued reference operand which can happen for
10470 array reference lower bound or element size.
10471 (create_component_ref_by_pieces_1): Properly generate the
10472 element size operand for array references.
10474 2009-08-06 Richard Guenther <rguenther@suse.de>
10476 PR tree-optimization/40964
10477 * tree.c (iterative_hash_host_wide_int): Export.
10478 * tree.h (iterative_hash_host_wide_int): Declare.
10479 * tree-ssa-structalias.c (heapvar_map): New struct.
10480 (heapvar_map_eq): New function.
10481 (heapvar_map_hash): Likewise.
10482 (heapvar_lookup): Adjust.
10483 (heapvar_insert): Likewise.
10484 (make_constraint_from_heapvar): Allow multiple heap variables
10485 per decl at different offsets.
10486 (init_alias_heapvars): Adjust.
10488 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10490 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10491 * mips_output_sync_loop (mips_output_sync_loop): Only emit
10492 trailing sync if TARGET_SYNC_AFTER_SC.
10494 2009-08-05 David Daney <ddaney@caviumnetworks.com>
10496 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10497 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10498 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10499 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10500 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10501 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10502 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10503 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10504 test_and_set_12): Rewrite calls to mips_output_sync_loop.
10505 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10506 the prototype declaration match the definition.
10507 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
10508 instructions explicitly. Add barrier_before and operands
10510 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10511 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10512 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10513 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10514 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10515 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10517 2009-08-05 Andrew Pinski <pinskia@gmail.com>
10519 * tree-ssa-alias.c: Fix intervals to use [) syntax.
10521 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
10522 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
10525 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10528 2009-08-05 Jakub Jelinek <jakub@redhat.com>
10530 PR rtl-optimization/40924
10531 * dse.c (canon_address): Before calling cselib_expand_value_rtx
10532 make sure canon_rtx (mem_address) isn't simpler than
10533 canon_rtx (expanded_mem_address).
10535 2009-08-05 Li Feng <nemokingdom@gmail.com>
10537 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10538 for each poly_bb_p.
10539 (build_scop_drs): Build alias set for each SCoP.
10541 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
10543 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10544 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10545 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10546 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10547 (BASE_DRIVER_SELF_SPECS): Likewise.
10549 2009-08-04 Andrew Pinski <pinskia@gmail.com>
10551 * tree-ssa-alias.c: Fix some comment typos.
10553 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
10555 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10556 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10558 2009-08-03 Janis Johnson <janis187@us.ibm.com>
10561 * simplify-rtx.c (simplify_binary_operation_1): Disable
10562 simplifications for decimal float operations.
10564 2009-08-03 Jakub Jelinek <jakub@redhat.com>
10566 PR middle-end/40943
10567 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10568 operand of INDIRECT_REF.
10570 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
10572 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10573 constants referencing TLS symbols.
10575 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10577 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10578 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10580 2009-08-03 Richard Guenther <rguenther@suse.de>
10582 * tree.c (make_vector_type): Build a main variant first,
10583 get the canonical one and then build the variant.
10584 * tree-ssa.c (useless_type_conversion_p_1): Handle
10586 (useless_type_conversion_p): Conversions to pointers to
10587 incomplete record types are useless.
10589 2009-08-03 Richard Guenther <rguenther@suse.de>
10591 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10592 file will be created.
10593 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10594 * toplev.c (compile_file): Adjust comment.
10596 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
10598 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10599 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10600 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10601 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10602 (sh_promote_function_mode): Fix typo.
10604 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
10606 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10608 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10610 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10611 declaration arguments.
10613 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
10615 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10616 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10617 (ix86_split_ashl): Ditto.
10618 (ix86_expand_vector_init_one_nonzero): Ditto.
10619 (ix86_expand_vector_set): Ditto.
10620 (ix86_expand_reduc_v4sf): Ditto.
10622 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
10624 * explow.c (promote_function_mode): Remove assert.
10625 * config/sh/sh.c (sh_promote_function_mode): Declare.
10627 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10629 * config/pa/pa.c (pa_promote_function_mode): Declare.
10630 Change to static. Fix promote_mode call.
10632 * gthr-dce.h (CONST_CAST2): Define if not defined.
10633 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10635 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10637 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
10639 * expr.c (store_constructor): Use promote_decl_mode. Remove
10640 now write-only variable unsignedp.
10641 (expand_expr_real_1): Use promote_decl_mode.
10642 * expr.h (promote_function_mode, promote_decl_mode): New.
10643 (promote_mode): Remove last argument.
10644 * function.c (assign_temp): Drop last argument of promote_mode.
10645 (assign_parm_find_data_types): Use promote_function_mode.
10646 (assign_parm_setup_reg): Likewise.
10647 (expand_function_end): Use promote_function_mode.
10648 * calls.c (initialize_argument_information): Use promote_function_mode.
10649 (precompute_arguments): Use promote_mode instead of checking if
10650 only PROMOTE_FUNCTION_MODE is defined.
10651 (expand_call): When making sibcall decisions, use promote_function_mode.
10652 Below, remove an if for targetm.calls.promote_function_return and
10653 and use promote_function_mode.
10654 (emit_library_call_value_1): Use promote_function_mode, fix bug
10655 where promote_mode was passed FOR_CALL == 0 for a return value in an
10657 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10658 * explow.c (promote_function_mode, promote_decl_mode): New.
10659 (promote_mode): Keep only the FOR_CALL == 0 case.
10660 * combine.c (setup_incoming_promotion): Remove test of
10661 promote_function_args. Use promote_function_mode.
10662 * stmt.c (expand_value_return): Use promote_decl_mode.
10663 (expand_decl): Use promote_decl_mode.
10665 * expr.c (store_constructor): Use promote_decl_mode. Remove
10666 now write-only variable unsignedp.
10667 (expand_expr_real_1): Use promote_decl_mode.
10668 * expr.h (promote_function_mode, promote_decl_mode): New.
10669 (promote_mode): Remove last argument.
10670 * function.c (assign_temp): Drop last argument of promote_mode.
10671 (assign_parm_find_data_types): Use promote_function_mode.
10672 (assign_parm_setup_reg): Likewise.
10673 (expand_function_end): Use promote_function_mode.
10674 * calls.c (initialize_argument_information): Use promote_function_mode.
10675 (precompute_arguments): Use promote_mode instead of checking if
10676 only PROMOTE_FUNCTION_MODE is defined.
10677 (expand_call): When making sibcall decisions, use promote_function_mode.
10678 Below, remove an if for targetm.calls.promote_function_return and
10679 and use promote_function_mode.
10680 (emit_library_call_value_1): Use promote_function_mode, fix bug
10681 where promote_mode was passed FOR_CALL == 0 for a return value in an
10683 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10684 * explow.c (promote_function_mode, promote_decl_mode): New.
10685 (promote_mode): Keep only the FOR_CALL == 0 case.
10686 * combine.c (setup_incoming_promotion): Remove test of
10687 promote_function_args. Use promote_function_mode.
10688 * stmt.c (expand_value_return): Use promote_decl_mode.
10689 (expand_decl): Use promote_decl_mode.
10691 * explow.c (promote_function_mode): Just call the target hook.
10692 * targhooks.c (default_promote_function_mode,
10693 default_promote_function_mode_always_promote): New.
10694 * targhooks.h (default_promote_function_mode,
10695 default_promote_function_mode_always_promote): Declare.
10696 * target.h (promote_function_args, promote_function_return): Remove.
10697 (promote_function_mode): New.
10698 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10699 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10700 (TARGET_PROMOTE_FUNCTION_MODE): New.
10701 (TARGET_CALLS): Adjust.
10702 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10703 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10705 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10706 * config/s390/s390.c (s390_promote_function_mode): ... here,
10707 with pointer handling.
10708 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10709 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10711 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10712 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10713 with pointer handling.
10714 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10715 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10717 * config/sh/sh-protos.h (sh_promote_function_mode): New.
10718 * config/sh/sh.c (sh_promote_function_mode): New.
10719 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10720 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10722 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10723 * config/cris/cris.c (cris_promote_function_mode): ... here.
10724 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10725 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10727 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10728 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10729 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10730 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10732 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
10733 * config/arm/arm.c (arm_promote_function_mode): ... here, without
10734 complex type handling.
10735 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10736 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10738 * config/pa/pa.c (pa_promote_function_mode): New.
10739 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10740 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10742 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10743 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10744 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10745 * config/xtensa/xtensa.c: Likewise.
10746 * config/stormy16/stormy16.c: Likewise.
10747 * config/iq2000/iq2000.c: Likewise.
10748 * config/rs6000/rs6000.c: Likewise.
10749 * config/picochip/picochip.c: Likewise.
10750 * config/arc/arc.c: Likewise.
10751 * config/mcore/mcore.c: Likewise.
10752 * config/score/score.c: Likewise.
10753 * config/mips/mips.c: Likewise.
10754 * config/bfin/bfin.c: Likewise.
10755 * config/ia64/ia64.c: Likewise (disabled though).
10757 * config/frv/frv.h: Remove pointless remark.
10759 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10760 TARGET_PROMOTE_FUNCTION_ARGS,
10761 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10762 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10764 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
10766 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10767 -floop-parallelize-all.
10768 * toplev.c (process_options): Rename flag_graphite_force_parallel to
10769 flag_loop_parallelize_all.
10770 * tree-ssa-loop.c (gate_graphite_transforms): Same.
10771 * graphite.c (graphite_transform_loops): Same.
10772 * common.opt: Same.
10773 * graphite-poly.c (apply_poly_transforms): Same.
10775 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
10777 PR tree-optimization/40914
10778 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10779 if set, then check the delta field of the PMF record.
10780 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10781 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10782 call is stored in the delta.
10784 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
10786 * config/mips/mips.md (*clear_upper32_dext): New pattern.
10788 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
10790 * config/i386/bsd.h (ASM_BYTE): New define.
10791 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10792 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10793 .byte. Use fputs or putc instead of fprintf where appropriate.
10794 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
10795 fputs or putc instead of fprintf where appropriate.
10796 * config/i386/i386elf.h: Ditto.
10797 * config/i386/sysv4.h: Ditto.
10799 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10800 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10801 (*tls_global_dynamic_64): Ditto.
10803 2009-07-31 Christian Bruel <christian.bruel@st.com>
10805 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10807 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10809 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
10810 Remove dead code for MINUS.
10812 2009-07-31 Anthony Green <green@moxielogic.com>
10814 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10816 (moxie_expand_epilogue): Ditto for epilogue.
10817 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
10818 incoming arguments.
10819 (moxie_function_arg): Ditto.
10820 (moxie_pass_by_reference): Ditto.
10821 (moxie_arg_partial_bytes): Ditto.
10822 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10823 (FUNCTION_ARG_ADVANCE) Ditto.
10824 (REG_PARM_STACK_SPACE) Ditto.
10825 (FUNCTION_ARG_REGNO_P) Dito.
10827 * config.gcc: Add moxie linux config support.
10828 * gcc/config/moxie/uclinux.h: New file.
10830 2009-07-31 DJ Delorie <dj@redhat.com>
10832 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10833 (UNSPECV_SP_SWITCH_E): New.
10834 (sp_switch_1): Change to an unspec.
10835 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10837 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10838 reference the new stack's address
10840 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10842 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10843 graphite-clast-to-gimple.o, graphite-dependences.o,
10844 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10845 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10846 (graphite-blocking.o,
10847 graphite-clast-to-gimple.o, graphite-dependences.o,
10848 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10849 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10850 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10851 * cfgloop.h (struct loop): Add can_be_parallel field.
10852 * common.opt (fgraphite-identity): Moved up.
10853 (fgraphite-force-parallel): New flag.
10854 * graphite.c: Rewrite.
10855 * graphite.h: Rewrite.
10856 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10858 * toplev.c (graphite_out_file): New file descriptor.
10859 (graphite_in_file): New.
10860 (process_options): flag_graphite_force_parallel cannot be used without
10862 * tree-ssa-loop.c: Include toplev.h.
10863 (gate_graphite_transforms): Enable flag_graphite for
10864 flag_graphite_force_parallel.
10866 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10868 * ChangeLog.graphite: New.
10869 * graphite-blocking.c: New.
10870 * graphite-clast-to-gimple.c: New.
10871 * graphite-clast-to-gimple.h: New.
10872 * graphite-dependences.c: New.
10873 * graphite-dependences.h: New.
10874 * graphite-interchange.c: New.
10875 * graphite-poly.c: New.
10876 * graphite-poly.h: New.
10877 * graphite-ppl.c: New.
10878 * graphite-ppl.h: New.
10879 * graphite-scop-detection.c: New.
10880 * graphite-scop-detection.h: New.
10881 * graphite-sese-to-poly.c: New.
10882 * graphite-sese-to-poly.h: New.
10886 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10888 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10889 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10891 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10893 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10894 (scev_is_linear_expression): Return false if the evolution is not
10895 affine multivariate.
10897 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10899 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10900 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10902 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10904 * tree-data-ref.c (debug_data_references): New.
10905 (debug_data_reference): New.
10906 * tree-data-ref.h (debug_data_references): Declared.
10907 (debug_data_reference): Declared.
10909 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10911 * tree-data-ref.c (stmt_simple_memref_p: Removed.
10912 * tree-data-ref.h (scop_p): Removed.
10913 (struct data_reference): Remove field scop.
10914 (DR_SCOP): Removed.
10915 (stmt_simple_memref_p): Removed.
10917 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10919 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10920 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10923 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10925 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10927 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10929 * doc/invoke.texi (-fgraphite-identity): Documented.
10931 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10933 * tree-scalar-evolution.c: Fix comment.
10934 (instantiate_scev_1): Return unknow from scev instantiation if the
10935 result is not above instantiate_below.
10937 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10939 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10940 static anymore. Instantiate the symbols that may have been introduced
10942 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10945 2009-07-30 DJ Delorie <dj@redhat.com>
10947 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10948 .vliw directive to VLIW sections.
10950 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10952 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10954 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10955 (AUTOHEADER): New variable.
10956 ($(srcdir)/cstamp-h.in): Use it.
10958 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10959 Pat Haugen <pthaugen@us.ibm.com>
10960 Revital Eres <ERES@il.ibm.com>
10962 * config/rs6000/vector.md (VEC_F): Add VSX support.
10965 (mov<mode>): Ditto.
10966 (vector_load_<mode>): Ditto.
10967 (vector_store_<mode>): Ditto.
10968 (vector GPR move split): Ditto.
10969 (vec_reload_and_plus_<mptrsize>): Ditto.
10970 (vec_reload_and_reg_<mptrsize>): Ditto.
10971 (add<mode>3): Ditto.
10972 (sub<mode>3): Ditto.
10973 (mul<mode>3): Ditto.
10974 (neg<mode>2): Ditto.
10975 (abs<mode>2): Ditto.
10976 (smin<mode>3): Ditto.
10977 (smax<mode>3): Ditto.
10978 (vector_eq<mode>): Ditto.
10979 (vector_gt<mode>): Ditto.
10980 (vector_ge<mode>): Ditto.
10981 (vector_gtu<mode>): Ditto.
10982 (vector_select_<mode>_uns): Ditto.
10983 (vector_eq_<mode>_p): Ditto.
10984 (vector_gt_<mode>_p): Ditto.
10985 (vector_ge_<mode>_p): Ditto.
10986 (vector_gtu_<mode>_p): Ditto.
10987 (cr6_test_for_zero): Ditto.
10988 (cr6_test_for_zero_reverse): Ditto.
10989 (cr6_test_for_lt): Ditto.
10990 (cr6_test_for_lt_reverse): Ditto.
10991 (xor<mode>3): Ditto.
10992 (ior<mode>3): Ditto.
10993 (and<mode>3): Ditto.
10994 (one_cmpl<mode>2): Ditto.
10995 (nor<mode>2): Ditto.
10996 (andc<mode>2): Ditto.
10997 (float<VEC_int<mode>2): Ditto.
10998 (unsigned_float<VEC_int><mode>2): Ditto.
10999 (fix_trunc<mode><VEC_int>2): Ditto.
11000 (fixuns_trunc<mode><VEC_int>2): Ditto.
11002 (vec_set<mode>): Ditto.
11003 (vec_extract<mode>): Ditto.
11004 (vec_interleave_highv4sf): Ditto.
11005 (vec_interleave_lowv4sf): Ditto.
11006 (vec_realign_load_<mode>): Ditto.
11007 (vec_shl_<mode>): Ditto.
11008 (vec_shr_<mode>): Ditto.
11009 (div<mode>3): New patterns for VSX.
11010 (vec_interleave_highv2df): Ditto.
11011 (vec_interleave_lowv2df): Ditto.
11012 (vec_pack_trunc_v2df): Ditto.
11013 (vec_pack_sfix_trunc_v2df): Ditto.
11014 (vec_pack_ufix_trunc_v2df): Ditto.
11015 (vec_unpacks_hi_v4sf): Ditto.
11016 (vec_unpacks_lo_v4sf): Ditto.
11017 (vec_unpacks_float_hi_v4si): Ditto.
11018 (vec_unpacks_float_lo_v4si): Ditto.
11019 (vec_unpacku_float_hi_v4si): Ditto.
11020 (vec_unpacku_float_lo_v4si): Ditto.
11021 (movmisalign<mode>): Ditto.
11022 (vector_ceil<mode>2): New patterns for vectorizing math library.
11023 (vector_floor<mode>2): Ditto.
11024 (vector_btrunc<mode>2): Ditto.
11025 (vector_copysign<mode>3): Ditto.
11027 * config/rs6000/predicates.md (easy_vector_constant_msb): New
11028 predicate for setting the high bit in each word, used for copysign.
11030 * config/rs6000/ppc-asm.h (f19): Whitespace.
11031 (f32-f63): Define if VSX.
11032 (v0-v31): Define if Altivec.
11033 (vs0-vs63): Define if VSX.
11035 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
11037 * config/rs6000/power7.md: New file, provide tuning parameters for
11040 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
11041 (rs6000_cpu_cpp_builtins): Ditto.
11042 (altivec_overloaded_builtins): Ditto.
11043 (altivec_resolve_overloaded_builtin): Ditto.
11045 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
11046 debug switch to disable vectorizing simple math builtin
11049 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11050 Vectorize simple math builtin functions.
11051 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11052 hook to vectorize math builtins.
11053 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
11054 (rs6000_builtin_conversion): Add VSX/power7 support.
11055 (rs6000_builtin_vec_perm): Ditto.
11056 (vsplits_constant): Add support for loading up a vector constant
11057 with just the high bit set in each part.
11058 (rs6000_expand_vector_init): Add VSX/power7 support.
11059 (rs6000_expand_vector_set): Ditto.
11060 (rs6000_expand_vector_extract): Ditto.
11061 (rs6000_emit_move): Ditto.
11062 (bdesc_3arg): Ditto.
11063 (bdesc_2arg): Ditto.
11064 (bdesc_1arg): Ditto.
11065 (rs6000_expand_ternop_builtin): Ditto.
11066 (altivec_expand_builtin): Ditto.
11067 (rs6000_expand_unop_builtin): Ditto.
11068 (rs6000_init_builtins): Ditto.
11069 (altivec_init_builtins): Ditto.
11070 (builtin_function_type): Ditto.
11071 (rs6000_common_init_builtins): Ditto.
11072 (rs6000_handle_altivec_attribute); Ditto.
11073 (rs6000_mangle_type): Ditto.
11074 (rs6000_vector_mode_supported_p): Ditto.
11075 (rs6000_mode_dependent_address): Altivec addresses with AND -16
11076 are mode dependent.
11078 * config/rs6000/vsx.md: New file for VSX support.
11080 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
11081 identifing values with just the most significant bit set.
11082 (enum rs6000_builtins): Add builtins for VSX. Add simple math
11083 vectorized builtins.
11085 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
11086 (UNSPEC_VRFIM): Delete.
11087 (splitter for loading up vector with most significant bit): New
11088 splitter for vectorizing copysign.
11089 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
11090 vectorizing simple math functions.
11091 (altivec_vrfip): Add support for vectorizing simple math functions.
11092 (altivec_vrfim): Ditto.
11093 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
11095 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
11096 (power7.md, vsx.md): Include for power7 support.
11097 (copysigndf3): Use VSX instructions if -mvsx.
11098 (negdf2_fpr): Ditto.
11099 (absdf2_fpr): Ditto.
11100 (nabsdf2_fpr): Ditto.
11101 (adddf3_fpr): Ditto.
11102 (subdf3_fpr): Ditto.
11103 (muldf3_fpr): Ditto.
11104 (divdf3_fpr): Ditto.
11105 (fix_truncdfdi2_fpr): Ditto.
11106 (cmpdf_internal1): Ditto.
11107 (fred, fred_fpr): Convert into expander/insn to add VSX support.
11108 (btruncdf2, btruncdf2_fpr): Ditto.
11109 (ceildf2, ceildf2_fpr): Ditto.
11110 (floordf2, floordf2_fpr): Ditto.
11111 (floatdidf2, floatdidf2_fpr): Ditto.
11112 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
11113 (fmsubdf4_fpr): Ditto.
11114 (fnmadddf4_fpr_1): Ditto.
11115 (fnmadddf4_fpr_2): Ditto.
11116 (fnmsubdf4_fpr_1): Ditto.
11117 (fnmsubdf4_fpr_2): Ditto.
11118 (fixuns_truncdfdi2): Add expander for VSX support.
11119 (fix_truncdfdi2): Ditto.
11120 (fix_truncdfsi2): Ditto.
11121 (ftruncdf2): Ditto.
11122 (btruncsf2): Whitespace.
11123 (movdf_hardfloat32): Add support for VSX registers.
11124 (movdf_softfloat32): Ditto.
11125 (movdf_hardfloat64): Ditto.
11126 (movdf_hardfloat64_mfpgpr): Ditto.
11127 (movdf_softfloat64): Ditto.
11128 (movti splitters): Add check for vector registers supporting
11129 TImode in the future.
11130 (bpermd): Add power7 bpermd instruction.
11132 * config/rs6000/altivec.h (vec_div): Define if VSX.
11135 (vec_nmadd): Ditto.
11136 (vec_nearbyint): Ditto.
11139 (all predicates): Use the generic builtin function, and not the V4SF
11140 specific function so that the predicates will work with VSX's V2DF.
11141 (vec_all_*): Ditto.
11142 (vec_any_*): Ditto.
11144 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11145 Document new VSX functions and types.
11147 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11150 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11151 "wa", and "j" constraints. Modify "v" to talk about Altivec
11152 instead of just vector.
11154 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
11157 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11158 location for phi arguments.
11159 (rewrite_update_phi_arguments): Find locations for reaching defs.
11160 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11161 Add location to add_phi_arg calls.
11162 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11163 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11164 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11165 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11166 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11167 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11168 * tree-phinodes.c (make_phi_node): Initialize location.
11169 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11170 (add_phi_arg): Add location parameter.
11171 (remove_phi_arg_num): Move location when moving phi argument.
11172 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11174 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11175 slpeel_update_phi_nodes_for_guard1,
11176 slpeel_update_phi_nodes_for_guard2,
11177 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11178 vect_loop_versioning): Set locations.
11179 * tree-parloops.c (create_phi_for_local_result,
11180 transform_to_exit_first_loop, create_parallel_loop): Add locations.
11181 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11182 * tree-vect-loop.c (get_initial_def_for_induction,
11183 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11185 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
11186 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
11187 (gimple_phi_arg_set_location): New. Set locus.
11188 (gimple_phi_arg_has_location): New. Check for locus.
11189 (redirect_edge_var_map_location): New. Return locus from var_map.
11190 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11191 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11192 combining PHI arguments.
11193 (cond_store_replacement): Set location.
11194 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11195 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11196 scop_add_exit_phis_edge): Add locations.
11197 * tree-cfgcleanup.c (remove_forwarder_block,
11198 remove_forwarder_block_with_phi): Add locations.
11199 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11200 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11202 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11203 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11204 flush_pending_stmts): Add source location.
11205 * lambda-code.c (perfect_nestify): Maintain location stack with argument
11206 stack to preserve locations.
11207 * tree-vect-stmts.c (vectorizable_load): Add location.
11208 * tree-inline.c (copy_phis_for_bb): Copy locus.
11209 (setup_one_parameter): Add call locus to inlined parameter stmts.
11210 (initialize_inlined_parameters): Pass in call location as parameter
11212 (tree_function_versioning): Pass location to setup_one_parameter.
11213 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11214 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11215 copy and edge lists.
11216 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11217 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11218 locus parameter and override the stmt default if provided.
11219 (new_elim_graph, clear_elim_graph, delete_elim_graph,
11220 elim_graph_add_edge, elim_graph_remove_succ_edge,
11221 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11222 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11223 eliminate_phi): Add locus info in elimination graph for each edge and
11225 (insert_backedge_copies): Copy locus if present.
11226 * tree-flow.h (struct _edge_var_map): Add locus field.
11227 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11228 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11229 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11231 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11233 2009-07-30 Martin Jambor <mjambor@suse.cz>
11235 PR tree-optimization/40570
11236 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11237 use inlining loops.
11239 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
11241 * ssa-loop-manip.c: Include langhooks.h.
11242 (rewrite_phi_with_iv): New.
11243 (rewrite_all_phi_nodes_with_iv): New.
11244 (canonicalize_loop_ivs): Move here from tree-parloops.c.
11245 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11246 * tree-parloops.c (loop_parallel_p): Move out all conditions
11247 except dependency check.
11248 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11249 (gen_parallel_loop): Call canonicalize_loop_ivs without
11250 reduction_list argument.
11251 (build_new_reduction): New.
11252 (gather_scalar_reductions): New.
11253 (try_get_loop_niter): New.
11254 (try_create_reduction_list): New.
11255 (parallleize_loops): Change the parallel conditions check.
11256 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11257 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11259 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
11261 * opt-functions.awk (opt_args): Allow argument to be enclosed in
11263 * doc/options.texi (Option properties): Mention new quoting syntax.
11265 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11267 * config/alpha/alpha.c (alpha_start_function):
11268 Handle VMS_DEBUG_MAIN_POINTER
11269 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11270 * doc/invoke.texi: Document -mdebug-main switch.
11272 2009-07-29 Richard Henderson <rth@redhat.com>
11274 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11275 (cgraph_create_edge_including_clones): Likewise.
11276 * tree-inline.c (copy_bb): Operate on the correct edges
11277 when updating the callgraph.
11279 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11281 * config/alpha/vms-cc.c: Deleted.
11282 * config/alpha/vms-ld.c: Deleted.
11283 * config/alpha/t-vms64: Moved to config/vms
11284 * config/alpha/vms-crt0-64.c: Moved to config/vms
11285 * config/alpha/vms-crt0.c: Moved to config/vms
11286 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11287 * config/alpha/vms-psxcrt0.c: Moved to config/vms
11288 * config/alpha/xm-vms.h: Moved to config/vms
11289 * config/alpha/x-vms: Moved to config/vms
11290 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11292 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11293 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11295 * config/vms/t-vms64: Moved here from config/alpha
11296 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11297 (argc,argv,envp): Enforce 32bit malloc'ing.
11298 * config/vms/vms-psxcrt0-64.c: Likewise.
11299 * config/vms/vms-crt0.c: Moved here from config/alpha.
11300 * config/vms/vms-psxcrt0.c: Likewise.
11301 * config/vms/vms-crtl-64.h: New file.
11302 * config/vms/vms-crtl.h: New file.
11303 * config/vms/vms.opt: New file.
11304 * config/vms/xm-vms64.h: New file.
11305 * config/vms/xm-vms.h: Moved here from config/alpha.
11306 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11308 * config/vms/x-vms: Moved here from config/alpha.
11309 (version, VMS_EXTRA_PARTS): Moved to t-vms.
11310 (vms-ld.o, vms-cc.o): Removed.
11311 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11313 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11315 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11316 correct stack (obvious VMS fix).
11318 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11320 * dwarf2out.c (output_file_names): Output VMS style file name, size,
11321 date, version info if VMS_DEBUGGING_INFO defined.
11322 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11323 size, date calculating code moved here.
11325 2009-07-29 Paul Brook <paul@codesourcery.com>
11327 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11330 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
11333 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11334 to DImode when generating insq_le insn.
11336 2009-07-28 Douglas B Rupp <rupp@gnat.com>
11338 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11339 New macro set for VMS_DEBUGGGING_INFO.
11340 (AT_string_form): Use it.
11342 2009-07-28 DJ Delorie <dj@redhat.com>
11344 * config/mep/mep.c (vtext_section): New.
11345 (vftext_section): New.
11346 (ftext_section): New.
11347 (mep_select_section): Add support for functions.
11348 (mep_unique_section): Likewise.
11349 (mep_asm_init_sections): Likewise.
11350 (mep_encode_section_info): Remove it from here.
11352 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11354 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
11356 * tree.h (TREE_DEPRECATED): Document it is used for types too.
11357 (TYPE_VECTOR_OPAQUE): Use default_def_flag
11359 2009-07-28 Douglas B Rupp <rupp@gnat.com>
11361 * dwarf2out.c (output_file_names): Test new macro
11362 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11363 (add_comp_dir_attribute): Likewise.
11365 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
11367 * config/i386/mingw-w64.h (LINK_SPEC): Add
11368 separating space between commands.
11370 2009-07-28 Jan Hubicka <jh@suse.cz>
11372 PR tree-optimization/40759
11373 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11376 2009-07-27 DJ Delorie <dj@redhat.com>
11378 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11379 types are dword-aligned.
11380 (mep_expand_va_start): Likewise.
11382 2009-07-27 Olivier Hainque <hainque@adacore.com>
11383 Douglas B Rupp <rupp@gnat.com>
11385 * convert.c (convert_to_pointer): Don't assume the target
11386 pointer type is POINTER_SIZE long. Fetch its precision instead.
11388 2009-07-27 Douglas B Rupp <rupp@gnat.com>
11390 * system.h (fopen): Undefine if macro.
11392 2009-07-27 Jakub Jelinek <jakub@redhat.com>
11394 * dwarf2out.c (output_cfi_p): Removed.
11395 (output_cfis): New function.
11396 (output_fde): New function, split from output_call_frame_info.
11397 (output_call_frame_info): Use it.
11398 (dwarf2out_switch_text_section): Use output_cfis.
11400 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
11402 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11403 TARGET_BI_ARCH is specified without enabling SJLJ.
11404 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11405 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11407 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
11409 * arm.md (negdi2): Use DImode if forcing a value into a register.
11411 2009-07-26 Ira Rosen <irar@il.ibm.com>
11413 PR tree-optimization/40801
11414 * tree-vect-stmts.c (vectorizable_call): Get previous copy
11415 of vector operand from the previous copy of vector statement.
11416 Pass the correct definition type value to
11417 vect_get_vec_def_for_stmt_copy().
11419 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11421 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11422 const char ** conversion.
11424 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11426 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11427 fancy_abort() if !ENABLE_ASSERT_CHECKING.
11428 (gcc_unreachable): Invoke __builtin_unreachable() if
11429 !ENABLE_ASSERT_CHECKING.
11431 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11433 PR rtl-optimization/40445
11434 * emit-rtl.c (next_nonnote_insn_bb): New function.
11435 * rtl.h (next_nonnote_insn_bb): Declare new function.
11436 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11437 with no successors that is the successor of the ENTRY_BLOCK.
11438 Continue from the top after removing an empty fallthrough block.
11439 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11440 of next_nonnote_insn.
11442 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11444 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11446 2009-07-25 Martin Jambor <mjambor@suse.cz>
11448 * c-common.c (c_common_attribute_table): New element for noclone.
11449 (handle_noclone_attribute): New function. Forward-declare.
11450 * tree-inline.c (tree_versionable_function_p): Check for noclone
11452 * doc/extend.texi (Labels as Values): Document need for noclone.
11453 (Function Attributes): Document noclone attribute.
11455 2009-07-25 Jakub Jelinek <jakub@redhat.com>
11457 PR rtl-optimization/34999
11458 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11459 and dw_fde_switched_cold_to_hot fields.
11460 (output_cfi_p): New function.
11461 (output_call_frame_info): If fde->dw_fde_switched_sections,
11462 output 2 FDEs instead of one with corrupted header.
11463 (dwarf2out_do_cfi_startproc): New function.
11464 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
11465 and fde->dw_fde_switched_cold_to_hot.
11466 (dwarf2out_switch_text_section): Compute
11467 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
11468 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11469 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11470 Otherwise, compute fde->dw_fde_switch_cfi.
11472 2009-07-24 Cary Coutant <ccoutant@google.com>
11474 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11476 2009-07-24 Cary Coutant <ccoutant@google.com>
11478 * cfghooks.c (split_block): Copy discriminator to new block.
11479 * tree-cfg.c (assign_discriminator): Check location of last
11480 instruction in block as well as first.
11482 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
11484 * config/i386/linux.c: Use fputs or putc instead of fprintf
11486 * config/i386/gas.h: Ditto.
11487 * config/i386/x86-64.h: Ditto.
11488 * config/i386/att.h: Ditto.
11490 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11492 * expmed.c (emit_store_flag): Use a recursive call to optimize the
11495 2009-07-24 Martin Jambor <mjambor@suse.cz>
11497 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11498 (ipa_push_func_to_list_1): Declare.
11499 (ipa_push_func_to_list): New function.
11501 * ipa-prop.c (ipa_push_func_to_list_1): New function.
11502 (ipa_init_func_list): Call ipa_push_func_to_list_1.
11503 (ipa_push_func_to_list): Removed.
11504 (ipa_pop_func_from_list): Clear node_enqueued flag.
11506 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
11508 * config/s390/s390.c (override_options): Default
11509 max-unrolled-insns to 100 for z10 tuning.
11511 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
11513 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11514 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11515 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11516 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11517 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11518 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11519 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11521 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
11523 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11524 use default set in mingw32.h header.
11525 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11526 64-bit /mingw/include path.
11527 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11530 2009-07-23 Neil Vachharajani <nvachhar@google.com>
11532 PR rtl-optimization/40209
11533 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11535 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
11537 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
11538 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11539 with the rest of string where appropriate. Use fputs or putc
11540 instead of fprintf where appropriate.
11542 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11543 Pat Haugen <pthaugen@us.ibm.com>
11544 Revital Eres <ERES@il.ibm.com>
11546 * config/rs6000/vector.md: New file. Move most of the vector
11547 expander support here from altivec.md to allow for the VSX vector
11548 unit in the future. Add support for secondary_reload patterns.
11549 Rewrite the patterns for vector comparison, and vector comparison
11550 predicate instructions so that the RTL expresses the desired
11551 behavior, instead of using unspec.
11553 * config/rs6000/constraints.md ("f" constraint): Use
11554 rs6000_constraints to hold the precalculated register class.
11555 ("d" constraint): Ditto.
11556 ("wd" constraint): New constraint for VSX.
11557 ("wf" constraint): Ditto.
11558 ("ws" constraint): Ditto.
11559 ("wa" constraint): Ditto.
11560 ("wZ" constraint): Ditto.
11561 ("j" constraint): Ditto.
11563 * config/rs6000/predicates.md (vsx_register_operand): New
11565 (vfloat_operand): New predicate for vector.md.
11566 (vint_operand): Ditto.
11567 (vlogical_operand): Ditto.
11568 (easy_fp_constant): If VSX, 0.0 is an easy constant.
11569 (easy_vector_constant): Add VSX support.
11570 (altivec_indexed_or_indirect_operand): New predicate for
11571 recognizing Altivec style memory references with AND -16.
11573 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11574 for vector secondary reload support.
11575 (rs6000_vector_reg_class): Delete, replacing it with
11576 rs6000_constraints.
11577 (rs6000_vsx_reg_class): Ditto.
11578 (rs6000_constraints): New array to hold the register classes of
11579 each of the register constraints that can vary at runtime.
11580 (builtin_mode_to_type): New static array for builtin function type
11582 (builtin_hash_table): New static hash table for builtin function
11584 (TARGET_SECONDARY_RELOAD): Define target hook.
11585 (TARGET_IRA_COVER_CLASSES): Ditto.
11586 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11587 registers are 128 bits if VSX memory reference instructions are used.
11588 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11589 unit is being used.
11590 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11591 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11592 Print several of the scheduling related parameters.
11593 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11594 rs6000_constraints instead of rs6000_vector_reg_class. Move
11595 -mdebug=reg code to rs6000_debug_reg_global. Add support for
11596 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
11597 Altivec. Add VSX support. Setup for secondary reload support on
11598 Altivec/VSX registers.
11599 (rs6000_override_options): Make power7 set the scheduling groups
11600 like the power5. Add support for new debug switches to override
11601 the scheduling defaults. Temporarily disable -mcpu=power7 from
11602 setting -mvsx. Add support for debug switches -malways-hint,
11603 -msched-groups, and -malign-branch-targets.
11604 (rs6000_buitlin_conversion): Add support for returning unsigned
11605 vector conversion functions to fix regressions due to stricter
11607 (rs6000_builtin_mul_widen_even): Ditto.
11608 (rs6000_builtin_mul_widen_odd): Ditto.
11609 (rs6000_builtin_vec_perm): Ditto.
11610 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11611 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11612 to zero a register.
11613 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11614 generated upstream.
11615 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
11616 VSX types for bit operations. Changes to accomidate vector.md.
11617 (bdesc_2arg): Ditto.
11618 (bdesc_1arg): Ditto.
11619 (struct builtin_description_predicates): Rewrite predicate
11620 handling so that RTL describes the operation, instead of passing
11621 the instruction to be used as a string argument.
11622 (bdesc_altivec_preds): Ditto.
11623 (altivec_expand_predicate_builtin): Ditto.
11624 (altivec_expand_builtin): Ditto.
11625 (rs6000_expand_ternop_builtin): Use a switch instead of an if
11626 statement for vsldoi support.
11627 (altivec_expand_ld_builtin): Change to use new names from vector.md.
11628 (altivec_expand_st_builtin): Ditto.
11629 (paired_expand_builtin): Whitespace changes.
11630 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
11631 builtin_mode_to_type table for secondary reload. Call
11632 builtin_function_type to build random builtin functions.
11633 (altivec_init_builtins): Change to use builtin_function_type to
11634 create builtin function types dynamically as we need them.
11635 (builtin_hash_function): New support for hashing the tree types
11636 for builtin function as we need it, rather than trying to build
11637 all of the trees that we need. Add initial preliminary VSX support.
11638 (builtin_function_type): Ditto.
11639 (builtin_function_eq): Ditto.
11640 (builtin_hash_struct): Ditto.
11641 (rs6000_init_builtins): Ditto.
11642 (rs6000_common_init_builtins): Ditto.
11643 (altivec_init_builtins): Ditto.
11644 (rs6000_common_init_builtins): Ditto.
11645 (enum reload_reg_type): New enum for simplifing reg classes.
11646 (rs6000_reload_register_type): Simplify register classes into GPR,
11647 Vector, and other registers. Altivec and VSX addresses in reload.
11648 (rs6000_secondary_reload_inner): Ditto.
11649 (rs6000_ira_cover_classes): New target hook, that returns the
11650 appropriate cover classes, based on -mvsx being used or not.
11651 (rs6000_secondary_reload_class): Add VSX support.
11652 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11653 (get_vsel_insn): Ditto.
11654 (rs6000_emit_vector_compare): Rewrite vector conditional support
11655 so that where we can, we use RTL operators, instead of blindly use
11657 (rs6000_emit_vector_select): Ditto.
11658 (rs6000_emit_vector_cond_expr): Ditto.
11659 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
11660 (create_TOC_reference): Add -mdebug=addr support.
11661 (emit_frame_save): VSX loads/stores need register indexed addressing.
11663 * config/rs6000/rs6000.md: Include vector.md.
11665 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11667 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11668 support for V2DI, V2DF in logical, permute, select operations.
11670 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11671 switch for vsx/power7.
11672 (-mvsx-scalar-memory): Ditto.
11673 (-mvsx-align-128): Ditto.
11674 (-mallow-movmisalign): Ditto.
11675 (-mallow-df-permute): Ditto.
11676 (-msched-groups): Ditto.
11677 (-malways-hint): Ditto.
11678 (-malign-branch-targets): Ditto.
11680 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11682 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11683 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11684 (rs6000_vector_reg_class): Delete.
11685 (rs6000_vsx_reg_class): Ditto.
11686 (enum rs6000_reg_class_enum): New enum for the constraints that
11687 vary based on target switches.
11688 (rs6000_constraints): New array to hold the register class for all
11689 of the register constraints that vary based on the switches used.
11690 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11691 (enum rs6000_builtins): Add unsigned varients for the builtin
11692 declarations returned by target hooks for expanding multiplies,
11693 select, and permute operations. Add VSX builtins.
11694 (enum rs6000_builtin_type_index): Add entries for VSX.
11695 (V2DI_type_node): Ditto.
11696 (V2DF_type_node): Ditto.
11697 (unsigned_V2DI_type_node): Ditto.
11698 (bool_long_type_node): Ditto.
11699 (intDI_type_internal_node): Ditto.
11700 (uintDI_type_internal_node): Ditto.
11701 (double_type_internal_node): Ditto.
11703 * config/rs6000/altivec.md (whole file): Move all expanders to
11704 vector.md from altivec.md. Rename insn matching functions to be
11706 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11707 (altivec_vcmp*): Ditto.
11708 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11709 (VM): New iterator for moves that includes the VSX types.
11710 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
11711 (altivec_vperm_<mode>_uns): New, for unsigned types.
11712 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
11713 (altivec_eq<mode>): Ditto.
11714 (altivec_gt<mode>): Ditto.
11715 (altivec_gtu<mode>): Ditto.
11716 (altivec_eqv4sf): Ditto.
11717 (altivec_gev4sf): Ditto.
11718 (altivec_gtv4sf): Ditto.
11719 (altivec_vcmpbfp_p): Ditto.
11721 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
11723 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
11726 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
11729 * config/i386/i386.c (output_387_ffreep): Rewrite to use
11730 ASM_SHORT instead of .word.
11731 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11732 instead of .word in asm template.
11734 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
11737 * ira-lives.c (bb_has_abnormal_call_pred): New function.
11738 (process_bb_node_lives): Use it.
11740 * ira.c (setup_cover_and_important_classes): Don't setup
11741 ira_important_class_nums. Add cover classes to the end of
11743 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11745 (find_reg_class_closure): Use reorder_important_classes.
11747 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11749 * config/i386/i386.c (i386_ira_cover_classes): New function.
11750 (TARGET_IRA_COVER_CLASSES): Redefine.
11752 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11753 importance of order of cover classes in the array.
11755 2009-07-22 Diego Novillo <dnovillo@google.com>
11757 * tree-pass.h (TDF_EH): Define.
11758 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11759 contains TDF_EH, print the EH region number holding GS.
11760 * tree-dump.c (dump_options): Add "eh".
11761 * doc/invoke.texi: Document it.
11763 2009-07-22 Doug Kwan <dougkwan@google.com>
11765 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11767 2009-07-22 Michael Matz <matz@suse.de>
11769 PR tree-optimization/35229
11770 PR tree-optimization/39300
11772 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11773 (inhibit_phi_insertion): New function.
11774 (insert_into_preds_of_block): Call it for REFERENCEs.
11775 (init_pre): Initialize and finalize scalar evolutions.
11776 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11778 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
11780 * config/i386/predicates.md (zero_extended_scalar_load_operand):
11781 Use CONST_VECTOR_NUNITS to determine number of elements.
11783 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
11785 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11786 (U, W): Constraints are now deprecated and will be removed if we
11787 run out of letters.
11788 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11790 ("prefetch"): Add the stcmh instruction for prefetching.
11791 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11793 (s390_short_displacement): Return always true if compiling for
11794 machines not providing the long displacement facility.
11795 (s390_mem_constraint): Support the new constraint letter Z.
11796 (s390_check_qrst_address): New function.
11798 2009-07-21 DJ Delorie <dj@redhat.com>
11800 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11803 2009-07-21 Jason Merrill <jason@redhat.com>
11805 * c-common.c (max_tinst_depth): Increase default to 1024.
11807 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
11809 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11810 (vec_unpacku_float_lo_v4si): Ditto.
11812 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
11815 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11816 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11817 (builtin_description): Add __builtin_ia32_cvtudq2ps.
11818 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11820 2009-07-21 Jakub Jelinek <jakub@redhat.com>
11822 PR tree-optimization/40813
11823 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11826 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
11828 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11829 with a NOP_EXPR if needed.
11831 2009-07-21 Paul Brook <paul@codesourcery.com>
11833 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11834 Terminate debug dump with newline.
11836 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11838 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11839 Cast "1" to unsigned HOST_WIDE_INT.
11840 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
11841 deposit length to the maximum length - lsb. Extend length if
11842 HOST_BITS_PER_WIDE_INT is 32.
11844 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
11846 * cgraph.h (constant_pool_htab): New function.
11847 (constant_descriptor_tree): Move from varasm.c.
11848 * varasm.c (constant_pool_htab): New function.
11849 (constant_descriptor_tree): Move to cgraph.h.
11851 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
11853 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
11855 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
11857 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11860 2009-07-20 Xinliang David Li <davidxl@google.com>
11862 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11864 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
11866 * config/mips/mips.md (move_type): Add arith.
11867 (type): Handle arith.
11868 (zero_extendsidi2): Rename this into ...
11869 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
11870 (zero_extendsidi2): New expander.
11871 (*zero_extendsidi2_dext): New pattern.
11873 2009-07-20 Nick Clifton <nickc@redhat.com>
11875 * config.gcc (mips64-*-*): Add definition of tm_defines in order
11876 to set MIPS_ABI_DEFAULT.
11877 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11879 2009-07-20 Jakub Jelinek <jakub@redhat.com>
11881 * tree-object-size.c (addr_object_size): Handle unions with
11882 array in it as last field of structs in __bos (, 1) as __bos (, 0).
11884 PR tree-optimization/40792
11885 * tree.c (build_function_type_skip_args): Remove bogus assert.
11887 2009-07-20 Jan Hubicka <jh@suse.cz>
11888 Martin Jambor <mjambor@suse.cz>
11890 * cgraph.h (combined_args_to_skip): New field.
11891 * cgraph.c (cgraph_create_virtual_clone): Properly handle
11892 combined_args_to_skip and args_to_skip.
11893 * tree-inline.c (update_clone_info): New function.
11894 (tree_function_versioning): Call update_clone_info.
11895 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
11897 (cgraph_materialize_all_clones): More extensive dumping, working
11898 with combined_args_to_skip rather than args_to_skip.
11900 2009-07-20 Ira Rosen <irar@il.ibm.com>
11902 * tree-vectorizer.h (vectorizable_condition): Add parameters.
11903 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11904 (get_initial_def_for_reduction): Likewise.
11905 (vectorizable_reduction): Skip the check of first operand in case
11906 of COND_EXPR. Add check that it is outer loop vectorization if
11907 nested cycle was detected. Call vectorizable_condition() for
11908 COND_EXPR. If reduction epilogue cannot be created do not fail for
11909 nested cycles (if it is not double reduction). Assert that there
11910 is only one type in the loop in case of COND_EXPR. Call
11911 vectorizable_condition() to vectorize COND_EXPR.
11912 * tree-vect-stmts.c (vectorizable_condition): Update comment.
11913 Add parameters. Allow nested cycles if called from
11914 vectorizable_reduction(). Use reduction vector variable if provided.
11915 (vect_analyze_stmt): Call vectorizable_reduction() before
11916 vectorizable_condition().
11917 (vect_transform_stmt): Update call to vectorizable_condition().
11919 2009-07-20 Christian Bruel <christian.bruel@st.com>
11921 * config/sh/sh.opt (-mfmovd): Resurrect and document.
11922 * doc/invoke.texi (-mfmovd): Likewise.
11923 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
11925 2009-07-20 Jan Hubicka <jh@suse.cz>
11927 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11928 when handling SSA name.
11930 2009-07-19 Jan Hubicka <jh@suse.cz>
11932 PR tree-optimization/40676
11933 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11934 virtual PHIs in empty BBs.
11936 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11938 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11939 re-expanded the compound use gen_lowpart instead to convert to the
11942 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11944 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11945 OUTER_CONST arguments.
11946 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11947 the new wider mode will be masked off.
11948 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11950 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11952 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11953 high-order bits are zero.
11955 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11957 * combine.c (simplify_shift_const_1): Split code to determine
11958 shift_mode into ...
11959 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
11960 new bits shifted in are identical to the old sign bit.
11962 2009-07-18 Richard Guenther <rguenther@suse.de>
11965 * gimplify.c (gimplify_call_expr): Reject code using results from
11966 functions returning void.
11968 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11970 * doc/md.texi: Document the new PowerPC "es" constraint.
11971 Document that "m" can include automodified addresses on this target,
11972 and explain how %U must be used. Extend the "Q" and "Z" documentation
11973 to suggest "es" as well as "m".
11974 * config/rs6000/constraints.md (es): New memory constraint.
11975 (Q, Z): Update strings to match new documentation.
11977 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11979 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11980 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11981 * config/rs6000/predicates.md (volatile_mem_operand): Use
11982 offsettable_nonstrict_memref_p.
11983 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11984 (*floatunssidf2_internal): Likewise.
11985 (*fix_truncdfsi2_internal): Likewise.
11986 (*fix_trunctfsi2_internal): Likewise.
11988 2009-07-17 Anatoly Sokolov <aesok@post.ru>
11990 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11991 atmega32u2 devices.
11992 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11994 2009-07-17 Richard Guenther <rguenther@suse.de>
11997 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11998 (pass_warn_unused_result): Likewise.
11999 (TODO_set_props): Remove.
12000 * omp-low.c (diagnose_omp_structured_block_errors): Change to
12002 (pass_diagnose_omp_blocks): Define.
12003 * c-decl.c (pop_file_scope): Do not finalize the CU here.
12004 (c_gimple_diagnostics_recursively): Remove.
12005 (finish_function): Do not call it.
12006 (c_write_global_declarations): Continue after errors.
12007 Finalize the CU here.
12008 * c-gimplify.c (c_genericize): Do not gimplify here.
12009 * c-common.c (c_warn_unused_result): Move ...
12010 * tree-cfg.c (do_warn_unused_result): ... here.
12011 (run_warn_unused_result): New function.
12012 (gate_warn_unused_result): New function.
12013 (pass_warn_unused_result): New pass.
12014 * c-common.h (c_warn_unused_result): Remove.
12015 * flags.h (flag_warn_unused_result): Declare.
12016 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
12017 * opts.c (flag_warn_unused_result): Initialize to false.
12018 * toplev.c (compile_file): Add comment.
12019 * omp-low.c (create_omp_child_function): Do not register
12020 the function with the frontend.
12021 (diagnose_omp_structured_block_errors): Prepare to be
12022 called as optimization pass.
12023 (gate_diagnose_omp_blocks): New function.
12024 (pass_diagnose_omp_blocks): New pass.
12025 * cgraph.h (cgraph_optimize): Remove.
12026 (cgraph_analyze_function): Likewise.
12027 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
12028 * cgraphunit.c (cgraph_lower_function): Lower nested functions
12029 before their parents here.
12030 (cgraph_finalize_function): Not here.
12031 (cgraph_analyze_function): Gimplify functions here.
12032 (cgraph_finalize_compilation_unit): Continue after errors.
12033 Optimize the callgraph from here.
12034 (cgraph_optimize): Make static.
12035 * langhooks.c (write_global_declarations): Finalize the CU.
12036 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
12037 (gimplify_function_tree): Assert we gimplify only once.
12038 Set PROP_gimple_any property.
12039 * tree-nested.c (gimplify_all_functions): New function.
12040 (lower_nested_functions): Gimplify all nested functions.
12041 * gimple.h (diagnose_omp_structured_block_errors): Remove.
12042 * passes.c (init_optimization_passes): Add pass_warn_unused_result
12043 and pass_diagnose_omp_blocks after gimplification. Do not
12044 set TODO_set_props on all_lowering_passes.
12045 (execute_one_pass): Do not handle TODO_set_props.
12046 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
12047 (gimplify.o): Add tree-pass.h dependency.
12048 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
12049 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
12050 (unsave_r): Likewise.
12051 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
12052 temporary variable.
12054 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
12056 * doc/service.texi (Service): Restore previously removed link,
12057 which isn't broken after all.
12059 2009-07-17 Richard Guenther <rguenther@suse.de>
12061 PR tree-optimization/40321
12062 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
12063 PHI nodes to the maximal set.
12064 (make_values_for_phi): Add PHI arguments to the maximal set.
12065 (execute_pre): Dump PHI_GEN and the maximal set.
12067 2009-07-17 Jakub Jelinek <jakub@redhat.com>
12070 * gimplify.c (gimplify_conversion): Don't change non-conversions into
12073 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
12075 * doc/extend.texi (Nested Functions): Replace broken link with
12077 * doc/service.texi (Service): Remove broken link.
12079 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
12082 * builtins.c (expand_builtin_memcmp): Use loc instead of
12083 EXPR_LOCATION (exp).
12084 (expand_builtin_strncmp): Likewise.
12086 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
12087 Manuel López-Ibáñez <manu@gcc.gnu.org>
12090 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
12091 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
12092 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
12093 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
12094 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
12095 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
12096 tree-inline.c, c-common.c, c-common.h, gimple.c,
12097 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
12098 convert.c: Add location argument to fold_{unary,binary,ternary},
12099 fold_build[123], build_call_expr, build_size_arg,
12100 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
12101 fold_build1_initializer, fold_build2_initializer,
12102 fold_build3_initializer, fold_build_call_array,
12103 fold_build_call_array_initializer, fold_single_bit_test,
12104 omit_one_operand, omit_two_operands, invert_truthvalue,
12105 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
12106 combine_comparisons, fold_builtin_*, fold_call_expr,
12107 build_range_check, maybe_fold_offset_to_address, round_up,
12110 2009-07-16 Jason Merrill <jason@redhat.com>
12113 * c-common.c (c_common_reswords): Add __is_standard_layout
12115 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
12116 * doc/implement-cxx.texi: New.
12117 * doc/gcc.texi: Include it.
12119 2009-07-16 DJ Delorie <dj@redhat.com>
12121 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12122 compares that may be indirectly affected by previous instructions.
12124 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12126 * builtins.c (do_mpc_arg2): New.
12127 (fold_builtin_2): Fold builtin cpow.
12128 * real.h (HAVE_mpc_pow): New.
12130 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
12132 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12133 comparison to skip unprofitable schedule
12135 2009-07-16 Simon Baldwin <simonb@google.com>
12137 * gcc.c (option_map): New flag -no-canonical-prefixes.
12138 * (display_help): Print help text for new flag.
12139 * (process_command): Move options translation and language specifics
12140 and handle new flag early. Use it to set a function pointer to a
12141 prefix builder. Replace make_relative_prefix calls with calls to
12142 the function pointed to. Ignore new flag in regular options handling.
12143 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12145 2009-07-15 DJ Delorie <dj@redhat.com>
12147 * config/mep/mep.md (sibcall_internal): Change register to avoid
12148 argument registers.
12149 (sibcall_value_internal): Likewise.
12151 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
12153 PR rtl-optimization/40710
12154 * resource.c (mark_target_live_regs): Reset DF problem to LR.
12156 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
12158 * config/mips/mips.md (*extenddi_truncate<mode>,
12159 *extendsi_truncate<mode>): Change type attribute to move_type
12160 with shift_shift. Split out code handling exts from here ...
12161 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12163 (*extendhi_truncateqi): Change type attribute to move_type with
12164 shift_shift. Split out code handling exts from here ...
12165 (*extendhi_truncateqi_exts): ... to this new pattern.
12167 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
12169 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12170 instead of "and" with inverted sign bit mask value. Use
12171 "nonimmediate_operand" for operand 1 and operand 2 predicate.
12172 Allocate registers only for operand 4 and operand 5.
12174 2009-07-15 Jakub Jelinek <jakub@redhat.com>
12176 PR middle-end/40747
12177 * fold-const.c (fold_cond_expr_with_comparison): When folding
12178 < and <= to MIN, make sure the MIN uses the same type as the
12179 comparison's operands.
12181 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
12183 * arm.md (ior_xor): New code iterator.
12184 (split for ior/xor with shift and zero-extend): New split pattern.
12185 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12187 2009-07-15 Richard Guenther <rguenther@suse.de>
12189 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12192 2009-07-15 Richard Guenther <rguenther@suse.de>
12194 PR middle-end/40753
12195 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12197 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12199 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12200 handle 2.6.30 kernel.
12202 2009-07-15 DJ Delorie <dj@redhat.com>
12204 * config/mep/mep.md (sibcall_internal): Change register to allow
12205 for 24-bit addresses.
12206 (sibcall_value_internal): Likewise.
12208 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
12210 * doc/invoke.texi: Added descriptions of the scheduling heuristics
12211 that are enabled/disabled by the flags introduced by a previous patch.
12213 2009-07-14 DJ Delorie <dj@redhat.com>
12215 * config/mep/mep.md (sibcall_internal): Include non-toggling
12217 (sibcall_value_internal): Likewise.
12219 2009-07-14 Taras Glek <tglek@mozilla.com>
12220 Rafael Espindola <espindola@google.com>
12222 * doc/sourcebuild.texi: Document install-plugin target.
12223 * configure.ac: Added install-plugin target to language makefiles.
12224 * configure: Regenerate.
12225 * Makefile.in (install-plugin): Install more headers,
12226 depend on lang.install-plugin.
12228 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12230 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12233 2009-07-14 DJ Delorie <dj@redhat.com>
12235 * config/mep/mep.c (mep_vliw_jmp_match): New function.
12236 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12237 * config/mep/mep.md (sibcall_internal): Change test from
12238 mep_vliw_mode_match to mep_vliw_jmp_match.
12239 (sibcall_value_internal): Likewise.
12241 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
12243 * config/i386/sse.md (copysign<mode>3): New expander.
12244 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12245 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12246 Use ix86_build_const_vector.
12247 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12248 IX86_BUILTIN_CPYSGNPD.
12249 (builtin_description): Add __builtin_ia32_copysignps and
12250 __builtin_ia32_copysignpd.
12251 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12252 and BUILT_IN_COPYSIGNF.
12254 2009-07-13 Jason Merrill <jason@redhat.com>
12256 * builtins.c (can_trust_pointer_alignment): New fn.
12257 (get_pointer_alignment): Factor it out from here.
12258 * tree.h: Declare it.
12260 2009-07-14 David Edelsohn <edelsohn@gnu.org>
12262 * config/rs6000/predicates.md (offsettable_mem_operand): Test
12265 2009-07-14 Dodji Seketeli <dodji@redhat.com>
12269 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12271 2009-07-14 Richard Guenther <rguenther@suse.de>
12272 Andrey Belevantsev <abel@ispras.ru>
12274 PR middle-end/40745
12275 * cfgexpand.c (partition_stack_vars): Do not bother to update
12276 alias information when not optimizing.
12278 2009-07-14 Richard Guenther <rguenther@suse.de>
12279 Andrey Belevantsev <abel@ispras.ru>
12281 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12282 (pt_solution_set): Likewise.
12283 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12284 * tree-ssa-structalias.c (pt_solution_set): New function.
12285 * final.c (rest_of_clean_state): Free SSA data structures.
12286 * print-rtl.c (print_decl_name): Remove.
12287 (print_mem_expr): Implement in terms of print_generic_expr.
12288 * alias.c (ao_ref_from_mem): New function.
12289 (rtx_refs_may_alias_p): Likewise.
12290 (true_dependence): Query alias-export info.
12291 (canon_true_dependence): Likewise.
12292 (write_dependence_p): Likewise.
12293 * tree-dfa.c (get_ref_base_and_extent): For void types leave
12295 * emit-rtl.c (component_ref_for_mem_expr): Remove.
12296 (mem_expr_equal_p): Use operand_equal_p.
12297 (set_mem_attributes_minus_bitpos): Do not use
12298 component_ref_for_mem_expr.
12299 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12300 (update_alias_info_with_stack_vars): Likewise.
12301 (partition_stack_vars): Call update_alias_info_with_stack_vars.
12302 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12303 explicitly nor clear stmt operands.
12304 Free the decl-to-pointer map.
12305 * tree-optimize.c (execute_free_datastructures): Do not free
12306 SSA data structures here.
12307 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12308 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12309 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12311 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12313 2009-07-13 DJ Delorie <dj@redhat.com>
12315 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12316 unrolling at the right iteration count.
12318 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12321 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
12323 * haifa-sched.c (rank_for_schedule): Introduced flags to
12324 enable/disable individual scheduling heuristics.
12325 * common.opt: Introduced flags to enable/disable individual
12326 heuristics in the scheduler.
12327 * doc/invoke.texi: Introduced flags to enable/disable individual
12328 heuristics in the scheduler.
12330 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
12332 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12333 config/i386/mingw-tls.c.
12334 * config/i386/mingw-tls.c: Removed.
12336 2009-07-13 Ira Rosen <irar@il.ibm.com>
12338 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12339 checks access only relevant statements.
12340 (vectorizable_reduction): Likewise.
12342 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
12344 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12345 just for 32-bit case.
12347 2009-07-12 Jan Hubicka <jh@suse.cz>
12349 PR tree-optimization/40585
12350 * except.c (expand_resx_expr): When there already is resume
12351 instruction, produce linked list.
12352 (build_post_landing_pads): Assert that resume is empty.
12353 (connect_post_landing_pads): Handle resume lists.
12354 (dump_eh_tree): Dump resume list.
12356 2009-07-12 Ira Rosen <irar@il.ibm.com>
12358 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12359 with additional argument.
12360 * tree-vectorizer.h (enum vect_def_type): Add
12361 vect_double_reduction_def.
12362 (vect_is_simple_reduction): Add argument.
12363 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12365 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12366 vect_is_simple_reduction with additional argument.
12367 (vect_analyze_loop_operations): Handle exit phi nodes in case of
12369 (reduction_code_for_scalar_code): Handle additional codes by
12370 returning ERROR_MARK for them. Fix comment and indentation.
12371 (vect_is_simple_reduction): Fix comment, add argument to specify
12372 double reduction. Detect double reduction.
12373 (get_initial_def_for_induction): Fix indentation.
12374 (get_initial_def_for_reduction): Fix comment and indentation.
12375 Handle double reduction. Create initial definitions that do not
12376 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12377 (vect_create_epilog_for_reduction): Fix comment, add argument to
12378 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12379 epilogue result extraction. Create double reduction phi node and
12380 replace relevant uses.
12381 (vectorizable_reduction): Call vect_is_simple_reduction with
12382 additional argument. Fix indentation. Update epilogue code treatment
12383 according to the changes in reduction_code_for_scalar_code. Check
12384 for double reduction. Call vect_create_epilog_for_reduction with
12385 additional argument.
12386 * tree-vect-stmts.c (process_use): Handle double reduction, update
12388 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12389 (vect_get_vec_def_for_operand): Likewise.
12391 2009-07-12 Danny Smith <dansmister@gmail.com>
12393 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12394 dllexport if !TREE_PUBLIC.
12395 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12397 2009-07-11 Anatoly Sokolov <aesok@post.ru>
12399 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12400 (avr_extra_arch_macro) Remove declatation.
12401 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12402 (avr_extra_arch_macro) Declare as static.
12403 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12405 2009-07-11 Jan Hubicka <jh@suse.cz>
12407 PR middle-end/48388
12408 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12410 2009-07-11 Jakub Jelinek <jakub@redhat.com>
12413 * dwarf2out.c (dw_fde_struct): Add in_std_section and
12414 cold_in_std_section bits.
12415 (dwarf2out_begin_prologue): Initialize them.
12416 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12417 if already covered by text_section or cold_text_section range.
12419 PR rtl-optimization/40667
12420 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12421 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12422 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12423 * config/i386/i386.c (ix86_minimum_alignment): New function.
12424 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12425 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12426 * emit-rtl.c (gen_reg_rtx): Likewise.
12427 * function.c (assign_parms): Likewise. If nominal_type needs
12428 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12429 rather than passed_type's alignment.
12432 * function.c (assign_parm_setup_stack): Adjust
12433 MEM_OFFSET (data->stack_parm) if promoted_mode is different
12434 from nominal_mode on big endian.
12436 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
12438 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12440 2009-07-10 DJ Delorie <dj@redhat.com>
12442 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12444 2009-07-10 Mark Mitchell <mark@codesourcery.com>
12446 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12448 (thumb2_cbnz): Likewise.
12450 2009-07-10 David Daney <ddaney@caviumnetworks.com>
12453 * config.gcc (supported_defaults): Add synci.
12454 (with_synci): Add validation.
12455 (all_defaults): Add synci.
12456 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12459 * config/mips/mips.opt (msynci): New option.
12460 * config/mips/mips.c (mips_override_options): Warn on use of
12461 -msynci for targets that do now support it.
12462 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12464 * gcc/doc/invoke.texi (-msynci): Document the new option.
12465 * doc/install.texi (--with-synci): Document the new option.
12467 2009-07-10 Richard Guenther <rguenther@suse.de>
12469 PR tree-optimization/40496
12470 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12471 the PHI result with a compatible type.
12473 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
12477 * c.opt (Wunused-result): New.
12478 * doc/invoke.texi: Document it.
12479 * c-common.c (c_warn_unused_result): Use it.
12481 2009-07-09 DJ Delorie <dj@redhat.com>
12483 * targhooks.c (default_target_can_inline_p): Rename from
12484 default_target_option_can_inline_p.
12485 * targhooks.h (default_target_can_inline_p): Likewise.
12486 * target-def.h (TARGET_CAN_INLINE_P): Rename from
12487 TARGET_OPTION_CAN_INLINE_P.
12488 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12489 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12490 (mep_target_can_inline_p): Rename from
12491 mep_target_option_can_inline_p.
12494 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12495 registers used to pass vectors.
12497 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12499 2009-07-09 Tom Tromey <tromey@redhat.com>
12501 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12502 * config/mmix/mmix.c: Include dwarf2.h.
12503 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12504 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12505 * config/sh/sh.c: Include dwarf2.h.
12506 * config/i386/i386.c: Include dwarf2.h.
12507 * Makefile.in (DWARF2_H): Remove 'elf'.
12508 * except.c: Include dwarf2.h.
12509 * unwind-dw2.c: Include dwarf2.h.
12510 * dwarf2out.c: Include dwarf2.h.
12511 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12512 * unwind-dw2-fde.c: Include dwarf2.h.
12513 * dwarf2asm.c: Include dwarf2.h.
12515 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12517 * haifa-sched.c (insn_finishes_cycle_p): New static function.
12518 (max_issue): Use it.
12519 * sched-int.h (struct sched_info: insn_finishes_block_p): New
12521 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12522 (region_sched_info): Update.
12523 * sched-ebb.c (ebb_sched_info): Update.
12524 * modulo-sched.c (sms_sched_info): Update.
12525 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12527 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12529 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12531 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
12533 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12535 2009-07-09 Jakub Jelinek <jakub@redhat.com>
12537 PR middle-end/40692
12538 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12539 arg1 with arg01 if arg1 is already INTEGER_CST.
12541 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12543 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12544 Transform (and (truncate)) into (truncate (and)).
12546 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12548 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12549 creating LHS paradoxical subregs. Fix surrounding returns to
12550 use NULL_RTX rather than 0.
12552 2009-07-08 DJ Delorie <dj@redhat.com>
12554 * config/mep/mep.c (mep_option_can_inline_p): New.
12555 (TARGET_OPTION_CAN_INLINE_P): Define.
12557 2009-07-08 Mark Wielaard <mjw@redhat.com>
12560 * dwarf2out.c (add_data_member_location_attribute): When we have
12561 only a constant offset don't emit a new location description using
12562 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12565 2009-07-08 Richard Henderson <rth@redhat.com>
12568 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12569 (enum reg_class): Add CLOBBERED_REGS.
12570 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12571 * config/i386/i386.c (ix86_conditional_register_usage): Moved
12572 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12573 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
12574 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
12575 force 64-bit sibcalls into R11.
12576 * config/i386/constraints.md (U): New constraint.
12577 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12578 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12579 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12581 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
12583 * basic-block.h (dump_regset, debug_regset): Remove duplicate
12585 * c-objc-common.h (c_initialize_diagnostics): Ditto.
12586 * ebitmap.h (dump_ebitmap): Ditto.
12587 * optabs.h (optab_libfunc): Ditto.
12588 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12589 * tree-flow.h (vect_can_force_dr_alignment_p,
12590 get_vectype_for_scalar_type): Ditto.
12591 (vectorize_loops): Move prototype to ...
12592 * tree-vectorizer.h: ... here. Also, adjust comment.
12593 (vect_set_verbosity_level): Remove duplicate prototype.
12594 * tree-ssa-loop.c: Include tree-vectorizer.h.
12595 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12597 2009-07-08 Nick Clifton <nickc@redhat.com>
12599 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12602 2009-07-08 DJ Delorie <dj@redhat.com>
12604 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12605 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12606 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
12608 * config/mep/intrinsics.md: Regenerated.
12609 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12610 registers when asm() or calls are detected.
12612 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12615 * gimplify.c (gimplify_expr): Propagate no_warning flag when
12617 * gimple (gimple_build_call_from_tree): Likewise.
12618 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12619 no_warning flag before warning.
12621 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12623 * tree.c (set_expr_locus): Remove.
12624 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12625 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
12627 * gimplify.c (internal_get_tmp_var): Likewise.
12628 (gimplify_call_expr): Likewise.
12629 (gimplify_one_sizepos): Likewise.
12631 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
12634 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12635 to variables for debugging purposes.
12637 2009-06-23 Mark Loeser <mark@halcy0n.com>
12640 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12642 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12644 * pretty-print.c (pp_base_format): Remove %J.
12645 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12646 gcc_cxxdiag_char_table): Likewise.
12647 (init_dynamic_diag_info): Likewise.
12649 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12651 * pretty-print.c (pp_base_format): Remove %H.
12652 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12653 gcc_cxxdiag_char_table): Likewise.
12654 (init_dynamic_diag_info): Likewise.
12655 * config/mep/mep.c (mep_select_section): Likewise.
12657 2009-07-07 Duncan Sands <baldrick@free.fr>
12659 * final.c (pass_clean_state): Give the pass a name.
12660 * passes.c (pass_rest_of_compilation): Likewise.
12661 * tree-optimize.c (pass_all_optimizations): Likewise.
12663 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
12665 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12666 an extra 'decl' for error_at.
12668 2009-07-07 Jakub Jelinek <jakub@redhat.com>
12670 PR middle-end/40669
12671 * tree-tailcall.c (adjust_return_value_with_ops,
12672 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12673 if it has complex or vector type.
12675 2009-07-07 Olivier Hainque <hainque@adacore.com>
12677 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12680 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
12682 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12684 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12686 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
12687 * c-decl.c: Likewise.
12688 * function.c: Likewise.
12689 * varasm.c: Likewise.
12690 * tree-ssa.c: Likewise.
12691 * c-common.c: Likewise.
12692 * tree-cfg.c: Likewise.
12693 * config/spu/spu.c: Likewise.
12694 * config/ia64/ia64.c: Likewise.
12695 * config/v850/v850.c: Likewise.
12697 2009-07-06 DJ Delorie <dj@redhat.com>
12699 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12700 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12701 unspecified accesses to control registers.
12702 * config/mep/intrinsics.md: Regenerate.
12703 * config/mep/intrinsics.h: Regenerate.
12704 * config/mep/mep-intrin.h: Regenerate.
12706 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12708 * c-lex.c: Replace %H by an explicit location. Update all calls.
12709 * c-common.c: Likewise.
12710 * c-decl.c: Likewise.
12711 * c-typeck.c: Likewise.
12712 * fold-const.c: Likewise.
12713 * gimplify.c: Likewise.
12714 * stmt.c: Likewise.
12715 * tree-cfg.c: Likewise.
12716 * tree-ssa-loop-niter.c: Likewise.
12717 * tree-vrp.c: Likewise.
12718 * value-prof.c: Likewise.
12720 2009-07-06 Diego Novillo <dnovillo@google.com>
12722 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12723 if it has one. Handle cases where VAR does not have an
12724 annotation or cfun is NULL.
12726 2009-07-06 Diego Novillo <dnovillo@google.com>
12728 * tree.c: Include debug.h.
12729 (initialize_tree_contains_struct): New.
12730 (init_ttree): Call it.
12731 (tree_node_structure_for_code): Factor out of ...
12732 (tree_node_structure): ... here.
12733 * treestruct.def (TS_PHI_NODE): Remove.
12734 (TS_GIMPLE_STATEMENT): Remove.
12736 2009-07-06 Diego Novillo <dnovillo@google.com>
12738 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
12739 (debug_tree_chain): Handle cycles.
12741 2009-07-06 Nick Clifton <nickc@redhat.com>
12742 DJ Delorie <dj@redhat.com>
12744 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12745 __FMOVD_ENABLED__ is defined.
12747 (TARGET_FMOVD): Provide a default definition.
12748 (MASK_FMOVD): Likewise.
12749 (TARGET_CPU_CPP_BUILTINS): Define
12750 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12751 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12752 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
12753 (split for DF load from memory into register): Also handle
12754 MEMs which consist of REG+DISP addressing.
12755 (split for DF store from register to memory): Likewise.
12756 (movsf_ie): Always use single fp_mode.
12757 * config/sh/sh.c (sh_override_options): Do not automatically
12758 enable TARGET_MOVD for the SH2A when supporting doubles - leave
12759 that to the -mfmovd command line switch.
12760 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12761 (fldi_ok): Always allow.
12762 * config/sh/sh.opt (mfmovd): Remove this switch.
12763 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12765 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
12766 Kaz Kojima <kkojima@gcc.gnu.org>
12768 PR rtl-optimization/30807
12769 * postreload.c (reload_combine): For every new use of REG_SUM,
12770 record the use of BASE.
12772 2009-07-06 Jan Hubicka <jh@suse.cz>
12774 * params.def: Revert my accidental commit at 2009-06-30.
12776 2009-07-04 Ian Lance Taylor <iant@google.com>
12779 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12781 (mingw_format_attribute_overrides): Likewise.
12783 2009-07-04 Jakub Jelinek <jakub@redhat.com>
12786 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12787 don't check cfa.reg. Instead of cfa.indirect use
12788 fde && fde->drap_reg != INVALID_REGNUM test.
12790 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
12792 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12794 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
12797 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
12799 2009-07-03 Richard Guenther <rguenther@suse.de>
12801 PR tree-optimization/40640
12802 * tree-switch-conversion.c (build_arrays): Perform arithmetic
12805 2009-07-03 Jan Hubicka <jh@suse.cz>
12807 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12808 for size, reduce amount of inlining.
12810 2009-07-03 Richard Guenther <rguenther@suse.de>
12812 PR middle-end/34163
12813 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12814 if t +- x is known to not overflow and the conversion widens the
12816 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12818 2009-07-03 Jan Hubicka <jh@suse.cz>
12820 * ipa-pure-const.c (analyze): Update loop optimizer init.
12821 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12822 try_remove_empty_loop, remove_empty_loops): Remove.
12823 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12824 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12825 to mark regular loops as neccesary.
12826 (degenerate_phi_p): New function.
12827 (propagate_necessity, remove_dead_phis): Use it.
12828 (forward_edge_to_pdom): Likewise.
12829 (eliminate_unnecessary_stmts): Take care to remove uses of results of
12830 virtual PHI nodes that became unreachable.
12831 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12832 * tree-flow.h (remove_empty_loops): Remove.
12833 * passes.c (init_optimization_passes): Remove.
12835 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
12837 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12838 can_create_pseudo_p.
12839 (*fix_trunc<mode>_i387_1): Ditto.
12840 (*floathi<mode>2_1): Ditto.
12841 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12842 (*fistdi2_1): Ditto.
12843 (*fist<mode>2_1): Ditto.
12844 (frndintxf2_floor): Ditto.
12845 (*fist<mode>2_floor_1): Ditto.
12846 (frndintxf2_ceil): Ditto.
12847 (*fist<mode>2_ceil_1): Ditto.
12848 (frndintxf2_trunc): Ditto.
12849 (frndintxf2_mask_pm): Ditto.
12850 (fxam<mode>2_i387_with_temp): Ditto.
12851 * config/i386/sse.md (mulv16qi3): Ditto.
12852 (*sse2_mulv4si3): Ditto.
12854 (sse4_2_pcmpestr): Ditto.
12855 (sse4_2_pcmpistr): Ditto.
12857 2009-07-03 Jan Hubicka <jh@suse.cz>
12859 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12860 (mark_stmt_necessary): Set it.
12861 (mark_operand_necessary): Set it.
12862 (mark_control_dependent_edges_necessary): Set it.
12863 (mark_virtual_phi_result_for_renaming): New function.
12864 (get_live_post_dom): New function.
12865 (forward_edge_to_pdom): New function.
12866 (remove_dead_stmt): Fix handling of control dependences.
12867 (tree_dce_init): Init new bitmap.
12868 (tree_dce_done): Free it.
12870 2009-07-02 Richard Guenther <rguenther@suse.de>
12873 * tree-ssa-structalias.c (new_var_info): Initialize
12876 2009-07-02 Jan Hubicka <jh@suse.cz>
12878 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12881 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
12883 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12884 instead of recomputing it. Adjust calls.
12885 (emit_store_flag): Adjust recursive calls.
12887 2009-07-02 Richard Guenther <rguenther@suse.de>
12889 * tree-ssa-live.c (remove_unused_locals): Do not remove
12891 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12892 of DECL_EXTERNAL for HEAP variables.
12893 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12894 HEAP variables. Do not adjust RESTRICT vars.
12895 (find_what_var_points_to): Nobody cares if something
12896 points to READONLY.
12898 2009-07-02 Ben Elliston <bje@au.ibm.com>
12900 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12901 pc_low and pc_high declarations to the top of the function.
12903 2009-07-01 DJ Delorie <dj@redhat.com>
12905 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12906 registers as fixed.
12907 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
12908 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12909 unspecified accesses to control registers.
12910 * config/mep/intrinsics.md: Regenerate.
12911 * config/mep/intrinsics.h: Regenerate.
12912 * config/mep/mep-intrin.h: Regenerate.
12914 2009-07-01 Anthony Green <green@moxielogic.com>
12916 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12917 instruction when possible.
12918 (moxie_expand_prologue): Ditto. Also, save an instruction and
12919 some complexity by popping off of $r12 instead of $sp.
12920 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
12923 2009-07-01 Richard Henderson <rth@redhat.com>
12926 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12927 contained no insns, reposition note before last insn.
12929 2009-07-01 Richard Henderson <rth@redhat.com>
12932 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12933 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12935 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12938 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12939 darwin9 for printing reg addresses with %y.
12941 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12943 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
12944 truncation from operands in binary operations.
12946 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12949 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
12950 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12951 subreg of op0 to the original op0.
12953 * expmed.c (store_bit_field_1): Use a temporary as the destination
12954 instead of a paradoxical subreg when we need to truncate the result.
12956 2009-07-01 DJ Delorie <dj@redhat.com>
12958 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12959 names to VLIW variants.
12960 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12961 * config/mep/intrinsics.md: Regenerate.
12962 * config/mep/intrinsics.h: Regenerate.
12963 * config/mep/mep-intrin.h: Regenerate.
12965 2009-07-01 Jakub Jelinek <jakub@redhat.com>
12968 * jump.c (returnjump_p): Revert last patch.
12969 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12971 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12974 * pa.md (casesi32p): Use jump table label to determine the offset
12976 (casesi64p): Likewise.
12978 * pa.c (forward_branch_p): Return bool type. Use instruction
12979 addresses when available. Assert that INSN has a jump label.
12980 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12983 2009-07-01 Richard Guenther <rguenther@suse.de>
12985 PR tree-optimization/19831
12986 * tree-ssa-dce.c (propagate_necessity): Calls to functions
12987 that only act as barriers do not make any previous stores necessary.
12988 * tree-ssa-structalias.c (handle_lhs_call): Delay making
12989 HEAP variables global, do not add a constraint from nonlocal.
12990 (find_func_aliases): Handle escapes through return statements.
12991 (compute_points_to_sets): Make escaped HEAP variables global.
12993 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
12996 * expmed.c (emit_store_flag): Perform a conversion if necessary,
12997 after reducing a DImode cstore to SImode.
12999 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
13001 * expr.c (expand_expr_real_1): Reinstate fallthrough to
13002 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
13004 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
13006 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
13007 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
13009 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
13010 and umod_optab if TARGET_BSD_DIVMOD.
13011 * config/vax/lib1funcs.asm: New file.
13012 * config/vax/t-linux: New file.
13013 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
13015 2009-06-30 Jakub Jelinek <jakub@redhat.com>
13018 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
13019 to type arguments that have void type.
13022 * dwarf2out.c (gen_formal_parameter_die): Call
13023 equate_decl_number_to_die if node is different from origin.
13025 2009-06-30 Anthony Green <green@moxielogic.com>
13027 Clean up moxie port for --enable-build-with-cxx.
13028 * config/moxie/moxie.c (moxie_function_value): First two
13029 parameters are const_tree, not tree.
13030 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
13031 (REG_CLASS_NAMES): Ditto.
13032 (REGNO_REG_CLASS): Ditto.
13033 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
13034 (moxie_function_value): Fix constyness of arguments.
13036 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
13038 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
13039 finalize_size_functions before further processing.
13040 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
13041 (variable_size): Call self_referential_size on size expressions
13042 that contain a PLACEHOLDER_EXPR.
13043 (size_functions): New static variable.
13044 (copy_self_referential_tree_r): New static function.
13045 (self_referential_size): Likewise.
13046 (finalize_size_functions): New global function.
13047 * tree.c: Include tree-inline.h.
13048 (push_without_duplicates): New static function.
13049 (find_placeholder_in_expr): New global function.
13050 (substitute_in_expr) <tcc_declaration>: Return the replacement object
13052 <tcc_expression>: Likewise.
13053 <tcc_vl_exp>: If the replacement object is a constant, try to inline
13054 the call in the expression.
13055 * tree.h (finalize_size_functions): Declare.
13056 (find_placeholder_in_expr): Likewise.
13057 (FIND_PLACEHOLDER_IN_EXPR): New macro.
13058 (substitute_placeholder_in_expr): Update comment.
13059 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
13061 (copy_tree_body_r): Likewise.
13062 (copy_tree_body): New static function.
13063 (maybe_inline_call_in_expr): New global function.
13064 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
13065 (maybe_inline_call_in_expr): Declare.
13066 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
13067 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
13070 2009-06-30 Richard Guenther <rguenther@suse.de>
13072 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
13074 (propagate_necessity): Do not mark reaching defs of stores
13077 2009-06-30 Jan Hubicka <jh@suse.cz>
13079 * cfgloopanal.c (check_irred): Move into ...
13080 (mark_irreducible_loops): ... here; return true if ireducible
13082 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
13083 (analyze_function): Try to prove loop finiteness.
13084 * cfgloop.h (mark_irreducible_loops): Update prototype.
13085 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
13087 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
13089 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
13091 2009-06-30 Ira Rosen <irar@il.ibm.com>
13093 PR tree-optimization/40542
13094 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
13097 2009-06-30 Martin Jambor <mjambor@suse.cz>
13099 PR tree-optimization/40582
13100 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
13101 than useless_type_conversion_p.
13102 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
13105 2009-06-30 Martin Jambor <mjambor@suse.cz>
13107 PR middle-end/40554
13108 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
13110 2009-06-30 Richard Guenther <rguenther@suse.de>
13112 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
13113 use ao_ref references.
13114 (walk_aliased_vdefs): Likewise.
13115 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
13116 * tree-ssa-dce.c (struct ref_data): Remove.
13117 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13118 (mark_aliased_reaching_defs_necessary): Adjust.
13119 (mark_all_reaching_defs_necessary_1): Likewise.
13121 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
13124 * expmed.c (emit_cstore): New name of emit_store_flag_1.
13125 (emit_store_flag_1): Extract from emit_store_flag, adjust
13126 calls to (what now is) emit_cstore.
13127 (emit_store_flag): Call emit_store_flag_1 and also use it
13128 for what used to be recursive calls.
13130 2009-06-30 Wei Guozhi <carrot@google.com>
13133 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13134 if the target bb post dominates from bb.
13135 * config/i386/i386.c (memory_address_length): Check existence of base
13136 register before using it.
13138 2009-06-30 Nick Clifton <nickc@redhat.com>
13139 DJ Delorie <dj@redhat.com>
13141 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13142 __FMOVD_ENABLED__ is defined.
13144 (TARGET_FMOVD): Provide a default definition.
13145 (MASK_FMOVD): Likewise.
13146 (TARGET_CPU_CPP_BUILTINS): Define
13147 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13148 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13149 two fmov instructions depending upon whether TARGET_FMOVD is
13151 (split for DF load from memory into register): Also handle
13152 MEMs which consist of REG+DISP addressing.
13153 (split for DF store from register to memory): Likewise.
13154 * config/sh/sh.opt (mfmovd): Remove this switch.
13155 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13156 * config/sh/sh.c (sh_override_options): Do not automatically
13157 enable TARGET_MOVD for the SH2A when supporting doubles - leave
13158 that to the -mfmovd command line switch.
13160 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13162 (fldi_ok): Always allow.
13163 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13165 2009-06-29 DJ Delorie <dj@redhat.com>
13167 * doc/install.texi (mep-x-elf): Correct chip's full name.
13169 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
13171 * doc/extend.texi: Fix typo.
13173 2009-06-29 Tom Tromey <tromey@redhat.com>
13175 * dwarf2.h: Remove.
13176 * Makefile.in (DWARF2_H): New variable.
13177 (except.o): Use it.
13178 (dwarf2out.o): Likewise.
13179 (dwarf2asm.o): Likewise.
13180 * config/i386/t-i386: Use DWARF2_H.
13181 * except.c: Include elf/dwarf2.h.
13182 * unwind-dw2.c: Include elf/dwarf2.h.
13183 * dwarf2out.c: Include elf/dwarf2.h.
13184 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13185 <dtprel>: New field.
13186 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13187 (size_of_loc_descr): Likewise.
13188 (output_loc_operands_raw): Likewise.
13189 (output_loc_operands): Handle new dtprel field.
13190 (loc_checksum): Update.
13191 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13192 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13193 * unwind-dw2-fde.c: Include elf/dwarf2.h.
13194 * dwarf2asm.c: Include elf/dwarf2.h.
13195 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13196 * config/mmix/mmix.c: Include elf/dwarf2.h.
13197 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13198 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13199 * config/sh/sh.c: Include elf/dwarf2.h.
13200 * config/i386/i386.c: Include elf/dwarf2.h.
13202 2009-06-29 DJ Delorie <dj@redhat.com>
13204 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13206 * doc/extend.texi: Add MeP attributes and pragmas.
13207 * doc/invoke.text: Add MeP Options.
13208 * doc/contrib.texi: Add MeP contribution.
13209 * doc/md.texi: Add MeP constraints.
13210 * doc/install.texi: Add MeP target.
13212 2009-06-30 Anatoly Sokolov <aesok@post.ru>
13214 * target.h (struct gcc_target): Add frame_pointer_required field.
13215 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13216 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13217 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13219 * reload1.c (update_eliminables): (Ditto.).
13220 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13221 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13222 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13224 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13226 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13227 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13228 (arm_frame_pointer_required): New function.
13230 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13231 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13232 (avr_frame_pointer_required_p): Declare as static.
13233 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13235 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13236 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13237 (bfin_frame_pointer_required): Make as static, change return type
13239 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13241 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13242 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13243 (cris_frame_pointer_required): New function.
13245 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13247 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13248 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13249 (fr30_frame_pointer_required): New function.
13251 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13252 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13253 (frv_frame_pointer_required): Make as static, change return type
13255 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13257 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13258 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13259 (ix86_frame_pointer_required): Make as static, change return type to
13261 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13263 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13264 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13266 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13268 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13270 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13272 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13273 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13274 (mips_frame_pointer_required): Make as static.
13275 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13277 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13278 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13279 (mmix_frame_pointer_required): Mew function.
13281 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13282 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13284 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13286 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13288 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13290 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13291 (CAN_ELIMINATE): Redefine.
13292 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13293 (sparc_frame_pointer_required): New function.
13294 (sparc_can_eliminate): New function.
13295 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13297 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13298 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13300 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13301 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13302 (xtensa_frame_pointer_required): Make as static, change return type
13304 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13307 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
13309 * doc/plugins.texi: Document PLUGIN_START_UNIT.
13310 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13311 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13312 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13313 (register_callback): Handle PLUGIN_START_UNIT.
13314 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13316 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
13318 * tree.c (process_call_operands): Propagate TREE_READONLY from the
13320 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13321 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13323 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
13325 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13328 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
13330 * doc/extend.texi (Additional Floating Types): __float128 is also
13331 supported on i386 targets.
13333 2009-06-29 Richard Guenther <rguenther@suse.de>
13335 PR middle-end/14187
13336 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13338 (pt_solutions_same_restrict_base): Declare.
13339 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13341 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13342 (make_constraint_from, make_copy_constraint): Move earlier.
13343 (make_constraint_from_heapvar): New function.
13344 (make_constraint_from_restrict): Likewise.
13345 (handle_lhs_call): Use it.
13346 (find_func_aliases): Use it to track conversions to restrict
13347 qualified pointers.
13348 (struct fieldoff): Add only_restrict_pointers flag.
13349 (push_fields_onto_fieldstack): Initialize it.
13350 (create_variable_info_for): Track global restrict qualified pointers.
13351 (intra_create_variable_infos): Use make_constraint_from_heapvar.
13352 Track restrict qualified pointer arguments.
13353 (set_uids_in_ptset): Use varinfo is_global_var flag.
13354 (find_what_var_points_to): Set the vars_contains_restrict flag.
13355 Always create the points-to solution for sets including restrict tags.
13356 (pt_solutions_same_restrict_base): New function.
13357 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13358 qualified pointers use pt_solutions_same_restrict_base as
13359 additional source for disambiguation.
13361 2009-06-29 Richard Guenther <rguenther@suse.de>
13363 PR middle-end/38212
13364 * alias.c (find_base_decl): Remove.
13365 (get_deref_alias_set_1): Remove restrict handling.
13366 * c-common.c (c_apply_type_quals_to_decl): Do not set
13367 DECL_POINTER_ALIAS_SET.
13368 * gimplify.c (find_single_pointer_decl_1): Remove.
13369 (find_single_pointer_decl): Likewise.
13370 (internal_get_tmp_var): Remove restrict handling.
13371 (gimple_regimplify_operands): Likewise.
13372 * omp-low.c (expand_omp_atomic_pipeline): Do not set
13373 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13374 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13375 * tree.c (restrict_base_for_decl): Remove.
13376 (init_ttree): Do not allocate it.
13377 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
13378 LABEL_DECL_UID for label decls.
13379 (copy_node_stat): Do not copy restrict information.
13380 (decl_restrict_base_lookup): Remove.
13381 (decl_restrict_base_insert): Likewise.
13382 (print_restrict_base_statistics): Likewise.
13383 (dump_tree_statistics): Do not call print_restrict_base_statistics.
13384 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13385 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13386 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13387 (LABEL_DECL_UID): Adjust.
13388 (DECL_BASED_ON_RESTRICT_P): Remove.
13389 (DECL_GET_RESTRICT_BASE): Likewise.
13390 (SET_DECL_RESTRICT_BASE): Likewise.
13391 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13393 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13394 instead of DECL_POINTER_ALIAS_SET.
13395 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13396 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13397 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13399 2009-06-29 Richard Guenther <rguenther@suse.de>
13401 PR tree-optimization/40579
13402 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13403 the IL to simplify has constants that overflowed.
13405 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
13407 PR tree-optimization/40550
13408 * tree-vect-generic.c (expand_vector_operations_1): Compute in
13409 vector_compute_type only when the size of vector_compute_type is
13410 less than the size of type.
13412 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
13414 * fold-const.c (contains_label_1): Fix comments.
13415 (contains_label_p): Do not walk trees multiple time.
13417 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13419 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13420 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13421 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13422 ix86_fp_comparison_operator.
13423 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13424 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13425 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13426 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13427 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13428 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13429 (related splits): Change predicate to ix86_fp_comparison_operator.
13430 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13431 instead of ix86_fp_comparison_codes.
13432 (ix86_trivial_fp_comparison_operator,
13433 ix86_fp_comparison_operator): New.
13434 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13435 (ix86_expand_compare): Eliminate last two parameters.
13436 (ix86_fp_jump_nontrivial_p): Kill.
13437 * config/i386/i386.c (put_condition_code): Eliminate call to
13438 ix86_fp_comparison_codes and subsequent assertion.
13439 (ix86_fp_comparison_codes): Eliminate.
13440 (ix86_fp_swap_condition): New.
13441 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13442 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13443 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13444 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13445 and ix86_fp_swap_condition.
13446 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13447 Use ix86_fp_comparison_strategy.
13448 (ix86_expand_compare): Likewise. Eliminate last two arguments.
13449 (ix86_fp_jump_nontrivial_p): Eliminate.
13450 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
13451 call to ix86_expand_compare.
13452 (ix86_split_fp_branch, ix86_expand_setcc,
13453 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13454 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13456 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13458 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13459 related to jump_clobbers.
13460 * config/arm/arm.md (conds): Remove jump_clob case.
13461 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13462 splits): Change comparison_operator to arm_comparison_operator.
13463 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13466 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13468 * dojump.c (do_compare_rtx_and_jump): Try swapping the
13469 condition for floating point modes.
13470 * expmed.c (emit_store_flag_1): Move here a bigger part
13471 of emit_store_flag.
13472 (emit_store_flag): Try swapping the condition for floating point
13474 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13476 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13478 * expr.c (expand_expr_real_1): Just use do_store_flag.
13479 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
13480 emit_store_flag_force.
13481 * expmed.c (emit_store_flag_force): Copy here trick
13482 previously in expand_expr_real_1. Try reversing the comparison.
13483 (emit_store_flag_1): Work if target is NULL.
13484 (emit_store_flag): Work if target is NULL, using the result mode
13485 from the comparison. Use split_comparison, restructure final part
13486 to simplify conditionals.
13488 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13490 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13491 * dojump.c (do_jump): Change handling of floating-point
13492 ops to use just do_compare_and_jump.
13493 (split_comparison): New.
13494 (do_compare_rtx_and_jump): Add here logic coming previously
13495 in do_jump, using split_comparison.
13497 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
13500 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13502 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13504 * tree-ssa-alias.c: Fix unintentional commit.
13506 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13508 * passes.c (execute_one_pass): Fix unintentional commit.
13510 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13512 * df-problems.c (df_set_seen, df_unset_seen): Delete.
13513 (df_rd_local_compute, df_md_local_compute): Inline them.
13515 (df_md_scratch): New.
13516 (df_md_alloc, df_md_free): Allocate/free it.
13517 (df_md_local_compute): Only include live registers in init.
13518 (df_md_transfer_function): Prune the in-set computed by
13519 the confluence function, and the gen-set too.
13521 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13523 PR rtl-optimization/26854
13524 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13525 * df-problems.c (df_rd_add_problem): Fix comment.
13526 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13527 df_md_simulate_artificial_defs_at_top,
13528 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13529 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13530 df_md_transfer_function, df_md_init, df_md_confluence_0,
13531 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13532 problem_MD, df_md_add_problem): New.
13533 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13534 df_md_get_bb_info): New.
13535 (DF_LAST_PROBLEM_PLUS1): Adjust.
13537 * Makefile.in (fwprop.o): Include domwalk.h.
13538 * fwprop.c: Include domwalk.h.
13539 (reg_defs, reg_defs_stack): New.
13540 (bitmap_only_bit_between): Remove.
13541 (process_defs): New.
13542 (process_uses): Use reg_defs and local_md instead of
13543 bitmap_only_bit_between and local_rd.
13544 (single_def_use_enter_block): New, from build_single_def_use_links.
13545 (single_def_use_leave_block): New.
13546 (build_single_def_use_links): Remove code moved to
13547 single_def_use_enter_block, invoke domwalk.
13548 (use_killed_between): Adjust comment.
13550 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13552 * bitmap.h (bitmap_ior_and_into): New.
13553 * bitmap.c (bitmap_ior_and_into): New.
13555 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13557 * domwalk.h (struct dom_walk_data): Remove all callbacks except
13558 before_dom_children_before_stmts and after_dom_children_after_stmts.
13559 Rename the two remaining callbacks to just before_dom_children and
13560 after_dom_children. Remove other GIMPLE statement walking bits.
13561 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13562 * graphite.c: Do not include domwalk.h.
13563 * tree-into-ssa.c (interesting_blocks): New global.
13564 (struct mark_def_sites_global_data): Remove it and names_to_rename.
13565 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13566 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13567 now that they're not domwalk callbacks.
13568 (rewrite_initialize_block): Rename to...
13569 (rewrite_enter_block): ... this, place after called functions. Test
13570 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13571 (rewrite_finalize_block): Rename to...
13572 (rewrite_leave_block): ... this, place after called functions.
13573 (rewrite_update_init_block): Rename to...
13574 (rewrite_update_enter_block): ... this, place after called functions.
13575 Test interesting_blocks, call rewrite_update_stmt and
13576 rewrite_update_phi_arguments.
13577 (rewrite_update_fini_block): Rename to...
13578 (rewrite_leave_block): ... this, place after called functions.
13579 (rewrite_blocks): Remove last argument, simplify initialization of
13581 (mark_def_sites_initialize_block): Rename to...
13582 (mark_def_sites_block): ... this, call mark_def_sites.
13583 (mark_def_sites_blocks): Remove argument, simplify initialization of
13585 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13586 (update_ssa): Likewise.
13587 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13589 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13590 (dom_opt_initialize_block): Rename to...
13591 (dom_opt_enter_block): ... this, place after called functions. Walk
13592 statements here, inline propagate_to_outgoing_edges.
13593 (dom_opt_finalize_block): Rename to...
13594 (dom_opt_leave_block): ... this, place after called functions.
13595 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13597 (dse_enter_block, dse_record_phi): New.
13598 (dse_record_phis): Delete.
13599 (dse_finalize_block): Rename to...
13600 (dse_leave_block): ... this.
13601 (tree_ssa_dse): Simplify initialization of walk_data.
13602 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13603 Adjust initialization of walk_data.
13604 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13605 * tree-ssa-loop-phiopt.c (get_non_trapping):
13606 Adjust initialization of walk_data.
13607 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13608 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13609 it's not a domwalk callback.
13610 (uncprop_initialize_block): Rename to...
13611 (dse_enter_block): ... this, call uncprop_into_successor_phis.
13612 (dse_finalize_block): Rename to...
13613 (dse_leave_block): ... this.
13614 (tree_ssa_uncprop): Simplify initialization of walk_data.
13615 * Makefile.in: Adjust dependencies.
13617 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
13619 * arm.md (casesi): Fix test for Thumb1.
13620 (thumb1_casesi_internal_pic): Likewise.
13621 (thumb1_casesi_dispatch): Likewise.
13623 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
13625 * config/arm/arm-cores.def: Added core cortex-m0.
13626 * config/arm/arm-tune.md: Regenerated.
13627 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13629 2009-06-26 DJ Delorie <dj@redhat.com>
13631 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13633 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13634 the scheduler doesn't tag jump insns.
13636 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
13638 * c-decl.c (merge_decls): Re-indent.
13640 2009-06-26 Janis Johnson <janis187@us.ibm.com>
13643 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13644 Special-case decimal float constants.
13646 2009-06-26 Richard Henderson <rth@redhat.com>
13648 * function.h (struct function): Add cannot_be_copied_reason,
13649 and cannot_be_copied_set.
13650 * tree-inline.c (has_label_address_in_static_1): Rename from
13651 inline_forbidden_p_2; don't set inline_forbidden_reason here.
13652 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13653 don't set inline_forbidden_reason.
13654 (copy_forbidden): New function, split out of inline_forbidden_p.
13655 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13656 (inline_forbidden_p): Use copy_forbidden.
13657 (tree_versionable_function_p): Likewise.
13658 (inlinable_function_p): Merge into tree_inlinable_function_p.
13659 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13660 * ipa-cp.c (ipcp_versionable_function_p): New function.
13661 (ipcp_cloning_candidate_p): Use it.
13662 (ipcp_node_modifiable_p): Likewise.
13664 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
13666 * builtins.c (expand_builtin_alloca): Handle builtin alloca
13667 that is marked not to be inlined. Remove flag_mudflap use.
13668 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13669 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13671 2009-06-26 Steve Ellcey <sje@cup.hp.com>
13674 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13675 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13677 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
13679 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13681 (__mingwthr_remove_key_dtor): Likewise.
13683 2009-06-26 Richard Guenther <rguenther@suse.de>
13685 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
13687 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
13689 PR middle-end/40525
13690 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13691 try the non-cond_exec path also.
13693 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13696 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13697 (output_cbranch): Use new functions.
13698 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13701 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13702 Pat Haugen <pthaugen@us.ibm.com>
13703 Revital Eres <ERES@il.ibm.com>
13705 * config/rs6000/rs6000.c (print_operand): Correct lossage message
13706 for %c error. Add %x support to print VSX registers as a unified
13707 register set, instead of separate float and altivec registers.
13708 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13709 %y case, and add support for VSX pre-modify addresses.
13710 (output_toc): Add assert for CONST containing an integer constant
13712 (rs6000_adjust_cost): Add POWER7 support.
13713 (insn_must_be_first_in_group): Ditto.
13714 (insn_must_be_last_in_group): Ditto.
13715 (rs6000_emit_popcount): Ditto.
13716 (rs6000_vector_mode_supported_p): Ditto.
13718 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13719 Change some of the functions called by macros to being called
13720 through a pointer, so debug functions can be inserted if
13721 -mdebug=addr or -mdebug=cost.
13722 (rs6000_preferred_reload_class_ptr): Ditto.
13723 (rs6000_secondary_reload_class_ptr): Ditto.
13724 (rs6000_secondary_memory_needed_ptr): Ditto.
13725 (rs6000_cannot_change_mode_class_ptr): Ditto.
13726 (rs6000_secondary_reload_inner): Ditto.
13727 (rs6000_legitimize_reload_address): Ditto.
13728 (rs6000_legitimize_reload_address_ptr): Ditto.
13729 (rs6000_mode_dependent_address): Ditto.
13730 (rs6000_mode_dependent_address_ptr): Ditto.
13732 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13733 function to return true if the mode allows reg + integer
13735 (virtual_stack_registers_memory_p): New function to return true if
13736 the address refers to a virtual stack register.
13737 (rs6000_legitimate_offset_address_p): Move code to say whether a
13738 mode supports reg+int addressing to reg_offset_addressing_ok_p and
13740 (rs6000_legitimate_address_p): Add checks for modes that only can
13741 do reg+reg addressing. Start adding VSX support.
13742 (rs6000_legitimize_reload_address): Ditto.
13743 (rs6000_legitimize_address): Ditto.
13744 (rs6000_debug_legitimate_address_p): New debug functions for
13745 -mdebug=addr and -mdebug=cost.
13746 (rs6000_debug_rtx_costs): Ditto.
13747 (rs6000_debug_address_costs): Ditto.
13748 (rs6000_debug_adjust_cost): Ditto.
13749 (rs6000_debug_legitimize_address): Ditto.
13750 (rs6000_legitimize_reload_address_ptr): Point to call normal
13751 function or debug function. Make functions called via pointer
13753 (rs6000_mode_dependent_address_ptr): Ditto.
13754 (rs6000_secondary_reload_class_ptr): Ditto.
13755 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13756 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
13757 into a friendlier error.
13758 (rs6000_init_builtins): Add initial VSX support.
13759 (rs6000_adjust_cost): Fix some spacing issues.
13761 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13762 (REG_CLASS_NAMES): Ditto.
13763 (REG_CLASS_CONTENTS): Ditto.
13764 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13765 pointer, to add -mdebug=addr support.
13766 (CANNOT_CHANGE_MODE_CLASS): Ditto.
13767 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13768 -mdebug=addr support.
13769 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13770 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13771 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13773 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13775 (bswapsi*): Set attribute types for load/store. Add combiner
13776 patterns to eliminate zero extend on 64-bit.
13777 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
13778 stdbrx if the hardware supports those instructions.
13780 2009-06-25 Ian Lance Taylor <iant@google.com>
13782 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13783 (Link Options): Document -static-libstdc++.
13785 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13788 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13789 DATA_ALIGNMENT instead.
13791 2009-06-25 Richard Guenther <rguenther@suse.de>
13793 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13794 indirect references against the callused/escaped solutions.
13795 (call_may_clobber_ref_p_1): Likewise.
13797 2009-06-25 Martin Jambor <mjambor@suse.cz>
13799 PR tree-optimization/40493
13800 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13801 (enum unscalarized_data_handling): New type.
13802 (handle_unscalarized_data_in_subtree): Return what has been done.
13803 (load_assign_lhs_subreplacements): Handle left flushes differently.
13804 (sra_modify_assign): Use unscalarized_data_handling, simplified
13805 condition determining whether to remove the statement.
13807 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
13809 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13810 excerpt - @ should be doubled for texinfo.
13812 2009-06-24 Ian Lance Taylor <iant@google.com>
13814 * config/arc/arc.c: Include "df.h".
13815 (arc_attribute_table): Make static. Move higher in file.
13816 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13817 (output_shift): Initialize n later to avoid warning.
13818 * config/arm/arm.c (arm_attribute_table): Make static. Move
13820 * config/avr/avr.c (avr_attribute_table): Make static. Move
13822 (reg_class_tab): Change array type from int to enum reg_class.
13823 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13825 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13826 (lshrhi3_out): Likewise.
13827 (class_likely_spilled_p): Change return type to bool.
13828 (avr_rtx_costs): Use local code variable with enum type.
13829 * config/avr/avr.md (movmemhi): Use add_reg_note.
13830 (andhi3, andsi3): Don't use AS2 with "and".
13831 (iorhi3, iorsi3): Don't use AS2 with "or".
13832 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
13833 * config/crx/crx.c: Include "df.h".
13834 (crx_attribute_table): Make static.
13835 * config/m32r/m32r.c: Include "df.h".
13836 (m32r_attribute_table): Make static. Move higher in file.
13837 (pop): Use add_reg_note.
13838 (block_move_call): Change 0 to LCT_NORMAL in function call.
13839 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13840 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13841 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13842 declare, not just when TREE_CODE is defined.
13843 * config/m68hc11/m68hc11.c: Include "expr.h".
13844 (m68hc11_attribute_table): Make static. Move higher in file.
13845 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13847 (m68hc11_register_indirect_p): Likewise.
13848 (m68hc11_function_arg_padding): Change return type to enum
13850 (emit_move_after_reload): Use add_reg_note.
13851 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13852 (m68hc11_split_logical): Likewise.
13853 (m68hc11_rtx_costs): Add local code_and outer_code variables with
13855 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13856 to VOIDmode in function call.
13857 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13859 (m68hc11_split_logical): Update declaration.
13860 (m68hc11_function_arg_padding): Update declaration.
13861 * config/mcore/mcore.c (regno_reg_class): Change form array of int
13862 to array of enum reg_class.
13863 (mcore_attribute_table): Make static. Move higher in file.
13864 (mcore_rtx_costs): Add cast to enum type.
13865 * config/mcore/mcore.h (regno_reg_class): Update declaration.
13866 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13867 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
13869 * config/sh/predicates.md (trapping_target_operand): Rename and to
13871 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
13873 * config/spu/spu.c (spu_attribute_table): Make static. Move
13875 * config/v850/v850.c (v850_attribute_table): Make static. Move
13877 (v850_rtx_costs): Use local code with enum type.
13878 (expand_epilogue): Add cast.
13879 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13881 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
13884 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13885 -m2a-single-only and -m2a-nofpu.
13886 * config/sh/sh.opt: Document m2a generates FPU code.
13888 2009-06-24 Anatoly Sokolov <aesok@post.ru>
13890 * defaults.h (CAN_ELIMINATE): Provide default.
13891 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13892 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13893 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13894 * config/spu/spu.h (CAN_ELIMINATE): Delete.
13895 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13896 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13897 * config/cris/cris.h (CAN_ELIMINATE): Delete.
13898 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13899 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13900 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13902 2009-06-24 DJ Delorie <dj@redhat.com>
13904 * mep-ext-cop.cpu: Fix copyright notice.
13905 * mep-default: Fix copyright notice.
13906 * mep-core: Fix copyright notice.
13907 * mep: Fix copyright notice.
13908 * mep-ivc2: Fix copyright notice.
13909 * mep-c5: Fix copyright notice.
13911 2009-06-24 Denis Chertykov <chertykov@gmail.com>
13913 * doc/contrib.texi (Contributors):
13915 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
13917 PR middle-end/40501
13918 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13919 src and dst operands if necessary.
13921 2009-06-23 DJ Delorie <dj@redhat.com>
13924 * config.gcc: Add mep support.
13925 * recog.c: Resurrect validate_replace_rtx_subexp().
13926 * recog.h: Likewise.
13927 * config/mep/: Add new port:
13928 * config/mep/constraints.md: New file.
13929 * config/mep/default.h: New file.
13930 * config/mep/intrinsics.h: New file.
13931 * config/mep/intrinsics.md: New file.
13932 * config/mep/ivc2-template.h: New file.
13933 * config/mep/mep-c5.cpu: New file.
13934 * config/mep/mep-core.cpu: New file.
13935 * config/mep/mep-default.cpu: New file.
13936 * config/mep/mep-ext-cop.cpu: New file.
13937 * config/mep/mep-intrin.h: New file.
13938 * config/mep/mep-ivc2.cpu: New file.
13939 * config/mep/mep-lib1.asm: New file.
13940 * config/mep/mep-lib2.c: New file.
13941 * config/mep/mep-pragma.c: New file.
13942 * config/mep/mep-protos.h: New file.
13943 * config/mep/mep-tramp.c: New file.
13944 * config/mep/mep.c: New file.
13945 * config/mep/mep.cpu: New file.
13946 * config/mep/mep.h: New file.
13947 * config/mep/mep.md: New file.
13948 * config/mep/mep.opt: New file.
13949 * config/mep/predicates.md: New file.
13950 * config/mep/t-mep: New file.
13952 2009-06-23 Ian Lance Taylor <iant@google.com>
13954 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
13955 from loose_warn into c_loose_warn and from strict_warn into
13956 c_strict_warn. Set and substitute warn_cxxflags. Check for
13957 --enable-build-with-cxx. Set and substitute
13958 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
13959 * Makefile.in (CXXFLAGS): New variable.
13960 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13961 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
13962 the default is the same as $(STRICT_WARN).
13963 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13964 (CXX): New variable.
13965 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13966 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13967 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13968 (HOST_LIBS): New variable.
13969 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13970 (ALL_CXXFLAGS): New variable.
13971 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13972 * doc/install.texi (Configuration): Document
13973 --enable-build-with-cxx, --with-stage1-ldflags,
13974 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13975 * configure: Rebuild.
13977 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13979 * config/arm/arm.c (arm_override_options): Fix braces and formatting
13980 from previous commit.
13982 2009-06-23 Ian Lance Taylor <iant@google.com>
13984 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13986 2009-06-23 Ian Lance Taylor <iant@google.com>
13988 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13989 with ATTRIBUTE_UNUSED.
13991 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13992 Pat Haugen <pthaugen@us.ibm.com>
13993 Revital Eres <eres@il.ibm.com>
13995 * config.in (HAVE_AS_POPCNTD): Add default definition.
13996 (HAVE_AS_LWSYNC): Ditto.
13998 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
14000 (gcc_cv_as_powerpc_cmpb): Ditto.
14001 (gcc_cv_as_powerpc_dfp): Ditto.
14002 (gcc_cv_as_powerpc_vsx): Ditto.
14003 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
14004 supporting the popcntd/lwsync instructions.
14005 (gcc_cv_as_powerpc_lwsync): Ditto.
14006 * configure: Regenerate.
14008 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
14009 -mcpu=native and -mcpu=power7.
14010 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
14012 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
14013 a variable instead of a mask to reduce the number of mask bits.
14014 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
14015 (-mbit-word): Ditto.
14016 (-mregnames): Ditto.
14017 * config/rs6000/rs6000.opt (-mupdate): Ditto.
14018 (-mfused-madd): Ditto.
14020 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
14022 (-mvsx): New switch for VSX instructions.
14023 (-misel): Move from a variable to a mask to allow it to be set by
14026 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
14027 function declaration to an array declaration.
14028 (rs6000_hard_regno_nregs): New external array declaration.
14030 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
14031 files included by rs6000.md.
14033 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14034 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
14036 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
14038 (rs6000_debug_reg): New -mdebug= variables.
14039 (rs6000_debug_addr): Ditto.
14040 (rs6000_debug_cost): Ditto.
14041 (rs6000_pmode): New variable to hold Pmode.
14042 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
14043 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
14044 calculated at compiler start.
14045 (rs6000_hard_regno_nregs): Change function to an array which holds
14046 HARD_REGNO_NREGS calculated at compiler start.
14047 (rs6000_explicit_options): Delete isel field.
14048 (rs6000_vector_unit): New array to hold which vector unit
14049 supports arithmetic options for a given type.
14050 (rs6000_vector_mem): New array to hold which vector unit supports
14051 memory reference operations for a given type.
14052 (rs6000_vector_align): New array to given the alignment of each
14054 (power7_cost): New basic costs for power7.
14055 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
14056 (rs6000_hard_regno_nregs_internal): New function, moved from
14057 HARD_REGNO_NREGS, to calculate the number of registers each hard
14058 register takes for each type.
14059 (rs6000_debug_reg_print): New function for -mdebug=reg support.
14060 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
14061 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
14062 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
14063 unit information here so it is calculated once at compiler startup
14065 (rs6000_override_options): Make -misel a target mask. Add more
14066 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
14067 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
14069 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
14070 (rs6000_handle_option): Move -misel from variable to target mask.
14071 (rs6000_builtin_mask_for_load): Add VSX support.
14072 (rs6000_conditional_register_usage): Ditto.
14073 (USE_ALTIVEC_FOR_ARG_P): Ditto.
14074 (function_arg_boundary): Ditto.
14075 (rs6000_expand_builtin): Ditto.
14076 (def_builtin): Make abort message a little friendlier.
14077 (rs6000_emit_int_cmove): Add support for 64-bit isel.
14079 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
14080 assembler support the popcntd instruction instead of a vsx
14081 instruction to enable power7 support.
14082 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
14083 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
14084 option to the assembler if -mcpu=native.
14085 (ASM_CPU_NATIVE_SPEC): Ditto.
14086 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
14088 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
14089 the lwsync instruction.
14090 (enum processor_type): Add PROCESSOR_POWER7.
14091 (rs6000_debug_reg): New -mdebug= options.
14092 (rs6000_debug_addr): Ditto.
14093 (rs6000_debug_cost): Ditto.
14094 (rs6000_isel): Delete.
14095 (enum rs6000_vector): New enum to say what vector unit we have.
14096 (VECTOR_UNIT_*): New macros to say which vector unit has
14097 arithmetic operations for a given type.
14098 (VECTOR_MEM_*): New macros to say which vector unit has memory
14099 operations for a given type.
14100 (TARGET_LDBRX): Whether the machine supports the ldbrx
14102 (TARGET_ISEL): Delete, -misel moved to be a mask.
14103 (TARGET_ISEL64): New macro for 64-bit isel support.
14104 (UNITS_PER_VSX_WORD): New macro.
14105 (POINTER_SIZE): Move to be an external variable, rather than
14106 calculating whether we are generating 32 ot 64-bit code.
14108 (STACK_BOUNDARY): Add VSX support.
14109 (LOCAL_ALIGNMENT): Ditto.
14110 (SLOW_UNALIGNED_ACCESS): Ditto.
14111 (VSX_REGNO_P): New macro for VSX support.
14112 (VFLOAT_REGNO_P): Ditto.
14113 (VINT_REGNO_P): Ditto.
14114 (VLOGICAL_REGNO_P): Ditto.
14115 (VSX_VECTOR_MODE): Ditto.
14116 (VSX_SCALAR_MODE): Ditto.
14118 (VSX_MOVE_MODE): Ditto.
14119 (VSX_REG_CLASS_P): Ditto.
14120 (HARD_REGNO_NREGS): Instead of calling a function, use an array
14122 (UNITS_PER_SIMD_WORD): Add VSX support.
14123 (MODES_TIEABLE_P): Ditto.
14124 (STARTING_FRAME_OFFSET): Ditto.
14125 (STACK_DYNAMIC_OFFSET): Ditto.
14126 (EPILOGUE_USES): Ditto.
14127 (REGNO_REG_CLASS): Move to array lookup.
14128 (CLASS_MAX_NREGS): Ditto.
14129 (rs6000_vector_reg_class): Add declaration.
14130 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14131 overlap with the floating point and Altivec registers.
14133 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14135 * config/rs6000/driver-rs6000.c (asm_names): New static array to
14136 give the appropriate asm switches if -mcpu=native.
14137 (host_detect_local_cpu): Add support for "asm".
14138 (host_detect_local_cpu): Follow GNU code guidelines for name.
14140 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14141 -mbit-word to a variable instead of being a target mask.
14143 * config/rs6000/sync.md (lwsync): If the assembler supports it,
14144 emit the lwsync instruction instead of emitting the instruction as
14145 an integer constant.
14147 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14148 fixuns_trundfsi2, move expander into rs6000.md.
14150 * config/rs6000/rs6000.md (cpu): Add power7.
14151 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14152 (logical predicate patterns): Change the single instruction
14153 primitives that set CR0 to be fast_compare instead of compare.
14155 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14156 (popcntddi2): Ditto.
14157 (popcount<mode>): Ditto.
14158 (floating multiply/add insns): Name the floating point
14159 multiply/add insns.
14160 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14161 (isel_unsigned_<mode>): Ditto.
14162 (fixuns_trundfsi2): Move expander here from spe.md.
14163 (smindi3): Define if we have -misel on 64-bit systems.
14168 2009-06-23 Anatoly Sokolov <aesok@post.ru>
14170 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14172 * config/avr/avr.c (avr_current_device): New variable.
14173 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14174 (avr_arch, mcu_type_s): Move to avr.h.
14175 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14176 default_data_section_start fields.
14177 (avr_arch): Moved from avr.c.
14178 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14179 library_name fields.
14180 (avr_current_device, avr_mcu_types, avr_arch_types,
14181 avr_device_to_arch, avr_device_to_data_start,
14182 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14183 (EXTRA_SPEC_FUNCTIONS): Define.
14184 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14185 options mapping. Use device_to_arch and device_to_data_start insted.
14186 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14187 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14188 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14189 * config/avr/driver-avr.c: New file.
14190 * config/avr/avr-devices.c: New file.
14192 2009-06-23 Jakub Jelinek <jakub@redhat.com>
14194 * var-tracking.c (unshare_variable): Force initialized to
14195 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14196 (set_variable_part): Likewise.
14197 (struct variable_union_info): Remove pos_src field.
14198 (vui_vec, vui_allocated): New variables.
14199 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14200 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
14201 == 1 use a simpler sorting algorithm. Compute pos field right
14202 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
14203 Avoid quadratic comparison if !flag_var_tracking_uninit.
14204 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14205 unshare_variable unconditionally.
14206 (dataflow_set_different_2): Removed.
14207 (dataflow_set_different): Don't traverse second hash table.
14208 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14209 unconditionally to var_reg_set or var_mem_set.
14210 (emit_notes_in_bb): Likewise.
14211 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14213 (emit_note_insn_var_location): Don't set initialized to
14214 VAR_INIT_STATUS_INITIALIZED early.
14215 (vt_finalize): Free vui_vec if needed, clear vui_vec and
14217 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14219 * tree-object-size.c (addr_object_size): Instead of checking
14220 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14221 are no FIELD_DECLs following it.
14223 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
14225 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14226 order to match bswaps with signed source operands.
14228 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14230 * sdbout.c (sdbout_one_type): Fix braces in switch.
14232 2009-06-23 Richard Guenther <rguenther@suse.de>
14234 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14236 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14237 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14238 var_callused, callused_tree, var_storedanything, storedanything_tree,
14239 var_integer, integer_tree): Remove global variables.
14240 (new_var_info): Do not pass new id, append the new var to the
14241 global variable vector.
14242 (do_ds_constraint): Use is_global_var member of the variable-info.
14243 (new_scalar_tmp_constraint_exp): Adjust.
14244 (create_function_info_for): Likewise.
14245 (create_variable_info_for): Likewise.
14246 (find_what_var_points_to): Remove dead code.
14247 (init_base_vars): Simplify.
14248 (compute_points_to_sets): Adjust.
14250 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14252 * combine.c (try_combine): Dump information about the insns we're
14255 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14257 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14258 check when calling force_to_mode on TRUNCATE's operand.
14260 2009-06-22 Ian Lance Taylor <iant@google.com>
14262 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14264 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14266 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14268 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14270 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14271 override library linkage flags such as -static-libgcc or
14274 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14276 * config/m68k/m68k-devices.def: Add line for MCF5221x.
14278 2009-06-22 Ian Lance Taylor <iant@google.com>
14280 * config/linux.opt: Put mglibc ahead of muclibc.
14282 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14283 for duplicate decls.
14285 2009-06-22 Matthias Klose <doko@ubuntu.com>
14287 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14289 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14292 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14293 instead of NULL if a parser error occurs.
14295 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14297 * dwarf2out.c (dwarf2_debug_hooks): Initialize
14298 non-DWARF2_DEBUGGING_INFO version.
14300 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
14302 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14303 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14305 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14306 (LIBGCC2_TF_CEXT): Define.
14309 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14312 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14314 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14316 * config/arm/arm.c (arm_override_options): Disable
14317 -mcaller-super-interworking and -mcallee-super-interworking.
14318 * doc/invoke.texi (ARM Options): Document this.
14320 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
14322 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14323 * config/arm/constraints.md (j): New constraint for movw operands.
14324 (N): Remove thumb2 meaning.
14325 * config/arm/arm.md (*arm_movw): Delete.
14326 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14327 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14328 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14330 2009-06-22 Martin Jambor <mjambor@suse.cz>
14332 PR tree-optimization/40492
14333 * tree-sra.c (sra_modify_assign): Pass zero offsets to
14334 build_ref_for_offset.
14336 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
14338 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14339 JUMP_TABLE_DATA_P predicates where applicable.
14340 * auto-inc-dec.c: Ditto.
14341 * builtins.c: Ditto.
14342 * caller-save.c: Ditto.
14344 * cfgcleanup.c: Ditto.
14345 * cfglayout.c: Ditto.
14347 * combine.c: Ditto.
14348 * combine-stack-adj.c: Ditto.
14352 * df-scan.c: Ditto.
14354 * dwarf2asm.c: Ditto.
14355 * dwarf2out.c: Ditto.
14356 * emit-rtl.c: Ditto.
14362 * function.c: Ditto.
14365 * genpreds.c: Ditto.
14366 * genrecog.c: Ditto.
14368 * ira-costs.c: Ditto.
14369 * ira-lives.c: Ditto.
14371 * loop-iv.c: Ditto.
14372 * lower-subreg.c: Ditto.
14373 * modulo-sched.c: Ditto.
14375 * postreload.c: Ditto.
14376 * print-rtl.c: Ditto.
14378 * reginfo.c: Ditto.
14379 * regmove.c: Ditto.
14380 * reload1.c: Ditto.
14383 * rtlanal.c: Ditto.
14385 * sched-vis.c: Ditto.
14387 * sel-sched-ir.c: Ditto.
14388 * simplify-rtx.c: Ditto.
14389 * targhooks.c: Ditto.
14390 * var-tracking.c: Ditto.
14391 * vmsdbgout.c: Ditto.
14393 2009-06-22 Matthias Klose <doko@ubuntu.com>
14395 * Makefile.in (install-plugin): Always use DESTDIR.
14397 2009-06-22 Olivier Hainque <hainque@adacore.com>
14399 * config/pa/pa.c (output_call): Don't optimize post call jumps
14400 into return address adjustments if the call may throw.
14402 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
14404 * arm.c (thumb1_output_casesi): New function.
14405 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14406 optimizing for size or PIC.
14407 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14408 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14409 (casesi): Handle Thumb-1 when optimizing for size or PIC.
14410 (thumb1_casesi_internal_pic): New expand rule.
14411 (thumb1_casesi_dispatch): New pattern.
14412 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14414 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14415 in the text seciton when PIC or optimizing for size.
14416 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14417 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14418 preservation properties of code.
14419 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14420 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14421 (__gnu_thumb1_case_si): New function.
14422 * t-arm (LIB1ASMSRC): Define here.
14423 (LIB1ASMFUNCS): Add some common functions.
14424 * t-arm-elf (LIB1ASMSRC): Delete.
14425 (LIB1ASMFUNCS): Append to existing set.
14426 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14427 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14428 * t-symbian (LIB1ASMFUNCS): Likewise.
14429 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14430 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14432 2009-06-21 Richard Guenther <rguenther@suse.de>
14434 PR tree-optimization/38729
14435 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14436 to loops with a single exit if -fno-expensive-optimizations.
14438 2009-06-21 Jakub Jelinek <jakub@redhat.com>
14440 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14441 (dataflow_set): Change vars type from htab_t to shared_hash.
14442 (shared_hash_pool, empty_shared_hash): New variables.
14443 (vars_clear): Removed.
14444 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14445 shared_hash_find_slot_unshare, shared_hash_find_slot,
14446 shared_hash_find_slot_noinsert, shared_hash_find): New
14448 (shared_hash_unshare, shared_hash_destroy): New functions.
14449 (unshare_variable): Unshare set->vars if shared, use
14451 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14452 (get_init_value, find_src_set_src, dump_dataflow_set,
14453 clobber_variable_part, emit_notes_for_differences): Use
14455 (dataflow_set_init): Remove second argument, set vars to
14456 empty_shared_hash instead of creating a new htab.
14457 (dataflow_set_clear): Call shared_hash_destroy and set vars
14458 to empty_shared_hash instead of calling vars_clear.
14459 (dataflow_set_copy): Don't call vars_copy, instead just share
14460 the src htab with dst.
14461 (variable_union): Use shared_hash_*, use initially NO_INSERT
14462 lookup if set->vars is shared. Don't keep slot cleared before
14463 calling unshare_variable. Unshare set->vars if needed.
14464 Even ->refcount == 1 vars must be unshared if set->vars is shared
14465 and var needs to be modified.
14466 (variable_canonicalize): New function.
14467 (dataflow_set_union): If dst->vars is empty, just share src->vars
14468 with dst->vars and traverse with variable_canonicalize to canonicalize
14469 and unshare what is needed.
14470 (dataflow_set_different): If old_set and new_set use the same shared
14471 htab, they aren't different. If number of htab elements is different,
14472 htabs are different. Use shared_hash_*.
14473 (dataflow_set_destroy): Call shared_hash_destroy instead of
14475 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14476 second argument to dataflow_set_init.
14477 (vt_initialize): Likewise. Initialize shared_hash_pool and
14478 empty_shared_hash, move bb in/out initialization afterwards.
14479 Use variable_htab_free instead of NULL as changed_variables del hook.
14480 (variable_was_changed): Change type of second argument to pointer to
14481 dataflow_set. When inserting var into changed_variables, bump
14482 refcount. Unshare set->vars if set is shared htab and slot needs to
14484 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14485 lookup if set->vars is shared. Unshare set->vars if needed.
14486 Even ->refcount == 1 vars must be unshared if set->vars is shared
14487 and var needs to be modified. Adjust variable_was_changed caller.
14488 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
14489 vars must be unshared if set->vars is shared and var needs to be
14490 modified. Adjust variable_was_changed caller.
14491 (emit_note_insn_var_location): Don't pool_free var.
14492 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14494 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14495 free_alloc_pool on shared_hash_pool.
14497 2009-06-20 Anthony Green <green@moxielogic.com>
14499 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14500 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14502 2009-06-20 Richard Guenther <rguenther@suse.de>
14504 * tree-ssa-structalias.c (find_func_aliases): For memset use
14505 a constraint from NULL if we memset to zero.
14506 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14507 we explicitly handle that do not read from memory.
14508 (call_may_clobber_ref_p_1): Properly handle builtins that may
14511 2009-06-20 Richard Guenther <rguenther@suse.de>
14513 PR tree-optimization/40495
14514 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14515 (new_scalar_tmp_constraint_exp): New function.
14516 (process_constraint): Do not create temporary decls.
14517 (process_all_all_constraints): Likewise.
14518 (handle_const_call): Likewise.
14519 (create_function_info_for): Do not set decl.
14521 2009-06-19 Ian Lance Taylor <iant@google.com>
14523 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14524 (rs6000_attribute_table): Make static; move before use.
14526 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
14528 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14529 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14530 Propagate the TREE_READONLY flag without overwriting it.
14531 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14532 Propagate the TREE_READONLY flag onto the result.
14533 (process_call_operands): Move around. Use correct constant value.
14535 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14538 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14539 * config/arm/arm.md: Likewise.
14541 2009-06-19 Ian Lance Taylor <iant@google.com>
14543 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14544 to GIMPLE_ERROR_MARK.
14546 * c-typeck.c (build_conditional_expr): Add op1_original_type and
14547 op2_original_type parameters. Warn about using different enum types.
14548 * c-parser.c (c_parser_conditional_expression): Pass original
14549 types to build_conditional_expr.
14550 * c-tree.h (build_conditional_expr): Update declaration.
14552 2009-06-19 Ian Lance Taylor <iant@google.com>
14554 * config/i386/i386.c (ix86_function_specific_save): Test that
14555 fields match values, rather than testing the values are in a
14558 2009-06-19 Richard Guenther <rguenther@suse.de>
14560 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14561 ADDR_EXPR pointers.
14562 (ptr_derefs_may_alias_p): Likewise.
14563 (ptr_deref_may_alias_ref_p_1): New function.
14564 (ptr_deref_may_alias_ref_p): Likewise.
14565 (ref_maybe_used_by_call_p_1): Handle builtins that are not
14566 covered by looking at the ESCAPED solution.
14567 (call_may_clobber_ref_p_1): Likewise.
14568 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14569 Handle NULL_TREE offset. Do not produce redundant constraints.
14570 (process_all_all_constraints): New helper function.
14571 (do_structure_copy): Use it.
14572 (handle_lhs_call): Likewise.
14573 (find_func_aliases): Handle some builtins with pointer arguments
14574 and/or return values explicitly.
14576 2009-06-19 Ian Lance Taylor <iant@google.com>
14578 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14580 2009-06-19 Ian Lance Taylor <iant@google.com>
14582 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14584 2009-06-19 Ian Lance Taylor <iant@google.com>
14586 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14587 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14590 * c-decl.c (finish_decl): If -Wc++-compat, warn about
14591 uninitialized const.
14593 2009-06-19 Ian Lance Taylor <iant@google.com>
14595 * dse.c (struct store_info): Rename bitmap field to bmap. Change
14598 * c-decl.c (in_struct, struct_types): Remove.
14599 (struct c_binding): Add in_struct field.
14600 (c_binding_ptr): Define type, along with VEC.
14601 (struct c_struct_parse_info): Define.
14602 (struct_parse_info): New static variable.
14603 (bind): Initialize in_struct field.
14604 (start_struct): Remove enclosing_in_struct and
14605 enclosing_struct_types parameters. Add
14606 enclosing_struct_parse_info parameter. Change all callers. Set
14607 struct_parse_info rather than in_struct and struct_types.
14608 (grokfield): If -Wc++-compat and there is a symbol binding for the
14609 field name, set the in_struct flag and push it on the
14610 struct_parse_info->fields vector.
14611 (warn_cxx_compat_finish_struct): New static function.
14612 (finish_struct): Remove enclosing_in_struct and
14613 enclosing_struct_types parameters. Add
14614 enclosing_struct_parse_info parameter. Change all callers. Don't
14615 set C_TYPE_DEFINED_IN_STRUCT here. Call
14616 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
14617 parameter. Only push on struct_types if warn_cxx_compat.
14618 (finish_enum): Only push on struct_types if warn_cxx_compat.
14619 (declspecs_add_type): Add loc parameter. Change all callers.
14620 Change all error calls to error_at. Pass loc, not input_location,
14621 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
14622 defined in a struct. If -Wc++-compat and parsing a struct, record
14623 that a typedef name was used.
14624 * c-parser.c (c_parser_declspecs): Get location to pass to
14625 declspecs_add_type.
14626 (c_parser_struct_or_union_specifier): Update calls to start_struct
14628 * c-tree.h (struct c_struct_parse_info): Declare.
14629 (finish_struct, start_struct): Update declarations.
14630 (declspecs_add_type): Update declaration.
14632 2009-06-19 Ian Lance Taylor <iant@google.com>
14634 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14635 variable with an anonymous type.
14637 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
14639 * see.c: Remove for real.
14641 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
14643 * optabs.h (enum optab_index): Add new OTI_significand.
14644 (significand_optab): Define corresponding macro.
14645 * optabs.c (init_optabs): Initialize significand_optab.
14646 * genopinit.c (optabs): Implement significand_optab using
14647 significand?f2 patterns.
14648 * builtins.c (expand_builtin_mathfn): Handle
14649 BUILT_IN_SIGNIFICAND{,F,L}.
14650 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14651 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14653 * config/i386/i386.md (significandxf2, significand<mode>2): New
14654 expanders to implement significandf, significand and significandl
14655 built-ins as inline x87 intrinsics.
14657 2009-06-18 Anatoly Sokolov <aesok@post.ru>
14659 * config/avr/avr.c (avr_override_options): Remove setting value of
14660 PARAM_INLINE_CALL_COST.
14662 2009-06-18 Richard Henderson <rth@redhat.com>
14665 * tree-pass.h (TDF_ASMNAME): New.
14666 * tree-dump.c (dump_options): Add asmname.
14667 * doc/invoke.texi: Document it.
14669 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14670 (dump_decl_name): ...here.
14671 (dump_function_name): New flags arg; mind TDF_ASMNAME.
14672 (dump_generic_node): Update dump_function_name calls.
14673 (print_call_name): New flags arg; update all dump calls.
14674 * diagnostic.h (print_call_name): Update.
14675 * gimple-pretty-print.c (dump_gimple_call): Update.
14677 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
14680 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14682 2009-06-18 Diego Novillo <dnovillo@google.com>
14684 * doc/plugins.texi: Document plugin_is_GPL_compatible.
14685 * plugin.c (str_license): Declare.
14686 (try_init_one_plugin): Assert that the symbol
14687 'plugin_is_GPL_compatible' exists.
14689 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
14692 * Makefile.in (OBJS-common): Remove see.o.
14694 * common.opt (fsee): Mark as preserved for backward compatibility.
14695 * opts.c (common_handle_option): Add OPT_fsee to the backward
14696 compatibility section.
14697 * passes.c (init_optimization_passes, pass_see): Remove pass.
14698 * timevar.def (TV_SEE): Remove.
14699 * tree-pass.h (pass_see): Remove declaration.
14700 * doc/invoke.texi (-fsee): Remove documentation.
14702 2009-06-18 Martin Jambor <mjambor@suse.cz>
14704 * tree-sra.c: Include statistics.h
14705 (sra_stats): New variable.
14706 (sra_initialize): Clear sra_stats.
14707 (create_access_replacement): Increment sra_stats.replacements.
14708 (get_access_replacement): Do not return twice.
14709 (analyze_all_variable_accesses): Increment statistics counter by the
14710 number of scalarized aggregates.
14711 (generate_subtree_copies): Increment sra_stats.subtree_copies.
14712 (sra_modify_expr): Increment sra_stats.exprs.
14713 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14714 (sra_modify_assign): Increment sra_stats.exprs,
14715 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14716 (perform_intra_sra): Update statistics counters.
14717 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14719 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14721 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14722 (arm_scalar_mode_supported_p): New function.
14724 2009-06-18 Paul Brook <paul@codesourcery.com>
14725 Sandra Loosemore <sandra@codesourcery.com>
14727 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14728 (__extendhfsf2, __truncsfhf2): Define.
14729 * config/arm/fp16.c: New file.
14730 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14731 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14733 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14735 * doc/extend.texi (Half-Precision): New section.
14736 * doc/invoke.texi (Option Summary): List -mfp16-format.
14737 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
14738 * config/arm/arm.opt (mfp16-format=): New.
14739 * config/arm/arm.c: Include intl.h.
14740 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14741 (TARGET_INVALID_RETURN_TYPE): Redefine.
14742 (TARGET_PROMOTED_TYPE): Redefine.
14743 (TARGET_CONVERT_TO_TYPE): Redefine.
14744 (arm_fp16_format): Define.
14745 (all_fpus): Add entry for neon-fp16.
14746 (fp_model_for_fpu): Likewise.
14747 (struct fp16_format): Declare.
14748 (all_fp16_formats): Define.
14749 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14751 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14753 (arm_legitimate_index_p): Treat HFmode like HImode.
14754 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14755 (coproc_secondary_reload_class): Special-case HFmode.
14756 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14757 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14758 (arm_init_fp16_builtins): New.
14759 (arm_init_builtins): Call it.
14760 (arm_invalid_parameter_type): New.
14761 (arm_invalid_return_type): New.
14762 (arm_promoted_type): New.
14763 (arm_convert_to_type).
14764 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
14766 (arm_emit_fp16_const): New function.
14767 (arm_mangle_type): Mangle __fp16 as "Dh".
14768 * config/arm/arm.h (TARGET_VFPD32): Make it know about
14770 (TARGET_NEON_FP16): New.
14771 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14772 (enum fputype): Add FPUTYPE_NEON_FP16.
14773 (enum arm_fp16_format_type): Declare.
14774 (arm_fp16_format): Declare.
14775 (LARGEST_EXPONENT_IS_NORMAL): Define.
14776 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14777 * config/arm/arm-modes.def (HFmode): Define.
14778 * config/arm/vfp.md (*movhf_vfp): New.
14779 (extendhfsf2): New.
14781 * config/arm/arm.md (fpu): Add neon_fp16.
14782 (floatsihf2, floatdihf2): New.
14783 (fix_trunchfsi2, fix_trunchfdi2): New.
14785 (extendhfdf2): New.
14787 (*arm32_movhf): New.
14788 (*thumb1_movhf): New.
14789 (consttable_2): Add check for HFmode constants.
14790 (consttable_4): Handle HFmode constants.
14792 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
14794 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14796 2009-06-17 Olivier Hainque <hainque@adacore.com>
14798 * collect2.c (main): Use CONST_CAST2 to perform char ** to
14799 const char ** conversion in AIX specific section.
14801 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
14803 * config/i386/i386.c (ix86_special_builtin_type): Remove
14804 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
14805 (bdesc_special_args): Updated.
14806 (ix86_init_mmx_sse_builtins): Likewise.
14807 (ix86_expand_special_args_builtin): Likewise.
14809 2009-06-17 Richard Henderson <rth@redhat.com>
14811 * tree-pretty-print.c (maybe_dump_asm_name): New.
14812 (dump_decl_name): Use it.
14813 (PRINT_FUNCTION_NAME): Merge into...
14814 (dump_function_name): ... here. Use maybe_dump_asm_name.
14816 2009-06-17 Cary Coutant <ccoutant@google.com>
14818 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14820 * debug.c (struct gcc_debug_hooks): Change placeholder for
14822 (debug_nothing_int_charstar_int): Replaced by...
14823 (debug_nothing_int_charstar_int_bool): ...this.
14824 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14825 source_line prototype.
14826 (debug_nothing_int_charstar_int): Replaced by...
14827 (debug_nothing_int_charstar_int_bool): ...this.
14828 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14829 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14830 Output is_stmt operand when necessary.
14831 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
14832 (notice_source_line): Add is_stmt parameter.
14833 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14834 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14836 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14837 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14839 2009-06-17 Ian Lance Taylor <iant@google.com>
14841 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14843 (struct store_by_pieces_d): Rename from store_by_pieces. Change
14846 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
14848 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14849 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14850 tree_strip_sign_nop_conversions and
14851 tree_ssa_strip_useless_type_conversions rather than stripping
14852 the operations here.
14853 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14855 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14856 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14857 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14858 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14861 2009-06-17 Michael Eager <eager@eagercon.com>
14863 * config/rs6000/constraints.md (register_constraint "d"): New.
14864 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14865 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14866 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14867 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14868 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14869 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14870 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14871 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
14872 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14873 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
14875 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
14876 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14877 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14878 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
14879 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14880 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14881 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14882 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14883 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14884 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14885 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14886 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14887 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
14888 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14890 2009-06-16 Ian Lance Taylor <iant@google.com>
14892 * profile.c (total_num_never_executed): Don't define.
14893 (compute_branch_probabilities): Don't count or print
14894 num_never_executed.
14895 (init_branch_prob): Don't set total_num_never_executed.
14896 (end_branch_prob): Don't print total_num_never_executed.
14898 2009-06-17 David Daney <ddaney@caviumnetworks.com>
14900 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
14902 2009-06-17 David Edelsohn <edelsohn@gnu.org>
14904 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14905 (nabstd2_fpr): Same.
14907 2009-06-17 Steve Ellcey <sje@cup.hp.com>
14909 * expr.c (expand_assignment): Change complex type check.
14911 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
14913 * doc/plugins.texi (Building GCC plugins): Added new section.
14915 2009-06-17 Ian Lance Taylor <iant@google.com>
14917 * c-pch.c (get_ident): Don't set size of templ array.
14918 (pch_init): Don't set size of partial_pch array.
14920 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14921 string constant to intialize an array whose size is the length of
14924 2009-06-17 Richard Guenther <rguenther@suse.de>
14926 PR tree-optimization/40389
14927 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14928 to addressable types.
14929 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14931 2009-06-17 Richard Guenther <rguenther@suse.de>
14933 PR middle-end/40460
14934 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14935 if there is no evolution of left in the loop bail out.
14936 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14937 chrec_fold_multiply.
14939 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
14940 Janis Johnson <janis187@us.ibm.com>
14943 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14944 for the symbol ref of a constant that is the source of a move
14945 - nor for any other not-obvious-label-ref constants.
14947 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
14949 * plugin.c (position_pass): Skip newly inserted pass during list
14950 traversal to avoid repeated insertion.
14952 2009-06-16 Ian Lance Taylor <iant@google.com>
14954 * vec.h (VEC_stack_alloc): Define different version if
14955 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14956 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14957 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14958 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14960 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
14962 * config.gcc (extra_headers): Add ia32intrin.h for x86.
14964 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14965 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14966 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14967 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14968 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14969 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14970 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14971 (bdesc_special_args): Add __builtin_ia32_rdtsc and
14972 __builtin_ia32_rdtscp.
14973 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14974 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
14975 and __builtin_ia32_rorhi.
14976 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14977 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14978 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14979 (ix86_expand_args_builtin): Likewise.
14980 (ix86_expand_special_args_builtin): Likewise.
14982 * config/i386/i386.md (UNSPECV_RDTSCP): New.
14983 (UNSPECV_RDTSC): Likewise.
14984 (UNSPECV_RDPMC): Likewise.
14985 (*bsr): Renamed to ...
14987 (*bsr_rex64): Renamed to ...
14990 (*rdpmc): Likewise.
14991 (*rdpmc_rex64): Likewise.
14993 (*rdtsc): Likewise.
14994 (*rdtsc_rex64): Likewise.
14995 (rdtscp): Likewise.
14996 (*rdtscp): Likewise.
14997 (*rdtscp_rex64): Likewise.
14999 * config/i386/ia32intrin.h: New.
15001 * config/i386/x86intrin.h: Include <ia32intrin.h>.
15003 2009-06-16 Ian Lance Taylor <iant@google.com>
15005 * ira-build.c (copy_info_to_removed_store_destinations):
15006 Initialize parent_a.
15008 2009-06-16 Ian Lance Taylor <iant@google.com>
15010 * c-decl.c (grokdeclarator): Change size_varies to bool.
15012 2009-06-16 Ian Lance Taylor <iant@google.com>
15014 * sel-sched.c: Make forward declarations of move_op_hooks and
15015 fur_hooks explicitly extern.
15017 2009-06-16 Ian Lance Taylor <iant@google.com>
15019 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
15020 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
15022 2009-06-16 Ian Lance Taylor <iant@google.com>
15024 * resource.c (mark_referenced_resources): Change
15025 include_delayed_effects parameter to bool. Change all callers.
15026 (mark_end_of_function_resources): Likewise.
15027 * reorg.c (insn_references_resource_p): Likewise.
15028 (insn_sets_resource_p): Likewise.
15029 * resource.h (mark_referenced_resources): Update declaration.
15030 (mark_end_of_function_resources): Update declaration.
15032 2009-06-16 David Edelsohn <edelsohn@gnu.org>
15034 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
15036 2009-06-16 David Edelsohn <edelsohn@gnu.org>
15038 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
15039 GCC can bootstrap on AIX with GNU Binutils 2.20.
15041 2009-06-16 Ian Lance Taylor <iant@google.com>
15043 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
15045 2009-06-16 Ian Lance Taylor <iant@google.com>
15047 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
15048 inline, not extern inline.
15049 (exact_log2): Likewise.
15050 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
15052 (exact_log2): Likewise, but don't test CTZ_HWI.
15054 2009-06-16 Ian Lance Taylor <iant@google.com>
15056 * bitmap.c (bitmap_clear): Don't declare as inline.
15057 * gimple.c (gimplify_assign): Likewise.
15058 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15059 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
15060 (sched_scan_info): Remove duplicate definition.
15062 2009-06-16 Ian Lance Taylor <iant@google.com>
15064 * c-common.c (skip_evaluation): Don't define.
15065 (c_inhibit_evaluation_warnings): Define global variable.
15066 (overflow_warning): Check c_inhibit_evaluation_warnings rather
15067 than skip_evaluation.
15068 (convert_and_check, warn_for_div_by_zero): Likewise.
15069 * c-common.h (skip_evaluation): Don't declare.
15070 (c_inhibit_evaluation_warnings): Declare.
15071 * c-parser.c (c_parser_typeof_specifier): Set
15072 c_inhibit_evaluation_warnings rather than skip_evaluation.
15073 (c_parser_conditional_expression): Likewise.
15074 (c_parser_binary_expression): Likewise.
15075 (c_parser_sizeof_expression): Likewise.
15076 (c_parser_alignof_expression): Likewise.
15077 * c-typeck.c (build_indirect_ref): Check
15078 c_inhibit_evaluation_warnings rather than skip_evaluation.
15079 (build_conditional_expr, build_binary_op): Likewise.
15081 2009-06-16 Richard Guenther <rguenther@suse.de>
15083 * tree-ssa-alias.c (is_escape_site): Remove.
15084 * tree-ssa-alias.h (enum escape_type): Remove.
15085 (is_escape_site): Likewise.
15086 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
15087 via casts and asms without deferring to is_escape_site.
15089 2009-06-16 Jakub Jelinek <jakub@redhat.com>
15091 PR middle-end/40446
15092 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
15093 use gen_lowpart if op0 has complex mode.
15095 2009-06-16 Richard Guenther <rguenther@suse.de>
15097 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
15098 variables add them to ESCAPED.
15099 (find_func_aliases): Do not make all indirectly stored values escaped.
15101 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
15103 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
15104 make_decl_one_only.
15106 2009-06-16 Martin Jambor <mjambor@suse.cz>
15108 PR tree-optimization/40432
15109 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
15110 check whether we need to force gimple register operand.
15112 2009-06-16 Martin Jambor <mjambor@suse.cz>
15114 PR tree-optimization/40413
15115 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
15116 build_ref_for_offset.
15117 (propagate_subacesses_accross_link): Fix a typo in a comment.
15119 2009-06-16 Ira Rosen <irar@il.ibm.com>
15121 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15122 with additional parameter.
15123 * tree-vectorizer.h (enum vect_def_type): Add new value
15125 (enum vect_relevant): Add comments.
15126 (vect_is_simple_reduction): Add new argument.
15127 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15128 Detect nested cycles.
15129 (vect_is_simple_reduction): Update documentation, add an argument to
15130 distinguish inner-loop reduction from nested cycle, detect nested
15131 cycles, fix printings and indentation, don't swap operands in case
15133 (get_initial_def_for_reduction): Handle subtraction.
15134 (vect_create_epilog_for_reduction): Add new argument to specify
15135 reduction variable.
15136 (vect_finalize_reduction): Handle subtraction, fix comments.
15137 (vectorizable_reduction): Handle nested cycles. In case of nested
15138 cycle keep track of the reduction variable position. Call
15139 vect_is_simple_reduction with additional parameter. Use original
15140 statement code in reduction epilogue for nested cycle. Call
15141 vect_create_epilog_for_reduction with additional parameter.
15142 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15143 inner-loop vectorization.
15144 (vect_recog_widen_sum_pattern): Likewise.
15145 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15147 (vect_mark_stmts_to_be_vectorized): Likewise.
15148 (vect_get_vec_def_for_operand): Handle nested cycles.
15150 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15152 * doc/invoke.texi (Debugging Options): Fix option index entries
15153 for -fdump-statistics, -frandom-seed add entries for
15154 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15155 (FRV Options): Fix entries for -mTLS, -mtls.
15156 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15157 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15158 (M68hc1x Options): Fix @itemx for -mnominmax.
15159 (MCore Options): Fix entry for -mno-lsim.
15160 (MMIX Options): Fix entry for -mabi=mmixware.
15161 (PDP-11 Options): Fix entry for -mbcopy-builtin.
15163 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
15165 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15166 Mention the plugin mode of gengtype.
15167 * doc/gty.texi (Source Files Containing Type Information): Likewise.
15168 * gengtype.c: Updated copyright.
15169 (plugin_files, nb_plugin_files) Added new static variables.
15170 (measure_input_list) Care about plugin_files.
15171 (write_rtx_next): Added early return in plugin mode.
15172 (create_file): Updated copyright year in generated file. Added
15174 (oprintf): Added early return if NULL outf.
15175 (get_output_file_with_visibility): Care of plugin_files.
15176 (get_output_file_name): May return null.
15177 (write_local): Added early return.
15178 (put_mangled_filename): Ditto.
15179 (finish_root_table): Added check for base_files.
15180 (write_roots): Care about null when plugins.
15181 (main): Added plugin mode.
15183 2009-06-15 Ian Lance Taylor <iant@google.com>
15185 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15186 * gcov.c (read_count_file): Add braces around variables declared
15189 * c.opt (Wjump-misses-init): New warning.
15190 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15191 -Wall and -Wc++-compat if not already set.
15192 (c_common_post_options): Clear warn_jump_misses_init if it was not
15194 * c-decl.c (struct c_binding): Change type field to a union with
15195 new label field. Make it the first field in the struct. Update
15196 references to type to use u.type instead.
15197 (struct c_spot_bindings): Define.
15198 (struct c_goto_bindings): Define.
15199 (c_goto_bindings_p): Define, along with VECs.
15200 (struct c_label_vars): Define.
15201 (struct c_scope): Add has_label_bindings field.
15202 (bind_label, set_spot_bindings): New static functions.
15203 (decl_jump_unsafe, update_spot_bindings): New static functions.
15204 (update_label_decls): New static function.
15205 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
15206 Update binding u.label field to shadowed field.
15207 (c_binding_start_stmt_expr): New function.
15208 (c_binding_end_stmt_expr): New function.
15209 (pushdecl): Don't call c_begin_vm_scope.
15210 (make_label): Add defining and p_label_vars parameters. Change
15212 (lookup_label): Correct test for whether a label has not yet been
15213 defined. Call bind_label rather than bind.
15214 (warn_about_goto): New static function.
15215 (lookup_label_for_goto): New function.
15216 (declare_label): Call bind_label rather than bind.
15217 (check_earlier_gotos): New static function.
15218 (define_label): Don't give errors about jumping into statement
15219 expressions or scopes of variably modified types. Call
15220 set_spot_bindings and check_earlier_gotos. Call bind_label
15221 instead of bind. Don't set label_context_stack_se or
15222 label_context_stack_vm.
15223 (c_get_switch_bindings): New function.
15224 (c_release_switch_bindings): New function.
15225 (c_check_switch_jump_warnings): New function.
15226 (start_function): Don't set label_context_stack_se or
15227 label_context_stack_vm.
15228 (finish_function): Likewise.
15229 * c-typeck.c (label_context_stack_se): Don't define.
15230 (label_context_stack_vm): Don't define.
15231 (c_finish_goto_label): Call lookup_label_for_goto rather than
15232 lookup_label. Don't give errors about jumping into a statement
15233 expression or the scope of a variably modified type. Don't set
15234 label_context_stack_se or label_context_stack_vm.
15235 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15236 fields. Add bindings field.
15237 (c_start_case): Don't set deleted fields. Set bindings field.
15238 (do_case): Rework order of tests. Don't check blocked_stmt_expr
15239 or blocked_vm. Call c_check_switch_jump_warnings.
15240 (c_finish_case): Don't test blocked_stmt_expr field. Call
15241 c_release_switch_bindings.
15242 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15243 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15244 set label_context_stack_se. Call c_bindings_start_stmt_expr.
15245 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15246 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15247 set label_context_stack_se. Call c_bindings_end_stmt_expr.
15248 (c_begin_vm_scope, c_end_vm_scope): Don't define.
15249 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15250 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15251 (C_DECL_UNJUMPABLE_VM): Don't define.
15252 (C_DECL_UNDEFINABLE_VM): Don't define.
15253 (struct c_label_list): Don't define.
15254 (struct c_label_context_se): Don't define.
15255 (struct c_label_context_vm): Don't define.
15256 (struct c_spot_bindings): Declare.
15257 (c_bindings_start_stmt_expr): Declare.
15258 (c_bindings_end_stmt_expr): Declare.
15259 (lookup_label_for_goto): Declare.
15260 (c_get_switch_bindings, c_release_switch_bindings): Declare.
15261 (c_check_switch_jump_warnings): Declare.
15262 (label_context_stack_se, label_context_stack_vm): Don't declare.
15263 (c_finish_goto_label): Update declaration.
15264 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15265 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15266 (Warning Options): Document -Wjump-misses-init.
15268 2009-06-15 Jakub Jelinek <jakub@redhat.com>
15270 * tree-object-size.c (addr_object_size): Fix a pasto in the last
15273 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
15275 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15277 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
15279 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15281 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
15283 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15285 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
15287 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15288 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15289 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15290 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15291 * dwarf2asm.c (dw2_force_const_mem): Update call to
15292 make_decl_one_only.
15293 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15294 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15295 * langhooks.c (lhd_comdat_group): Remove.
15296 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15297 * tree.h (DECL_COMDAT_GROUP): New.
15298 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15299 (tree_decl_with_vis): Add comdat_group. Remove one_only.
15300 (make_decl_one_only): Change signature.
15301 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15302 make_decl_one_only.
15303 (make_decl_one_only): Change signature.
15304 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15306 2009-06-15 Richard Guenther <rguenther@suse.de>
15308 PR middle-end/40439
15309 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15311 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15313 * tree-ssa-math-opts.c: Remove extra divide.
15315 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15317 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15319 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15321 * passes.c: Add bswap pass.
15322 * tree-pass.h: Add pass_optimize_bswap declaration.
15323 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15324 Include rtl.h, expr.h and optabs.h for optab_handler check.
15325 (struct symbolic_number, pass_optimize_bswap): New definition.
15326 (do_shift_rotate, verify_symbolic_number_p): New functions.
15327 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15328 (gate_optimize_bswap): New function.
15329 * tree.c (widest_int_cst_value): New function.
15330 * tree.h (widest_int_cst_value): Prototype added.
15332 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
15334 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15335 REG_EQUAL/REG_EQUIV notes.
15337 2009-06-14 Richard Guenther <rguenther@suse.de>
15339 PR middle-end/40389
15340 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15341 has its address taken if NRV was applied and it is addressable.
15342 * tree-ssa-structalias.c (get_constraint_for_address_of): New
15343 function split out from ...
15344 (get_constraint_for_1): ... here.
15345 (handle_rhs_call): Use it to mark the return slot escaped if
15346 it is addressable and NRV was applied.
15348 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
15350 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15351 Change first argument type to location_t.
15352 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15353 Do not set input_location.
15354 Use loc instead of input_location throughout.
15356 2009-06-13 Richard Guenther <rguenther@suse.de>
15358 PR tree-optimization/40421
15359 * tree-predcom.c (should_unroll_loop_p): Remove.
15360 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15362 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15364 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15365 Add location argument.
15367 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
15369 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15371 * config/s390/s390.c (s390_build_builtin_va_list): Same.
15372 (s390_gimplify_va_arg): Pass location to create_artificial_label.
15373 * config/spu/spu-protos.h: Add location to
15374 spu_resolve_overloaded_builtin.
15375 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15376 spu_build_builtin_va_list.
15377 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15378 argument. Pass location to build_function_call_vec.
15379 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15381 (emit_fpu_switch): Same.
15382 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15383 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15384 to build_decl and create_artificial_label.
15385 (xtensa_gimplify_va_arg_expr): Same.
15386 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15387 (xstormy16_gimplify_va_arg_expr): Same.
15388 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15389 * config/arm/arm.c (arm_build_builtin_va_list): Same.
15390 * config/mips/mips.c (mips_build_builtin_va_list): Same.
15391 (mips16_build_function_stub): Same.
15392 (mips16_build_call_stub): Same.
15394 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
15397 * arm/constraints.md (Pa, Pb): New constraints.
15398 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
15399 split pattern to deal with them.
15401 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
15403 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15404 fix index entry for -Xpreprocessor.
15406 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
15408 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15409 Add location argument to build_decl call.
15410 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15411 (rs6000_init_builtins): Same.
15412 (spe_init_builtins): Same.
15413 (rs6000_gimplify_va_arg): Add location argument to
15414 create_artificial_label call.
15416 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
15418 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15419 * combine-stack-adj.c (pass_stack_adjustments): Use it.
15420 * Makefile.in: Fix GGC dependency for gcse.o.
15422 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
15424 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15425 * gimple-pretty-print.c (dump_gimple_stmt): Same.
15426 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15428 * c-parser.c (c_parser_binary_expression): Use current column while
15429 building binary operations.
15430 * common.opt (fshow-column): Enable by default.
15431 * tree-vrp.c (check_array_ref): Use warning_at.
15432 (check_array_bounds): Use location from call back if expr has no
15434 * tree.h: Add location argument to maybe_fold_*.
15435 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15436 (maybe_fold_offset_to_array_ref): Add location argument and use it.
15437 (maybe_fold_offset_to_component_ref): Same.
15438 (maybe_fold_offset_to_reference): Same.
15439 (maybe_fold_offset_to_address): Same.
15440 (maybe_fold_stmt_indirect): Same.
15441 (maybe_fold_stmt_addition): Same.
15442 (fold_stmt_r): Pass location to maybe_fold_*.
15443 (fold_gimple_assign): Same.
15444 * c-tree.h: Add location argument to finish_decl,
15445 default_function_array_conversion, store_init_value.
15446 * c-decl.c (define_label): Use error_at.
15447 (c_make_fname_decl): Pass location to finish_decl.
15448 (finish_decl): New location argument.
15449 (build_compound_literal): Pass location to store_init_value.
15450 (grokdeclarator): Pass location to finish_decl.
15452 * c-typeck.c (array_to_pointer_conversion): New location argument.
15453 (function_to_pointer_conversion): Same.
15454 (default_function_array_conversion): Same.
15455 (parser_build_unary_op): Pass location to overflow_warning.
15456 (parser_build_binary_op): Same. Use warning_at.
15457 (build_unary_op): Pass location to array_to_pointer_conversion.
15458 (build_c_cast): Pass location to digest_init.
15459 (build_modify_expr): New location argument.
15460 (convert_for_assignment): Same.
15461 (store_init_value): Same.
15462 (digest_init): Same.
15463 (output_init_element): Pass location to digest_init and
15464 array_to_pointer_conversion.
15465 (c_finish_return): Pass location to convert_for_assignment.
15466 * gimplify.c (gimplify_conversion): Pass location to
15467 maybe_fold_offset_to_address.
15468 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15469 to maybe_fold_stmt_addition.
15470 * c-omp.c (c_finish_omp_atomic): Pass new location to
15472 (c_finish_omp_for): Same.
15473 * c-common.c (overflow_warning): New argument.
15474 * c-common.h: New argument to build_modify_expr, overflow_warning.
15475 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15477 (c_parser_initializer): Pass location to
15478 default_function_array_conversion.
15479 (c_parser_initelt): Same.
15480 (c_parser_initval): Same.
15481 (c_parser_asm_operands): Same.
15482 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
15483 (c_parser_conditional_expression): Same.
15484 (c_parser_binary_expression): Add location info to stack. Use it.
15485 (c_parser_unary_expression): Pass location to
15486 default_function_array_conversion, parser_build_unary_op,
15487 build_indirect_ref, c_parser_postfix_expression_after_primary.
15488 (c_parser_postfix_expression_after_primary): New location argument.
15490 (c_parser_expression_conv): Pass location to
15491 default_function_array_conversion.
15492 (c_parser_expr_list): Same.
15493 (c_parser_omp_atomic): Same.
15494 (c_parser_omp_for_loop): Same.
15495 * c-tree.h (struct c_declarator): Add comment to id_loc.
15496 (build_array_declarator): New argument.
15497 * c-decl.c (build_array_declarator): Add location argument.
15498 (grokdeclarator): Set id_loc for cdk_array.
15499 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15500 build_array_declarator.
15501 * tree.c (build_omp_clause): Add location argument.
15502 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15503 (OMP_CLAUSE_LOCATION): New macro.
15504 (struct tree_omp_clause): Add location field.
15505 (build_omp_clause): Add argument.
15506 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15508 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15509 (cp_parser_omp_clause_collapse): Same.
15510 (cp_parser_omp_clause_default): Same.
15511 (cp_parser_omp_clause_if): Same.
15512 (cp_parser_omp_clause_nowait): Same.
15513 (cp_parser_omp_clause_num_threads): Same.
15514 (cp_parser_omp_clause_ordered): Same.
15515 (cp_parser_omp_clause_schedule): Same.
15516 (cp_parser_omp_clause_untied): Same.
15517 (cp_parser_omp_for_loop): Same.
15518 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15519 * c-tree.h (c_start_case): Add location argument.
15520 (c_process_expr_stmt): Same.
15521 (c_finish_goto_*): Same.
15522 * tree-parloops.c (initialize_reductions): Pass location to
15524 (create_parallel_loop): Same.
15525 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15526 (gfc_trans_omp_reduction_list): Same.
15527 (gfc_trans_omp_clauses): Same.
15528 (gfc_trans_omp_do): Same.
15529 * c-typeck.c (c_finish_goto_label): Same.
15530 (c_finish_goto_ptr): New location argument.
15531 (c_start_case): Same.
15532 (emit_side_effect_warnings): Same.
15533 (c_process_expr_stmt): Same.
15534 (c_finish_stmt_expr): Same.
15535 (c_finish_omp_clauses): Use error_at instead of error.
15536 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15538 * c-omp.c (c_split_parallel_clauses): New location argument.
15539 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15540 to build_omp_clause.
15541 (convert_local_reference_stmt): Same.
15542 (convert_gimple_call): Same.
15543 * c-common.h (c_split_parallel_clauses): New argument.
15544 * c-parser.c (c_parser_statement_after_labels): Pass location to
15545 c_finish_goto_label.
15546 (c_parser_switch_statement): Pass location to c_start_case.
15547 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15548 and c_process_expr_stmt.
15549 (c_parser_omp_variable_list): Add location argument.
15550 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15551 (c_parser_omp_clause_default): Same.
15552 (c_parser_omp_clause_if): Same.
15553 (c_parser_omp_clause_num_threads): Same.
15554 (-c_parser_omp_clause_ordered): Same.
15555 (c_parser_omp_clause_reduction): Pass location to
15556 c_parser_omp_variable_list.
15557 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15558 (c_parser_omp_clause_untied): Same.
15559 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15560 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15562 * c-tree.h (check_for_loop_decls, undeclared_variable,
15563 build_component_ref, build_array_ref, build_external_ref,
15564 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15565 build_conditional_expr, build_compound_expr, c_cast_expr,
15566 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15567 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15569 * c-semantics.c (build_stmt): Same.
15570 (build_case_label): Same.
15571 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15572 (undeclared_variable): New argument.
15573 (make_label): Same.
15574 (lookup_label): Pass location on down.
15575 (define_label): Same.
15576 (finish_decl): Same.
15577 (build_compound_literal): Same.
15578 (finish_struct): Same.
15579 (finish_function): Do not set location here.
15580 (check_for_loop_decls): New argument.
15581 * tree.c (save_expr): Set location.
15582 (build_empty_stmt): New argument.
15583 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15584 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15585 * builtins.c (gimplify_va_arg_expr): Use locations.
15586 (expand_builtin_sync_operation): Same.
15587 * c-typeck.c (build_component_ref): New argument.
15588 (build_array_ref): Same.
15589 (build_external_ref): Same.
15590 (c_expr_sizeof_expr): Same.
15591 (c_expr_sizeof_type): Same.
15592 (parser_build_unary_op): Same.
15593 (build_conditional_expr): Same.
15594 (build_compound_expr): Pass location on down.
15595 (build_compound_expr): New argument.
15596 (build_c_cast): Same.
15597 (c_cast_expr): Same.
15598 (build_asm_expr): Same.
15599 (c_finish_return): Same.
15600 (c_process_expr_stmt): Pass location on down.
15601 (c_finish_stmt_expr): New argument.
15602 (push_clenaup): Same.
15603 (c_finish_omp_parallel): Same.
15604 (c_finish_omp_task): Same.
15605 * gimplify.c (gimplify_call_expr): Pass location on down.
15606 * c-omp.c (c_finish_omp_master): New argument.
15607 (c_finish_omp_critical): Same.
15608 (c_finish_omp_ordered): Same.
15609 (c_finish_omp_barrier): Same.
15610 (-c_finish_omp_taskwait): Same.
15611 (c_finish_omp_atomic): Same.
15612 (c_finish_omp_flush): Same.
15613 * tree-inline.c (copy_tree_body_r): Pass location on down.
15614 (inline_forbidden_p): Remove use of input_location.
15615 * c-gimplify.c (c_build_bind_expr): New argument.
15616 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15617 (c_sizeof_or_alignof_type): New argument.
15618 (c_alignof_expr): Same.
15619 (build_va_arg): Same.
15620 (c_add_case_label): Same.
15621 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15622 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15623 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15624 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15625 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15626 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15628 * stub-objc.c (objc_build_selector_expr): Same.
15629 (objc_build_throw_stmt): Same.
15630 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15631 (c_parser_initelt): Same.
15632 (c_parser_compound_statement): Same.
15633 (c_parser_compound_statement_nostart): Same.
15634 (c_parser_label): Same.
15635 (c_parser_statement_after_labels): Same.
15636 (c_parser_if_body): Same.
15637 (c_parser_else_body): Same.
15638 (c_parser_if_statement): Same.
15639 (c_parser_switch_statement): Same.
15640 (c_parser_while_statement): Same.
15641 (c_parser_do_statement): Same.
15642 (c_parser_for_statement): Same.
15643 (c_parser_asm_statement): Same.
15644 (c_parser_conditional_expression): Same.
15645 (c_parser_binary_expression): Same.
15646 (c_parser_cast_expression): Same.
15647 (c_parser_unary_expression): Same.
15648 (c_parser_sizeof_expression): Same.
15649 (c_parser_alignof_expression): Same.
15650 (c_parser_postfix_expression): Same.
15651 (c_parser_expression): Same.
15652 (c_parser_objc_receiver): Same.
15653 (c_parser_omp_variable_list): Same.
15654 (c_parser_omp_structured_block): Same.
15655 (c_parser_omp_atomic): New argument.
15656 (c_parser_omp_barrier): Same.
15657 (c_parser_omp_critical): Same.
15658 (c_parser_omp_flush): Pass location on down.
15659 (c_parser_omp_for_loop): New argument.
15660 (c_parser_omp_for): Same.
15661 (c_parser_omp_master): Same.
15662 (c_parser_omp_ordered): Same.
15663 (c_parser_omp_sections_scope): Same.
15664 (c_parser_omp_sections): Same.
15665 (c_parser_omp_parallel): Same.
15666 (c_parser_omp_single): Same.
15667 (c_parser_omp_task): Same.
15668 (c_parser_omp_taskwait): Pass location on down.
15669 (c_parser_omp_construct): Same.
15670 (c_parser_omp_threadprivate): Same.
15671 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15672 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15673 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15674 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15675 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15676 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15677 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15678 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15679 config/i386/i386.c, stmt.c:
15680 Add location argument to the following function definitions and/or
15681 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15682 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15683 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15684 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15685 do_case, c_finish_bc_stmt, build_compound_literal,
15686 build_function_call.
15687 * c-decl.c (build_compound_literal): Add location argument.
15688 Make all diagnostic calls use location.
15689 (start_struct): Same.
15690 (finish_struct): Same.
15691 (start_enum): Same.
15692 (build_enumerator): Same.
15693 (start_function): Same.
15694 (grokdeclarator): Make all diagnostic calls use location.
15695 (store_parm_decls_oldstyle): Same.
15696 * c-typeck.c (build_function_call): Add location argument.
15697 Make all diagnostic calls use location.
15699 (c_finish_bc_stmt): Same.
15700 * tree-nested.c (get_trampoline_type): Add argument.
15701 Pass location to build_decl.
15702 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15703 * rtl.h (RTL_LOCATION): New.
15704 * c-common.c (c_add_case_label): Add location argument.
15705 Make all diagnostic calls use location.
15706 * c-common.h: Add location argument to make_fname_decl, do_case,
15707 c_add_case_label, build_function_call, resolve_overloaded_builtin.
15708 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15709 Set it appropriately for every case. Pass enum_loc to start_enum
15710 call. Pass value_loc first to build_enumerator. Pass enum_loc to
15712 (c_parser_struct_or_union_specifier): Save location. Use it for
15713 start_struct, finish_struct, and parser_xref_tag.
15715 2009-06-12 Ian Lance Taylor <iant@google.com>
15717 * fold-const.c (fold_unary): Rename local variable and to and_expr.
15719 * c-opts.c (c_common_handle_option): For -Wc++-compat set
15720 cpp_opts->warn_cxx_operator_names.
15722 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
15725 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15726 is returns NULL and OP is a VCE, look through the VCE.
15728 2009-06-12 Ian Lance Taylor <iant@google.com>
15731 * collect2.c (main): Use CONST_CAST2 in code inside #if
15732 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15734 2009-06-12 Joey Ye <joey.ye@intel.com>
15736 PR middle-end/39146
15737 * cfgexpand.c (get_decl_align_unit): Update
15738 max_used_stack_slot_alignment with align instead of
15739 stack_alignment_needed.
15741 * function.c (assign_stack_local_1): Update
15742 max_used_stack_slot_alignment with alignment_in_bits instead
15743 of stack_alignment_needed.
15744 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15747 2009-06-12 Jakub Jelinek <jakub@redhat.com>
15749 * dwarf2out.c (last_var_location_insn): New variable.
15750 (dwarf2out_end_epilogue): Clear last_var_location_insn.
15751 (dwarf2out_var_location): Don't record anything after last real
15752 insn. Only change labels if there were any real instructions
15753 in between last note and this one, or if changed sections.
15755 2009-06-11 Richard Henderson <rth@redhat.com>
15757 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15758 note when storing the frame pointer in a register.
15759 (FRP): Don't redefine to nothing for epilogue.
15760 (alpha_expand_epilogue): Mark register and sp restores.
15761 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15763 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15764 when gen_lowpart is needed.
15766 2009-06-11 Richard Henderson <rth@redhat.com>
15768 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15770 * dwarf2out.c (need_data_align_sf_opcode): New.
15771 (div_data_align): Move earlier.
15772 (def_cfa_1, reg_save): Use it.
15774 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
15776 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15777 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15778 (ix86_handle_option): Handle OPT_mcrc32.
15779 (ix86_target_string): Add -mcrc32.
15780 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15782 * config/i386/i386.h (TARGET_CRC32): New.
15784 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
15785 (sse4_2_crc32di): Likewise.
15787 * config/i386/i386.opt (mcrc32): New.
15789 * doc/invoke.texi: Document -mcrc32.
15791 2009-06-11 Richard Henderson <rth@redhat.com>
15793 * common.opt (gdwarf-): Accept a version number.
15794 * doc/invoke.texi (gdwarf-): Update docs.
15795 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15796 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15797 version level, and record it.
15799 * dwarf2.h (DW_CIE_VERSION): Remove.
15800 * dwarf2out.c (DWARF_VERSION): Remove.
15801 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15802 (output_call_frame_info): Use CIE version 3 for dwarf3,
15803 or if the return register column is out of range for version 1.
15804 (dwarf_stack_op_name): Add all dwarf3 values.
15805 (DEBUG_PUBTYPES_SECTION): New.
15806 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15807 encoding change for dwarf3.
15808 (output_die) [dw_val_class_die_ref]: Likewise.
15809 (output_compilation_unit_header): Emit correct version for dwarf3.
15810 (output_line_info): Likewise.
15811 (output_pubnames): Update for DWARF_VERSION removal.
15812 (output_aranges): Likewise.
15813 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15814 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15815 (dwarf2out_finish): Likewise.
15817 2009-06-11 David Daney <ddaney@caviumnetworks.com>
15819 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15822 2009-06-11 David Daney <ddaney@caviumnetworks.com>
15825 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15826 * builtins.c (expand_builtin_unreachable): New function.
15827 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15828 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15829 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15831 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15832 searching for missing barriers.
15834 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15836 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15837 when -fprofile-generate* was passed.
15838 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15840 2009-06-11 Anthony Green <green@moxielogic.com>
15842 * config/moxie/moxie.md: Define length attribute for all instructions.
15844 (*b<cond:code>): Support limited branch ranges for new PC-relative
15845 branch instructions.
15846 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15848 2009-06-11 Jakub Jelinek <jakub@redhat.com>
15850 * config/i386/i386.c (min_insn_size): Use get_attr_length
15851 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15852 For __asm return 0.
15854 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15855 instead of emit_insn_before.
15857 2009-06-10 Ian Lance Taylor <iant@google.com>
15860 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15863 2009-06-10 Revital Eres <eres@il.ibm.com>
15865 * passes.c (init_optimization_passes): Reschedule
15866 predictive-commoning pass before complete unroll pass.
15868 2009-06-10 Martin Jambor <mjambor@suse.cz>
15870 * cgraph.c (cgraph_node_can_be_local_p): New function.
15871 (cgraph_make_node_local): New function.
15872 * cgraph.h (cgraph_node_can_be_local_p): Declare.
15873 (cgraph_make_node_local): Declare.
15875 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
15877 * tree.h (tree_base): Add packed_flag and user_align fields.
15878 Decrease size of spare field.
15879 (TYPE_USER_ALIGN): Use user_align from tree_base.
15880 (DECL_USER_ALIGN): Likewise.
15881 (TYPE_PACKED): Use packed_flag from tree_base.
15882 (DECL_PACKED): Likewise.
15883 (tree_type): Delete packed_flag and user_align fields. Widen
15884 precision field. Widen mode field and shuffle fields to align
15885 mode on an 8-bit boundary.
15886 (tree_decl_common): Delete decl_flag_1 and user_align fields.
15887 Renumber decl_flag_* fields. Fix comments. Widen
15888 decl_common_unused field.
15889 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
15890 (DECL_EXTERNAL): Likewise.
15891 (DECL_BIT_FIELD): Likewise.
15892 (DECL_NONADDRESSABLE_P): Likewise.
15893 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15894 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15896 2009-06-10 Ian Lance Taylor <iant@google.com>
15898 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15899 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15900 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15901 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15902 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15903 DEF_VEC_ALLOC_FUNC_P.
15904 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15905 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15906 DEF_VEC_ALLOC_FUNC_O.
15907 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15908 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15909 DEF_VEC_ALLOC_FUNC_I.
15910 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15911 (vec_stack_p_reserve_exact_1): Declare.
15912 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15913 (vec_stack_free): Declare.
15914 (VEC_stack_alloc): Define.
15915 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15916 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15917 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15918 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
15920 (stack_vecs): New static variable.
15921 (vec_stack_p_reserve_exact_1): New function.
15922 (vec_stack_o_reserve_1): New static function.
15923 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15924 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15925 (vec_stack_free): New function.
15926 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15927 (VEC_df_ref_stack_alloc): Define.
15928 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
15929 DEF_VEC_ALLOC_P_STACK.
15930 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15931 (struct df_collection_rec): Change _vec fields to VEC. Remove
15933 (df_free_collection_rec): Adjust for new fields.
15934 (df_insn_rescan): Use new df_collection_rec fields.
15935 (df_notes_rescan, df_canonize_collection_rec): Likewise.
15936 (df_ref_create_structure, df_ref_record): Likewise.
15937 (df_get_conditional_uses, df_get_call_refs): Likewise.
15938 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15939 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15940 (df_record_exit_block_uses, df_bb_verify): Likewise.
15941 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
15942 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15943 Remove count parameter. Change return type to void. Change all
15945 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15946 Remove count parameter. Change return type to void. Change all
15948 (df_install_refs): Change old_vec parameter to VEC. Remove count
15949 parameter. Change all callers.
15950 (df_install_mws): Change old_vec parameter to VEC. Remove count
15951 parameter. Change all callers.
15952 (df_refs_verify): Change new_rec parameter to VEC. Change call
15954 (df_mws_verify): Likewise.
15956 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
15958 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15960 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
15962 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15964 2009-06-10 Anthony Green <green@moxielogic.com>
15966 * config/moxie/crti.asm: New file.
15967 * config/moxie/crtn.asm: New file.
15968 * config/moxie/moxie.c: New file.
15969 * config/moxie/moxie.h: New file.
15970 * config/moxie/sfp-machine.h: New file.
15971 * config/moxie/moxie-protos.h: New file.
15972 * config/moxie/t-moxie: Created.
15973 * config/moxie/t-moxie-softfp: Created.
15974 * config/moxie/moxie.md: Created.
15975 * config/moxie/constraints.md: Created.
15976 * config.gcc: Add moxie support.
15977 * doc/md.texi (Machine Constraints): Add moxie constraints.
15978 * doc/contrib.texi (Contributors): Mention moxie port.
15979 * doc/install.texi (Specific): Mention the moxie port.
15981 2009-06-09 Ian Lance Taylor <iant@google.com>
15983 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15984 compiling with C++.
15985 * optabs.c (optab_table): Only use designated initializers if
15986 HAVE_DESIGNATED_INITIALIZERS is defined.
15987 (convert_optab_table): Likewise.
15988 (init_optabs): Always call init_insn_codes if
15989 HAVE_DESIGNATED_INITIALIZERS is not defined.
15991 2009-06-09 Ian Lance Taylor <iant@google.com>
15993 * targhooks.c (default_builtin_vectorized_function): Change fn
15994 parameter to unsigned int.
15995 (default_builtin_vectorized_conversion): Change code parameter to
15997 (default_builtin_reciprocal): Change fn parameter to unsigned int.
15998 * targhooks.h: Update declarations.
15999 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
16000 parameter to unsigned int.
16002 * c-typeck.c (comptypes_check_enum_int): New static function.
16003 (comptypes_internal): Add enum_and_int_p parameter. Change all
16005 (comp_target_types): Add location parameter. Change all callers.
16006 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
16007 Change all callers.
16008 (function_types_compatible_p, type_lists_compatible_p): Likewise.
16009 (build_conditional_expr): Add colon_loc parameter. Change all
16011 (convert_for_assignment): Add location parameter. Change all callers.
16012 * c-parser.c (c_parser_conditional_expression): Pass location of
16013 colon to build_conditional_expr.
16014 * c-tree.h (build_conditional_expr): Update declaration.
16016 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
16018 * graphite.c: Revert previous patch.
16020 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
16023 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
16025 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
16027 * tree-ssa-loop-prefetch.c
16028 (loop_prefetch_arrays): Fixed a portability problem in printf format
16031 2009-06-09 Martin Jambor <mjambor@suse.cz>
16033 PR tree-optimization/40351
16034 * tree-sra.c (propagate_subacesses_accross_link): Check that a
16035 refrence to a potential artifical subaccess can be constructed.
16037 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16039 * config/sh/sh-protos.h (sh_optimization_options): Declare.
16040 (sh_override_options): Likewise.
16041 * config/sh/sh.c: Include params.h.
16042 (sh_optimization_options): New.
16043 (sh_override_options): Likewise.
16044 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
16045 (OVERRIDE_OPTIONS): Use sh_override_options.
16047 2009-06-08 Jakub Jelinek <jakub@redhat.com>
16049 * dwarf2out.c (emit_cfa_remember): New variable.
16050 (add_fde_cfi): If emit_cfa_remember, recurse to add
16051 DW_CFA_remember_state first.
16052 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
16053 instead just set emit_cfa_remember.
16055 2009-06-08 Jan Hubicka <jh@suse.cz>
16058 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
16060 2009-06-08 Jan Hubicka <jh@suse.cz>
16062 PR middle-end/39834
16063 * cgraphunit.c (save_inline_function_body): Do not copy transform
16064 hooks for saved inline bodies.
16065 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
16066 for given function.
16068 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
16070 * jump.c (returnjump_p): Handle delayed branches. Add missing
16073 2009-06-08 Jan Hubicka <jh@suse.cz>
16075 PR middle-end/40102
16076 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
16077 original node might've been modified.
16078 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
16080 2009-06-08 Jakub Jelinek <jakub@redhat.com>
16082 * tree-object-size.c (addr_object_size): Add OSI argument.
16083 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
16084 (compute_builtin_object_size, expr_object_size): Adjust callers.
16085 (plus_stmt_object_size): Call addr_object_size instead of
16086 compute_builtin_object_size.
16088 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
16089 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
16091 * tree-ssa-loop-prefetch.c
16092 (gather_memory_references): Introduced a counter for the number of
16094 (anything_to_prefetch_p): Introduced a counter for the number of
16096 (is_loop_prefetching_profitable): New function with a cost model
16098 (loop_prefetch_arrays): Use the new cost model to determine if
16099 prefetching is profitable.
16100 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
16101 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16102 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
16103 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16104 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
16105 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16107 2009-06-08 Michael Matz <matz@suse.de>
16110 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
16111 partitions use the same.
16112 (expand_one_var): Deal with DECL_RTL sometimes begin set also
16113 for basevars of SSA_NAMEs.
16114 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
16115 to not expand them twice.
16116 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16119 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
16121 * common.opt (fcompare-debug=, fcompare-debug-second): New.
16122 (fdump-final-insns=, gtoggle): New.
16123 * doc/invoke.texi: Document them.
16124 * final.c (rest_of_clean_state): Dump final insn stream.
16125 * gcc.c (invoke_as): Hook in -fcompare-debug.
16126 (static_spec_functions): Add compare-debug-dump-opt,
16127 compare-debug-self-opt and compare-debug-auxbase-opt.
16128 (compare_debug, compare_debug_second, compare_debug_opt): New.
16129 (switches_debug_check, n_switches_debug_check): New.
16130 (debug_auxbase_opt, debug_check_temp_file): New.
16131 (process_command): Handle -fno-compare-debug, -fcompare-debug and
16133 (do_self_spec): Handle arguments after switches.
16134 (do_spec_1): Add .gk extension to temp file basenames for compare.
16135 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16136 (cc1_options): Use it instead of normal auxbase computation for
16137 the second compare-debug compilation.
16138 (compare_files): New.
16139 (main): Set up and implement compare debug mode.
16140 (compare_debug_dump_opt_spec_function): New.
16141 (compare_debug_self_opt_spec_function): New.
16142 (compare_debug_auxbase_opt_spec_function): New.
16143 * toplev.c (process_options): Handle flag_gtoggle,
16144 flag_dump_final_insns.
16145 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16146 during -fcompare-debug-second compilation.
16148 2009-06-07 Ian Lance Taylor <iant@google.com>
16150 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16151 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16153 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16154 with no default node. Change warning with %H to warning_at.
16155 Don't clear warn_switch around case checking.
16156 * doc/invoke.texi (Warning Options): Clarify distinction between
16157 -Wswitch and -Wswitch-enum.
16159 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16161 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16163 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16165 * gbl-ctors.h: Add header guard.
16167 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16169 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16170 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16171 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16172 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16173 prototypes for removed functions.
16174 (expressions_equal_p): Move to ...
16175 * tree-ssa-sccvn.h: ... here and ...
16176 * matrix-reorg.c: ... adjust includes.
16178 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16180 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16182 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16184 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16185 (finish_function): Remove erroneous whitespace.
16187 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16189 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16190 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16192 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16194 * errors.c (internal_error): Commentary typo fix.
16195 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16196 * tree-ssa-pre.c: Ditto.
16198 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16200 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16201 them is supposed to hold actual statements.
16203 2009-06-06 Ian Lance Taylor <iant@google.com>
16205 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16206 empty statements can now have attributes.
16208 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
16210 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16211 * config/mips/mips.md: Ditto.
16213 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16215 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16217 (__eabi_uconvert): Likewise.
16219 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16221 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16222 CFI_* definitions with IN_GCC.
16224 2009-06-05 David Edelsohn <edelsohn@gnu.org>
16226 * xcoffout.h (xcoffout_source_line): Update prototype.
16228 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16230 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16231 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16233 2009-06-05 Jakub Jelinek <jakub@redhat.com>
16235 PR middle-end/40340
16236 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16237 inlined_function_outer_scope_p blocks for artificial inlines
16239 * tree.c (tree_nonartificial_location): Rewrite using
16240 block_nonartificial_location.
16242 2009-06-05 Revital Eres <eres@il.ibm.com>
16243 Leehod Baruch <leehod@il.ibm.com>
16245 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16246 (expand_expr_real_1): Remove comment.
16247 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16248 Vectorize misaligned access when the target supports it.
16249 (vect_supportable_dr_alignment): Check for unaligned access support.
16250 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16253 2009-06-05 Julian Brown <julian@codesourcery.com>
16255 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16256 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16258 2009-06-05 Richard Guenther <rguenther@suse.de>
16261 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16262 as possibly unused.
16264 2009-06-05 Jakub Jelinek <jakub@redhat.com>
16266 * config/s390/s390.c (global_not_special_regno_p): New static inline.
16267 (save_gprs): Don't tell unwinder when a global register is saved.
16268 (s390_emit_epilogue): Emit needed epilogue unwind info.
16270 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
16272 * dwarf2out.c (deferred_asm_name): New.
16273 (add_name_and_src_coords_attributes): Defer creation of
16274 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16276 (move_linkage_attr): New.
16277 (dwarf2out_finish): Revisit deferrals and emit attributes at the
16280 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
16282 * tree-nested.c (finalize_nesting_tree_1): Declare the
16283 frame_decl in the binding tree.
16285 2009-06-04 Cary Coutant <ccoutant@google.com>
16287 * basic-block.h (struct basic_block_def): Add discriminator field.
16288 * dbxout.c (dbxout_source_line): Add new parameter. Change all
16290 * debug.c (do_nothing_debug_hooks): Add additional entry.
16291 (debug_nothing_int_charstar_int): New function.
16292 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16293 (debug_nothing_int_charstar_int): New declaration.
16294 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
16295 discriminator value in .loc directive.
16296 * final.c (last_discriminator): New variable.
16297 (discriminator): New variable.
16298 (final_start_function): Initialize above variables, pass current
16299 discriminator to debug hook.
16300 (notice_source_line): Check for discriminator change.
16301 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16302 * sdbout.c (sdbout_source_line): New parameter.
16303 * tree-cfg.c (struct locus_discrim_map): New structure type.
16304 (discriminator_per_locus): New hash table.
16305 (build_gimple_cfg): Allocate and free discriminator hash table.
16306 (make_edges): Call assign_discriminator.
16307 (locus_map_hash): New function.
16308 (locus_map_eq): New function.
16309 (next_discriminator_for_locus): New function.
16310 (same_line_p): New function.
16311 (assign_discriminator): New function.
16312 (make_cond_expr_edges): Call assign_discriminator.
16313 (make_gimple_switch_edges): Likewise.
16314 (first_non_label_stmt): New function.
16315 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
16317 * xcoffout.c (xcoffout_source_line): Add new parameter.
16319 * configure.ac (gcc_cv_as_discriminator): New configury check for
16320 gas support for discriminator.
16321 * configure: Regenerate.
16322 * config.in: Regenerate.
16324 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16326 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16327 val after checking for integers.
16329 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
16331 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16333 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16334 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16335 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16336 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16337 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
16338 X64_SSE_REGPARM_MAX.
16339 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16340 X64_SSE_REGPARM_MAX.
16342 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16344 * gcc.c (report_times_to_file): New.
16345 (execute): Implement it.
16346 (process_command): Support -time=.
16347 * doc/invoke.texi: Document it.
16349 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16351 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16352 that have value exprs.
16354 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16356 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16357 declarations for constants until...
16358 (dw2_output_indirect_constant_1): ... this point.
16360 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
16363 * arm.md (arm_addsi3): Don't try to split an add with an
16364 eliminable register until after reload has completed.
16366 2009-06-03 Ian Lance Taylor <iant@google.com>
16368 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16369 * genattrtab.c (write_length_unit_log): Likewise.
16370 * genchecksum.c (dosum): Likewise.
16371 * gengtype.c (write_rtx_next): Likewise.
16372 (finish_root_table, write_roots): Likewise.
16373 * gimple.c (gimple_ops_offset_): Likewise.
16374 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16375 * config/arc/arc.c (arc_attribute_table): Likewise.
16376 * config/arm/arm.c (arm_attribute_table): Likewise.
16377 * config/avr/avr.c (avr_attribute_table): Likewise.
16378 * config/crx/crx.c (crx_attribute_table): Likewise.
16379 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16380 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16381 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16382 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16383 * config/sh/sh.c (sh_attribute_table): Likewise.
16384 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16385 * config/spu/spu.c (spu_attribute_table): Likewise.
16386 * config/v850/v850.c (v850_attribute_table): Likewise.
16388 * config/alpha/alpha.c (vms_attribute_table): Make static.
16389 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16390 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16391 * config/mips/mips.c (mips_attribute_table): Likewise.
16393 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16395 (cc1-checksum.o): Likewise.
16397 2009-06-03 Steve Ellcey <sje@cup.hp.com>
16399 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16401 2009-06-03 Jakub Jelinek <jakub@redhat.com>
16403 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16404 insn if it is changing sp. Use gen_add3_insn instead of
16405 conditionally gen_addsi3 and gen_adddi3.
16406 (offset_below_red_zone_p): New static inline function.
16407 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16408 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16409 * config/rs6000/ppc-asm.h: Include auto-host.h.
16410 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16411 CFI_RESTORE): Define.
16412 * config/rs6000/crtresxgpr.asm: Add unwind info.
16413 * config/rs6000/crtresxfpr.asm: Likewise.
16414 * config/rs6000/crtresgpr.asm: Likewise.
16415 * config/rs6000/crtresfpr.asm: Likewise.
16416 * config/rs6000/crtsavgpr.asm: Likewise.
16417 * config/rs6000/crtsavfpr.asm: Likewise.
16419 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16420 argument of DWARF2_FRAME_REG_OUT macros.
16422 2009-06-03 Julian Brown <julian@codesourcery.com>
16424 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16425 words or less (including TImode) in core registers.
16427 2009-06-03 Richard Guenther <rguenther@suse.de>
16429 PR middle-end/40328
16430 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16432 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
16434 * statistics.c (statistics_counter_event): Do not record event
16435 in pass dump if its number == -1.
16436 (curr_statistics_hash): Add assert that we never get passes
16437 with static number == -1.
16439 2009-06-03 Richard Guenther <rguenther@suse.de>
16440 Andrey Belevantsev <abel@ispras.ru>
16442 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16443 non-BLKmode arrays addressable.
16445 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
16447 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16448 * config/m68k/m68k.h: ... here.
16450 2009-06-03 Martin Jambor <mjambor@suse.cz>
16452 PR tree-optimization/40323
16453 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16456 2009-06-03 Richard Guenther <rguenther@suse.de>
16458 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16461 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
16463 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16464 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16465 JUMP_TABLE_DATA_P where applicable.
16466 * config/sh/sh.c: Ditto.
16467 * config/sh/sh.h: Ditto.
16468 * config/sh/sh.md: Ditto.
16469 * config/sh/symbian.c: Ditto.
16471 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
16473 * config/i386/driver-i386.c (describe_cache): Optimize
16474 concatenation of strings. Use snprintf instead of sprintf.
16475 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
16476 target when not compiling with GCC.
16478 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16480 * config/sh/sh.c: Revert last change.
16481 (sh_expand_epilogue): Emit a blockage insn before the frame
16482 pointer adjustment unconditionally.
16484 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16486 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16487 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16488 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16489 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16490 to COLLECT_GCC_OPTIONS.
16492 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16494 * collect2.c (target_system_root): New variable.
16495 (main): Handle --sysroot=.
16496 (ignore_library): Strip the sysroot from the library path.
16498 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16500 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16501 (collect2.o): Depend on collect2-aix.h.
16502 (collect2-aix.o): New rule.
16503 * collect2-aix.h: New file.
16504 * collect2-aix.c: Likewise.
16505 * collect2.c: Include collect2-aix.h. Don't undefine
16506 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16507 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16508 Use TARGET_AIX_VERSION instead of _AIX51.
16509 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16510 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16511 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16512 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16513 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16515 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16517 * collect2.c (ignore_library): Avoid premature post-increment
16518 and null deference.
16520 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16522 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16523 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16524 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16525 CROSS_DIRECTORY_STRUCTURE too.
16526 (LINK_LIBG_SPEC): Likewise.
16527 (LIB_SPEC): Add %R to sysroot paths.
16528 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16529 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16530 * config/rs6000/aix51.h: As for aix43.h.
16531 * config/rs6000/aix52.h: Likewise.
16532 * config/rs6000/aix53.h: Likewise.
16533 * config/rs6000/aix61.h: Likewise.
16534 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16535 to the beginning of sysroot paths.
16537 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16539 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16540 INSN_LISTs that are out of the REG_NOTE range.
16542 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16544 * loop-unroll.c (struct iv_to_split): Add pointer to next.
16545 (struct var_to_expand): Likewise.
16546 (struct opt_info): Add head and tail for linked lists of the above.
16547 (analyze_insn_to_expand_var): Initialize next.
16548 (analyze_iv_to_split_insn): Likewise.
16549 (analyze_insns_in_loop): Create linked lists.
16550 (allocate_basic_variable): Simplify for use without hash table.
16551 (insert_var_expansion_initialization): Likewise, make it type-safer.
16552 (combine_var_copies_in_loop_exit): Likewise.
16553 (apply_opt_in_copies): Walk lists rather than hash tables.
16554 (release_var_copies): Simplified and inlined by hand into...
16555 (free_opt_info): ... this function.
16557 2009-06-02 Richard Guenther <rguenther@suse.de>
16559 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16562 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16564 * cfgexpand.c (gimple_expand_cfg): Discard the source location
16565 only for builtins that are not overridden.
16567 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16569 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16572 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16574 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16576 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16578 * combine.c (move_deaths): Compare LUIDs within the same BB only.
16580 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16582 * common.opt (fdump-unnumbered-links): New.
16583 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16584 * print-rtl.c (flag_dump_unnumbered_links): New.
16585 (print_rtx): Test it.
16587 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
16589 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16590 push/pop multiple to 8-byte alignment.
16592 2009-06-01 Jakub Jelinek <jakub@redhat.com>
16594 * config/i386/i386.c (queued_cfa_restores): New static variable.
16595 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16597 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16598 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16599 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16600 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16601 note unconditionally.
16602 (ix86_emit_restore_regs_using_mov): Likewise.
16603 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16604 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16605 it through to ix86_emit_restore_reg_using_pop.
16606 (ix86_emit_leave): Add RED_OFFSET argument. Call
16607 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
16608 instead of adding REG_CFA_OFFSET note unconditionally.
16609 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16610 the above functions. Call ix86_add_queued_cfa_restore_notes when
16613 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16614 force output of the label even for dwarf2out_do_cfi_asm.
16615 (add_fde_cfi): If -g2 and above and cfi might change CFA,
16616 force creation of CFI label and chain DW_CFA_set_loc jumping to it
16617 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
16619 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16620 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16621 dwarf2out_cfi_label callers.
16622 * tree.h (dwarf2out_cfi_label): Adjust prototype.
16623 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16624 Adjust dwarf2out_cfi_label callers.
16625 * config/vax/vax.c (vax_output_function_prologue): Likewise.
16627 * config/i386/i386.h (struct machine_cfa_state,
16628 struct machine_function): Guard with ifndef USED_FOR_TARGET
16629 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16632 * emutls.c (__emutls_get_address): Change arr->size to mean number
16633 of allocated arr->data entries instead of # of slots + 1.
16635 PR middle-end/40316
16636 * recog.c (peep2_reinit_state): New function.
16637 (peephole2_init_state): Use it at the end of a basic block and also
16638 when seeing a RTX_FRAME_RELATED_P insn.
16640 2009-06-01 Steve Ellcey <sje@cup.hp.com>
16642 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16643 fixuns_truncrfdi2): New.
16644 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16645 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16646 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16647 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16648 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16649 *recip_approx): Remove.
16650 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16651 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16652 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16654 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16657 2009-06-01 Ian Lance Taylor <iant@google.com>
16659 * attribs.c (register_attribute): Use CONST_CAST.
16660 * collect2.c (main): Use CONST_CAST2.
16661 (scan_prog_file): Likewise.
16662 * gcc.c (process_command, main): Likewise.
16663 * toplev.c (toplev_main): Likewise.
16665 * c-typeck.c (handle_warn_cast_qual): New static function,
16666 partially broken out of build_c_cast.
16667 (build_c_cast): Call handle_warn_cast_qual.
16668 * doc/invoke.texi (Warning Options): Document new effect of
16671 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
16673 * diagnostic.c (diagnostic_build_prefix): Always print columns.
16674 (diagnostic_report_current_module): Print columns.
16675 * common.opt (flag_show_column): Enable by default.
16677 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
16679 * alias.c (find_base_term): Check for NULL term before returning.
16681 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16683 Revert due to PR40320:
16684 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16685 * calls.c (emit_library_call_value_1): Don't force_operand for move
16688 2009-06-01 Olivier Hainque <hainque@adacore.com>
16689 Eric Botcazou <ebotcazou@adacore.com>
16691 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16692 to be processed as a bitfield for constructor output purposes.
16693 * output.h (initializer_constant_valid_for_bitfield_p): Declare
16695 * varasm.c (oc_local_state): New type, output_constructor
16696 local state to support communication with helpers.
16697 (oc_outer_state): New type, output_constructor outer state of
16698 relevance in recursive calls.
16699 (output_constructor_array_range): New output_constructor helper,
16700 extracted code for an array range element.
16701 (output_constructor_regular_field): New output_constructor helper,
16702 extracted code for an element that is not a bitfield.
16703 (output_constructor_bitfield): New output_constructor helper,
16704 extracted code for a bitfield element. Accept an OUTER state
16705 argument for recursive processing. Recurse on record or array
16706 CONSTRUCTOR values, possibly past noop conversions.
16707 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
16708 VALUE is a valid constant-valued expression for use in a static
16709 bit-field initializer.
16710 (output_constructor): Rework to use helpers. Accept and honor an
16711 OUTER state argument for recursive calls. Return total size. Be
16712 prepared for nested constructors initializing bitfields.
16713 (output_constant): Feed OUTER in calls to output_constructor.
16715 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16717 * calls.c (emit_library_call_value_1): Don't force_operand for move
16720 2009-06-01 Nick Clifton <nickc@redhat.com>
16722 * doc/invoke.texi (IA-64 Options): Fix typo.
16724 2009-06-01 Ira Rosen <irar@il.ibm.com>
16726 PR tree-optimization/39129
16727 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
16729 (vect_do_peeling_for_loop_bound): Use
16730 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16731 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16732 (vect_loop_versioning): Likewise.
16733 (vect_create_cond_for_alias_checks): Fix indentation.
16734 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
16736 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16737 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
16738 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
16739 "control flow in loop".
16740 (vect_estimate_min_profitable_iters): Use
16741 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16742 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16743 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16744 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
16745 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16746 statement belongs to a group of strided accesses with the exact code
16748 (vectorizable_load): Likewise.
16749 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16750 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16752 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
16754 * config/freebsd-stdint.h: New file.
16755 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16756 Add freebsd-stdint.h to tm_file.
16758 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
16760 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16761 (thumb2_extendhidi2): Likewise.
16763 2009-05-31 Ian Lance Taylor <iant@google.com>
16765 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
16767 2009-05-31 Ian Lance Taylor <iant@google.com>
16769 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
16770 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16771 (ipa-reference.o): Depend upon gt-ipa-reference.h.
16773 2009-05-31 Jason Merrill <jason@redhat.com>
16775 * tree-pretty-print.c (print_call_name): Take the callee, not the
16776 call itself. Make non-static. Use dump_function_name for functions.
16777 (dump_generic_node): Adjust.
16778 * diagnostic.h: Declare print_call_name.
16779 * gimple-pretty-print.c (dump_gimple_call): Use it.
16781 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16783 * config/sh/sh.md (ashldi3_std): New define_expand.
16786 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16789 * config/sh/sh.c: Include debug.h.
16790 (sh_expand_epilogue): Emit a blockage insn before the frame
16791 pointer adjustment also when dwarf2out_do_frame returns true.
16793 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
16795 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16796 (thumb2_extendqidi2): New pattern.
16798 2009-05-31 Ira Rosen <irar@il.ibm.com>
16800 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16801 mark phis for renaming.
16802 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16803 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16804 Call mark_sym_for_renaming.
16805 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
16806 * tree-vect-loop.c (vect_transform_loop): Remove
16807 vect_memsyms_to_rename initialization and a call to
16808 mark_set_for_renaming.
16810 2009-05-31 Jakub Jelinek <jakub@redhat.com>
16812 PR middle-end/40304
16813 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16814 frame related even if !set_cfa && style < 0.
16816 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
16818 * config/i386/mingw-tls.c: New file.
16819 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16820 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16821 defining _WIN32 but not __CYGWIN__.
16823 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16825 * configure.ac: Add MPC support.
16827 * config.in, configure: Regenerate.
16829 2009-05-29 Richard Henderson <rth@redhat.com>
16831 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16832 NOTE_INSN_BASIC_BLOCK.
16833 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16834 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16835 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16837 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16839 (add_cfi): Disable check redefining cfa away from drap.
16840 (lookup_cfa_1): Add remember argument; handle remember/restore.
16841 (lookup_cfa): Pass remember argument.
16842 (cfa_remember): New.
16843 (compute_barrier_args_size_1): Remove sibcall check.
16844 (dwarf2out_frame_debug_def_cfa): New.
16845 (dwarf2out_frame_debug_adjust_cfa): New.
16846 (dwarf2out_frame_debug_cfa_offset): New.
16847 (dwarf2out_frame_debug_cfa_register): New.
16848 (dwarf2out_frame_debug_cfa_restore): New.
16849 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16850 (dwarf2out_begin_epilogue): New.
16851 (dwarf2out_frame_debug_restore_state): New.
16852 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16853 DW_CFA_restore_state.
16854 (output_cfi_directive): Likewise.
16855 (convert_cfa_to_fb_loc_list): Likewise.
16856 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16857 * dwarf2out.h: Update.
16858 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16859 (copy_insn_1): Early out for null.
16860 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16861 and dwarf2out_frame_debug_restore_state.
16862 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16863 (prologue_insn_hash, epilogue_insn_hash): New.
16864 (free_after_compilation): Adjust freeing accordingly.
16865 (record_insns): Create hash table if needed; push insns into
16866 hash instead of array.
16867 (maybe_copy_epilogue_insn): New.
16868 (contains): Search hash table instead of array.
16869 (sibcall_epilogue_contains): Remove.
16870 (thread_prologue_and_epilogue_insns): Split eh_return insns
16871 and mark them as epilogues.
16872 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16873 scanning in terms of basic blocks.
16874 * insn-notes.def (CFA_RESTORE_STATE): New.
16875 * jump.c (returnjump_p_1): Accept EH_RETURN.
16876 (eh_returnjump_p_1, eh_returnjump_p): New.
16877 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16878 CFA_REGISTER, CFA_RESTORE): New.
16879 * rtl.def (EH_RETURN): New.
16880 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16882 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16883 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16885 * config/i386/i386.c (gen_push): Update cfa state.
16886 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
16887 add a CFA_ADJUST_CFA note.
16888 (ix86_dwarf_handle_frame_unspec): Remove.
16889 (ix86_expand_prologue): Update cfa state.
16890 (ix86_emit_restore_reg_using_pop): New.
16891 (ix86_emit_restore_regs_using_pop): New.
16892 (ix86_emit_leave): New.
16893 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16894 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16895 * config/i386/i386.h (struct machine_cfa_state): New.
16896 (ix86_cfa_state): New.
16897 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16898 (eh_return_internal): Merge from eh_return_<mode>,
16899 use eh_return rtx, split w/ epilogue.
16901 2009-05-29 Ian Lance Taylor <iant@google.com>
16903 * builtins.c (validate_gimple_arglist): Don't use va_arg with
16905 * calls.c (emit_library_call_value_1): Likewise.
16907 * c-typeck.c (c_build_va_arg): New function.
16908 * c-tree.h (c_build_va_arg): Declare.
16909 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16910 instead of build_va_arg.
16912 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
16914 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16915 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16916 (ptr_difference_cost): Use affine combinations to compute it.
16917 (difference_cost): Likewise.
16918 (get_computation_cost_at): Compute more accurate cost for addresses
16919 if the ratio is a multiplier allowed in addresses.
16920 For non-addresses, consider that an additional offset or symbol is
16923 2009-05-29 Jakub Jelinek <jakub@redhat.com>
16925 * config/i386/i386.c (ix86_decompose_address): Avoid useless
16926 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
16928 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16929 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16930 (prefix_rex): For UNIT_MMX don't imply the prefix by default
16932 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16933 to 1 for TYPE_SSE{IADD1,CVT1}.
16934 (prefix_vex_imm8): Removed.
16935 (length_vex): Only pass 1 as second argument to
16936 ix86_attr_length_vex_default if prefix_extra is 0.
16937 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16938 (length): For prefix vex computation use length_immediate
16939 attribute instead of prefix_vex_imm8.
16940 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16941 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16942 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16943 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16944 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16945 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16946 a space in between the operands.
16947 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
16948 if one operand is 0xff and the other one si, di, bp or sp.
16949 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16950 other one si, di, bp or sp.
16951 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16952 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16953 type and mode attributes.
16954 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16955 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16956 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16957 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16958 prefix_data16 attribute iff MODE_DF.
16959 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16960 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16961 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16962 constm128_operand in length_immediate computation.
16963 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
16964 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16965 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16966 length_immediate attribute to 1.
16967 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16968 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16969 for certain alternatives.
16970 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16971 prefix_data16 attribute if MODE_V1DF.
16972 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16973 length_immediate to 1.
16974 (set_got_rex64, set_rip_rex64): Remove length attribute, set
16975 length_address to 4, set mode attribute to MODE_DI.
16976 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
16977 (fxam<mode>2_i387): Set length attribute to 4.
16978 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16979 *prefetch_3dnow_rex): Override length_address attribute.
16980 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16982 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16983 (constm128_operand): Removed.
16984 * config/i386/i386.c (memory_address_length): For
16985 disp && !index && !base in 64-bit mode account for SIB byte if
16986 print_operand_address can't optimize disp32 into disp32(%rip)
16987 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
16988 for fs: or gs: segment.
16989 (ix86_attr_length_immediate_default): When checking if shortform
16990 is possible, truncate immediate to the length of the non-shortened
16992 (ix86_attr_length_address_default): Ignore MEM_P operands
16994 (ix86_attr_length_vex_default): Only check for DImode on
16995 GENERAL_REG_P operands.
16996 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16997 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16998 (sse_cvttps2pi): Clear prefix_rep attribute.
16999 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
17001 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
17002 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
17003 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
17004 iff operand 2 is const_int_operand.
17005 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
17006 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
17007 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
17009 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
17011 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
17012 prefix_data16 attribute for movlpd and movhpd instructions.
17013 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
17014 length_immediate for shufpd instruction.
17015 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
17016 (avx_cmpp<avxmodesuffixf2c><mode>3,
17017 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
17018 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
17019 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
17020 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
17021 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
17022 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
17023 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
17024 prefix_data16 attribute for the first alternative to 1.
17025 (*avx_loadlps): Override length_immediate for the first alternative.
17026 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
17027 attributes for second alternative.
17028 (*vec_concatv2sf_sse4_1): Override length_immediate and
17029 prefix_data16 attributes for second alternative.
17030 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
17031 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
17032 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
17033 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
17034 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
17035 prefix_data16 and length_immediate to 1.
17036 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
17038 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
17039 prefix_extra attribute for variants that don't have 0f prefix alone.
17040 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
17041 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
17042 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
17043 *sse4_1_pextrd): Set length_immediate to 1.
17044 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
17045 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
17047 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
17048 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
17049 length_immediate to 1 for second alternative.
17050 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
17051 prefix_extra and length_immediate attributes for the first
17053 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
17055 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
17056 to 1 for the first and third alternative.
17057 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
17059 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
17061 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
17063 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
17064 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
17065 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
17066 *avx_psign<mode>3): Set prefix_extra attribute to 1.
17067 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
17068 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
17069 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
17070 ssse3_psign<mode>3): Override prefix_rex attribute.
17071 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
17072 (ssse3_palignrti): Override length_immediate to 1.
17073 (ssse3_palignrdi): Override length_immediate to 1, override
17074 prefix_rex attribute.
17075 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
17076 (sse4a_extrqi): Override length_immediate to 2.
17077 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
17078 (sse4a_insertq): Override prefix_data16 to 0.
17079 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
17080 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
17081 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
17082 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
17083 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
17084 and length_immediate to 1.
17085 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
17086 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
17087 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
17088 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
17089 and length_immediate to 1.
17090 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
17091 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
17092 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
17093 avx_ptest256): Override prefix_extra to 1.
17094 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
17095 Override prefix_data16 and length_immediate to 1.
17096 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
17097 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
17098 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
17099 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
17100 prefix_data16 to 0 and prefix_extra to 2.
17101 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
17102 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
17104 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
17105 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
17106 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
17107 and prefix_extra to 2.
17108 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
17109 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
17110 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
17111 avx_vpermilvar<mode>3,
17112 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
17113 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
17114 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
17115 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
17116 Override prefix_extra to 1.
17117 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17118 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17119 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17120 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17121 prefix_extra and length_immediate to 1.
17122 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17124 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17125 to 1 for the first alternative.
17126 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17127 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17129 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17130 *movv2sf_internal_avx, *movv2sf_internal): Override
17131 prefix_rep attribute for certain alternatives.
17132 (*mov<mode>_internal): Override prefix_rep or prefix_data16
17133 attributes for certain alternatives.
17134 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17135 attributes for certain alternatives.
17136 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17137 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17138 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17139 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17140 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17141 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17142 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17143 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17144 length_immediate to 1 if operand 2 is const_int_operand.
17145 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17146 *vec_extractv2si_1): Set length_immediate attribute to 1.
17147 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17148 using old 3DNOW insn rather than SSE/3DNOW_A.
17149 (mmx_emms, mmx_femms): Clear modrm attribute.
17151 2009-05-29 Martin Jambor <mjambor@suse.cz>
17153 * tree-sra.c: New implementation of SRA.
17155 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17156 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17157 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17158 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17159 (SRA_MAX_STRUCTURE_COUNT): Removed.
17160 (SRA_FIELD_STRUCTURE_RATIO): Removed.
17161 * doc/invoke.texi (sra-max-structure-size): Removed.
17162 (sra-field-structure-ratio): Removed.
17164 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17166 PR middle-end/40291
17167 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17170 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
17172 PR rtl-optimization/40101
17173 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17174 seqno. Adjust comment.
17175 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17176 inserting bookkeeping before a jump, the jump is not scheduled.
17177 When no positive seqno found, provide a value. Add comment.
17179 2009-05-29 Richard Guenther <rguenther@suse.de>
17181 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17182 short-cutting on the first component.
17184 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17186 PR middle-end/39958
17187 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17188 for trees other than decls/types.
17190 2009-05-29 Richard Guenther <rguenther@suse.de>
17192 * tree-ssa-operands.c (get_expr_operands): Do not handle
17193 INDIRECT_REFs in the handled-component case. Remove
17194 unused get_ref_base_and_extent case.
17195 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17196 tree_low_cst and host_integerp where possible.
17197 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17198 codes for equivalence.
17199 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17201 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
17203 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17204 to tmake_file for i[34567]86-*-cygwin*.
17206 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17209 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17210 (altivec_categorize_keyword, init_vector_keywords,
17211 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17214 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
17216 * tree.c (handle_dll_attribute): Check if node is
17217 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17219 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
17221 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17223 (thumb2_zero_extendqidi2): Likewise.
17225 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
17227 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17228 instead of gen_movrt.
17229 * config/sh/sh.md (movrt): Remove.
17231 2009-05-28 Steve Ellcey <sje@cup.hp.com>
17233 * doc/invoke.texi (IA-64 Options):
17234 Add -msdata, -mfused-madd, -mno-inline-float-divide,
17235 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17236 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17237 -msched-prefer-non-control-spec-insns,
17238 -msched-stop-bits-after-every-cycle,
17239 -msched-count-spec-in-critical-path,
17240 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17241 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17242 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17243 and -msched-spec-verbose.
17245 2009-05-28 Joseph Myers <joseph@codesourcery.com>
17247 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17248 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17250 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17252 2009-05-28 Richard Guenther <rguenther@suse.de>
17254 * tree-ssa-alias.c (ao_ref_init): New function.
17255 (ao_ref_base): Likewise.
17256 (ao_ref_base_alias_set): Likewise.
17257 (ao_ref_alias_set): Likewise.
17258 (refs_may_alias_p_1): Change signature.
17259 (refs_may_alias_p): Adjust.
17260 (refs_anti_dependent_p): Likewise.
17261 (refs_output_dependent_p): Likewise.
17262 (call_may_clobber_ref_p_1): Change signature.
17263 (call_may_clobber_ref_p): Adjust.
17264 (stmt_may_clobber_ref_p_1): New function split out from ...
17265 (stmt_may_clobber_ref_p): ... here.
17266 (maybe_skip_until): Adjust signature.
17267 (get_continuation_for_phi): Likewise.
17268 (walk_non_aliased_vuses): Likewise.
17269 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17270 (ao_ref_init): Declare.
17271 (ao_ref_base): Likewise.
17272 (ao_ref_alias_set): Likewise.
17273 (stmt_may_clobber_ref_p_1): Likewise.
17274 (walk_non_aliased_vuses): Adjust.
17275 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17276 (get_ref_from_reference_ops): remove.
17277 (vn_reference_lookup_2): Adjust signature.
17278 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
17279 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17280 (vn_reference_lookup): Adjust.
17281 (vn_reference_insert): Likewise.
17282 (vn_reference_insert_pieces): Adjust signature.
17283 (visit_reference_op_call): Adjust.
17284 * tree-ssa-pre.c (get_expr_type): Simplify.
17285 (phi_translate_1): Adjust.
17286 (compute_avail): Likewise.
17287 (translate_vuse_through_block): Do not re-build trees.
17288 (value_dies_in_block_x): Likewise.
17289 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17291 (vn_reference_lookup_pieces): Adjust declaration.
17292 (vn_reference_insert_pieces): Likewise.
17294 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
17296 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17297 with checking disabled.
17299 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
17303 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
17304 macro definition for support of three-operand format aligned
17305 .comm directive in assembler on cygwin/pe/mingw target OS.
17306 * configure: Regenerate.
17307 * config.h: Regenerate.
17309 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
17310 aligned form of .comm directive if -mpe-aligned-commons is in effect.
17311 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
17313 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
17314 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
17316 2009-05-28 Ira Rosen <irar@il.ibm.com>
17318 PR tree-optimization/40254
17319 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17320 in analysis of basic blocks.
17322 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
17324 PR middle-end/33699
17325 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
17326 * target-def.h (TARGET_CONST_ANCHOR): New macro.
17327 (TARGET_INITIALIZER): Use it.
17328 * cse.c (CHEAPER): Move it up to the other macros.
17329 (insert): Rename this ...
17330 (insert_with_costs): ... to this. Add cost parameters. Update
17332 (insert): New function. Call insert_with_costs.
17333 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17334 find_reg_offset_for_const, try_const_anchors): New functions.
17335 (cse_insn): Call try_const_anchors. Adjust cost of src_related
17336 when using a const-anchor. Call insert_const_anchors.
17337 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17338 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17340 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
17342 * tree-inline.c (remap_decls): Enable nonlocalized variables
17343 when not optimizing.
17345 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
17347 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17348 Simplify other tests involving optimize.
17350 2009-05-27 Tom Tromey <tromey@redhat.com>
17352 * unwind-dw2.c (_Unwind_DebugHook): New function.
17353 (uw_install_context): Call _Unwind_DebugHook.
17355 2009-05-27 Tom Tromey <tromey@redhat.com>
17357 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17359 2009-05-27 Ian Lance Taylor <iant@google.com>
17361 * Makefile.in (LINKER, LINKER_FLAGS): Define.
17362 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17363 (ALL_LINKERFLAGS): Define.
17364 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17365 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17366 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17367 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17368 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17369 $(LINKER_FOR_BUILD).
17370 (build/gcov-iov$(build_exeext)): Likewise.
17372 2009-05-27 Julian Brown <julian@codesourcery.com>
17374 * gcse.c (target.h): Include.
17375 (can_assign_to_reg_without_clobbers_p): Check that the target allows
17376 copy of argument to a pseudo register.
17378 2009-05-27 Diego Novillo <dnovillo@google.com>
17380 * tree-ssa-live.c (dump_scope_block): Document arguments.
17381 (dump_scope_blocks): Document.
17382 (debug_scope_blocks): New.
17383 * tree-flow.h (debug_scope_blocks): Declare.
17385 2009-05-21 Denis Chertykov <denisc@overta.ru>
17387 * doc/contrib.texi (Contributors): Add myself to the list.
17389 2009-05-27 Olivier Hainque <hainque@adacore.com>
17391 * expr.c (target_align): New function. Alignment the TARGET of an
17392 assignment may be assume to have.
17393 (highest_pow2_factor_for_target): Use it instead of relying on
17394 immediate tree attributes of TARGET, not necessarily honored when
17395 intermediate bitfields are involved.
17397 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
17400 * config/i386/driver-i386.c (host_detect_local_cpu): Support
17401 AVX, SSE4, AES, PCLMUL and POPCNT.
17403 2009-05-27 Diego Novillo <dnovillo@google.com>
17405 * tree-pretty-print.c (dump_location): New.
17406 (dump_generic_node): Call it.
17407 Factor code to handle BLOCK nodes ...
17408 (dump_block_node): ... here.
17410 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
17412 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17414 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17416 * gcc-plugin.h: Include config.h and system.h.
17417 (IN_GCC): Define if not defined.
17419 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
17421 PR middle-end/40249
17422 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17425 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
17427 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17429 * config/m32r/m32r.h: Ditto.
17430 * config/m32r/m32r.md: Ditto.
17431 * config/m32r/predicates.md: Ditto.
17433 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
17435 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17437 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
17440 (Loading plugins): typo.
17441 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17442 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17443 (Interacting with the GCC Garbage Collector): Added new section.
17444 (Giving information about a plugin): Added new section for
17446 * ggc.h (ggc_register_root_tab): Added declaration.
17447 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17448 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17449 (register_callback): Improved comment in declaration.
17450 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17451 (extra_root_vec) Added static variable for dynamic roots registration.
17452 (ggc_register_root_tab) Added new routine.
17453 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17454 PLUGIN_GGC_MARKING event.
17455 * ggc-zone.c: Include plugin.h.
17456 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17457 * ggc-page.c: Include plugin.h.
17458 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17459 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17460 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17461 (register_callback): check lack of callbacks for
17462 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17463 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17464 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17465 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17466 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17467 dependency on plugin.h.
17468 (plugin.o): Added dependency on ggc.h...
17470 2009-05-26 Richard Guenther <rguenther@suse.de>
17472 PR middle-end/40248
17474 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17475 with mismatched comparison modes.
17477 * expr.c (expand_expr_real_1): Expand the operand of a
17478 VIEW_CONVERT_EXPR in its natural mode.
17480 2009-05-26 Ian Lance Taylor <iant@google.com>
17482 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17483 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17484 (ALL_COMPILERFLAGS): Define.
17485 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17486 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17487 (collect2$(exeext), collect2.o): Likewise.
17488 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17489 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17490 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17491 (libbackend.o, intl.o, cppdefault.o): Likewise.
17492 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17493 (build/%.o): Use $(COMPILER_FOR_BUILD).
17494 (build/gen%$(build_exeext)): Likewise.
17495 (build/gcov-iov$(build_exeext)): LIkewise.
17496 * config/t-darwin (darwin.o): Use $(COMPILER).
17497 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17498 * config/t-sol2 (sol2-c.o): Likewise.
17499 (sol2.o): Likewise.
17500 * config/t-vxworks (vxworks.o): Likewise.
17501 * config/x-darwin (host-darwin.o): Likewise.
17502 * config/x-hpux (host-hpux.o): Likewise.
17503 * config/x-linux (host-linux.o): Likewise.
17504 * config/x-solaris (host-solaris.o): Likewise.
17505 * config/alpha/x-alpha (driver-alpha.o): Likewise.
17506 * config/arm/t-arm (arm-c.o): Likewise.
17507 * config/arm/t-pe (pe.o): Likewise.
17508 * config/arm/t-wince-pe (pe.o): Likewise.
17509 * config/i386/t-cygming (winnt.o): Likewise.
17510 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17511 * config/i386/t-cygwin (cygwin1.o): Likewise.
17512 (cygwin2.o): Likewise.
17513 * config/i386/t-i386 (i386-c.o): Likewise.
17514 * config/i386/t-interix (winnt.o): Likewise.
17515 * config/i386/t-netware (netware.o): Likewise.
17516 * config/i386/t-nwld (nwld.o): Likewise.
17517 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17518 * config/i386/x-i386 (driver-i386.o): Likewise.
17519 * config/i386/x-cygwin (host-cygwin.o): Likewise.
17520 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17521 * config/ia64/t-ia64 (ia64-c.o): Likewise.
17522 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17523 * config/mips/x-native (driver-native.o): Likewise.
17524 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17525 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17526 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17527 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17528 * config/score/t-score-elf (score7.o): Likewise.
17529 (score3.o): Likewise.
17530 * config/sh/t-sh (sh-c.o): Likewise.
17531 * config/sh/t-symbian (sh-c.o): Likewise.
17532 (symbian.o): Likewise.
17533 * config/spu/t-spu-elf (spu-c.o): Likewise.
17534 * config/v850/t-v850 (v850-c.o): Likewise.
17535 * config/v850/t-v850e (v850-c.o): Likewise.
17537 2009-05-26 Richard Guenther <rguenther@suse.de>
17539 PR tree-optimization/40122
17540 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17541 VECTOR_CSTs if possible.
17542 (fold_gimple_assign): Likewise.
17544 2009-05-26 Richard Guenther <rguenther@suse.de>
17546 PR middle-end/40252
17547 * fold-const.c (fold_binary): Use the correct types for building
17550 2009-05-26 Richard Guenther <rguenther@suse.de>
17552 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17553 redundant calls to merge_alias_info.
17554 (bump_vector_ptr): Likewise.
17555 * tree-ssa-copy.c (merge_alias_info): Remove.
17556 (replace_exp_1): Remove call to merge_alias_info.
17557 (propagate_tree_value): Likewise.
17558 (fini_copy_prop): Propagate points-to info.
17559 * tree-flow.h (merge_alias_info): Remove.
17561 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
17563 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17565 2009-05-25 Jan Hubicka <jh@suse.cz>
17567 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17568 * cgraph.h (struct inline_summary): New filed self_wize,
17569 size_inlining_benefit, self_time and time_inlining_benefit.
17570 (struct cgraph_global_info): Replace insns by time ans size fields.
17571 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17572 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17573 (ipcp_update_callgraph): Do not touch function bodies.
17574 * ipa-inline.c: Include except.h
17575 (MAX_TIME): New constant.
17576 (overall_insns): Remove.
17577 (leaf_node_p): New.
17578 (overall_size, max_benefit): New static variables.
17579 (cgraph_estimate_time_after_inlining): New function.
17580 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17581 (cgraph_clone_inlined_nodes): Update size.
17582 (cgraph_mark_inline_edge): Update size.
17583 (cgraph_estimate_growth): Use size info.
17584 (cgraph_check_inline_limits): Check size.
17585 (cgraph_default_inline_p): Likewise.
17586 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17587 (cgraph_decide_recursive_inlining): Check size.
17588 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17590 (cgraph_decide_inlining): Likewise.
17591 (cgraph_decide_inlining_incrementally): Likewise; honor
17592 PARAM_EARLY_INLINING_INSNS.
17593 (likely_eliminated_by_inlining_p): New predicate.
17594 (estimate_function_body_sizes): New function.
17595 (compute_inline_parameters): Use it.
17596 * except.c (must_not_throw_labels): New function.
17597 * except.h (must_not_throw_labels): Declare.
17598 * tree-inline.c (init_inline_once): Kill inlining_weigths
17599 * tree-ssa-structalias.c: Avoid uninitialized warning.
17600 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17601 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17602 (PARAM_INLINE_CALL_COST): Remove.
17603 (PARAM_EARLY_INLINING_INSNS): New.
17605 2009-05-25 Richard Guenther <rguenther@suse.de>
17607 PR tree-optimization/36327
17608 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17609 callback for reference translation or lookup at the point of may-defs.
17610 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17611 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17612 for union COMPONENT_REFs.
17613 (vn_reference_lookup_3): New callback. Lookup from memset
17614 and CONSTRUCTOR assignment, translate through struct copies.
17615 (vn_reference_lookup_pieces): Make sure to not free the
17616 passed operands array. Adjust walk_non_aliased_vuses call.
17617 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17618 make sure we do not leak memory.
17620 2009-05-25 Richard Guenther <rguenther@suse.de>
17622 * tree-ssa-alias.h (dump_points_to_solution): Declare.
17623 * tree-inline.c (expand_call_inline): Reset the escaped and
17624 callused solutions.
17625 * tree-ssa-structalias.c (pass_build_ealias): New.
17626 * tree-pass.h (pass_build_ealias): Declare.
17627 * passes.c (init_optimization_passes): Add PTA during
17628 early optimizations.
17629 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17630 and CALLUSED solutions.
17631 (dump_points_to_solution): New function, split out from ...
17632 (dump_points_to_info_for): ... here.
17633 * tree-parloops.c (parallelize_loops): Reset the escaped and
17634 callused solutions.
17636 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17639 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17640 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17642 2009-05-25 Ira Rosen <irar@il.ibm.com>
17644 PR tree-optimization/40238
17645 * tree-vect-stmts.c (vect_init_vector): Insert initialization
17646 statements after basic block's labels.
17647 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
17648 to free the allocated memory.
17650 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
17652 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17653 return address with a USE.
17655 2009-05-24 Richard Guenther <rguenther@suse.de>
17657 PR middle-end/40233
17658 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17659 array type from the main variant of the inner type.
17661 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17663 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17664 definition to bool (from int) to un-break build.
17665 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17667 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
17669 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17670 discard_stmt_changes): Delete.
17671 * tree-ssa-operands.c (scb_stack): Delete.
17672 (init_ssa_operands): Do not initialize it.
17673 (fini_ssa_operands): Do not free it.
17674 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17676 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
17677 update_stmt, remove the others. Fix comments.
17678 * tree-dfa.c (optimize_stack_restore): Likewise.
17679 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17680 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17681 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17682 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17684 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17685 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
17686 (dom_opt_finalize_block): Likewise, adjusting access to
17688 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17689 (stmts_to_rescan): Change item type to gimple.
17690 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17692 2009-05-24 Ira Rosen <irar@il.ibm.com>
17694 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17695 * tree-pass.h (pass_slp_vectorize): New pass.
17696 * params.h (SLP_MAX_INSNS_IN_BB): Define.
17697 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17698 * tree-vectorizer.c (timevar.h): Include.
17699 (user_vect_verbosity_level): Declare.
17700 (vect_location): Fix comment.
17701 (vect_set_verbosity_level): Update user_vect_verbosity_level
17702 instead of vect_verbosity_level.
17703 (vect_set_dump_settings): Add an argument. Ignore user defined
17704 verbosity if dump flags require higher level of verbosity. Print to
17705 stderr only for loop vectorization.
17706 (vectorize_loops): Update call to vect_set_dump_settings.
17707 (execute_vect_slp): New function.
17708 (gate_vect_slp): Likewise.
17709 (struct gimple_opt_pass pass_slp_vectorize): New.
17710 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17711 access its members.
17712 (vec_info_for_bb): New function.
17713 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17714 (VECTORIZATION_ENABLED): New macro.
17715 (SLP_ENABLED, SLP_DISABLED): Likewise.
17716 (vect_is_simple_use): Add bb_vec_info argument.
17717 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17718 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17719 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17720 vect_schedule_slp, vect_analyze_slp): Likewise.
17721 (vect_analyze_stmt): Add slp_tree argument.
17722 (find_bb_location): Declare.
17723 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17724 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17725 (vect_analyze_loop_operations, vect_analyze_loop,
17726 get_initial_def_for_induction, vect_create_epilog_for_reduction,
17727 vect_finalize_reduction, vectorizable_reduction,
17728 vectorizable_live_operation, vect_transform_loop): Likewise.
17729 * tree-data-ref.c (dr_analyze_innermost): Update comment,
17730 skip evolution analysis if analyzing a basic block.
17731 (dr_analyze_indices): Likewise.
17732 (initialize_data_dependence_relation): Skip the test whether the
17733 object is invariant for basic blocks.
17734 (compute_all_dependences): Skip dependence analysis for data
17735 references in basic blocks.
17736 (find_data_references_in_stmt): Don't fail in case of invariant
17737 access in basic block.
17738 (find_data_references_in_bb): New function.
17739 (find_data_references_in_loop): Move code to
17740 find_data_references_in_bb and add a call to it.
17741 (compute_data_dependences_for_bb): New function.
17742 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17743 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17745 (vect_analyze_data_ref_dependence): Check for interleaving in case of
17746 unknown dependence in basic block and fail in case of dependence in
17748 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17749 dependence instances from either loop or basic block vectorization
17751 (vect_compute_data_ref_alignment): Check if it is loop vectorization
17752 before calling nested_in_vect_loop_p.
17753 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17754 dependence instances from either loop or basic block vectorization
17756 (vect_verify_datarefs_alignment): Likewise.
17757 (vect_enhance_data_refs_alignment): Adjust function calls.
17758 (vect_analyze_data_refs_alignment): Likewise.
17759 (vect_analyze_group_access): Fix printing. Skip different checks if
17760 DR_STEP is 0. Keep strided stores either in loop or basic block
17761 vectorization data structure. Fix indentation.
17762 (vect_analyze_data_ref_access): Fix comments, allow zero step in
17764 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17765 dependence instances from either loop or basic block vectorization
17767 (vect_analyze_data_refs): Update comment. Call
17768 compute_data_dependences_for_bb to analyze basic blocks.
17769 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17770 case of loop vectorization. In case of basic block vectorization use
17771 data-ref itself as a base.
17772 (vect_create_data_ref_ptr): In case of basic block vectorization:
17773 don't advance the pointer, add new statements before the current
17774 statement. Adjust function calls.
17775 (vect_supportable_dr_alignment): Support only aligned accesses in
17776 basic block vectorization.
17777 * common.opt (ftree-slp-vectorize): New flag.
17778 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17779 (vect_pattern_recog_1): Likewise.
17780 * tree-vect-stmts.c (process_use): Likewise.
17781 (vect_init_vector): Add new statements in the beginning of the basic
17782 block in case of basic block SLP.
17783 (vect_get_vec_def_for_operand): Adjust function calls.
17784 (vect_finish_stmt_generation): Likewise.
17785 (vectorizable_call): Add assert that it is loop vectorization, adjust
17787 (vectorizable_conversion, vectorizable_assignment): Likewise.
17788 (vectorizable_operation): In case of basic block SLP, take
17789 vectorization factor from statement's type and skip the relevance
17790 check. Adjust function calls.
17791 (vectorizable_type_demotion): Add assert that it is loop
17792 vectorization, adjust function calls.
17793 (vectorizable_type_promotion): Likewise.
17794 (vectorizable_store): Check for outer loop only in case of loop
17795 vectorization. Adjust function calls. For basic blocks, skip the
17796 relevance check and don't advance pointers.
17797 (vectorizable_load): Likewise.
17798 (vectorizable_condition): Add assert that it is loop vectorization,
17799 adjust function calls.
17800 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17801 that it is not reduction, get vector type, call only supported
17802 functions, skip loop specific parts.
17803 (vect_transform_stmt): Check for outer loop only in case of loop
17805 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17806 (vect_is_simple_use): Fix comment, add new argument, fix conditions
17807 for external definition.
17808 * passes.c (pass_slp_vectorize): New pass.
17809 * tree-vect-slp.c (find_bb_location): New function.
17810 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17811 check for patterns only in loops.
17812 (vect_build_slp_tree): Add argument, adjust function calls, fail in
17813 case of multiple types in basic block SLP.
17814 (vect_mark_slp_stmts_relevant): New function.
17815 (vect_supported_load_permutation_p): Fix comment.
17816 (vect_analyze_slp_instance): Add argument. In case of basic block
17817 SLP, take vectorization factor from statement's type, check that
17818 unrolling factor is 1. Adjust function call. Save SLP instance in
17819 either loop or basic block vectorization structure. Return FALSE,
17821 (vect_analyze_slp): Add argument. Get strided stores groups from
17822 either loop or basic block vectorization structure. Return FALSE
17823 if basic block SLP failed.
17824 (new_bb_vec_info): New function.
17825 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17826 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17827 (vect_schedule_slp): Add argument. Get SLP instances from either
17828 loop or basic block vectorization structure. Set vectorization factor
17829 to be 1 for basic block SLP.
17830 (vect_slp_transform_bb): New function.
17831 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17833 2009-05-23 Mark Mitchell <mark@codesourcery.com>
17835 * final.c (shorten_branches): Do not align labels for jump tables.
17836 (final_scan_insn): Use JUMP_TABLE_DATA_P.
17838 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
17840 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17841 Remove outdated reference to flow.c and fix nits.
17842 * doc/gccint.texi: Tweak RTL description.
17843 * doc/rtl.texi: Likewise.
17845 2009-05-23 Denis Chertykov <chertykov@gmail.com>
17847 * config/avr/avr.c: Change my email address.
17848 * config/avr/avr.h: Likewise.
17849 * config/avr/avr.md: Likewise.
17850 * config/avr/avr-protos.h: Likewise.
17851 * config/avr/libgcc.S: Likewise.
17853 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17855 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17856 (spu_split_load, spu_split_store): Change return type to int.
17857 (spu_split_convert): Declare.
17858 * config/spu/predicates.md (spu_mem_operand): Remove.
17859 (spu_mov_operand): Update.
17860 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17861 * config/spu/spu.c (regno_aligned_for_load): Remove.
17862 (reg_aligned_for_addr, spu_expand_load): Define.
17863 (spu_expand_extv): Reimplement and handle MEM.
17864 (spu_expand_insv): Handle MEM.
17865 (spu_sched_reorder): Handle insn's with length 0.
17866 (spu_legitimate_address_p): Reimplement.
17867 (store_with_one_insn_p): Return TRUE for any mode with size
17868 larger than 16 bytes.
17869 (address_needs_split): Define.
17870 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17872 (spu_convert_move): Define.
17873 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
17874 (spu_split_store): Change all MEM's to TImode.
17875 (spu_init_expanders): Preallocate registers that correspond to
17876 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17878 (spu_split_convert): Define.
17879 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17880 (_move<mode>, _movdi, _movti): Update predicate and condition.
17881 (load, store): Change to define_split.
17882 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17884 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17885 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17886 define_insn_and_split of lshr<mode>3.
17887 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17888 (<v>ashr<mode>3_imm): Define.
17889 (extv, extzv, insv): Allow MEM operands.
17890 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17891 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17892 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17893 (_spu_convert2): Change to define_insn_and_split and remove the
17894 corresponding define_peephole2.
17895 (stack_protect_set, stack_protect_test, stack_protect_test_si):
17896 Change predicates to memory_operand.
17898 2009-05-22 Mark Mitchell <mark@codesourcery.com>
17900 * config/arm/thumb2.md: Add 16-bit multiply instructions.
17902 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17904 PR tree-optimization/40219
17905 * tree.c (iterative_hash_expr): Make sure the builtin function is
17906 a normal builtin function and not a front end or back end builtin
17907 before indexing into the built_in_decls array.
17909 2009-05-22 Richard Guenther <rguenther@suse.de>
17911 PR middle-end/38964
17912 * alias.c (write_dependence_p): Do not use TBAA for answering
17913 anti-dependence or output-dependence.
17914 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
17915 (emit_pointer_definition): Remove.
17916 (emit_alias_warning): Likewise.
17917 (find_what_var_points_to): Remove TBAA pruning code.
17918 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
17920 (compute_points_to_sets): Remove code computing the set of
17921 dereferenced pointers.
17922 * tree-data-ref.c (dr_may_alias_p): Properly use the split
17923 oracle for querying anti and output dependencies.
17924 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17925 if TBAA may be applied.
17926 (refs_anti_dependent_p): New function.
17927 (refs_output_dependent_p): Likewise.
17928 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17929 (refs_output_dependent_p): Likewise.
17930 * doc/tree-ssa.texi (Memory model): New section.
17931 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17932 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17933 * cfgexpand.c (expand_gimple_basic_block): Do not handle
17934 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17935 * expr.c (expand_expr_real_1): Likewise.
17936 * gimple-low.c (lower_stmt): Likewise.
17937 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17938 (dump_gimple_cdt): Remove.
17939 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17940 (gimple_size): Likewise.
17941 (walk_gimple_op): Likewise.
17942 (is_gimple_stmt): Likewise.
17943 (walk_stmt_load_store_addr_ops): Likewise.
17944 (gimple_build_cdt): Remove.
17945 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17946 * gimple.h (gimple_cdt_new_type): Remove.
17947 (gimple_cdt_new_type_ptr): Likewise.
17948 (gimple_cdt_set_new_type): Likewise.
17949 (gimple_cdt_location): Likewise.
17950 (gimple_cdt_location_ptr): Likewise.
17951 (gimple_cdt_set_location): Likewise.
17952 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17953 * tree-cfg.c (remove_useless_stmts_1): Do not handle
17954 GIMPLE_CHANGE_DYNAMIC_TYPE.
17955 (verify_types_in_gimple_stmt): Likewise.
17956 * tree-inline.c (estimate_num_insns): Likewise.
17957 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17958 (copy_decl_to_var): Likewise.
17959 (copy_result_decl_to_var): Likewise.
17960 * tree-pretty-print.c (dump_generic_node): Do not handle
17961 CHANGE_DYNAMIC_TYPE_EXPR.
17962 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17963 * tree-ssa-operands.c (get_expr_operands): Likewise.
17964 * tree-ssa-structalias.c (struct variable_info): Remove
17965 no_tbaa_pruning member.
17966 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17967 (unify_nodes): Do not copy it.
17968 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17969 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17970 (set_uids_in_ptset): Do not check it.
17971 (find_what_var_points_to): Likewise.
17972 (compute_tbaa_pruning): Remove.
17973 (compute_points_to_sets): Do not call it.
17974 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17975 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17976 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17977 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17978 (DECL_NO_TBAA_P): Likewise.
17979 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17980 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17981 (expand_omp_atomic_pipeline): Do not set it.
17982 * print-tree.c (print_node): Do not dump it.
17983 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17986 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17989 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17992 2009-05-22 Mark Mitchell <mark@codesourcery.com>
17994 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17997 2009-05-22 Ben Elliston <bje@au.ibm.com>
17999 * Makefile.in (bversion.h, s-bversion): New targets.
18000 (TOPLEV_H): Add bversion.h.
18001 * toplev.h: Include "bversion.h".
18002 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
18003 the __format__ attribute only if compiling with the same version
18004 of GCC as the sources (the "build version").
18006 2009-05-22 Ben Elliston <bje@au.ibm.com>
18008 * c-format.c (handle_format_attribute): Fix comment typo.
18010 2009-05-21 Steve Ellcey <sje@cup.hp.com>
18013 * config/ia64/ia64.opt (mfused-madd): New.
18014 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
18015 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
18016 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
18017 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
18018 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
18019 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
18020 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
18021 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
18022 instruction if !TARGET_FUSED_MADD.
18023 (fpma, fpms): Remove colon from name.
18025 2009-05-22 Richard Guenther <rguenther@suse.de>
18027 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
18028 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
18029 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18031 (create_expression_by_pieces): Only convert if necessary.
18032 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
18033 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
18035 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
18037 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
18038 regular pattern from a template and rename it ...
18039 (*extzv_truncsi_exts): ... to this.
18041 2009-05-21 Richard Guenther <rguenther@suse.de>
18043 * cgraph.h (struct cgraph_node): Remove inline_decl member.
18044 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
18045 (cgraph_default_inline_p): Likewise.
18046 (cgraph_decide_inlining_incrementally): Likewise.
18048 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
18049 Uros Bizjak <ubizjak@gmail.com>
18051 * config/i386/cpuid.h (bit_MOVBE): New.
18053 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
18055 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
18056 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
18057 (ix86_handle_option): Handle OPT_mmovbe.
18058 (ix86_target_string): Add -mmovbe.
18059 (pta_flags): Add PTA_MOVBE.
18060 (processor_alias_table): Add PTA_MOVBE to "atom".
18061 (override_options): Handle PTA_MOVBE.
18063 * config/i386/i386.h (TARGET_MOVBE): New.
18065 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
18066 (*bswapsi_movbe): New.
18067 (*bswapdi_movbe): Likewise.
18068 (bswapdi2): Renamed to ...
18069 (*bswapdi_1): This.
18070 (bswapdi2): New expander.
18072 * config/i386/i386.opt (mmovbe): New.
18074 * doc/invoke.texi: Document -mmovbe.
18076 2009-05-21 Taras Glek <tglek@mozilla.com>
18078 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
18079 * gcc-plugin.h (plugin_init): Updated signature.
18080 * gcc-plugin.h (plugin_name_args): Moved to this header.
18081 * doc/plugins.texi (plugin_init): Updated documention to reflect
18083 * doc/plugins.texi (plugin_name_args): Added to documention.
18085 2009-05-21 Mark Mitchell <mark@codesourcery.com>
18087 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
18088 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
18090 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
18092 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
18093 JUMP_TABLE_DATA_P predicates where applicable.
18094 * config/i386/predicates.md: Ditto.
18095 * config/i386/sse.md: Ditto.
18097 2009-05-21 Jakub Jelinek <jakub@redhat.com>
18099 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
18100 operand2 -128 override length_immediate attribute to 1.
18101 * config/i386/predicates.md (constm128_operand): New predicate.
18103 * config/i386/i386.c (memory_address_length): Handle %r12
18104 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
18106 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
18107 mode look through optional ZERO_EXTEND and SUBREG.
18108 * config/i386/i386.md (R12_REG): New define_constant.
18109 (prefix_data16): For sse unit set also for MODE_TI insns.
18110 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
18111 insns set if operand 1 is ext_QIreg_operand.
18112 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
18113 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
18115 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
18116 mode from MODE_DI to MODE_SI.
18117 (movdi_1_rex64): Override modrm and length_immediate attributes
18118 only for movabs (TYPE_IMOV, alternative 2).
18119 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18120 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18121 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18122 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18123 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18124 prefix_rex attribute if DImode.
18125 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18126 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18127 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18128 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18129 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18130 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18131 Likewise. For TYPE_IMOV clear length_immediate attribute.
18132 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18133 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18134 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18135 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18136 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18137 or one operand TYPE_ISHIFT.
18138 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18139 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18140 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18141 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18142 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18143 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18144 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18145 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18146 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18147 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18148 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18149 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18150 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18151 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18152 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18153 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18154 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18155 set mode attribute, don't override length attribute.
18156 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18158 (return_internal_long): Set length attribute to 2 instead of 1.
18159 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18160 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18161 prefix_rex attribute.
18162 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18164 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18166 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18168 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18170 2009-05-20 Ian Lance Taylor <iant@google.com>
18172 * tree.c (build_tree_list_vec_stat): New function.
18173 (ctor_to_vec): New function.
18174 (build_nt_call_vec): New function.
18175 (build_call_array): Change args to be a const pointer.
18176 (build_call_vec): New function.
18177 * tree.h (build_nt_call_vec): Declare.
18178 (build_tree_list_vec_stat): Declare.
18179 (build_tree_list_vec): Define.
18180 (build_call_array): Update declaration.
18181 (build_call_vec): Declare.
18182 (ctor_to_vec): Declare.
18183 * c-common.c (tree_vector_cache): New static variable.
18184 (make_tree_vector): New function.
18185 (release_tree_vector): New function.
18186 (make_tree_vector_single): New function.
18187 (make_tree_vector_copy): New function.
18188 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18189 (make_tree_vector_single, make_tree_vector_copy): Declare.
18190 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18191 (c_parser_expr_list): Don't manage cache here, instead call
18193 (c_parser_release_expr_list): Remove static function.
18194 (c_parser_vec_to_tree_list): Remove static function.
18195 (c_parser_attributes): Call build_tree_list_vec instead of
18196 c_parser_vec_to_tree_list. Call release_tree_vector instead of
18197 c_parser_release_expr_list.
18198 (c_parser_postfix_expression_after_primary): Likewise.
18199 (c_parser_objc_keywordexpr): Likewise.
18201 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
18203 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18204 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18205 TARGET_CONVERT_TO_TYPE.
18206 * hooks.c (hook_tree_const_tree_null): Define.
18207 * hooks.h (hook_tree_const_tree_null): Declare.
18208 * target.h (struct gcc_target): Add invalid_parameter_type,
18209 invalid_return_type, promoted_type, and convert_to_type fields.
18210 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18211 (TARGET_INVALID_RETURN_TYPE): Define.
18212 (TARGET_PROMOTED_TYPE): Define.
18213 (TARGET_CONVERT_TO_TYPE): Define.
18214 (TARGET_INITIALIZER): Update for new fields.
18215 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18216 (grokparms): Check targetm.invalid_parameter_type.
18217 * c-typeck.c (default_conversion): Check targetm.promoted_type.
18218 * c-convert.c (convert): Check targetm.convert_to_type.
18220 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
18222 * config/mips/mips.md (*extenddi_truncate<mode>,
18223 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
18225 (*extendhi_truncateqi): New define_insn_and_sptit.
18227 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18229 PR middle-end/40204
18230 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18231 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18233 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
18235 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18236 the operand of VIEW_CONVERT_EXPR.
18238 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
18240 * config/i386/driver-i386.c (host_detect_local_cpu): Check
18241 extended family and model for Intel processors. Support Intel Atom.
18243 2009-05-20 Olivier Hainque <hainque@adacore.com>
18245 * gstab.h (stab_code_type): Define, to be used instead of the
18246 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
18248 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18249 occurrences by stab_code_type.
18250 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18252 2009-05-20 Martin Jambor <mjambor@suse.cz>
18254 * tree-flow.h (insert_edge_copies_seq): Undeclare.
18255 (sra_insert_before): Likewise.
18256 (sra_insert_after): Likewise.
18257 (sra_init_cache): Likewise.
18258 (sra_type_can_be_decomposed_p): Likewise.
18259 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18260 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18261 (sra_insert_before): Likewise.
18262 (sra_insert_after): Likewise.
18263 (sra_init_cache): Likewise.
18264 (insert_edge_copies_seq): Made static and moved upwards.
18266 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18269 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18271 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18272 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18275 2009-05-20 Richard Guenther <rguenther@suse.de>
18277 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18278 with mismatched comparison modes.
18280 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18282 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18283 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18284 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18285 with shifts for Thumb2.
18286 (orsi_notsi): New for orn.
18287 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18288 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18289 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18290 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18291 Don't invert remainder for IOR.
18293 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
18295 PR tree-optimization/40087
18296 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18297 number_of_iterations_ne): Rename never_infinite argument.
18298 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18299 number_of_iterations_le): Handle pointer-type ivs when
18300 exit_must_be_taken is false.
18301 (number_of_iterations_cond): Do not always assume that
18302 exit_must_be_taken if the control variable is a pointer.
18304 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
18306 * c-typeck.c (build_binary_op): Allow % on integal vectors.
18307 * doc/extend.texi (Vector Extension): Document that % is allowed too.
18309 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
18311 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18312 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18314 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18317 * c.opt (Wlogical-op): Disabled by default.
18318 * c-opt (c_common_post_options): Do not enable Wlogical-op with
18320 * doc/invoke.texi (Wlogical-op): Likewise.
18322 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
18324 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18326 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18327 Propagate the type of the first operand.
18328 <ASSERT_EXPR>: Simplify.
18329 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18330 Rewrite using the RHS code as discriminant.
18331 <NOP_EXPR>: Turn into CASE_CONVERT.
18332 <PLUS_EXPR>: Propagate the type of the first operand.
18334 2009-05-19 Steve Ellcey <sje@cup.hp.com>
18336 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18337 (ia64_dconst_0_375): New.
18338 * config/ia64/ia64.c (ia64_override_options): Remove
18339 -minline-sqrt-min-latency warning.
18340 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18341 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18342 * config/ia64/ia64.md (*sqrt_approx): Remove.
18343 (sqrtsf2): Remove #if 0.
18344 (sqrtsf2_internal_thr): Rewrite and move to div.md.
18345 (sqrtdf): Remove assert.
18346 (sqrtdf2_internal_thr): Rewrite and move to div.md.
18347 (sqrtxf2): Remove #if 0.
18348 (sqrtxf2_internal_thr): Rewrite and move to div.md.
18349 * div.md (sqrt_approx_rf): New.
18350 (sqrtsf2_internal_thr): New implementation.
18351 (sqrtsf2_internal_lat): New.
18352 (sqrtdf2_internal_thr: New implementation.
18353 (sqrtxf2_internal): New implementation.
18355 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
18356 Hans-Peter Nilsson <hp@axis.com>
18358 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18359 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18360 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18361 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18362 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18363 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18364 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18365 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18366 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18367 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18368 * c-common.c: ...from here.
18370 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18372 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18374 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18376 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18378 2009-05-19 Ben Elliston <bje@au.ibm.com>
18380 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18381 assignments with memcpy calls.
18382 (add_fdes): Likewise.
18383 (binary_search_unencoded_fdes): Likewise.
18384 (linear_search_fdes): Eliminate type puns.
18386 2009-05-19 Richard Guenther <rguenther@suse.de>
18388 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18389 not falsely claim to have propagated into all uses.
18391 2009-05-19 Ben Elliston <bje@au.ibm.com>
18393 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18396 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18398 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18399 * config/sh/sh.c (sh_legitimate_address_p): Make static.
18400 (TARGET_LEGITIMATE_ADDRESS_P): New.
18401 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18402 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18404 2009-05-18 Dodji Seketeli <dodji@redhat.com>
18407 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18408 child of the containing namespace's DIE.
18410 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
18412 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18413 *zero_extendhi_truncqi): Move after the zero_extend patterns.
18414 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18417 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
18420 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18421 gen_align with gen_pad.
18422 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18423 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18425 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18426 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18428 * config/i386/i386.md (align): Renamed to ...
18429 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18430 ASM_OUTPUT_MAX_SKIP_PAD.
18432 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
18434 * config.gcc: Fix variable syntax.
18437 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18438 before calling exact_log2.
18439 (output_iorsi3): Likewise.
18440 (output_xorsi3): Likewise.
18442 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18444 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18445 for the none zero constant operand except for EQ and NE
18446 comprisons even when the first operand is R0.
18448 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
18450 * config/s390/2064.md: Remove trailing whitespaces.
18451 * config/s390/2084.md: Likewise.
18452 * config/s390/constraints.md: Likewise.
18453 * config/s390/fixdfdi.h: Likewise.
18454 * config/s390/libgcc-glibc.ver: Likewise.
18455 * config/s390/s390-modes.def: Likewise.
18456 * config/s390/s390-protos.h: Likewise.
18457 * config/s390/s390.c: Likewise.
18458 * config/s390/s390.h: Likewise.
18459 * config/s390/s390.md: Likewise.
18460 * config/s390/tpf-unwind.h: Likewise.
18462 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18464 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18466 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18469 * configure.ac (m68k-*-*): Check if binutils support TLS.
18470 * configure: Regenerate.
18471 * config/m68k/predicates.md (symbolic_operand): Extend comment.
18472 * config/m68k/constraints.md (Cu): New constraint.
18473 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18474 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18475 (movsi): Handle TLS symbols.
18476 (addsi3_5200): Handle XTLS symbols, indent.
18477 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18478 (m68k_tls_reference_p): Declare.
18479 (m68k_legitimize_address): Declare.
18480 (m68k_unwrap_symbol): Declare.
18481 * config/m68k/m68k.opt (mxtls): New option.
18482 * config/m68k/m68k.c (ggc.h): Include.
18483 (m68k_output_dwarf_dtprel): Implement hook.
18484 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18485 (m68k_expand_prologue): Load GOT pointer when function needs it.
18486 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18487 (m68k_legitimate_constant_address_p): Same.
18488 (m68k_decompose_address): Handle TLS references.
18489 (m68k_get_gp): New static function.
18490 (enum m68k_reloc): New contants.
18491 (TLS_RELOC_P): New macro.
18492 (m68k_wrap_symbol): New static function.
18493 (m68k_unwrap_symbol): New function.
18494 (m68k_final_prescan_insn_1): New static function.
18495 (m68k_final_prescan_insn): New function.
18496 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18498 (legitimize_pic_address): Handle TLS references..
18499 (m68k_tls_get_addr, m68k_get_tls_get_addr)
18500 (m68k_libcall_value_in_a0_p)
18501 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18502 (m68k_call_m68k_read_tp): Helper variables and functions for ...
18503 (m68k_legitimize_tls_address): Handle TLS references.
18504 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18506 (m68k_legitimize_address): Handle TLS symbols.
18507 (m68k_get_reloc_decoration): New static function.
18508 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18510 (m68k_output_dwarf_dtprel): Implement hook.
18511 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18512 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18513 m68k_call_* routines.
18514 (sched_attr_op_type): Handle TLS symbols.
18515 (gt-m68k.h): Include.
18516 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18517 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18519 2009-05-18 Martin Jambor <mjambor@suse.cz>
18521 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18522 (visit_store_addr_for_mod_analysis): New function.
18523 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18524 (determine_cst_member_ptr): Use gimple_assign_single_p.
18525 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18526 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18527 operands. Don't check number of operands of a NOP_EXPR.
18529 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
18531 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18533 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
18536 * c-common.c (warn_logical_operator): Don't warn if one of
18537 expression isn't always true or false.
18539 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
18541 * config/i386/biarch32.h: New file.
18542 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18544 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
18546 * config/mips/mips.md (*zero_extend<mode>_trunchi,
18547 *zero_extend<mode>_truncqi): Merge these into ...
18548 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18549 Name the pattern following this as *zero_extendhi_truncqi.
18551 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
18553 PR middle-end/39301
18554 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18555 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18556 (output_info): Make field HOST_WIDEST_INT.
18557 (print_statistics): Use HOST_WIDEST_INT_PRINT.
18558 (dump_bitmat_statistics): Same.
18560 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
18562 * config.gcc (use_gcc_stdint): Set to wrap.
18563 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18564 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18565 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18566 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18567 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18568 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18569 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18570 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18572 2009-05-16 Joseph Myers <joseph@codesourcery.com>
18574 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18576 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18577 Move definitions earlier.
18578 (OPT_ARCH64, OPT_ARCH32): Define.
18579 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18582 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
18585 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18588 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
18590 * arm.md (movdi2): Copy non-reg values to DImode registers.
18592 2009-05-16 Jakub Jelinek <jakub@redhat.com>
18595 * final.c (label_to_max_skip): New function.
18596 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18597 CODE_LABEL_NUMBER <= max_labelno.
18598 * output.h (label_to_max_skip): New prototype.
18599 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18600 (ix86_avoid_jump_mispredicts): ... this. Don't define if
18601 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
18602 Handle CODE_LABELs with >= 16 byte alignment or with
18603 max_skip == (1 << align) - 1.
18604 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18605 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18608 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18609 .p2align 3 if MAX_SKIP is smaller than 7.
18610 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18612 2009-05-15 Ian Lance Taylor <iant@google.com>
18614 * alias.c (struct alias_set_entry_d): Rename from struct
18615 alias_set_entry. Change all uses.
18616 * except.c (struct call_site_record_d): Rename from struct
18617 call_site_record. Change all uses.
18618 * except.h (struct eh_region_d): Rename from struct eh_region.
18620 * gcse.c (struct hash_table_d): Rename from struct hash_table.
18622 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18623 ivtype_map_elt. Change all uses.
18624 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18626 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
18627 * graphite.h (struct name_tree_d): Rename from struct name_tree.
18629 (struct sese_d): Rename from struct sese. Change all uses.
18630 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
18631 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
18632 * optabs.h (struct optab_d): Rename from struct optab. Change all
18634 (struct convert_optab_d): Rename from struct convert_optab.
18636 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18637 ipa_opt_pass. Change all uses.
18638 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
18641 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18642 defined as a typedef.
18643 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18646 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18649 * fold-const.c (make_range,build_range_check,merge_ranges): Move
18651 (merge_ranges): Returns bool.
18652 * tree.h (make_range): .. to here.
18653 (build_range_check): Likewise.
18654 (merge_ranges): Likewise. Renamed from merge_ranges.
18655 * c-typeck.c (parser_build_binary_op): Update calls to
18656 warn_logical_operator.
18657 * c-common.c (warn_logical_operator): Add new warning.
18658 * c-common.h (warn_logical_operator): Update declaration.
18660 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18662 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
18664 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18666 * doc/install.texi: Document MPC requirements, flags etc.
18668 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18669 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18670 Evaluate constant arguments.
18671 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18672 (fold_builtin_1): Likewise, also evaluate constant arguments.
18673 Remove superfluous break.
18674 (do_mpc_ckconv): New.
18675 * real.h: Include mpc.h.
18676 * toplev.c (print_version): Output MPC version info if available.
18678 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18680 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
18682 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
18684 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18687 2009-05-15 Jan Hubicka <jh@suse.cz>
18689 * doc/invoke.texi (max-early-inliner-iterations): New flag.
18690 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18691 (try_inline): Fix return value.
18692 (cgraph_decide_inlining_incrementally): Honor new value.
18693 (cgraph_early_inlining): Handle indirect inlining.
18694 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18696 2009-05-15 Jan Hubicka <jh@suse.cz>
18698 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18699 * cgraphunit.c (cgraph_finalize_function): Set it.
18700 (cgraph_expand_function): Use it.
18702 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18704 * real.c (encode_ieee_half): Define.
18705 (decode_ieee_half): Define.
18706 (ieee_half_format): Define.
18707 (arm_half_format): Define.
18708 * real.h (ieee_half_format): Declare.
18709 (arm_half_format): Declare.
18711 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18713 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
18714 swapped, and reversed optabs exist before trying to use them.
18716 2009-05-15 Paul Brook <paul@codesourcery.com>
18717 Sandra Loosemore <sandra@codesourcery.com>
18719 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18720 loads. Allow PRE_DEC.
18721 (output_move_neon): Handle PRE_DEC.
18722 (arm_print_operand): Add 'A' for neon structure loads.
18723 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18724 * config/arm/neon.md (neon_mov): Update comment.
18725 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18727 (Um): New constraint.
18729 2009-05-15 Jan Hubicka <jh@suse.cz>
18731 Revert the following patch until testsuite fallout is fixed:
18732 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18733 * cgraph.h (struct inline_summary): New filed self_wize,
18734 size_inlining_benefit, self_time and time_inlining_benefit.
18735 (struct cgraph_global_info): Replace insns by time ans size fields.
18736 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18737 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18738 (ipcp_update_callgraph): Do not touch function bodies.
18739 * ipa-inline.c: Include except.h
18740 (MAX_TIME): New constant.
18741 (overall_insns): Remove
18742 (overall_size, max_benefit): New static variables.
18743 (cgraph_estimate_time_after_inlining): New function.
18744 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18745 (cgraph_clone_inlined_nodes): Update size.
18746 (cgraph_mark_inline_edge): Update size.
18747 (cgraph_estimate_growth): Use size info.
18748 (cgraph_check_inline_limits): Check size.
18749 (cgraph_default_inline_p): Likewise.
18750 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18751 (cgraph_decide_recursive_inlining): Check size.
18752 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18754 (cgraph_decide_inlining): Likewise.
18755 (cgraph_decide_inlining_incrementally): Likewise; honor
18756 PARAM_EARLY_INLINING_INSNS.
18757 (likely_eliminated_by_inlining_p): New predicate.
18758 (estimate_function_body_sizes): New function.
18759 (compute_inline_parameters): Use it.
18760 * except.c (must_not_throw_labels): New function.
18761 * except.h (must_not_throw_labels): Declare.
18762 * tree-inline.c (init_inline_once): Kill inlining_weigths
18763 * tree-ssa-structalias.c: Avoid uninitialized warning.
18764 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18765 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18766 (PARAM_INLINE_CALL_COST): Remove.
18767 (PARAM_EARLY_INLINING_INSNS): New.
18769 2009-05-15 Richard Guenther <rguenther@suse.de>
18771 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18772 not TODO_update_ssa.
18774 2009-05-15 Richard Guenther <rguenther@suse.de>
18776 PR tree-optimization/39999
18777 * gimple.h (gimple_expr_type): Use the expression type looking
18778 through useless conversions.
18779 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18780 (vn_nary_op_insert_stmt): Likewise.
18781 (simplify_binary_expression): Likewise.
18783 2009-05-15 Richard Guenther <rguenther@suse.de>
18785 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18786 New options, enabled by default.
18787 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18789 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18790 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18791 * tree-ssa-structalias.c (gate_tree_pta): New function.
18792 (pass_build_alias): Use it.
18794 2009-05-15 Joseph Myers <joseph@codesourcery.com>
18796 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18797 recurse on an invariant address if a conversion from a pointer
18798 type to a wider integer type is involved.
18800 2009-05-15 Jan Hubicka <jh@suse.cz>
18802 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18803 * cgraph.h (struct inline_summary): New filed self_wize,
18804 size_inlining_benefit, self_time and time_inlining_benefit.
18805 (struct cgraph_global_info): Replace insns by time ans size fields.
18806 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18807 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18808 (ipcp_update_callgraph): Do not touch function bodies.
18809 * ipa-inline.c: Include except.h
18810 (MAX_TIME): New constant.
18811 (overall_insns): Remove
18812 (overall_size, max_benefit): New static variables.
18813 (cgraph_estimate_time_after_inlining): New function.
18814 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18815 (cgraph_clone_inlined_nodes): Update size.
18816 (cgraph_mark_inline_edge): Update size.
18817 (cgraph_estimate_growth): Use size info.
18818 (cgraph_check_inline_limits): Check size.
18819 (cgraph_default_inline_p): Likewise.
18820 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18821 (cgraph_decide_recursive_inlining): Check size.
18822 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18824 (cgraph_decide_inlining): Likewise.
18825 (cgraph_decide_inlining_incrementally): Likewise; honor
18826 PARAM_EARLY_INLINING_INSNS.
18827 (likely_eliminated_by_inlining_p): New predicate.
18828 (estimate_function_body_sizes): New function.
18829 (compute_inline_parameters): Use it.
18830 * except.c (must_not_throw_labels): New function.
18831 * except.h (must_not_throw_labels): Declare.
18832 * tree-inline.c (init_inline_once): Kill inlining_weigths
18833 * tree-ssa-structalias.c: Avoid uninitialized warning.
18834 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18835 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18836 (PARAM_INLINE_CALL_COST): Remove.
18837 (PARAM_EARLY_INLINING_INSNS): New.
18838 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18839 (inline-call-cost): Remove.
18840 (early-inlining-insns): New.
18842 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
18844 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
18846 (print_int_cst_bounds_in_octal_p): Likewise.
18847 (dbxout_type): Adjust calls to above functions. Be prepared to deal
18849 * dwarf2out.c (base_type_die): Likewise.
18850 (is_subrange_type): Delete.
18851 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
18852 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
18853 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18854 if the destination type is boolean.
18855 (build_range_check): Do not special-case subtypes.
18856 (fold_sign_changed_comparison): Likewise.
18857 (fold_unary): Likewise.
18858 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18859 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18860 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
18861 * tree.c (subrange_type_for_debug_p): New predicate based on the
18862 former is_subrange_type.
18863 * tree.h (subrange_type_for_debug_p): Declare.
18864 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18865 (convert_affine_scev): Remove call to above function.
18866 (chrec_convert_aggressive): Likewise.
18867 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18868 false for conversions involving subtypes.
18869 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18870 (vrp_val_min): Likewise.
18871 (needs_overflow_infinity): Likewise.
18872 (extract_range_from_unary_expr): Likewise.
18874 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
18876 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18877 * config/frv/frv.c: Likewise.
18878 * config/s390/s390.c: Likewise.
18879 * config/sparc/sparc.h: Likewise.
18880 * config/i386/i386.h: Likewise.
18881 * config/i386/i386.c: Likewise.
18882 * config/crx/crx.c: Likewise.
18883 * config/m68hc11/m68hc11.h: Likewise.
18884 * config/iq2000/iq2000.c: Likewise.
18885 * config/mn10300/mn10300.h: Likewise.
18886 * config/mn10300/mn10300.c: Likewise.
18887 * config/m68k/m68k.c: Likewise.
18888 * config/rs6000/rs6000.c: Likewise.
18889 * config/rs6000/xcoff.h: Likewise.
18890 * config/rs6000/linux64.h: Likewise.
18891 * config/rs6000/sysv4.h: Likewise.
18892 * config/score/score3.c: Likewise.
18893 * config/score/score7.c: Likewise.
18894 * config/score/score.c: Likewise.
18895 * config/arm/arm.md: Likewise.
18896 * config/mips/mips.c: Likewise.
18897 * config/mips/mips.md: Likewise.
18898 * config/bfin/bfin.h: Likewise.
18899 * config/pa/pa.c: Likewise.
18900 * config/pa/constraints.md: Likewise.
18902 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18903 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18904 * config/pdp11/pdp11.h: Use memory_address_p instead.
18906 2009-05-14 Ian Lance Taylor <iant@google.com>
18908 * passes.c (finish_optimization_passes): Change i to int.
18909 * plugin.c (plugins_active_p): Change event to int.
18910 (dump_active_plugins): Likewise.
18911 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18913 * tree.c (tree_range_check_failed): Change c to unsigned int.
18914 (omp_clause_range_check_failed): Likewise.
18915 (build_common_builtin_nodes): Change mode to int. Add cast.
18916 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18917 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18919 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18920 ++ or -- with a variable of enum type.
18922 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18925 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18927 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18929 * store-motion.c: Do not include params.h
18930 * Makefile.in: Fix dependencies for various files.
18932 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18934 * auto-inc-dec.c: Fix pass description, remove apparent
18935 accidental duplication.
18937 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
18939 PR middle-end/40147
18940 * ipa-utils.h (memory_identifier_string): Moved to ...
18941 * tree.h (memory_identifier_string): Here. Add GTY(()).
18943 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
18945 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18946 in the former documentation of...
18947 (GO_IF_LEGITIMATE_ADDRESS): ... this.
18948 * ira-conflicts.c (get_dup_num): Use address_operand.
18949 * targhooks.c (default_legitimate_address_p): New.
18950 * targhooks.h (default_legitimate_address_p): New.
18951 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18953 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18954 * target.h (struct target): Add legitimate_address_p.
18955 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18956 (TARGET_INITIALIZER): Include it.
18958 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18959 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18960 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18961 (TARGET_LEGITIMATE_ADDRESS_P): New.
18963 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18964 (REG_OK_STRICT_P): Delete.
18965 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18966 (frv_legitimate_address_p_1): ... this.
18967 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18968 (frv_legitimate_address_p_1): ... the renamed old
18969 frv_legitimate_address_p.
18970 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18971 (TARGET_LEGITIMATE_ADDRESS_P): New.
18973 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18974 * config/s390/s390-protos.h (legitimate_address_p): Remove.
18975 * config/s390/s390.c (legitimate_address_p): Rename to...
18976 (s390_legitimate_address_p): ... this, make static.
18977 (legitimize_address): Adjust call.
18978 (TARGET_LEGITIMATE_ADDRESS_P): New.
18979 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18981 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18982 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18983 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18984 (TARGET_LEGITIMATE_ADDRESS_P): New.
18986 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18987 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18988 * config/spu/spu.c (spu_legitimate_address): Rename to...
18989 (spu_legitimate_address_p): ... this, make static.
18990 (TARGET_LEGITIMATE_ADDRESS_P): New.
18992 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18993 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18994 * config/sparc/sparc.c (legitimate_address_p): Rename to...
18995 (sparc_legitimate_address_p): ... this, make static and return bool.
18996 (legitimize_address): Adjust call.
18997 (TARGET_LEGITIMATE_ADDRESS_P): New.
18999 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19000 * config/i386/i386-protos.h (legitimate_address_p): Remove.
19001 * config/i386/i386.c (legitimate_address_p): Rename to...
19002 (ix86_legitimate_address_p): ... this, make static.
19003 (constant_address_p): Move after it, adjust call.
19004 (TARGET_LEGITIMATE_ADDRESS_P): New.
19006 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19007 * config/avr/avr-protos.h (legitimate_address_p): Remove.
19008 * config/avr/avr.c (legitimate_address_p): Rename to...
19009 (avr_legitimate_address_p): ... this, make static.
19010 (legitimize_address): Adjust call.
19011 (TARGET_LEGITIMATE_ADDRESS_P): New.
19013 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19014 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
19015 * config/crx/crx.c (crx_legitimate_address_p): Make static.
19016 (TARGET_LEGITIMATE_ADDRESS_P): New.
19018 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19019 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
19020 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
19021 (TARGET_LEGITIMATE_ADDRESS_P): New.
19023 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19024 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
19026 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19028 (TARGET_LEGITIMATE_ADDRESS_P): New.
19030 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19031 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
19033 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
19035 (m68hc11_legitimate_address_p): ... this, make static.
19036 (go_if_legitimate_address_internal): Rename to...
19037 (m68hc11_legitimate_address_p_1): ... this.
19038 (legitimize_address): Adjust call.
19039 (TARGET_LEGITIMATE_ADDRESS_P): New.
19041 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19042 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
19043 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
19044 (TARGET_LEGITIMATE_ADDRESS_P): New.
19046 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19047 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
19048 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
19049 (mn10300_legitimate_address_p): ... this, make static.
19050 (TARGET_LEGITIMATE_ADDRESS_P): New.
19052 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19053 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
19054 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
19055 (TARGET_LEGITIMATE_ADDRESS_P): New.
19057 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19058 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
19059 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
19060 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19061 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
19062 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
19063 (rs6000_legitimate_address_p): ... this, make static.
19064 (TARGET_LEGITIMATE_ADDRESS_P): New.
19065 (REG_MODE_OK_FOR_BASE_P): Delete.
19066 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
19068 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19069 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
19071 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
19072 static, adjust types.
19073 (TARGET_LEGITIMATE_ADDRESS_P): New.
19075 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19076 * config/score/score.c (score_address_p): Rename to...
19077 (score_legitimate_address_p): ... this.
19078 (TARGET_LEGITIMATE_ADDRESS_P): New.
19079 * config/score/score3.c (score3_address_p): Rename to...
19080 (score3_legitimate_address_p): ... this.
19081 * config/score/score7.c (score7_address_p): Rename to...
19082 (score7_legitimate_address_p): ... this.
19084 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
19085 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
19086 GO_IF_LEGITIMATE_ADDRESS): Delete.
19087 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
19088 thumb2_legitimate_address_p): Delete.
19089 (arm_legitimate_address_p): Rename to...
19090 (arm_legitimate_address_outer_p): ... this.
19091 * config/arm/constraints.md ("Uq"): Adjust call.
19092 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
19093 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
19095 (arm_legitimate_address_outer_p): ... this.
19096 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
19098 (TARGET_LEGITIMATE_ADDRESS_P): New.
19100 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19101 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
19102 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
19103 (TARGET_LEGITIMATE_ADDRESS_P): New.
19105 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19106 * config/vax/vax-protos.h (legitimate_address_p): Remove.
19107 * config/vax/vax.c (legitimate_address_p): Rename to...
19108 (vax_legitimate_address_p): ... this, make static.
19109 (TARGET_LEGITIMATE_ADDRESS_P): New.
19111 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19112 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
19113 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
19114 (TARGET_LEGITIMATE_ADDRESS_P): New.
19116 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19117 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19118 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19119 (mmix_legitimate_address_p): ... this, make static.
19120 (TARGET_LEGITIMATE_ADDRESS_P): New.
19122 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19123 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19124 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19125 (TARGET_LEGITIMATE_ADDRESS_P): New.
19127 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
19129 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19130 of MODE_COMPLEX_INT.
19132 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19134 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19135 LCT_NORMAL in function call.
19136 * mips-tdump.c (print_file_desc): Add cast to enum type.
19137 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19138 (mark_stabs): Add casts to enum types.
19139 (parse_stabs_common): Add casts to enum types.
19141 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19143 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19144 Check for invalid values of LETTER.
19146 2009-05-13 Taras Glek <tglek@mozilla.com>
19148 * attribs.c (register_attribute): moved out attribute registration
19149 into register_attribute.
19150 * doc/plugins.texi: Documented register_attribute and
19152 * gcc-plugin.h: Added forward decl for register_attribute.
19153 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19154 * plugin.c (register_callback, invoke_plugin_callbacks): Added
19155 PLUGIN_ATTRIBUTES boilerplate.
19157 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
19159 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
19160 values even in sentinel and empty entries.
19161 (ms_printf_flag_specs): Likewise.
19162 (ms_scanf_flag_specs): Likewise.
19163 (ms_strftime_flag_specs): Likewise.
19164 (ms_print_char_table): Likewise.
19165 (ms_scan_char_table): Likewise.
19166 (ms_time_char_table): Likewise.
19168 2009-05-13 Doug Kwan <dougkwan@google.com>
19170 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19172 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19174 * config/mips/mips.md (store): Add attributes for QI and HI.
19176 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19177 (truncdi<mode>2): ... this new pattern.
19179 2009-05-13 Brad Hards <bradh@kde.org>
19181 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19183 2009-05-14 Jakub Jelinek <jakub@redhat.com>
19184 Ben Elliston <bje@au.ibm.com>
19186 PR middle-end/40035
19187 * dse.c (check_mem_read_rtx): Guard against width == -1.
19189 2009-05-13 Michael Matz <matz@suse.de>
19191 PR middle-end/39976
19192 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19193 (trivially_conflicts_p): New function.
19194 (insert_backedge_copies): Use it.
19196 2009-05-13 Janis Johnson <janis187@us.ibm.com>
19198 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19199 (handle_stdc_pragma): Use new enum constant names.
19200 (handle_pragma_float_const_decimal64): Ditto.
19202 2009-05-13 Ian Lance Taylor <iant@google.com>
19204 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19207 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
19209 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19210 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19212 * config/m68k/m68k.h (FL_UCLINUX): Define.
19214 2009-05-13 Jan Hubicka <jh@suse.cz>
19216 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19218 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19220 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19221 unless -fschedule-insns is specified.
19223 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19226 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19227 TARGET_EXPAND_CBRANCHDI4.
19228 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19229 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19230 (cmpeqdi): Fix comment.
19232 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19234 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19235 (sh_legitimate_address_p): Likewise.
19236 * config/sh/sh.c (sh_legitimate_index_p): New.
19237 (sh_legitimate_address_p): Likewise.
19238 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19239 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19240 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19241 (MAYBE_BASE_REGISTER_RTX_P): New macro.
19242 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19243 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19244 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19245 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19246 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19248 2009-05-12 Jan Hubicka <jh@suse.cz>
19250 * tree-inline.c (estimate_operator_cost): Add operands;
19251 when division happens by constant, it is cheap.
19252 (estimate_num_insns): Loads and stores are not having cost of 0;
19253 EH magic stuff is cheap; when computing runtime cost of switch,
19254 use log2 base of amount of its cases; builtin_expect has cost of 0;
19255 compute cost for moving return value of call.
19256 (init_inline_once): Initialize time_based flags.
19257 * tree-inline.h (eni_weights_d): Add time_based flag.
19259 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19261 * df-core.c: Update head documentation.
19263 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19266 * rs6000.c (rs6000_generate_compare): Use op1b instead of
19267 shadowing exisiting variable op1.
19269 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
19272 * config/i386/driver-i386.c (processor_signatures): New enum.
19273 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19274 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19275 processor signature to detect geode processor.
19277 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19281 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19283 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19284 causes spurious differences between trunk and cond-optab branch.
19286 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19288 * dojump.c (compare_from_rtx): Delete.
19289 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
19290 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
19291 if the comparison does not satisfy the predicate; test predicates for
19292 operands 2 and 3 of a cstore pattern. Don't try cstore optab
19293 further if one existing pattern fails.
19294 * expr.h (compare_from_rtx): Delete.
19295 (prepare_operand): Declare it.
19296 * optabs.c: Change "lib call" to "libcall" throughout.
19297 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19298 HAVE_conditional_trap, emit_cmp_insn): Delete.
19299 (can_compare_p): Delete cmp_optab case.
19300 (prepare_float_lib_cmp): Return an rtx and a machine mode.
19301 Accept other parameters by value.
19302 (prepare_operand): Make non-static.
19303 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
19304 other parameters by value. Try to widen operands here based on
19305 an optab_methods argument and looking at cbranch_optab.
19306 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19307 loop. Use cbranch_optab directly.
19308 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
19309 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19311 (emit_conditional_move, emit_conditional_add): Inline what's needed
19312 of compare_from_rtx, using new prepare_cmp_insn for the rest.
19313 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19314 with COMPARE. Move cmov_optab and cstore_optab above
19315 with cbranch_optab, move cmp_optab down with ucmp_optab,
19316 remove tst_otpab. Do not initialize trap_rtx.
19317 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
19318 for trap code. Do not check HAVE_conditional_trap. Use
19319 prepare_cmp_insn. Accept no predicate for operand 3.
19320 * optabs.h (OTI_cmp): Mark as used only for libcalls.
19321 (OTI_ctrap, ctrap_optab): New.
19322 (tst_optab): Delete.
19323 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19324 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19325 with lookup of ctrap_optab.
19326 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19328 (ctrap_optab): New.
19330 * combine.c (combine_simplify_rtx, simplify_set): Do not
19331 special case comparing against zero for cc0 machines.
19332 * simplify-rtx.c (simplify_binary_operation_1): Never remove
19333 COMPARE on cc0 machines.
19334 (simplify_relational_operation): Return a new expression when
19335 a COMPARE could be removed.
19336 * final.c (final_scan_insn): Compare cc_status values
19337 against LHS of a (compare FOO (const_int 0)) cc0 source.
19338 Also check if cc_status.value is the full compare.
19340 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19341 (cstoreMM4): Document.
19342 (conditional_trap): Document ctrapMM4 instead.
19343 (sync_compare_and_swapMM): Refer to cbranchcc4.
19344 (Dependent Patterns): Eliminate obsolete information referring to
19345 the old jump optimization phase.
19346 (Canonicalization): Include cbranchcc4 case, omit canonicalization
19347 of compares with 0 on cc0 machines.
19348 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19349 avoiding references to cc0. Remove text about storing operands
19351 * doc/tm.texi (Condition Codes): Include blurb on different
19352 condition code representations, separate into subsections for
19353 CC0, MODE_CC and conditional execution.
19355 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19356 alpha_emit_setcc): Accept operands and a machine mode.
19357 * config/alpha/alpha.c (alpha_emit_conditional_branch):
19358 Get code/op0/op1 from operands, use machine mode argument
19359 instead of alpha_compare.fp_p. Emit the branch here.
19360 (alpha_emit_setcc): Likewise, and return boolean.
19361 (alpha_emit_conditional_move): Likewise. Assert that
19362 cmp_op_mode == cmp_mode, and simplify accordingly.
19363 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19364 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19365 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19367 (stack probe test): Use cbranchdi4.
19368 * config/alpha/predicates.md (alpha_cbranch_operator): New.
19370 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19371 * config/arc/arc.h (movsicc, movsfcc): Use it.
19372 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19373 (cbranchsi4, cstoresi4): New.
19374 (cmpsi, bCC and sCC expanders): Remove.
19376 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19377 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19378 * config/arm/predicates.md (arm_comparison_operator): Only include
19379 floating-point operators if there is a hardware floating-point unit.
19380 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19381 deferring to cbranch_cc and cstore_cc respectively.
19382 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19383 cbranch_cc, cstore_cc): New.
19384 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19386 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19388 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19389 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19391 (adjust_insn_length): Adjust calls.
19392 (avr_reorg): Handle (compare (foo) (const_int 0)).
19393 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19394 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19395 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19396 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19398 (cbranchqi4, cbranchhi4, cbranchsi4): New.
19399 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19401 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19402 (cbranchsi4, cstorebi4, cstoresi4): New.
19403 (movbisi): This insn is duplicate, split it to zero_extend.
19404 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19405 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
19406 (bfin_optimize_loop): Use cbranch expander.
19407 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19408 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19409 (bfin_bimode_comparison_operator): ... this.
19410 (bfin_direct_comparison_operator): New.
19412 * config/cris/cris.c (cris_normal_notice_update_cc): Look
19413 inside (compare FOO (const_int 0)).
19414 (cris_rtx_costs): Handle ZERO_EXTRACT.
19415 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19416 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19417 (*tstdi_v32): Delete.
19418 (*cmpdi_non_v32): Add M alternative for operand 1.
19419 (cmpsi, cmp<mode>): Make private.
19420 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19422 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19424 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19425 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19426 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19427 (cc_reg_operand): New.
19428 (any_cond): Delete.
19429 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19430 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19431 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19432 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19433 crx_expand_scond): Delete.
19435 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19437 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19438 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19440 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19441 cstoresi4, cstoresf4, cstoredf4): New.
19442 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19443 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19444 Receive the entire operands array.
19445 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19446 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19447 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19448 Get test/op0/op1 from the operands array.
19449 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19451 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19452 (h8300_expand_store): New.
19453 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19455 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
19456 (h8300_expand_store): New.
19457 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19458 or do not try to produce (set (cc0) REG).
19459 (peepholes): Wrap arguments with COMPARE. Add a peephole to
19460 change a compare into a move to a scratch register. Disable some
19461 peepholes when comparing with zero.
19462 (tstsi, tsthi, tstsi, cmpqi): Make private.
19464 (bCC, sCC): Delete.
19465 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19468 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19469 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19470 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19471 (ix86_emit_i387_log1p): Use cbranchxf2.
19472 (ix86_expand_setcc): Return void.
19473 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19474 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19475 cmp<MODEF>, cmpcc): Remove.
19476 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19477 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19478 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19479 (sCC and bCC expanders): Remove.
19480 (stack_protect_test): Use cbranchcc4.
19482 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19484 (ia64_expand_compare): Accept three rtx by reference and return void.
19485 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19486 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
19487 from *expr. Update *expr with the BImode comparison to do.
19488 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19489 cmptf, bCC, sCC, conditional_trap): Delete.
19490 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19491 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19492 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19493 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19494 * config/ia64/predicates.md (ia64_cbranch_operator): New.
19496 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19497 type of last argument.
19498 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19499 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19500 use machine mode argument instead of branch_type. Remove dead
19501 code for floating-point comparisons.
19502 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19503 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19505 (cbranchsi4, cstoresi4): New.
19506 * config/iq2000/predicates.md (reg_or_const_operand): New.
19508 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19509 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19510 (b<code>_op): Rewrite to...
19511 (bcc_op): ... this, using match_operator.
19512 (s<code>_op): Rewrite to...
19513 (scc_op): ... this, using match_operator.
19514 (s<code>_24_op): Rewrite to...
19515 (scc_op_24): ... this, using match_operator.
19516 (s<code>_<mode>): Rewrite to...
19517 (cstore<mode>4): ... this, using match_operator.
19518 (s<code>_<mode>_24): Rewrite to...
19519 (cstore<mode>4_24): ... this, using match_operator.
19520 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19521 m32c_unpend_compare, m32c_expand_scc): Delete.
19522 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19523 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19524 (m32c_expand_movcc): Change NE to EQ if necessary.
19525 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19527 * config/m32r/m32r-protos.h (gen_cond_store): New.
19528 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19529 (gen_cond_store): New, from sCC patterns.
19530 (m32r_expand_block_move): Use cbranchsi4.
19531 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19532 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19533 (cbranchsi4, cstoresi4): New.
19535 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19537 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19538 (m68hc11_notice_update_cc): Look into a compare with 0.
19539 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19541 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19542 cmphi, cmpqi, bCC): Delete.
19543 (cbranchsi4, cbranchhi4, cbranchqi4): New.
19544 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19545 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19548 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19549 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19550 * config/m68k/constraints.md (H): New.
19551 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19552 the define_insn below.
19553 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19554 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19555 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19556 patterns): Wrap RHS with COMPARE.
19557 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19558 (*cmpdi_internal): Name this pattern.
19559 (cmpdi): Change to define_insn.
19560 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19561 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19562 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19564 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19565 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19566 (conditional_trap): Change to...
19567 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19568 (*conditional_trap): Use the ordered_comparison_operator and
19569 const1_operand predicates.
19570 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19571 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19572 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19573 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19575 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19576 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19577 (mcore_gen_compare): New.
19578 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19579 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19580 (mcore_gen_compare): ... this.
19581 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19582 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19583 (stack probe pattern): Use cbranchsi4.
19585 * config/mips/predicates.md (mips_cstore_operator): New.
19586 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19587 * config/mips/mips.md (any_cond): Delete.
19588 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
19590 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19591 fixuns_truncsfdi2): Use cbranch patterns.
19592 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19593 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19594 Adjust call to mips_expand_conditional_branch.
19595 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19597 * config/mips/mips-protos.h (mips_expand_conditional_branch,
19598 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19599 * config/mips/mips.c (cmp_operands): Delete.
19600 (mips_emit_compare): Get comparison operands from *op0/*op1.
19601 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
19602 that it succeeds. Use op0/op1 instead of cmp_operands.
19603 (mips_expand_conditional_branch, mips_expand_conditional_move,
19604 mips_expand_conditional_trap): Likewise.
19605 (mips_block_move_loop): Use cbranch patterns.
19606 * config/mips/mips.h (cmp_operands): Delete.
19608 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19609 (mmix_gen_compare_reg): Just return a register in the right CC mode.
19610 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19611 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19612 (*cmpcc_folded): Rename to...
19613 (*cmpdi_folded): this.
19614 (*cmpcc): Rename to...
19616 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19619 (cbranchdf4): New. Handle invalid comparisons here.
19620 * config/mmix/predicates.md (float_comparison_operator): New.
19622 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19623 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19624 * config/mn10300/mn10300.md (tst): Delete.
19625 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19626 Name these patterns and wrap RHS in a compare.
19627 (*cmpsi): Make this pattern private. Include tst.
19628 (*cmpsf): Make this pattern private.
19629 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19630 (compare with zero peepholes): Likewise.
19632 (cbranchsi4, cbranchsf4): New.
19633 (casesi): Use cbranchsi4.
19635 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19636 hppa_branch_type): Delete.
19637 (return_addr_rtx): Use cbranchsi4.
19638 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
19639 Emit CCFPmode comparison here.
19640 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19641 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19642 hppa_branch_type): Delete.
19643 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19644 (movsicc, movdicc): Remove references to hppa_compare_op0,
19645 hppa_compare_op1 and compare_from_rtx.
19646 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19647 (casesi): Use cbranchsi4.
19649 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19650 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19651 * config/pdp11/pdp11.md (register_or_const0_operand): New.
19652 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
19653 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19655 (cbranchdf4, cbranchhi4, cbranchqi4): New.
19656 (*branch, *branch_inverted): New.
19658 * config/picochip/picochip.md (cbranchhi4): Use
19659 ordered_comparison_operator.
19660 (cmphi, bCC): Remove.
19662 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19663 (trap_comparison_operator): Delete.
19664 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19665 rs6000_emit_cbranch): Accept mode and operands.
19666 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
19667 rs6000_compare_fp_p): Delete.
19668 (rs6000_generate_compare): Accept mode and comparison. Extract code
19669 and op0/op1 from there. Replace references to rs6000_compare_op0
19670 and rs6000_compare_op1.
19671 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19672 extract result from passed operands.
19673 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19674 extract loc from passed operands.
19675 (rs6000_emit_cmove): Likewise.
19676 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19677 rs6000_compare_fp_p): Delete.
19678 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19679 (cbranch<GPR>4, cbranch<FP>4): New.
19680 (cstore<mode>4): New. Consolidate here all choices about when to use
19681 portable or specialized sCC sequences.
19682 (stack_protect_test): Use cbranchsi4.
19683 (conditional_trap): Replace with ctrap<GPR>4.
19684 (conditional trap insn): Replace trap_comparison_operator with
19685 ordered_comparison_operator.
19687 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19688 (s390_emit_prologue): Use ctrap.
19689 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19690 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19691 New predicates replacing...
19692 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19693 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19694 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19695 (add<mode>cc): Do not use s390_compare_op0/op1.
19696 (s<code>): Change to...
19697 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19698 (seq): Change to...
19699 (cstorecc4): ... this. Handle EQ or NE equally.
19700 (*sne): Un-privatize for use in cstorecc4.
19701 (b<code>): Change to...
19702 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19703 (conditional_trap): Replace with...
19704 (ctrap<GPR>4, ctrap<FP>4): ... these.
19705 (stack_protect): Use cbranchcc4.
19707 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19708 * config/score/score-protos.h (score_gen_cmp): Delete.
19709 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19710 (score_block_move-loop): Use cbranchsi4.
19711 * config/score/score.md (cbranchsi4): New.
19712 (cmpsi, bCC): Delete.
19713 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19714 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19715 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19716 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19717 * config/score/score3.h (score3_gen_cmp): Delete.
19718 * config/score/score7.h (score7_gen_cmp): Delete.
19720 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19721 (sh_emit_scc_to_t): ... this. Return void.
19722 (from_compare): Rename to...
19723 (sh_emit_compare_and_branch): ... this.
19724 (sh_emit_compare_and_set): New.
19725 (sh_expand_t_scc): Accept operands.
19726 * config/sh/predicates.md (sh_float_comparison_operator): New.
19727 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19728 (prepare_scc_operands): Rename to...
19729 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
19731 (sh_emit_cheap_store_flag): New.
19732 (sh_emit_set_t_insn): New.
19733 (from_compare): Rename to...
19734 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
19735 handling of TARGET_SH2E floating point to avoid recursive call.
19736 Generate branch here.
19737 (sh_emit_compare_and_set): New.
19738 (sh_expand_t_scc): Get op0/op1 from arguments.
19739 (sh_emit_cheap_store_flag): New.
19740 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19742 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
19743 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19744 (movsicc, movdicc): Do nothing when it recreated operands from
19745 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
19746 prepare_scc_operands (now sh_emit_scc_to_t).
19747 (udivdi3): Use cstoresi4.
19748 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19749 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19750 (cbranchint4_media, cbranchfp4_media): New.
19751 (casesi): Use cbranchdi4.
19752 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19754 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19755 (movnegt): Remove second operand.
19756 (cbranchsf4, cbranchdf4): New.
19757 (stack_protect): Use cbranchdi4/cbranchsi4.
19759 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19760 (gen_compare_reg): Accept comparison, extract part of it to...
19761 (gen_compare_reg_1): ... this.
19762 (gen_compare_operator): Delete.
19763 (gen_v9_scc): Accept separate destination, comparison code and arms.
19764 Do not use sparc_compare_op0/sparc_compare_op1.
19765 (emit_scc_insn, emit_conditional_branch_insn): New.
19766 (emit_v9_brxx): Make static. Remove useless assertion.
19767 (sparc_emit_float_lib_cmp): Return RTL instead of calling
19769 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19770 * config/sparc/sparc-protos.h (gen_compare_reg,
19771 sparc_emit_float_lib_cmp): Adjust prototype.
19772 (emit_scc_insn, emit_conditional_branch_insn): New.
19773 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
19774 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19775 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19776 iterators to the top.
19777 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19778 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
19779 snedi_special_trunc): Delete.
19780 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
19781 and snedi_special_trunc.
19782 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19783 cbranchdi4, cbranch<F:mode>4): New.
19784 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19785 here. Use gen_compare_reg instead of gen_compare_operator.
19786 (conditional_trap): Replace with...
19787 (ctrapsi4, ctrapdi4): ... this.
19788 (stack_protect_test): Use cbranchcc4.
19790 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19792 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
19793 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19794 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
19795 from operands[0] or operands[3] depending on is_set.
19796 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19797 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19798 cmpdf, bCC), sCC: Remove.
19799 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
19800 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19802 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19803 spu_emit_branch_or_set.
19805 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19807 * config/stormy16/stormy16.h (xstormy16_compare_op0,
19808 xstormy16_compare_op1): Delete.
19809 * config/stormy16/stormy16.c (xstormy16_compare_op0,
19810 xstormy16_compare_op1): Delete.
19811 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19813 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19814 (cmphi, cmpsi, bCC): Remove.
19816 * config/v850/v850.md (tstsi, cmpsi): Fold into...
19817 (*cmpsi): ... this one.
19818 (cbranchsi4, cstoresi4): New.
19819 (bCC expanders): Delete.
19820 (sCC insns): Fold into...
19821 (*setcc): ... this one.
19822 (casesi): Do not use gen_cmpsi and gen_bgtu.
19823 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19824 (movsicc): Simplify.
19825 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19827 * config/vax/vax-protos.h (cond_name): New.
19828 (vax_output_conditional_branch): Remove.
19829 * config/vax/vax.c (cond_name): New.
19830 (vax_output_conditional_branch): Remove.
19831 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19832 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19833 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
19834 (bit<VAXint>): Wrap source with (compare).
19835 (b<code> and following unnamed pattern): Rename to *branch and
19836 *branch_reversed. Change macroization to match_operator.
19837 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19839 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19840 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19841 Change last argument to machine_mode.
19842 (xtensa_expand_scc): Add machine_mode argument.
19843 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19844 (gen_conditional_move, xtensa_expand_conditional_branch,
19845 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19846 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19847 Adjust operand numbers.
19848 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19850 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19851 (cmpsi, cmpsf, b<code>, s<code>): Delete.
19852 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
19854 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19856 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19857 causes spurious differences between trunk and cond-optab branch.
19859 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
19862 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19864 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
19866 * tree.c (iterative_hash_pointer): Delete.
19867 (iterative_hash_expr): Short-circuit handling of NULL pointer.
19868 Hash UIDs and versions of SSA names. Don't special-case built-in
19869 function declarations.
19871 2009-05-11 Ian Lance Taylor <iant@google.com>
19874 * graphite.c: Force -Wc++-compat to only be a warning before
19875 #including "cloog/cloog.h".
19877 2009-05-11 Martin Jambor <mjambor@suse.cz>
19879 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
19881 2009-05-11 Jan Hubicka <jh@suse.cz>
19883 * tree-ssa-loop-ivcanon.c: Include target.h
19884 (struct loop_size): new structure.
19885 (constant_after_peeling): New predicate.
19886 (tree_estimate_loop_size): New function.
19887 (estimated_unrolled_size): Rewrite for new estimates.
19888 (try_unroll_loop_completely): Use new estimates.
19889 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19891 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19893 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19894 libcpp interface change.
19895 (spu_macro_to_expand): Likewise.
19897 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
19899 PR tree-optimization/40026
19900 * gimplify.c (gimplify_init_constructor): Change initial conditional
19901 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
19902 optimize_compound_literals_in_ctor.
19904 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
19906 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19908 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19910 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
19912 * tree-vect-data-refs.c (vect_analyze_group_access): Use
19913 HOST_WIDE_INT for gap.
19915 2009-05-11 Ira Rosen <irar@il.ibm.com>
19917 PR tree-optimization/40074
19918 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19919 account in group size and step comparison.
19921 2009-05-11 Richard Guenther <rguenther@suse.de>
19923 * passes.c (init_optimization_passes): Strip now incorrect comment.
19924 (execute_function_todo): Do not set PROP_alias.
19925 * tree-pass.h (PROP_alias): Remove.
19926 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19927 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19928 * tree-nrv.c (pass_return_slot): Likewise.
19929 * tree-object-size.c (pass_object_sizes): Likewise.
19930 * tree-ssa-dom.c (pass_dominator): Likewise.
19931 (pass_phi_only_cprop): Likewise.
19932 * tree-ssa-dse.c (pass_dse): Likewise.
19933 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19934 (pass_cselim): Likewise.
19935 * tree-ssa-pre.c (pass_pre): Likewise.
19936 (pass_fre): Likewise.
19937 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19938 * tree-ssa-sink.c (pass_sink_code): Likewise.
19939 * tree-stdarg.c (pass_stdarg): Likewise.
19940 * tree-tailcall.c (pass_tail_calls): Likewise.
19941 * tree-vrp.c (pass_vrp): Likewise.
19943 2009-05-10 Ian Lance Taylor <iant@google.com>
19945 * basic-block.h (enum profile_status): Break out of struct
19946 control_flow_graph.
19947 * cgraph.h (struct inline_summary): Break out of struct
19949 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19950 of struct cgraph_order_sort.
19951 * combine.c (enum undo_kind): New enum, broken out of struct undo.
19952 * cse.c (struct branch_path): Break out of struct
19953 cse_basic_block_data.
19954 * except.h (enum eh_region_type): Break out of struct eh_region.
19955 * gcc.c (enum add_del): Break out of struct modify_target.
19956 * genrecog.c (enum decision_type): Break out of struct decision_test.
19957 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19959 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19960 * regmove.c (enum match_use): New enum, broken out of struct match.
19961 * sched-int.h (enum post_call_group): New enum, broken out of
19963 (struct deps_reg): Break out of struct deps.
19964 * target.h (struct asm_int_op): Break out of struct gcc_target.
19965 * tree-eh.c (struct goto_queue_node): Break out of struct
19967 * tree-inline.h (enum copy_body_cge_which): Break out of
19969 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19971 * c-decl.c (in_struct, struct_types): New static variables.
19972 (pushtag): Add loc parameter. Change all callers.
19973 (lookup_tag): Add ploc parameter. Change all callers.
19974 (check_compound_literal_type): New function.
19975 (parser_xref_tag): Add loc parameter. Change all callers. If
19976 -Wc++-compat, warn about struct/union/enum types defined within a
19978 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19979 and loc parameters. Change all callers. Change error calls to
19980 error_at, using loc. For a redefinition, if the location of the
19981 original definition is known, report it. Set in_struct and
19982 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
19983 (finish_struct): Add new parameters enclosing_in_struct and
19984 enclosing_struct_types. Change all callers. Set
19985 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19986 in the struct. If in a struct, add this struct to struct_types.
19987 (start_enum): Add loc parameter. Change all callers. Use
19988 error_at for errors, using loc. For a redefinition, if the
19989 location of the original definition is known, report it. If in a
19990 struct, add this enum type to struct_types. If -Wc++-compat warn
19991 if in sizeof, typeof, or alignof.
19992 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19993 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
19994 (c_parser_enum_specifier): Get enum location for start_enum.
19995 (c_parser_struct_or_union_specifier): Get struct location for
19996 start_struct. Save in_struct and struct_types status between
19997 start_struct and finish_struct.
19998 (c_parser_cast_expression): Get location of cast.
19999 (c_parser_alignof_expression): Get location of type.
20000 (c_parser_postfix_expression): Likewise.
20001 (c_parser_postfix_expression_after_paren_type): Add type_loc
20002 parameter. Change all callers. Call check_compound_literal_type.
20003 Use type_loc for error about variable size type.
20004 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
20005 of an enum constant from an enum type defined in a struct or union.
20006 (c_cast_expr): Add loc parameter. Change all callers. If
20007 -Wc++-compat, warn about defining a type in a cast.
20008 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
20009 (start_enum, start_struct, finish_struct): Update declarations.
20010 (parser_xref_tag, c_cast_expr): Update declarations.
20011 (check_compound_literal_type): Declare.
20013 2009-05-11 Ben Elliston <bje@au.ibm.com>
20015 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
20016 for recent libcpp interface change.
20017 (rs6000_macro_to_expand): Likewise.
20019 2009-05-10 Michael Matz <matz@suse.de>
20022 * config/arm/arm.c (require_pic_register): Emit on entry edge,
20023 not at entry of function.
20025 2009-05-10 Richard Guenther <rguenther@suse.de>
20027 PR tree-optimization/40081
20029 * tree-sra.c (instantiate_element): Instantiate scalar replacements
20030 using the main variant of the element type. Do not fiddle with
20031 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20033 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
20034 structs with volatile fields.
20036 2009-05-10 Jan Hubicka <jh@suse.cz>
20038 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
20039 (estimate_move_cost): Assert that it does not get called for
20041 (estimate_num_insns): Skip VOID types in argument handling.
20042 (optimize_inline_calls): Delete unreachable blocks and verify that
20043 callgraph is valid.
20045 2009-05-10 Jan Hubicka <jh@suse.cz>
20047 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
20048 * cgraph.c (cgraph_mark_address_taken_node): New function.
20049 (dump_cgraph_node): Dump new flag.
20050 * cgraph.h (struct cgraph_node): Add address_taken.
20051 (cgraph_mark_address_taken_node): New function.
20052 * ipa.c (cgraph_postorder): Prioritize functions with address taken
20053 since new direct calls can be born.
20055 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20057 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
20058 tok->val.node.node.
20060 2009-05-10 Jan Hubicka <jh@suse.cz>
20062 PR middle-end/40084
20063 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
20065 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
20066 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
20067 * tree-inline.c (copy_bb): Set frequency correctly.
20068 (fold_marked_statements): Update call to
20069 cgraph_update_edges_for_call_stmt.
20071 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20073 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
20074 identifiers in diagnostics.
20075 * config/arm/arm.c (arm_handle_fndecl_attribute,
20076 arm_handle_isr_attribute): Likewise.
20077 * config/avr/avr.c (avr_handle_progmem_attribute,
20078 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
20079 * config/bfin/bfin.c (handle_int_attribute,
20080 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
20081 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
20082 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
20084 * config/darwin.c (darwin_handle_kext_attribute,
20085 darwin_handle_weak_import_attribute): Likewise.
20086 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
20087 h8300_handle_eightbit_data_attribute,
20088 h8300_handle_tiny_data_attribute): Likewise.
20089 * config/i386/i386.c (ix86_handle_cconv_attribute,
20090 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
20091 * config/i386/winnt.c (ix86_handle_shared_attribute,
20092 ix86_handle_selectany_attribute): Likewise.
20093 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
20094 * config/m32c/m32c.c (function_vector_handler): Likewise.
20095 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
20096 m68hc11_handle_fntype_attribute): Likewise.
20097 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
20098 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
20099 * config/mips/mips.c (mips_insert_attributes,
20100 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
20101 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
20102 rs6000_handle_struct_attribute): Likewise.
20103 * config/sh/sh.c (sh_insert_attributes,
20104 sh_handle_resbank_handler_attribute,
20105 sh_handle_interrupt_handler_attribute,
20106 sh2a_handle_function_vector_handler_attribute,
20107 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
20109 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
20110 * config/spu/spu.c (spu_handle_fndecl_attribute,
20111 spu_handle_vector_attribute): Likewise.
20112 * config/stormy16/stormy16.c
20113 (xstormy16_handle_interrupt_attribute): Likewise.
20114 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
20115 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
20117 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20119 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20120 (pp_translate_identifiers): New.
20121 (pp_identifier): Only conditionally translate identifier to locale
20123 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20124 (pp_base_tree_identifier): Only conditionally translate identifier
20125 to locale character set.
20126 * c-pretty-print.c (M_): Define.
20127 (pp_c_type_specifier, pp_c_primary_expression): Mark English
20128 fragments for conditional translation with M_.
20129 * tree-pretty-print.c (maybe_init_pretty_print): Disable
20130 identifier translation.
20132 2009-05-10 Richard Guenther <rguenther@suse.de>
20134 PR tree-optimization/40081
20135 * tree-sra.c (instantiate_element): Instantiate scalar replacements
20136 using the main variant of the element type. Do not fiddle with
20137 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20139 2009-05-09 Jan Hubicka <jh@suse.cz>
20141 PR middle-end/40080
20142 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20143 indirect calls; verify cgraph afterwards.
20145 2009-05-09 Jan Hubicka <jh@suse.cz>
20148 * ipa.c (update_inlined_to_pointer): New function.
20149 (cgraph_remove_unreachable_nodes): Use it.
20151 2009-05-09 Jan Hubicka <jh@suse.cz>
20153 * tree-eh.c (struct leh_state): Remove prev_try.
20154 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20155 not track prev_try.
20156 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20157 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20158 remove_eh_handler_and_replace, foreach_reachable_handler,
20159 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20160 * except.h (struct eh_region): Remove eh_region_u_cleanup.
20161 (gen_eh_region_cleanup): Update prototype.
20163 2009-05-09 Jan Hubicka <jh@suse.cz>
20165 PR middle-end/40043
20166 * except.c (copy_eh_region): Always set prev_try.
20167 (redirect_eh_edge_to_label): Find outer try.
20168 (foreach_reachable_handler): When looking for prev try
20169 handle case where previous try is not going to be taken.
20171 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
20173 PR tree-optimization/40049
20174 * tree-vect-stmts.c (vectorizable_operation): If the machine has
20175 only vector/vector shifts, convert the type of the constant to the
20176 appropriate type to avoid building incorrect trees, which
20177 eventually have problems with garbage collection.
20179 2009-05-08 Joseph Myers <joseph@codesourcery.com>
20181 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20182 -1 for complex floating-point types if honoring signed zeros.
20184 2009-05-08 Jan Hubicka <jh@suse.cz>
20186 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20187 argument; handle correctly when profile is absent.
20188 (build_cgraph_edges): Update.
20189 (rebuild_cgraph_edges): Update.
20190 * cgraph.c: Do not include varray.h.
20191 (cgraph_set_call_stmt_including_clones): New function.
20192 (cgraph_create_edge_including_clones): Likewise
20193 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20194 (cgraph_update_edges_for_call_stmt): Handle clones.
20195 (cgraph_remove_node): Handle clone tree.
20196 (cgraph_remove_node_and_inline_clones): New function.
20197 (dump_cgraph_node): Dump clone tree.
20198 (cgraph_clone_node): Handle clone tree.
20199 (clone_function_name): Bring here from tree-inline.c.
20200 (cgraph_create_virtual_clone): New function.
20201 * cgraph.h (ipa_replace_map): Move here from ipa.h.
20202 (cgraph_clone_info): New function.
20203 (strut cgraph_node): Add clone_info and new clone tree pointers.
20204 (cgraph_remove_node_and_inline_clones,
20205 cgraph_set_call_stmt_including_clones,
20206 cgraph_create_edge_including_clones,
20207 cgraph_create_virtual_clone): Declare.
20208 (cgraph_function_versioning): Use VEC argument.
20209 (compute_call_stmt_bb_frequency): Update prototype.
20210 (cgraph_materialize_all_clones): New function.
20211 * ipa-cp.c (ipcp_update_cloned_node): Remove.
20212 (ipcp_create_replace_map): Update to VECtors.
20213 (ipcp_update_callgraph): Use virtual clones.
20214 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20215 (ipcp_update_profiling): Do not update local profiling.
20216 (ipcp_insert_stage): Use VECtors and virtual clones.
20217 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20218 (clone_of_p): New function.
20219 (cgraph_preserve_function_body_p): Use clone tree.
20220 (cgraph_optimize): Materialize clones.
20221 (cgraph_function_versioning): Update for VECtors.
20222 (save_inline_function_body): Use clone tree.
20223 (cgraph_materialize_clone): New function.
20224 (cgraph_materialize_all_clones): Likewise.
20225 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20226 * ipa.c: Include gimple.h.
20227 (cgraph_remove_unreachable_nodes): Use clone tree.
20228 * ipa-prop.c (ipa_note_param_call): Update call to
20229 compute_call_stmt_bb_frequencycall.
20230 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20231 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20232 (copy_bb): Handle updating of clone tree; add new edge when new call
20234 (expand_call_inline): Be strict about every call having edge.
20235 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20236 (delete_unreachable_blocks_update_callgraph): New function.
20237 (tree_function_versioning): Use VECtors; always remove unreachable
20238 blocks and fold conditionals.
20239 * tree-inline.h: Do not include varray.h.
20240 (tree_function_versioning): Remove.
20241 * Makefile.in (GTFILES): Remove tree-inline.c
20242 * passes.c (do_per_function): Do only functions having body.
20243 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20246 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
20247 Andrew Morrow <acm@google.com>
20250 * c-common.c (c_common_attribute_table): Permit deprecated
20251 attribute to take an optional argument.
20252 (handle_deprecated_attribute): If the optional argument to
20253 __attribute__((deprecated)) is not a string ignore the attribute
20254 and emit a warning.
20256 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20257 * c-typeck.c (build_component_ref): Likewise.
20258 (build_external_ref): Likewise.
20260 * toplev.c (warn_deprecated_use): Add an attribute argument.
20261 Emit the message associated with __attribute__((deprecated)).
20263 * toplev.h (warn_deprecated_use): Updated.
20265 * doc/extend.texi: Document new optional parameter to
20266 __attribute__((deprecated))
20268 2009-05-08 Michael Eager <eager@eagercon.com>
20270 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20271 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20273 2009-05-08 Richard Guenther <rguenther@suse.de>
20275 PR tree-optimization/40062
20276 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20277 Avoid exponential behavior.
20279 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20281 PR rtl-optimization/33928
20283 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20284 process_uses, build_single_def_use_links): New.
20285 (update_df): Update use_def_ref.
20286 (forward_propagate_into): Use get_def_for_use instead of use-def
20288 (fwprop_init): Call build_single_def_use_links and let it initialize
20290 (fwprop_done): Free use_def_ref.
20291 (fwprop_addr): Eliminate duplicate call to df_set_flags.
20292 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20293 df_rd_simulate_one_insn): New.
20294 (df_rd_bb_local_compute_process_def): Update head comment.
20295 (df_chain_create_bb): Use the new RD simulation functions.
20296 * df.h (df_rd_simulate_artificial_defs_at_top,
20297 df_rd_simulate_one_insn): New.
20298 * opts.c (decode_options): Enable fwprop at -O1.
20299 * doc/invoke.texi (-fforward-propagate): Document this.
20301 2009-05-08 Joseph Myers <joseph@codesourcery.com>
20304 * c-typeck.c (build_binary_op): Handle arithmetic between one real
20305 and one complex operand specially.
20306 * tree-complex.c (some_nonzerop): Do not identify a real value as
20307 zero if flag_signed_zeros.
20309 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20311 PR rtl-optimization/33928
20312 * loop-invariant.c (record_use): Fix && vs. || mishap.
20314 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20316 PR rtl-optimization/33928
20317 * loop-invariant.c (struct use): Add addr_use_p.
20318 (struct def): Add n_addr_uses.
20319 (struct invariant): Add cheap_address.
20320 (create_new_invariant): Set cheap_address.
20321 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
20322 (record_uses): Pass df_ref to record_use.
20323 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20326 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
20328 * config/sh/sh.c: Do not include c-pragma.h.
20330 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
20332 * config/spu/spu.c: Remove include of c-common.h.
20334 2009-05-07 Janis Johnson <janis187@us.ibm.com>
20337 * c-common.h (mark_valid_location_for_stdc_pragma,
20338 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20339 clear_float_const_decimal64, float_const_decimal64_p): New.
20340 * c.opt (Wunsuffixed-float-constants): New.
20341 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20342 unsuffixed float constant, handle new warning.
20343 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20344 * c-decl.c (c_scope): New flag float_const_decimal64.
20345 (set_float_const_decimal64, clear_float_const_decimal64,
20346 float_const_decimal64_p): New.
20347 (push_scope): Set new flag.
20348 * c-parser.c (c_parser_translation_unit): Mark when it's valid
20349 to use STDC pragmas.
20350 (c_parser_external_declaration): Ditto.
20351 (c_parser_compound_statement_nostart): Ditto.
20352 * c-pragma.c (valid_location_for_stdc_pragma,
20353 mark_valid_location_for_stdc_pragma,
20354 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20355 handle_pragma_float_const_decimal64): New.
20356 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20357 * cp/semantics.c (valid_location_for_stdc_pragma_p,
20358 set_float_const_decimal64, clear_float_const_decimal64,
20359 float_const_decimal64_p): New dummy functions.
20360 * doc/extend.texi (Decimal Float): Remove statement that the
20361 pragma, and suffix for double constants, are not supported.
20362 * doc/invoke.texi (Warning Options): List new option.
20363 (-Wunsuffixed-float-constants): New.
20365 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
20367 * config/i386/i386.c: Do not include c-common.h.
20369 2009-05-07 Mark Heffernan <meheff@google.com>
20371 * doc/invoke.texi (Debugging Options): Document change of debugging
20373 * opts.c (decode_options): Make dump_base_name relative to
20374 aux_base_name directory.
20376 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
20378 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20379 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20381 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
20383 * Makefile.in (install-plugin): Simplify a bit.
20385 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
20387 * Makefile.in (OBJS-common): Add regcprop.o.
20389 * timevar.def (TV_CPROP_REGISTERS): New.
20390 * regrename.c (regrename_optimize): Return 0.
20391 (rest_of_handle_regrename): Delete.
20392 (pass_rename_registers): Point to regrename_optimize.
20393 (struct value_data_entry, struct value_data,
20394 kill_value_one_regno, kill_value_regno, kill_value,
20395 set_value_regno, init_value_data, kill_clobbered_value,
20396 kill_set_value, kill_autoinc_value, copy_value,
20397 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20398 replace_oldest_value_reg, replace_oldest_value_addr,
20399 replace_oldest_value_mem, copyprop_hardreg_forward_1,
20400 debug_value_data, validate_value_data): Move...
20401 * regcprop.c: ... here.
20402 (rest_of_handle_cprop): Delete.
20403 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20405 2009-05-07 Jakub Jelinek <jakub@redhat.com>
20407 PR middle-end/40057
20408 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20409 GEN_INT for 1 << bitnum.
20410 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20411 build_int_cst_type.
20413 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
20415 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20416 Remove wrong description of "nand" operation.
20418 2009-05-06 Richard Guenther <rguenther@suse.de>
20419 Adam Nemet <anemet@caviumnetworks.com>
20421 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20422 comment. Add that if LHS is not a gimple register, then RHS1 has
20423 to be a single object (GIMPLE_SINGLE_RHS).
20425 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
20427 * expr.c (get_def_for_expr): Move it up in the file.
20428 (store_field): When expanding a bit-field store, look at the
20429 defining gimple stmt for the masking conversion.
20431 2009-05-06 Janis Johnson <janis187@us.ibm.com>
20433 PR middle-end/39986
20434 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20435 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20436 32-bit memcpy into long.
20438 2009-05-06 Jakub Jelinek <jakub@redhat.com>
20440 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20441 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20443 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20444 instead of appending DW_OP_deref*.
20446 2009-05-06 Michael Matz <matz@suse.de>
20448 PR middle-end/40021
20449 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20450 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20452 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
20454 * Makefile.in (install-plugin): Fix srcdir handling.
20456 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
20458 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20459 when processing for not_regs_needed bitmap.
20460 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20461 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
20462 handling it for rhs.
20464 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20466 * config/i386/i386.md (unnamed inc/dec peephole): Use
20467 optimize_insn_for_size_p instead of optimize_size.
20468 * config/i386/predicates.md (incdec_operand): Likewise.
20469 (aligned_operand): Likewise.
20470 * config/i386/sse.md (divv8sf3): Likewise.
20471 (sqrtv8sf2): Likewise.
20473 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20475 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20477 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20479 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20481 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20482 ssemodesuffixf2c with avxmodesuffixf2c.
20484 2009-05-06 Joseph Myers <joseph@codesourcery.com>
20487 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20489 2009-05-05 Jakub Jelinek <jakub@redhat.com>
20491 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20492 (struct tree_base): Adjust spacing for 8 bit boundaries.
20493 (struct tree_decl_common): Add decl_by_reference_flag bit.
20494 (DECL_BY_REFERENCE): Adjust.
20495 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20496 print DECL_BY_REFERENCE bit.
20497 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20498 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20499 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20500 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
20503 PR middle-end/39666
20504 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20505 range of the type, but default label is missing, add it with one
20506 of the existing labels instead of adding a new label for it.
20508 2009-05-05 Joseph Myers <joseph@codesourcery.com>
20512 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
20514 * Makefile.in (enable_plugin, plugin_includedir): New.
20515 (install): Depend on install-plugin.
20516 (PLUGIN_HEADERS): New.
20517 (install-plugin): New.
20518 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20520 2009-05-05 Richard Guenther <rguenther@suse.de>
20522 PR tree-optimization/40022
20523 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20525 (phivn_valid_p): Fix tuplification error, simplify.
20526 (phiprop_insert_phi): Add dumps.
20527 (propagate_with_phi): Simplify.
20529 2009-05-05 Richard Guenther <rguenther@suse.de>
20531 PR middle-end/40023
20532 * builtins.c (gimplify_va_arg_expr): Properly build the address.
20534 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
20536 * tree.h (strip_float_extensions): Remove duplicate declaration.
20537 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20538 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20539 block_ultimate_origin): Rearrange the declarations line to match the
20540 comment that indicates the .c file which the functions are defined.
20541 (dwarf2out_*, set_decl_rtl): Add comment.
20542 (get_base_address): Adjust comment.
20543 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20544 declarations line and add comment.
20545 (is_builtin_name): Add blank after function name, for clarity.
20547 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20549 * attribs.c (decl_attributes): Use %qE for identifiers in
20551 * cgraphunit.c (verify_cgraph_node): Translate function names to
20552 locale character set in diagnostics.
20553 * coverage.c (get_coverage_counts): Use %qE for identifiers in
20555 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20556 Document that functions are named in UTF-8.
20557 * expr.c (expand_expr_real_1): Translate function names to locale
20558 character set in diagnostics.
20559 * gimplify.c (omp_notice_variable, omp_is_private,
20560 gimplify_scan_omp_clauses): Use %qE for identifiers in
20562 * langhooks.c (lhd_print_error_function): Translate function names
20563 to locale character set.
20564 * langhooks.h (decl_printable_name): Document that return value is
20565 in internal character set.
20566 * stmt.c: Include pretty-print.h
20567 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20569 (resolve_operand_name_1): Translate named operand name to locale
20571 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20573 * toplev.c (announce_function): Translate function names to locale
20575 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20576 (default_tree_printer): Use pp_identifier or translate identifiers
20577 to locale character set. Mark "<anonymous>" for translation.
20578 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20579 for identifiers in diagnostics.
20580 * tree.c (handle_dll_attribute): Use %qE for identifiers in
20582 * varasm.c (output_constructor): Use %qE for identifiers in
20585 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
20587 * configure.ac: use ` ` instead of $()
20588 * configure: Regenerate.
20590 2009-05-05 Ben Elliston <bje@au.ibm.com>
20592 * config/pa/linux-atomic.c: Eliminate conditional include of
20593 errno.h on non-LP64 systems to simplify build requirements.
20595 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20597 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20599 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20600 and pass value to identifier_to_locale.
20601 (warn_variable_length_array): Make name a tree.
20602 (grokdeclarator): Separate diagnostic texts for named and unnamed
20603 declarators. Use %qE for named declarators.
20604 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20606 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20607 identifiers in diagnostics.
20608 * c-typeck.c (push_member_name, start_init): Pass identifiers to
20609 identifier_to_locale. Mark "anonymous" strings for translation.
20611 2009-05-04 Michael Eager <eager@eagercon.com>
20613 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20614 address for DImode/DFmode only if double-precision FP regs.
20616 2009-05-04 Michael Eager <eager@eagercon.com>
20618 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20619 TARGET_SINGLE_FLOAT check.
20621 2009-05-04 Michael Eager <eager@eagercon.com>
20623 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20625 2009-05-04 Michael Eager <eager@eagercon.com>
20627 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
20628 * config/rs6000/t-xilinx: New
20630 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
20632 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
20633 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20634 * gcc/explow.c (memory_address): Use target hook.
20635 * gcc/targhooks.c (default_legitimize_address): New.
20636 * gcc/targhooks.h (default_legitimize_address): New.
20637 * gcc/target.h (legitimize_address): New.
20638 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20639 (TARGET_INITIALIZER): Include it.
20640 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20642 * config/bfin/bfin-protos.h (legitimize_address): Remove.
20643 * config/bfin/bfin.c (legitimize_address): Remove.
20644 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
20645 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20647 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20648 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20650 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20651 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20652 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20653 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20654 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20655 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20656 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20657 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20658 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20659 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20660 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20661 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20662 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20663 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20664 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20665 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20666 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20667 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20668 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20669 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20670 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20671 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20672 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20674 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20675 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20676 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20677 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20678 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20679 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20680 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20681 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20682 (thumb_legitimize_address): Delete.
20683 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20684 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20685 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20686 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20687 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
20688 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20690 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20693 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20694 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20695 * config/m32r/m32r.c (m32r_legitimize_address): New.
20696 * config/m68k/m68k.c (m68k_legitimize_address): New.
20697 * config/score/score.c (score_legitimize_address): Standardize.
20698 * config/score/score3.c (score3_legitimize_address): Standardize.
20699 * config/score/score3.h (score3_legitimize_address): Adjust.
20700 * config/score/score7.c (score7_legitimize_address): Standardize.
20701 * config/score/score7.h (score7_legitimize_address): Adjust.
20702 * config/sh/sh.c (sh_legitimize_address): New.
20703 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20705 * gcc/config/s390/s390.c (legitimize_address): Rename to...
20706 (s390_legitimize_address): ... this.
20707 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20708 (sparc_legitimize_address): ... this.
20709 * gcc/config/i386/i386.c (legitimize_address): Rename to...
20710 (ix86_legitimize_address): ... this.
20711 * gcc/config/avr/avr.c (legitimize_address): Rename to...
20712 (avr_legitimize_address): ... this.
20713 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20714 (mn10300_legitimize_address): ... this.
20715 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20716 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20717 (alpha_expand_mov): Adjust call.
20719 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20720 * config/spu/spu.c (spu_legitimize_address): Likewise.
20721 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20722 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20724 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20726 * intl.c (locale_encoding, locale_utf8): New.
20727 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20728 * intl.h (locale_encoding, locale_utf8): Declare.
20729 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
20730 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20732 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20734 (pp_tree_identifier): Define to call pp_base_tree_identifier.
20735 (pp_base_tree_identifier): Declare as function.
20736 (identifier_to_locale): Declare.
20737 * Makefile.in (pretty-print.o): Update dependencies.
20738 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
20740 2009-05-04 Richard Guenther <rguenther@suse.de>
20742 PR middle-end/40015
20743 * builtins.c (fold_builtin_memory_op): Do not decay to element
20744 type if the size matches the whole array.
20746 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
20748 * expmed.c (synth_mult): When trying out a shift, pass the result
20751 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
20753 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20754 (shiftsub1_cost): New.
20755 (init_expmed): Compute shiftsub1_cost.
20756 (synth_mult): Optimize multiplications by constants of the form
20757 -(2^^m-1) for some constant positive integer m.
20759 2009-05-03 Richard Guenther <rguenther@suse.de>
20762 * c-typeck.c (array_to_pointer_conversion): Do not built
20763 ADDR_EXPRs of arrays of pointer-to-element type.
20764 * c-gimplify.c (c_gimplify_expr): Revert change fixing
20765 up wrong ADDR_EXPRs after-the-fact.
20766 * c-common.c (strict_aliasing_warning): Strip pointer
20767 conversions for obtaining the original type.
20768 * builtins.c (fold_builtin_memset): Handle array types.
20769 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20772 2009-05-03 Richard Guenther <rguenther@suse.de>
20774 PR middle-end/23329
20775 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20776 Do not lose casts from array types with unknown extent to array
20777 types with known extent.
20778 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20779 alias set compatibility.
20781 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
20783 * flags.h (extra_warnings): Delete.
20784 * toplev.c (process_options): Handle Wuninitialized here.
20785 * opts.c (extra_warnings): Delete.
20786 (set_Wextra): Delete.
20787 (common_handle_option): -Wextra can be handled automatically.
20788 * c-opts.c (c_common_handle_option): Delete obsolete code.
20789 (c_common_post_options): Simplify comment.
20790 * common.opt (W): Add Var.
20792 (Wuninitialized): Initialize to -1.
20794 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
20795 Richard Guenther <rguenther@suse.de>
20797 * expr.c (get_def_for_expr): New function.
20798 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20799 SSA rather than trees.
20800 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
20801 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
20803 2009-05-03 Joseph Myers <joseph@codesourcery.com>
20805 * c-common.c (reswords): Add _Imaginary.
20806 * c-common.c (enum rid): Add RID_IMAGINARY.
20808 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
20810 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20811 Patch by Richard Guenther.
20813 2009-05-03 Anatoly Sokolov <aesok@post.ru>
20815 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20816 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20817 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20818 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20819 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20820 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20821 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20822 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20823 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20824 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20825 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20826 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20827 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20828 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20829 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20830 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20831 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20832 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20834 2009-05-02 Richard Guenther <rguenther@suse.de>
20836 PR tree-optimization/39940
20837 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20840 2009-05-02 Richard Guenther <rguenther@suse.de>
20842 PR middle-end/40001
20843 * tree-ssa.c (execute_update_addresses_taken): Properly check
20844 if we can mark a variable DECL_GIMPLE_REG_P.
20845 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20846 back to the end of the function.
20847 (is_gimple_reg_type): Remove complex type special casing.
20848 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20851 2009-05-02 Ben Elliston <bje@au.ibm.com>
20853 * doc/collect2.texi (Collect2): Document search path behaviour
20854 when configured with --with-ld.
20856 2009-05-02 Jan Hubicka <jh@suse.cz>
20858 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20859 parameter; update callers.
20860 (coalesce_cost_edge): EH edges are costier because they needs
20861 splitting even if not critical and even more costier when there are
20862 multiple EH predecestors.
20864 2009-05-02 Jan Hubicka <jh@suse.cz>
20866 * except.c (remove_eh_handler_and_replace): Handle updating after
20867 removing TRY blocks.
20869 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
20871 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20873 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
20875 * varasm.c: Do not include c-pragma.h.
20876 * attribs.c: Do not incude c-common.h.
20878 2009-05-01 Michael Matz <matz@suse.de>
20880 * calls.c (initialize_argument_information): Handle SSA names like
20881 decls with a non MEM_P DECL_RTL.
20883 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20885 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20886 * ipa-utils.c: Likewise.
20887 * ipa-type-escape.c: Likewise.
20888 * cgraphunit.c Do not include c-common.h.
20889 * ipa-pure-const.c: Likewise.
20890 * tree-if-conv.c: Likewise.
20891 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20892 * ipa-struct-reorg.c: Likewise.
20893 * tree-nomudflap.c: Likewise.
20894 * tree-ssa-structalias.c: Likewise.
20896 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20898 * store-motion.c: Many cleanups to make this pass a first-class
20899 citizen instead of an appendix to gcse load motion. Add TODO list
20900 to make this pass faster/cleaner/better.
20902 (struct ls_expr): Post gcse.c-split cleanups.
20903 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
20904 "stores" field to "avail_stores".
20905 (pre_ldst_mems): Rename to store_motion_mems.
20906 (pre_ldst_table): Rename to store_motion_mems_table.
20907 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20908 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20909 (ldst_entry): Rename to st_expr_entry, update users.
20910 (free_ldst_entry): Rename to free_st_expr_entry, update users.
20911 (free_ldst_mems): Rename to free_store_motion_mems, update users.
20912 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20914 (first_ls_expr): Rename to first_st_expr, update users.
20915 (next_ls_expr): Rename to next_st_expr, update users.
20916 (print_ldst_list): Rename to print_store_motion_mems. Print names of
20917 fields properly for store motion instead of names inherited from load
20919 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20920 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
20923 (ae_kill): Rename to st_kill, update users.
20924 (ae_gen): Rename to st_avloc, update users.
20925 (transp): Rename to st_transp, update users.
20926 (pre_insert_map): Rename to st_insert_map, update users.
20927 (pre_delete_map): Rename to st_delete_map, update users.
20928 (insert_store, build_store_vectors, free_store_memory,
20929 one_store_motion_pass): Update for abovementioned changes.
20931 (gcse_subst_count, gcse_create_count): Remove.
20932 (one_store_motion_pass): New statistics counters "n_stores_deleted"
20933 and "n_stores_created", local variables.
20935 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20938 (regvec, compute_store_table_current_insn): Remove.
20939 (reg_set_info, reg_clear_last_set): Remove.
20940 (compute_store_table): Use DF caches instead of local dataflow
20943 2009-05-01 Joseph Myers <joseph@codesourcery.com>
20945 * c-objc-common.c (c_tree_printer): Print identifiers with
20946 pp_identifier, not pp_string. Mark "({anonymous})" for
20948 * c-pretty-print.c (pp_c_ws_string): New.
20949 (pp_c_cv_qualifier, pp_c_type_specifier,
20950 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20951 pp_c_storage_class_specifier, pp_c_function_specifier,
20952 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20953 pp_c_primary_expression, pp_c_postfix_expression,
20954 pp_c_unary_expression, pp_c_shift_expression,
20955 pp_c_relational_expression, pp_c_equality_expression,
20956 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20957 use pp_string and pp_c_ws_string in place of pp_identifier and
20958 pp_c_identifier for non-identifiers. Mark English strings for
20960 * c-pretty-print.h (pp_c_ws_string): Declare.
20962 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
20963 Roland McGrath <roland@redhat.com>
20965 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
20966 (ENABLE_LD_BUILDID): New configuration option.
20967 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20968 (LINK_BUILDID_SPEC): New macro.
20969 (init_spec): If defined, prepend it between LINK_EH_SPEC and
20971 * doc/install.texi: Document --enable-linker-build-id option.
20972 * configure: Rebuild.
20973 * config.in: Rebuild.
20975 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
20977 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20978 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20979 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
20980 MIPS_GP_SAVE_AREA_SIZE.
20981 * config/mips/mips.c (struct mips_frame_info): Update comment
20982 before arg_pointer_offset and hard_frame_pointer_offset.
20983 (mips_compute_frame_info): Update diagram before function: to
20984 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20985 indicate the position of frame_pointer_rtx with -fstack-protector and
20986 to show args_size. Don't allocate cprestore area for leaf functions
20987 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
20989 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20991 2009-04-30 Michael Matz <matz@suse.de>
20993 PR tree-optimization/39955
20994 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
20996 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
20998 * ira.c (setup_cover_and_important_classes): Use safe macro
20999 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
21001 * genpreds.c (write_tm_preds_h): Output suitable definition of
21002 REG_CLASS_FOR_CONSTRAINT.
21004 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
21006 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
21008 * bitmap.c (bitmap_descriptor): Likewise.
21009 * ggc-common.c (loc_descriptor): Likewise.
21010 * varray.c (varray_descriptor): Likewise.
21011 * vec.c (vec_descriptor): Likewise.
21013 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
21015 * Makefile.in (dce.o): Add $(EXCEPT_H).
21016 * dce.c: Include except.h and delete redundant vector definitions.
21017 (deletable_insn_p): Return false for non-call insns that can throw
21020 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
21022 * gcse.c (ae_gen): Remove.
21023 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
21024 and make non-static function to make it available in store-motion.c.
21025 Update call sites with search-and-replace.
21026 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
21027 extract_mentioned_regs, extract_mentioned_regs_helper,
21028 find_moveable_store, compute_store_table, load_kills_store, find_loads,
21029 store_killed_in_insn, store_killed_after, store_killed_before,
21030 build_store_vectors, insert_insn_start_basic_block, insert-store,
21031 remove_reachable_equiv_notes, replace_store_insn, delete_store,
21032 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
21033 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
21034 * store-motion.c: ...new file. Also copy data structures from gcse.c
21035 and clean up to remove parts not used by store motion.
21036 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
21037 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
21039 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21042 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
21043 when optimizing for size.
21045 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
21047 * gcse.c (gcse_constant_p): Fix typo in last change.
21049 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
21051 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
21053 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
21055 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
21057 2009-04-29 James E. Wilson <wilson@codesourcery.com>
21059 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
21060 CONST_HIGH_PART result.
21062 2009-04-29 Anatoly Sokolov <aesok@post.ru>
21064 * config/avr/avr.c (initial_elimination_offset): Rename to
21065 avr_initial_elimination_offset.
21066 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
21067 change return type to bool.
21068 (avr_can_eliminate): New function.
21069 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
21070 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
21071 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
21072 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
21073 avr_initial_elimination_offset.
21074 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
21075 (avr_initial_elimination_offset): Define.
21077 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
21078 Steven Bosscher <steven@gcc.gnu.org>
21080 PR rtl-optimization/39938
21081 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
21082 * cfgrtl.c: Include insn-attr.h.
21083 (rest_of_pass_free_cfg): New function.
21084 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
21085 * resource.c (init_resource_info): Remove call to df_analyze.
21087 2009-04-29 Richard Guenther <rguenther@suse.de>
21090 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
21091 allow conversion to signed integers.
21093 2009-04-29 Richard Guenther <rguenther@suse.de>
21095 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
21096 shifts of floating point vectors if the shift amount is
21097 a constant multiple of the element size.
21099 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
21100 Michael Matz <matz@suse.de>
21102 PR middle-end/39927
21104 * tree-outof-ssa.c (emit_partition_copy): New function.
21105 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21106 insert_part_to_rtx_on_edge): Perform the partition base var
21107 copy using emit_partition_copy.
21108 (insert_value_copy_on_edge): Convert constants to the right mode.
21109 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
21110 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
21112 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21114 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
21115 scan backwards to try to find a constant to initialize it.
21117 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21118 insn before the loop_end instruction, don't look past labels.
21120 2009-04-29 Richard Guenther <rguenther@suse.de>
21122 PR middle-end/39937
21123 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21124 loose type conversions.
21125 (forward_propagate_addr_expr): Fix tuplification bug. Remove
21126 stmts only if there are no uses of its definition.
21128 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21130 * config/bfin/bfin.h (splitting_loops): Declare.
21131 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21132 Reorder bit definitions to be ascending.
21133 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21134 * config/bfin/bfin.c (splitting_loops): New variable.
21135 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21136 (struct loop_info): Remove members INIT and LOOP_INIT.
21137 (bfin_optimize_loop): Don't set them. Reorder the code that generates
21138 the LSETUP sequence. Allow LC to be loaded from any register, but
21139 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21140 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21142 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21143 of reload_completed.
21146 * config/bfin/bfin.md (movsi_insn): Refine constraints.
21148 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
21150 * Makefile.in (PLUGIN_VERSION_H): New.
21151 (OBJS-common): Remove plugin-version.o.
21152 (plugin.o): Depend on (PLUGIN_VERSION_H).
21153 (plugin-version.o): Remove.
21154 * configure: Regenerate
21155 * configure.ac: Create plugin-version.h.
21156 * gcc-plugin.h (plugin_gcc_version): Remove.
21157 (plugin_default_version_check): Change signature.
21158 * plugin-version.c: Remove.
21159 * plugin.c: Include plugin-version.h.
21160 (str_plugin_gcc_version_name): Remove.
21161 (try_init_one_plugin): Pass gcc version to plugin_init.
21162 (plugin_default_version_check): Both gcc and plugin versions are now
21165 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21167 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21168 problematic last insns. Test for TYPE_CALL rather than CALL_P.
21169 Remove special case testing for last insn of inner loops. Don't fail
21170 if the loop ends with a jump, emit an extra nop instead.
21172 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21173 DREGS rather than comparing directly. Remove code that tries to
21174 account for latencies.
21176 2009-04-29 Richard Guenther <rguenther@suse.de>
21178 PR tree-optimization/39941
21179 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21180 eliminating an indirect call.
21182 2009-04-29 Richard Guenther <rguenther@suse.de>
21184 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21185 parameter. Allow invariants as base if !require_lvalue.
21186 (verify_gimple_assign_single): Adjust.
21188 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21190 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21191 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21192 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21193 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21194 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21196 * config/bfin/bfin.c (bfin_expand_builtin,
21197 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21199 2009-04-28 Richard Guenther <rguenther@suse.de>
21201 * tree-vect-loop.c (get_initial_def_for_induction): Use
21202 correct types for pointer increment.
21204 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21206 * toplev.c (print_version): Update GMP version string calculation.
21208 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
21210 PR rtl-optimization/39938
21211 * resource.c (init_resource_info): Add call to df_analyze.
21213 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21215 * config/alpha/alpha.md (usegp): Cast the result of
21216 alpha_find_lo_sum_using_gp to enum attr_usegp.
21217 * config/alpha/alpha.c (override_options): Remove end-of-structure
21218 marker element from cpu_table. Use array size of cpu_table to handle
21219 -mcpu and -mtune options.
21220 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21222 2009-04-28 Joseph Myers <joseph@codesourcery.com>
21224 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21225 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
21226 tune_32 and tune_64.
21227 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21228 support on PowerPC.
21229 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21230 * config/rs6000/option-defaults.h: ... here. New file.
21231 (OPT_64, OPT_32): Define.
21232 (MASK_64BIT): Define to 0 if not already defined.
21233 (OPT_ARCH64, OPT_ARCH32): Define.
21234 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21237 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21239 * config/arm/arm.c (arm_override_options): Emit error on using
21242 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21244 PR rtl-optimization/39914
21245 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21246 registers for allocnos created from user-defined variables only
21247 when not optimizing.
21249 2009-04-28 Richard Guenther <rguenther@suse.de>
21251 PR middle-end/39937
21252 * fold-const.c (fold_binary): Use distribute_real_division only
21255 2009-04-28 Steve Ellcey <sje@cup.hp.com>
21257 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21258 add hpux-stdint.h to tm_file.
21259 (hppa[12]*-*-hpux11*): Ditto.
21260 (ia64*-*-hpux*): Ditto.
21261 * config/hpux-stdint.h: New.
21262 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21263 __STDC_EXT__ for all compiles.
21264 * config/pa/pa-hpux.h: Ditto.
21265 * config/pa/pa-hpux10.h: Ditto.
21266 * config/pa/pa-hpux11.h: Ditto.
21268 2009-04-28 Catherine Moore <clm@codesourcery.com>
21270 * debug.h (set_name): Add comment.
21272 2009-04-28 Andrew Pinski <pinskia@gmail.com>
21275 * config/darwin.c (machopic_gen_offset): Check
21276 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21277 * config/arm/arm.c (require_pic_register): Likewise.
21279 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
21281 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21282 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21283 m32c_promote_prototypes): Delete.
21285 2009-04-28 Michael Matz <matz@suse.de>
21287 PR middle-end/39922
21288 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21291 2009-04-28 Richard Guenther <rguenther@suse.de>
21293 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21295 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21297 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21298 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21299 * config/arm/arm-tune.md: Regenerate.
21301 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
21303 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21304 block if there are complex incoming edges.
21305 (sel_merge_blocks): Remove useless assert.
21306 (sel_redirect_edge_and_branch): Check that edge was redirected.
21307 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21308 (sel_find_rgns): Delete declaration.
21309 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21310 the region when it is not a preheader.
21312 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21315 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21317 2009-04-28 Richard Guenther <rguenther@suse.de>
21319 * tree.h (SSA_NAME_VALUE): Remove.
21320 (struct tree_ssa_name): Remove value_handle member.
21321 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21322 array for jump threading.
21323 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21325 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21326 * tree-flow.h (threadedge_initialize_values): Declare.
21327 (threadedge_finalize_values): Likewise.
21328 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21329 (SSA_NAME_VALUE): Define.
21330 (threadedge_initialize_values): New function.
21331 (threadedge_finalize_values): Likewise.
21332 * tree-ssa-dom.c (ssa_name_values): New global variable.
21333 (SSA_NAME_VALUE): Define.
21334 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21336 2009-04-28 Ira Rosen <irar@il.ibm.com>
21338 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21339 Use REPORT_VECTORIZED_LOCATIONS instead
21340 REPORT_VECTORIZED_LOOPS.
21341 * tree-vectorizer.c (vect_verbosity_level): Make static.
21342 (vect_loop_location): Rename to vect_location.
21343 (vect_set_verbosity_level): Update comment.
21344 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21346 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21347 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21348 instead REPORT_UNVECTORIZED_LOOPS.
21349 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21350 and vect_loop_def to vect_external_def and vect_internal_def.
21351 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21352 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21353 REPORT_UNVECTORIZED_LOCATIONS.
21354 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21355 and vect_used_in_loop and to vect_unused_in_scope and
21356 vect_used_in_scope.
21357 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21358 (vect_verbosity_level): Remove declaration.
21359 (vect_analyze_operations): Likewise.
21360 (vect_analyze_stmt): Declare.
21361 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21362 REPORT_UNVECTORIZED_LOCATIONS.
21363 (vect_get_loop_niters): Fix indentation.
21364 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21365 (vect_analyze_loop_operations): New function.
21366 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21367 vect_analyze_operations.
21368 (vect_is_simple_reduction): Use new names.
21369 (vectorizable_live_operation, vect_transform_loop): Likewise.
21370 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21371 to specify whether the data references can be a part of interleaving
21373 (vect_analyze_data_ref_dependence): Use new names.
21374 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21375 (vect_create_addr_base_for_vector_ref): Remove redundant code.
21376 * tree-vect-patterns.c (widened_name_p): Use new names.
21377 (vect_recog_dot_prod_pattern): Likewise.
21378 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21379 (process_use, vect_mark_stmts_to_be_vectorized,
21380 vect_model_simple_cost, vect_model_store_cost,
21381 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21382 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21383 vectorizable_operation, vectorizable_type_demotion,
21384 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21385 vectorizable_condition): Likewise.
21386 (vect_analyze_operations): Split into vect_analyze_loop_operations
21388 (vect_analyze_stmt): ... new function.
21389 (new_stmt_vec_info): Use new names.
21390 (vect_is_simple_use): Use new names and fix comment.
21391 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21392 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21394 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21397 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21398 and integer modes for x87 operands. Do not ICE for unsupported size,
21399 generate error instead. Generate error for unsupported operand types.
21400 ['z']: Do not handle HImode memory operands specially. Warning
21401 for floating-point operands. Fallthru to 'Z' for unsupported operand
21402 types. Do not ICE for unsupported size, generate error instead.
21403 (output_387_binary_op): Use %Z to output operands.
21404 (output_fp_compare): Ditto.
21405 (output_387_reg_move): Ditto.
21407 2009-04-28 Ben Elliston <bje@au.ibm.com>
21412 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21414 * builtins.c (c_strlen): Do not warn here.
21415 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21416 * c-common.c (pointer_int_sum): Take an explicit location.
21417 Warn about offsets out of bounds.
21418 * c-common.h (pointer_int_sum): Adjust declaration.
21420 2009-04-27 Ian Lance Taylor <iant@google.com>
21422 * collect2.c (is_ctor_dtor): Change type of ret field in struct
21424 * dce.c (run_fast_df_dce): Change type of old_flags to int.
21425 * df-core.c (df_set_flags): Change return type to int. Change
21426 type of old_flags to int.
21427 (df_clear_flags): Likewise.
21428 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21429 (df_get_conditional_uses): Likewise.
21430 * df.h (df_set_flags, df_clear_flags): Update declarations.
21431 * dwarf2out.c (struct indirect_string_node): Change type of form
21432 field to enum dwarf_form.
21433 (AT_string_form): Change return type to enum dwarf_form.
21434 * fixed-value.c (fixed_compare): Add cast to enum type.
21435 * fwprop.c (update_df): Change 0 to VOIDmode.
21436 * gensupport.c: Change 0 to UNKNOWN.
21437 * gimple.h (gimple_cond_code): Add cast to enum type.
21438 * haifa-sched.c (reemit_notes): Add cast to enum type.
21439 * hooks.c (hook_int_void_no_regs): Remove function.
21440 * hooks.h (hook_int_void_no_regs): Remove declaration.
21441 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21442 * predict.c (combine_predictions_for_insn): Add casts to enum type.
21443 * real.c (real_arithmetic): Add cast to enum type.
21444 (real_compare): Likewise.
21445 * target.h (struct gcc_target): Change return type of
21446 branch_target_register_class to enum reg_class.
21447 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21448 default_branch_target_register_class.
21449 * targhooks.c (default_branch_target_register_class): New function.
21450 * targhooks.h (default_branch_target_register_class): Declare.
21451 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21452 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21454 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21456 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21457 vect_uninitialized_def. Change 0 to ERROR_MARK.
21458 * tree-vect-stmts.c (supportable_widening_operation): Don't
21459 initialize icode1 and icode2.
21460 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21461 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21463 (cmn_err_flag_specs): Change 0 to STD_C89.
21464 (cmn_err_char_table): Likewise.
21465 * config/arm/arm.c (get_arm_condition_code): Change type of code
21466 to enum arm_cond_code.
21467 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21468 (IWMMXT_BUILTIN2): Likewise.
21469 (neon_builtin_type_bits): Don't define typedef.
21470 (neon_builtin_datum): Change type of bits field to int.
21471 (arm_expand_neon_args): Add cast to enum type.
21472 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21474 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
21475 casts to enum type.
21476 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21478 * config/mips/mips.md (jal_macro): Return enum constant.
21479 (single_insn): Likewise.
21480 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21482 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21483 casts to enum type.
21484 * config/s390/s390.c (s390_tune_flags): Change type to int.
21485 (s390_arch_flags): Likewise.
21486 (s390_handle_arch_option): Change flags field of struct pta to int.
21487 * config/s390/s390.h (s390_tune_flags): Update declaration.
21488 (s390_arch_flags): Likewise.
21489 * config/sh/sh.c (prepare_move_operands): Compare
21490 tls_symbolic_operand result with enum constant.
21491 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21492 (sh_expand_prologue): Add cast to enum type.
21493 (sh_expand_epilogue): Likewise.
21494 (tls_symbolic_operand): Change return type to enum tls_model.
21495 (fpscr_set_from_mem): Add cast to enum type.
21496 (legitimize_pic_address): Compare tls_symbolic_operand result with
21498 (sh_target_reg_class): Change return type to enum reg_class.
21499 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21501 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21502 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21503 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21504 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21505 (delayed_branch, tls_call_delay): Likewise.
21506 (eligible_for_sibcall_delay): Likewise.
21507 (eligible_for_return_delay): Likewise.
21508 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21509 (spu_expand_builtin_1): Likewise.
21511 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21512 for all types of conversions.
21513 (output_init_element): Issue -Wc++-compat warning if needed when
21514 initializing a bitfield with enum type.
21515 * c-parser.c (c_parser_expression): Set original_type to
21516 original_type of right hand operand of comma operator.
21518 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21520 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21522 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21523 * doc/cpp.texi (Standard Predefined Macros)
21524 (Implementation-defined behavior): Likewise.
21525 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21526 * doc/gimple.texi (GIMPLE Exception Handling)
21527 (@code{GIMPLE_ASSIGN}): Likewise.
21528 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21529 * doc/invoke.texi (Warning Options, Optimize Options)
21530 (AVR Options, Darwin Options): Likewise.
21531 (Optimize Options): Reformulate -fwhole-program description.
21532 * doc/loop.texi (Lambda): Likewise.
21533 * doc/md.texi (Output Template, Define Constraints)
21534 (Standard Names, Insn Splitting): Likewise.
21535 * doc/options.texi (Option properties): Likewise.
21536 * doc/passes.texi (Tree-SSA passes): Likewise.
21537 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21538 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21539 (File Names and DBX): Likewise.
21540 * doc/trouble.texi (Incompatibilities): Likewise.
21542 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
21544 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21545 instruction is correct.
21547 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
21549 Allow non-constant arguments to conversion intrinsics.
21550 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21551 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21552 * spu.c (print_operand): Handle 'v' and 'w'.
21553 (exp2_immediate_p, spu_gen_exp2): Define.
21554 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21555 spu_convtf_1): Update parameter descriptions.
21556 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21557 * constraints.md ('v', 'w'): New.
21558 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21560 (i2f, I2F): New define_mode_attr.
21561 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21562 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21563 fixuns_truncv4sfv4si2): Update to use mode attribute.
21564 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21565 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21566 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21567 patterns for combine.
21569 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
21571 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21572 (cprop, hoist, pre, store_motion): New debug counters.
21573 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21574 is not an RTL pass anymore.
21575 (pass_profiling): Remove extern decl for pass removed in 2005.
21576 (pass_gcse, pass_jump_bypass): Remove.
21577 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21578 to 0 for clean state.
21579 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21580 * cse.c (gate_handle_cse_after_global_opts,
21581 rest_of_handle_cse_after_global_opts): New functions.
21582 (pass_cse_after_global_opts): New pass, does local CSE.
21583 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21584 (TV_CPROP): New timevar.
21585 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21586 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21587 (gcse_main, recompute_all_luids): Remove.
21588 (compute_hash_table_work): Call max_reg_num instead of reading
21590 (cprop_jump): Don't set run_jump_opt_after_gcse.
21591 (constprop_register): Always allow to alter jumps.
21592 (cprop_insn): Likewise.
21593 (do_local_cprop): Likewise.
21594 (local_cprop_pass): Likewise. Return non-zero if something changed.
21595 (cprop): Remove function, fold interesting bits into one_cprop_pass.
21596 (find_implicit_sets): Add note about missed optimization opportunity.
21597 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21598 pass_rtl_cprop execute function.
21599 Don't bother tracking the pass number, each pass gets its own dumpfile
21601 Always allow to alter jumpsand bypass jumps.
21602 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21603 will just find no suitable set.
21604 (pre_edge_insert): Fix dumping, this function is for PRE only.
21605 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21606 pass_rtl_pre execute function.
21607 (hoist_code): Return non-zero if something changed. Keep track of
21608 substitutions and insertions for statistics gathering similar to PRE.
21609 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21610 called from the pass_rtl_hoist execute function. Show pass statistics.
21611 (compute_store_table): Use max_reg_num directly instead of using the
21612 formerly global max_gcse_regno.
21613 (build_store_vectors): Likewise.
21614 (replace_store_insn): Fix dumping.
21615 (store_motion): Rename to ...
21616 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
21617 pass, called from the pass_rtl_store_motion execute function. Keep
21618 track of substitutions and insertions for statistics gathering similar
21620 (bypass_jumps): Remove, fold interesting bits into ...
21621 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
21622 from the pass_rtl_cprop execute function.
21623 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21624 pass_jump_bypass): Remove.
21625 (gate_handle_gcse, rest_of_handle_gcse): Remove.
21626 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21627 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21628 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21629 (gate_rtl_store_motion, execute_rtl_store_motion,
21630 pass_rtl_store_motion): New.
21631 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21632 make it clear that -fcse-skip-blocks is a no-op for backward compat.
21633 * passes.c (init_optimization_passes): Remove pass_gcse and
21634 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
21635 and cse_after_global_opts in place of pass_gcse. Schedule cprop
21636 instead of pass_jump_bypass.
21638 2009-04-27 Richard Guenther <rguenther@suse.de>
21640 PR middle-end/39928
21641 * gimplify.c (gimplify_expr): If we are required to create
21642 a temporary make sure it ends up as register.
21644 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
21647 * config/i386/i386.c (construct_container): Don't call
21648 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21649 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21651 2009-04-27 Michael Matz <matz@suse.de>
21653 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21654 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
21655 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
21656 (dump_replaceable_exprs): Take a bitmap.
21657 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21659 (expand_gimple_basic_block): Likewise.
21660 * tree-ssa-ter.c (struct temp_expr_table_d): Make
21661 replaceable_expressions member a bitmap.
21662 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21663 (mark_replaceable): Likewise.
21664 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21665 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21667 2009-04-27 Richard Guenther <rguenther@suse.de>
21669 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21670 (verify_stmts): Dispatch to gimple/type verification code.
21671 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21672 issue with call argument types.
21674 2009-04-27 Michael Matz <matz@suse.de>
21676 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21677 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21680 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21681 Eric Botcazou <ebotcazou@adacore.com>
21683 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21684 a label's basic block.
21685 (mark_target_live_regs): Tidy and rework obsolete comments.
21686 Change back DF problem to LIVE. If a label starts a basic block,
21687 assume that all registers that used to be live then still are.
21688 (init_resource_info): If a label starts a basic block, set its
21689 BLOCK_FOR_INSN accordingly.
21690 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21692 2009-04-27 Richard Guenther <rguenther@suse.de>
21694 * tree-flow-inline.h (function_ann): Remove.
21695 (get_function_ann): Likewise.
21696 * tree-dfa.c (create_function_ann): Remove.
21697 * tree-flow.h (struct static_var_ann_d): Remove.
21698 (struct function_ann_d): Likewise.
21699 (union tree_ann_d): Remove fdecl member.
21700 (function_ann_t): Remove.
21701 (function_ann, get_function_ann, create_function_ann): Remove
21704 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
21706 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21708 2009-04-27 Jan Hubicka <jh@suse.cz>
21710 * ipa-pure-const.c (struct funct_state_d): New fields
21711 state_previously_known, looping_previously_known; remove
21712 state_set_in_source.
21713 (analyze_function): Use new fields.
21714 (propagate): Avoid assumption that state_set_in_source imply
21717 * tree-ssa-loop-niter.c (finite_loop_p): New function.
21718 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21719 * cfgloop.h (finite_loop_p): Declare.
21721 2009-04-26 Michael Matz <matz@suse.de>
21723 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
21725 2009-04-26 Michael Matz <matz@suse.de>
21727 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21728 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21729 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21730 pass_mark_used_blocks): Remove.
21731 * tree-optimize.c (pass_free_datastructures,
21732 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21733 * passes.c (init_optimization_passes): Don't call
21734 pass_mark_used_blocks, remove dead code.
21736 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
21738 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21739 * tree-ssa-live.h (register_ssa_partition): Likewise.
21741 2009-04-26 Michael Matz <matz@suse.de>
21744 * builtins.c (fold_builtin_next_arg): Handle SSA names.
21745 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21746 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
21748 (compare_pairs): Swap cost comparison.
21749 (coalesce_ssa_name): Don't use change_partition_var.
21750 * tree-nrv.c (struct nrv_data): Add modified member.
21751 (finalize_nrv_r): Set it.
21752 (tree_nrv): Use it to update statements.
21753 (pass_nrv): Require PROP_ssa.
21754 * tree-mudflap.c (mf_decl_cache_locals,
21755 mf_build_check_statement_for): Use make_rename_temp.
21756 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21757 * alias.c (find_base_decl): Handle SSA names.
21758 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21759 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21760 * rtl.h (set_reg_attrs_for_parm): Declare.
21761 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21762 to "optimized", remove unused locals at finish.
21763 (execute_free_datastructures): Make global, call
21764 delete_tree_cfg_annotations.
21765 (execute_free_cfg_annotations): Don't call
21766 delete_tree_cfg_annotations.
21768 * ssaexpand.h: New file.
21769 * expr.c (toplevel): Include ssaexpand.h.
21770 (expand_assignment): Handle SSA names the same as register variables.
21771 (expand_expr_real_1): Expand SSA names.
21772 * cfgexpand.c (toplevel): Include ssaexpand.h.
21773 (SA): New global variable.
21774 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21775 (SSAVAR): New macro.
21776 (set_rtl): New helper function.
21777 (add_stack_var): Deal with SSA names, use set_rtl.
21778 (expand_one_stack_var_at): Likewise.
21779 (expand_one_stack_var): Deal with SSA names.
21780 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21781 before unique numbers.
21782 (expand_stack_vars): Use set_rtl.
21783 (expand_one_var): Accept SSA names, add asserts for them, feed them
21784 to above subroutines.
21785 (expand_used_vars): Expand all partitions (without default defs),
21786 then only the local decls (ignoring those expanded already).
21787 (expand_gimple_cond): Remove edges when jumpif() expands an
21788 unconditional jump.
21789 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21790 or remove abnormal edges. Ignore insns setting the LHS of a TERed
21792 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21793 members of SA; deal with PARM_DECL partitions here; expand
21794 all PHI nodes, free tree datastructures and SA. Commit instructions
21795 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21796 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21797 info and statements at start, collect garbage at finish.
21798 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21799 (VAR_ANN_PARTITION) Remove.
21800 (change_partition_var): Don't declare.
21801 (partition_to_var): Always return SSA names.
21802 (var_to_partition): Only accept SSA names.
21803 (register_ssa_partition): Only check argument.
21804 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21806 (delete_var_map): Don't free it.
21807 (var_union): Only accept SSA names, simplify.
21808 (partition_view_init): Mark only useful SSA names as used.
21809 (partition_view_fini): Only deal with SSA names.
21810 (change_partition_var): Remove.
21811 (dump_var_map): Use ssa_name instead of partition_to_var member.
21812 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21814 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21815 (struct _elim_graph): New member const_dests; nodes member vector of
21817 (set_location_for_edge): New static helper.
21818 (create_temp): Remove.
21819 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
21820 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
21821 (new_elim_graph): Allocate const_dests member.
21822 (clean_elim_graph): Truncate const_dests member.
21823 (delete_elim_graph): Free const_dests member.
21824 (elim_graph_size): Adapt to new type of nodes member.
21825 (elim_graph_add_node): Likewise.
21826 (eliminate_name): Likewise.
21827 (eliminate_build): Don't take basic block argument, deal only with
21828 partition numbers, not variables.
21829 (get_temp_reg): New static helper.
21830 (elim_create): Use it, deal with RTL temporaries instead of trees.
21831 (eliminate_phi): Adjust all calls to new signature.
21832 (assign_vars, replace_use_variable, replace_def_variable): Remove.
21833 (rewrite_trees): Only do checking.
21834 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21835 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21836 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21837 contains_tree_r, MAX_STMTS_IN_LATCH,
21838 process_single_block_loop_latch, analyze_edges_for_bb,
21839 perform_edge_inserts): Remove.
21840 (expand_phi_nodes): New global function.
21841 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
21842 functions, initialize new parameter, remember partitions having a
21844 (finish_out_of_ssa): New global function.
21845 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
21846 don't reset in_ssa_p here, don't disable TER when mudflap.
21847 (pass_del_ssa): Remove.
21848 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21850 (execute_free_datastructures): Declare.
21851 * Makefile.in (SSAEXPAND_H): New variable.
21852 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21853 * basic-block.h (commit_one_edge_insertion): Declare.
21854 * passes.c (init_optimization_passes): Move pass_nrv and
21855 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21856 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21857 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21858 (redirect_branch_edge): Deal with super block when expanding, split
21859 out jump patching itself into ...
21860 (patch_jump_insn): ... here, new static helper.
21862 2009-04-26 Michael Matz <matz@suse.de>
21864 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21865 beyond num_ssa_names.
21866 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21867 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21869 2009-04-26 Jakub Jelinek <jakub@redhat.com>
21871 PR inline-asm/39543
21872 * fwprop.c (forward_propagate_asm): New function.
21873 (forward_propagate_and_simplify): Propagate also into __asm, if it
21874 doesn't increase the number of referenced registers.
21877 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21879 2009-04-26 Jakub Jelinek <jakub@redhat.com>
21881 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21882 note_nonlocal_vla_type for nonlocal VLAs.
21883 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21884 contains_remapped_vars, remap_vla_decls): New functions.
21885 (convert_nonlocal_reference_stmt): If not optimizing, call
21886 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21887 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21888 if it wasn't found in var_map.
21889 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
21890 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21891 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21893 * gimplify.c (nonlocal_vlas): New variable.
21894 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21896 (gimplify_body): Create and destroy nonlocal_vlas.
21898 * dwarf2out.c (loc_descr_plus_const): New function.
21899 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21900 mem_loc_descriptor, loc_descriptor_from_tree_1,
21901 descr_info_loc, gen_variable_die): Use it.
21903 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21904 !TREE_STATIC VAR_DECLs.
21905 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21906 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21907 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
21908 DECL_BY_REFERENCE is valid.
21909 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21910 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21911 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21912 Copy DECL_BY_REFERENCE.
21913 (struct nesting_copy_body_data): New type.
21914 (nesting_copy_decl): New function.
21915 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21916 if they have variable length.
21918 2009-04-26 Michael Matz <matz@suse.de>
21920 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21921 mark new temporaries for renaming.
21923 2009-04-26 Joseph Myers <joseph@codesourcery.com>
21926 * c-decl.c (global_bindings_p): Return negative value.
21927 (c_variable_size): New. Based on variable_size from
21929 (grokdeclarator): Call c_variable_size not variable_size.
21931 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
21933 * config/i386/i386.c (print_operand) ['z']: Fix typo.
21935 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
21937 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21938 Redefine it to just use mingw/include.
21939 (ASM_SPEC): Rules for -m32 and -m64.
21940 (LINK_SPEC): Use Likewise.
21941 (SPEC_32): New define.
21942 (SPEC_64): Likewise.
21943 (SUB_LINK_SPEC): Likewise.
21944 (MULTILIB_DEFAULTS): New define.
21945 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21946 Add multilib options.
21947 (MULTILIB_DIRNAMES): Likewise.
21948 (MULTILIB_OSDIRNAMES): Likewise.
21949 (LIBGCC): Likewise.
21950 (INSTALL_LIBGCC): Likewise.
21952 2009-04-26 Joseph Myers <joseph@codesourcery.com>
21955 * c-tree.h (enum c_inline_static_type): New.
21956 (record_inline_static): Declare.
21957 * c-decl.c (struct c_inline_static, c_inline_statics,
21958 record_inline_static, check_inline_statics): New.
21959 (pop_file_scope): Call check_inline_statics.
21960 (start_decl): Call record_inline_static instead of pedwarning
21961 directly for static in inline function.
21962 * c-typeck.c (build_external_ref): Call record_inline_static
21963 instead of pedwarning directly for static referenced in inline
21966 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
21968 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21969 not new but only being rescanned.
21970 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21971 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21972 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21973 record_set_info, compute_set, grealloc): Remove.
21974 (recompute_all_luids): New function.
21975 (gcse_main): Don't compute sets, and don't do related memory
21976 allocations/free-ing. If something changed before the end of the
21977 pass, update LUIDs using recompute_all_luids.
21978 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
21979 (free_gcse_mem): Don't free it either.
21980 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21981 Use the df insn LUIDs.
21982 (load_killed_in_block): Likewise.
21983 (compute_hash_table_work): Don't compute reg_set_in_block.
21984 (compute_transp): Use DF_REG_DEF_CHAINs.
21985 (local_cprop_pass): Don't use compute_sets and related functions.
21986 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21987 Use get_max_uid() instead of max_cuid.
21988 (insert_insn_end_basic_block, pre_insert_copy_insn,
21989 update_ld_motion_stores): Don't try to
21990 keep reg_set tables up to date.
21991 (pre_insert_copies): Use df insn LUIDs.
21992 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21993 (reg_set_info): Don't use extra bitmap argument.
21994 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
21995 information to compute regs_set_in_block.
21996 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21997 (bypass_jumps): Don't use compute_sets and friends.
21999 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22002 * opts.c (undocumented_msg): Do not leave blank even with
22005 2009-04-25 Joseph Myers <joseph@codesourcery.com>
22007 * c-decl.c (build_enumerator): Allow values folding to integer
22008 constants but not integer constant expressions with a pedwarn if
22011 2009-04-25 Joseph Myers <joseph@codesourcery.com>
22014 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
22015 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
22016 type is an integer constant.
22018 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
22021 * config/i386/i386.c (print_operand) ['z']: Revert handling of
22024 2009-04-25 Joseph Myers <joseph@codesourcery.com>
22027 * c-decl.c (grokdeclarator): Diagnose declarations of functions
22028 with variably modified return type and no storage class
22029 specifiers, except for the case of nested functions. Distinguish
22030 extern declarations of functions with variably modified return
22031 types from those of objects with variably modified types.
22033 2009-04-25 Jan Hubicka <jh@suse.cz>
22035 * tree.c (list_equal_p): New function.
22036 * tree.h (list_equal_p): Declare.
22037 * coretypes.h (edge_def, edge, const_edge, basic_block_def
22038 basic_block_def, basic_block, const_basic_block): New.
22039 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
22040 (redirect_eh_edge): New function.
22041 (make_eh_edge_update_phi): EH edges are not abnormal.
22042 * except.c: Include tree-flow.h.
22043 (list_match): New function.
22044 (eh_region_replaceable_by_p): New function.
22045 (replace_region): New function.
22046 (hash_type_list): New function.
22047 (hash_eh_region): New function.
22048 (eh_regions_equal_p): New function.
22049 (merge_peers): New function.
22050 (remove_unreachable_regions): Verify EH tree when checking;
22052 (copy_eh_region_1): New function.
22053 (copy_eh_region): New function.
22054 (push_reachable_handler): New function.
22055 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
22056 regions without label but with live RESX.
22057 * except.h (redirect_eh_edge_to_label): New.
22058 * tree-flow.h (redirect_eh_edge): New.
22059 * coretypes.h (edge_def, edge, const_edge, basic_block_def
22060 basic_block_def, basic_block, const_basic_block): Remove.
22061 * Makefile.in (except.o): Add dependency on tree-flow.h
22062 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
22063 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
22066 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
22069 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
22070 on the destination of memcpy.
22072 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
22074 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
22075 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
22076 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
22078 2009-04-25 Jan Hubicka <jh@suse.cz>
22080 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
22081 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
22082 to be reached by different label than left.
22083 (update_eh_edges): Update comment; remove edge_to_remove if possible
22084 and return true if suceeded.
22085 (cleanup_empty_eh): Accept sharing map; handle shared regions.
22086 (cleanup_eh): Compute sharing map.
22087 * except.c (remove_eh_handler_and_replace): Add argument if we should
22089 (remove_unreachable_regions): Update for label sharing.
22090 (label_to_region_map): Likewise.
22091 (get_next_region_sharing_label): New function.
22092 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
22094 (remove_eh_handler): Update.
22095 (remove_eh_region_and_replace_by_outer_of): New function.
22096 * except.h (struct eh_region): Add next_region_sharing_label.
22097 (remove_eh_region_and_replace_by_outer_of,
22098 get_next_region_sharing_label): Declare.
22099 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
22101 2009-04-25 Jan Hubicka <jh@suse.cz>
22103 * tree-cfg.c (split_critical_edges): Split also edges where we can't
22104 insert code even if they are not critical.
22106 2009-04-25 Jan Hubicka <jh@suse.cz>
22108 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22109 (gimple_can_remove_branch_p): EH edges won't remove branch by
22111 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
22112 updating of non-abnormal EH edges.
22113 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22114 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
22115 (split_critical_edges): Split also edges where emitting code on them
22116 will lead to splitting later.
22118 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
22119 H.J. Lu <hongjiu.lu@intel.com>
22122 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22123 the configured assembler supports fildq and fistpq mnemonics.
22124 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22125 * configure: Regenerated.
22126 * config.in: Ditto.
22128 * config/i386/i386.c (print_operand): Handle 'Z'.
22129 ['z']: Remove handling of special fild/fist suffixes.
22130 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22131 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22132 suffix of fild insn.
22133 (*floatsi<mode>2_vector_mixed): Ditto.
22134 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22135 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22136 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22137 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22138 * config/i386/gas.h (GAS_MNEMONICS): Remove.
22140 2009-04-25 Ben Elliston <bje@au.ibm.com>
22142 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22143 the source of a set operation.
22145 2009-04-25 Anatoly Sokolov <aesok@post.ru>
22147 * target.h (struct gcc_target): Add case_values_threshold field.
22148 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22149 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22150 * targhooks.c (default_case_values_threshold): New function.
22151 * targhooks.h (default_case_values_threshold): Declare function.
22152 * stmt.c (expand_case): Use case_values_threshold target hook.
22153 * expr.h (case_values_threshold): Remove declartation.
22154 * expr.c (case_values_threshold): Remove function.
22155 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22157 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22158 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22159 (avr_case_values_threshold): Declare as static.
22160 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22162 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22163 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22164 (mn10300_case_values_threshold): New function.
22166 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22168 * ira.c (setup_cover_and_important_classes): Add enum cast.
22170 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
22172 * genpreds.c (write_enum_constraint_num): Output definition of
22173 CONSTRAINT_NUM_DEFINED_P macro.
22174 * ira.c (setup_cover_and_important_classes): Use
22175 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22177 2009-04-24 DJ Delorie <dj@redhat.com>
22179 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22180 __SH2A_SINGLE_ONLY__ also.
22182 2009-04-24 Steve Ellcey <sje@cup.hp.com>
22184 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22185 (movdf_internal): Ditto.
22186 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22187 SFmode and DFmode constants.
22188 (ia64_print_operand): Add 'G' format for printing
22189 floating point constants.
22191 2009-04-24 Richard Guenther <rguenther@suse.de>
22193 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22194 from unsigned additions.
22196 2009-04-24 Joseph Myers <joseph@codesourcery.com>
22198 * c-typeck.c (set_init_index): Allow array designators that are
22199 not integer constant expressions with a pedwarn if pedantic.
22201 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22203 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22204 zero if no overlap in nonzero bits between the operands.
22206 2009-04-24 Ian Lance Taylor <iant@google.com>
22208 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22209 (record_dead_and_set_regs): Likewise.
22210 * df.h (struct df_mw_hardreg): Change flags field to int.
22211 (struct df_base_ref): Likewise.
22212 (struct df): Change changeable_flags field to int.
22213 * df-scan.c (df_defs_record): Change clobber_flags to int.
22214 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22215 constants rather than #define macros.
22216 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22217 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22218 (enum dwarf_calling_convention): Likewise.
22219 (enum dwarf_line_number_x_ops): Likewise.
22220 (enum dwarf_call_frame_info): Likewise.
22221 (enum dwarf_source_language): Likewise.
22222 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22223 (add_calling_convention_attribute): Likewise.
22224 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22225 (combine_comparisons): Change compcode to int. Add cast to enum type.
22226 * genrecog.c (maybe_both_true_2): Change c to int.
22227 (write_switch): Likewise. Add cast to enum type.
22228 * gimplify.c (gimplify_omp_for): Handle return values from
22229 gimplify_expr using MIN rather than bitwise or.
22230 (gimplify_expr): Add cast to enum type.
22231 * ipa-prop.c (update_jump_functions_after_inlining): Change
22232 IPA_BOTTOM to IPA_JF_UNKNOWN.
22233 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22234 Add casts to enum type.
22235 (setup_cover_and_important_classes): Change cl to int. Add casts
22237 (setup_class_translate): Change cl and mode to int.
22238 (ira_init_once): Change mode to int.
22239 (free_register_move_costs): Likewise.
22240 (setup_prohibited_mode_move_regs): Add casts to enum type.
22241 * langhooks.c (add_builtin_function_common): Rework assertion that
22242 value fits bitfield.
22243 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22244 * omega.c (omega_do_elimination): Avoid math on enum types.
22245 * optabs.c (expand_vec_shift_expr): Remove casts to int.
22246 * opts.c (set_debug_level): Change 2 to enum constant. Use new
22247 int local to handle integral_argment value.
22248 * regmove.c (try_auto_increment): Change PUT_MODE to
22250 * reload.c (push_secondary_reload): Add casts to enum type.
22251 (secondary_reload_class, find_valid_class): Likewise.
22252 * reload1.c (emit_input_reload_insns): Likewise.
22253 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22254 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22255 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22257 * tree.c (build_common_builtin_nodes): Add casts to enum type.
22258 * tree-complex.c (complex_lattice_t): Typedef to int rather than
22260 (expand_complex_libcall): Add casts to enum type.
22261 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22262 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22263 with ERROR_MARK, not NUM_TREE_CODES.
22264 (vect_create_epilog_for_reduction): Likewise.
22265 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22266 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22267 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22269 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22270 vect_unused_in_loop. Change 0 to loop_vect.
22271 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22272 * var-tracking.c (get_init_value): Change return type to enum
22274 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22275 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22277 (arm_override_options): Add casts to enum type.
22278 (arm_emit_tls_decoration): Likewise.
22279 * config/i386/i386.c (ix86_function_specific_restore): Add casts
22281 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22282 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22283 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22285 * config/s390/s390.c (code_for_builtin_64): Change to array of
22287 (code_for_builtin_31): Likewise.
22288 (s390_expand_builtin): Change code_for_builtin to enum insn_code
22290 * config/sparc/sparc.c (sparc_override_options): Change value
22291 field in struct code_model to enum cmodel. In initializer change
22292 0 to NULL and add cast to enum type.
22294 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22295 Change all callers. Issue a -Wc++-compat warning using
22296 lhs_origtype if necessary.
22297 (convert_for_assignment): Issue -Wc++-compat warnings about
22298 invalid conversions to enum type on assignment.
22299 * c-common.h (build_modify_expr): Update declaration.
22301 2009-04-24 Nick Clifton <nickc@redhat.com>
22303 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22304 (function_arg_advance): Likewise.
22305 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22308 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
22310 * config/s390/constraints.md ('I', 'J'): Fix condition.
22312 2009-04-24 Diego Novillo <dnovillo@google.com>
22314 * gengtype-parse.c (parse_error): Add newline after message.
22316 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22318 * config/i386/sse.md (avxmodesuffixs): Removed.
22319 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22320 (*avx_pinsr<ssevecsize>): This.
22322 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22324 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22325 follow chains of regs with a single definition, and allow expressions
22326 that are function_invariant_p.
22327 (simple_rhs_p): Allow expressions that are function_invariant_p.
22329 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
22331 PR middle-end/39867
22332 * fold-const.c (fold_cond_expr_with_comparison): When folding
22333 > and >= to MAX, make sure the MAX uses the same type as the
22334 comparison's operands.
22336 2009-04-24 Nick Clifton <nickc@redhat.com>
22338 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22339 addressing for DImode accesses.
22340 (frv_print_operand_address): Handle PLUS case.
22341 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22343 2009-04-24 Jakub Jelinek <jakub@redhat.com>
22345 PR rtl-optimization/39794
22346 * alias.c (canon_true_dependence): Add x_addr argument.
22347 * rtl.h (canon_true_dependence): Adjust prototype.
22348 * cse.c (check_dependence): Adjust canon_true_dependence callers.
22349 * cselib.c (cselib_invalidate_mem): Likewise.
22350 * gcse.c (compute_transp): Likewise.
22351 * dse.c (scan_reads_nospill): Likewise.
22352 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
22353 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22354 canon_base_addr of the group, plus optional offset.
22355 (struct group_info): Rename canon_base_mem to
22357 (get_group_info): Set canon_base_addr to canon_rtx of base, not
22358 canon_rtx of base_mem.
22360 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
22362 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22363 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22365 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22367 * config/spu/spu-builtins.h: Delete file.
22369 * config/spu/spu.h (enum spu_builtin_type): Move here from
22371 (struct spu_builtin_description): Likewise. Add GTY marker.
22372 Do not use enum spu_function_code or enum insn_code.
22373 (spu_builtins): Add extern declaration.
22375 * config/spu/spu.c: Do not include "spu-builtins.h".
22376 (enum spu_function_code, enum spu_builtin_type_index,
22377 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22378 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22379 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22380 unsigned_V2DI_type_node): Move here from spu-builtins.h.
22381 (spu_builtin_types): Make static. Add GTY marker.
22382 (spu_builtins): Add extern declaration with GTY marker.
22383 Include "gt-spu.h".
22385 * config/spu/spu-c.c: Do not include "spu-builtins.h".
22386 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22387 Check programmatically whether all parameters are scalar.
22389 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22391 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
22393 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22394 assignment from the constructor either if the target is volatile.
22396 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
22398 * config/arm/arm.md (insv): Do not share operands[0].
22400 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
22402 * config/vxlib-tls.c (active_tls_threads): Delete.
22403 (delete_hook_installed): New.
22404 (tls_delete_hook): Don't delete the delete hook.
22405 (tls_destructor): Delete it here.
22406 (__gthread_set_specific): Adjust installing the delete hook.
22407 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22408 __gthread_leave_tsd_dtor_context.
22410 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
22412 * c-format.c (gcc_tdiag_char_table): Add support for %E.
22414 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
22416 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22418 (alpha_rtx_costs): Ditto.
22419 (emit_unlikely_jump): Use add_reg_note.
22420 (emit_frame_store_1): Ditto.
22421 (alpha_expand_prologue): Ditto.
22422 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22423 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22425 2009-04-23 Nick Clifton <nickc@redhat.com>
22427 * config/v850/v850.md (epilogue): Remove suppressed code.
22428 (return): Rename to return_simple and remove test of frame size.
22429 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22430 to gen_return_simple.
22432 2009-04-22 Jing Yu <jingyu@google.com>
22435 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22437 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
22440 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22441 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
22442 value is a VECTOR_CST, the element type is the element type of the
22445 2009-04-22 DJ Delorie <dj@redhat.com>
22447 * config/m32c/m32c.h: Update GTY annotations to new syntax.
22449 2009-04-22 Jakub Jelinek <jakub@redhat.com>
22451 * alias.c (find_base_term): Move around LO_SUM case, so that
22452 CONST falls through into PLUS/MINUS handling.
22455 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22456 into 0, use omit_one_operand.
22458 2009-04-23 Ben Elliston <bje@au.ibm.com>
22460 * config/rs6000/linux-unwind.h (get_regs): Remove type
22461 puns. Change the type of `pc' to an array of unsigned ints and
22462 update all users. Constify frame24.
22464 2009-04-22 DJ Delorie <dj@redhat.com>
22466 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22467 declarations before code.
22468 (current_function_special_page_vector): Likewise.
22469 (m32c_expand_insv): Silence a warning.
22471 2009-04-21 Taras Glek <tglek@mozilla.com>
22473 * alias.c: Update GTY annotations to new syntax.
22474 * basic-block.h: Likewise.
22475 * bitmap.h: Likewise.
22476 * c-common.h: Likewise.
22477 * c-decl.c: Likewise.
22478 * c-parser.c: Likewise.
22479 * c-pragma.c: Likewise.
22480 * c-tree.h: Likewise.
22481 * cfgloop.h: Likewise.
22482 * cgraph.h: Likewise.
22483 * config/alpha/alpha.c: Likewise.
22484 * config/arm/arm.h: Likewise.
22485 * config/avr/avr.h: Likewise.
22486 * config/bfin/bfin.c: Likewise.
22487 * config/cris/cris.c: Likewise.
22488 * config/darwin.c: Likewise.
22489 * config/frv/frv.c: Likewise.
22490 * config/i386/i386.c: Likewise.
22491 * config/i386/i386.h: Likewise.
22492 * config/i386/winnt.c: Likewise.
22493 * config/ia64/ia64.h: Likewise.
22494 * config/iq2000/iq2000.c: Likewise.
22495 * config/mips/mips.c: Likewise.
22496 * config/mmix/mmix.h: Likewise.
22497 * config/pa/pa.c: Likewise.
22498 * config/pa/pa.h: Likewise.
22499 * config/rs6000/rs6000.c: Likewise.
22500 * config/s390/s390.c: Likewise.
22501 * config/sparc/sparc.c: Likewise.
22502 * config/xtensa/xtensa.c: Likewise.
22503 * cselib.h: Likewise.
22504 * dbxout.c: Likewise.
22505 * dwarf2out.c: Likewise.
22506 * except.c: Likewise.
22507 * except.h: Likewise.
22508 * fixed-value.h: Likewise.
22509 * function.c: Likewise.
22510 * function.h: Likewise.
22511 * gimple.h: Likewise.
22512 * integrate.c: Likewise.
22513 * optabs.c: Likewise.
22514 * output.h: Likewise.
22515 * real.h: Likewise.
22517 * stringpool.c: Likewise.
22518 * tree-data-ref.c: Likewise.
22519 * tree-flow.h: Likewise.
22520 * tree-scalar-evolution.c: Likewise.
22521 * tree-ssa-address.c: Likewise.
22522 * tree-ssa-alias.h: Likewise.
22523 * tree-ssa-operands.h: Likewise.
22524 * tree.c: Likewise.
22525 * tree.h: Likewise.
22526 * varasm.c: Likewise.
22527 * varray.h: Likewise.
22529 * coretypes.h: Do not define GTY macro if it is already defined.
22530 * doc/gty.texi: Update GTY documentation to new syntax.
22531 * gengtype-lex.l: Enforce attribute-like syntax for GTY
22532 annotations on structs.
22533 * gengtype-parse.c: Likewise.
22535 2009-04-22 Mark Heffernan <meheff@google.com>
22537 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22539 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
22541 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22544 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
22546 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22547 the same as a PLUS without a shift. Increase the cost of a
22550 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22552 * Makefile.in: Update dependencies.
22553 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22554 * errors.h: Remove bogus comment about compatibility.
22555 (warning): Update declaration.
22556 * genautomata.c: Update all calls to warning.
22557 * gimple.c: Do not include errors.h. Include toplev.h.
22558 * tree-ssa-structalias.c: Do not include errors.h.
22559 * omega.c: Likewise.
22560 * tree-ssa-reassoc.c: Likewise.
22561 * config/spu/spu-c.c: Likewise.
22562 * config/spu/t-spu-elf: Update dependencies.
22564 2009-04-22 Richard Guenther <rguenther@suse.de>
22566 PR tree-optimization/39824
22567 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22568 make sure the types are compatible.
22570 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22573 * c-common.c (c_parse_error): Take a token_flags parameter.
22574 Use token_type for the token type instead.
22575 Pass token_flags to cpp_type2name.
22576 * c-common.h (c_parse_error): Update declaration.
22577 * c-parser.c (c_parser_error): Pass 0 as token flags.
22579 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
22581 PR rtl-optimization/39580
22582 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22584 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22586 * function.c (expand_function_end): Do not emit a jump to the "naked"
22587 return label for fall-through returns.
22588 * except.c (sjlj_emit_function_exit): Always place the call to the
22589 unregister function at the location installed by expand_function_end.
22591 2009-04-22 Richard Guenther <rguenther@suse.de>
22593 PR tree-optimization/39845
22594 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22595 (gen_inbound_check): Likewise.
22597 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
22599 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22601 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22602 * config/vxlib.c (__gthread_once): Add race guard for PPC.
22604 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22606 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22607 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22608 shift counts to avoid out-of-bounds array accesses.
22610 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22612 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22613 (Pmode): Move above.
22615 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
22617 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22618 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22619 GET_CODE macro. Use IN_RANGE macro where appropriate.
22620 * config/alpha/alpha.h: Ditto.
22621 * config/alpha/alpha.md: Ditto.
22622 * config/alpha/constraints.md: Ditto.
22623 * config/alpha/predicates.md: Ditto.
22625 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22627 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22628 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22629 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22630 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22631 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22632 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22633 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22634 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22635 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22636 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22637 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22638 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22639 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22640 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22641 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22642 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22643 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22644 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22645 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22646 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22647 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22648 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22649 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22650 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22651 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22652 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22653 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22655 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22657 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22658 references from comments.
22659 * cfgbuild.c (count_basic_blocks): Delete.
22660 (find_basic_blocks_1): Delete.
22661 (find_basic_blocks): Delete.
22662 * except.c (finish_eh_generation): Make static. Move comment from
22663 except.h here. Remove find_basic_blocks references from comments.
22664 * except.h (finish_eh_generation): Delete.
22665 * basic-block.h (find_basic_blocks): Delete.
22666 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22668 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
22670 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
22671 (sdbout_parms): Likewise.
22673 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
22675 * config/sh/sh.c (prepare_cbranch_operands): Use
22676 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22677 (expand_cbranchdi4): Likewise.
22678 (from_compare): Add cast to enum type.
22679 (expand_cbranchsi4): Use add_reg_note.
22680 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22681 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22682 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22683 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22684 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22685 instead of CODE_FOR_nothing.
22686 (cbranchdi4): Likewise. Fix the order of arguments for
22688 (push_fpscr): Use add_reg_note.
22689 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22690 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
22692 2009-04-21 Joseph Myers <joseph@codesourcery.com>
22694 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22695 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22696 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22697 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22698 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22699 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22700 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22701 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22702 config/alpha/x-vms, config/arc/t-arc,
22703 config/arm/README-interworking, config/arm/arm-c.c,
22704 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22705 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22706 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22707 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22708 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22709 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22710 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22711 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22712 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22713 config/cris/t-elfmulti, config/crx/t-crx,
22714 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22715 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22716 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22717 config/h8300/t-h8300, config/i386/athlon.md,
22718 config/i386/darwin-libgcc.10.4.ver,
22719 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22720 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22721 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22722 config/i386/t-linux64, config/i386/t-nwld,
22723 config/i386/t-rtems-i386, config/i386/t-sol2-10,
22724 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22725 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22726 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22727 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22728 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22729 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22730 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22731 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22732 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22733 config/m68k/t-uclinux, config/mcore/t-mcore,
22734 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22735 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22736 config/mips/crtn.asm, config/mips/irix-crti.asm,
22737 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22738 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22739 config/mips/mips-fixed.md, config/mips/sb1.md,
22740 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22741 config/mips/t-iris6, config/mips/t-isa3264,
22742 config/mips/t-libgcc-mips16, config/mips/t-linux64,
22743 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22744 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22745 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22746 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22747 config/mn10300/t-linux, config/mn10300/t-mn10300,
22748 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22749 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22750 config/picochip/libgccExtras/clzsi2.asm,
22751 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22752 config/rs6000/darwin-libgcc.10.4.ver,
22753 config/rs6000/darwin-libgcc.10.5.ver,
22754 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22755 config/rs6000/t-aix43, config/rs6000/t-aix52,
22756 config/rs6000/t-darwin, config/rs6000/t-fprules,
22757 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22758 config/rs6000/t-lynx, config/rs6000/t-netbsd,
22759 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22760 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22761 config/rs6000/t-rtems, config/rs6000/t-spe,
22762 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22763 config/score/t-score-elf, config/sh/divcost-analysis,
22764 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22765 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22766 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22767 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22768 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22769 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22770 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22771 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22772 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22773 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22774 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22775 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22776 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22777 limitx.h, version.c, xcoff.h: Add copyright and license notices.
22778 * config/h8300/genmova.sh: Include copyright and license notices
22779 in generated output.
22780 * config/h8300/mova.md: Regenerate.
22781 * doc/install.texi2html: Include word "Copyright" in copyright
22782 notice and use name "Free Software Foundation, Inc.".
22783 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22784 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22785 ChangeLog-2007, ChangeLog-2008: Correct dates.
22787 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
22789 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22790 NE_EXPR operations as well.
22791 * c-parser.c (c_parser_condition): Do not set location information on
22793 (c_parser_conditional_expression): Likewise.
22794 (c_parser_binary_expression): Set location information on operators.
22795 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22796 TRUTH_NOT_EXPR has been folded.
22797 * fold-const.c (fold_truth_not_expr): Copy location information from
22798 the incoming expression to the outgoing one.
22799 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
22800 recursive calls on the LHS of the operator but pass that of the
22801 operator to recursive calls on the RHS of the operator. Set it
22803 (shortcut_cond_expr): Set the locus of the operator on the second
22804 COND_EXPR and that of the expression on the first in degenerate cases.
22805 Pass the locus of the expression to calls to shortcut_cond_r.
22806 Set the locus of the 'then' block on the associated jump, if any.
22807 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
22808 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22809 expression to call to gimplify_boolean_expr.
22811 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
22813 * config.gcc: Add additional configuration for
22814 i686-w64-mingw* and x86_64-w64-mingw* triplet.
22815 * config/i386/mingw-w64.h: New mingw-w64 specific header.
22816 (CPP_SPEC): Redefine for allowing -municode option.
22817 (STARTFILE_SPEC): Likewise.
22818 * config/i386/t-mingw-w64: New.
22819 * config/i386/mingw-w64.opt: New.
22820 (municode): Add new target option.
22821 * doc/invoke.texi (municode): Add documentation for new option.
22823 2009-04-21 Ian Lance Taylor <iant@google.com>
22825 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22826 Correct test for number of arguments.
22827 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22829 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
22831 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22832 argument of emit_library_call.
22834 2009-04-21 Richard Guenther <rguenther@suse.de>
22836 PR middle-end/39829
22837 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22838 inside VIEW_CONVERT_EXPRs.
22840 2009-04-21 Martin Jambor <mjambor@suse.cz>
22842 * tree-switch-conversion.c (build_constructors): Split a long line.
22843 (constructor_contains_same_values_p): New function.
22844 (build_one_array): Create assigns of constants if possible, do not
22845 call mark_sym_for_renaming, call update_stmt.
22846 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22847 make_rename_temp. Do not call mark_symbols_for_renaming, call
22849 (gen_def_assigns): Do not call mark_symbols_for_renaming or
22850 find_new_referenced_vars, call update_stmt.
22851 (gen_inbound_check): Use create_tmp_var and create ssa names manually
22852 instead of calling make_rename_temp. Do not call
22853 find_new_referenced_vars or mark_symbols_for_renaming, call
22856 2009-04-21 Richard Guenther <rguenther@suse.de>
22858 PR tree-optimization/39827
22859 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
22860 (tree_ssa_phiprop): Pass the correct array size.
22862 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
22864 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22866 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22869 * c-typeck.c (lvalue_p): Move declaration ...
22870 * c-common.h (lvalue_p): ... to here.
22871 * c-common.c (candidate_equal_p): New.
22872 (add_tlist): Use it.
22873 (merge_tlist): Use it.
22874 (warn_for_collisions_1): Likewise.
22875 (warning_candidate_p): Accept more candidates.
22876 (verify_tree): A warning candidate can be an expression. Use
22879 2009-04-21 Ben Elliston <bje@au.ibm.com>
22882 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22883 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22884 options. Remove -mcall-solaris documentation.
22886 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22889 * doc/invoke.texi (-Wlong-long): Update description.
22890 * c-lex (interpret_integer): Only warn if there was no previous
22891 overflow and -Wlong-long is enabled.
22892 * c-decl.c (declspecs_add_type): Drop redundant flags.
22893 * c.opt (Wlong-long): Init to -1.
22894 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22895 and front-end warn_long_long. Wlong-long only depends on other
22896 flags if it is uninitialized.
22897 * c-parser.c (disable_extension_diagnostics): warn_long_long is
22898 the same for CPP and FE.
22899 (restore_extension_diagnostics): Likewise.
22901 2009-04-20 Ian Lance Taylor <iant@google.com>
22903 Fix enum conversions which are invalid in C++:
22904 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22905 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
22906 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22907 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
22908 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
22909 (dbxout_parms): Likewise.
22910 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
22911 (df_clear_flags): Likewise.
22912 * df-problems.c (df_rd_bb_local_compute_process_def): Change
22913 top_flag parameter to int.
22914 (df_chain_create_bb_process_use): Likewise.
22915 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22917 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22918 (df_ref_create_structure, df_def_record_1): Likewise.
22919 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22920 (df_notes_rescan): Change 0 to VOIDmode in function call.
22921 (df_get_call_refs, df_insn_refs_collect): Likewise.
22922 (df_bb_regs_collect): Likewise.
22923 (df_entry_block_defs_collect): Likewise.
22924 (df_exit_block_uses_collect): Likewise.
22925 * df.h: Update declarations.
22926 * double-int.c (double_int_divmod): Add cast to enum type.
22927 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22928 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22929 (based_loc_descr): Likewise.
22930 (loc_descriptor_from_tree_1): Change first_op and second_op to
22931 enum dwarf_location_atom. Add cast to enum type.
22932 * expmed.c (init_expmed): Change 0 to SET in function call.
22933 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
22934 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22935 (do_store_flag): Likewise.
22936 * fixed-value.h (struct fixed_value): Change mode to enum
22938 * function.c (assign_parms): Change 0 to VOIDmode in function call.
22939 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22941 (insert_insn_decl, insert_decl, insert_state): Likewise.
22942 (automata_list_finish): Likewise.
22943 * genrecog.c (process_define_predicate): Add cast to enum type.
22944 * gensupport.c (init_predicate_table): Add cast to enum type.
22945 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22947 (gimple_build_call_1, gimple_build_label): Likewise.
22948 (gimple_build_goto, gimple_build_asm_1): Likewise.
22949 (gimple_build_switch_1, gimple_build_cdt): Likewise.
22950 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
22951 (enum fallback): Rename from enum fallback_t.
22952 (fallback_t): Typedef as int.
22953 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22954 GSI_SAME_STMT in function call.
22955 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22957 (setup_reg_class_relations): Likewise.
22958 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
22959 (setup_prohibited_class_mode_regs): Add cast to enum type.
22960 (setup_prohibited_mode_move_regs): Likewise.
22961 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
22962 (record_address_regs): Change i to enum reg_class.
22963 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22964 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22965 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22966 (GET_MODE_2XWIDER_MODE): Likewise.
22967 (GET_CLASS_NARROWEST_MODE): Likewise.
22968 * omp-low.c (expand_omp_for): Add cast to enum type.
22969 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22970 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22971 * postreload.c (reload_cse_simplify_operands): Change rclass local
22973 * predict.c (combine_predictions_for_insn): Change best_predictor
22974 and predictor to enum br_predictor.
22975 (combine_predictions_for_bb): Likewise.
22976 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22977 use SET_PREDICT_EXPR_OUTCOME.
22978 * real.c (real_arithmetic): Change icode to code in function call.
22979 * reginfo.c (init_move_cost): Add casts to enum type.
22980 (init_reg_sets_1, init_fake_stack_mems): Likewise.
22981 * regmove.c (regclass_compatible_p): Change class0 and class1 to
22983 * reload.c (find_valid_class): Add casts to enum type.
22984 (push_reload): Change 0 to NO_REGS in function call.
22985 (find_reloads): Change this_alternative to array of enum
22986 reg_class. Remove some now-unnecessary casts.
22987 (make_memloc): Change 0 to VOIDmode in function call.
22988 * reload1.c (reload): Change 0 to VOIDmode in function call.
22989 (eliminate_regs_1, elimination_effects): Likewise.
22990 (eliminate_regs_in_insn): Likewise.
22991 (emit_input_reload_insns): Add cast to enum type.
22992 (delete_output_reload): Change 0 to VOIDmode in function call.
22993 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22994 to enum type in function call.
22995 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22996 (SET_PREDICT_EXPR_OUTCOME): Define.
22997 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
22998 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22999 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
23000 (dump_function): Likewise.
23001 * tree-dump.h: Update declarations.
23002 * tree-pass.h: Update declarations.
23003 * varasm.c (assemble_integer): Change mclass to enum mode_class.
23004 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
23006 (arm_rtx_costs_1): Correct parenthesization.
23007 (arm_rtx_costs): Add casts to enum type.
23008 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
23009 (vfp_emit_fstmd): Use add_rg_note.
23010 (emit_multi_reg_push, emit_sfm): Likewise.
23011 (thumb_set_frame_pointer): Likewise.
23012 (arm_expand_prologue): Likewise.
23013 (arm_regno_class): Change return type to enum reg_class.
23014 (thumb1_expand_prologue): Use add_reg_note.
23015 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
23016 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
23018 * config/arm/gentune.sh: Add cast to enum type.
23019 * config/arm/arm-tune.md: Rebuild.
23020 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
23021 (ix86_split_fp_branch, predict_jump): Likewise.
23022 (ix86_expand_multi_arg_builtin): Change sub_code from enum
23023 insn_code to enum rtx_code.
23024 (ix86_builtin_vectorized_function): Add cast to enum type.
23025 * config/i386/i386.md (truncdfsf2): Change slot to enum
23027 (truncxf<mode>2, isinf<mode>2): Likewise.
23028 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
23030 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
23031 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
23032 (insert_bundle_state): Change 1 to INSERT in function call.
23033 (ia64_add_bundle_selector_before): Likewise.
23034 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
23035 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
23036 (restore_stack_nonlocal): Likewise.
23037 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
23039 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
23041 (mips_rtx_costs): Likewise.
23042 (mips_override_options): Add casts to enum type.
23043 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
23045 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
23046 (store_reg, set_reg_plus_d): Likewise.
23047 (hppa_expand_prologue, hppa_profile_hook): Likewise.
23048 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23050 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
23052 (emit_unlikely_jump): Use add_reg_note.
23053 (rs6000_emit_allocate_stack): Likewise.
23054 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
23055 (output_toc): Change 1 to INSERT in function call.
23056 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
23057 (rs6000_initialize_trampoline): Likewise.
23058 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
23060 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
23061 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
23062 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
23063 (save_gprs): Use add_reg_note.
23064 (s390_emit_prologue): Likewise.
23065 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23066 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
23067 (sparc_fold_builtin): Add cast to enum type.
23068 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
23070 (spu_expand_prologue): Use add_reg_note.
23071 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
23073 2009-04-20 Ian Lance Taylor <iant@google.com>
23075 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
23076 (c_parser_postfix_expression_after_primary): Get VEC for list of
23077 arguments. Get original types of arguments. Call
23078 build_function_call_vec.
23079 (cached_expr_list_1, cached_expr_list_2): New static variables.
23080 (c_parser_expr_list): Change return type to VEC *. Add
23081 p_orig_types parameter. Change all callers.
23082 (c_parser_release_expr): New static function.
23083 (c_parser_vec_to_tree_list): New static function.
23084 * c-typeck.c (build_function_call): Rewrite to build a VEC and
23085 call build_function_call_vec.
23086 (build_function_call_vec): New function, based on old
23087 build_function_call.
23088 (convert_arguments): Remove nargs and argarray parameters. Change
23089 values to a VEC. Add origtypes parameter.
23090 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
23091 (convert_for_assignment): Add origtype parameter. Change all
23092 callers. If warn_cxx_compat, check for conversion to an enum
23093 type when calling a function.
23094 (store_init_value): Add origtype parameter. Change all callers.
23095 (digest_init): Likewise.
23096 (struct init_node): Add origtype field.
23097 (add_pending_init): Add origtype parameter. Change all callers.
23098 (output_init_element): Likewise.
23099 (output_pending_init_elements): Pass origtype from init_node to
23100 output_init_element.
23101 (process_init_element): Pass origtype from c_expr to
23102 output_init_element.
23103 (c_finish_return): Add origtype parameter. Change all callers.
23104 * c-common.c (sync_resolve_size): Change params to VEC *. Change
23106 (sync_resolve_params): Likewise.
23107 (sync_resolve_return): Change params to first_param. Change caller.
23108 (resolve_overloaded_builtins): Change params to VEC *. Change
23109 callers. Save first parameter around call to build_function_call_vec.
23110 * c-decl.c (finish_decl): Add origtype parameter. Change all
23111 callers. Call build_function_call_vec rather than
23112 build_function_call for cleanup.
23113 * c-tree.h: Update declarations.
23114 * c-common.h: Update declarations.
23115 * stub-objc.c (objc_rewrite_function_call): Change parameter from
23116 params to first_param.
23117 * target.h (struct gcc_target): Change resolve_overloaded_builtin
23118 params parameter from tree to void *.
23119 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23120 Change arglist parameter to have type void *, and to be a pointer
23122 * config/rs6000/rs6000-protos.h
23123 (altivec_resolve_overloaded_builtin): Update declaration.
23124 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23125 fnargs parameter to have type void *, and to be a pointer to a
23126 VEC. Call build_function_call_vec instead of
23127 build_function_call.
23128 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23130 2009-04-20 Joey Ye <joey.ye@intel.com>
23131 Xuepeng Guo <xuepeng.guo@intel.com>
23132 H.J. Lu <hongjiu.lu@intel.com>
23134 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23136 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23137 (IX86_LEA_PRIORITY): Likewise.
23138 (distance_non_agu_define): New function.
23139 (distance_agu_use): Likewise.
23140 (ix86_lea_for_add_ok): Likewise.
23141 (ix86_dep_by_shift_count): Likewise.
23143 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23144 should split for LEA.
23146 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23148 (ix86_dep_by_shift_count): Likewise.
23150 2009-04-20 Richard Guenther <rguenther@suse.de>
23152 * expr.c (handled_component_p): Move ...
23153 * tree.h (handled_component_p): ... here.
23154 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23155 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23156 and REALPART_EXPR to be in one group.
23158 2009-04-20 Richard Guenther <rguenther@suse.de>
23160 * basic-block.h (get_all_dominated_blocks): Declare.
23161 * dominance.c (get_all_dominated_blocks): New function.
23162 * tree-cfg.c (get_all_dominated_blocks): Remove.
23163 (remove_edge_and_dominated_blocks): Adjust.
23164 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23165 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
23166 instead of recursing.
23168 2009-04-20 Doug Kwan <dougkwan@google.com>
23170 * cgraph.h (cgraph_node_ptr): New type for vector functions.
23171 (struct cgraph_node_set_def): New type.
23172 (cgraph_node_set) New type. Also declare vector functions.
23173 (struct cgraph_node_set_element_def): New type.
23174 (cgraph_node_set_element): Ditto.
23175 (cgraph_node_set_iterator): New iterator type.
23176 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23177 cgraph_node_set_remove, dump_cgraph_node_set,
23178 debug_cgraph_node_set): New prototypes.
23179 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23180 cgraph_node_set_size): New inlines.
23181 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23182 including cgraph.h.
23183 (struct ipa_opt_pass): Add struct cgraph_node_set_def
23184 argument to function 'write_summary'.
23185 * ipa.c: Include ggc.h.
23186 (hash_cgraph_node_set_element,
23187 eq_cgraph_node_set_element, cgraph_node_set_new,
23188 cgraph_node_set_add, cgraph_node_set_remove,
23189 cgraph_node_set_find, dump_cgraph_node_set,
23190 debug_cgraph_node_set): New functions.
23191 * Makefile.in (ipa.o): Add dependency on GGC_H.
23193 2009-04-20 Ira Rosen <irar@il.ibm.com>
23195 PR tree-optimization/39675
23196 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23197 check of the return code of vect_schedule_slp. Check that
23198 stmt_vec_info still exists for the statement, before checking its
23199 vectorization type.
23201 2009-04-20 Michael Matz <matz@suse.de>
23203 * Makefile.in (generated_files): Take out $(simple_generated_c).
23205 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
23207 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
23208 (UINTPTR_TYPE): Likewise.
23210 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23213 * c-typeck.c (digest_init): Check for initializing an array with a
23216 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23219 * c-semantics.c (pop_stmt_list): Propagate
23220 STATEMENT_LIST_HAS_LABEL to parent statement list.
23222 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
23224 * config/mips/mips.h (mips_tune_attr): New macro.
23225 * config/mips/mips.md (cpu): Use it.
23227 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23230 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23233 2009-04-19 Diego Novillo <dnovillo@google.com>
23235 * toplev.c (compile_file): Move call to coverage_finish ...
23236 * cgraphunit.c (ipa_passes): ... here.
23237 Call cgraph_process_new_functions.
23238 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23239 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23241 2009-04-19 Jan Hubicka <jh@suse.cz>
23243 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23245 (dump_cgraph_node): Dump can throw external flag.
23246 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23248 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
23252 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23253 * common.opt (Wlogical-op): Move from here...
23254 * c.opt (Wlogical-op): ... to here.
23255 * c-typeck.c (parser_build_binary_op): Update call to
23256 warn_logical_operator.
23257 * c-opts.c (c_common_post_options): Enable warn_logical_op with
23259 * c-common.c (warn_logical_op): Update.
23260 * c-common.h (warn_logical_op): Update declaration.
23262 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
23264 * tree.c (protected_set_expr_location): Fix formatting.
23266 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23269 * c-typeck.c (readonly_warning): new.
23270 (build_unary_op, build_modify_expr): Use readonly_warning for
23271 storing into something readonly but not const-qualified.
23273 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23276 * c-typeck.c (build_unary_op): Check for taking address of
23277 expression of type void.
23279 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23282 * c-typeck.c (build_function_call): Check for calling a function
23283 with qualified void return types. Call require_complete_type when
23286 2009-04-18 Jan Hubicka <jh@suse.cz>
23288 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23290 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23291 can_throw_external flag.
23292 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23293 * ipa-pure-const.c (ignore_edge): New function.
23294 (propagate): Compute order for NOTHROW computation; set NOTHROWs
23295 only over can_throw_external edges.
23296 (local_pure_const): Add nothrow flag.
23297 * ipa-utils.c (searchc): Add ignore_edge callback.
23298 (ipa_utils_reduced_inorder): Add ignore_edge callback.
23299 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23300 (set_nothrow_function_flags): Update cgraph.
23301 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23303 2009-04-18 Richard Guenther <rguenther@suse.de>
23305 PR middle-end/39804
23306 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23307 (fold_stmt): ... this and ...
23308 (fold_stmt_inplace): ... this.
23309 (fold_stmt_1): Fold references in calls and asms.
23310 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23312 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23314 * tree-vrp.c (ssa_name_nonzero_p): Remove.
23315 * tree.h: Remove the prototype for ssa_name_nonzero_p.
23317 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23319 * tree.c (function_args_count): Remove.
23320 * tree.h: Remove the prototype for function_args_count.
23322 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23324 * tree-iterator.c (expr_only): Remove.
23325 * tree.h: Remove the prototype for expr_only.
23327 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23329 * reginfo.c (cannot_change_mode_set_regs): Remove.
23330 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23332 2009-04-08 Anatoly Sokolov <aesok@post.ru>
23334 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23335 whether operands 0 and 1 overlaps.
23337 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
23339 PR middle-end/36902
23340 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23341 pointer. Use warning_at instead of warning.
23342 (search_for_addr_array): Likewise.
23343 (check_array_bounds): Likewise.
23344 (check_all_array_refs): Check that the incoming edge is not in the
23345 list of edges to be removed.
23346 (check_all_array_refs): Avoid the temporal pointer.
23347 (vrp_visit_cond_stmt): Fix typo.
23348 (simplify_switch_using_ranges): Handle the case where the switch
23349 index is an integer constant.
23351 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
23353 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23355 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23357 * doc/extend.texi, doc/invoke.texi: Fix typos.
23359 2009-04-17 Cary Coutant <ccoutant@google.com>
23361 * tree-flow-inline.h (get_lineno): Fix inverted test.
23363 2009-04-17 Diego Novillo <dnovillo@google.com>
23365 * tree-ssa-pre.c (create_expression_by_pieces): Remove
23366 assertion for AVAIL_OUT.
23368 2009-04-17 Mike Frysinger <vapier@gentoo.org>
23371 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23372 * config/sh/linux-atomic.asm: Likewise.
23374 2009-04-17 Diego Novillo <dnovillo@google.com>
23376 * except.c (debug_eh_tree): New.
23377 (struct eh_region, struct eh_status): Move ...
23378 * except.h: ... here.
23379 (add_type_for_runtime): Declare extern.
23380 (lookup_type_for_runtime): Likewise.
23381 (debug_eh_tree): Declare.
23382 * Makefile.in (GTFILES): List except.h before except.c
23384 2009-04-17 Diego Novillo <dnovillo@google.com>
23386 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23387 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23388 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23389 (find_vars_r): ... here.
23390 * tree-flow.h (find_referenced_vars_in): Declare.
23391 * tree-ssa-pre.c (create_expression_by_pieces): Assert
23392 that AVAIL_OUT exists for BLOCK.
23393 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23394 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23395 (tree-parloops.o): Likewise.
23397 2009-04-17 Simon Baldwin <simonb@google.com>
23399 * toplev.c (default_tree_printer): Add handling for %E format.
23401 2009-04-17 Diego Novillo <dnovillo@google.com>
23403 * tree-pretty-print.c (dump_generic_node): Add break after
23404 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
23405 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
23406 FUNCTION_TYPE together. Call print_struct_decl when printing
23407 structures and TDF_SLIM is not given.
23408 (print_struct_decl): Fix logic for detecting recursion.
23410 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
23413 * gcc.c (create_at_file): New.
23414 (compile_input_file_p): New.
23415 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23416 * main.c (main): Update call to toplev_main.
23417 * toplev.c (toplev_main): Change signature. Call expandargv.
23418 * toplev.h (toplev_main): Change signature.
23420 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23422 * dwarf2out.c (field_byte_offset): Use the type size as the field size
23423 if the latter is not constant.
23425 2009-04-17 David Edelsohn <edelsohn@gnu.org>
23427 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23429 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23431 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23432 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23434 2009-04-17 Richard Guenther <rguenther@suse.de>
23436 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23437 Handle component references view-converting an invariant address.
23439 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
23441 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23442 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23443 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23444 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23445 Use @deftypevr rather than @deftypevar.
23447 2009-04-17 Richard Guenther <rguenther@suse.de>
23449 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23450 (get_prop_source_stmt): Likewise.
23451 (can_propagate_from): Likewise.
23453 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
23455 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23456 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23457 (--with-multilib-list): Add default value.
23458 * configure: Regenerate.
23459 * Makefile.in (TM_ENDIAN_CONFIG): Define.
23460 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23461 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23462 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23463 Don't add default cpu to multilib list unnecessarily, but do enable
23464 the relevant compiler option..
23465 Add support for --with-multilib-list=<blank> and
23466 --with-multilib-list=!<somelib> to supress unwanted multilibs.
23467 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23468 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23469 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23470 TM_MULTILIB_CONFIG.
23471 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23472 (MULTILIB_OSDIRNAMES): New variable.
23473 * config/sh/t-1e: Delete file.
23474 * config/sh/t-mlib-sh1: Delete file.
23475 * config/sh/t-mlib-sh2: Delete file.
23476 * config/sh/t-mlib-sh2a: Delete file.
23477 * config/sh/t-mlib-sh2a-nofpu: Delete file.
23478 * config/sh/t-mlib-sh2a-single: Delete file.
23479 * config/sh/t-mlib-sh2a-single-only: Delete file.
23480 * config/sh/t-mlib-sh2e: Delete file.
23481 * config/sh/t-mlib-sh3e: Delete file.
23482 * config/sh/t-mlib-sh4: Delete file.
23483 * config/sh/t-mlib-sh4-nofpu: Delete file.
23484 * config/sh/t-mlib-sh4-single: Delete file.
23485 * config/sh/t-mlib-sh4-single-only: Delete file.
23486 * config/sh/t-mlib-sh4a: Delete file.
23487 * config/sh/t-mlib-sh4a-nofpu: Delete file.
23488 * config/sh/t-mlib-sh4a-single: Delete file.
23489 * config/sh/t-mlib-sh4a-single-only: Delete file.
23490 * config/sh/t-mlib-sh4al: Delete file.
23491 * config/sh/t-mlib-sh5-32media: Delete file.
23492 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23493 * config/sh/t-mlib-sh5-64media: Delete file.
23494 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23495 * config/sh/t-mlib-sh5-compact: Delete file.
23496 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23497 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23498 * doc/install.texi (Options specification): Add
23499 --with-multilib-list and --with-endian.
23501 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
23503 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23505 (OBJS-common): Add plugin-version.o.
23506 (plugin-version.o): New.
23507 * gcc-plugin.h (plugin_gcc_version): New.
23508 (plugin_default_version_check): New.
23509 (plugin_init_func, plugin_init): Add version argument.
23510 * plugin-version.c: New.
23511 * plugin.c (str_plugin_gcc_version_name): New.
23512 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23513 pass it to the init function.
23514 (plugin_default_version_check): New.
23516 2009-04-17 Richard Guenther <rguenther@suse.de>
23518 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23519 for decl-vs-decl disambiguation.
23521 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
23523 * config/s390/s390.h (s390_tune_attr): New macro definition.
23524 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23526 2009-04-17 Richard Guenther <rguenther@suse.de>
23528 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23529 (fold_stmt_r): Likewise.
23530 (maybe_fold_reference): New function.
23531 (fold_gimple_assign): Handle cases fold_stmt_r did.
23532 (fold_stmt): Do not use fold_stmt_r.
23533 (fold_stmt_inplace): Likewise.
23535 2009-04-17 Richard Guenther <rguenther@suse.de>
23537 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23538 (record_equivalences_from_stmt): Remove useless checks and
23540 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23541 the type is already suitable.
23543 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
23545 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23547 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
23549 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23550 (CMPtype): Define as __gcc_CMPtype.
23552 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
23554 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23555 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23557 2009-04-17 Richard Guenther <rguenther@suse.de>
23559 PR tree-optimization/39746
23560 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23561 special-casing for builtins and static variable use/def.
23562 (call_may_clobber_ref_p_1): Likewise.
23564 2009-04-16 Ian Lance Taylor <iant@google.com>
23566 * df.h: Include "timevar.h".
23567 (struct df_problem): Change tv_id field to timevar_id_t.
23568 * tree-pass.h: Include "timevar.h".
23569 (struct opt_pass): Change tv_id field to timevar_id_t.
23570 * timevar.h (timevar_id_t): Define TV_NONE.
23571 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23572 TV_NONE rather than tv_id != 0.
23573 (execute_one_pass): Likewise.
23574 * Makefile.in (DF_H): Add $(TIMEVAR_H).
23575 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
23576 dependencies to $(TREE_PASS_H).
23577 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23579 (pass_branch_target_load_optimize2): Likewise.
23580 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23581 (pass_outof_cfg_layout_mode): Likewise.
23582 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23583 (pass_rebuild_cgraph_edges): Likewise.
23584 (pass_remove_cgraph_callee_edges): Likewise.
23585 * df-core.c (pass_df_initialize_opt): Likewise.
23586 (pass_df_initialize_no_opt): Likewise.
23587 (pass_df_finish): Likewise.
23588 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23589 * except.c (pass_set_nothrow_function_flags): Likewise.
23590 (pass_convert_to_eh_region_ranges): Likewise.
23591 * final.c (pass_compute_alignments): Likewise.
23592 * function.c (pass_instantiate_virtual_regs): Likewise.
23593 (pass_init_function): Likewise.
23594 (pass_leaf_regs): Likewise.
23595 (pass_match_asm_constraints): Likewise.
23596 * gimple-low.c (pass_lower_cf): Likewise.
23597 (pass_mark_used_blocks): Likewise.
23598 * init-regs.c (pass_initialize_regs): Likewise.
23599 * integrate.c (pass_initial_value_sets): Likewise.
23600 * ira.c (pass_ira): Likewise.
23601 * jump.c (pass_cleanup_barriers): Likewise.
23602 * omp-low.c (pass_expand_omp): Likewise.
23603 (pass_lower_omp): Likewise.
23604 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23605 * recog.c (pass_split_all_insns): Likewise.
23606 (pass_split_after_reload): Likewise.
23607 (pass_split_before_regstack): Likewise.
23608 (pass_split_before_sched2): Likewise.
23609 (pass_split_for_shorten_branches): Likewise.
23610 * reginfo.c (pass_reginfo_init): Likewise.
23611 (pass_subregs_of_mode_init): Likewise.
23612 (pass_subregs_of_mode_finish): Likewise.
23613 * passes.c (pass_postreload): Likewise.
23614 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23615 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23616 (pass_warn_function_return): Likewise.
23617 (pass_warn_function_noreturn): Likewise.
23618 * tree-complex.c (pass_lower_complex): Likewise.
23619 (pass_lower_complex_O0): Likewise.
23620 * tree-if-conv.c (pass_if_conversion): Likewise.
23621 * tree-into-ssa.c (pass_build_ssa): Likewise.
23622 * tree-mudflap.c (pass_mudflap_1): Likewise.
23623 (pass_mudflap_2): Likewise.
23624 * tree-nomudflap.c (pass_mudflap_1): Likewise.
23625 (pass_mudflap_2): Likewise.
23626 * tree-nrv.c (pass_return_slot): Likewise.
23627 * tree-object-size.c (pass_object_sizes): Likewise.
23628 * tree-optimize.c (pass_all_optimizations): Likewise.
23629 (pass_early_local_passes): Likewise.
23630 (pass_all_early_optimizations): Likewise.
23631 (pass_cleanup_cfg): Likewise.
23632 (pass_cleanup_cfg_post_optimizing): Likewise.
23633 (pass_free_datastructures): Likewise.
23634 (pass_free_cfg_annotations): Likewise.
23635 (pass_fixup_cfg): Likewise.
23636 (pass_init_datastructures): Likewise.
23637 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23638 (pass_late_warn_uninitialized): Likewise.
23639 (pass_update_address_taken): Likewise.
23640 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23641 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23642 (pass_cse_sincos): Likewise.
23643 (pass_convert_to_rsqrt): Likewise.
23644 * tree-ssa-structalias.c (pass_build_alias): Likewise.
23645 * tree-stdarg.c (pass_stdarg): Likewise.
23646 * tree-tailcall.c (pass_tail_recursion): Likewise.
23647 (pass_tail_calls): Likewise.
23648 * tree-vect-generic.c (pass_lower_vector): Likewise.
23649 (pass_lower_vector_ssa): Likewise.
23650 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23652 2009-04-16 Joseph Myers <joseph@codesourcery.com>
23654 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23656 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23658 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23659 logical and signext.
23661 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
23664 * config/sh/predicates.md (arith_operand): Check if the operand
23665 of TRUNCATE is a REG.
23667 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23669 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23670 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23672 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23674 * tree-iterator.c (tsi_split_statement_list_after,
23675 tsi_split_statement_list_before): Remove.
23676 * tree-iterator.h: Remove the prototypes for
23677 tsi_split_statement_list_after and tsi_split_statement_list_before.
23679 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23681 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23682 * tree-ssa-propagate.h: Remove the prototype for
23683 stmt_makes_single_load.
23685 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23687 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23688 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23690 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23692 * tree-iterator.c (EXPR_LAST_BODY): Remove.
23694 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23696 * except.c (eh_region_outer_p): Remove.
23697 * except.h: Remove the prototype for eh_region_outer_p.
23699 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23701 * function.c (current_function_assembler_name): Remove.
23702 * function.h: Remove the prototype for
23703 current_function_assembler_name.
23705 2009-04-16 Ian Lance Taylor <iant@google.com>
23707 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
23708 (add_reg_note): Call alloc_reg_note.
23709 * rtl.h (alloc_reg_note): Declare.
23710 * combine.c (try_combine): Use alloc_reg_note.
23711 (recog_for_combine, move_deaths): Likewise.
23712 (distribute_notes): Use alloc_reg_note and add_reg_note.
23713 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23714 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23715 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23717 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
23719 PR rtl-optimization/39762
23720 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23721 ira_may_move_out_cost): Add comments about way of their usage.
23722 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
23724 * ira-conflicts.c (process_regs_for_copy): Use function
23725 ira_get_register_move_cost instead of global
23726 ira_register_move_cost.
23728 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23729 color_pass, move_spill_restore, update_curr_costs): Ditto.
23731 * ira-lives.c (process_single_reg_class_operands): Ditto.
23733 * ira-emit.c (emit_move_list): Ditto.
23735 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23736 (record_reg_classes): Ditto. Use functions
23737 ira_get_register_move_cost and ira_get_may_move_cost instead of
23738 global vars ira_register_move_cost, ira_may_move_out_cost and
23739 ira_may_move_in_cost.
23740 (record_address_regs): Don't call ira_init_register_move_cost.
23741 Use function ira_get_may_move_cost instead of global
23742 ira_may_move_in_cost.
23743 (process_bb_node_for_hard_reg_moves): Use function
23744 ira_get_register_move_cost instead of global ira_register_move_cost.
23745 (ira_costs): Don't call ira_init_register_move_cost.
23747 2009-04-16 Richard Guenther <rguenther@suse.de>
23749 * tree-cfg.c (verify_gimple_assign_binary):
23750 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23751 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23752 (create_general_new_stmt): Note that this function is broken.
23754 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
23756 * common.opt (fhelp): Add Var(help_flag).
23757 * gcc-plugin.h (plugin_info): Add help.
23758 * plugin.c (plugin_name_args): Add help.
23759 (register_plugin_info): Set plugin->help.
23760 (print_help_one_plugin): New.
23761 (print_plugins_help): New.
23762 * plugin.h (print_plugins_help): New.
23763 * toplev.c (toplev_main): Call print_plugins_help if needed.
23765 2009-04-16 Richard Guenther <rguenther@suse.de>
23767 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23768 (gimple_ior_addresses_taken_1): New function.
23769 (gimple_ior_addresses_taken): Likewise.
23770 * gimple.h (struct gimple_statement_with_ops_base): Remove
23771 addresses_taken member.
23772 (gimple_ior_addresses_taken): Declare.
23773 (gimple_addresses_taken, gimple_addresses_taken_ptr,
23774 gimple_set_addresses_taken): Remove.
23775 * ipa-reference.c (mark_address): New function.
23776 (scan_stmt_for_static_refs): Use it for marking addresses taken.
23777 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23778 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
23779 (gimple_add_to_addresses_taken): Remove.
23780 (get_tmr_operands): Call mark_address_taken.
23781 (get_asm_expr_operands): Likewise.
23782 (get_expr_operands): Likewise.
23783 (build_ssa_operands): Do not clear the addresses_taken bitmap.
23784 (free_stmt_operands): Do not free it.
23785 * tree-ssa.c (delete_tree_ssa): Likewise.
23786 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23788 2009-04-16 Richard Guenther <rguenther@suse.de>
23790 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23791 (walk_stmt_load_store_ops): Likewise.
23792 * gimple.c (get_base_loadstore): New function.
23793 (walk_stmt_load_store_addr_ops): Likewise.
23794 (walk_stmt_load_store_ops): Likewise.
23795 * ipa-pure-const.c (check_op): Simplify.
23796 (check_load, check_store): New functions.
23797 (check_stmt): Use walk_stmt_load_store_ops.
23798 * ipa-reference.c (mark_load): Adjust signature.
23799 (mark_store): Likewise.
23800 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23802 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
23804 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23805 (plugin_info): New.
23806 * opts.c (common_handle_option): Don't call print_version.
23807 * plugin.c (plugin_name_args): Add version.
23808 (register_plugin_info): New.
23809 (register_callback): Handle PLUGIN_INFO.
23810 (try_init_one_plugin): New.
23811 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23813 (finalize_one_plugin): New.
23814 (finalize_plugins): New.
23815 (print_one_plugin): New.
23816 (print_plugins_versions): New.
23817 * plugin.h (print_plugins_versions): New.
23818 (finalize_plugins): New.
23819 * toplev.c (compile_file): Don't call initialize_plugins.
23820 (print_version): Call print_plugins_versions.
23821 (toplev_main): Call initialize_plugins. Print version if needed.
23822 Call finalize_plugins.
23824 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
23826 * common.opt (fversion): New.
23827 * gcc.c (print_version): New.
23828 (process_command): Don't print the version. Just set print_version.
23829 (main): Print version. Call subprocesses if print_version and
23830 verbose_flag are set.
23831 * opts.c (common_handle_option): Handle OPT_fversion.
23833 2009-04-16 Richard Guenther <rguenther@suse.de>
23834 Ira Rosen <irar@il.ibm.com>
23836 PR tree-optimization/39698
23837 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23838 type of the reduction variable. Only generate the def if
23841 * omp-low.c (expand_omp_for_generic): When converting to a pointer
23842 make sure to first convert to an integer of the same precision.
23843 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23844 the type of the evolution correctly in computing the new
23845 induction variable base.
23847 2009-04-16 Richard Guenther <rguenther@suse.de>
23849 PR middle-end/39625
23850 * tree-cfg.c (make_blocks): Split statements with to-be
23851 abnormal SSA names on the lhs.
23853 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
23855 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23856 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23857 * c-typeck.c (really_start_incremental_init): Likewise.
23858 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23859 (TARGET_INITIALIZER): Remove it.
23860 * target.h (struct target): Remove vector_opaque_p.
23861 * tree.c (build_opaque_vector_type): New.
23862 * tree.h (TYPE_VECTOR_OPAQUE): New.
23863 (build_opaque_vector_type): Declare.
23864 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23865 * config/rs6000/rs6000.c (build_opaque_vector_type,
23866 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23867 (rs6000_init_builtins): Use build_opaque_vector_type for
23868 opaque_V4SI_type_node.
23870 2009-04-15 Catherine Moore <clm@codesourcery.com>
23872 * debug.h (set_name): Declare.
23873 * dwarf2out.c (dwarf2out_set_name): Declare.
23874 (dwarf2_debug_hooks): Add set_name.
23875 (find_AT_string): New.
23876 (add_AT_string): Call find_AT_string.
23877 (dwarf2out_set_name): New.
23878 * cp/decl.c (grokdeclarator): Call set_name.
23879 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23880 * debug.c (do_nothing_debug_hooks): Likewise.
23881 * dbxout.c (dbx_debug_hooks): Likewise.
23882 * sdbout.c (sdb_debug_hooks): Likewise.
23884 2009-04-15 Michael Eager <eager@eagercon.com>
23886 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23887 reg for single-precision FPU.
23888 * config/rs6000/rs6000.md (movsi_internal1): Only for
23889 !TARGET_SINGLE_FPU.
23890 (movsi_internal1_single): New. Add pattern to move SI values to/from
23891 single-precision FP regs.
23893 2009-04-15 Richard Guenther <rguenther@suse.de>
23895 * omp-low.c (lower_rec_input_clauses): Build correct address
23897 (expand_omp_for_generic): Fix multiplication type.
23898 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
23899 (generate_memset_zero): Fix types.
23900 * tree-profile.c (prepare_instrumented_value): Correctly
23903 2009-04-15 Ian Lance Taylor <iant@google.com>
23905 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
23906 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23907 for -Wall and for -Wc++-compat.
23908 (c_common_post_options): For C++, set warn_enum_compare if not
23910 * c-tree.h (struct c_expr): Add field original_type.
23911 (build_external_ref): Update declaration.
23912 * c-parser.c (c_parser_braced_init): Set original_type.
23913 (c_parser_initelt): Likewise.
23914 (c_parser_expr_no_commas): Likewise.
23915 (c_parser_conditional_expression): Likewise.
23916 (c_parser_cast_expression): Likewise.
23917 (c_parser_unary_expression): Likewise. Pull setting of
23918 original_code to top of function.
23919 (c_parser_sizeof_expression): Set original_type.
23920 (c_parser_alignof_expression): Likewise.
23921 (c_parser_postfix_expression): Likewise. Pull setting of
23922 original_code to top of function.
23923 (c_parser_postfix_expression_after_paren_type): Set original_type.
23924 (c_parser_postfix_expression_after_primary): Likewise.
23925 (c_parser_expression): Likewise.
23926 * c-typeck.c (build_external_ref): Add type parameter. Change all
23928 (c_expr_sizeof_expr): Set original_type field.
23929 (parser_build_unary_op): Likewise.
23930 (parser_build_binary_op): Likewise. Optionally warn about
23931 comparisons of enums of different types.
23932 (digest_init): Set original_type field.
23933 (really_start_incremental_init): Likewise.
23934 (push_init_level, pop_init_level): Likewise.
23935 * doc/invoke.texi (Warning Options): -Wenum-compare now
23938 2009-04-15 Richard Guenther <rguenther@suse.de>
23940 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23941 out a necessary conversion.
23942 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23943 names we didn't value number.
23944 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23946 2009-04-15 Richard Guenther <rguenther@suse.de>
23948 PR tree-optimization/39764
23949 * tree-ssa-ccp.c (get_value): Canonicalize value with
23950 canonicalize_float_value.
23952 2009-04-15 Jan Hubicka <jh@suse.cz>
23954 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23955 Wrong version of patch.
23957 2009-04-15 Jan Hubicka <jh@suse.cz>
23959 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23961 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
23963 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23964 our distinct integral and vector types.
23966 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
23968 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23969 * init.c (build_vtbl_address): Remove call to assemble_external.
23971 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
23973 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23974 output for other floating point modes.
23976 2009-04-14 Diego Novillo <dnovillo@google.com>
23978 * diagnostic.c (diagnostic_report_diagnostic): Do not
23979 warn about loaded plugins for DK_ERROR and DK_WARNING.
23980 * c-decl.c (declspecs_add_type): Move call to
23981 invoke_plugin_callbacks ...
23982 * c-parser.c (c_parser_declspecs): ... here.
23983 * plugin.c (dump_active_plugins): Tidy output.
23985 2009-04-14 Diego Novillo <dnovillo@google.com>
23986 Le-Chun Wu <lcwu@google.com>
23988 * configure.ac: Add --enable-plugin support.
23989 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23990 * Makefile.in (PLUGIN_H): Define.
23991 Export ENABLE_PLUGIN and GMPINC to site.exp.
23992 Add PLUGINLIBS to link command.
23993 Add/modify dependencies for plugin.o and files including plugin.h.
23995 * config.in: Regenerate.
23997 * opts.c (common_handle_option): Handle OPT_fplugin_ and
24000 2009-04-14 Le-Chun Wu <lcwu@google.com>
24002 * tree-pass.h (register_one_dump_file): Add a prototype for
24003 register_one_dump_file.
24004 * toplev.c (compile_file): Call initialize_plugins.
24005 (do_compile): Call invoke_plugin_callbacks.
24006 (toplev_main): Call invoke_plugin_callbacks.
24007 * common.opt: Add -fplugin= and -fplugin-arg-.
24008 * gcc-plugin.h: New public header file for plugins to include.
24009 * plugin.c: New source file.
24010 * plugin.h: New internal header file.
24011 * passes.c (register_one_dump_file): Make it external.
24013 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
24015 2009-04-14 Diego Novillo <dnovillo@google.com>
24017 * doc/plugins.texi: New.
24018 * doc/gccint.texi: Add reference to Plugins chapter.
24019 * doc/invoke.texi: Document -fplugin and -fplugin-arg
24020 * diagnostic.c (diagnostic_report_diagnostic): Warn about
24021 loaded plugins, if any.
24022 * timevar.def (TV_PLUGIN_INIT): Define.
24023 (TV_PLUGIN_RUN): Define.
24024 * plugin.c: Include timevar.h
24025 (plugins_active_p): New.
24026 (dump_active_plugins): New.
24027 (debug_active_plugins): New.
24029 2009-04-14 Joseph Myers <joseph@codesourcery.com>
24031 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
24033 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
24035 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
24037 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
24038 the same as a minus without a shift.
24040 2009-04-14 Nick Clifton <nickc@redhat.com>
24042 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
24043 comparisons with small integers will always produce a short
24046 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
24049 2008-12-19 Diego Novillo <dnovillo@google.com>
24051 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
24053 2009-04-14 Richard Guenther <rguenther@suse.de>
24055 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
24057 (verify_gimple_assign_binary): Likewise. Handle shifts and
24059 (verify_gimple_phi): Print the mismatched argument position.
24060 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24062 (vect_update_init_of_dr): Likewise.
24063 * matrix-reorg.c (transform_access_sites): Do what the
24065 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
24067 2009-04-13 Michael Eager <eager@eagercon.com>
24069 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
24070 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
24071 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
24072 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
24073 remove duplicate config
24075 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
24077 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
24078 file_name:line_number type locator of the call site.
24080 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
24082 * genautomata.c: Put blank after comma.
24083 (automaton_decls): New.
24084 (struct unit_usage): Add comments to member next.
24085 (store_alt_unit_usage): Keep the list ordered.
24086 (unit_present_on_list_p, equal_alternatives_p): New.
24087 (check_regexp_units_distribution): Check units distribution
24088 correctness correctly.
24089 (main): Don't write automata if error is found. Return correct
24092 * config/m68k/cf.md (cfv4_ds): Remove.
24093 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
24094 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
24096 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
24097 power4-load-ext, power4-store, power4-store-update,
24098 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
24099 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
24100 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
24101 power4-sqrt, power4-isync): Modify reservation to make correct
24102 unit distribution to automata.
24104 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
24105 power5-store-update, power5-two, power5-three, power5-lmul,
24106 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
24108 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
24110 * except.c (pass_set_nothrow_function_flags): Set name and add
24112 (set_nothrow_function_flags): Mention in the dump file when
24113 changing a function to nothrow.
24115 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
24118 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24119 instead of unsigned long.
24121 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24123 * config/arm/arm.c (return_used_this_function): Remove.
24124 (arm_output_function_prologue): Remove use of
24125 return_used_this_function.
24126 (output_return_instruction): Replace use of
24127 return_used_this_function
24128 by cfun->machine->return_used_this_function.
24129 (arm_output_epilogue): Likewise.
24130 (arm_output_function_epilogue): Likewise.
24131 (thumb_unexpanded_epilogue): Likewise.
24132 * config/arm/arm.h (struct machine_function):
24133 New member return_used_this_function.
24135 2009-04-12 Mark Mitchell <mark@codesourcery.com>
24137 * doc/install.texi: Correct description of default directory for
24138 --with-gxx-include-dir.
24140 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
24142 * fold-const.c (build_range_check): Properly deal with enumeral and
24143 boolean base types.
24145 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
24147 * doc/invoke.texi (max_gcse_passes): Remove documentation.
24148 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24149 * params.h (MAX_GCSE_PASSES): Remove.
24150 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24151 in sequence. Remove ability to run multiple passes.
24152 (bypass_jumps): Report run as third CPROP pass.
24154 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
24156 PR middle-end/39651
24157 * except.c (can_throw_external): Look at each insn in a SEQUENCE
24158 when deciding whether the whole SEQUENCE can throw.
24160 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
24163 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24164 offseted label references.
24166 2009-04-11 Jan Hubicka <jh@suse.cz>
24168 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24170 2009-04-11 Richard Guenther <rguenther@suse.de>
24172 PR middle-end/39732
24173 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24174 return variables as TREE_ADDRESSABLE.
24176 2009-04-11 Richard Guenther <rguenther@suse.de>
24178 PR tree-optimization/39713
24179 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24180 reference trees have SSA_NAME operands.
24182 2009-04-11 Richard Guenther <rguenther@suse.de>
24185 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24186 address expressions.
24188 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
24190 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
24191 match changes in Cygwin 1.7
24192 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24193 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
24195 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
24197 PR tree-optimization/39701
24198 * doc/invoke.texi (Optimization Options): Document change in
24199 meaning and initialization of -fdelete-null-pointer-checks.
24201 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24203 PR middle-end/39701
24204 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24206 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24209 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24211 2009-04-10 Chao-ying Fu <fu@mips.com>
24213 * doc/tm.texi (Instruction Output): Document
24214 TARGET_ASM_FINAL_POSTSCAN_INSN.
24215 * target.h (final_postscan_insn): New field in asm_out.
24216 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24217 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24218 * final.c (final_scan_insn): Call
24219 targetm.asm_out.final_postscan_insn after outputting
24220 an asm macro and a normal instruction.
24222 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24223 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24224 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24225 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24226 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24228 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
24230 PR middle-end/39701
24231 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24232 variables as non-NULL even with -fdelete-null-pointer-checks.
24234 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24236 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24238 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
24241 * config/i386/i386.c (classify_argument): Handle SCmode with
24242 (bit_offset % 64) != 0.
24244 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
24246 * doc/invoke.texi (Optimize Options): Add cross-reference to
24247 -Q --help=optimizers examples.
24249 2009-04-10 Ben Elliston <bje@au.ibm.com>
24252 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24253 regalign for the reg == fpr and TDmode case.
24255 2009-04-09 David Ayers <ayers@fsfe.org>
24258 * objc/objc-act.c (warn_with_method): Remove helper function.
24259 (check_duplicates): Call warning and inform directly.
24260 (really_start_method): Likewise.
24262 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
24264 * expmed.c (expand_divmod): Always use a comparison for a division
24265 by a large unsigned integer.
24267 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24268 for things others than variables or functions as nonzero.
24270 2009-04-09 Nick Clifton <nickc@redhat.com>
24272 * unwind-compat.c: Change copyright header to refer to version
24273 3 of the GNU General Public License with version 3.1 of the
24274 GCC Runtime Library Exception and to point readers at the
24275 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24276 * config/alpha/crtfastmath.c: Likewise.
24277 * config/alpha/linux-unwind.h: Likewise.
24278 * config/alpha/qrnnd.asm: Likewise.
24279 * config/alpha/vms-crt0-64.c: Likewise.
24280 * config/alpha/vms-crt0.c: Likewise.
24281 * config/alpha/vms-dwarf2.asm: Likewise.
24282 * config/alpha/vms-dwarf2eh.asm: Likewise.
24283 * config/alpha/vms-psxcrt0-64.c: Likewise.
24284 * config/alpha/vms-psxcrt0.c: Likewise.
24285 * config/alpha/vms_tramp.asm: Likewise.
24286 * config/arc/initfini.c: Likewise.
24287 * config/arc/lib1funcs.asm: Likewise.
24288 * config/arm/bpabi-v6m.S: Likewise.
24289 * config/arm/bpabi.S: Likewise.
24290 * config/arm/bpabi.c: Likewise.
24291 * config/arm/crti.asm: Likewise.
24292 * config/arm/crtn.asm: Likewise.
24293 * config/arm/ieee754-df.S: Likewise.
24294 * config/arm/ieee754-sf.S: Likewise.
24295 * config/arm/lib1funcs.asm: Likewise.
24296 * config/arm/libunwind.S: Likewise.
24297 * config/arm/linux-atomic.c: Likewise.
24298 * config/arm/mmintrin.h: Likewise.
24299 * config/arm/pr-support.c: Likewise.
24300 * config/arm/unaligned-funcs.c: Likewise.
24301 * config/arm/unwind-arm.c: Likewise.
24302 * config/arm/unwind-arm.h: Likewise.
24303 * config/avr/libgcc.S: Likewise.
24304 * config/bfin/crti.s: Likewise.
24305 * config/bfin/crtlibid.s: Likewise.
24306 * config/bfin/crtn.s: Likewise.
24307 * config/bfin/lib1funcs.asm: Likewise.
24308 * config/bfin/linux-unwind.h: Likewise.
24309 * config/cris/arit.c: Likewise.
24310 * config/cris/cris_abi_symbol.c: Likewise.
24311 * config/darwin-64.c: Likewise.
24312 * config/darwin-crt2.c: Likewise.
24313 * config/darwin-crt3.c: Likewise.
24314 * config/darwin.h: Likewise.
24315 * config/dbxelf.h: Likewise.
24316 * config/dfp-bit.c: Likewise.
24317 * config/dfp-bit.h: Likewise.
24318 * config/elfos.h: Likewise.
24319 * config/fixed-bit.c: Likewise.
24320 * config/fixed-bit.h: Likewise.
24321 * config/fp-bit.c: Likewise.
24322 * config/fp-bit.h: Likewise.
24323 * config/fr30/crti.asm: Likewise.
24324 * config/fr30/crtn.asm: Likewise.
24325 * config/fr30/lib1funcs.asm: Likewise.
24326 * config/freebsd-spec.h: Likewise.
24327 * config/frv/cmovd.c: Likewise.
24328 * config/frv/cmovh.c: Likewise.
24329 * config/frv/cmovw.c: Likewise.
24330 * config/frv/frvbegin.c: Likewise.
24331 * config/frv/frvend.c: Likewise.
24332 * config/frv/lib1funcs.asm: Likewise.
24333 * config/glibc-stdint.h: Likewise.
24334 * config/h8300/clzhi2.c: Likewise.
24335 * config/h8300/crti.asm: Likewise.
24336 * config/h8300/crtn.asm: Likewise.
24337 * config/h8300/ctzhi2.c: Likewise.
24338 * config/h8300/fixunssfsi.c: Likewise.
24339 * config/h8300/lib1funcs.asm: Likewise.
24340 * config/h8300/parityhi2.c: Likewise.
24341 * config/h8300/popcounthi2.c: Likewise.
24342 * config/i386/ammintrin.h: Likewise.
24343 * config/i386/att.h: Likewise.
24344 * config/i386/avxintrin.h: Likewise.
24345 * config/i386/biarch64.h: Likewise.
24346 * config/i386/bmmintrin.h: Likewise.
24347 * config/i386/cpuid.h: Likewise.
24348 * config/i386/cross-stdarg.h: Likewise.
24349 * config/i386/crtfastmath.c: Likewise.
24350 * config/i386/crtprec.c: Likewise.
24351 * config/i386/cygming-crtbegin.c: Likewise.
24352 * config/i386/cygming-crtend.c: Likewise.
24353 * config/i386/cygwin.asm: Likewise.
24354 * config/i386/emmintrin.h: Likewise.
24355 * config/i386/gmm_malloc.h: Likewise.
24356 * config/i386/gthr-win32.c: Likewise.
24357 * config/i386/i386.h: Likewise.
24358 * config/i386/immintrin.h: Likewise.
24359 * config/i386/linux-unwind.h: Likewise.
24360 * config/i386/linux64.h: Likewise.
24361 * config/i386/mm3dnow.h: Likewise.
24362 * config/i386/mmintrin-common.h: Likewise.
24363 * config/i386/mmintrin.h: Likewise.
24364 * config/i386/nmmintrin.h: Likewise.
24365 * config/i386/pmm_malloc.h: Likewise.
24366 * config/i386/pmmintrin.h: Likewise.
24367 * config/i386/smmintrin.h: Likewise.
24368 * config/i386/sol2-c1.asm: Likewise.
24369 * config/i386/sol2-ci.asm: Likewise.
24370 * config/i386/sol2-cn.asm: Likewise.
24371 * config/i386/sol2-gc1.asm: Likewise.
24372 * config/i386/tmmintrin.h: Likewise.
24373 * config/i386/unix.h: Likewise.
24374 * config/i386/w32-unwind.h: Likewise.
24375 * config/i386/wmmintrin.h: Likewise.
24376 * config/i386/x86-64.h: Likewise.
24377 * config/i386/x86intrin.h: Likewise.
24378 * config/i386/xmmintrin.h: Likewise.
24379 * config/ia64/crtbegin.asm: Likewise.
24380 * config/ia64/crtend.asm: Likewise.
24381 * config/ia64/crtfastmath.c: Likewise.
24382 * config/ia64/crti.asm: Likewise.
24383 * config/ia64/crtn.asm: Likewise.
24384 * config/ia64/fde-glibc.c: Likewise.
24385 * config/ia64/lib1funcs.asm: Likewise.
24386 * config/ia64/linux-unwind.h: Likewise.
24387 * config/ia64/quadlib.c: Likewise.
24388 * config/ia64/unwind-ia64.c: Likewise.
24389 * config/linux.h: Likewise.
24390 * config/m32c/m32c-lib1.S: Likewise.
24391 * config/m32c/m32c-lib2-trapv.c: Likewise.
24392 * config/m32c/m32c-lib2.c: Likewise.
24393 * config/m32r/initfini.c: Likewise.
24394 * config/m68hc11/larith.asm: Likewise.
24395 * config/m68hc11/m68hc11-crt0.S: Likewise.
24396 * config/m68k/cf.md: Likewise.
24397 * config/m68k/crti.s: Likewise.
24398 * config/m68k/crtn.s: Likewise.
24399 * config/m68k/lb1sf68.asm: Likewise.
24400 * config/m68k/linux-unwind.h: Likewise.
24401 * config/mcore/crti.asm: Likewise.
24402 * config/mcore/crtn.asm: Likewise.
24403 * config/mcore/lib1.asm: Likewise.
24404 * config/mips/linux-unwind.h: Likewise.
24405 * config/mips/loongson.h: Likewise.
24406 * config/mips/mips16.S: Likewise.
24407 * config/mmix/crti.asm: Likewise.
24408 * config/mmix/crtn.asm: Likewise.
24409 * config/pa/fptr.c: Likewise.
24410 * config/pa/hpux-unwind.h: Likewise.
24411 * config/pa/lib2funcs.asm: Likewise.
24412 * config/pa/linux-atomic.c: Likewise.
24413 * config/pa/linux-unwind.h: Likewise.
24414 * config/pa/milli64.S: Likewise.
24415 * config/pa/quadlib.c: Likewise.
24416 * config/pa/stublib.c: Likewise.
24417 * config/picochip/libgccExtras/adddi3.asm: Likewise.
24418 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24419 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24420 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24421 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24422 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24423 * config/picochip/libgccExtras/divmod15.asm: Likewise.
24424 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24425 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24426 * config/picochip/libgccExtras/longjmp.asm: Likewise.
24427 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24428 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24429 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24430 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24431 * config/picochip/libgccExtras/setjmp.asm: Likewise.
24432 * config/picochip/libgccExtras/subdi3.asm: Likewise.
24433 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24434 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24435 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24436 * config/rs6000/750cl.h: Likewise.
24437 * config/rs6000/altivec.h: Likewise.
24438 * config/rs6000/biarch64.h: Likewise.
24439 * config/rs6000/crtresfpr.asm: Likewise.
24440 * config/rs6000/crtresgpr.asm: Likewise.
24441 * config/rs6000/crtresxfpr.asm: Likewise.
24442 * config/rs6000/crtresxgpr.asm: Likewise.
24443 * config/rs6000/crtsavfpr.asm: Likewise.
24444 * config/rs6000/crtsavgpr.asm: Likewise.
24445 * config/rs6000/darwin-asm.h: Likewise.
24446 * config/rs6000/darwin-fallback.c: Likewise.
24447 * config/rs6000/darwin-fpsave.asm: Likewise.
24448 * config/rs6000/darwin-ldouble.c: Likewise.
24449 * config/rs6000/darwin-tramp.asm: Likewise.
24450 * config/rs6000/darwin-unwind.h: Likewise.
24451 * config/rs6000/darwin-vecsave.asm: Likewise.
24452 * config/rs6000/darwin-world.asm: Likewise.
24453 * config/rs6000/e500crtres32gpr.asm: Likewise.
24454 * config/rs6000/e500crtres64gpr.asm: Likewise.
24455 * config/rs6000/e500crtres64gprctr.asm: Likewise.
24456 * config/rs6000/e500crtrest32gpr.asm: Likewise.
24457 * config/rs6000/e500crtrest64gpr.asm: Likewise.
24458 * config/rs6000/e500crtresx32gpr.asm: Likewise.
24459 * config/rs6000/e500crtresx64gpr.asm: Likewise.
24460 * config/rs6000/e500crtsav32gpr.asm: Likewise.
24461 * config/rs6000/e500crtsav64gpr.asm: Likewise.
24462 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24463 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24464 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24465 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24466 * config/rs6000/eabi-ci.asm: Likewise.
24467 * config/rs6000/eabi-cn.asm: Likewise.
24468 * config/rs6000/eabi.asm: Likewise.
24469 * config/rs6000/linux-unwind.h: Likewise.
24470 * config/rs6000/linux64.h: Likewise.
24471 * config/rs6000/paired.h: Likewise.
24472 * config/rs6000/paired.md: Likewise.
24473 * config/rs6000/ppc64-fp.c: Likewise.
24474 * config/rs6000/ppu_intrinsics.h: Likewise.
24475 * config/rs6000/rs6000.h: Likewise.
24476 * config/rs6000/si2vmx.h: Likewise.
24477 * config/rs6000/sol-ci.asm: Likewise.
24478 * config/rs6000/sol-cn.asm: Likewise.
24479 * config/rs6000/spe.h: Likewise.
24480 * config/rs6000/spu2vmx.h: Likewise.
24481 * config/rs6000/sysv4.h: Likewise.
24482 * config/rs6000/tramp.asm: Likewise.
24483 * config/rs6000/vec_types.h: Likewise.
24484 * config/s390/linux-unwind.h: Likewise.
24485 * config/s390/tpf-unwind.h: Likewise.
24486 * config/score/crti.asm: Likewise.
24487 * config/score/crtn.asm: Likewise.
24488 * config/sh/crt1.asm: Likewise.
24489 * config/sh/crti.asm: Likewise.
24490 * config/sh/crtn.asm: Likewise.
24491 * config/sh/divtab-sh4-300.c: Likewise.
24492 * config/sh/divtab-sh4.c: Likewise.
24493 * config/sh/divtab.c: Likewise.
24494 * config/sh/lib1funcs-4-300.asm: Likewise.
24495 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24496 * config/sh/lib1funcs.asm: Likewise.
24497 * config/sh/lib1funcs.h: Likewise.
24498 * config/sh/linux-atomic.asm: Likewise.
24499 * config/sh/linux-unwind.h: Likewise.
24500 * config/sh/shmedia.h: Likewise.
24501 * config/sh/sshmedia.h: Likewise.
24502 * config/sh/ushmedia.h: Likewise.
24503 * config/sparc/crtfastmath.c: Likewise.
24504 * config/sparc/linux-unwind.h: Likewise.
24505 * config/sparc/sol2-c1.asm: Likewise.
24506 * config/sparc/sol2-ci.asm: Likewise.
24507 * config/sparc/sol2-cn.asm: Likewise.
24508 * config/spu/divmodti4.c: Likewise.
24509 * config/spu/divv2df3.c: Likewise.
24510 * config/spu/float_disf.c: Likewise.
24511 * config/spu/float_unsdidf.c: Likewise.
24512 * config/spu/float_unsdisf.c: Likewise.
24513 * config/spu/float_unssidf.c: Likewise.
24514 * config/spu/mfc_multi_tag_release.c: Likewise.
24515 * config/spu/mfc_multi_tag_reserve.c: Likewise.
24516 * config/spu/mfc_tag_release.c: Likewise.
24517 * config/spu/mfc_tag_reserve.c: Likewise.
24518 * config/spu/mfc_tag_table.c: Likewise.
24519 * config/spu/multi3.c: Likewise.
24520 * config/spu/spu_internals.h: Likewise.
24521 * config/spu/spu_intrinsics.h: Likewise.
24522 * config/spu/spu_mfcio.h: Likewise.
24523 * config/spu/vec_types.h: Likewise.
24524 * config/spu/vmx2spu.h: Likewise.
24525 * config/stormy16/stormy16-lib2.c: Likewise.
24526 * config/svr4.h: Likewise.
24527 * config/sync.c: Likewise.
24528 * config/v850/lib1funcs.asm: Likewise.
24529 * config/vxlib-tls.c: Likewise.
24530 * config/vxlib.c: Likewise.
24531 * config/vxworks-dummy.h: Likewise.
24532 * config/xtensa/crti.asm: Likewise.
24533 * config/xtensa/crtn.asm: Likewise.
24534 * config/xtensa/ieee754-df.S: Likewise.
24535 * config/xtensa/ieee754-sf.S: Likewise.
24536 * config/xtensa/lib1funcs.asm: Likewise.
24537 * config/xtensa/lib2funcs.S: Likewise.
24538 * config/xtensa/linux-unwind.h: Likewise.
24539 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24540 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24541 * coretypes.h: Likewise.
24542 * crtstuff.c: Likewise.
24543 * defaults.h: Likewise.
24544 * dwarf2.h: Likewise.
24545 * emutls.c: Likewise.
24546 * gbl-ctors.h: Likewise.
24547 * gcov-io.h: Likewise.
24548 * ginclude/float.h: Likewise.
24549 * ginclude/iso646.h: Likewise.
24550 * ginclude/stdarg.h: Likewise.
24551 * ginclude/stdbool.h: Likewise.
24552 * ginclude/stddef.h: Likewise.
24553 * ginclude/stdfix.h: Likewise.
24554 * ginclude/stdint-gcc.h: Likewise.
24555 * ginclude/tgmath.h: Likewise.
24556 * gthr-aix.h: Likewise.
24557 * gthr-dce.h: Likewise.
24558 * gthr-gnat.c: Likewise.
24559 * gthr-gnat.h: Likewise.
24560 * gthr-lynx.h: Likewise.
24561 * gthr-mipssde.h: Likewise.
24562 * gthr-nks.h: Likewise.
24563 * gthr-posix.c: Likewise.
24564 * gthr-posix.h: Likewise.
24565 * gthr-posix95.h: Likewise.
24566 * gthr-rtems.h: Likewise.
24567 * gthr-single.h: Likewise.
24568 * gthr-solaris.h: Likewise.
24569 * gthr-tpf.h: Likewise.
24570 * gthr-vxworks.h: Likewise.
24571 * gthr-win32.h: Likewise.
24572 * gthr.h: Likewise.
24573 * libgcc2.c: Likewise.
24574 * libgcc2.h: Likewise.
24575 * libgcov.c: Likewise.
24576 * tsystem.h: Likewise.
24577 * typeclass.h: Likewise.
24578 * unwind-c.c: Likewise.
24579 * unwind-compat.h: Likewise.
24580 * unwind-dw2-fde-compat.c: Likewise.
24581 * unwind-dw2-fde-darwin.c: Likewise.
24582 * unwind-dw2-fde-glibc.c: Likewise.
24583 * unwind-dw2-fde.c: Likewise.
24584 * unwind-dw2-fde.h: Likewise.
24585 * unwind-dw2.c: Likewise.
24586 * unwind-dw2.h: Likewise.
24587 * unwind-generic.h: Likewise.
24588 * unwind-pe.h: Likewise.
24589 * unwind-sjlj.c: Likewise.
24590 * unwind.inc: Likewise.
24591 * config/arm/neon-gen.ml: Change generated copyright header to
24592 refer to version 3 of the GNU General Public License with
24593 version 3.1 of the GCC Runtime Library Exception and to point
24594 readers at the COPYING3 and COPYING3.RUNTIME files and the
24595 FSF's license web page.
24596 * config/arm/arm_neon.h: Regenerate.
24598 2009-04-09 Jakub Jelinek <jakub@redhat.com>
24600 * config/cris/cris.md: Change copyright header to refer to version
24601 3 of the GNU General Public License.
24602 * doc/install.texi2html: Change copyright header to refer to version
24603 3 of the GNU General Public License and to point readers at the
24604 COPYING3 file and the FSF's license web page.
24605 * config/vax/linux.h: Likewise.
24607 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
24609 * config/i386/i386.md (cmpcc): New.
24610 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24611 (sync_compare_and_swap_cc*): Delete.
24613 * config/s390/s390.c (s390_compare_emitted): Remove.
24614 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24615 s390_compare_emitted used to be handled. Assert that modes match.
24616 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24617 refer to sync_compare_and_swap_ccsi.
24618 * config/s390/s390.h (s390_compare_emitted): Remove.
24619 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24620 instead of s390_compare_emitted.
24621 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24622 instead of s390_compare_emitted.
24623 * config/s390/s390.md (cmpcc): New.
24624 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24625 CC_REGNUM, do not pretend it's set.
24626 (sync_compare_and_swap_cc*): Delete.
24627 * config/s390/predicates.md (cc_reg_operand): New.
24629 * expr.c (sync_compare_and_swap_cc): Delete.
24630 * optabs.h (sync_compare_and_swap_cc): Delete.
24631 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24632 is being used with can_compare_p.
24633 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24634 (find_cc_set): New.
24635 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24636 look for a MODE_CC set instead. Use emit_store_flag.
24637 (expand_compare_and_swap_loop): Likewise, with some additional
24638 complication to avoid a force_reg when useless. Use
24639 emit_cmp_and_jump_insns.
24640 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24641 * doc/md.texi (sync_compare_and_swap_cc): Merge with
24642 sync_compare_and_swap documentation.
24644 2009-04-09 Jan Hubicka <jh@suse.cz>
24646 * except.c (find_prev_try): Break out from ....
24647 (duplicate_eh_regions): ... here; properly update prev_try pointers
24648 when duplication part of tree.
24649 (dump_eh_tree): Improve dumping.
24650 (verify_eh_region): New.
24651 (verify_eh_tree): Use it.
24653 2009-04-06 Richard Guenther <rguenther@suse.de>
24655 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24656 &ARRAY addresses by adjusting their types and prepending
24658 * tree-cfg.c (verify_gimple_assign_single): Verify that
24659 addresses are correct.
24661 2009-04-09 Richard Guenther <rguenther@suse.de>
24663 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24664 indices into an array reference if possible.
24665 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24666 Fold POINTER_PLUS_EXPR statements with invariant address.
24668 2009-04-09 Alan Modra <amodra@bigpond.net.au>
24671 * config.gcc (powerpc64-*-linux*): Always build biarch.
24673 2009-04-09 Joseph Myers <joseph@codesourcery.com>
24676 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24677 it and pedwarn if this results in an INTEGER_CST.
24679 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24681 * doc/install.texi: Update minimum GMP version. Remove obsolete
24682 text in MPFR section.
24684 2009-04-08 Jakub Jelinek <jakub@redhat.com>
24686 * dwarf2out.c (class_scope_p): New static inline.
24687 (class_or_namespace_scope_p): Use it.
24688 (gen_variable_die): Use DW_TAG_member tag for static data member
24689 declarations instead of DW_TAG_variable.
24691 PR middle-end/39573
24692 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24695 2009-04-08 Richard Guenther <rguenther@suse.de>
24697 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24698 valueize random data.
24700 2009-04-08 David Edelsohn <edelsohn@gnu.org>
24702 * config.gcc (aix tm_file): Add aix-stdint.h.
24703 (aix tm clause use_gcc_stdint): Set to wrap.
24704 * config/rs6000/aix-stdint.h: New file.
24706 2009-04-08 Richard Guenther <rguenther@suse.de>
24708 PR middle-end/36291
24709 * tree-dfa.c (add_referenced_var): Do not recurse into
24710 global initializers.
24711 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24713 (fold_const_aggregate_ref): Likewise.
24715 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
24717 * recog.c (ordered_comparison_operator): New.
24718 * gensupport.c (std_preds): Add it.
24719 * doc/md.texi (Machine-Independent Predicates): Document it.
24721 2009-04-08 Jan Hubicka <jh@suse.cz>
24723 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24724 * function.h (rtl_eh): Remove exception_handler_label_map.
24725 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24726 remove_exception_handler_label, for_each_eh_label_1): Remove.
24727 (rtl_remove_unreachable_regions): Remove.
24728 (convert_from_eh_region_ranges): Do not remove unreachable regions.
24729 (find_exception_handler_labels): Don't build the hashtable.
24730 (maybe_remove_eh_handler): Remove.
24731 (for_each_eh_label): Rewrite to walk the tree.
24732 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24733 * except.h (maybe_remove_eh_handler): Remove.
24734 * passes.c (init_optimization_passes): Schedule second EH cleanup
24736 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24737 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24739 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
24741 * genoutput.c (validate_optab_operands): New.
24742 (gen_insn, gen_expand): Call it.
24744 * genflags.c (gen_insn): Detect misused iterators.
24745 (main): Pass line_no to gen_insn, exit with status 1 on error.
24747 * genextract.c (line_no): Make global.
24748 (VEC_safe_set_locstr): Change assertion to error message.
24749 (main): Exit with status 1 on error.
24751 2009-04-08 Joseph Myers <joseph@codesourcery.com>
24755 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24756 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24757 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24758 * c-convert.c (convert): Do not call fold on results of conversion
24759 functions when the result is a C_MAYBE_CONST_EXPR.
24760 * c-parser.c (c_parser_postfix_expression): Do not fold condition
24761 of __builtin_choose_expr.
24762 * c-typeck.c (remove_c_maybe_const_expr): New.
24763 (build_unary_op, build_conditional_expr, build_compound_expr,
24764 build_binary_op, c_objc_common_truthvalue_conversion): Call
24765 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24768 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
24770 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
24771 CODE to produce a new one. Add a prototype to use fold_convert_const
24773 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
24776 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24777 mix declarations and code.
24779 2009-04-08 Ben Elliston <bje@au.ibm.com>
24781 * gcc.c: Replace `CC' with `GCC' throughout.
24783 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
24785 * doc/invoke.texi: Document Atom support.
24787 2009-04-07 Jason Merrill <jason@redhat.com>
24790 * c-common.h, c-common.c: Add flag_pretty_templates.
24791 * c-opts.c (c_common_handle_option): Set it.
24792 * c.opt: Add -fno-pretty-templates.
24793 * doc/invoke.texi (C++ Dialect Options): Likewise.
24795 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
24797 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24798 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24799 (ia64_expand_builtin): Likewise.
24801 2009-04-07 Martin Jambor <mjambor@suse.cz>
24803 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24804 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24805 ADDR_EXPRS are include too.
24807 2009-04-07 Richard Guenther <rguenther@suse.de>
24809 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24810 decls are only used if passes as parameters or if they are
24811 local statics and the call is not to a builtin.
24812 (call_may_clobber_ref_p_1): Likewise.
24814 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24816 * expr.c (do_store_flag): Remove last argument. Simplify code
24817 to avoid duplication of tests already done by can_compare_p.
24818 (expand_expr_real_1): Adjust caller.
24820 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24822 * optabs.c (can_compare_p): Test the predicate of a
24823 cbranch and cstore pattern.
24825 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24827 * expr.c (convert_move): Use emit_store_flag instead of
24830 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24832 * config/i386/i386.c (ix86_compare_emitted): Remove.
24833 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24834 ix86_compare_op0 like ix86_compare_emitted used to be handled.
24835 * config/i386/i386.h (ix86_compare_emitted): Remove.
24836 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24837 instead of ix86_compare_emitted.
24838 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
24840 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
24842 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24843 Add t-sysroot-suffix to tmake_file.
24844 * config/print-sysroot-suffix.sh: New file.
24845 * config/t-sysroot-suffix: New file.
24847 2009-04-07 Ben Elliston <bje@au.ibm.com>
24849 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24850 as the latter produces a warning when the target does not support
24853 2009-04-07 Ben Elliston <bje@au.ibm.com>
24855 * dfp.c: Replace type punning assignments with memcpy throughout.
24856 * Makefile.in (dfp.o-warn): Remove.
24858 2009-04-07 Alan Modra <amodra@bigpond.net.au>
24861 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24862 Include soft-fp/t-softfp after rs6000/t-linux64.
24864 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
24866 * stor-layout.c (set_sizetype): Use the full precision of their
24867 machine mode for bitsize types.
24869 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
24871 * config/i386/i386.md: Revert 2 accidental checkins.
24873 2009-04-06 Joey Ye <joey.ye@intel.com>
24874 Xuepeng Guo <xuepeng.guo@intel.com>
24875 H.J. Lu <hongjiu.lu@intel.com>
24877 Atom pipeline model, tuning and insn selection.
24878 * config.gcc (atom): Add atom config options and target.
24880 * config/i386/atom.md: New.
24882 * config/i386/i386.c (atom_cost): New cost.
24883 (m_ATOM): New macro flag.
24884 (initial_ix86_tune_features): Set m_ATOM.
24885 (x86_accumulate_outgoing_args): Likewise.
24886 (x86_arch_always_fancy_math_387): Likewise.
24887 (processor_target): Add Atom cost.
24888 (cpu_names): Add Atom cpu name.
24889 (override_options): Set Atom ISA.
24890 (ix86_issue_rate): New case PROCESSOR_ATOM.
24891 (ix86_adjust_cost): Likewise.
24893 * config/i386/i386.h (TARGET_ATOM): New target macro.
24894 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24895 (TARGET_OPT_AGU): New target option.
24896 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24897 (processor_type): Add PROCESSOR_ATOM.
24899 * config/i386/i386.md (cpu): Add new value "atom".
24900 (use_carry, movu): New attr.
24901 (atom.md): Include atom.md.
24902 (adddi3_carry_rex64): Set attr "use_carry".
24903 (addqi3_carry): Likewise.
24904 (addhi3_carry): Likewise.
24905 (addsi3_carry): Likewise.
24906 (*addsi3_carry_zext): Likewise.
24907 (subdi3_carry_rex64): Likewise.
24908 (subqi3_carry): Likewise.
24909 (subhi3_carry): Likewise.
24910 (subsi3_carry): Likewise.
24911 (x86_movdicc_0_m1_rex64): Likewise.
24912 (*x86_movdicc_0_m1_se): Likewise.
24913 (x86_movsicc_0_m1): Likewise.
24914 (*x86_movsicc_0_m1_se): Likewise.
24915 (*adddi_1_rex64): Emit add insn as much as possible.
24916 (*addsi_1): Likewise.
24917 (return_internal): Set atom_unit.
24918 (return_internal_long): Likewise.
24919 (return_pop_internal): Likewise.
24920 (*rcpsf2_sse): Set atom_sse_attr attr.
24921 (*qrt<mode>2_sse): Likewise.
24922 (*prefetch_sse): Likewise.
24924 * config/i386/i386-c.c (ix86_target_macros_internal): New case
24926 (ix86_target_macros_internal): Likewise.
24928 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24929 (*prefetch_sse_rex): Likewise.
24930 (sse_rcpv4sf2): Likewise.
24931 (sse_vmrcpv4sf2): Likewise.
24932 (sse_sqrtv4sf2): Likewise.
24933 (<sse>_vmsqrt<mode>2): Likewise.
24934 (sse_ldmxcsr): Likewise.
24935 (sse_stmxcsr): Likewise.
24936 (*sse_sfence): Likewise.
24937 (sse2_clflush): Likewise.
24938 (*sse2_mfence): Likewise.
24939 (*sse2_lfence): Likewise.
24940 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24941 (<sse>_movup<ssemodesuffixf2c>): Likewise.
24942 (avx_movdqu<avxmodesuffix>): Likewise.
24943 (avx_lddqu<avxmodesuffix>): Likewise.
24944 (sse2_movntv2di): Change attr "type" to "ssemov".
24945 (sse2_movntsi): Likewise.
24946 (rsqrtv8sf2): Change attr "type" to "sseadd".
24947 (sse3_addsubv2df3): Set attr "atom_unit".
24948 (sse3_h<plusminus_insn>v4sf3): Likewise.
24949 (*sse2_pmaddwd): Likewise.
24950 (*vec_extractv2di_1_rex64): Likewise.
24951 (*vec_extractv2di_1_avx): Likewise.
24952 (sse2_psadbw): Likewise.
24953 (ssse3_phaddwv8hi3): Likewise.
24954 (ssse3_phaddwv4hi3): Likewise.
24955 (ssse3_phadddv4si3): Likewise.
24956 (ssse3_phadddv2si3): Likewise.
24957 (ssse3_phaddswv8hi3): Likewise.
24958 (ssse3_phaddswv4hi3): Likewise.
24959 (ssse3_phsubwv8hi3): Likewise.
24960 (ssse3_phsubwv4hi3): Likewise.
24961 (ssse3_phsubdv4si3): Likewise.
24962 (ssse3_phsubdv2si3): Likewise.
24963 (ssse3_phsubswv8hi3): Likewise.
24964 (ssse3_phsubswv4hi3): Likewise.
24965 (ssse3_pmaddubsw128): Likewise.
24966 (sse3_pmaddubsw: Likewise.
24967 (ssse3_palignrti): Likewise.
24968 (ssse3_palignrdi): Likewise.
24970 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
24972 * doc/install.texi (Specific): Fix two cross-references to MinGW.
24974 2009-04-06 Richard Guenther <rguenther@suse.de>
24976 PR tree-optimization/28868
24977 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24978 of which PHI results we inserted.
24979 (insert_into_preds_of_block): Record inserted PHIs.
24980 (eliminate): Eliminate redundant PHI nodes.
24981 (init_pre): Init inserted_phi_names.
24983 2009-04-06 Richard Guenther <rguenther@suse.de>
24985 PR tree-optimization/39643
24986 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24987 IMAGPART_EXPRs of complex constants.
24988 (execute_fold_all_builtins): If we folded a call queue
24989 TODO_update_address_taken.
24991 2009-04-06 Jan Hubicka <jh@suse.cz>
24993 PR middle-end/39659
24994 * except.c (remove_unreachable_regions): Propagate may_contain_throw
24997 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
24999 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
25001 (ic_invalidate_array): Likewise.
25003 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
25005 * calls.c (emit_library_call_value_1): Fix a problem with parameter
25006 alignment for library calls.
25008 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
25010 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
25011 (mingw32 tm clause use_gcc_stdint): Set to wrap.
25012 * config/i386/mingw-stdint.h: New file.
25014 2009-04-05 Richard Guenther <rguenther@suse.de>
25016 PR tree-optimization/39648
25017 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
25018 our &A vs. &A[0] IL deficiencies.
25020 2009-04-04 Jan Hubicka <jh@suse.cz>
25022 * except.c (sjlj_find_directly_reachable_regions): Be ready for
25023 removed toplevel regions.
25024 (sjlj_mark_call_sites): Likewise.
25026 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
25028 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
25029 (cygwin tm clause use_gcc_stdint): Set to wrap.
25030 * config/i386/cygwin-stdint.h: New file.
25032 2009-04-04 Richard Guenther <rguenther@suse.de>
25034 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
25035 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
25036 single-argument PHIs if we are in loop-closed SSA form.
25037 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
25038 for the pre-condition.
25039 (slpeel_tree_peel_loop_to_edge): Likewise.
25040 (vect_build_loop_niters): Take an optional sequence to append stmts.
25041 (vect_generate_tmps_on_preheader): Likewise.
25042 (vect_do_peeling_for_loop_bound): Take extra guards for the
25044 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
25045 the cost model check.
25046 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
25047 guards if we are going to peel. Do not apply versioning in that case.
25048 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
25049 (vect_do_peeling_for_loop_bound): Likewise.
25050 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
25051 loop bound only record extra pre-conditions, do not apply loop
25054 2009-04-04 Richard Guenther <rguenther@suse.de>
25056 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
25059 2009-04-04 Jan Hubicka <jh@suse.cz>
25061 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25062 last_basic_block for size of bb->index indexed array.
25063 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
25064 compute_out, link_btr_uses, build_btr_def_use_webs,
25065 build_btr_def_use_webs, migrate_btr_defs): Likewise.
25067 2009-04-04 Jan Hubicka <jh@suse.cz>
25069 * except.c (remove_eh_handler_and_replace): Break out from ...
25070 (remove_eh_handler): ... here.
25071 (bring_to_root): New function.
25072 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
25073 handled ones, bring others to root of tree.
25075 2009-04-04 Jan Hubicka <jh@suse.cz>
25077 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
25078 (all_phis_safe_to_merge): New function.
25079 (update_info): New structure.
25080 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
25081 (cleanup_empty_eh): Update SSA if possible.
25083 2009-04-04 Richard Guenther <rguenther@suse.de>
25085 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
25086 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
25087 (append_vuse): Likewise.
25089 2009-04-04 Jakub Jelinek <jakub@redhat.com>
25091 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
25092 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
25093 instead of REG_UNSAVED for DW_CFA_undefined.
25094 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
25095 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
25098 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
25101 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
25103 2009-04-04 Richard Guenther <rguenther@suse.de>
25105 PR tree-optimization/8781
25106 PR tree-optimization/37892
25107 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
25108 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
25109 (valueize_refs): Call it for *& valueizations.
25110 (shared_reference_ops_from_ref): Rename to ...
25111 (valueize_shared_reference_ops_from_ref): ... this and valueize.
25112 (shared_reference_ops_from_call): Rename to ...
25113 (valueize_shared_reference_ops_from_call): ... this and valueize.
25114 (vn_reference_lookup): Update.
25115 (visit_reference_op_call): Likewise.
25116 * tree-ssa-pre.c (phi_translate_1): Fold *&.
25117 (eliminate): Value-replace the call address in call statements.
25119 2009-04-04 Richard Guenther <rguenther@suse.de>
25121 PR tree-optimization/39636
25122 * tree-ssa-forwprop.c
25123 (forward_propagate_addr_into_variable_array_index): Check for
25124 GIMPLE_ASSIGN before accessing the rhs code.
25126 2009-04-03 Jason Merrill <jason@redhat.com>
25128 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25130 2009-04-03 Steve Ellcey <sje@cup.hp.com>
25132 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25133 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25134 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25135 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25136 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25137 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25138 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25139 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25140 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25141 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25142 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25143 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25144 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25145 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25146 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25147 Use fr_reg_or_fp01_operand instead of fr_register_operand
25149 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25150 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25151 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25153 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
25155 PR rtl-optimization/39607
25156 PR rtl-optimization/39631
25160 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
25161 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25162 instead of DF_LR_OUT.
25163 * ira-lives.c (process_bb_node_lives): Ditto.
25164 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25165 instead of DF_LR_{OUT,IN}.
25166 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25167 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25169 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
25171 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25172 (execute_lower_omp): Always run but take the short way out if -fopenmp
25174 (gate_lower_omp): Remove, forcing the pass manager to always run the
25175 pass and always set PROP_gimple_lomp.
25176 (pass_lower_omp): Remove gate function.
25177 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25178 PROP_trees. Instead, require it.
25179 * ipa-cp.c (pass_ipa_cp): Likewise.
25180 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25181 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25182 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25183 and PROP_gimple_leh.
25185 2009-04-03 Richard Guenther <rguenther@suse.de>
25187 PR middle-end/13146
25188 PR tree-optimization/23940
25189 PR tree-optimization/33237
25190 PR middle-end/33974
25191 PR middle-end/34093
25192 PR tree-optimization/36201
25193 PR tree-optimization/36230
25194 PR tree-optimization/38049
25195 PR tree-optimization/38207
25196 PR tree-optimization/38230
25197 PR tree-optimization/38301
25198 PR tree-optimization/38585
25199 PR middle-end/38895
25200 PR tree-optimization/38985
25201 PR tree-optimization/39299
25202 * tree-ssa-structalias.h: Remove.
25203 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25204 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25205 (struct vuse_element_d): Remove.
25206 (struct vuse_vec_d): Likewise.
25207 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25208 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25209 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25210 VUSE_ELEMENT_VAR): Likewise.
25211 (struct voptype_d): Likewise.
25212 (NUM_VOP_FREE_BUCKETS): Likewise.
25213 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25214 (struct stmt_operands_d): Remove.
25215 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25216 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25217 VDEF_NUM, VDEF_VECT): Likewise.
25218 (copy_virtual_operands): Remove.
25219 (operand_build_cmp): Likewise.
25220 (create_ssa_artificial_load_stmt): Likewise.
25221 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25222 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25223 vuse_index and mayuse_index members. Pack and move done and iter_type
25224 members to the front.
25225 (SSA_OP_VMAYUSE): Remove.
25226 (SSA_OP_VIRTUAL_USES): Adjust.
25227 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25228 (unlink_stmt_vdef): Declare.
25229 (add_to_addressable_set): Remove.
25230 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25231 (vrp_visit_stmt): Likewise.
25232 * doc/tree-ssa.texi (Alias analysis): Update.
25233 * doc/invoke.texi (max-aliased-vops): Remove docs.
25234 (avg-aliased-vops): Likewise.
25235 * tree-into-ssa.c (syms_to_rename): Remove.
25236 (need_to_update_vops_p): Likewise.
25237 (need_to_initialize_update_ssa_p): Rename to ...
25238 (update_ssa_initialized_fn): ... this. Track function we are
25240 (symbol_marked_for_renaming): Simplify.
25241 (add_new_name_mapping): Do not set need_to_update_vops_p.
25242 (dump_currdefs): Use SYMS_TO_RENAME.
25243 (rewrite_update_stmt): Always walk all uses/defs.
25244 (dump_update_ssa): Adjust.
25245 (init_update_ssa): Take function argument. Track what we are
25247 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25248 (create_new_def_for): Initialize for cfun, assert we are initialized
25250 (mark_sym_for_renaming): Simplify.
25251 (mark_set_for_renaming): Do not initialize update-ssa.
25252 (need_ssa_update_p): Simplify. Take function argument.
25253 (name_mappings_registered_p): Assert we ask for the correct function.
25254 (name_registered_for_update_p): Likewise.
25255 (ssa_names_to_replace): Likewise.
25256 (release_ssa_name_after_update_ssa): Likewise.
25257 (update_ssa): Likewise. Use SYMS_TO_RENAME.
25258 (dump_decl_set): Do not print a newline.
25259 (debug_decl_set): Do it here.
25260 (dump_update_ssa): And here.
25261 * tree-ssa-loop-im.c (move_computations): Adjust.
25262 (movement_possibility): Likewise.
25263 (determine_max_movement): Likewise.
25264 (gather_mem_refs_stmt): Likewise.
25265 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25266 or NAME_MEMORY_TAG.
25267 * tree-complex.c (update_all_vops): Remove.
25268 (expand_complex_move): Adjust.
25269 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25270 Simplify test for memory referencing statement. Exclude
25271 non-invariant ADDR_EXPRs.
25272 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25273 * tree-loop-distribution.c (generate_memset_zero): Adjust.
25274 (rdg_flag_uses): Likewise.
25275 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25277 (tree_optimize_tail_calls_1): Also split the
25278 edge from the entry block if we have degenerate PHI nodes in
25279 the first basic block.
25280 * tree.c (init_ttree): Remove memory-tag related code.
25281 (tree_code_size): Likewise.
25282 (tree_node_structure): Likewise.
25283 (build7_stat): Re-write to be build6_stat.
25284 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25285 (SSA_VAR_P): Adjust.
25286 (struct tree_memory_tag): Remove.
25287 (struct tree_memory_partition_tag): Likewise.
25288 (union tree_node): Adjust.
25289 (build7): Re-write to be build6.
25290 * tree-pass.h (pass_reset_cc_flags): Remove.
25291 (TODO_update_address_taken): New flag.
25292 (pass_simple_dse): Remove.
25293 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25294 * params.h (MAX_ALIASED_VOPS): Remove.
25295 (AVG_ALIASED_VOPS): Likewise.
25296 * omp-low.c (expand_omp_taskreg): Update SSA form.
25297 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25298 aliases the lhs in a copy stmt.
25299 * tree-ssa-dse.c (struct address_walk_data): Remove.
25300 (memory_ssa_name_same): Likewise.
25301 (memory_address_same): Likewise.
25302 (get_kill_of_stmt_lhs): Likewise.
25303 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
25304 unused stores. Look through PHI nodes into post-dominated regions.
25305 (dse_optimize_stmt): Simplify. Properly remove stores.
25306 (tree_ssa_dse): Compute dominators.
25307 (execute_simple_dse): Remove.
25308 (pass_simple_dse): Likewise.
25309 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25310 gimple_loaded_syms and gimple_stored_syms computation.
25311 * toplev.c (dump_memory_report): Dump alias and pta stats.
25312 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25313 (vn_reference_eq): Likewise.
25314 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25315 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25316 valueize_vuses): Remove.
25317 (get_def_ref_stmt_vuses): Simplify. Rename to ...
25318 (get_def_ref_stmt_vuse): ... this.
25319 (vn_reference_lookup_2): New function.
25320 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25321 walking equivalent vuses. Simplify.
25322 (vn_reference_lookup): Likewise.
25323 (vn_reference_insert): Likewise.
25324 (vn_reference_insert_pieces): Likewise.
25325 (visit_reference_op_call): Simplify.
25326 (visit_reference_op_load): Likewise.
25327 (visit_reference_op_store): Likewise.
25328 (init_scc_vn): Remove shared_lookup_vuses initialization.
25329 (free_scc_vn): Remove shared_lookup_vuses freeing.
25330 (sort_vuses, sort_vuses_heap): Remove.
25331 (get_ref_from_reference_ops): Export.
25332 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25333 vector with single vuse pointer.
25334 (vn_reference_lookup_pieces, vn_reference_lookup,
25335 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25336 (shared_vuses_from_stmt): Remove.
25337 (get_ref_from_reference_ops): Declare.
25338 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25339 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25340 memory-tag related code.
25341 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25342 (likely_value): Add comment, skip static-chain of call statements.
25343 (surely_varying_stmt_p): Adjust.
25344 (gimplify_and_update_call_from_tree): Likewise.
25345 (execute_fold_all_builtins): Do not rebuild alias info.
25346 (gimplify_and_update_call_from_tree): Properly update VOPs.
25347 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25348 (copy_ref_info): Remove memory-tag related code.
25349 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25350 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25351 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25353 * tree-ssa-dom.c (gimple_p): Remove typedef.
25354 (eliminate_redundant_computations): Adjust.
25355 (record_equivalences_from_stmt): Likewise.
25356 (avail_expr_hash): Likewise.
25357 (avail_expr_eq): Likewise.
25358 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25359 (stmt_makes_single_load): Likewise.
25360 (stmt_makes_single_store): Likewise.
25361 * tree-ssa-alias.c: Rewrite completely.
25362 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25363 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25364 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25365 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25366 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25367 Remove public functions.
25368 (pass_reset_cc_flags): Remove.
25369 (pass_build_alias): Move ...
25370 * tree-ssa-structalias.c (pass_build_alias): ... here.
25371 * tree-ssa-alias.c (may_be_aliased): Move ...
25372 * tree-flow-inline.h (may_be_aliased): ... here.
25373 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25374 count_uses_and_derefs): Move ...
25375 * gimple.c: ... here.
25376 * gimple.h (count_uses_and_derefs): Declare.
25377 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25378 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25379 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25380 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25381 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25382 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25383 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25385 * tree-dfa.c (refs_may_alias_p): Move ...
25386 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
25387 * tree-ssa-alias.h: New file.
25388 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25389 (statement_sink_location): Likewise.
25390 * opts.c (decode_options): Do not adjust max-aliased-vops or
25391 avg-aliased-vops values.
25392 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25393 (TV_CALL_CLOBBER): Likewise.
25394 (TV_FLOW_SENSITIVE): Likewise.
25395 (TV_FLOW_INSENSITIVE): Likewise.
25396 (TV_MEMORY_PARTITIONING): Likewise.
25397 (TV_ALIAS_STMT_WALK): New timevar.
25398 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25399 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25400 (get_address_description): Remove memory-tag related code.
25401 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25402 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25403 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25404 and immediate uses in statements. Document.
25405 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25406 (dump_symbols): Remove.
25407 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25408 * alias.c (get_deref_alias_set): New function split out from ...
25409 (get_alias_set): ... here.
25410 * alias.h (get_deref_alias_set): Declare.
25411 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25412 type parameter. Remove restrict pointer handling. Create a
25413 ref-all pointer in case type-based alias sets do not conflict.
25414 (vect_analyze_data_refs): Remove SMT related code.
25415 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25416 (vectorizable_load): Likewise.
25417 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25418 (DR_SYMBOL_TAG, DR_VOPS): Remove.
25419 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25420 Ignore vops and SMTs.
25421 (dr_analyze_alias): Likewise..
25422 (free_data_ref): Likewise.
25423 (create_data_ref): Likewise.
25424 (analyze_all_data_dependences): Likewise.
25425 (get_references_in_stmt): Adjust.
25426 * tree-flow-inline.h (gimple_aliases_computed_p,
25427 gimple_addressable_vars, gimple_call_clobbered_vars,
25428 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25429 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25430 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25431 gimple_mem_ref_stats): Remove.
25432 (gimple_vop): New function.
25433 (op_iter_next_use): Remove vuses and mayuses cases.
25434 (op_iter_next_def): Remove vdefs case.
25435 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25436 (clear_and_done_ssa_iter): Do not set removed fields.
25437 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
25438 Assert we are not iterating over vuses or vdefs if not also
25439 iterating over uses or defs.
25440 (op_iter_init_use): Likewise.
25441 (op_iter_init_def): Likewise.
25442 (op_iter_next_vdef): Remove.
25443 (op_iter_next_mustdef): Likewise.
25444 (op_iter_init_vdef): Likewise.
25445 (compare_ssa_operands_equal): Likewise.
25446 (link_use_stmts_after): Handle vuse operand.
25447 (is_call_used): Use is_call_clobbered.
25448 (is_call_clobbered): Global variables are always call clobbered,
25449 query the call-clobbers bitmap.
25450 (mark_call_clobbered): Ignore global variables.
25451 (clear_call_clobbered): Likewise.
25452 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25453 virtual operands sanity check.
25454 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25456 (TARGET_MEM_REF): Remove TMR_TAG operand.
25457 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25458 Remove call-clobber related code.
25459 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
25460 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25461 partitions or escape reason.
25462 (get_single_def_stmt, get_single_def_stmt_from_phi,
25463 get_single_def_stmt_with_phi): Remove.
25464 (dump_referenced_vars): Tidy.
25465 (get_ref_base_and_extent): Allow bare decls.
25466 (collect_dfa_stats): Adjust.
25467 * graphite.c (rename_variables_in_stmt): Adjust.
25468 (graphite_copy_stmts_from_block): Likewise.
25469 (translate_clast): Likewise.
25470 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25472 (translate_vuse_through_block): Use the oracle.
25473 (phi_translate_1): Adjust.
25474 (value_dies_in_block_x): Use the oracle. Cache the outcome
25476 (valid_in_sets): Check if the VUSE for
25477 a REFERENCE is available.
25478 (eliminate): Do not remove stmts during elimination,
25479 instead queue and remove them afterwards.
25480 (do_pre): Do not rebuild alias info.
25481 (pass_pre): Run TODO_rebuild_alias before PRE.
25482 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25483 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25484 (mark_all_v_defs_stmt): Remove.
25485 (mark_all_v_defs_seq): Adjust.
25486 (sra_replace): Likewise.
25487 (scalarize_use): Likewise.
25488 (scalarize_copy): Likewise.
25489 (scalarize_init): Likewise.
25490 (scalarize_ldst): Likewise.
25491 (todoflags): Remove.
25492 (tree_sra): Do not rebuild alias info.
25493 (tree_sra_early): Adjust.
25494 (pass_sra): Run TODO_update_address_taken before SRA.
25495 * tree-predcom.c (set_alias_info): Remove.
25496 (prepare_initializers_chain): Do not call it.
25497 (mark_virtual_ops_for_renaming): Adjust.
25498 (mark_virtual_ops_for_renaming_list): Remove.
25499 (initialize_root_vars): Adjust.
25500 (initialize_root_vars_lm): Likewise.
25501 (prepare_initializers_chain): Likewise.
25502 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25503 (may_propagate_copy_into_stmt): Likewise.
25504 (merge_alias_info): Do nothing for now.
25505 (propagate_tree_value_into_stmt): Adjust.
25506 (stmt_may_generate_copy): Likewise.
25507 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25508 not mark symbols for renaming.
25509 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25510 with the same statement, make sure to update the new pointed-to one.
25511 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25512 call statements, do not mark symbols for renaming.
25513 (mark_operand_necessary): Dump something.
25514 (ref_may_be_aliased): New function.
25515 (mark_aliased_reaching_defs_necessary_1): New helper function.
25516 (mark_aliased_reaching_defs_necessary): Likewise.
25517 (mark_all_reaching_defs_necessary_1): Likewise.
25518 (mark_all_reaching_defs_necessary): Likewise.
25519 (propagate_necessity): Do not process virtual PHIs. For
25520 non-aliased loads mark all reaching definitions as necessary.
25521 For aliased loads and stores mark the immediate dominating
25522 aliased clobbers as necessary.
25523 (visited): New global static.
25524 (perform_tree_ssa_dce): Free visited bitmap after propagating
25526 (remove_dead_phis): Perform simple dead virtual PHI removal.
25527 (remove_dead_stmt): Properly unlink virtual operands when
25529 (eliminate_unnecessary_stmts): Schedule PHI removal after
25531 * tree-ssa-ter.c (is_replaceable_p): Adjust.
25532 (process_replaceable): Likewise.
25533 (find_replaceable_in_bb): Likewise.
25534 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25535 based on the single gimple vop.
25536 (verify_flow_insensitive_alias_info): Remove.
25537 (verify_flow_sensitive_alias_info): Likewise.
25538 (verify_call_clobbering): Likewise.
25539 (verify_memory_partitions): Likewise.
25540 (verify_alias_info): Likewise.
25541 (verify_ssa): Adjust..
25542 (execute_update_addresses_taken): Export. Update SSA
25543 manually. Optimize only when optimizing. Use a local bitmap.
25544 (pass_update_address_taken): Remove TODO_update_ssa, add
25546 (pass_update_address_taken): Just use TODO_update_address_taken.
25547 (init_tree_ssa): Do not initialize addressable_vars.
25548 (verify_ssa): Verify new VUSE / VDEF properties.
25549 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25550 Do not call verify_alias_info.
25551 (delete_tree_ssa): Clear the VUSE, VDEF operands.
25552 Do not free the loaded and stored syms bitmaps. Reset the escaped
25553 and callused solutions. Do not free addressable_vars.
25554 Remove memory-tag related code.
25555 (warn_uninitialized_var): Aliases are always available.
25556 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25557 * lambda-code.c (can_put_in_inner_loop): Adjust.
25558 (can_put_after_inner_loop): Likewise.
25559 (perfect_nestify): Likewise.
25560 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25561 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25562 (vectorizable_conversion): Do not mark symbols for renaming.
25563 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25564 (expand_call_inline): Unlink the calls virtual operands before
25566 (tree_function_versioning): Do not call update_ssa if we are not
25567 updating clones. Simplify.
25568 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25569 (propagate_with_phi): Likewise..
25570 * tree-outof-ssa.c (create_temp): Remove memory tag and call
25571 clobber code. Assert we are not aliased or global.
25572 * tree-flow.h: Include tree-ssa-alias.h
25573 (enum escape_type): Remove.
25574 (struct mem_sym_stats_d): Likewise.
25575 (struct mem_ref_stats_d): Likewise.
25576 (struct gimple_df): Add vop member. Remove global_var,
25577 call_clobbered_vars, call_used_vars, addressable_vars,
25578 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
25579 escaped and callused members.
25580 (struct ptr_info_def): Remove all members, add points-to solution
25582 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25583 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25584 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25585 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25586 (tree-ssa-alias.o): Likewise.
25587 (toplev.o): Add tree-ssa-alias.h
25588 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25589 * gimple.c (gimple_set_bb): Fix off-by-one error.
25590 (is_gimple_reg): Do not handle memory tags.
25591 (gimple_copy): Also copy virtual operands.
25592 Delay updating the statement. Do not reset loaded and stored syms.
25593 (gimple_set_stored_syms): Remove.
25594 (gimple_set_loaded_syms): Likewise.
25595 (gimple_call_copy_skip_args): Copy the virtual operands
25596 and mark the new statement modified.
25597 * tree-ssa-structalias.c (may_alias_p): Remove.
25598 (set_uids_in_ptset): Take the alias set to prune with as
25599 parameter. Fold in the alias test of may_alias_p.
25600 (compute_points_to_sets): Compute whether a ptr is dereferenced
25601 in a local sbitmap.
25602 (process_constraint): Deal with &ANYTHING on the lhs, reject all
25603 other ADDRESSOF constraints on the lhs.
25604 (get_constraint_for_component_ref): Assert that we don't get
25605 ADDRESSOF constraints from the base of the reference.
25606 Properly generate UNKNOWN_OFFSET for DEREF if needed.
25607 (struct variable_info): Remove collapsed_to member.
25608 (get_varinfo_fc): Remove.
25609 (new_var_info): Do not set collapsed_to.
25610 (dump_constraint): Do not follow cycles.
25611 (dump_constraint_graph): Likewise.
25612 (build_pred_graph): Likewise.
25613 (build_succ_graph): Likewise.
25614 (rewrite_constraints): Likewise.
25615 (do_simple_structure_copy): Remove.
25616 (do_rhs_deref_structure_copy): Remove.
25617 (do_lhs_deref_structure_copy): Remove.
25618 (collapse_rest_of_var): Remove.
25619 (do_structure_copy): Re-implement.
25620 (pta_stats): New global variable.
25621 (dump_pta_stats): New function.
25622 (struct constraint_expr): Make offset signed.
25623 (UNKNOWN_OFFSET): Define special value.
25624 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25625 (solution_set_expand): New helper function split out from ...
25626 (do_sd_constraint): ... here.
25627 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
25628 (do_ds_constraint): Likewise.
25629 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
25630 and CALLUSED = *CALLUSED.
25631 (set_union_with_increment): Make inc argument signed.
25632 (type_safe): Remove.
25633 (get_constraint_for_ptr_offset): Handle unknown and negative
25635 (first_vi_for_offset): Handle offsets before start. Bail
25636 out early for offsets beyond the variable extent.
25637 (first_or_preceding_vi_for_offset): New function.
25638 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25639 Together with ESCAPED = *ESCAPED this properly computes reachability.
25640 (find_what_var_points_to): New function.
25641 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25642 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25643 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25644 pt_solutions_intersect): New functions.
25645 (compute_call_used_vars): Remove.
25646 (compute_may_aliases): New main entry into PTA computation.
25647 * gimple.h (gimple_p): New typedef.
25648 (struct gimple_statement_base): Remove references_memory_p.
25649 (struct gimple_statement_with_memory_ops_base): Remove
25650 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
25652 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25653 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25654 gimple_set_references_memory): Remove.
25655 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25656 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25658 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25659 (verify_expr): Allow RESULT_DECL.
25660 (gimple_duplicate_bb): Do not copy virtual operands.
25661 (gimple_duplicate_sese_region): Adjust.
25662 (gimple_duplicate_sese_tail): Likewise.
25663 (mark_virtual_ops_in_region): Remove.
25664 (move_sese_region_to_fn): Do not call it.
25665 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25666 and pass_simple_dse.
25667 (execute_function_todo): Handle TODO_update_address_taken,
25668 call execute_update_addresses_taken for TODO_rebuild_alias.
25669 (execute_todo): Adjust.
25670 (execute_one_pass): Init dump files early.
25671 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25673 (create_general_new_stmt): Clear vops.
25674 * tree-ssa-reassoc.c (get_rank): Adjust.
25675 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25676 symbols for renaming.
25677 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25678 (PARAM_AVG_ALIASED_VOPS): Likewise.
25679 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25680 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
25681 * tree-ssa-operands.c: Simplify for new virtual operand representation.
25682 (operand_build_cmp, copy_virtual_operands,
25683 create_ssa_artificial_load_stmt, add_to_addressable_set,
25684 gimple_add_to_addresses_taken): Remove public functions.
25685 (unlink_stmt_vdef): New function.
25687 2009-04-03 Alan Modra <amodra@bigpond.net.au>
25689 * config.gcc (powerpc-*-linux*): Merge variants.
25691 2009-04-02 Chao-ying Fu <fu@mips.com>
25692 James Grosbach <james.grosbach@microchip.com>
25694 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25695 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25697 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25698 keep_interrupts_masked_p, use_debug_exception_return_p.
25699 (mips_attribute_table): Add interrupt, use_shadow_register_set,
25700 keep_interrupts_masked, use_debug_exception_return.
25701 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25702 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25704 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25705 (mips_print_operand): Process COP0 registers to print $0 .. $31
25706 correctly for GAS to process.
25707 (mips_interrupt_extra_call_saved_reg_p): New function.
25708 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25710 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25711 (mips_compute_frame_info): Add supports for interrupt context that
25712 includes doubleword accumulators and COP0 registers.
25713 (mips_for_each_saved_acc): New function.
25714 (mips_for_each_saved_gpr_and_fpr): Change the function name from
25715 mips_for_each_saved_reg.
25716 (mips_save_reg): Save accumulators.
25717 (mips_kernel_reg_p): A new for_each_rtx callback.
25718 (mips_expand_prologue): Support interrupt handlers.
25719 (mips_restore_reg): Restore accumulators.
25720 (mips_expand_epilogue): Support interrupt handlers.
25721 (mips_can_use_return_insn): Return false for interrupt handlers.
25722 (mips_epilogue_uses): New function.
25723 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25724 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25725 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25726 cop0_move): New instructions.
25727 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25728 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25730 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25732 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25733 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25734 interrupt handlers, we use K0 as the temporary register.
25735 (EPILOGUE_USES): Change to a function call.
25736 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25737 handlers, we use K0 as the temporary register.
25739 * doc/extend.texi (Function Attributes): Document interrupt,
25740 use_shadow_register_set, keep_interrupts_masked,
25741 use_debug_exception_return for MIPS attributes.
25743 2009-04-03 Alan Modra <amodra@bigpond.net.au>
25745 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25746 Remove a number of t-files from tmake_file.
25747 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25748 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25749 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25750 target_prototype, not TARGET_PROTOTYPE.
25751 (LINK_OS_GNU_SPEC): Define.
25752 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25753 and darwin-ldoubdle.c.
25755 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25758 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25759 (cpp_options): Ditto.
25760 (default_compilers): Ditto.
25761 (display_help): Ditto.
25762 (process_command): Ditto.
25763 (do_spec_1): Ditto.
25764 (set_input): Use lbasename instead of duplicate code.
25765 (save_temps_prefix): New static for -save-temps=obj.
25766 (save_temps_length): Ditto.
25768 * doc/invoke.texi (-save-temps=obj): Document new variant to
25769 -save-temps switch.
25771 2009-04-02 Jeff Law <law@redhat.com>
25773 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25776 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25778 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25779 * configure: Regenerated.
25781 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
25783 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25784 share the argument list.
25786 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
25790 2009-02-12 Diego Novillo <dnovillo@google.com>
25792 * varpool.c (debug_varpool): New.
25793 * cgraph.h (debug_varpool): Declare.
25795 2009-04-02 Jan Hubicka <jh@suse.cz>
25797 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25800 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25802 * config/i386/i386.c (ix86_abi): Move initialization to ...
25803 (override_options): Here.
25805 2009-04-02 Christian Bruel <christian.bruel@st.com>
25807 * config/sh/sh.c (sh_dwarf_register_span): New function.
25808 (TARGET_DWARF_REGISTER_SPAN): Define.
25809 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
25811 2009-04-02 Ira Rosen <irar@il.ibm.com>
25813 PR tree-optimization/39595
25814 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
25815 interleaved loads group is not greater than the SLP group size.
25817 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
25819 * builtins.c (is_builtin_name): New.
25820 (called_as_built_in): Use is_builtin_name.
25821 * tree.h (is_builtin_name): New.
25822 * varasm.c (incorporeal_function_p): Use is_builtin_name
25824 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
25826 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25828 2009-04-02 Dodji Seketeli <dodji@redhat.com>
25831 * c-decl.c (clone_underlying_type): Move this ...
25832 * c-common.c (set_underlying_type): ... here.
25833 Also, make sure the function properly sets TYPE_STUB_DECL() on
25834 the newly created typedef variant type.
25835 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
25836 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25839 2009-04-02 Richard Guenther <rguenther@suse.de>
25841 PR tree-optimization/37221
25842 * tree-flow.h (degenerate_phi_result): Declare.
25843 * tree-ssa-dom.c (degenerate_phi_result): Export.
25844 * tree-scalar-evolution.c (analyze_initial_condition): If
25845 the initial condition is defined by a degenerate PHI node
25846 use the degenerate value.
25848 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
25850 PR rtl-optimization/39588
25851 * combine.c (merge_outer_ops): Do not set the constant when this
25853 (simplify_shift_const_1): Do not modify it either in this case.
25855 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
25857 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25858 tuning is deprecated if -mtune value is set to an Itanium1 variant.
25860 2009-04-01 Janis Johnson <janis187@us.ibm.com>
25863 * c-lex.c (interpret_float): Default (no suffix) is double.
25865 2009-04-1 Xinliang David Li <davidxl@google.com>
25867 * config/i386/i386.c (legitimate_constant_p): Recognize
25868 all one vector constant.
25870 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25872 * config/vax/vax.c: Add #includes to silence warnings.
25873 Change #include order to silence two warnings.
25875 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25877 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
25878 (ASM_SPEC): Pass -k to the assembler for PIC code.
25880 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25882 * config.gcc: Add vax-*-linux* to the switch.
25883 * config/vax/linux.h: New file. (TARGET_VERSION,
25884 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25886 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25888 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
25889 Use predicate macros instead of GET_CODE() == foo.
25890 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
25891 ashlsi3, rotrsi3, <unnamed>): Likewise.
25893 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25895 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
25896 jbbccihi, jbbccisi): Remova trailing whitespace.
25897 * config/vax/constraints.md: Likewise.
25898 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25899 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25900 * config/vax/predicates.md: Likewise.
25901 * config/vax/vax.c (print_operand_address, vax_output_int_move,
25902 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
25903 * config/vax/vax.h: Likewise.
25904 * config/vax/vax.md (nonlocal_goto): Likewise.
25906 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25908 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
25909 (indirectable_address_p, adjacent_operands_p): Add spaces around
25911 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
25913 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25915 * config/vax/vax.c (legitimate_constant_address_p,
25916 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25917 index_term_p, reg_plus_index_p, legitimate_address_p,
25918 vax_mode_dependent_address_p): Update comments to match functions
25919 modified by the recent int->bool conversion.
25921 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25923 * config/vax/builtins.md: Update copyright message.
25924 * config/vax/constraints.md: Likewise.
25925 * config/vax/netbsd-elf.h: Likewise.
25926 * config/vax/predicates.md: Likewise.
25927 * config/vax/vax-protos.h: Likewise.
25928 * config/vax/vax.c: Likewise.
25929 * config/vax/vax.h: Likewise.
25930 * config/vax/vax.md: Likewise.
25931 * config/vax/vax.opt: Likewise.
25933 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25935 * config/vax/builtins.md (ffssi2, ffssi2_internal,
25936 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
25937 * config/vax/constraints.md (B, R): Likewise.
25938 * config/vax/predicates.md (external_memory_operand,
25939 nonimmediate_addsub_di_operand): Likewise.
25940 * config/vax/vax.c (vax_output_int_add): Likewise.
25941 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
25942 untyped_call): Likewise.
25944 2009-04-01 Matt Thomas <matt@3am-software.com>
25946 * config/vax/predicates.md: New file.
25947 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
25948 external_const_operand, nonsymbolic_operand, external_memory_operand,
25949 indirect_memory_operand, indexed_memory_operand,
25950 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25951 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25953 * config/vax/constraints.md: New file.
25954 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25956 * config/vax/builtins.md: New file.
25957 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25958 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25960 * config/vax/vax.opt (mqmath): Add option.
25961 * config/vax/vax.md (isfx): Extend with DI.
25962 (VAXintQH, VAXintQHSD): Define.
25963 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25964 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25965 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25966 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25967 (movdi): Update constraints and use vax_output_int_move().
25968 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25969 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25970 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25971 nonlocal_goto): New.
25972 (mov<mode>): Extend accepted operand types.
25973 (subdi3_old): Rename from subdi3, change update constraints and use
25974 a new implementation.
25975 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
25976 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25977 MOVE_RATIO, CLEAR_RATIO): Define.
25978 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25979 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25980 (PRINT_OPERAND): Redefine using a function instead of inlined code.
25981 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
25982 (split_quadword_operands): Make static and really allow variable
25984 (print_operand_address): Update for PIC generation.
25985 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25986 indexable_address_p, fixup_mathdi_operand,
25987 vax_expand_addsub_di_operands, adjacent_operands_p): New.
25988 (vax_float_literal, legitimate_constant_p,
25989 indirectable_constant_address_p, index_term_p,
25990 reg_plus_index_p): Return bool instead of int.
25991 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25993 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25995 (vax_output_conditional_branch): Indent.
25996 (legitimate_constant_address_p, indirectable_constant_address_p,
25997 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25998 vax_mode_dependent_address_p): Return bool instead of int, update for
26000 * config/vax/vax-protos.h (legitimate_constant_address_p,
26001 legitimate_constant_p, legitimate_address_p,
26002 vax_mode_dependent_address_p): Change declaration to bool.
26003 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
26004 vax_expand_addsub_di_operands, vax_output_int_subtract,
26005 vax_output_movmemsi): Declare.
26006 (split_quadword_operands, vax_float_literal): Delete declaration.
26007 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
26008 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
26009 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
26010 ASM_OUTPUT_DWARF_PCREL): Define.
26011 (ASM_SPEC): Change definition to allow PIC generation.
26013 2009-04-01 Steve Ellcey <sje@cup.hp.com>
26015 * doc/sourcebuild.texi: Update front-end requirements.
26017 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26020 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
26021 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
26022 (booldi3_internal3): Use boolean_or_operator instead of
26025 2009-04-01 Joseph Myers <joseph@codesourcery.com>
26028 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
26029 declarator whose size is not an integer constant expression but
26030 folds to an integer constant, then treat it as a constant
26033 2009-04-01 Richard Guenther <rguenther@suse.de>
26035 * fold-const.c (fold_plusminus_mult_expr): Do not fold
26036 i * 4 + 2 to (i * 2 + 1) * 2.
26038 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26041 * c-parser.c (c_parser_asm_statement): Skip until close paren and
26042 return if c_parser_asm_string_literal returned NULL.
26044 2009-04-01 Nick Clifton <nickc@redhat.com>
26046 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
26048 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
26049 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
26050 other typedefs to avoid conflicts with libgcc2.c. Define labels
26051 to gain 16-bit bit-manipulation functions from libgcc2.c and then
26053 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
26054 to gain 16-bit trapping arithmetic functions from libgcc2.c and
26057 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
26059 * varasm.c (default_function_rodata_section): Declare DOT as
26062 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
26063 Andrey Galkin <agalkin@hypercom.com>
26066 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
26067 Make object_name unique for each process.
26069 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26072 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
26073 addressable variables in the parallel that could go out of scope while
26074 running queued tasks.
26076 2009-04-01 Anatoly Sokolov <aesok@post.ru>
26078 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
26079 (CASE_VALUES_THRESHOLD): Redefine.
26080 * config/avr/avr.c (avr_override_options): Remove initialization of
26081 avr_case_values_threshold variable.
26082 (avr_case_values_threshold): Remove variable. Add new function.
26083 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
26084 * config/avr/avr.opt (mno-tablejump): Remove option.
26085 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
26087 2009-04-01 DJ Delorie <dj@redhat.com>
26089 * varasm.c (default_function_rodata_section): Don't assume
26090 anything about where the first '.' in the section name is.
26092 2009-04-01 Alan Modra <amodra@bigpond.net.au>
26094 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
26095 rs6000_emit_stack_tie.
26097 2009-03-31 Ian Lance Taylor <iant@google.com>
26099 * tree-eh.c (tree_remove_unreachable_handlers): Compare
26100 gimple_code with GIMPLE_RESX, not RESX.
26102 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26104 * c-common.c (c_get_ident): New.
26105 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
26107 2009-04-01 Ben Elliston <bje@au.ibm.com>
26109 * config/rs6000/sysv4.opt (msdata): Improve option description.
26111 2009-03-31 Steve Ellcey <sje@cup.hp.com>
26113 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
26114 (divdf3_internal_lat): Remove.
26115 (divxf3_internal_lat): Remove.
26116 (divxf3_internal_thr): Remove.
26117 (divxf): Use divxf3_internal.
26118 * config/ia64/div.md (divsf3_internal_lat): New.
26119 (divdf3_internal_lat): New.
26120 (divxf3_internal): New.
26122 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26125 * Makefile.in (USE_GCC_STDINT): Define.
26126 (stmp-int-hdrs): Install stdint.h if applicable.
26127 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26129 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26130 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26131 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26132 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26133 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26134 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26135 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26136 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26137 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26138 (c_common_nodes_and_builtins): Initialize
26139 underlying_wchar_type_node. Do not initialize
26140 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
26141 nodes for new types.
26142 (c_stddef_cpp_builtins): Define macros for new types.
26143 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26145 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26146 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26147 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26148 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26149 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26150 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26151 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26152 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26153 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26154 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26155 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26156 int16_type_node, int32_type_node, int64_type_node,
26157 uint8_type_node, uint16_type_node, c_uint32_type_node,
26158 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26159 int_least32_type_node, int_least64_type_node,
26160 uint_least8_type_node, uint_least16_type_node,
26161 uint_least32_type_node, uint_least64_type_node,
26162 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26163 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26164 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26165 uintptr_type_node): Define.
26166 * c-cppbuiltin.c (builtin_define_constants,
26167 builtin_define_type_minmax): New.
26168 (builtin_define_stdint_macros): Define more macros.
26169 (c_cpp_builtins): Define more limit macros.
26170 (type_suffix): New.
26171 (builtin_define_type_max): Define in terms of
26172 builtin_define_type_minmax. Remove is_long parameter. All
26174 * config.gcc (use_gcc_stdint): Define.
26175 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26176 Add newlib-stdint.h for generic targets.
26177 * config/glibc-stdint.h, config/newlib-stdint.h,
26178 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26179 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26180 * config/score/score.h (UINTPTR_TYPE): Define.
26181 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26182 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26183 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26184 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26185 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26186 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26187 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26188 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26189 * config/spu/spu.h (STDINT_LONG32): Define.
26190 * configure.ac (use_gcc_stdint): Substitute.
26191 * configure: Regenerate.
26192 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26193 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26194 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26195 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26196 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26197 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26198 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26199 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26200 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26201 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26202 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26203 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26204 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26205 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26206 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26207 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26208 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26209 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26210 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26211 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26212 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26213 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26214 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26215 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26216 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26217 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26218 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26219 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26220 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26222 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
26224 * loop-iv.c (suitable_set_for_replacement): Renamed from
26225 simplify_using_assignment; changed to return bool and to accept new
26226 args DEST and SRC. Return true iff we find a source/destination pair
26227 that can be used to make a replacement, and fill SRC and DEST if so.
26228 Remove arg ALTERED. Don't deal with altered regs here. All callers
26230 (simplify_using_initial_values): Deal with altered regs here and track
26231 more precisely the effect they have on the validity of our expression.
26233 * loop-iv.c (simplify_using_condition): A condition of the form
26234 (EQ REG CONST) can be used to simply make a substitution.
26235 (simplify_using_initial_values): Keep track of conditions we have seen
26236 and keep using them to simplify new expressions, while applying the
26237 same substitutions to them as to the expression.
26239 * simplify-rtx.c (simplify_relational_operation_1): Simplify
26240 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26243 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
26244 changed. Use this when trying to improve the upper bound.
26245 Generate the comparison by using simplify_gen_relational.
26247 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26249 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26251 (simplify_using_assignment, simplify_using_initial_values): Call
26252 replace_in_expr to make replacements. Call replace_single_def_regs
26253 once on the initial version of the expression.
26255 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26258 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26260 2009-03-31 Richard Guenther <rguenther@suse.de>
26262 PR middle-end/31029
26263 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26264 equality comparisons. Fold C - X CMP X if C % 2 == 1.
26266 2009-03-31 Richard Guenther <rguenther@suse.de>
26268 * tree.h (div_if_zero_remainder): Declare.
26269 * fold-const.c (div_if_zero_remainder): Export.
26270 * tree-ssa-forwprop.c
26271 (forward_propagate_addr_into_variable_array_index): Handle
26272 constant array index addition outside of the variable index.
26274 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26277 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26278 define_splits, floatunssi<mode>2): Require x87 conversions from
26279 DImode to be permitted.
26281 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26283 PR preprocessor/15638
26284 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26286 2009-03-31 Richard Guenther <rguenther@suse.de>
26288 PR middle-end/23401
26289 PR middle-end/27810
26290 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26291 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26292 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26293 a separate statement.
26294 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26295 (lookup_tmp_var): Likewise.
26296 (is_gimple_formal_tmp_or_call_rhs): Remove.
26297 (is_gimple_reg_or_call_rhs): Rename to ...
26298 (is_gimple_reg_rhs_or_call): ... this.
26299 (is_gimple_mem_or_call_rhs): Rename to ...
26300 (is_gimple_mem_rhs_or_call): ... this.
26301 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
26302 DECL_GIMPLE_REG_P only if is_formal is true.
26303 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
26304 for non-proper post-modify expression gimplification.
26305 (gimplify_self_mod_expr): For post-modify expressions gimplify
26306 the lvalue to a minimal lvalue.
26307 (rhs_predicate_for): Remove formal temp case.
26308 (gimplify_modify_expr_rhs): Likewise.
26309 (gimplify_addr_expr): Use is_gimple_reg.
26310 (gimplify_expr): Remove formal temp cases.
26311 (gimple_regimplify_operands): Likewise.
26312 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26313 and FILTER_EXPR like constants.
26314 * gimple.c (walk_gimple_op): Fix val_only initialization, use
26316 (is_gimple_formal_tmp_rhs): Remove.
26317 (is_gimple_reg_rhs): Remove special casing.
26318 (is_gimple_mem_rhs): Fix.
26319 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26320 (is_gimple_formal_tmp_var): Remove.
26321 (is_gimple_formal_tmp_reg): Likewise.
26322 (is_gimple_min_lval): Allow invariant component ref parts.
26323 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26324 is_gimple_formal_tmp_reg): Remove declarations.
26325 * tree-cfg.c (verify_expr): Verify that variables with address
26326 taken do not have DECL_GIMPLE_REG_P set.
26327 * tree-mudflap.c (mf_build_check_statement_for): Use
26328 force_gimple_operand instead of gimplify_expr.
26330 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
26332 * modulo-sched.c (sms_schedule_by_order): Pass the actual
26333 schedulable rows to compute_split_row.
26335 2009-03-31 Ben Elliston <bje@au.ibm.com>
26338 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26341 2009-03-31 Alan Modra <amodra@bigpond.net.au>
26343 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26344 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26345 * configure: Regenerate.
26346 * config.in: Regenerate.
26347 * config/rs6000/rs6000.opt (mtls-markers): Add.
26348 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26349 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26350 (tls_ld_aix, tls_ld_sysv): Likewise.
26351 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26352 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26354 2009-03-31 Alan Modra <amodra@bigpond.net.au>
26356 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26358 2009-03-30 Jan Hubicka <jh@suse.cz>
26360 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26362 (tree_remove_unreachable_handlers): Cleanup EH predecestor
26363 detection and label handling.
26365 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26367 * ira-int.h (ira_allocno): Rename left_conflicts_num to
26368 left_conflicts_size.
26369 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26370 ALLOCNO_LEFT_CONFLICTS_SIZE.
26372 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26373 remove_allocno_from_bucket_and_push,
26374 allocno_spill_priority_compare, push_allocnos_to_stack,
26375 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26376 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26377 (setup_allocno_left_conflicts_num): Ditto. Rename to
26378 setup_allocno_left_conflicts_size.
26379 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26380 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26381 setup_allocno_left_conflicts_size instead of
26382 setup_allocno_left_conflicts_num.
26384 * ira-build.c (ira_create_allocno): Use
26385 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26386 ALLOCNO_LEFT_CONFLICTS_NUM.
26388 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26390 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26391 instead of DF_LR_OUT.
26393 * ira-lives.c (process_bb_node_lives): Ditto.
26395 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26396 instead of DF_LR_{OUT,IN}.
26398 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26400 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26402 2009-03-30 Jan Hubicka <jh@suse.cz>
26404 * except.c (label_to_region_map): Fix thinko.
26406 2009-03-30 Steve Ellcey <sje@cup.hp.com>
26408 PR middle-end/38237
26409 * tree.h (tree_find_value): New declaration.
26410 * tree.c (tree_find_value): New function.
26411 * varasm.c (assemble_external): Avoid duplicate entries on lists.
26413 2009-03-30 Jakub Jelinek <jakub@redhat.com>
26416 * c-decl.c (struct c_binding): Add locus field.
26417 (bind): Add locus argument, set locus field from it.
26418 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26419 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26420 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26421 implicitly_declare, undeclared_variable, lookup_label,
26422 declare_label, c_make_fname_decl, c_builtin_function,
26423 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26426 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
26429 * config/i386/i386.c (classify_argument): Check total size of
26432 2009-03-30 Martin Jambor <mjambor@suse.cz>
26434 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26435 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26436 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26439 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26440 seen_variable_array_ref while also traversing a union.
26442 * tree-inline.c (optimize_inline_calls): Do not call
26443 cgraph_node_remove_callees.
26444 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26445 (pass_remove_cgraph_callee_edges): New variable.
26446 * passes.c (init_optimization_passes): Add
26447 pass_remove_cgraph_callee_edges after early inlining and before all
26448 late intraprocedural passes.
26450 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26452 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26454 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26455 Fix typos in names.
26457 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26459 * combine.c (simplify_comparison): Use have_insn_for.
26460 * dojump.c (do_jump): Likewise.
26462 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26464 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26465 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26466 sparc_compare_op0 like sparc_compare_emitted used to be handled.
26467 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26468 instead of sparc_compare_emitted.
26469 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26470 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26471 instead of sparc_compare_emitted.
26473 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26475 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26476 enter/exit cfglayout mode.
26477 (pass_partition_block): Require it.
26478 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26479 (combine_instructions): Track basic blocks instead of labels.
26480 (update_cfg_for_uncondjump): New.
26481 (try_combine): Use it. Update jumps after rescanning.
26482 (pass_combine): Require PROP_cfglayout.
26483 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26485 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26487 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26488 Provide/destroy PROP_cfglayout respectively.
26489 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26490 * tree-pass.h (PROP_cfglayout): New.
26492 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26494 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26495 fold_convert_const_fixed_from_fixed,
26496 fold_convert_const_fixed_from_int,
26497 fold_convert_const_fixed_from_real, fold_negate_const): Do not
26498 set TREE_CONSTANT_OVERFLOW.
26499 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26500 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26502 2009-03-30 Ira Rosen <irar@il.ibm.com>
26504 * tree-vect-loop-manip.c: New file.
26505 * tree-vectorizer.c: Update documentation and included files.
26506 (vect_loop_location): Make extern.
26507 (rename_use_op): Move to tree-vect-loop-manip.c
26508 (rename_variables_in_bb, rename_variables_in_loop,
26509 slpeel_update_phis_for_duplicate_loop,
26510 slpeel_update_phi_nodes_for_guard1,
26511 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26512 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26513 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26514 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26515 find_loop_location): Likewise.
26516 (new_stmt_vec_info): Move to tree-vect-stmts.c.
26517 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26518 get_vectype_for_scalar_type, vect_is_simple_use,
26519 supportable_widening_operation, supportable_narrowing_operation):
26521 (bb_in_loop_p): Move to tree-vect-loop.c.
26522 (new_loop_vec_info, destroy_loop_vec_info,
26523 reduction_code_for_scalar_code, report_vect_op,
26524 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26525 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26526 (vect_supportable_dr_alignment): Likewise.
26527 * tree-vectorizer.h (tree-data-ref.h): Include.
26528 (vect_loop_location): Declare.
26529 Reorganize function declarations according to the new file structure.
26530 * tree-vect-loop.c: New file.
26531 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26532 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26533 * tree-vect-data-refs.c: New file.
26534 * tree-vect-patterns.c (timevar.h): Don't include.
26535 * tree-vect-stmts.c: New file.
26536 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26537 tree-vect-slp.c, tree-vect-loop.c.
26538 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26539 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26540 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26541 (tree-vect-analyze.o): Remove.
26542 (tree-vect-transform.o): Likewise.
26543 (tree-vect-data-refs.o): Add rule.
26544 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26545 tree-vect-slp.o): Likewise.
26546 (tree-vect-patterns.o): Remove redundant dependencies.
26547 (tree-vectorizer.o): Likewise.
26548 * tree-vect-slp.c: New file.
26550 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26552 * optc-gen.awk: Warn if an option flag has multiple different
26555 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
26557 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26558 -floop-block): Document dependences on PPL, CLooG and Graphite.
26560 2009-03-30 Joseph Myers <joseph@codesourcery.com>
26562 PR rtl-optimization/323
26563 * c-common.c (c_fully_fold, convert_and_check,
26564 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26565 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26566 * c-common.def (EXCESS_PRECISION_EXPR): New.
26567 * c-cppbuiltin.c (builtin_define_float_constants): Define
26568 constants with enough digits for long double.
26569 * c-lex.c (interpret_float): Interpret constant with excess
26570 precision where appropriate.
26571 * c-opts.c (c_common_post_options): Set
26572 flag_excess_precision_cmdline. Give an error for
26573 -fexcess-precision=standard for C++ for processors where the
26574 option is significant.
26575 * c-parser.c (c_parser_conditional_expression): Handle excess
26576 precision in condition.
26577 * c-typeck.c (convert_arguments): Handle arguments with excess
26579 (build_unary_op): Move excess precision outside operation.
26580 (build_conditional_expr): Likewise.
26581 (build_compound_expr): Likewise.
26582 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26583 (build_modify_expr): Handle excess precision in RHS.
26584 (convert_for_assignment): Handle excess precision in converted
26586 (digest_init, output_init_element, process_init_element): Handle
26587 excess precision in initializer.
26588 (c_finish_return): Handle excess precision in return value.
26589 (build_binary_op): Handle excess precision in operands and add
26590 excess precision as needed for operation.
26591 * common.opt (-fexcess-precision=): New option.
26592 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26593 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26594 For standard excess precision, output explicit conversion to and
26595 truncation from XFmode.
26596 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26597 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26598 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26599 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26600 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26601 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26602 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26603 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26604 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26605 define_splits, sqrt<mode>2): Disable where appropriate for
26606 standard excess precision.
26607 * convert.c (convert_to_real): Do not shorten arithmetic to type
26608 for which excess precision would be used.
26609 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26610 * doc/invoke.texi (-fexcess-precision=): Document option.
26611 (-mfpmath=): Correct index entry.
26612 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26613 flag_excess_precision): New.
26614 * langhooks.c (lhd_post_options): Set
26615 flag_excess_precision_cmdline.
26616 * opts.c (common_handle_option): Handle -fexcess-precision=.
26617 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26618 init_excess_precision): New.
26619 (lang_dependent_init_target): Call init_excess_precision.
26620 * tree.c (excess_precision_type): New.
26621 * tree.h (excess_precision_type): Declare.
26623 2009-03-30 Joseph Myers <joseph@codesourcery.com>
26626 * c-typeck.c (build_component_ref): Do not copy qualifiers from
26627 non-lvalue to component.
26629 2009-03-29 Joseph Myers <joseph@codesourcery.com>
26631 PR preprocessor/34695
26632 * Makefile.in (c-opts.o): Depend on c-tree.h.
26633 * c-common.c: Move down include of diagnostic.h.
26634 (done_lexing, c_cpp_error): New.
26635 * c-common.h (done_lexing): Declare.
26636 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26638 * c-opts.c: Include c-tree.h.
26639 (c_common_init_options): Set preprocessor error callback.
26640 (c_common_handle_option): Do not set preprocessor
26641 inhibit_warnings, warnings_are_errors, warn_system_headers,
26642 pedantic_errors or inhibit_warnings flags.
26643 (c_common_post_options): Do not check cpp_errors (parse_in).
26644 (c_common_finish): Do not output dependencies if there were
26645 errors. Do not check return value of cpp_finish.
26646 * c-ppoutput.c (pp_file_change): Set input_location.
26647 * c-tree.h (c_cpp_error): Declare.
26648 * diagnostic.c (diagnostic_set_info_translated): Also initialize
26650 (diagnostic_build_prefix): Check override_column.
26651 * diagnostic.h (diagnostic_info): Add override_column field.
26652 (diagnostic_override_column): Define.
26654 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
26656 * c-common.c (c_expand_expr, c_staticp): Remove.
26657 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26658 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26659 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26660 * c-gimplify.c (gimplify_compound_literal_expr,
26661 optimize_compound_literals_in_ctor): Remove.
26662 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26663 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26664 * c-semantics.c (emit_local_var): Remove.
26666 * langhooks-def.h (lhd_expand_expr): Remove.
26667 * langhooks.c (lhd_expand_expr): Remove.
26668 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26670 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26671 handling from c-semantics.c; don't call into langhook.
26672 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26673 * gimplify.c (gimplify_compound_literal_expr,
26674 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26675 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26676 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26677 as was done in c-gimplify.c.
26678 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26679 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26680 Move from c-common.h.
26681 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
26683 * tree.c (staticp): Do not call langhook.
26684 * langhooks.c (lhd_staticp): Delete.
26685 * langhooks-def.h (lhd_staticp): Delete prototype.
26686 (LANG_HOOKS_STATICP): Delete.
26687 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26689 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26690 instead of DECL_STMTs.
26692 2009-03-29 Joseph Myers <joseph@codesourcery.com>
26700 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26702 (fold_call_expr): Return a NOP_EXPR from folding rather than the
26703 contained expression.
26704 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
26705 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
26706 conditional expressions for C.
26707 (decl_constant_value_for_optimization): Move from
26708 decl_constant_value_for_broken_optimization in c-typeck.c. Check
26709 whether optimizing and that the expression is a VAR_DECL not of
26710 array type instead of doing such checks in the caller. Do not
26711 check pedantic. Call gcc_unreachable for C++.
26712 * c-common.def (C_MAYBE_CONST_EXPR): New.
26713 * c-common.h (c_fully_fold, c_save_expr,
26714 decl_constant_value_for_optimization): New prototypes.
26715 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26716 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26717 EXPR_INT_CONST_OPERANDS): Define.
26718 * c-convert.c (convert): Strip nops from expression.
26719 * c-decl.c (groktypename): Take extra parameters expr and
26720 expr_const_operands. Update call to grokdeclarator.
26721 (start_decl): Update call to grokdeclarator. Add statement for
26722 expressions used in type of decl.
26723 (grokparm): Update call to grokdeclarator.
26724 (push_parm_decl): Update call to grokdeclarator.
26725 (build_compound_literal): Add parameter non_const and build a
26726 C_MAYBE_COSNT_EXPR if applicable.
26727 (grokdeclarator): Take extra parameters expr and
26728 expr_const_operands. Track expressions used in declaration
26729 specifiers and declarators. Fold array sizes and track whether
26730 they are constant expressions and whether they are integer
26731 constant expressions.
26732 (parser_xref_tag): Set expr and expr_const_operands fields in
26734 (grokfield): Update call to grokdeclarator.
26735 (start_function): Update call to grokdeclarator.
26736 (build_null_declspecs): Set expr and expr_const_operands fields in
26738 (declspecs_add_type): Handle expressions in typeof specifiers.
26739 * c-parser.c (c_parser_declspecs): Set expr and
26740 expr_const_operands fields for declaration specifiers.
26741 (c_parser_enum_specifier): Likewise.
26742 (c_parser_struct_or_union_specifier): Likewise.
26743 (c_parser_typeof_specifier): Likewise. Update call to
26744 groktypename. Fold expression as needed. Return expressions with
26745 type instead of adding statements.
26746 (c_parser_attributes): Update calls to c_parser_expr_list.
26747 (c_parser_statement_after_labels): Fold expression before passing
26748 to objc_build_throw_stmt.
26749 (c_parser_condition): Fold expression.
26750 (c_parser_asm_operands): Fold expression.
26751 (c_parser_conditional_expression): Use c_save_expr. Update call
26752 to build_conditional_expr.
26753 (c_parser_alignof_expression): Update call to groktypename.
26754 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26755 original_code. Fold expression argument of va_arg. Create
26756 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26757 argument to va_arg. Update calls to groktypename. Fold array
26758 index for offsetof. Verify that first argument to
26759 __builtin_choose_expr has integer type.
26760 (c_parser_postfix_expression_after_paren_type): Update calls to
26761 groktypename and build_compound_literal. Handle expressions with
26762 side effects in type name.
26763 (c_parser_postfix_expression_after_primary): Update call to
26764 c_parser_expr_list. Set original_code for calls to
26765 __builtin_constant_p.
26766 (c_parser_expr_list): Take extra parameter fold_p. Fold
26767 expressions if requested.
26768 (c_parser_objc_type_name): Update call to groktypename.
26769 (c_parser_objc_synchronized_statement): Fold expression.
26770 (c_parser_objc_receiver): Fold expression.
26771 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26772 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26773 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26774 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26775 (struct c_typespec): Add elements expr and expr_const_operands.
26776 (struct c_declspecs): Add elements expr and expr_const_operands.
26777 (groktypename, build_conditional_expr, build_compound_literal):
26779 (in_late_binary_op): Declare.
26780 * c-typeck.c (note_integer_operands): New function.
26781 (in_late_binary_op): New variable.
26782 (decl_constant_value_for_broken_optimization): Move to c-common.c
26783 and rename to decl_constant_value_for_optimization.
26784 (default_function_array_conversion): Do not strip nops.
26785 (default_conversion): Do not call
26786 decl_constant_value_for_broken_optimization.
26787 (build_array_ref): Do not fold result.
26788 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
26789 result when operand is a VLA.
26790 (c_expr_sizeof_type): Update call to groktypename. Handle
26791 expressions included in type name. Use C_MAYBE_CONST_EXPR for
26792 result when operand names a VLA type.
26793 (build_function_call): Update call to build_compound_literal.
26794 Only fold result for calls to __builtin_* functions. Strip
26795 NOP_EXPR from INTEGER_CST returned from such functions. Fold
26796 the function designator.
26797 (convert_arguments): Fold arguments. Update call to
26798 convert_for_assignment.
26799 (build_unary_op): Handle increment and decrement of
26800 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
26801 decrement earlier. Fold operand of increment and decrement.
26802 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
26803 built for integer operand. Wrap returns that are INTEGER_CSTs
26804 without being integer constant expressions or that have integer
26805 constant operands without being INTEGER_CSTs.
26806 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26807 (build_conditional_expr): Add operand ifexp_bcp. Track whether
26808 result is an integer constant expression or can be used in
26809 unevaluated parts of one and avoid folding and wrap as
26810 appropriate. Fold operands before possibly doing -Wsign-compare
26812 (build_compound_expr): Wrap result for C99 if operands can be used
26813 in integer constant expressions.
26814 (build_c_cast): Update call to digest_init. Do not ignore
26815 overflow from casting floating-point constants to integers. Wrap
26816 results that could be confused with integer constant expressions,
26817 null pointer constants or floating-point constants.
26818 (c_cast_expr): Update call to groktypename. Handle expressions
26819 included in type name.
26820 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
26821 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
26822 Update calls to convert_for_assignment.
26823 (convert_for_assignment): Take new parameter
26824 null_pointer_constant. Do not strip nops or call
26825 decl_constant_value_for_broken_optimization. Set
26826 in_late_binary_op for conversions to boolean.
26827 (store_init_value): Update call to digest_init.
26828 (digest_init): Take new parameter null_pointer_constant. Do not
26829 call decl_constant_value_for_broken_optimization. pedwarn for
26830 initializers not constant expressions. Update calls to
26831 convert_for_assignment.
26832 (constructor_nonconst): New.
26833 (struct constructor_stack): Add nonconst element.
26834 (really_start_incremental_init, push_init_level, pop_init_level):
26835 Handle constructor_nonconst and nonconst element.
26836 (set_init_index): Call constant_expression_warning for array
26838 (output_init_element): Fold value. Set constructor_nonconst as
26839 applicable. pedwarn for initializers not constant expressions.
26840 Update call to digest_init. Call constant_expression_warning
26841 where constant initializers are required.
26842 (process_init_element): Use c_save_expr.
26843 (c_finish_goto_ptr): Fold expression.
26844 (c_finish_return): Fold return value. Update call to
26845 convert_for_assignment.
26846 (c_start_case): Fold switch expression.
26847 (c_process_expr_stmt): Fold expression.
26848 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
26849 ensure statement expression is not evaluated in constant expression.
26850 (build_binary_op): Track whether results are integer constant
26851 expressions or may occur in such, disable folding and wrap results
26852 as applicable. Fold operands for -Wsign-compare warnings unless
26854 (c_objc_common_truthvalue_conversion): Handle results folded to
26855 integer constants that are not integer constant expressions.
26856 * doc/extend.texi: Document when typeof operands are evaluated,
26857 that condition of __builtin_choose_expr is an integer constant
26858 expression, and more about use of __builtin_constant_p in
26861 2009-03-29 Richard Guenther <rguenther@suse.de>
26863 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26864 propagate addresses of array references.
26866 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
26868 * regmove.c (perhaps_ends_bb_p): Remove.
26869 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
26870 from INSN and check that the main loop stays within that basic block.
26871 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26872 (regmove_forward_pass): Split out from regmove_optimize. Use
26873 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26874 (regmove_backward_pass): Split out from regmove_optimize. Use
26875 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26876 (regmove_optimize): Simplify.
26878 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26881 * config/i386/i386.c (classify_argument): Ignore flexible array
26882 member in struct and warn ABI change.
26884 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26886 * config/i386/i386-protos.h (ix86_agi_dependent): New.
26888 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26889 (ix86_adjust_cost): Updated.
26891 2009-03-29 Jan Hubicka <jh@suse.cz>
26893 PR middle-end/28850
26894 * tree-pass.h (pass_cleanup_eh): New function.
26895 (remove_unreachable_regions): Break code handling RTL
26896 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26897 that can not be reached by runtime.
26898 (can_be_reached_by_runtime): New function.
26899 (label_to_region_map): New function.
26900 (num_eh_regions): New function.
26901 (rtl_remove_unreachable_regions): New function.
26902 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26903 (remove_eh_region): New function.
26904 * except.h: Include sbitmap and vecprim.
26905 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26906 num_eh_regions): Declare.
26907 * passes.c (init_optimization_passes): Schedule cleanup_eh.
26908 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
26909 * tree-eh.c (tree_remove_unreachable_handlers): New function.
26910 (tree_empty_eh_handler_p): New function.
26911 (cleanup_empty_eh): New function.
26912 (cleanup_eh): New function.
26913 (pass_cleanup_eh): New function.
26915 2009-03-29 Jan Hubicka <jh@suse.cz>
26917 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26918 for removed regions.
26920 2009-03-29 Jan Hubicka <jh@suse.cz>
26922 * except.c (dump_eh_tree): Dump all datastructures.
26924 2009-03-29 Jan Hubicka <jh@suse.cz>
26926 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26927 (duplicate_eh_regions_1): Likewise.
26928 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26929 vector; call EH verification.
26930 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26931 Be ready for region being removed.
26933 2009-03-29 Jan Hubicka <jh@suse.cz>
26935 * bitmap.c (bitmap_last_set_bit): New function.
26936 * bitmap.h (bitmap_last_set_bit): Declare.
26938 2009-03-29 David Ayers <ayers@fsfe.org>
26941 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26942 by calling objc_compare_types and surpress warnings about
26943 incompatible C pointers that are compatible ObjC pointers.
26945 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
26947 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26948 call initialize_inline_failed.
26949 (initialize_inline_failed): Move it from here ...
26950 * cgraph.c (initialize_inline_failed): ... to here.
26951 (cgraph_create_edge): Call initialize_inline_failed rather than
26952 setting inline_failed directly.
26954 2009-03-29 Ben Elliston <bje@au.ibm.com>
26957 * sysv4.opt (msdata): Improve comment.
26958 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26959 * sysv4.h (SVR4_ASM_SPEC): Likewise.
26961 2009-03-29 Ben Elliston <bje@au.ibm.com>
26964 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26965 load and store attributes.
26967 2009-03-29 Ben Elliston <bje@au.ibm.com>
26969 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26970 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26971 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26972 * doc/extend.texi (X86 Built-in Functions): Add index entries for
26973 __builtin_infq and __builtin_huge_valq.
26975 2009-03-28 Anatoly Sokolov <aesok@post.ru>
26977 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26979 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26980 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26982 2009-03-28 Xinliang David Li <davidxl@google.com>
26984 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
26985 (do_dbg_cnt): New function.
26987 2009-03-28 Jan Hubicka <jh@suse.cz>
26989 Merge from pretty-ipa:
26991 2009-03-27 Jan Hubicka <jh@suse.cz>
26993 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26994 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26995 * passes.c (function_called_by_processed_nodes_p): New.
26996 * ipa-pure-const.c (check_call): Fix handling of operands.
26997 (analyze_function): Dump debug output for skipped bodies.
26998 (local_pure_const): Use function_called_by_processed_nodes_p.
26999 * dwarf2out.c (reference_to_unused): Use output.
27000 * passes.c (do_per_function_toporder): Likewise.
27002 2008-11-12 Jan Hubicka <jh@suse.cz>
27004 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
27005 * ipa-pure-const.c (funct_state_d): Add can throw field; make
27006 state_set_in_source enum
27007 (check_decl): Ignore memory tags; do not set fake looping flags;
27009 (check_operand, check_tree, check_rhs_var, check_lhs_var,
27010 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
27011 (check_call, analyze_function): Rewrite.
27013 (add_new_function): Update call of analyze_function.
27014 (generate_summary): Add call of analyze_function.
27015 (propagate): Propagate can_throw; handle state_set_in_source correctly.
27016 (local_pure_const): New function.
27017 (pass_local_pure_const): New pass.
27018 * ipa-inline.c (inline_transform): Set after_inlining.
27019 * tree-eh.c (stmt_can_throw_external): New.
27020 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
27021 work with aliasing built.
27022 * tree-flow.h (stmt_can_throw_external): New.
27023 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
27024 and local pure/const pass in early and late optimization queue.
27026 2009-03-28 Martin Jambor <mjambor@suse.cz>
27028 * fold-const.c (get_pointer_modulus_and_residue): New parameter
27030 (fold_binary): Allow function decl aligment consideration is the
27031 second argument is integer constant one.
27032 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
27033 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
27034 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
27036 2009-03-28 Jan Hubicka <jh@suse.cz>
27038 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
27039 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
27040 * function.h (rtl_data): Add nothrow flag.
27041 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
27042 set DECL_NOTHROW for AVAILABLE functions.
27044 2009-03-28 Jakub Jelinek <jakub@redhat.com>
27046 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
27047 following vector keyword has expansion starting with pixel or bool
27048 keyword, expand vector to __vector and pixel or bool to __pixel or
27052 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
27053 warn_if_disallowed_function_p): Removed.
27054 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
27055 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
27056 warning_if_disallowed_function_p.
27057 * flags.h (warn_if_disallowed_function_p,
27058 warn_disallowed_functions): Removed.
27059 * common.opt (Wdisallowed-function-list=): Removed.
27060 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
27062 2009-03-28 Richard Guenther <rguenther@suse.de>
27064 PR tree-optimization/38723
27065 * tree-ssa-pre.c (compute_avail): Add all default definitions to
27068 2009-03-28 Jan Hubicka <jh@suse.cz>
27070 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
27071 test introduced by my previous patch.
27073 2009-03-28 Richard Guenther <rguenther@suse.de>
27075 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
27076 the PHIs value undefined.
27078 2009-03-28 Jan Hubicka <jh@suse.cz>
27080 * tree-pass.h (pass_fixup_cfg): New pass.
27081 * ipa-inline.c (inline_transform): Set
27082 always_inline_functions_inlined/after_inlining.
27083 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
27084 (pass_fixup_cfg): New pass.
27085 * passes.c (init_optimization_passes): Add fixup_cfg.
27087 2009-03-28 Richard Guenther <rguenther@suse.de>
27089 PR tree-optimization/38458
27090 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
27091 argument use the arguments copy-of value.
27093 2009-03-28 Richard Guenther <rguenther@suse.de>
27095 PR tree-optimization/38180
27096 * tree-ssa-ccp.c (get_default_value): Simplify.
27097 (likely_value): Likewise.
27098 (surely_varying_stmt_p): Properly handle VOP case.
27099 (ccp_initialize): Likewise.
27100 (ccp_fold): Handle propagating through *&.
27101 (fold_const_aggregate_ref): Also handle decls.
27103 2009-03-28 Jan Hubicka <jh@suse.cz>
27105 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27106 * cgraph.h (cgraph_node): Likewise.
27107 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
27108 (cgraph_reset_node): Use process flag.
27109 (cgraph_mark_functions_to_output): Likewise.
27110 (cgraph_expand_function): Likewise.
27111 (cgraph_expand_all_functions): Likewise.
27112 (cgraph_output_in_order): Likewise.
27113 * dwarf2out.c (reference_to_unused): Likewise.
27114 * passes.c do_per_function_toporder): Likewise.
27116 2009-03-28 Jan Hubicka <jh@suse.cz>
27118 Bring from lto-branch:
27120 2008-09-03 Doug Kwan <dougkwan@google.com>
27122 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27123 enums instead of reason strings.
27124 * cgraph.c (cgraph_create_edge): Same.
27125 (cgraph_inline_failed_string): New function.
27126 * cgraph.h (cgraph_inline_failed_t): New enum type.
27127 (cgraph_inline_failed_string): New prototype.
27128 (struct cgraph_edge): Change type of INLINED_FAILED from constant
27129 char pointer to cgraph_inline_failed_t.
27130 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27131 (cgraph_default_inline_p): Ditto.
27132 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27133 to cgraph_inline_failed_t pointer.
27134 * cif-code.def: New file.
27135 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27137 (cgraph_check_inline_limits): Change type of REASON to pointer to
27138 cgraph_inline_failed_t. Replace reason strings with enums.
27139 (cgraph_default_inline_p): Ditto.
27140 (cgraph_recursive_inlining_p): Ditto.
27141 (update_caller_keys): Change type of FAILED_REASON to
27142 cgraph_inline_failed_t.
27143 (cgraph_set_inline_failed): Change type of REASON to pointer to
27144 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
27145 convert enums to strings for text output.
27146 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27147 to be of type cgraph_inline_failed_t. Replace reason strings with
27148 enums. Call cgraph_inline_failed_string to covert enums
27149 to strings for text output.
27150 (cgraph_decide_inlining): Replace reason strings with enums.
27151 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27152 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
27154 * tree-inline.c (expand_call_inline): Change type of REASON
27155 to cgraph_inline_failed_t. Replace reason strings with enums.
27156 Call cgraph_inline_failed_string for text output.
27157 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27160 2009-03-28 Jan Hubicka <jh@suse.cz>
27162 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27163 cgraph_clone_node): Remove master clone handling.
27164 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27165 * cgraph.h (master_clone): Remove.
27166 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27167 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27168 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27170 2009-03-28 Jan Hubicka <jh@suse.cz>
27172 * cgraph.c (cgraph_function_body_availability): Functions declared
27173 inline are always safe to assume that it is not going to be replaced.
27175 2009-03-28 Richard Guenther <rguenther@suse.de>
27177 PR tree-optimization/38513
27178 * tree-ssa-pre.c (eliminate): Remove redundant stores.
27179 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27180 EXC_PTR_EXPR and FILTER_EXPR.
27181 (get_ref_from_reference_ops): Likewise.
27183 2009-03-28 Richard Guenther <rguenther@suse.de>
27185 PR tree-optimization/38968
27186 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27187 Use FLOOR_MOD_EXPR to compute misalignment.
27189 2009-03-28 Richard Guenther <rguenther@suse.de>
27191 PR tree-optimization/37795
27192 * tree.h (combine_comparisons): Declare.
27193 * fold-const.c (combine_comparisons): Export.
27194 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27196 (ifcombine_iforif): Use combine_comparisons.
27198 2009-03-28 Jan Hubicka <jh@suse.cz>
27200 * tree-eh.c (inlinable_call_p): New function.
27201 (make_eh_edges): Use it.
27202 (verify_eh_edges): Use it.
27203 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27204 * except.c (reachable_next_level): Add inlinable_function argument
27205 (sjlj_find_directly_reachable_regions): Update.
27206 (add_reachable_handler): Do not set saw_any_handlers.
27207 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27208 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27209 Add new inlinable call parameter.
27210 (can_throw_internal, can_throw_external): Update.
27211 * except.h (can_throw_internal_1, can_throw_external_1,
27212 foreach_reachable_handler): Update declaration.
27214 2009-03-28 Joseph Myers <joseph@codesourcery.com>
27216 * config/arm/t-arm-coff, config/h8300/coff.h,
27217 config/i386/i386-aout.h, config/i386/i386-coff.h,
27218 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27219 config/pdp11/2bsd.h, config/rs6000/aix41.h,
27220 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27221 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27222 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27223 sys-types.h: Remove.
27224 * Makefile.in: Remove protoize and fixproto support and references
27226 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27227 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27229 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27230 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27231 unprotoize$(exeext).
27232 (rest.encap): Don't depend on $(STMP_FIXPROTO)
27233 (.PHONY): Don't depend on proto.
27234 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27235 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27236 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27237 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27238 build/gen-protos.o, build/scan.o, xsys-protos.h,
27239 build/fix-header$(build_exeext), build/fix-header.o,
27240 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27241 stmp-install-fixproto): Remove.
27242 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27243 SYSCALLS.c or fixproto files.
27244 (install-common): Don't install protoize.
27245 (install-headers-tar, install-headers-cpio, install-headers-cp):
27246 Don't depend on $(STMP_FIXPROTO).
27247 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
27248 install fixproto files or write out fixproto settings.
27249 (uninstall): Don't uninstall protoize.
27250 * config.gcc (use_fixproto): Remove.
27251 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27252 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27253 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27254 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27255 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27256 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27257 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27258 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27259 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27260 * config/t-vxworks (STMP_FIXPROTO): Remove.
27261 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27262 STMP_FIXPROTO): Remove.
27263 * config.in, configure: Regenerate.
27264 * crtstuff.c (gid_t, uid_t): Don't undefine.
27265 * doc/install.texi: Change m68k-coff to m68k-elf in example.
27266 (arm-*-coff, arm-*-aout: Remove target entries.
27267 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27268 Remove mention of AIX 4.1.
27269 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27270 * doc/invoke.texi (Running Protoize): Remove.
27271 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27272 (Protoize Caveats): Remove.
27273 * tsystem.h: Update comments on headers assumed to exist.
27275 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
27277 * genautomata.c: Add a new year to the copyright. Add a new
27279 (struct insn_reserv_decl): Add comments for member bypass_list.
27280 (find_bypass): Remove.
27281 (insert_bypass): New.
27282 (process_decls): Use insert_bypass.
27283 (output_internal_insn_latency_func): Output all bypasses with the
27284 same input insn in one switch case.
27286 * rtl.def (define_bypass): Describe bypass choice.
27287 * doc/md.texi (define_bypass): Ditto.
27289 2009-03-27 Richard Guenther <rguenther@suse.de>
27291 * gimplify.c (mark_addressable): Export.
27292 * tree-flow.h (mark_addressable): Declare.
27293 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27294 * tree-ssa.c (verify_phi_args): Verify that address taken
27295 variables have TREE_ADDRESSABLE set.
27297 2009-03-27 Richard Guenther <rguenther@suse.de>
27299 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27300 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
27301 Do not mark decls TREE_ADDRESSABLE.
27302 (build_fold_addr_expr): Adjust.
27303 (fold_addr_expr): Remove.
27304 (fold_unary): Use build_fold_addr_expr.
27305 (fold_comparison): Likewise.
27306 (split_address_to_core_and_offset): Likewise.
27307 * coverage.c (tree_coverage_counter_addr): Mark the array decl
27309 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27310 (gimplify_modify_expr_to_memcpy): Mark source and destination
27312 * omp-low.c (create_omp_child_function): Mark the object decl
27314 (lower_rec_input_clauses): Mark the var we take the address of
27316 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27318 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27320 PR middle-end/39315
27321 * cfgexpand.c (expand_one_stack_var_at): Change alignment
27322 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27324 2009-03-27 Richard Guenther <rguenther@suse.de>
27326 PR tree-optimization/39120
27327 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27329 (handle_lhs_call): Process return constraints. Add escape
27330 constraints if necessary.
27331 (handle_const_call): Fill out return constraints. Make nested
27332 case more precise. Avoid consttmp if possible.
27333 (handle_pure_call): Fill out return constraints. Avoid
27334 callused if possible.
27335 (find_func_aliases): Simplify call handling.
27337 2009-03-27 Richard Guenther <rguenther@suse.de>
27339 PR tree-optimization/39120
27340 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27341 as a representative.
27342 (solve_graph): Do propagate CALLUSED.
27343 (handle_pure_call): Use a scalar constraint from CALLUSED for
27345 (find_what_p_points_to): CALLUSED shall not appear in poins-to
27348 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27351 * c-common.c (handle_aligned_attribute): Properly check alignment
27352 overflow. Use (1U << i) instead of (1 << i).
27354 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27356 * expr.h (get_mem_align_offset): Updated.
27358 * tree.h (tree_decl_common): Change align to "unsigned int" and
27359 move it before pointer_alias_set.
27361 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27362 Jakub Jelinek <jakub@redhat.com>
27365 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27366 gr_register_operand with gr_reg_or_0_operand.
27367 (cmpxchg_rel_di): Likewise.
27368 (sync_lock_test_and_set<mode>): Likewise.
27370 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27372 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27373 (true_regnum): Likewise.
27375 * rtlanal.c (subreg_info): Moved to ...
27376 * rtl.h (subreg_info): Here. New.
27377 (subreg_get_info): New.
27379 * rtlanal.c (subreg_get_info): Make it extern.
27381 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27384 * config/i386/i386.c (ix86_abi): New.
27385 (override_options): Handle -mabi=.
27386 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27387 (ix86_call_abi_override): Likewise.
27388 (init_cumulative_args): Likewise.
27389 (function_arg_advance): Likewise.
27390 (function_arg_64): Likewise.
27391 (function_arg): Likewise.
27392 (ix86_pass_by_reference): Likewise.
27393 (ix86_function_value_regno_p): Likewise.
27394 (ix86_build_builtin_va_list_abi): Likewise.
27395 (setup_incoming_varargs_64): Likewise.
27396 (is_va_list_char_pointer): Likewise.
27397 (ix86_init_machine_status): Likewise.
27398 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27399 (ix86_function_type_abi): Return enum calling_abi. Rewrite
27400 for 64bit. Replace DEFAULT_ABI with ix86_abi.
27401 (ix86_function_abi): Make it static and return enum calling_abi.
27402 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
27404 (ix86_fn_abi_va_list): Updated.
27406 * config/i386/i386.h (ix86_abi): New.
27407 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27408 (CONDITIONAL_REGISTER_USAGE): Likewise.
27409 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27410 (machine_function): Likewise.
27412 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27414 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27415 (STACK_BOUNDARY): Likewise.
27416 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27418 * config/i386/i386.opt (mabi=): New.
27420 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27421 return enum calling_abi.
27422 (ix86_function_type_abi): Likewise.
27423 (ix86_function_abi): Removed.
27425 * doc/invoke.texi: Document -mabi= option for x86.
27427 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27429 * builtins.c (real_dconstp): Delete.
27430 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27432 2009-03-27 Dodji Seketeli <dodji@redhat.com>
27433 Jakub Jelinek <jakub@redhat.com>
27436 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27437 (gen_subprogram_die): When a function is explicit, generate the
27438 DW_AT_explicit attribute.
27439 * langhooks.h (struct lang_hooks_for_decls): Add
27440 function_decl_explicit_p langhook.
27441 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27442 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27444 2009-03-27 Jakub Jelinek <jakub@redhat.com>
27446 * builtins.c (fold_builtin_memory_op): Optimize memmove
27447 into memcpy if we can prove source and destination don't overlap.
27449 * tree-inline.c: Include gt-tree-inline.h.
27450 (clone_fn_id_num): New variable.
27451 (clone_function_name): New function.
27452 (tree_function_versioning): Use it.
27453 * Makefile.in (GTFILES): Add tree-inline.c.
27455 2009-03-27 Mark Mitchell <mark@codesourcery.com>
27457 * BASE-VER: Change to 4.5.0.
27459 2009-03-27 Xinliang David Li <davidxl@google.com>
27461 PR tree-optimization/39557
27462 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27464 2009-03-27 Xinliang David Li <davidxl@google.com>
27466 PR tree-optimization/39548
27467 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27470 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27472 * c-common.c (pointer_int_sum): Use %wd on return from
27475 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27477 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27478 on return from tree_low_cst.
27480 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
27483 * ginclude/stdarg.h (va_copy): Define also for
27484 __GXX_EXPERIMENTAL_CXX0X__.
27486 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27489 * builtins.h (c_strlen): Do not warn here.
27490 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27491 * c-common.c (pointer_int_sum): Take an explicit location.
27492 Warn about offsets out of bounds.
27493 * c-common.h (pointer_int_sum): Adjust declaration.
27495 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27497 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27500 2009-03-26 Jakub Jelinek <jakub@redhat.com>
27503 * opts.c (warn_if_disallowed_function_p): Don't assume
27504 get_callee_fndecl must return non-NULL.
27506 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
27508 PR rtl-optimization/39522
27509 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27510 when reg_reloaded_valid is set.
27512 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27514 * config/spu/divv2df3.c: New file.
27515 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27516 (DPBIT_FUNCS): Filter out _div_df.
27518 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
27520 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27521 a jump insn, count that jump in the distance to the loop start.
27523 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
27526 * config/sh/sh.c (calc_live_regs): Fix condition for global
27527 registers except PIC_OFFSET_TABLE_REGNUM.
27529 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
27532 * doc/invoke.texi (-mconsole): New.
27534 (-mno-cygwin): New.
27536 (-mnop-fun-dllimport): New.
27540 (sub section "i386 and x86-64 Windows Options"): New.
27542 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
27544 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27545 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27547 2009-03-25 Richard Guenther <rguenther@suse.de>
27549 PR middle-end/39497
27550 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27553 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
27555 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27556 neither of haifa/selective schedulers are working.
27558 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27560 * doc/invoke.texi (Debugging Options): Fix description of
27561 -fno-merge-debug-strings.
27563 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
27565 * config/cris/libgcc.ver: New version-script.
27566 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27568 * configure.ac <GAS features, nop mnemonic>: Add pattern
27569 crisv32-*-* for "nop".
27570 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27571 * configure: Regenerate.
27573 2009-03-24 Ira Rosen <irar@il.ibm.com>
27575 PR tree-optimization/39529
27576 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27577 mark_sym_for_renaming for the tag copied to the new vector
27580 2009-03-24 Arthur Loiret <aloiret@debian.org>
27582 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27583 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27584 EXTRA_SPEC_FUNCTIONS.
27585 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27586 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27587 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27588 -march and -mtune options.
27590 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
27592 * config/m68k/t-rtems: Add m5329 multilib.
27594 2009-03-24 Dodji Seketeli <dodji@redhat.com>
27595 Jakub Jelinek <jakub@redhat.com>
27598 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27601 2009-03-23 Jakub Jelinek <jakub@redhat.com>
27604 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27605 instead of c_parser_expression_conv, if original_code isn't one of the
27606 4 allowed comparison codes, fail.
27608 2009-03-23 Richard Guenther <rguenther@suse.de>
27610 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27611 * tree.h (struct tree_type): Likewise.
27612 * reload.h (struct insn_chain): Likewise.
27613 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27614 * function.h (struct function): Likewise.
27615 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27617 2009-03-23 Jakub Jelinek <jakub@redhat.com>
27619 PR tree-optimization/39516
27620 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27622 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
27624 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
27625 should be set true if BITS_PER_WORD of target is bigger than 32
27627 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
27629 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27630 Translate -B-options to -rpath-link. Correct existing
27631 rpath-link and conditionalize on !nostdlib.
27633 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27635 * doc/extend.texi (Function Attributes, Variable Attributes):
27637 * doc/invoke.texi (Debugging Options, Optimize Options)
27638 (i386 and x86-64 Options, MCore Options): Likewise.
27640 2009-03-20 Jakub Jelinek <jakub@redhat.com>
27643 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27644 it for block local namespace aliases.
27645 (gen_decl_die): Pass context_die to gen_namespace_die.
27647 2009-03-19 Jakub Jelinek <jakub@redhat.com>
27650 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27651 minimum or maximum value.
27653 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
27655 * reginfo.c (globalize_reg): Recompute derived reg sets.
27657 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
27660 * libgcc2.c (mprotect): Do not use signed arguments for
27661 VirtualProtect, use DWORD arguments. Also fix the 'may
27662 be used uninitialized' warning for the np variable.
27664 2009-03-19 Jakub Jelinek <jakub@redhat.com>
27667 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27668 functions using regparm calling conventions when not optimizing.
27669 (ix86_function_sseregparm): Similarly for sseregparm calling
27672 2009-03-19 Li Feng <nemokingdom@gmail.com>
27674 PR middle-end/39500
27675 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27676 dependence if the first conflict is after niter iterations.
27678 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
27680 PR middle-end/38609
27681 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27682 functions with dynamic stack-pointer adjustments.
27684 2009-03-19 Ben Elliston <bje@au.ibm.com>
27686 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27687 option; change to -msdata=data.
27689 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27691 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27694 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
27697 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27699 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
27701 * doc/invoke.texi (Code Gen Options): Expand discussion of
27704 2009-03-18 Jakub Jelinek <jakub@redhat.com>
27706 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27707 * matrix-reorg.c (struct matrix_info): Likewise.
27708 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27709 * rtl.h (struct mem_attrs): Likewise.
27710 * df.h (struct df): Likewise.
27711 * tree-data-ref.h (struct data_dependence_relation): Likewise.
27712 * ira-int.h (struct ira_allocno): Likewise.
27713 * df-scan.c (struct df_collection_rec): Likewise.
27714 * ira.c (struct equivalence): Likewise.
27715 * function.c (struct temp_slot): Likewise.
27716 * cfgloop.h (struct loop): Likewise.
27719 * function.c (use_register_for_decl): When not optimizing, disregard
27720 register keyword for variables with types containing methods.
27722 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
27724 PR middle-end/39447
27725 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27726 (is_simple_operand): Call contains_component_ref_p before calling data
27727 reference analysis that would fail on COMPONENT_REFs.
27729 * tree-vrp.c (search_for_addr_array): Fix formatting.
27731 2009-03-18 Richard Guenther <rguenther@suse.de>
27733 * tree-vect-transform.c (vect_loop_versioning): Fold the
27734 generated comparisons.
27735 * tree-vectorizer.c (set_prologue_iterations): Likewise.
27736 (slpeel_tree_peel_loop_to_edge): Likewise.
27738 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27740 PR middle-end/37805
27741 * opts.c (print_specific_help): In addition to `undocumented',
27742 accept `separate' and `joined' flags if passed alone. Describe
27743 output by the first matched one of those.
27744 (common_handle_option): Skip over empty strings.
27745 * gcc.c (display_help): Fix help string for `--help='.
27746 * doc/invoke.texi (Option Summary, Overall Options): With
27747 `--help=', classes and qualifiers can both be repeated, but
27748 only the latter can be negated. One should not pass only
27749 negated qualifiers. Fix markup and examples.
27752 2008-10-14 Jakub Jelinek <jakub@redhat.com>
27753 PR middle-end/37805
27754 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27755 and -fhelp=separate.
27757 2009-03-17 Jing Yu <jingyu@google.com>
27759 PR middle-end/39378
27760 * function.h (struct rtl_data): Move is_thunk from here...
27761 (struct function): ...to here.
27762 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
27763 * varasm.c (assemble_start_function): Change is_thunk from crtl to
27765 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27767 (alpha_does_function_need_gp, alpha_start_function): Likewise.
27768 (alpha_output_function_end_prologue): Likewise.
27769 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27770 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27771 (rs6000_output_function_epilogue): Likewise.
27772 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
27774 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
27777 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27778 from different units in a single alternative.
27779 (*truncdfsf_i387): Ditto.
27780 (*truncxfsf2_mixed): Ditto.
27781 (*truncxfdf2_mixed): Ditto.
27783 2009-03-17 Jakub Jelinek <jakub@redhat.com>
27785 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27786 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27789 * tree-ssa-live.c (remove_unused_locals): Don't remove local
27790 unused non-artificial variables when not optimizing.
27793 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27794 DW_TAG_imported_module even if decl is IMPORTED_DECL with
27795 NAMESPACE_DECL in its DECL_INITIAL.
27797 PR middle-end/39443
27798 * optabs.c (set_user_assembler_libfunc): New function.
27799 * expr.h (set_user_assembler_libfunc): New prototype.
27800 * c-common.c: Include libfuncs.h.
27801 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27802 for memcmp, memset, memcpy, memmove and abort.
27803 * Makefile.in (c-common.o): Depend on libfuncs.h.
27806 * dwarf2out.c (gen_inlined_enumeration_type_die,
27807 gen_inlined_structure_type_die, gen_inlined_union_type_die,
27808 gen_tagged_type_instantiation_die): Removed.
27809 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27812 2009-03-17 Janis Johnson <janis187@us.ibm.com>
27815 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27817 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27818 (check-parallel-%): Ditto.
27819 (check-consistency): Ditto.
27821 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
27823 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27824 local variable rhs by NULL_TREE.
27826 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27829 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
27831 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27834 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
27836 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27839 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27840 for ms->sysv ABI calls only in 64bit mode.
27842 * config/i386/i386.md (untyped_call): Support 32bit.
27844 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
27846 * doc/extend.texi: Replace x86_65 with x86_64.
27848 2009-03-16 Jakub Jelinek <jakub@redhat.com>
27850 PR tree-optimization/39455
27851 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27852 mismatches for POINTER_TYPE_P (type).
27853 (number_of_iterations_le): Likewise.
27855 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27857 * config/picochip/picochip.c: Removed profiling support.
27858 * config/picochip/picochip.md: Removed profiling instruction.
27859 * config/picochip/picochip.h: Removed profiling builtin.
27861 2009-03-16 Joseph Myers <joseph@codesourcery.com>
27863 * doc/install.texi (--with-host-libstdcxx): Document.
27865 2009-03-14 Anatoly Sokolov <aesok@post.ru>
27868 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27869 generate a warning if the function name does not begin with
27870 "__vector" and the function has either the 'signal' or 'interrupt'
27871 attribute, from here to ...
27872 (avr_declare_function_name): ...here. New function.
27873 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27874 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27876 2009-03-14 Jakub Jelinek <jakub@redhat.com>
27879 * cse.c (fold_rtx): Don't modify original const_arg1 when
27880 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27881 separate variable instead.
27882 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27883 from out of range shift counts.
27884 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27886 2009-03-13 Catherine Moore <clm@codesourcery.com>
27888 * config/i386/x-mingw32 (host-mingw32.o): Replace
27889 diagnostic.h with $(DIAGNOSTIC_H).
27891 2009-03-12 Jakub Jelinek <jakub@redhat.com>
27894 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27896 * config/i386/sync.md (sync_compare_and_swap<mode>,
27897 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27898 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27900 (sync_double_compare_and_swapdi_pic,
27901 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27902 cmpxchg8b_pic_memory_operand instead of just memory_operand.
27904 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27907 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
27909 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27912 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27913 (avx_addsubv4df3): Likewise.
27914 (*avx_addsubv4sf3): Likewise.
27915 (sse3_addsubv4sf3): Likewise.
27917 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27920 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
27922 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
27925 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27926 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27927 registers for allocnos created from user-defined variables.
27929 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27932 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27933 of non-integer mode as well.
27935 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
27937 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27938 for functions for which the parameter types are unknown.
27940 2009-03-11 Jakub Jelinek <jakub@redhat.com>
27943 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
27944 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27945 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27946 * config/i386/i386.c (ix86_local_alignment): For
27947 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27948 long long variables on the stack to avoid dynamic realignment.
27949 Allow the first argument to be a decl rather than type.
27950 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27952 2009-03-11 Nick Clifton <nickc@redhat.com>
27955 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27957 Add description to mno-lsim option.
27958 * config/mcore/mcore.h: Remove comment about deprecated m4align
27960 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27961 * doc/invoke.texi: Add description of mno-lsim and
27962 mstack-increment options.
27964 * config/fr30/fr30.opt: Document the -mno-lsim option.
27965 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27966 and -mno-lsim options.
27968 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27970 * fold-const.c (fold_comparison): Only call fold_inf_compare
27971 if the mode supports infinities.
27973 2009-03-11 Jason Merrill <jason@redhat.com>
27976 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27977 end already did. Notice GIMPLE_CALL modifications of the result.
27978 Don't copy debug information from an ignored decl or a decl from
27981 2009-03-10 Richard Guenther <rguenther@suse.de>
27982 Nathan Froyd <froydnj@codesourcery.com>
27984 PR middle-end/37850
27985 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
27986 (__divMODE3): Likewise.
27988 2009-03-09 Jakub Jelinek <jakub@redhat.com>
27990 PR tree-optimization/39394
27991 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27992 DECL_SIZE_UNIT of variable length FIELD_DECLs.
27994 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27996 * recog.c (verfiy_changes): Disallow renaming of hard regs in
27997 inline asms for register asm ("") declarations.
27999 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
28001 * fold-const.c (fold_unary): Fix comment.
28003 2009-03-07 Jan Hubicka <jh@suse.cz>
28006 * tree-inline.c (setup_one_parameter): Do replacement of const
28007 argument by constant in SSA form.
28009 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28011 PR middle-end/38028
28012 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
28013 determine alignment passed to assign_stack_local.
28014 (assign_parms_unsplit_complex): Likewise.
28015 * except.c (sjlj_build_landing_pads): Likewise.
28017 2009-03-06 Jakub Jelinek <jakub@redhat.com>
28019 PR middle-end/39360
28020 * tree-flow.h (add_referenced_var): Return bool instead of void.
28021 * tree-dfa.c (add_referenced_var): Return result of
28022 referenced_var_check_and_insert call.
28023 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
28024 of referenced_var_check_and_insert.
28027 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
28028 (gen_variable_die): Emit DW_AT_location on abstract static variable's
28029 DIE, don't emit it if abstract origin already has it.
28030 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
28031 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
28033 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28035 * genpreds.c (needs_variable): Fix parentheses at variable name
28037 (write_tm_constrs_h): Indent generated code.
28039 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28041 * doc/extend.texi (Function Attributes): Add documentation
28042 for isr attributes.
28044 2009-03-06 Jakub Jelinek <jakub@redhat.com>
28047 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
28048 take locus from its DECL_SOURCE_LOCATION instead of input_location.
28050 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
28052 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
28055 2009-03-05 Jakub Jelinek <jakub@redhat.com>
28058 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
28059 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
28061 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
28063 * config/i386/i386.md (R8_REG, R9_REG): New constants.
28064 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
28065 constants instead of magic numbers.
28066 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
28068 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
28069 (x86_64_ms_abi_int_parameter_registers): Ditto.
28070 (x86_64_int_return_registers): Ditto.
28071 (ix86_maybe_switch_abi): Ditto.
28072 (ix86_expand_call): Ditto for clobbered_registers array.
28073 (ix86_hard_regno_mode_ok): Ditto.
28074 (x86_extended_QIreg_mentioned_p): Ditto.
28076 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
28078 PR tree-optimization/39349
28079 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
28081 * combine.c (gen_lowpart_for_combine): Use omode when generating
28084 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
28086 PR rtl-optimization/39235
28087 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
28089 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
28091 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
28093 2009-03-04 Richard Guenther <rguenther@suse.de>
28095 PR tree-optimization/39362
28096 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
28097 that occur in abnormal PHIs should be varying.
28099 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
28101 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
28103 (simple_iv): Take loop as an argument instead of statement.
28104 * tree-scalar-evolution.h (simple_iv): Declaration changed.
28105 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
28107 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
28109 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
28110 * matrix-reorg.c (analyze_transpose): Ditto.
28111 * tree-data-ref.c (dr_analyze_innermost): Ditto.
28112 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28113 * tree-predcom.c (ref_at_iteration): Ditto.
28114 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
28116 2009-03-04 Richard Guenther <rguenther@suse.de>
28118 PR tree-optimization/39358
28119 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28120 escaped_id and callused_id.
28121 (solve_graph): Likewise.
28123 2009-03-04 Richard Guenther <rguenther@suse.de>
28125 PR tree-optimization/39339
28126 * tree-sra.c (try_instantiate_multiple_fields): Make it
28127 no longer ICE on the above.
28129 2009-03-03 Joseph Myers <joseph@codesourcery.com>
28131 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28132 that fits within Pmode.
28134 2009-03-03 Steve Ellcey <sje@cup.hp.com>
28136 PR middle-end/10109
28137 * tm.texi (LIBCALL_VALUE): Update description.
28139 2009-03-03 Steve Ellcey <sje@cup.hp.com>
28141 PR middle-end/34443
28142 * doc/extend.texi (section): Update description.
28144 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
28146 PR middle-end/39345
28147 * tree-inline.c (remapped_type): New.
28148 (can_be_nonlocal): Call remapped_type instead of remap_type.
28150 2009-03-03 Jakub Jelinek <jakub@redhat.com>
28153 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28154 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28156 2009-03-03 Richard Guenther <rguenther@suse.de>
28158 PR middle-end/39272
28159 * tree.c (tree_nonartificial_location): New function.
28160 * tree.h (tree_nonartificial_location): Declare.
28161 * builtins.c (expand_builtin_memory_chk): Provide location
28162 of the call location for artificial function pieces.
28163 (maybe_emit_chk_warning): Likewise.
28164 (maybe_emit_sprintf_chk_warning): Likewise.
28165 (maybe_emit_free_warning): Likewise.
28166 * expr.c (expand_expr_real_1): Likewise.
28168 2009-03-03 Jakub Jelinek <jakub@redhat.com>
28170 PR tree-optimization/39343
28171 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28172 COMPONENT_REF t has ARRAY_TYPE.
28174 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
28176 PR middle-end/39335
28177 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28178 when the type precision of the induction variable should be
28179 larger than the type precision of nit.
28180 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28181 * graphite.c (graphite_loop_normal_form): Same.
28182 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28184 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
28186 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28187 (*call_1_rex64_ms_sysv): Use named constants instead of magic
28188 numbers to describe clobbered registers.
28189 (*call_value_0_rex64_ms_sysv): Ditto.
28190 * config/i386/mmx.md (mmx_emms): Ditto.
28191 (mmx_femms): Ditto.
28193 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
28195 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28198 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28200 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28201 (spu_section_type_flags): New function.
28203 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
28205 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28206 reg_class_contents of FLOAT_REGS into a temporary.
28208 2009-03-02 Richard Guenther <rguenther@suse.de>
28209 Ira Rosen <irar@il.ibm.com>
28211 PR tree-optimization/39318
28212 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28213 information to the vectorized statement.
28215 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
28217 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28218 variable. Use defined names instead of magic constants for REX SSE
28221 2009-03-01 Richard Guenther <rguenther@suse.de>
28223 PR tree-optimization/39331
28224 * omp-low.c (lower_send_shared_vars): Do not receive new
28225 values for the reference of DECL_BY_REFERENCE parms or results.
28227 2009-03-01 Jan Hubicka <jh@suse.cz>
28230 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28231 BLOCK_NONLOCALIZED_VAR): New macros.
28232 (tree_block): Add nonlocalized_vars.
28233 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28234 gen_decl_die): Add origin argument. Allow generation of die with
28235 origin at hand only.
28236 (gen_member_die, gen_type_die_with_usage, force_decl_die,
28237 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28239 (gen_block_die): Fix checking for unused blocks.
28240 (process_scope_var): Break out from .... ; work with origins only.
28241 (decls_for_scope) ... here; process nonlocalized list.
28242 (dwarf2out_ignore_block): Look for nonlocalized vars.
28243 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28245 (dump_scope_block): Dump them.
28246 * tree-inline.c (remap_decls): Handle nonlocalized vars.
28247 (remap_block): Likewise.
28248 (can_be_nonlocal): New predicate.
28249 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28251 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28253 * configure: Regenerate.
28255 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28257 * optc-gen.awk: No need to duplicate option flags twice.
28258 Reuse help texts for duplicate options which do not have any.
28260 * gcc.c (display_help): Document --version.
28262 * gcc.c (main): If print_help_list and verbose_flag, ensure
28263 driver output comes before subprocess output.
28265 * optc-gen.awk: Assign all remaining fields to help string,
28266 space-separated, for multi-line help in *.opt.
28268 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28269 -Wno-pedantic-ms-format is for MinGW targets only.
28271 * doc/options.texi (Option file format): Fix bad indentation,
28272 restoring dropped sentence.
28274 2009-02-28 Jan Hubicka <jh@suse.cz>
28276 * tree-inline.c (tree_function_versioning): Output debug info.
28278 2009-02-28 Jan Hubicka <jh@suse.cz>
28281 * tree-inline.c (setup_one_parameter): Do not copy propagate
28282 arguments when not optimizing.
28284 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
28287 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28288 (avx_addsubv4df3): Likewise.
28289 (*avx_addsubv4sf3): Likewise.
28290 (sse3_addsubv4sf3): Likewise.
28291 (*avx_addsubv2df3): Likewise.
28292 (sse3_addsubv2df3): Likewise.
28293 (avx_unpckhps256): Correct item selectors.
28294 (avx_unpcklps256): Likewise.
28295 (avx_unpckhpd256): Likewise.
28296 (avx_unpcklpd256): Likewise.
28298 2009-02-28 Jan Hubicka <jh@suse.cz>
28300 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28302 (copy_arguments_for_versioning): If var is declared don't declare it.
28303 (tree_function_versioning): First setup substitutions and then copy
28306 2009-02-27 Jan Hubicka <jh@suse.cz>
28309 * cgraph.h (varpool_output_debug_info): Remove.
28310 * cgraphunit.c (varpool_output_debug_info): Remove.
28311 * dwarf2out.c (deferred_locations_struct): New struct
28312 (deferred_locations): New type.
28313 (deferred_locations_list): New static var.
28314 (deffer_location): New function.
28315 (gen_variable_die): Use it.
28316 (decls_for_scope): Output info on local static vars.
28317 (dwarf2out_finish): Process deferred locations.
28318 * varpool.c (varpool_output_debug_info): Remove.
28320 2009-02-27 Jan Hubicka <jh@suse.cz>
28323 * tree.h (TREE_PROTECTED): Fix comment.
28324 (BLOCK_HANDLER_BLOCK): Remove.
28325 (struct tree_block): Remove handler_block add body_block.
28326 (inlined_function_outer_scope_p): New.
28327 (is_body_block): Remove.
28328 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28329 * dwarf2out.c (is_inlined_entry_point): Remove.
28330 (add_high_low_attributes): Use inlined_function_outer_scope_p.
28331 (gen_block_die): Use is_inlined_entry_point check. Remove body block
28333 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28334 * gimplify.c (gimplify_expr): Gimplify body blocks.
28335 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28336 block with multiple subblocks.
28337 (dump_scope_block): Prettier output; dump more flags and info.
28338 (dump_scope_blocks): New.
28339 (remove_unused_locals): Use dump_scope_blocks.
28340 * tree-flow.h (dump_scope_blocks): Declare.
28341 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28342 * stmt.c (is_body_block): Remove.
28343 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28344 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28346 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
28348 PR middle-end/39308
28349 * graphite.c (graphite_loop_normal_form): Do not call
28350 number_of_iterations_exit from a gcc_assert.
28352 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28354 * config/s390/s390.c (s390_swap_cmp): Look for conditional
28355 jumps if COND is NULL.
28356 (find_cond_jump): New function.
28357 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28358 * config/s390/s390.md: Remove z10_cobra attribute value.
28360 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
28362 * config/alpha/alpha.h (alpha_expand_mov): Return false if
28363 force_const_mem returns NULL_RTX.
28365 2009-02-26 Jan Hubicka <jh@suse.cz>
28368 * cgraph.h (varpool_output_debug_info): Remove.
28369 * cgraphunit.c (varpool_output_debug_info): Remove.
28370 * dwarf2out.c (deferred_locations_struct): New struct
28371 (deferred_locations): New type.
28372 (deferred_locations_list): New static var.
28373 (deffer_location): New function.
28374 (gen_variable_die): Use it.
28375 (decls_for_scope): Output info on local static vars.
28376 (dwarf2out_finish): Process deferred locations.
28377 * varpool.c (varpool_output_debug_info): Remove.
28379 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
28381 PR rtl-optimization/39241
28382 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28383 to subreg_offset_representable_p.
28385 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
28387 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28388 execute function prototype. Get f and nregs from max_reg_num
28389 and get_insns. Remove the first backward pass as it's dead,
28390 guard the forward pass by flag_expensive_optimizations.
28391 (rest_of_handle_regmove): Delete.
28392 (pass_regmove): Replace it with regmove_optimize.
28394 2009-02-25 Martin Jambor <mjambor@suse.cz>
28396 PR tree-optimization/39259
28397 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28398 calls_alloca function flags.
28399 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28400 calls are detected.
28402 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
28404 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28405 flags_set_1_rtx, flags_set_1_set): Delete.
28406 (regmove_optimize): Do not call mark_flags_life_zones.
28408 2009-02-24 Julian Brown <julian@codesourcery.com>
28411 * config/arm/arm.c (require_pic_register): Only set
28412 cfun->machine->pic_reg once per function.
28414 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
28416 * doc/invoke.texi (Link Options): Document an easier way to pass
28417 options that take arguments to the GNU linker using -Xlinker and -Wl.
28419 2009-02-24 Steve Ellcey <sje@cup.hp.com>
28422 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28424 2009-02-24 Richard Guenther <rguenther@suse.de>
28427 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28429 2009-02-24 Richard Guenther <rguenther@suse.de>
28430 Zdenek Dvorak <ook@ucw.cz>
28432 PR tree-optimization/39233
28433 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28434 from converting them to a generic type.
28436 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
28438 PR tree-optimization/39260
28439 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28440 contains a condition with a real type.
28441 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28443 2009-02-23 Jason Merrill <jason@redhat.com>
28446 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28447 narrowing_initializer_constant_valid_p.
28448 (narrowing_initializer_constant_valid_p): Don't return
28449 null_pointer_node for adding a pointer to itself.
28451 2009-02-23 Jan Hubicka <jh@suse.cz>
28454 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28457 2009-02-23 Jan Hubicka <jh@suse.cz>
28459 PR tree-optimization/37709
28460 * tree.c (block_ultimate_origin): Move here from dwarf2out.
28461 * tree.h (block_ultimate_origin): Declare.
28462 * dwarf2out.c (block_ultimate_origin): Move to tree.c
28463 * tree-ssa-live.c (remove_unused_scope_block_p):
28464 Eliminate blocks containig no instructions nor live variables nor
28466 (dump_scope_block): New function.
28467 (remove_unused_locals): Enable removal of dead blocks by default;
28468 enable dumping at TDF_DETAILS.
28470 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28472 * config/i386/i386.c (classify_argument): Don't allow COImode
28474 (function_arg_advance_32): Don't allow OImode.
28475 (function_arg_32): Likewise.
28476 (function_value_32): Likewise.
28477 (return_in_memory_32): Likewise.
28478 (function_arg_64): Remove OImode comment.
28480 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28483 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28484 ix86_expand_vector_set for V4DImode in 64bit mode only.
28485 (ix86_expand_vector_init_one_var): Likewise.
28487 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
28489 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28491 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28494 * loop-iv.c: Revert last change.
28495 * emit-rtl.c: Likewise.
28497 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28500 * config/i386/i386.c (type_natural_mode): Remove an extra
28501 space in the warning message.
28502 (function_value_32): Handle 32-byte vector modes.
28503 (return_in_memory_32): Likewise.
28505 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28507 * loop-iv.c (truncate_value): New function.
28508 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28510 (lowpart_subreg): Move to...
28511 * emit-rtl.c: ...here.
28513 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
28515 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28516 accidental and undocumented change at revision 140860.
28518 2009-02-21 Joseph Myers <joseph@codesourcery.com>
28520 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28521 take gimple_seq * arguments.
28522 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28523 types_compatible_p langhook.
28525 2009-02-20 Mark Mitchell <mark@codesourcery.com>
28526 Joseph Myers <joseph@codesourcery.com>
28528 * config/arm/arm.c (arm_builtin_va_list): New function.
28529 (arm_expand_builtin_va_start): Likewise.
28530 (arm_gimplify_va_arg_expr): Likewise.
28531 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28532 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28533 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28534 (va_list_type): New variable.
28535 (arm_mangle_type): Mangle va_list_type appropriately.
28537 2009-02-20 Jakub Jelinek <jakub@redhat.com>
28539 PR middle-end/39157
28540 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28541 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28542 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28543 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28544 parameter to 1000 for -O1 by default.
28545 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28547 * loop-invariant.c: Include params.h.
28548 (move_loop_invariants): Don't call move_single_loop_invariants on
28551 2009-02-20 Jaka Mocnik <jaka@xlab.si>
28553 * calls.c (emit_library_call_value_1): Use slot_offset instead of
28554 offset when calculating bounds for indexing stack_usage_map. Fixes
28555 a buffer overflow with certain target setups.
28557 2009-02-20 Jakub Jelinek <jakub@redhat.com>
28560 * calls.c (expand_call): Clear try_tail_call if caller and callee
28561 disagree in promotion of function return value.
28563 2009-02-19 Jakub Jelinek <jakub@redhat.com>
28566 * c-common.c (c_determine_visibility): If visibility changed and
28567 DECL_RTL has been already set, call make_decl_rtl to update symbol
28570 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
28573 * varasm.c (assemble_variable): Don't check DECL_NAME when
28574 globalizing a variable.
28576 2009-02-19 Joseph Myers <joseph@codesourcery.com>
28579 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28580 expression before any __builtin_trap call.
28581 * c-typeck.c (build_function_call): Convert and check function
28582 arguments before generating a call to a trap. Evaluate the
28583 function arguments before the trap.
28585 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
28588 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28589 (UNSPEC_FXAM_MEM): New unspec.
28590 (fxam<mode>2_i387_with_temp): New insn and split pattern.
28591 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
28592 memory using fxam<mode>2_i387_with_temp to remove excess precision.
28594 2009-02-19 Richard Guenther <rguenther@suse.de>
28596 PR tree-optimization/39207
28597 PR tree-optimization/39074
28598 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28599 storedanything_tree): New.
28600 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
28601 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28602 (build_succ_graph): Add edges from STOREDANYTHING to all
28604 (init_base_vars): Initialize STOREDANYTHING.
28605 (compute_points_to_sets): Free substitution info after
28606 building the succ graph.
28607 (ipa_pta_execute): Likewise.
28609 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28611 (do_ds_constraint): Do not add to special var or non-pointer
28613 (type_could_have_pointers): Split out from ...
28614 (could_have_pointers): ... here. For arrays use the element type.
28615 (create_variable_info_for): Initialize may_have_pointers.
28616 (new_var_info): Likewise.
28617 (handle_lhs_call): Make the HEAP variable unknown-sized.
28618 (intra_create_variable_infos): Use a type with pointers for
28619 PARM_NOALIAS, make it unknown-sized.
28621 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
28624 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
28626 2009-02-18 Jason Merrill <jason@redhat.com>
28629 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28630 value if DECL_EXTERNAL.
28631 * tree-sra.c (sra_walk_gimple_assign): Likewise.
28632 * target.h (gcc_target::binds_local_p): Clarify "module".
28633 * tree.h (TREE_PUBLIC): Clarify "module".
28635 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
28638 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28639 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28641 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
28644 * c.opt (Wabi): Support C and ObjC.
28647 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28649 * config/i386/i386.c (classify_argument): Warn once about the ABI
28650 change when passing union with long double.
28652 * doc/invoke.texi: Update -Wabi for warning psABI changes.
28654 2009-02-18 Joseph Myers <joseph@codesourcery.com>
28657 * c-parser.c (c_parser_compound_statement): Always enter and leave
28660 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28663 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28665 2009-02-18 Jakub Jelinek <jakub@redhat.com>
28667 PR tree-optimization/36922
28668 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28669 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28672 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28674 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28677 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28679 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28681 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28683 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28686 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
28687 Richard Sandiford <rdsandiford@googlemail.com>
28689 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28690 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28691 (loongson_biadd): ...this.
28693 2009-02-17 Richard Guenther <rguenther@suse.de>
28695 PR tree-optimization/39202
28696 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28697 a var make sure to follow existing collapses.
28699 2009-02-17 Richard Guenther <rguenther@suse.de>
28701 PR middle-end/39214
28702 * langhooks.c (lhd_print_error_function): Check for NULL block.
28704 2009-02-17 Richard Guenther <rguenther@suse.de>
28706 PR tree-optimization/39204
28707 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28710 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
28712 * config/soft-fp/double.h: Update from glibc CVS.
28714 2009-02-17 Richard Guenther <rguenther@suse.de>
28716 PR tree-optimization/39207
28717 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28718 strict-aliasing warnings for pointers pointing to NULL.
28720 2009-02-16 Joseph Myers <joseph@codesourcery.com>
28723 * c-parser.c (c_parser_braced_init): Call pop_init_level when
28724 skipping until next close brace.
28726 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
28729 * config/i386/i386.c (ix86_expand_push): Set memory alignment
28730 to function argument boundary.
28732 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28734 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28735 in the lea_add. Reload eventually constraints it properly.
28736 * config/picochip/constraints.md: Remove the target constraint
28737 "b", since it is not needed anymore.
28739 2009-02-16 Jakub Jelinek <jakub@redhat.com>
28741 * gthr-dce.h: Uglify function parameter and local variable names.
28742 * gthr-gnat.h: Likewise.
28743 * gthr-mipssde.h: Likewise.
28744 * gthr-nks.h: Likewise.
28745 * gthr-posix95.h: Likewise.
28746 * gthr-posix.h: Likewise.
28747 * gthr-rtems.h: Likewise.
28748 * gthr-single.h: Likewise.
28749 * gthr-solaris.h: Likewise.
28750 * gthr-tpf.h: Likewise.
28751 * gthr-vxworks.h: Likewise.
28752 * gthr-win32.h: Likewise.
28754 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
28757 * config/i386/i386.md: Restrict the new peephole2 to move
28758 between MMX/SSE registers.
28760 2009-02-15 Richard Guenther <rguenther@suse.de>
28763 2009-02-13 Richard Guenther <rguenther@suse.de>
28765 * configure.ac: Enable LFS.
28766 * configure: Re-generate.
28767 * config.in: Likewise.
28769 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28771 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28772 spu_srqwbyte, spu_srqwbytebc): Define.
28773 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28774 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28775 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28776 "shrqby_<mode>"): New insn-and-split patterns.
28777 * config/spu/spu.c (expand_builtin_args): Determine and return
28778 number of operands using spu_builtin_description data.
28779 (spu_expand_builtin_1): Use it.
28781 2009-02-13 Steve Ellcey <sje@cup.hp.com>
28784 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28787 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28790 * config/i386/i386.c (override_options): Correct warning
28791 messages for -malign-loops, -malign-jumps and -malign-functions.
28793 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28796 * config/i386/i386.md: Restrict the new peephole2 to move
28797 between the general purpose registers.
28799 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28802 * config/i386/i386.c (type_natural_mode): Add a new argument.
28803 Return the original mode and warn ABI change if vector size is 32byte.
28804 (function_arg_advance): Updated.
28805 (function_arg): Likewise.
28806 (ix86_function_value): Likewise.
28807 (ix86_return_in_memory): Likewise.
28808 (ix86_sol10_return_in_memory): Likewise.
28809 (ix86_gimplify_va_arg): Likewise.
28810 (function_arg_32): Don't warn ABX ABI change here.
28811 (function_arg_64): Likewise.
28813 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
28815 * loop-iv.c (implies_p): In the final case, test that operands 0
28816 of the two comparisons match.
28818 * config/bfin/bfin.c (find_prev_insn_start): New function.
28819 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28820 (find_next_insn_start): Move.
28822 2009-02-13 Richard Guenther <rguenther@suse.de>
28824 * configure.ac: Enable LFS.
28825 * configure: Re-generate.
28826 * config.in: Likewise.
28828 2009-02-13 Joseph Myers <joseph@codesourcery.com>
28831 * c-parser.c (c_parser_parms_list_declarator): Discard pending
28832 sizes on syntax error after some arguments have been parsed.
28834 2009-02-12 Jakub Jelinek <jakub@redhat.com>
28836 * doc/invoke.texi (-fira): Remove.
28838 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28840 * caller-save.c: Replace regclass.c with reginfo.c in comments.
28841 * recog.c: Likewise.
28844 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
28846 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28847 (umul_ppmm): Likewise.
28848 (count_leading_zeros): Likewise.
28849 (count_trailing_zeros): Likewise.
28850 (UMUL_TIME): Likewise.
28852 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28854 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28855 soft-fp/t-softfp to tmake_file.
28857 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
28858 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28859 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28860 IA64_BUILTIN_INFQ]: New.
28861 (ia64_init_builtins): Initialize __builtin_infq,
28862 __builtin_fabsq and __builtin_copysignq if not HPUX.
28863 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28864 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28866 * config/ia64/lib1funcs.asm (__divtf3): Define only if
28868 (__fixtfti): Likewise.
28869 (__fixunstfti): Likewise.
28870 (__floattitf): Likewise.
28872 * config/ia64/libgcc-glibc.ver: New.
28873 * config/ia64/t-fprules-softfp: Likewise.
28874 * config/ia64/sfp-machine.h: Likewise.
28876 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28877 (LIBGCC2_TF_CEXT): Likewise.
28878 (TF_SIZE): Likewise.
28879 (TARGET_INIT_LIBFUNCS): Likewise.
28881 * config/ia64/t-glibc (SHLINB_MAPFILES):
28882 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
28884 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28886 * config/i386/i386.c (construct_container): Rewrite processing
28887 BLKmode with X86_64_SSE_CLASS.
28889 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
28892 * config/i386/i386.md: Replace simplify_replace_rtx with
28893 replace_rtx in the new peephole2.
28895 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
28897 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28898 loop unrolling do not happen at -O2.
28900 2009-02-12 Michael Matz <matz@suse.de>
28902 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28904 2009-02-12 Jakub Jelinek <jakub@redhat.com>
28906 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28909 2009-02-12 Ben Elliston <bje@au.ibm.com>
28911 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28912 patterns when updating the back chain. Missed in the 2009-02-10
28915 2009-02-11 Janis Johnson <janis187@us.ibm.com>
28917 * doc/extend.texi (Decimal Floating Types): Update identifier of
28918 draft TR and list of missing support.
28920 2009-02-11 Jakub Jelinek <jakub@redhat.com>
28922 PR middle-end/39154
28923 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28924 bit to variable length decl's flags, add it also to its
28925 pointer replacement variable.
28927 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
28928 Jakub Jelinek <jakub@redhat.com>
28931 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28932 (memory_blockage): New expander.
28933 (*memory_blockage): New insn pattern.
28934 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28935 instead of general blockage at the end of function prologue when
28936 frame pointer is used to access red zone area. Do not emit blockage
28937 when profiling, it is emitted in generic code.
28938 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28939 function epilogue when frame pointer is used to access red zone area.
28941 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
28944 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28945 by arithmetic with memory operands.
28946 * config/i386/predicates.md (commutative_operator): New.
28948 2009-02-10 Janis Johnson <janis187@us.ibm.com>
28950 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28953 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
28955 * alias.h (record_alias_subset): Declare.
28956 * alias.c (record_alias_subset): Make global.
28958 2009-02-10 Nick Clifton <nickc@redhat.com>
28960 * tree-parloops.c: Change license to GPLv3.
28961 * ipa-struct-reorg.c: Change license to GPLv3.
28962 * ipa-struct-reorg.h: Change license to GPLv3.
28964 2009-02-10 Steve Ellcey <sje@cup.hp.com>
28967 * c-decl.c (start_struct): Return NULL on error.
28969 2009-02-10 Jakub Jelinek <jakub@redhat.com>
28971 PR middle-end/39124
28972 * cfgloopmanip.c (remove_path): Call remove_bbs after
28973 cancel_loop_tree, not before it.
28976 * function.h (struct function): Add has_local_explicit_reg_vars bit.
28977 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28978 VAR_DECLs were seen.
28979 * tree-ssa-live.c (remove_unused_locals): Recompute
28980 cfun->has_local_explicit_reg_vars.
28981 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28982 copies or clearings if cfun->has_local_explicit_reg_vars.
28984 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
28987 * config/i386/i386.c (expand_prologue): Emit blockage at the end
28988 of function prologue when frame pointer is used to access
28991 2009-02-10 Richard Guenther <rguenther@suse.de>
28993 PR middle-end/39127
28994 * gimplify.c (gimple_regimplify_operands): Always look if
28995 we need to create a temporary.
28997 2009-02-10 Richard Guenther <rguenther@suse.de>
28999 PR tree-optimization/39132
29000 * tree-loop-distribution.c (todo): New global var.
29001 (generate_memset_zero): Trigger TODO_rebuild_alias.
29002 (tree_loop_distribution): Return todo.
29004 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
29007 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
29008 (x86_64_reg_class_name): Removed.
29009 (classify_argument): Return 0 if bytes > 32. Return 0 if the
29010 first one isn't X86_64_SSE_CLASS or any other ones aren't
29011 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
29012 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
29013 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
29014 and 3 X86_64_SSEUP_CLASS.
29015 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
29016 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
29018 2009-02-10 Ben Elliston <bje@au.ibm.com>
29020 * config/rs6000/rs6000.md (allocate_stack): Always use an update
29021 form instruction to update the stack back chain word, even if the
29022 user has disabled the generation of update instructions.
29023 (movdi_<mode>_update_stack): New.
29024 (movsi_update_stack): Likewise.
29025 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
29026 always use an update form instruction to update the stack back
29029 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
29031 PR middle-end/38953
29032 * graphite.c (if_region_set_false_region): After moving a region in
29033 the false branch of a condition, remove the empty dummy basic block.
29034 (gloog): Remove wrong fix for PR38953.
29036 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29038 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
29039 generation due to implicit sign extension.
29041 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
29043 PR middle-end/38981
29044 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
29045 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
29047 2009-02-09 Richard Guenther <rguenther@suse.de>
29049 PR middle-end/35202
29050 * convert.c (convert_to_real): Disable (float)fn((double)x)
29051 to fnf(x) conversion if errno differences may occur and
29052 -fmath-errno is set.
29054 2009-02-07 Anatoly Sokolov <aesok@post.ru>
29056 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
29057 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29058 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
29060 2009-02-06 Joseph Myers <joseph@codesourcery.com>
29063 * c-common.c (handle_alias_attribute): Disallow attribute for
29064 anything not a FUNCTION_DECL or VAR_DECL.
29066 2009-02-06 Janis Johnson <janis187@us.ibm.com>
29069 * real.c (do_compare): Special-case compare of zero against
29070 decimal float value.
29072 2009-02-06 Joseph Myers <joseph@codesourcery.com>
29075 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
29076 as indicating flexible array members unless the field itself is
29077 being declarared as the incomplete array.
29079 2009-02-06 Jan Hubicka <jh@suse.cz>
29081 PR tree-optimization/38844
29082 * ipa-inline.c (try_inline): Stop inlining recursion when edge
29083 is already inlined.
29085 2009-02-06 Richard Guenther <rguenther@suse.de>
29087 PR middle-end/38977
29088 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
29089 fork because we may expand it as __gcov_fork.
29091 2009-02-06 Nick Clifton <nickc@redhat.com>
29093 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
29095 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
29097 PR tree-optimization/35659
29098 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
29099 vn_phi_eq): Shortcut if hashcode does not match.
29100 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
29102 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
29103 and avoid iterative_hash_expr.
29104 (FOR_EACH_VALUE_ID_IN_SET): New.
29105 (value_id_compare): Remove.
29106 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
29107 sort expressions by value id.
29109 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
29112 * config/sh/predicates.md (general_movsrc_operand): Don't check
29113 the subreg of system registers here.
29115 2009-02-05 Jakub Jelinek <jakub@redhat.com>
29118 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29119 on the copied decl.
29121 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
29123 PR rtl-optimization/39110
29124 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29125 addresses, not aligned ones.
29127 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
29128 Richard Guenther <rguenther@suse.de>
29130 PR tree-optimization/39100
29131 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29132 comment says and add edges.
29134 2009-02-05 Joseph Myers <joseph@codesourcery.com>
29137 * c-common.c (handle_tls_model_attribute): Ignore attribute for
29138 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29140 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
29142 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29143 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29144 register_bb_in_sese, new_sese, free_sese): Moved.
29145 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29146 outermost_loop_in_scop, build_scop_iteration_domain,
29147 expand_scalar_variables_ssa_name, get_vdef_before_scop,
29148 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29149 Use loop_in_sese_p instead of loop_in_scop_p.
29150 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29151 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29152 (scopdet_basic_block_info): Fix bug in scop detection.
29153 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29154 eq_loop_to_cloog_loop): Remove.
29155 (nb_loops_around_loop_in_scop, nb_loop
29156 ref_nb_loops): Moved here...
29157 * graphite.h (ref_nb_loops): ... from here.
29158 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29159 (loop_domain_dim, loop_iteration_vector_dim): Remove.
29160 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29162 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
29163 Hans-Peter Nilsson <hp@axis.com>
29165 PR rtl-optimization/37889
29166 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29167 Move offset handling from PLUS to before the switch. Use new
29168 arguments when considering SYMBOL_REFs too.
29169 (rtx_addr_can_trap_p): Pass dummy offset and size.
29170 (enum may_trap_p_flags): Remove.
29171 (may_trap_p_1): Pass size from MEM_SIZE.
29173 PR rtl-optimization/38921
29174 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29175 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29176 * rtlanal.c (may_trap_after_code_motion_p): Delete.
29177 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29179 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
29181 AVX Programming Reference (January, 2009)
29182 * config/i386/sse.md (*vpclmulqdq): New.
29184 2009-02-04 Jakub Jelinek <jakub@redhat.com>
29186 PR tree-optimization/38977
29187 PR gcov-profile/38292
29188 * calls.c (special_function_p): Disregard __builtin_ prefix.
29190 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
29192 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29193 non-indexable addresses even before reload.
29195 2009-02-03 Joseph Myers <joseph@codesourcery.com>
29198 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29199 as having variable size. Do not give an error for unnamed
29200 parameters with [*] declarators. Give a warning for type names
29201 with [*] declarators and mark them as variable size.
29202 * c-parser.c (c_parser_sizeof_expression): Do not give an error
29203 for sizeof applied to [*] type names.
29205 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
29208 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29210 2009-02-03 Jakub Jelinek <jakub@redhat.com>
29212 * gcc.c (process_command): Update copyright notice dates.
29213 * gcov.c (print_version): Likewise.
29214 * gcov-dump.c (print_version): Likewise.
29215 * mips-tfile.c (main): Likewise.
29216 * mips-tdump.c (main): Likewise.
29218 2009-02-03 Joseph Myers <joseph@codesourcery.com>
29221 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29222 for composite type involving a zero-length array type.
29224 2009-02-03 Jakub Jelinek <jakub@redhat.com>
29227 * function.c (match_asm_constraints_1): Skip over
29228 initial optional % in the constraint.
29230 PR inline-asm/39059
29231 * c-parser.c (c_parser_postfix_expression): If fixed point is not
29232 supported, don't accept FIXED_CSTs.
29233 * c-decl.c (finish_declspecs): Error if fixed point is not supported
29234 and _Sat is used without _Fract/_Accum. Set specs->type to
29235 integer_type_node for cts_fract/cts_accum if fixed point is not
29238 2009-02-02 Catherine Moore <clm@codesourcery.com>
29240 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29242 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
29244 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29245 (ABI_HAS_64BIT_SYMBOLS): Use it.
29246 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29248 2009-02-02 Paul Brook <paul@codesourcery.com>
29250 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29252 2009-02-02 Jakub Jelinek <jakub@redhat.com>
29254 PR inline-asm/39058
29255 * recog.h (asm_operand_ok): Add constraints argument.
29256 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
29257 recurse on matching constraint.
29258 (check_asm_operands): Pass constraints as 3rd argument to
29259 asm_operand_ok. Don't look up matching constraint here.
29260 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29263 2009-02-02 Ben Elliston <bje@au.ibm.com>
29265 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29266 TARGET_NARROW_VOLATILE_BITFIELD macro names.
29268 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29270 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29271 information. Remove some obsolete information. Reorganize.
29273 * config/pa/fptr.c: Revert license to GPL 2.
29274 * config/pa/milli64.S: Likewise.
29276 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29279 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
29280 LIBRARY name in, instead of hard-coding it.
29281 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
29282 extra target make frag to tmake_files according to EH model.
29283 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29284 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
29285 frags that define makefile variable EH_MODEL appropriately.
29286 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
29287 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
29288 to "-sjlj" according to type of EH configured.
29289 (LIBGCC_SONAME): Concatenate it to shared library base name.
29290 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
29291 to "_sjlj" according to type of EH configured.
29292 (LIBGCC_SONAME): Concatenate it to shared library base name.
29293 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
29294 (SHLIB_LINK): Add missing semicolon to if-else construct.
29295 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29296 string value of "pe_dll" command-line option.
29297 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
29298 (SHLIB_SONAME): Use it when overriding t-cygming default.
29299 (SHLIB_IMPLIB): Override t-cygming default.
29300 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29301 string value of "pe_dll" command-line option.
29303 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29306 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29307 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29309 2009-01-31 Richard Guenther <rguenther@suse.de>
29311 PR tree-optimization/38937
29312 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29313 computing the transitive closure.
29315 2009-01-30 Richard Guenther <rguenther@suse.de>
29317 PR tree-optimization/39041
29318 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29319 Propagate variable indices only if the types match for this stmt.
29321 2009-01-30 Jakub Jelinek <jakub@redhat.com>
29324 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29325 inline but never defined.
29327 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
29329 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29330 (*insv_h_di_reg_extimm): New insn.
29331 (*insv_l<mode>_reg_extimm): New insn.
29333 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29335 * config/picochip/picochip.c (flag_conserve_stack): set
29336 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29337 fconserve-stack. Reduce call-overhead used by inliner.
29339 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29342 * common.opt (flag_conserve_stack): Initialised to zero.
29344 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
29347 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29348 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29351 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
29353 * ira-color.c (allocno_reload_assign): Update comments.
29354 * regmove.c (regmove_optimize): Likewise.
29358 2009-01-29 Robert Millan <rmh@aybabtu.com>
29360 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29361 * config/i386/kopensolaris-gnu.h: New file. Undefine
29362 `MD_UNWIND_SUPPORT'.
29363 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29365 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
29367 PR tree-optimization/39007
29368 * tree-loop-distribution.c (generate_builtin): Use
29369 recompute_dominator to compute the immediate dominator of the
29370 basic block just after the loop.
29372 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29374 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29375 (ASM_OUTPUT_DWARF_PCREL): Define.
29377 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
29379 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29380 * doc/passes.texi: Remove entries about regclass, local-alloc, and
29381 global. Modify entries about regmove and IRA.
29383 * ra-conflict.c: Remove the file.
29385 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29387 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29388 (pass_regclass_init): Rename to pass_reginfo_init.
29390 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29392 * toplev.h (flag_ira): Remove.
29394 * caller-save.c (setup_save_areas): Remove flag_ira.
29396 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29398 * global.c: Remove the file.
29400 * opts.c (decode_options): Remove flag_ira.
29402 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29404 * regmove.c: Modify file description.
29405 (find_use_as_address, try_auto_increment): Define them only if
29406 AUTO_INC_DEC is defined.
29407 (replacement_quality, replace_in_call_usage, fixup_match_1,
29408 stable_and_no_regs_but_for_p): Remove.
29409 (reg_set_in_bb): Make it static.
29410 (regmove_optimize): Remove flag_ira and code which worked for
29413 * local-alloc.c: Remove the file.
29415 * common.opt (fira): Remove.
29417 * ira.c: Include except.h.
29418 (eliminable_regset): Move from global.c.
29419 (mark_elimination): Ditto. Remove flag_ira.
29420 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29421 equiv_mem_modified, validate_equiv_mem_from_store,
29422 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29423 contains_replace_regs, memref_referenced_p, memref_used_between_p,
29424 no_equiv, recorded_label_ref): Move from local-alloc.c.
29425 (update_equiv_regs): Ditto. Make it static.
29426 (print_insn_chain, print_insn_chains): Move it from global.c.
29427 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
29428 (build_insn_chain): Ditto. Make it static.
29429 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
29430 Rename to init_live_subregs.
29431 (gate_ira): Remove flag_ira.
29433 * regclass.c: Rename reginfo.c. Change file description.
29434 (FORBIDDEN_INC_DEC_CLASSES): Remove.
29435 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29436 (init_reg_sets_1): Remove code for evaluation of
29437 reg_class_superclasses and losing_caller_save_reg_set.
29438 (init_regs): Remove init_reg_autoinc.
29439 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29440 ok_for_base_p_nonstrict): Remove.
29441 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
29442 (pass_regclass_init): Rename to pass_reginfo_init. Modify
29443 corresponding entries.
29444 (dump_regclass, record_operand_costs, scan_one_insn,
29445 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29446 record_address_regs, auto_inc_dec_reg_p): Remove.
29447 (gt-regclass.h): Rename to gt-reginfo.h.
29449 * rtl.h (dump_global_regs, retry_global_alloc,
29450 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29452 * Makefile.in (RA_H): Remove.
29453 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29454 Rename regclass.o to reginfo.o.
29455 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
29457 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29458 (GTFILES): Rename regclass.c to reginfo.c.
29460 * passes.c (init_optimization_passes): Remove pass_local_alloc and
29461 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
29463 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29464 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29466 (finish_spills): Ditto. Remove code for !flag_ira.
29468 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
29470 PR middle-end/35854
29471 * doc/invoke.texi (rtl debug options): Complete rewrite.
29472 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29474 * mode-switching.c (pass_mode_switching): Rename pass from
29475 "mode-sw" to "mode_sw".
29476 * except.c (pass_convert_to_eh_ranges): Rename pass from
29477 "eh-ranges" to "eh_ranges".
29478 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29482 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
29483 Alexander Monakov <amonakov@ispras.ru>
29485 PR middle-end/38857
29486 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29488 (move_exprs_to_boundary): Change return type and pass through
29489 should_move from move_op. Relax assert. Update usage ...
29490 (schedule_expr_on_boundary): ... here. Use should_move instead of
29492 (move_op_orig_expr_found): Indicate that insn was disconnected from
29494 (code_motion_process_successors): Do not call after_merge_succs
29495 callback if original expression was not found when traversing any of
29497 (code_motion_path_driver): Change return type. Update prototype.
29498 (move_op): Update comment. Add a new parameter (should_move). Update
29499 prototype. Set *should_move based on indication provided by
29500 move_op_orig_expr_found.
29502 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
29504 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29505 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29506 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29507 * config/rs6000/rs6000.c (rs6000_override_options): Default
29508 avoid-indexed-addresses on for Power6, off for everything else.
29509 (avoiding_indexed_address_p): New function.
29510 (rs6000_legitimize_address): Use it.
29511 (rs6000_legitimate_address): Likewise.
29512 * config/rs6000/rs6000.md (movXX_updateX): Likewise
29514 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
29516 PR tree-optimization/38997
29517 * tree-loop-distribution.c (generate_memset_zero): Use
29518 POINTER_PLUS_EXPR for a pointer addition.
29520 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
29522 * config/s390/s390.md (bswap<mode>2): New pattern added.
29524 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29526 * config/s390/s390.md (*tls_load_31): Added type attribute.
29528 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29530 * config/s390/s390.md: Fix a few comments.
29532 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29534 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29535 (*tm<mode>_full): Fixed z10prop attribute.
29536 (*tst<mode>_extimm): Fixed z10prop attribute.
29537 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29538 (*tstqiCCT_cconly): Fixed z10prop attribute.
29539 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29540 (*movsi_larl): Fixed z10prop attribute.
29541 (*movsi_zarch): Fixed z10prop attribute.
29542 (*movsi_eas): Fixed z10prop attribute.
29543 (*movhi): Fixed z10prop attribute.
29544 (*movqi): Fixed z10prop attribute.
29545 (*movstrictqi): Fixed z10prop attribute.
29546 (*mov<mode>): Fixed z10prop attribute.
29547 (*movcc): Fixed z10prop attribute.
29548 (*sethighpartdi_64): Fixed z10prop attribute.
29549 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29550 (*negdi2_sign_cc): Fixed z10prop attribute.
29551 (*negdi2_sign): Fixed z10prop attribute.
29552 (*absdi2_sign_cc): Fixed z10prop attribute.
29553 (*absdi2_sign): Fixed z10prop attribute.
29554 (*negabsdi2_sign_cc): Fixed z10prop attribute.
29555 (*negabsdi2_sign): Fixed z10prop attribute.
29556 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29557 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29558 (doloop_si64): Fixed z10prop attribute.
29559 (doloop_si31): Fixed z10prop attribute.
29560 (doloop_long): Fixed z10prop attribute.
29561 (indirect_jump): Fixed z10prop attribute.
29562 (nop): Fixed z10prop attribute.
29563 (main_base_64): Fixed z10prop attribute.
29564 (reload_base_64): Fixed z10prop attribute.
29566 2009-01-28 Jakub Jelinek <jakub@redhat.com>
29568 PR rtl-optimization/38740
29569 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29571 * config/mips/mips.c (mips_reorg): Likewise.
29573 2009-01-28 Richard Guenther <rguenther@suse.de>
29575 PR tree-optimization/38926
29576 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29577 with the correct value id to a value.
29578 (do_regular_insertion): Use the value number of edoubleprime
29579 for the value number of the expr.
29582 2008-08-21 Richard Guenther <rguenther@suse.de>
29584 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29585 a PHI ask VN if it is already available.
29586 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29587 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29589 2009-01-28 Jakub Jelinek <jakub@redhat.com>
29591 PR middle-end/38934
29592 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29593 set to varying whenever max has TREE_OVERFLOW set, similarly
29594 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29596 2009-01-28 Richard Guenther <rguenther@suse.de>
29598 PR middle-end/38908
29599 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29600 uninitialized aggregate uses in call arguments.
29602 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
29604 PR tree-optimization/38984
29605 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29606 the nothing_id variable if -fno-delete-null-pointer-checks.
29608 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
29611 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29612 (set_got_offset_rex64): Ditto.
29614 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
29617 * doc/extend.texi: Improve local variable with asm reg.
29619 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
29621 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29622 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29623 was not supplied then set warn_packed_bitfield_compat to the
29624 default value of 1.
29625 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29628 2009-01-27 Richard Guenther <rguenther@suse.de>
29630 PR tree-optimization/38503
29631 * cfgexpand.c (expand_gimple_basic_block): Ignore
29632 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29633 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29634 variables that cannot have TBAA applied.
29635 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29638 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
29640 PR middle-end/38969
29641 * calls.c (initialize_argument_information): Do not wrap complex
29642 arguments in SAVE_EXPR.
29644 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
29646 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
29647 (INSTALL_LIBGCC): Revert typo commit.
29649 2009-01-26 Richard Guenther <rguenther@suse.de>
29651 PR tree-optimization/38745
29652 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29653 from special handling.
29655 2009-01-26 Richard Guenther <rguenther@suse.de>
29657 PR tree-optimization/38745
29658 * tree-ssa.c (execute_update_addresses_taken): Do not include
29659 variables that cannot possibly be a register in not_reg_needs.
29660 Do not clear TREE_ADDRESSABLE on vars that may not become
29662 * tree-ssa.c (update_alias_info_1): Include those in the set
29663 of addressable vars.
29665 2009-01-26 Richard Guenther <rguenther@suse.de>
29667 PR middle-end/38851
29668 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29669 * tree-ssa-dse.c: Include langhooks.h
29670 (execute_simple_dse): Remove stores with zero size.
29672 2009-01-24 Jakub Jelinek <jakub@redhat.com>
29675 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29678 2009-01-24 Julian Brown <julian@codesourcery.com>
29680 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29681 config/arm/linux-atomic.c.
29682 * config/arm/linux-atomic.c: New.
29684 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
29686 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29687 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29688 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29690 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
29693 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
29696 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
29698 PR tree-optimization/38953
29699 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29700 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29701 (gloog): Split the exit of the scop when the scop exit is a loop exit.
29702 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29705 2009-01-24 Paul Brook <paul@codesourcery.com>
29707 * config/arm/neon.md (neon_type): Move to arm.md.
29708 (neon_mov<VSTRUCT>): Add neon_type attribute.
29709 * config/arm/arm.md (neon_type): Move to here.
29710 (conds): Add "unconditioal" and use as default for NEON insns.
29712 2009-01-24 Ben Elliston <bje@au.ibm.com>
29714 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29715 void *' warning from -Wc++-compat.
29716 * Makefile.in (dominance.o-warn): Remove.
29718 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
29720 PR tree-optimization/38932
29721 * fold-const.c (fold_unary_ignore_overflow): New.
29722 * tree.h (fold_unary_ignore_overflow): Declare.
29723 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29724 * tree-ssa-sccvn.c (visit_reference_op_load,
29725 simplify_unary_expression): Likewise.
29727 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
29729 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29730 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
29731 regardless of their type.
29732 * c-common.c (handle_packed_attribute): Don't ignore packed on
29734 * c.opt (Wpacked-bitfield-compat): New warning option.
29735 * stor-layout.c (place_field): Warn if offset of a field changed.
29736 * doc/extend.texi (packed): Mention the ABI change.
29737 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29738 (Warning Options): Add it to the list.
29740 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
29742 * c-opts.c (c_common_post_options): Fix a typo in comments.
29744 2009-01-22 Steve Ellcey <sje@cup.hp.com>
29746 PR middle-end/38615
29747 * gimplify.c (gimplify_init_constructor): Fix promotion of const
29748 variables to static.
29749 * doc/invoke.texi (-fmerge-all-constants): Update description.
29751 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
29754 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29755 (*movdi_1_rex64): Use type "mmx" for alternative 5.
29757 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
29759 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29761 (LOCAL_ALIGNMENT): Similarly.
29763 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
29764 Joseph Myers <joseph@codesourcery.com>
29766 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29767 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29768 * config/arm/arm-tune.md: Regenerate.
29769 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29772 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
29774 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29775 version number to five.
29777 2009-01-22 Dodji Seketeli <dodji@redhat.com>
29780 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
29781 * c-common.c (set_underlying_type): Likewise.
29782 (is_typedef_decl ): Likewise
29784 (set_underlying_type): Likewise.
29785 (is_typedef_type): Likewise.
29787 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
29789 PR middle-end/38587
29790 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29793 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
29796 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
29797 (LIBGCC_SPEC): Don't define.
29798 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
29800 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
29802 PR rtl-optimization/38879
29803 * alias.c (base_alias_check): Unaligned access via AND address can
29804 alias all surrounding object types except those with sizes equal
29805 or wider than the size of unaligned access.
29807 2009-01-21 Dodji Seketeli <dodji@redhat.com>
29810 * c-decl.c (clone_underlying_type): Move this ...
29811 * c-common.c (set_underlying_type): ... here.
29812 Also, make sure the function properly sets TYPE_STUB_DECL() on
29813 the newly created typedef variant type.
29814 (is_typedef_decl ): New entry point.
29815 * tree.h: Added a new member member_types_needing_access_check to
29816 struct tree_decl_non_common.
29817 (set_underlying_type): New entry point.
29818 (is_typedef_type): Likewise.
29820 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
29822 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29823 Check whether two instructions have memory references that
29824 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
29825 are helper functions for traversing.
29826 * alias.h (insn_alias_sets_confilict_p): New prototypes.
29827 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29828 not to draw dependency edge for instructions with non-conflicting
29831 2009-01-20 Joseph Myers <joseph@codesourcery.com>
29834 * longlong.h: Update copyright years. Use soft-fp license notice.
29835 Sync __clz_tab declaration with glibc.
29837 2009-01-20 Steve Ellcey <sje@cup.hp.com>
29840 * doc/extend.texi (syscall_linkage): New.
29841 (version_id): Modify.
29843 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
29844 Richard Guenther <rguenther@suse.de>
29846 PR tree-optimization/38747
29847 PR tree-optimization/38748
29848 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29849 conversion if the base address is an indirect reference and the
29850 aliasing sets could cause issues.
29852 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29854 * common.opt (fgraphite, fgraphite-identity): Add comment for
29855 explaining why these options are not documented.
29857 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29859 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29860 gimple_call_lhs is NULL.
29862 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
29865 * emit-rtl.c (adjust_address_1): Make sure memref is never
29868 2009-01-20 Ben Elliston <bje@au.ibm.com>
29870 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29871 const qualifier from arg parameter. Remove unnecessary cast to char *.
29872 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29873 const qualifier from arg 2.
29875 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29877 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
29879 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
29882 * rtl.h (reinit_regs): New prototype.
29883 * regclass.c: Include ira.h.
29884 (reinit_regs): New.
29885 * Makefile.in (regclass.o): Add ira.h.
29886 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29888 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
29891 * c-common.c (handle_aligned_attribute): Use
29892 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29893 default alignment value.
29895 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29897 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29898 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29900 * doc/extend.texi: Update __attribute__ ((aligned)). Document
29901 __BIGGEST_ALIGNMENT__.
29903 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29905 2009-01-18 Richard Guenther <rguenther@suse.de>
29907 PR tree-optimization/38819
29908 * tree-flow.h (operation_could_trap_helper_p): Declare.
29909 * tree-eh.c (operation_could_trap_helper_p): Export.
29910 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29911 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29912 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29913 are about to insert a possibly trapping instruction and fail
29916 2009-01-18 Andreas Schwab <schwab@suse.de>
29918 * doc/install.texi (Configuration): Remove obsolete paragraph
29919 about use of --with-gnu-ld with --with-gnu-as.
29921 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
29923 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29924 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29925 Follow spelling conventions.
29927 2009-01-18 Ben Elliston <bje@au.ibm.com>
29929 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29930 C++ warning about implicit conversion from void * to struct
29932 (bitmap_obstack_free): Likewise for bitmap_element *.
29933 * Makefile.in (bitmap.o-warn): Remove.
29935 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
29937 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
29939 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
29940 Tobias Grosser <tobi.grosser@amd.com>
29942 * graphite.c (graphite_trans_scop_block): Do not block single
29945 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
29947 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29948 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29949 test with assertion.
29951 2009-01-16 Richard Guenther <rguenther@suse.de>
29953 PR tree-optimization/38835
29954 PR middle-end/36227
29955 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29956 and INT + PTR -> (INT)(PTR p+ INT) folding.
29957 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29959 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
29962 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29963 the subreg from a lowpart subreg if it is also casting the value.
29965 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29966 Tobias Grosser <tobi.grosser@amd.com>
29968 * graphite.c (compare_prefix_loops): New.
29969 (build_scop_canonical_schedules): Rewritten.
29970 (graphite_transform_loops): Move build_scop_canonical_schedules
29971 after build_scop_iteration_domain.
29973 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29974 Tobias Grosser <tobi.grosser@amd.com>
29976 * graphite.c (add_conditions_to_domain): Add the loops to
29977 the dimension of the iteration domain. Do copy the domain
29978 only when it exists.
29979 (build_scop_conditions_1): Do not call add_conditions_to_domain.
29980 (add_conditions_to_constraints): New.
29981 (can_generate_code_stmt, can_generate_code): Removed.
29982 (gloog): Do not call can_generate_code.
29983 (graphite_transform_loops): Call add_conditions_to_constraints
29984 after building the iteration domain.
29986 2009-01-16 Jakub Jelinek <jakub@redhat.com>
29988 PR tree-optimization/38789
29989 * tree-ssa-threadedge.c
29990 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29991 __builtin_constant_p.
29993 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
29995 * dce.c (delete_unmarked_insns): Reversed the order that insns are
29996 examined before deleting them.
29998 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
30000 * function.c (aggregate_value_p): Correctly extract the function
30001 type from CALL_EXPR_FN lookup.
30003 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
30005 * config/picochip/picochip.c (picochip_override_options): Revert
30006 CFI asm flag disable commited previously.
30008 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
30009 Tobias Grosser <tobi.grosser@amd.com>
30010 Jan Sjodin <jan.sjodin@amd.com>
30012 * graphite.c (scan_tree_for_params): On substractions negate
30013 all the coefficients of the term.
30014 (clast_to_gcc_expression_red): New. Handle reduction expressions
30015 of more than two operands.
30016 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
30017 (get_vdef_before_scop): Handle also the case of default definitions.
30019 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
30021 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
30022 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
30023 Also use them when walking CALL_INSN_FUNCTION_USAGE.
30025 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
30026 Joey Ye <joey.ye@intel.com>
30028 PR middle-end/37843
30029 * cfgexpand.c (expand_stack_alignment): Don't update stack
30030 boundary nor check incoming stack boundary here.
30031 (gimple_expand_cfg): Update stack boundary and check incoming
30032 stack boundary here.
30034 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
30036 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
30038 2009-01-14 Jakub Jelinek <jakub@redhat.com>
30040 PR rtl-optimization/38245
30041 * calls.c (expand_call): Add stack arguments to
30042 CALL_INSN_FUNCTION_USAGE even for pure calls (when
30043 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
30044 in regs and partially in memory or BLKmode arguments.
30045 (emit_library_call_value_1): Add stack arguments to
30046 CALL_INSN_FUNCTION_USAGE even for pure calls (when
30047 ACCUMULATE_OUTGOING_ARGS).
30048 * dce.c: Include tm_p.h.
30049 (find_call_stack_args): New function.
30050 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
30052 (mark_insn): Call find_call_stack_args for CALL_Ps.
30053 (prescan_insns_for_dce): Walk insns backwards in bb rather than
30054 forwards. Allocate and free arg_stores bitmap if needed, pass it
30055 down to deletable_insn_p, don't mark stores set in arg_stores
30056 bitmap, clear the bitmap at the beginning of each bb.
30057 * Makefile.in (dce.o): Depend on $(TM_P_H).
30059 2009-01-14 Michael Meissner <gnu@the-meissners.org>
30062 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
30063 to make sure the insn is a conditional test (bug 22599). Reformat a
30066 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
30068 PR middle-end/38431
30069 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
30070 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
30071 (gloog): Do not call cleanup_tree_cfg.
30072 (graphite_transform_loops): Call cleanup_tree_cfg after all
30073 scops have been code generated.
30075 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
30076 * doc/gty.texi (Invoking the garbage collector): Added new node
30077 and section documenting ggc_collect.
30079 2009-01-14 Richard Guenther <rguenther@suse.de>
30081 PR tree-optimization/38826
30082 PR middle-end/38477
30083 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
30084 initialization notes only if we actually emitted a warning.
30085 (intra_create_variable_infos): Add constraints for a result decl
30086 that is passed by hidden reference.
30087 (build_pred_graph): Mark all related variables non-direct on
30090 2009-01-14 Nick Clifton <nickc@redhat.com>
30092 * ira-conflicts.c: Include addresses.h for the definition of
30094 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
30095 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
30097 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
30100 * Makefile.in (ira-lives.o): Add except.h.
30102 * ira-lives.c: Include except.h.
30103 (process_bb_node_lives): Process can_throw_internal.
30105 2009-01-13 Jakub Jelinek <jakub@redhat.com>
30107 PR rtl-optimization/38774
30108 * combine.c (simplify_set): When undoing cc_use change, don't do
30109 PUT_CODE on the newly created comparison, but instead put back the
30112 2009-01-13 Joseph Myers <joseph@codesourcery.com>
30114 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
30115 values. Remove duplicate arm8 entry.
30117 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
30119 PR tree-optimization/38786
30120 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30121 the SSA_NAME case of expand_scalar_variables_expr.
30122 Set the type of an expression to the type of its assign statement.
30123 (expand_scalar_variables_expr): Also gather the scalar computation
30124 used to index the memory access. Do not pass loop_p.
30125 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
30126 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30127 the gimple_stmt_iterator where it inserts new code.
30128 Do not pass loop_p.
30129 (copy_bb_and_scalar_dependences): Do not pass loop_p.
30130 (translate_clast): Update call to copy_bb_and_scalar_dependences.
30132 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
30134 * graphite.h (debug_value): Removed.
30135 * graphite.c (debug_value): Removed.
30137 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
30139 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30140 ldrd/strd with two 32-bit instructions.
30142 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
30144 * config/arm/arm.c (struct processors): Pass for speed down into
30145 cost helper functions.
30146 (const_ok_for_op): Handle COMPARE and inequality nodes.
30147 (arm_rtx_costs_1): Rewrite.
30148 (arm_size_rtx_costs): Update prototype.
30149 (arm_rtx_costs): Pass speed down to helper functions.
30150 (arm_slowmul_rtx_costs): Rework cost calculations.
30151 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30152 (arm_9e_rtx_costs): Likewise.
30154 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
30156 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30157 relocations of local symbols wider than UNITS_PER_WORD are not valid.
30158 (alpha_legitimize_address): Do not split local symbols wider than
30159 UNITS_PER_WORD into HIGH/LO_SUM parts.
30161 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
30164 * gcc.c (process_command): Replace call to execvp with calls
30165 to pex_one and exit.
30167 2009-01-03 Anatoly Sokolov <aesok@post.ru>
30170 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30171 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30172 variant for devices with 3-byte PC.
30173 (__tablejump_elpm__): New.
30175 2009-01-12 Jakub Jelinek <jakub@redhat.com>
30178 * c-parser.c (c_parser_postfix_expression): Allow `->' in
30179 offsetof member-designator, handle it as `[0].'.
30181 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30183 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30184 function when not using named sections on targets with named sections
30185 if branch distance is less than 262132.
30187 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
30189 * combine.c (combine_instructions): Recompute
30190 optimize_this_for_speed_p for each BB in the main combine loop.
30192 2009-01-12 Tomas Bily <tbily@suse.cz>
30195 * tree-loop-distribution.c (prop_phis): New function.
30196 (generate_builtin): Call prop_phis.
30198 2009-01-12 Jakub Jelinek <jakub@redhat.com>
30200 PR tree-optimization/38807
30201 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30202 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30204 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
30206 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30207 subreg of op0 to the original op0.
30209 2009-01-11 Laurent GUERBY <laurent@guerby.net>
30211 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30213 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
30216 * mips-tfile.c (parse_def): Fix parsing of def strings
30217 starting with digits.
30219 2009-01-10 Jakub Jelinek <jakub@redhat.com>
30222 * config/arm/arm.c (arm_is_long_call_p): Don't call
30223 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30225 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
30227 * regrename.c (regrename_optimize): Fix dumping.
30228 (find_oldest_value_reg): Preserve REG_POINTER.
30229 (copy_hardreg_forward_1): Likewise.
30231 2009-01-09 Diego Novillo <dnovillo@google.com>
30233 * gimple.h (struct gimple_statement_base) <uid>: Document
30234 the restrictions on its use.
30235 (gimple_uid): Tidy.
30236 (gimple_set_uid): Tidy.
30238 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30240 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30241 zero guard even if align_bytes != 0 and count is smaller than
30244 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
30246 PR rtl-optimization/38495
30247 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30248 (add_range_and_copies_from_move_list): Print all added ranges.
30249 Add ranges to memory optimized destination.
30251 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30255 * config/i386/i386.c (override_options): Reject
30256 -mstringop-strategy=rep_8byte with -m32.
30257 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30258 to 1. Do count comparison against epilogue_size_needed at compile
30259 time even when count_exp was constant forced into register. For
30260 size_needed don't jump to epilogue, instead just avoid aligning
30261 and invoke the body algorithm. If need_zero_guard, add zero guard
30262 even if count is non-zero, but smaller than size_needed + number of
30263 bytes that could be stored for alignment.
30264 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30265 to 1. If need_zero_guard, add zero guard even if count is non-zero,
30266 but smaller than size_needed + number of bytes that could be stored
30267 for alignment. Compare size_needed with epilogue_size_needed instead
30268 of desired_align - align, don't adjust size_needed, pass
30269 epilogue_size_needed to the epilogue expanders.
30272 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30274 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30276 * pa.c (last_address): Change to unsigned.
30277 (update_total_code_bytes): Change argument to unsigned. Don't
30278 check if insn addresses are set.
30279 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30280 addresses are not set.
30281 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30283 2009-01-09 Nick Clifton <nickc@redhat.com>
30285 * config/sh/symbian.c: Replace uses of DECL_INLINE with
30286 DECL_DECLARED_INLINE_P.
30288 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30290 PR middle-end/38347
30291 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30292 GET_MODE (op0) in operand_subword_force calls.
30294 PR middle-end/38771
30295 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30296 fold_convert arg0 operands to TREE_TYPE (op0) first.
30298 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
30300 * params.def (ira-max-conflict-table-size): Decrease default value
30303 2009-01-08 Jakub Jelinek <jakub@redhat.com>
30305 PR tree-optimization/37031
30306 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30308 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30309 allocate it using gc instead of heap, use VEC_quick_push instead of
30311 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30312 instead of heap, use VEC_quick_push instead of VEC_safe_push.
30313 * tree-data-ref.h (struct access_matrix): Change matrix to gc
30314 allocated vector from heap allocated.
30315 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30316 * tree-loop-linear.c (linear_transform_loops): Allocate nest
30317 vector only after perfect_loop_nest_depth call.
30319 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
30320 Jan Sjodin <jan.sjodin@amd.com>
30322 PR tree-optimization/38559
30323 * graphite.c (debug_value, copy_constraint,
30324 swap_constraint_variables, scale_constraint_variable, ): New.
30325 (get_lower_bound, get_upper_bound): Removed.
30326 (graphite_trans_bb_strip_mine): Clean up this code that works
30327 only for constant number of iterations. Fully copy upper and
30328 lower bound constraints, not only the constant part of them.
30329 * graphite.h (debug_value): Declared.
30331 2009-01-08 Ira Rosen <irar@il.ibm.com>
30333 PR tree-optimization/37194
30334 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30335 Don't add the cost of cost model guard in prologue to scalar
30336 outside cost in case of known number of iterations.
30338 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
30339 Alan Modra <amodra@bigpond.net.au>
30341 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30342 non-word-aligned REG+CONST addressing.
30344 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
30347 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30348 free_after_compilation when outputting a thunk.
30349 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30350 Do not call free_after_compilation here.
30352 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
30354 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30355 (ix86_valid_target_attribute_inner_p): Ditto.
30357 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
30359 PR tree-optimization/38492
30360 PR tree-optimization/38498
30361 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30362 * tree-chrec.h (scev_is_linear_expression): Declared.
30363 * graphite.c (graphite_cannot_represent_loop_niter): New.
30364 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30365 (graphite_loop_normal_form): Use gcc_assert.
30366 (scan_tree_for_params): Use CASE_CONVERT.
30367 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30368 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30369 Use gcc_assert. Discard scops that contain unhandled cases.
30370 (build_scop_conditions): Return a boolean status for unhandled cases.
30371 (strip_mine_profitable_p): Print the loop number, not its depth.
30372 (is_interchange_valid): Pass the depth of the loop nest, don't
30373 recompute it wrongly.
30374 (graphite_trans_bb_block): Same.
30375 (graphite_trans_bb_block): Print tentative of loop blocking.
30376 (graphite_trans_scop_block): Do not print that the loop has been
30378 (graphite_transform_loops): Do not handle scops that contain condition
30381 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
30383 AVX Programming Reference (December, 2008)
30384 * config/i386/avxintrin.h (_mm256_stream_si256): New.
30385 (_mm256_stream_pd): Likewise.
30386 (_mm256_stream_ps): Likewise.
30388 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30389 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30390 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30391 (bdesc_special_args): Add __builtin_ia32_movntdq256,
30392 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30393 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30394 (ix86_expand_special_args_builtin): Likewise.
30396 * config/i386/sse.md (AVXMODEDI): New.
30397 (avx_movnt<mode>): Likewise.
30398 (avx_movnt<mode>): Likewise.
30399 (<sse>_movnt<mode>): Remove AVX support.
30400 (sse2_movntv2di): Likewise.
30402 2009-01-07 Richard Guenther <rguenther@suse.de>
30404 PR middle-end/38751
30405 * fold-const.c (extract_muldiv): Remove obsolete comment.
30406 (fold_plusminus_mult_expr): Undo MINUS_EXPR
30407 to PLUS_EXPR canonicalization for the canonicalization.
30409 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
30411 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30412 hosted cross-compilers generating less efficient code.
30414 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30416 * function.h (rtl_data): Add a dbr_scheduled_p field.
30417 * reorg.c (dbr_schedule): Set it.
30418 (gate_handle_delay_slots): Check it.
30419 * config/mips/mips.c (mips_base_delayed_branch): Delete.
30420 (mips_reorg): Check flag_delayed_branch instead of
30421 mips_base_delayed_branch.
30422 (mips_override_options): Don't set mips_base_delayed_branch
30423 or flag_delayed_branch.
30425 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30427 PR rtl-optimization/38426.
30428 * ira.c (ira): Set current_function_is_leaf earlier.
30430 2009-01-06 Jakub Jelinek <jakub@redhat.com>
30432 PR rtl-optimization/38722
30433 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30434 too early, only set a flag and modify after last possible
30437 2009-01-06 Janis Johnson <janis187@us.ibm.com>
30440 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30441 * real.c (decimal_single_format): Correct values of emin and emax.
30442 (decimal_double_format): Ditto.
30443 (decimal_quad_format): Ditto.
30444 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30445 computation of DECnn_MIN and DECnn_MAX for corrected values of
30446 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
30447 __DECnn_MIN__, and adjust its computation for the corrected value
30450 2009-01-06 Jan Hubicka <jh@suse.cz>
30453 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30455 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30457 * doc/contrib.texi (Contributors): Slightly adjust the end note.
30458 Add Robert Clark to the list of testers.
30460 2009-01-06 Jan Hubicka <jh@suse.cz>
30461 Kai Tietz <kai.tietz@onevision.com>
30463 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30464 * config/i386/i386.c (ix86_expand_call): Add clobbers.
30466 2009-01-06 Jan Hubicka <jh@suse.cz>
30467 Kai Tietz <kai.tietz@onevision.com>
30469 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30471 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30472 (ix86_nsaved_regs): Count only general purpose regs.
30473 (ix86_nsaved_sseregs): New.
30474 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30475 to 16 for w64; compute padding and size of sse reg save area.
30476 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30477 general purpose regs.
30478 (ix86_emit_save_sse_regs_using_mov): New.
30479 (ix86_expand_prologue): Save SSE regs if needed.
30480 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30481 (ix86_emit_restore_sse_regs_using_mov): New.
30482 (ix86_expand_epilogue): Save SSE regs if needed.
30484 2009-01-06 Jan Hubicka <jh@suse.cz>
30485 Kai Tietz <kai.tietz@onevision.com>
30487 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30488 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30489 functions when accumulate outgoing args is off.
30491 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30494 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30495 before using pseudos_have_intersected_live_ranges_p.
30497 * ira-int.h (ira_assert): Always define.
30499 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30501 AVX Programming Reference (December, 2008)
30502 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30503 (_mm256_permute2_pd): Likewise.
30504 (_mm_permute2_ps): Likewise.
30505 (_mm256_permute2_ps): Likewise.
30506 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30507 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30509 * config/i386/i386.c (ix86_builtins): Remove
30510 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30511 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30512 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30513 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30514 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30515 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30516 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30517 __builtin_ia32_vpermil2ps256.
30518 (ix86_init_mmx_sse_builtins): Updated.
30519 (ix86_expand_args_builtin): Likewise.
30521 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30523 * pa.c (output_call): Relocate non-jump insns in the delay slot of
30524 long absolute calls when generating PA 2.0 code.
30526 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
30528 PR rtl-optimization/38583
30529 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30531 * params.def (ira-max-conflict-table-size): New.
30533 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30535 * ira.h (ira_conflicts_p): New external definition.
30537 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30538 table. Report this. Return result of building.
30539 (ira_build_conflicts): Use ira_conflicts_p. Check result of
30540 building conflict table.
30542 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30543 (ira_color): Use ira_conflicts_p.
30545 * global.c: Include ira.h.
30546 (pseudo_for_reload_consideration_p, build_insn_chain): Use
30549 * Makefile.in (global.o): Add ira.h.
30551 * ira-build.c (mark_all_loops_for_removal,
30552 propagate_some_info_from_allocno): New.
30553 (remove_unnecessary_allocnos): Call
30554 propagate_some_info_from_allocno.
30555 (remove_low_level_allocnos): New.
30556 (remove_unnecessary_regions): Add parameter. Call
30557 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
30558 parameter to remove_unnecessary_regions.
30559 (ira_build): Remove all regions but root if the conflict table was
30560 not built. Update conflict hard regs for allocnos crossing calls.
30562 * ira.c (ira_conflicts_p): New global.
30563 (ira): Define and use ira_conflicts_p.
30565 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30566 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30567 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30569 2009-01-06 Ben Elliston <bje@au.ibm.com>
30571 * gengtype-lex.l (YY_NO_INPUT): Define.
30573 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
30576 * c-common.c (handle_vector_size_attribute): Also reject
30577 BOOLEAN_TYPE types.
30579 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
30581 PR tree-optimization/38492
30582 * graphite.c (rename_map_elt, debug_rename_elt,
30583 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30584 rename_map_elt_info, eq_rename_map_elts,
30585 get_new_name_from_old_name, bb_in_sese_p): Moved around.
30586 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30587 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30588 (sese_build_livein_liveouts): New.
30589 (new_sese, free_sese): New.
30590 (new_scop): Call new_sese.
30591 (free_scop): Call free_sese.
30592 (rename_variables_from_edge, rename_phis_end_scop): Removed.
30593 (register_old_new_names): Renamed register_old_and_new_names.
30594 (register_scop_liveout_renames, add_loop_exit_phis,
30595 insert_loop_close_phis, struct igp,
30596 default_liveout_before_guard, add_guard_exit_phis,
30597 insert_guard_phis, copy_renames): New.
30598 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30599 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30600 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30601 (scop_adjust_phis_for_liveouts): New.
30602 (gloog): Call scop_adjust_phis_for_liveouts.
30604 * graphite.h (struct sese): Documented. Added fields liveout,
30605 num_ver and livein.
30606 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30607 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30608 (struct scop): Added field liveout_renames.
30609 (SCOP_LIVEOUT_RENAMES): New.
30611 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30613 PR tree-optimization/38510
30614 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30615 (translate_clast): Call recompute_all_dominators before
30617 (gloog): Call recompute_all_dominators before graphite_verify.
30619 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30620 Jan Sjodin <jan.sjodin@amd.com>
30622 PR tree-optimization/38500
30623 * graphite.c (create_sese_edges): Call fix_loop_structure after
30626 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
30628 * config.gcc: Add m32r*-*-rtems*.
30629 * config/m32r/rtems.h: New file.
30631 2009-01-05 Ben Elliston <bje@au.ibm.com>
30633 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30634 (.po.pox): Likewise.
30635 (po/gcc.pot): Likewise.
30637 2009-01-04 David S. Miller <davem@davemloft.net>
30639 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30640 (STARTING_FRAME_OFFSET): Always set to zero.
30642 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30644 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30645 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30646 fixed-point types, and vectors of the same.
30648 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30650 * config/mips/sync.md (*mb_barrier): Rename to...
30651 (*memory_barrier): ...this.
30653 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
30655 * doc/extend.texi (Function Attributes): Move @cindex after @item
30656 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
30657 and put in alphabetical order. Fix 'target' name and put in order.
30658 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30661 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
30663 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30664 (memory_barrier): Expand as unspec instead of unspec_volatile.
30665 Remove mem:BLK from insn operands. Use Pmode scratch register.
30666 (*memory_barrier): Define as unspec instead of unspec_volatile.
30667 Use (match_dup 0) as input operand.
30669 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30670 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30671 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
30672 scratch register. Remove operand 1.
30673 (*stbar): Define as unspec instead of unspec_volatile.
30674 Use (match_dup 0) as input operand, remove (const_int 8).
30675 (*membar): Define as unspec instead of unspec_volatile.
30676 Use (match_dup 0) as input operand, remove input operand 2.
30678 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30679 (memory_barrier): Expand as unspec instead of unspec_volatile.
30680 Remove mem:BLK from insn operands. Use Pmode scratch register.
30681 (*memory_barrier): Define as unspec instead of unspec_volatile.
30682 Use (match_dup 0) as input operand.
30684 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30685 Remove mem:BLK from insn operands. Use Pmode scratch register.
30686 Set volatile flag on operand 0.
30687 (*memory_barrier): New insn pattern.
30689 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30691 (*memory_barrier): Use (match_dup 0) as input operand.
30693 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30694 Remove mem:BLK from insn operands. Use Pmode scratch register.
30695 Set volatile flag on operand 0.
30696 (*mb_internal): New insn pattern.
30698 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30700 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30702 PR middle-end/38586
30703 * function.c (struct temp_slot): Move to the section of the file
30704 that deals with temp slots. Remove field 'address'.
30705 (temp_slot_address_table): New hash table of address -> temp slot.
30706 (struct temp_slot_address_entry): New struct, items for the table.
30707 (temp_slot_address_compute_hash, temp_slot_address_hash,
30708 temp_slot_address_eq, insert_temp_slot_address): Support functions
30710 (find_temp_slot_from_address): Rewrite to use the new hash table.
30711 (remove_unused_temp_slot_addresses): Remove addresses of temp
30712 slots that have been made available.
30713 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30714 worker function for remove_unused_temp_slot_addresses.
30715 (assign_stack_temp_for_type): Don't clear the temp slot address list.
30716 Add the temp slot address to the address -> temp slot map.
30717 (update_temp_slot_address): Update via insert_temp_slot_address.
30718 (free_temp_slots): Call remove_unused_temp_slot_addresses.
30719 (pop_temp_slots): Likewise.
30720 (init_temp_slots): Allocate the address -> temp slot map, or empty
30721 the map if it is already allocated.
30722 (prepare_function_start): Initialize temp slot processing.
30724 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30726 PR middle-end/38584
30727 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30728 Calculate the size of all stack vars assuming no packing of stack
30729 vars will happen, replacing a quadratic algorithm with a linear one.
30731 2009-01-03 Jakub Jelinek <jakub@redhat.com>
30734 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30737 2009-01-03 Diego Novillo <dnovillo@google.com>
30739 * doc/contrib.texi: Update contributions.
30741 2009-01-03 Jakub Jelinek <jakub@redhat.com>
30744 * builtins.c (fold_builtin_memory_op): Give up if either operand
30745 is volatile. Set srctype or desttype to non-qualified version
30749 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30750 and FUNCTION_DECLs.
30752 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
30754 PR rtl-optimization/35805
30755 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30756 problem if fast dce is able to remove any instructions.
30757 * dce.c (dce_process_block): Fix dump message.
30759 2009-01-02 Mark Mitchell <mark@codesourcery.com>
30762 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30764 2009-01-02 Jakub Jelinek <jakub@redhat.com>
30766 PR middle-end/38690
30767 * tree-flow.h (op_code_prio, op_prio): New prototypes.
30768 * tree-pretty-print.c (op_code_prio): New function.
30769 (op_prio): No longer static. Use op_code_prio.
30770 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30771 Use op_prio and op_code_prio to determine if () should be
30772 printed around operand(s) or not.
30774 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30775 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30776 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30777 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30778 pp_character instead of pp_string for single letter printing.
30780 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30782 * doc/extend.texi: Fix '#pragma GCC option' typo.
30784 2009-01-02 Richard Guenther <rguenther@suse.de>
30786 * doc/install.texi (--enable-checking): Mention different
30787 default for stage1.
30788 (--enable-stage1-checking): Document.
30790 2009-01-01 Andrew Pinski <pinskia@gmail.com>
30792 PR middle-end/30142
30793 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
30794 case to be an error.
30796 2009-01-02 Ben Elliston <bje@au.ibm.com>
30798 * config/fp-bit.h (pack_d): Constify argument.
30799 * config/fp-bit.c (makenan): Constify return type. Remove casts.
30800 (isnan): Constify argument.
30802 (iszero): Likewise.
30803 (pack_d): Likewise.
30804 (_fpadd_parts): Constify return type.
30805 (_fpmul_parts): Likewise.
30806 (_fpdiv_parts): Likewise.
30808 2009-01-01 Jakub Jelinek <jakub@redhat.com>
30811 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
30812 warn about overwriting initializer with side-effects or
30813 -Woverride-init if !IMPLICIT.
30814 (output_init_element): Likewise. Pass IMPLICIT down to
30816 (process_init_element): Add IMPLICIT argument. Pass it down
30817 to output_init_element.
30818 (push_init_element, pop_init_level, set_designator): Adjust
30819 process_init_element callers.
30820 (set_nonincremental_init, set_nonincremental_init_from_string):
30821 Adjust add_pending_init callers.
30822 (output_pending_init_elements): Adjust output_init_element callers.
30823 * c-tree.h (process_init_element): Adjust prototype.
30824 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30825 process_init_element callers.
30828 Copyright (C) 2009 Free Software Foundation, Inc.
30830 Copying and distribution of this file, with or without modification,
30831 are permitted in any medium without royalty provided the copyright
30832 notice and this notice are preserved.