1 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
5 * pa-hpux10.h (LINK_SPEC): Likewise.
6 * pa-hpux11.h (LINK_SPEC): Likewise.
8 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10 * pa32-regs.h (IRA_COVER_CLASSES): Define.
11 * pa64-regs.h (IRA_COVER_CLASSES): Define.
13 2008-09-07 Helge Deller <deller@gmx.de>
15 * pa/linux-atomic.c: New file.
16 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
17 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
19 2008-09-07 Richard Guenther <rguenther@suse.de>
20 Ira Rosen <irar@il.ibm.com>
22 PR tree-optimization/36630
23 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
24 Call STRIP_NOPS before calling evolution_part_in_loop_num.
26 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
27 Ira Rosen <irar@il.ibm.com>
29 PR tree-optimization/35642
30 * config/rs6000/altivec.md (mulv8hi3): Implement.
32 2008-09-06 Jeff Law <law@redhat.com>
34 * h8300.h (IRA_COVER_CLASSES): Define.
36 2008-09-06 Jan Hubicka <jh@suse.cz>
38 PR tree-optimization/14703
39 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored declarations.
40 * passes.c (init_optimization_passes): Recompute inline parameters.
42 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
44 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
47 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
48 Peter Fuerst <post@pfrst.de>
50 * doc/invoke.texi: Document -mr10k-cache-barrier=.
51 * doc/extend.texi: Document __builtin_mips_cache.
52 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
53 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
54 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
55 __GCC_HAVE_BUILTIN_MIPS_CACHE.
56 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
57 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
58 (set_push_mips_isas): New variable.
59 (mips_r10k_cache_barrier): New variable.
60 (cache): New availability predicate.
61 (mips_builtins): Add an entry for __builtin_mips_cache.
62 (mips_build_cvpointer_type): New function.
63 (MIPS_ATYPE_CVPOINTER): New macro.
64 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
66 (r10k_simplified_address_p, r10k_simplify_address)
67 (r10k_uncached_address_p, r10k_safe_address_p)
68 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
69 (r10k_needs_protection_p_call, r10k_needs_protection_p)
70 (r10k_insert_cache_barriers): New functions.
71 (mips_reorg_process_insns): Delete cache barriers after a
72 branch-likely instruction.
73 (mips_reorg): Call r10k_insert_cache_barriers.
74 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
75 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
76 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
77 (mips_cache, r10k_cache_barrier): New define_insns.
79 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
81 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
82 * ira-color.c (setup_allocno_left_conflicts_num): Use
83 hard_reg_set_equal_p instead of a comparison with
84 ira_zero_hard_reg_set.
85 * ira.c (setup_reg_subclasses): Likewise.
86 (setup_cover_and_important_classes): Likewise.
87 (setup_class_translate): Likewise.
88 (setup_reg_class_intersect_union): Likewise.
89 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
90 (ira_init_once): Don't initialize them.
92 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
94 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
96 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
98 * ira-color.c (ira_fast_allocation): Permit global allocno
101 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
103 Improved branch hints, safe hints, and scheduling.
105 * haifa-sched.c (sched_emit_insn) : Define.
106 * sched-int.h (sched_emit_insn) : Add prototype.
107 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
108 -mhint-max-distance -msafe-hints) : Document.
109 * config/spu/spu.c (spu_flag_var_tracking): New.
110 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
111 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
112 TARGET_ASM_FILE_START): Define.
113 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
114 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
115 (spu_emit_branch_hint): Add blocks argument.
116 (insert_branch_hints, insert_nops): Remove.
117 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
118 uses_ls_unit, spu_sched_init_global, spu_sched_init,
119 spu_sched_reorder, asm_file_start): New functions.
120 (clock_var, spu_sched_length, pipe0_clock,
121 pipe1_clock, prev_clock_var, prev_priority,
122 spu_ls_first, prev_ls_clock): New static variables.
123 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
124 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
125 (nopn_nv): Add a non-volatile version of nop.
126 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
127 -mhint-max-distance, -msafe-hints): New options.
129 2008-09-05 Janis Johnson <janis187@us.ibm.com>
130 Samuel Tardieu <sam@rfc1149.net>
132 * opts.c (decode_options): Combine nested if statements.
135 * opts.c (decode_options): Handle more relationships among
136 unit-at-a-time, toplevel-reorder, and section-anchors.
138 2008-09-05 David Daney <ddaney@avtrex.com>
140 * doc/install.texi (--enable-reduced-reflection): Document new option.
142 2008-09-05 Bob Wilson <bob.wilson@acm.org>
144 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
146 (constantpool_operand): New.
147 (move_operand): Disallow sub-word modes for the constant pool.
148 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
149 (xtensa_secondary_reload_class): Replace with....
150 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
151 Set icode for sub-word reloads from the constant pool.
152 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
153 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
154 * config/xtensa/xtensa.md (reload<mode>_literal): New.
155 * config/xtensa/xtensa-protos.h: Update prototypes.
157 2008-09-05 Joseph Myers <joseph@codesourcery.com>
159 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
160 (REG_CLASS_NAMES): Update.
161 (REG_CLASS_CONTENTS): Update.
162 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
163 of ALL_REGS for regs 77 and 78.
164 * function.c (instantiate_virtual_regs_in_insn): Assert that
165 return value of simplify_gen_subreg is not NULL.
167 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
169 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
170 (gen_rtvec_v): Fix coding standards.
172 2008-09-04 Jan Hubicka <jh@suse.cz>
174 * i386.c (decide_alg): Be more conservative about optimizing for size.
176 2008-09-04 Ian Lance Taylor <iant@google.com>
178 * varasm.c (narrowing_initializer_constant_valid_p): New
180 (initializer_constant_valid_p): Call it.
182 2008-09-04 Jeff Law <law@redhat.com>
184 * fold-const.c (native_encode_real): Fix computation of WORDS.
185 (native_interpret_real): Likewise.
187 2008-09-04 Janis Johnson <janis187@us.ibm.com>
189 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
191 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
193 * ira-conflicts.c (process_regs_for_copy): Check insn to check
194 that the cost is already taken into account in ira-costs.c
196 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
198 * ira-build.c (print_copy, print_copies, ira_debug_copy,
199 ira_debug_copies): New.
200 (ira_bulid): Call print_copies.
202 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
204 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
207 * config/rs6000/rs6000.c (optimization_options): Remove check of
210 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
212 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
213 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
214 second operand is a reg_imm10_operand.
215 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
216 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
217 (*seq_<GPR:mode><GPR2:mode>): Rename to
218 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
220 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
221 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
223 (*sne_<GPR:mode><GPR2:mode>): Rename to
224 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
227 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
229 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
230 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
231 combining an arithmetic right shift by more than 31 and a
232 trunction. Don't match for out-of-range shift amounts. Set
233 attribute mode to <MODE>.
234 (*lshr32_trunc<mode>): Name the pattern combining a logical right
235 shift by 32 and and a truncation. Set attribute mode to <MODE>.
236 (*<optab>_trunc<mode>_exts): New pattern for truncated right
237 shifts by less than 32.
238 (extv): Change predicate on first operand to accept registers.
239 Change predicate of the other operands from immediate_operand to
240 const_int_operand. Expand exts when source is a register.
241 (extzv): Change predicate of the constant operands from
242 immediate_operand to const_int_operand.
243 (extzv<mode>): Change predicate of the constant operands from
244 immediate_operand to const_int_operand and no constraint. Also
246 (*extzv_trunc<mode>_exts): New pattern.
248 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
250 * config/mips/mips.h (ISA_HAS_CINS): New macro.
251 * config/mips/mips-protos.h (mask_low_and_shift_p,
252 mask_low_and_shift_len): Declare.
253 * config/mips/mips.c (mask_low_and_shift_p,
254 mask_low_and_shift_len): New functions.
255 (mips_print_operand): Handle new operand prefix "m".
256 * config/mips/mips.md (*cins<mode>): New pattern.
258 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
260 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
263 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
265 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
266 regardless of epilogue_completed.
268 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
271 * ira-lives.c (process_bb_node_lives): Check setjmp.
273 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
276 * ira-build.c (form_loop_tree): Reverse BB walk.
277 (create_bb_allocnos): Likewise.
278 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
279 (mark_reg_store): Rename to...
280 (mark_ref_live): ...this and take a df_ref argument instead of
281 note_stores arguments. Assert that we have a register.
282 (mark_reg_clobber): Delete.
283 (def_conflicts_with_inputs_p): New function.
284 (mark_reg_conflicts): Delete.
285 (mark_reg_death): Rename to...
286 (mark_ref_dead): ...this and take a df_ref argument instead of
287 a register. Assert that we have a register.
288 (process_bb_node_lives): Hoist frequency calculation out of
289 instruction walk. Convert from a forwards scan to a backwards scan.
290 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
291 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
292 (create_allocno_live_ranges): Don't create regs_set.
294 2008-09-04 Ian Lance Taylor <iant@google.com>
296 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
298 * calls.c (emit_library_call_value_1): Use MEM_P rather than
299 comparing MODE with MEM.
300 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
301 comparing with GF_PREDICT_TAKEN.
302 (gimple_get_lhs): Change code to enum gimple_code.
303 (gimple_set_lhs): Likewise.
304 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
305 * omp-low.c (find_omp_clause): Change kind parameter to enum
307 * tree-flow.h (find_omp_clause): Update declaration.
308 * regrename.c (clear_dead_regs): Change kind parameter to enum
310 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
312 * see.c (see_get_extension_data): Change return type to enum
313 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
314 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
315 (see_gen_normalized_extension): Change extension_code parameter to
317 (see_seek_pre_extension_expr): Change extension_code to enum
319 (see_merge_one_def_extension): Likewise.
320 (see_handle_relevant_defs): Likewise.
321 (see_handle_relevant_uses): Likewise.
322 (see_analyze_one_def): Likewise.
323 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
324 GIMPLE_ASM rather than ASM_EXPR.
325 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
326 GIMPLE_RETURN rather than RETURN_EXPR.
327 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
328 (evaluate_stmt): Likewise.
329 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
330 to enum vect_relevant.
331 (vect_mark_stmts_to_be_vectorized): Change assertion to not
332 compare gimple codes with tree codes.
334 2008-09-04 Paul Brook <paul@codesourcery.com>
336 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
338 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
340 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
341 pointer check lost in the recent no-unit-at-a-time patch.
343 2008-09-04 Jan Hubicka <jh@suse.cz>
346 * tree-switch-conversion.c (check_final_bb): Accept only IP
349 2008-09-04 Jan Hubicka <jh@suse.cz>
351 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
353 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
354 using_ranges argument.
355 (vrp_evaluate_conditional): Avoid bogus warning for type range.
356 (vrp_visit_cond_stmt): Update call of
357 vrp_evaluate_conditional_warnv_with_ops
359 2008-09-04 Jan Hubicka <jh@suse.cz>
361 PR tree-optimization/37345
362 PR tree-optimization/37358
363 PR tree-optimization/37357
364 * tree.c (build_function_type_skip_args): Build distinct type copy;
366 (build_function_decl_skip_args): Set type of new decl not orig decl;
367 clear DECL_VINDEX for methods turned into functions.
369 2008-09-04 Nick Clifton <nickc@redhat.com>
371 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
373 * configure: Regenerate.
374 * config.in: Regenerate.
375 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
376 alignment field, if it is supported.
378 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
380 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
383 2008-09-03 David Edelsohn <edelsohn@gnu.org>
385 * config/rs6000/rs6000.c (processor_target_table): Do not
386 enable VMX for POWER6.
388 2008-09-03 Anton Blanchard <anton@samba.org>
390 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
391 emit memory barrier before operation.
393 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
396 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
397 default_elf_asm_output_external.
399 2008-09-03 Jeff Law <law@redhat.com>
401 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
403 2008-09-03 Richard Henderson <rth@redhat.com>
405 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
406 memory barrier to below the test-and-set.
407 (alpha_split_lock_test_and_set_12): Likewise.
409 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
413 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
416 * ira-color.c (print_loop_title): Use all_allocnos.
417 (color_pass): Ditto. Don't add border_allocnos. Check that
418 subloop allocno in the correspdoning bitmap all_allocnos.
420 * ira-emit.c (change_loop): Use all_allocnos.
422 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
424 (ira_create_allocno): Set up all_allocnos bit for the created
426 (create_cap_allocno): Remove setting mentioned_allocnos.
427 (create_insn_allocnos): Ditto.
428 (remove_unnecessary_allocnos): Use all_allocnos.
429 (check_allocno_creation): Check that allocnos are in the
430 corresponding bitmap all_allocnos.
432 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
436 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
437 (process_regs_for_copy): Process subregs. Refine check when cost
438 is taken into account in ira-costs.c.
439 (process_reg_shuffles): Use REG_SUBREG_P.
440 (add_insn_allocno_copies): Ditto. Ignore modes.
442 * ira-color.c (conflict_allocno_vec): New.
443 (COST_HOP_DIVISOR): New macro.
444 (update_copy_costs_1): Use it.
445 (update_conflict_hard_regno_costs): New function.
446 (assign_hard_reg): Use it.
447 (ira_color): Allocate and free conflict_allocno_vec.
449 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
453 * ira-int.h (ira_sort_insn_chain): Remove.
455 * ira.c (basic_block_order_nums, chain_insn_order,
456 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
457 (ira): Don't call ira_sort_insn_chain.
459 * reload1.c (reload): Don't call ira_sort_insn_chain.
461 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
464 * cgraphunit.c (update_call_expr): Remove eh regions from statements
465 which become non throw.
466 (cgraph_function_versioning): Also clear DECL_WEAK. Call
467 update_call_expr after updating the flags on the decl.
469 2008-09-03 Jan Hubicka <jh@suse.cz>
471 PR tree-optimization/37315
472 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
473 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
474 (cgraph_analyze_functions): Use node->analyzed
475 (cgraph_mark_functions_to_output): Likewise.
476 (cgraph_expand_function): All functions can be released after
478 (cgraph_optimize): Use gimple_has_body_p.
479 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
480 (cgraph_decide_inlining_incrementally): Likewise.
481 (inline_transform): Inline transform.
482 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
484 (inlinable_function_p): Drop gimple_body check.
485 (expand_call_inline): Use gimple_has_body_p.
486 * gimple.c (gimple_has_body_p): New.
487 * gimple.h (gimple_has_body_p): Add prototype.
488 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
489 (dump_function_to_file): Use gimple_has_body_p check.
491 2008-09-03 Jakub Jelinek <jakub@redhat.com>
494 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
496 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
498 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
500 From Michael Frysinger <michael.frysinger@analog.com>
501 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
502 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
505 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
508 * doc/extend.texi: Document picoChip builtin functions.
509 * doc/invoke.texi: Document picoChip options.
510 * doc/contrib.texi: Add picoChip contribution.
511 * doc/md.texi: Document picoChip constraints.
512 * config.gcc: Add picochip-*-*.
513 * config/picochip/: Add new port.
515 2008-09-03 Richard Guenther <rguenther@suse.de>
517 PR tree-optimization/37328
518 * tree-sra.c (sra_build_assignment): Gimplify properly.
519 (generate_copy_inout): Take the correct stmt as definition,
522 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
524 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
527 From Michael Frysinger <michael.frysinger@analog.com>
528 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
530 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
532 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
534 (__gthread_setspecific): Revert 2008-08-31 change to
535 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API
538 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
540 * diagnostic.c (error_at): New.
541 * toplev.h (error_at): New prototype.
542 * c-typeck.c (build_array_ref): Call error_at instead of error.
543 Pass location to pedwarn.
545 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
547 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
549 2008-09-02 Jakub Jelinek <jakub@redhat.com>
551 * dwarf2out.c (tree_add_const_value_attribute): Only handle
552 VAR_DECL and CONST_DECL.
554 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
555 Jakub Jelinek <jakub@redhat.com>
557 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
558 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
559 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
560 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
561 Don't set ix86_save_varrargs_registers.
562 (ix86_setup_incoming_varargs): Assume cum != NULL.
563 (ix86_va_start): Check ix86_varargs_gpr_size and
564 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
565 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
566 from frame pointer if ix86_varargs_gpr_size == 0.
567 (ix86_compute_frame_layout): Updated.
568 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
569 (ix86_varargs_gpr_size): Define.
570 (ix86_varargs_fpr_size): Likewise.
571 (machine_function): Remove save_varrargs_registers.
572 Add varargs_gpr_size and varargs_fpr_size.
574 2008-09-02 Jakub Jelinek <jakub@redhat.com>
576 * config/alpha/alpha.c (va_list_skip_additions,
577 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
578 (alpha_gimplify_va_arg): Call unshare_expr on second use of
581 PR tree-optimization/36766
582 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
583 for already removed basic blocks.
586 * real.c (real_maxval): Clear a lower bit to make real_maxval
587 match get_max_float for IBM long double format.
589 2008-09-02 Andreas Schwab <schwab@suse.de>
591 * configure.ac: Use m4_quote to quote the expansion of m4_do.
592 * configure: Regenerate.
594 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
596 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
597 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
598 checking for a non-VOID CONSTANT_P.
600 2008-09-02 Jan Hubicka <jh@suse.cz>
602 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
603 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
605 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
607 * expr.c (emit_group_store): Don't assert stack temp mode size.
609 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
610 Tobias Grosser <grosser@fim.uni-passau.de>
611 Jan Sjodin <jan.sjodin@amd.com>
612 Harsha Jagasia <harsha.jagasia@amd.com>
613 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
614 Konrad Trifunovic <konrad.trifunovic@inria.fr>
615 Adrien Eliche <aeliche@isty.uvsq.fr>
617 Merge from graphite branch.
620 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
621 * doc/invoke.texi (-floop-block, -floop-interchange,
622 -floop-strip-mine): Document new flags.
623 * tree-into-ssa.c (gimple_vec): Moved...
624 * tree-loop-distribution.c (rdg_component): Moved...
625 * cfgloopmanip.c: Include tree-flow.h.
626 (update_dominators_in_loop): New.
627 (create_empty_if_region_on_edge): New.
628 (create_empty_loop_on_edge): New.
629 (loopify): Use update_dominators_in_loop.
630 * tree-pass.h (pass_graphite_transforms): Declared.
631 * configure: Regenerate.
632 * tree-phinodes.c (make_phi_node): Export.
633 (add_phi_node_to_bb): New, split from create_phi_node.
634 * tree-chrec.c (for_each_scev_op): New.
635 * tree-chrec.h (for_each_scev_op): Declared.
636 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
637 (remove_statement): Call get_phi_with_result.
638 * config.in (HAVE_cloog): Undef.
639 * gdbinit.in (pgg): New.
640 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
641 * tree-ssa-loop.c (graphite_transforms): New.
642 (gate_graphite_transforms): New.
643 (pass_graphite_transforms): New.
644 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
645 HAVE_cloog): Defined.
646 * tree-vectorizer.c (rename_variables_in_bb): Export.
647 * tree-data-ref.c (dr_may_alias_p): Export.
648 (stmt_simple_memref_p): New.
649 (find_data_references_in_stmt): Export.
650 (find_data_references_in_loop): Export.
651 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
652 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
653 (create_rdg_vertices): Export.
654 (build_empty_rdg): New.
655 (build_rdg): Call build_empty_rdg. Free dependence_relations.
656 * tree-data-ref.h (rdg_component): ... here.
658 (struct data_reference): Add a field scop.
660 (find_data_references_in_loop): Declared.
661 (find_data_references_in_stmt): Declared.
662 (create_rdg_vertices): Declared.
663 (dr_may_alias_p): Declared.
664 (stmt_simple_memref_p): Declared.
665 (struct rdg_edge): Add a field ddr_p relation.
666 (build_empty_rdg): Declared.
667 * lambda.h (lambda_matrix): Declare a VEC of.
668 (find_induction_var_from_exit_cond): Declared.
669 (lambda_vector_compare): New.
670 * common.opt (fgraphite, floop-strip-mine,
671 floop-interchange, floop-block): New flags.
672 * lambda-code.c (find_induction_var_from_exit_cond): Export.
673 * cfgloop.c (is_loop_exit): New.
674 * cfgloop.h (is_loop_exit): Declared.
675 (create_empty_if_region_on_edge): Declared.
676 (create_empty_loop_on_edge): Declared.
677 * tree-flow.h (add_phi_node_to_bb): Declared.
678 (make_phi_node): Declared.
679 (rename_variables_in_bb): Declared.
680 (perfect_loop_nest_depth): Declared.
681 (graphite_transform_loops): Declared.
682 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
683 (graphite.o-warn): Add -Wno-error.
684 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
685 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
686 (INCLUDES): Add PPLINC, CLOOGINC.
687 (OBJS-common): Add graphite.o.
688 (graphite.o): Add rule.
689 * gimple.h (gimple_vec): ... here.
690 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
691 * passes.c (init_optimization_passes): Schedule
692 pass_graphite_transforms.
694 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
697 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
698 and -fno-toplevel-reorder after handle_options.
700 2008-09-02 Paul Brook <paul@codesourcery.com>
702 * config/arm/arm.c (arm_tune_cortex_a9): Define.
703 (arm_override_options): Set arm_tune_cortex_a9.
704 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
705 (arm_issue_rate): Handle cortexa9.
706 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
707 * config/arm/arm-cores.def: Add cortex-a9.
708 * config/arm/arm-tune.md: Regenerate.
709 * config/arm/arm.md: Include cortex-a9.md.
710 (generic_sched, generic_vfp): Add cortexa9.
711 * config/arm/cortex-a9.md: New file.
713 2008-09-02 Richard Guenther <rguenther@suse.de>
715 PR tree-optimization/37327
716 * tree-vrp.c (register_new_assert_for): Make sure to not have
717 TREE_OVERFLOW set on the bound.
719 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
721 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
723 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
724 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
727 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
729 * gcc/config/spu/spu.md (divdf3): Removed.
731 2008-09-02 Jakub Jelinek <jakub@redhat.com>
733 PR tree-optimization/37095
734 * cgraph.c (cgraph_node): When creating new cgraph node after
735 assembler_name_hash has been populated, record it in the hash
738 2008-09-01 Paul Brook <paul@codesourcery.com>
740 * doc/invoke.texi: Document -mword-relocations.
741 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
742 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
743 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
744 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
745 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
746 (arm_emit_movpair): New function.
747 (arm_print_operand <c>): Handle sybolic addresses.
748 * config/arm/arm.h (TARGET_USE_MOVT): Define.
749 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
750 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
751 * config/arm/arm.opt: Add -mword-relocations.
752 * config/arm/arm.md (movsi): Use arm_emit_movpair.
753 (arm_movt, arm_movw): New.
755 2008-09-01 Paul Brook <paul@codesourcery.com>
757 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
758 Allow Interworking on ARMv4 EABI based targets.
759 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
760 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
762 2008-09-01 Paul Brook <paul@codesourcery.com>
764 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
765 optimized LT0 test. Remove optimization for GT.
767 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
769 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
771 * pa-hpux11.h (LIB_SPEC): Likewise.
773 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
776 2008-09-01 Jan Hubicka <jh@suse.cz>
778 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
779 present, use only counts; when guessed use only frequencies.
780 (estimate_bb_frequencies): Use function_frequency.
781 * profile.c (compute_branch_probabilities): Exit early when
782 profile reading failed. Set profile_status.
783 (branch_prob): Do not set profile_status.
785 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
787 * tree.c (protected_set_expr_location): New.
788 * tree.h (protected_set_expr_location): New prototype.
789 * c-tree.h (build_array_ref): Add argument.
790 (parser_build_unary_op): Same.
791 * c-typeck.c (build_indirect_ref): Handle new location argument.
792 (build_array_ref): Same.
793 (parser_build_unary_op): Same.
794 * gimplify.c (gimplify_asm_expr): Set input_location before calling
796 * c-omp.c (c_finish_omp_atomic): Pass location when calling
798 * c-common.c (finish_label_address_expr): Handle new location
800 * c-common.h (build_indirect_ref): Add argument.
801 (finish_label_address_expr): Same.
802 * c-parser.c (c_parser_unary_expression): Pass location to build
804 (c_parser_postfix_expression): Same.
806 2008-09-01 Paul Brook <paul@codesourcery.com>
808 * config/arm/arm.md: Include cortex-r4f.md.
809 (attr fpu): Update type list.
810 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
811 fconstd, fcmps and fcmpd.
812 (attr tune_cortexr4): Define.
813 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
814 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
815 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
816 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
817 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
819 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
820 cortex_a8_vfp_farith: Ditto.
821 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
822 * config/arm/cortex-r4.md: Use tune_cortexr4.
823 * config/arm/cortex-r4f.md: New file.
825 2008-09-01 Richard Guenther <rguenther@suse.de>
827 PR tree-optimization/37305
828 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
829 the result of constant conversions.
830 (fold_gimple_assign): Likewise.
832 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
834 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
835 #ifdef ENABLE_CHECKING.
837 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
839 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
840 * sched-int.h (print_insn, print_pattern, print_value): Declare also
841 when !INSN_SCHEDULING.
843 2008-09-01 Andreas Schwab <schwab@suse.de>
845 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
847 2008-09-01 Paul Brook <paul@codesourcery.com>
849 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
851 2008-09-01 Jan Hubicka <jh@suse.cz>
853 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
855 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
856 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
857 * gimplify.c (gimplify_init_constructor): Add speed operand.
858 * tree-sra.c (decide_block_copy): Likewise.
859 * tree-inline.c (estimate_move_cost): Likewise.
860 * config/alpha/alpha.h (MOVE_RATIO): Update.
861 * config/frv/frv.c (MOVE_RATIO): Update.
862 * config/spu/spu.h (MOVE_RATIO): Update.
863 * config/sparc/sparc.h (MOVE_RATIO): Update.
864 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
865 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
866 * config/cris/cris.h (MOVE_RATIO): Update.
867 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
868 * config/arm/arm.h (MOVE_RATIO): Update.
869 * config/pa/pa.md: Update uses of MOVE_RATIO
870 * config/pa/pa.h (MOVE_RATIO): Update.
871 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
872 * config/h8300/h8300.h (MOVE_RATIO): Update.
873 * config/v850/v850.h (MOVE_RATIO): Update.
874 * config/bfin/bfin.h (MOVE_RATIO): Update.
876 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
877 Dmitry Melnik <dm@ispras.ru>
878 Dmitry Zhurikhin <zhur@ispras.ru>
879 Alexander Monakov <amonakov@ispras.ru>
880 Maxim Kuvyrkov <maxim@codesourcery.com>
882 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
883 sel-sched-dump.c, sel-sched-ir.c: New files.
884 * Makefile.in (OBJS-common): Add selective scheduling object
886 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
887 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
888 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
889 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
890 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
891 (make_forwarder_block): Update loop latch if we have redirected
893 * cfgloop.c (get_loop_body_in_custom_order): New function.
894 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
895 (CP_FALLTHRU_PREHEADERS): Likewise.
896 (get_loop_body_in_custom_order): Declare.
897 * cfgloopmanip.c (has_preds_from_loop): New.
898 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
899 Assert that the preheader edge will be fall thru when it is set.
900 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
901 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
902 fsel-sched-substitution, fselective-scheduling): New flags.
903 * cse.c (hash_rtx_cb): New.
905 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
906 sel_sched_insn_cnt): New counters.
907 * final.c (compute_alignments): Export. Free dominance info after loop_optimizer_finalize.
908 * genattr.c (main): Output maximal_insn_latency prototype.
909 * genautomata.c (output_default_latencies): New. Factor its code from ...
910 (output_internal_insn_latency_func): ... here.
911 (output_internal_maximal_insn_latency_func): New.
912 (output_maximal_insn_latency_func): New.
913 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
914 (struct hard_reg_set_iterator): New.
915 (hard_reg_set_iter_init, hard_reg_set_iter_set,
916 hard_reg_set_iter_next): New functions.
917 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
918 * lists.c (remove_free_INSN_LIST_node,
919 remove_free_EXPR_LIST_node): New functions.
920 * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
921 set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
922 (loop_optimizer_finalize): Do not verify flow info after reload.
923 * recog.c (validate_replace_rtx_1): New parameter simplify.
924 Default it to true. Update all uses. Factor out simplifying
926 (simplify_while_replacing): ... this new function.
927 (validate_replace_rtx_part,
928 validate_replace_rtx_part_nosimplify): New.
929 * recog.h (validate_replace_rtx_part,
930 validate_replace_rtx_part_nosimplify): Declare.
931 * rtl.c (rtx_equal_p_cb): New.
932 (rtx_equal_p): Use it.
933 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
934 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
935 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
936 * vecprim.h: Add a vector type for unsigned int.
937 * haifa-sched.c: Include vecprim.h and cfgloop.h.
938 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
939 ready_try, cycle_issued_insns, spec_info): Make global.
940 (readyp): Initialize.
941 (dfa_lookahead): New global variable.
942 (old_max_uid, old_last_basic_block): Remove.
943 (h_i_d): Make it a vector.
944 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
946 (after_recovery, adding_bb_to_current_region_p):
947 New variables to handle correct insertion of the recovery code.
948 (struct ready_list): Move declaration to sched-int.h.
949 (rgn_n_insns): Removed.
950 (rtx_vec_t): Move to sched-int.h.
951 (find_insn_reg_weight): Remove.
952 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
953 (haifa_init_h_i_d, haifa_finish_h_i_d):
954 New functions to initialize / finalize haifa instruction data.
955 (extend_h_i_d, init_h_i_d): Rewrite.
956 (unlink_other_notes): Move logic to add_to_note_list. Handle
958 (ready_lastpos, ready_element, ready_sort, reemit_notes,
959 find_fallthru_edge): Make global, remove static prototypes.
960 (max_issue): Make global. Add privileged_n and state parameters. Use
962 (extend_global, extend_all): Removed.
963 (init_before_recovery): Add new param. Fix the handling of the case
964 when we insert a recovery code before the EXIT which has a predecessor
965 with a fallthrough edge to it.
966 (create_recovery_block): Make global. Rename to
967 sched_create_recovery_block. Update.
968 (change_pattern): Rename to sched_change_pattern. Make global.
969 (speculate_insn): Rename to sched_speculate_insn. Make global.
970 Split haifa-specific functionality into ...
971 (haifa_change_pattern): New static function.
972 (sched_extend_bb): New static function.
973 (sched_init_bbs): New function.
974 (current_sched_info): Change type to struct haifa_sched_info.
975 (insn_cost): Adjust for selective scheduling.
976 (dep_cost_1): New function. Move logic from ...
977 (dep_cost): ... here.
978 (dep_cost): Use dep_cost_1.
979 (contributes_to_priority_p): Use sched_deps_info instead of
981 (priority): Adjust to work with selective scheduling. Process the
982 corner case when all dependencies don't contribute to priority.
983 (rank_for_schedule): Use ds_weak instead of dep_weak.
984 (advance_state): New function. Move logic from ...
985 (advance_one_cycle): ... here.
986 (add_to_note_list, concat_note_lists): New functions.
987 (rm_other_notes): Make static. Adjust for selective scheduling.
988 (remove_notes, restore_other_notes): New functions.
989 (move_insn): Add two arguments. Update assert. Don't call
991 (choose_ready): Remove lookahead variable, use dfa_lookahead.
992 Remove more_issue, max_points. Move the code to initialize
993 max_lookahead_tries to max_issue.
994 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
995 ready. Adjust use of move_insn. Call restore_other_notes.
997 (sched_init, sched_finish): Move Haifa-specific initialization/
999 (haifa_sched_init, haifa_sched_finish): ... respectively.
1001 (setup_sched_dump): New function.
1002 (haifa_init_only_bb): New static function.
1003 (haifa_speculate_insn): New static function.
1004 (try_ready): Use haifa_* instead of speculate_insn and
1006 (extend_ready, extend_all): Remove.
1007 (sched_extend_ready_list, sched_finish_ready_list): New functions.
1008 (create_check_block_twin, add_to_speculative_block): Use
1009 haifa_insns_init instead of extend_global. Update to use new
1010 initialization functions. Change parameter. Factor out code from
1011 create_check_block_twin to ...
1012 (sched_create_recovery_edges) ... this new function.
1013 (add_block): Remove.
1014 (sched_scan_info): New.
1015 (extend_bb): Use sched_scan_info.
1016 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1017 static functions for walking through scheduling region.
1018 (sched_luids): New vector variable to replace uid_to_luid.
1019 (luids_extend_insn): New function.
1020 (sched_max_luid): New variable.
1021 (luids_init_insn): New function.
1022 (sched_init_luids, sched_finish_luids): New functions.
1023 (insn_luid): New debug function.
1024 (sched_extend_target): New function.
1025 (haifa_init_insn): New static function.
1026 (sched_init_only_bb): New hook.
1027 (sched_split_block): New hook.
1028 (sched_split_block_1): New function.
1029 (sched_create_empty_bb): New hook.
1030 (sched_create_empty_bb_1): New function.
1031 (common_sched_info, ready): New global variables.
1032 (current_sched_info_var): Remove.
1033 (move_block_after_check): Use common_sched_info.
1034 (haifa_luid_for_non_insn): New static function.
1035 (init_before_recovery): Use haifa_init_only_bb instead of
1037 (increase_insn_priority): New.
1038 * modulo-sched.c: (issue_rate): Remove static declaration.
1039 (sms_sched_info): Change type to haifa_sched_info.
1040 (sms_sched_deps_info, sms_common_sched_info): New variables.
1041 (setup_sched_infos): New.
1042 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
1043 Do not call regstat_free_calls_crossed.
1044 (sms_print_insn): Use const_rtx.
1045 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1046 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1047 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1048 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1049 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
1050 current_sched_info to use it.
1051 (enum reg_pending_barrier_mode): Move to sched-int.h.
1052 (h_d_i_d): New variable. Initialize to NULL.
1053 ({true, output, anti, spec, forward}_dependency_cache): Initialize
1055 (estimate_dep_weak): Remove static declaration.
1056 (sched_has_condition_p): New function. Adjust users of
1057 sched_get_condition to use it instead.
1058 (conditions_mutex_p): Add arguments indicating which conditions are
1060 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
1061 argument to indicate whether returned condition is reversed. Do not
1062 generate new rtx when condition should be reversed; indicate it by
1063 setting new argument instead.
1064 (add_dependence_list_and_free): Add deps parameter.
1065 Update all users. Do not free dependence list when
1066 deps context is readonly.
1067 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1069 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1070 (remove_from_deps): New. Use the above functions.
1071 (cur_insn, can_start_lhs_rhs_p): New static variables.
1072 (add_or_update_back_dep_1): Initialize present_dep_type.
1073 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1074 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1075 haifa_note_dep): New functions implementing dependence hooks for
1076 the Haifa scheduler.
1077 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1078 note_dep): New functions.
1079 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1081 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1082 (free_deps): Initialize deps->reg_last.
1083 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1084 sched_analyze_insn): Update to use dependency hooks infrastructure
1085 and readonly contexts.
1086 (deps_analyze_insn): New function. Move part of logic from ...
1087 (sched_analyze): ... here. Also move some logic to ...
1088 (deps_start_bb): ... here. New function.
1089 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1091 (sched_deps_init): New function. Move code from ...
1092 (init_dependency_caches): ... here. Remove.
1093 (init_deps_data_vector): New.
1094 (sched_deps_finish): New function. Move code from ...
1095 (free_dependency_caches): ... here. Remove.
1096 (init_deps_global, finish_deps_global): Adjust for use with
1097 selective scheduling.
1098 (get_dep_weak): Move logic to ...
1099 (get_dep_weak_1): New function.
1100 (ds_merge): Move logic to ...
1101 (ds_merge_1): New static function.
1102 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1103 (ds_get_max_dep_weak): New function.
1104 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1105 (n_insns): Rename to rgn_n_insns.
1106 (debug_ebb_dependencies): New function.
1107 (init_ready_list): Use it.
1108 (begin_schedule_ready): Use sched_init_only_bb.
1109 (ebb_print_insn): Indicate when an insn starts a new cycle.
1110 (contributes_to_priority, compute_jump_reg_dependencies,
1111 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1112 (add_block1): Remove to ebb_add_block.
1113 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1114 (schedule_ebb): Initialize them. Use remove_notes instead of
1115 rm_other_notes. Use haifa_local_init/finish.
1116 (schedule_ebbs): Use haifa_sched_init/finish.
1117 * sched-int.h: Include vecprim.h, remove rtl.h.
1118 (struct ready_list): Delete declaration.
1119 (sched_verbose_param, enum sched_pass_id_t,
1120 bb_vec_t, insn_vec_t, rtx_vec_t): New.
1121 (struct sched_scan_info_def): New structure.
1122 (sched_scan_info, sched_scan, sched_init_bbs,
1123 sched_init_luids, sched_finish_luids, sched_extend_target,
1124 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1125 (struct common_sched_info_def): New.
1126 (common_sched_info, haifa_common_sched_info,
1127 sched_emulate_haifa_p): Declare.
1129 (sched_luids): Declare.
1130 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1131 (sched_max_luid, insn_luid): Declare.
1132 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1133 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1134 print_insn, print_pattern, print_value, haifa_classify_insn,
1135 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1136 setup_sched_dump, sched_init, sched_finish,
1137 sel_insn_is_speculation_check): Export.
1138 (struct ready_list): Move from haifa-sched.c.
1139 (ready_try, ready, max_issue): Export.
1140 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1141 sched_init_only_bb, sched_split_block, sched_split_block_1,
1142 sched_create_empty_bb, sched_create_empty_bb_1,
1143 sched_create_recovery_block, sched_create_recovery_edges): Export.
1144 (enum reg_pending_barrier_mode): Export.
1145 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1147 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
1148 print_insn field. Move add_block and fix_recovery_cfg to
1149 common_sched_info_def. Move compute_jump_reg_dependencies, use_cselib ...
1150 (struct sched_deps_info_def): ... this new structure.
1151 (sched_deps_info): Declare.
1152 (struct spec_info_def): Remove weakness_cutoff, add
1153 data_weakness_cutoff and control_weakness_cutoff.
1154 (spec_info): Declare.
1155 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
1157 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1158 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1159 (current_sched_info): Change type to struct haifa_sched_info.
1160 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1161 (h_d_i_d): New variable.
1162 (HDID): New accessor macro.
1163 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1164 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
1166 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1167 (enum SCHED_FLAGS): Update for selective scheduler.
1168 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1169 (init_dependency_caches, free_dependency_caches): Delete declarations.
1170 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1171 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1172 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1173 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1174 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1176 (rm_other_notes): Delete declaration.
1177 (schedule_block): Remove one argument.
1178 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1179 ready_element, ready_lastpos, sched_extend_ready_list,
1180 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1181 concat_note_lists): Export.
1182 (struct region): Move from sched-rgn.h.
1183 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1184 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1185 BLOCK_TO_BB, CONTAINING_RGN): Export.
1186 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1187 (current_nr_blocks, current_blocks, target_bb): Likewise.
1188 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1189 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1190 sched_rgn_local_init, extend_regions,
1191 rgn_make_new_region_out_of_new_block, compute_priorities,
1192 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1193 extend_rgns, deps_join rgn_setup_common_sched_info,
1194 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1195 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1196 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1197 increase_insn_priority): Likewise.
1198 * sched-rgn.c: Include sel-sched.h.
1199 (ref_counts): New static variable. Use it ...
1200 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
1201 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1202 (sched_is_disabled_for_current_region_p): Delete static declaration.
1203 (struct region): Move to sched-int.h.
1204 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1205 ebb_head): Define and initialize.
1206 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1207 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1208 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1210 (find_single_block_region): Add new argument to indicate that EBB
1211 regions should be constructed.
1212 (debug_live): Delete declaration.
1213 (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
1214 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1216 (init_regions): Delete declaration.
1217 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1218 rgn_estimate_number_of_insns): New.
1219 (too_large): Use estimate_number_of_insns.
1220 (haifa_find_rgns): New. Move the code from ...
1221 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
1222 (free_trg_info): New.
1223 (compute_trg_info): Allocate candidate tables here instead of ...
1224 (init_ready_list): ... here.
1225 (rgn_print_insn): Use const_rtx.
1226 (contributes_to_priority, extend_regions): Delete static declaration.
1227 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1228 (add_block1): Rename to rgn_add_block.
1229 (debug_rgn_dependencies): Delete static qualifier.
1230 (new_ready): Use sched_deps_info. Simplify.
1231 (rgn_common_sched_info, rgn_const_sched_deps_info,
1232 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
1233 (region_sched_info): Rename to rgn_const_sched_info.
1234 (deps_join): New, extracted from ...
1235 (propagate_deps): ... here.
1236 (compute_block_dependences, debug_dependencies): Update for selective
1238 (free_rgn_deps, compute_priorities): New functions.
1239 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1240 sched_rgn_compute_dependencies): New functions.
1241 (schedule_region): Use them.
1242 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1243 rgn_setup_common_sched_info, rgn_setup_sched_infos):
1245 (schedule_insns): Call new functions that were split out.
1246 (rgn_make_new_region_out_of_new_block): New.
1247 (get_rgn_sched_max_insns_priority): New.
1248 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1249 scheduling when appropriate.
1250 * sched-vis.c: Include insn-attr.h.
1251 (print_value, print_pattern): Make global.
1252 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1253 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1254 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1255 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1256 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1257 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1258 hooks. Initialize them to 0.
1259 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1260 * target.h (struct gcc_target): Add them. Rename gen_check field to
1262 * flags.h (sel_sched_switch_set): Declare.
1263 * opts.c (sel_sched_switch_set): New variable.
1264 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1265 pipelining is disabled from command line.
1266 (common_handle_option): Record whether selective scheduling is
1267 requested from command line.
1268 * doc/invoke.texi: Document new flags and parameters.
1269 * doc/tm.texi: Document new target hooks.
1270 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
1271 (dfa_state_size): Do not declare locally.
1272 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1273 * config/rs6000/rs6000.c (rs6000_init_sched_context,
1274 rs6000_alloc_sched_context, rs6000_set_sched_context,
1275 rs6000_free_sched_context): New functions.
1276 (struct _rs6000_sched_context): New.
1277 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1279 (rs6000_sched_finish): Do not run for selective scheduling.
1281 2008-08-31 Jan Hubicka <jh@suse.cz>
1283 * frv.c (frv_rtx_costs): Update forward declaration.
1284 * spu.c (spu_rtx_costs): Likewise.
1285 * pdp11.c: Include df.h
1286 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1287 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1288 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1289 * iq2000.c (iq2000_address_cost): Add speed argument.
1290 (iq2000_rtx_costs): Likewise.
1291 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1292 update call of mn10300_address_cost.
1293 * mcore.c: Include df.h
1294 (mcore_rtx_costs): Update prototype.
1295 * score3.c: Include df.h
1296 (score3_rtx_costs): Remove speed argument.
1297 * score7.c: Include df.h
1298 (score7_address_cost): Remove speed argument.
1299 * score-protos.h (score_address_cost): Update prototype.
1300 * score.c: Include df.h
1301 (score_rtx_costs): Update call of costs functions.
1302 * v850.c (v850_rtx_costs): Add bool argument.
1304 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
1306 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1308 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1310 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1311 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1313 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1315 * mkmap-flat.awk: Add option pe_dll.
1316 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1317 * config/i386/t-cygwin (SHLIB_LC): Add.
1318 * config/i386/t-mingw32 (SHLIB_LC): Add.
1319 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1320 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1321 (LINK_SPEC): Support libgcc_s.
1322 (LIBGCC_SPEC): Support libgcc_s.
1323 (LIBGCC_SONAME): New.
1325 2008-08-31 Jan Hubicka <jh@suse.cz>
1327 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1328 mistakely had old version of patch.
1330 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1331 (ipcp_estimate_growth): New.
1332 (ipcp_insert_stage): Use ipcp_estimate_growth.
1333 * profile.c (branch_prob): When reading failed, do not consider
1336 2008-08-31 Jan Hubicka <jh@suse.cz>
1338 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1339 loop is optimized for speed.
1341 2008-08-31 Richard Guenther <rguenther@suse.de>
1344 * fold-const.c (fold_binary): Retain conversions in folding
1347 2008-08-31 Jan Hubicka <jh@suse.cz>
1349 * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
1350 * predict.c (maybe_hot_frequency_p): Make inline.
1351 (maybe_hot_count_p): Break out from ...
1352 (maybe_hot_bb_p): ... this one.
1353 (maybe_hot_edge_p): Simplify.
1354 * basic-block.h (probably_cold_bb_p): Remove.
1356 2008-08-31 Jakub Jelinek <jakub@redhat.com>
1359 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1361 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1362 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1363 Also split V4SFmode.
1364 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1367 2008-08-31 Jan Hubicka <jh@suse.cz>
1369 * predict.c (PROB_VERY_LIKELY): Make small enough so things
1371 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1373 2008-08-31 Jakub Jelinek <jakub@redhat.com>
1376 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1379 * dwarf2out.c (native_encode_initializer): Subtract min_index for
1380 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1382 2008-08-31 Jan Hubicka <jh@suse.cz>
1384 * sparc.h (BRANCH_COST): Fix macro definition.
1385 * avr.c (avr_operand_rtx_cost): Add speed argument.
1386 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1388 2008-08-31 Richard Guenther <rguenther@suse.de>
1390 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1391 types instead of operands. Re-instantiate verifying of
1392 binary expression operands.
1394 2008-08-30 Jan Hubicka <jh@suse.cz>
1396 * fwprop.c (should_replace_address): Add speed attribute.
1397 (PR_OPTIMIZE_FOR_SPEED): New flag.
1398 (propagate_rtx_1): Use it.
1399 (propagate_rtx): Set it.
1400 (try_fwprop_subst): Update call of rtx_costs.
1401 (forward_propagate_and_simplify): LIkewise.
1402 * hooks.c (hook_int_rtx_bool_0): New
1403 (hook_bool_rtx_int_int_intp_false): Replace by ...
1404 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1405 * hooks.h (hook_int_rtx_bool_0): New
1406 (hook_bool_rtx_int_int_intp_false): Replace by ...
1407 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1408 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1409 (prepare_cmp_insn): UPdate call of rtx_cost.
1410 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1411 (reload_cse_simplify_operands): Update call of rtx_cost.
1412 (reload_cse_move2add): call of rtx_cost.
1413 * target.h (struct gcc_target): Update rtx_costs and address_costs.
1414 * rtlanal.c (rtx_cost): Add speed argument.
1415 (address_cost): Add speed argument
1416 (default_address_cost): Likewise.
1417 (insn_rtx_cost): Likewise.
1418 * cfgloopanal.c (seq_cost): Add speed argument.
1419 (target_reg_cost, target_spill_cost): Turn to array.
1420 (init_set_costs): Update for speed.
1421 (estimate_reg_pressure_cost): Add speed argument.
1422 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1423 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1424 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1425 (seq_cost): Add speed argument.
1426 (computation_cost): Add speed arugment.
1427 (add_cost, multiply_by_const, get_address_cost): add speed argument.
1428 (force_expr_to_var_cost): Update for profile info.
1429 (force_var_cost): Likewise.
1430 (split_address_cost): Likewise.
1431 (ptr_difference_cost): Likewise.
1432 (difference_cost): Likewise.
1433 (get_computation_cost_at): Likewise.
1434 (determine_iv_cost): Likewise.
1435 (ivopts_global_cost_for_size): Likewise.
1436 (rewrite_use_address): Likewise.
1437 (tree_ssa_iv_optimize_loop): Initialize speed field.
1438 * cse.c (optimize_this_for_speed_p): New static var.
1439 (notreg_cost): Update call of rtx_cost.
1440 (cse_extended_basic_block): set optimize_this_for_speed_p.
1441 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1442 (noce_try_cmove_arith): Likewise.
1443 (noce_try_sign_mask): LIkewise.
1444 * expr.c (compress_float_constant): Update rtx_cost calls.
1445 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1446 (addr_to_parts): Likewise.
1447 (create_mem_ref): Likewise.
1448 * dse.c (find_shift_sequence): Add speed argument.
1449 (replace_read): Update call.
1450 * calls.c (precompute_register_parameters): Update call of rtx_cost.
1451 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1452 * neg_cost, shift_cost, shiftadd_cost,
1453 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1454 mul_highpart_cost): Increase dimension.
1455 (init_expmed): Initialize for both size and speed.
1456 (expand_shift): Use profile.
1457 (synth_mult): Use profile.
1458 (choose_mult_variant): Use profile.
1459 (expand_mult): Use profile.
1460 (expand_mult_highpart_optab): Use profile.
1461 (expand_mult_highpart): Use profile.
1462 (expand_smod_pow2): Use profile.
1463 (expand_divmod): Use profile.
1464 * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1465 * loop-invariant.c (create_new_invariant): Use profile.
1466 (gain_for_invariant): Add speed parameter.
1467 (best_gain_for_invariant): Likewise.
1468 (find_invariants_to_move): Likewise.
1469 (move_single_loop_invariants): Set it.
1470 * target-def.h (TARGET_RTX_COSTS): Use hook.
1471 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1472 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1473 * output.h (default_address_cost): Update prototype.
1474 * combine.c (optimize_this_for_speed_p): New static var.
1475 (combine_validate_cost): Update call of rtx_cost.
1476 (combine_instructions): Set optimize_this_for_speed_p.
1477 (expand_compound_operation): Update call of rtx_cost.
1478 (make_extraction):Update call of rtx_cost.
1479 (force_to_mode):Update call of rtx_cost.
1480 (distribute_and_simplify_rtx):Update call of rtx_cost.
1481 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
1482 (estimate_reg_pressure_cost): Update prototype.
1483 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
1484 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
1486 * config/alpha/alpha.c (alpha_rtx_costs): Update.
1487 (alpha_rtx_costs): Update.
1488 * config/frv/frv.c (frv_rtx_costs): Update.
1489 * config/s390/s390.c (s390_rtx_costs): Update.
1490 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
1491 (m32c_rtx_costs): Update.
1492 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
1493 (spu_rtx_costs): Update.
1494 * config/sparc/sparc.c (sparc_rtx_costs): Update.
1495 * config/m32r/m32r.c (m32r_rtx_costs): Update.
1496 * config/i386/i386.c (:ix86_address_cost): Update.
1497 (ix86_rtx_costs): Update.
1498 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
1499 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
1500 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
1501 * config/crx/crx.c (crx_address_cost): Update.
1502 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
1503 * config/stormy16/stormy16.c
1504 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
1505 * config/m68hc11/m68hc11.c
1506 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
1507 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
1508 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
1509 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
1510 * config/ia64/ia64.c (ia64_rtx_costs): Update.
1511 * config/m68k/m68k.c (m68k_rtx_costs): Update.
1512 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
1513 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
1514 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
1515 (mcore_rtx_costs): update.
1516 * config/score/score3.c (score3_rtx_costs): Update.
1517 * config/score/score7.c (score7_rtx_costs): Update.
1518 * config/score/score3.h (score3_rtx_costs):Update.
1519 * config/score/score7.h (score7_rtx_costs): Update.
1520 * config/score/score.c (score_rtx_costs): Update.
1521 * config/arm/arm.c (arm_address_cost): Update.
1522 (arm_rtx_costs_1): Update.
1523 (arm_rtx_costs_1): Update.
1524 (arm_size_rtx_costs): Update.
1525 (arm_size_rtx_costs): Update.
1526 (arm_size_rtx_costs): Update.
1527 (arm_xscale_rtx_costs): Update.
1528 (arm_thumb_address_cost): Update.
1529 * config/pa/pa.c (hppa_address_cost): Update.
1530 * config/mips/mips.c (mips_rtx_costs): Update.
1531 * config/vax/vax.c (vax_address_cost): Update.
1532 * config/h8300/h8300.c (h8300_shift_costs): Update.
1533 (h8300_rtx_costs): Update.
1534 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
1535 (v850_rtx_costs): Update.
1536 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
1537 * config/bfin/bfin.c
1538 (bfin_address_cost): Update.
1539 (bfin_rtx_costs): Update.
1540 * stmt.c (lshift_cheap_p): Update.
1542 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
1545 * expmed.c (extract_bit_field_1): Check the mode size to make
1546 sure the vector modes have the same size.
1548 2008-08-29 Michael Meissner <gnu@the-meissners.org>
1550 * dojump.c (top level): Include basic-block.h to declare
1551 optimize_insn_for_speed_p
1553 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
1555 * opts.h (CL_SAVE): New option class for marking options that are
1556 target specific options usable in the target attribute.
1557 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
1559 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
1560 can easily find the target specific options that are safe to use
1561 in the attribute or pragma.
1563 * attribs.c (decl_attributes): Change #pragma GCC option to
1564 #pragma GCC target, and attribute((option(...))) to
1565 attribute((target(...))).
1567 * doc/extend.texi (target attribute): Change from option
1568 attribute. Delete push/pop/reset.
1569 (#pragma GCC target): Change from #pragma GCC option. Delete
1571 (#pragma GCC push_options): Document new pragma.
1572 (#pragma GCC pop_options): Document new pragma.
1573 (#pragma GCC reset_options): Document new pragma.
1575 * targhooks.c (default_target_option_valid_attribute_p): Add
1576 warning about port not supporting target attributes.
1577 (default_target_option_pragma_parse): New function, warn about
1578 #pragma GCC target not being supported.
1580 * targhooks.h (default_target_option_pragma_parse): Add
1583 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
1584 TI_CURRENT_OPTION_PRAGMA.
1585 (current_target_pragma): Rename from current_option_pragma.
1587 * target.h: (struct target_option): Delete booleans for changing
1588 the optimization level on hot/cold functions. Change signature of
1589 pragma_parse hook to take a second tree.
1591 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
1593 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
1594 that the declaration is done at global scope.
1596 * langhooks.c (add_builtin_function_common): Move most of the code
1597 from add_builtin_function here, calling the hook passed in.
1598 (add_builtin_function): Call add_builtin_function_common with
1599 standard builtin hook.
1600 (add_builtin_function_ext_scope): New function to add builtins to
1603 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
1605 (add_builtin_function_ext_scope): Add declaration.
1607 * c-pragma.c (handle_pragma_target): Rename from
1608 handle_pragma_option, #pragma GCC option is now #pragma GCC
1609 target. Move warning about port not supporting target options to
1610 default pragma parse hook. Remove push/pop/reset from this
1612 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
1613 (option_stack): Delete static variable.
1614 (optimize_stack): Ditto.
1615 (optons_stack): New stack of saved target and optimization
1617 (handle_pragma_push_options): New function to handle pushing both
1618 target and optimization options.
1619 (handle_pragma_pop_options): New function to handle popping both
1620 target and optimization options.
1621 (handle_pragma_reset_options): New function to handle resetting
1622 both target and optimization options to their initial state.
1623 (init_pragma): Rename handle_pragma_option to
1624 handle_pragma_target. Add support for push_options, pop_options,
1625 and reset_options pragmas.
1627 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
1628 default_target_option_pragma_parse.
1629 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
1630 default_target_option_valid_attribute_p.
1631 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1632 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1633 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
1634 optimization level on hot/cold functions.
1636 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
1637 if the caller and callee have different optimization levels.
1639 * c-common.c (handle_target_attribute): Rename from
1640 handle_option_attribute, attribute((option(...))) is now
1641 attribute((target(...))). Move warning if the port does not
1642 support target attributes to the default hook.
1643 (handle_hot_attribute): Delete code to change the optimization
1644 level of hot functions.
1645 (handle_cold_attribute): Ditto.
1647 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
1648 argument that is the binary tree options to use if there are no
1649 arguments. Call ix86_valid_target_attribute_tree instead of
1650 ix86_valid_option_attribute_tree.
1651 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
1652 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
1653 ix86_pragma_option_parse.
1655 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1656 Rename from ix86_valid_option_attribute_tree.
1658 * config/i386/i386.c (ix86_add_new_builtins): New function to add
1659 new builtins when the ISA changes.
1660 (ix86_valid_target_attribute_tree): Rename from
1661 ix86_valid_option_attribute_tree. Change callers. If the
1662 function specified optimization options, use those as the starting
1663 point before setting up the target attributes. If the
1664 optimization options were changed in the course of setting the
1665 target attributes, record the new optimization options.
1666 (ix86_valid_target_attribute_tree_inner_p): Rename from
1667 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
1668 ix86_add_new_builtins if the ISA changed.
1669 (ix86_valid_target_attribute_p): Rename from
1670 ix86_valid_option_attribute_p. Change callers.
1671 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
1672 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
1673 as delayed builtin functions.
1674 (struct builtin_isa): New structure to record builtin functions
1675 that should be delayed until the ISA for that function is used.
1676 (ix86_builtins_isa): Change from int to struct to track builtin
1677 functions we want to declare at some point.
1678 (def_builtin): If the front end can delay defining the builtin
1679 functions, don't create builtins for ISAs not part of the default
1681 (def_builtin_const): Ditto.
1682 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
1683 __builtin_ia32_pcmov_v2di to be different builtin functions.
1684 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
1685 a structure instead of an int.
1686 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
1687 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
1688 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1689 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1691 * config/ia64/ia64.h
1692 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1693 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1695 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
1696 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
1697 (LANG_HOOKS_INITIALIZER): Add
1698 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
1700 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
1703 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
1704 the reload address with the index register for SFmode
1705 access with a displacement.
1707 2008-08-30 Jan Hubicka <jh@suse.cz>
1709 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
1710 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
1711 * dojump.c (do_jump): Likewise.
1712 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
1713 (note-if_info): Add BRANCH_COST.
1714 (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
1715 noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
1716 noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
1718 * expr.h (BRANCH_COST): Update default.
1719 * predict.c (predictable_edge_p): New function.
1720 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
1721 Update BRANCH_COST call.
1722 * basic-block.h (predictable_edge_p): Declare.
1723 * config/alpha/alpha.h (BRANCH_COST): Update.
1724 * config/frv/frv.h (BRANCH_COST): Update.
1725 * config/s390/s390.h (BRANCH_COST): Update.
1726 * config/spu/spu.h (BRANCH_COST): Update.
1727 * config/sparc/sparc.h (BRANCH_COST): Update.
1728 * config/m32r/m32r.h (BRANCH_COST): Update.
1729 * config/i386/i386.h (BRANCH_COST): Update.
1730 * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
1731 * config/sh/sh.h (BRANCH_COST): Update.
1732 * config/pdp11/pdp11.h (BRANCH_COST): Update.
1733 * config/avr/avr.h (BRANCH_COST): Update.
1734 * config/crx/crx.h (BRANCH_COST): Update.
1735 * config/xtensa/xtensa.h (BRANCH_COST): Update.
1736 * config/stormy16/stormy16.h (BRANCH_COST): Update.
1737 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
1738 * config/iq2000/iq2000.h (BRANCH_COST): Update.
1739 * config/ia64/ia64.h (BRANCH_COST): Update.
1740 * config/rs6000/rs6000.h (BRANCH_COST): Update.
1741 * config/arc/arc.h (BRANCH_COST): Update.
1742 * config/score/score.h (BRANCH_COST): Update.
1743 * config/arm/arm.h (BRANCH_COST): Update.
1744 * config/pa/pa.h (BRANCH_COST): Update.
1745 * config/mips/mips.h (BRANCH_COST): Update.
1746 * config/vax/vax.h (BRANCH_COST): Update.
1747 * config/h8300/h8300.h (BRANCH_COST): Update.
1748 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
1749 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
1750 * doc/tm.texi (BRANCH_COST): Update.
1752 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
1755 * config/arm/arm.c (arm_optimization_options): Set
1756 flag_section_anchors to 2 instead of 1 to distinguish it from
1757 -fsection-anchors given explicitely on the command line.
1759 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
1761 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
1762 final insn of a split.
1764 2008-08-30 Jan Hubicka <jh@suse.cz>
1766 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
1767 optimized for speed.
1768 * final.c (compute_alignments): Use optimize_bb_for_size_p.
1769 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
1770 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
1771 flag_gcse_after_reload_set): New static vars.
1772 (common_handle_option): Enable those flags for profile-use.
1773 (decode_options): Remove optimize_size flags that are handled
1774 on higher granuality.
1775 * tree-vectorizer.c (vectorize_loops): Use
1776 optimize_loop_nest_for_speed_p.
1777 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
1778 * tree-predcom.c (tree_predictive_commoning): Use
1779 optimize_loop_for_speed_p.
1780 * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
1781 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
1782 * predict.c (optimize_loop_for_speed_p): Fix walk.
1784 2008-08-30 Jan Hubicka <jh@suse.cz>
1786 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
1788 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
1789 profile presence locally.
1791 2008-08-29 Joseph Myers <joseph@codesourcery.com>
1794 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
1795 versions before 4.0.
1797 2008-08-29 Jan Hubicka <jh@suse.cz>
1799 * tree-inline.c (insert_init_stmt): Insert sequence even when
1802 2008-08-29 Jeff Law <law@redhat.com>
1804 * mn10300.c (mn10300_secondary_reload_class): We need secondary
1805 reloads for AM33-2 if IN is a pseudo with an equivalent memory
1806 location and class is an FP register.
1808 2008-08-29 Jan Hubicka <jh@suse.cz>
1810 * see.c (see_merge_one_def_extension): Silence used uninitialized
1812 * matrix-reorg.c (check_allocation_function): Likewise.
1813 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
1815 2008-08-29 Jakub Jelinek <jakub@redhat.com>
1818 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
1819 compute new & and | in type rather than TREE_TYPE (arg0).
1821 * dwarf2out.c (fortran_common): Update comment.
1822 (gen_variable_die): Swap com_die and var_die variables in Fortran
1823 COMMON block handling code.
1825 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
1827 * dwarf2out.c (gen_const_die): New function.
1828 (size_of_die, value_format, output_die): Output larger
1829 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
1830 (native_encode_initializer): New function.
1831 (tree_add_const_value_attribute): Call it.
1832 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
1834 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
1835 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
1836 TREE_THIS_VOLATILE to add_type_attribute.
1838 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
1840 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
1843 * dwarf2out.c (loc_by_reference): New function.
1844 (add_location_or_const_value_attribute): Use it.
1847 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
1848 as DW_TAG_variable children of DW_TAG_common_block rather than
1849 DW_TAG_member children. Put DW_AT_external to individual
1850 DW_TAG_variable DIEs, not to DW_TAG_common_block.
1852 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
1853 loc_descriptor_from_tree_1.
1857 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
1858 arguments to imported_module_or_decl.
1859 (debug_nothing_tree_tree): Removed.
1860 (debug_nothing_tree_tree_tree_bool): New prototype.
1861 * debug.c (do_nothing_debug_hooks): Adjust.
1862 (debug_nothing_tree_tree): Removed.
1863 (debug_nothing_tree_tree_tree_bool): New function.
1864 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
1865 (gen_variable_die): Put all common vars for the
1866 same COMMON block under one DW_TAG_common_block.
1867 (declare_in_namespace): Return new context_die, for Fortran
1868 return the module DIE instead of adding extra declarations into
1870 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
1871 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
1872 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
1874 (dwarf2out_global_decl): Don't skip Fortran global vars.
1875 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
1876 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
1877 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
1878 DW_TAG_imported_declaration as child of previous
1879 DW_TAG_imported_module.
1880 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
1881 * sdbout.c (sdb_debug_hooks): Likewise.
1882 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1884 2008-08-29 Jan Hubicka <jh@suse.cz>
1886 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
1888 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
1889 * ipa-cp.c (n_cloning_candidates): New static variable.
1890 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
1891 (ipcp_print_all_lattices): Improve debug output.
1892 (ipcp_cloning_candidate_p): New function.
1893 (ipcp_initialize_node_lattices): Use it.
1894 (ipcp_init_stage): Do only analyzis here; prettier debug output.
1895 (ipcp_propagate_stage): Prettier debug output.
1896 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
1897 (ipcp_print_all_structures): Remove.
1898 (ipcp_need_redirect_p): Test !n_cloning_candidates.
1899 (ipcp_insert_stage): Prettier debug output; call
1900 cgraph_remove_unreachable_nodes before propagating.
1901 (pass_ipa_cp): Schedule function removal pass.
1902 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
1904 (cgraph_maybe_hot_edge_p): Move to ...
1905 * predict.c (cgraph_maybe_hot_edge_p) ... here.
1906 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
1907 (common_handle_option): Set them; enable ipa-cp when profiling.
1908 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
1909 (ipa_print_all_jump_functions): Likewise.
1910 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
1911 (ipa_print_node_params, ipa_print_all_params): New.
1912 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
1913 ipa_print_all_param_flags): Remove.
1914 (ipa_print_node_params, ipa_print_all_params): New.
1916 2008-08-29 Bob Wilson <bob.wilson@acm.org>
1918 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
1919 change from 2008-04-03.
1920 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
1922 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
1926 * ira-color.c (push_allocnos_to_stack): Truncate
1927 removed_splay_allocno_vec.
1929 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
1932 * ira-color (ira_fast_allocation): Don't assign hard registers to
1935 2008-08-29 Jan Hubicka <jh@suse.cz>
1938 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
1939 for cold internal loops.
1941 2008-08-29 Richard Guenther <rguenther@suse.de>
1943 * tree-ssa-structalias.c (create_variable_info_for): Do not
1944 create fields for heap vars or vars with a noalias state.
1945 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
1948 2008-08-29 Richard Guenther <rguenther@suse.de>
1950 * common.opt (ftree-store-ccp): Mark as preserved for
1951 backward compatibility.
1952 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
1953 * tree-pass.h (pass_store_ccp): Remove.
1954 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
1955 (first_vdef): Remove declaration.
1956 (get_value_loaded_by): Likewise.
1957 * tree-ssa-ccp.c (do_store_ccp): Remove.
1958 (get_default_value): Simplify as do_store_ccp is always false
1959 now. Do not initialize mem_ref.
1960 (set_value_varying): Likewise.
1961 (canonicalize_float_value): Likewise.
1962 (set_lattice_value): Likewise.
1963 (likely_value): Likewise.
1964 (surely_varying_stmt_p): Likewise.
1965 (ccp_initialize): Likewise.
1966 (ccp_lattice_meet): Likewise.
1967 (ccp_visit_phi_node): Likewise.
1968 (ccp_fold): Likewise.
1969 (evaluate_stmt): Likewise.
1970 (visit_assignment): Likewise.
1971 (ccp_visit_stmt): Likewise.
1972 (execute_ssa_ccp): Fold into ...
1973 (do_ssa_ccp): ... this.
1974 (do_ssa_store_ccp): Remove.
1975 (gate_store_ccp): Likewise.
1976 (pass_store_ccp): Likewise.
1977 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
1979 * tree-ssa-propagate.c (first_vdef): Remove.
1980 (get_value_loaded_by): Likewise.
1981 (replace_vuses_in): Likewise.
1982 (substitute_and_fold): Do not call replace_vuses_in.
1983 * opts.c (decode_options): Do not set flag_tree_store_ccp.
1985 2008-08-29 Richard Guenther <rguenther@suse.de>
1988 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
1989 PARAM_NOALIAS tags with is_heapvar.
1990 * tree-ssa-operands.c (access_can_touch_variable): Offset
1991 based tests do not apply for heapvars. Fix offset test.
1993 2008-08-29 Jan Hubicka <jh@suse.cz>
1995 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
1996 (-fipa-cp-clone): Enabled by default at -O3.
1997 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
1998 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2000 2008-08-29 Jan Hubicka <jh@suse.cz>
2002 * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2004 * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2006 * gimple.c (giple_copy_call_skip_args): New function.
2007 (giple_copy_call_skip_args): Declare.
2009 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2010 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2011 (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2012 (ipcp_create_replace_map): Improve debug output.
2013 (ipcp_need_redirect_p): Return false when not clonning.
2014 (ipcp_update_callgraph): Skip args.
2015 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2017 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2018 (save_inline_function_body): Update call of tree_function_versioning.
2019 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2020 * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2021 (tree_function_versioning): Likewise.
2022 * tree-inline.h (tree_function_versioning): Update prototype.
2024 2008-08-29 Jan Hubicka <jh@suse.cz>
2026 * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2027 * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
2028 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2029 * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
2030 * value-prof.c (gimple_divmod_fixed_value_transform,
2031 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2032 gimple_stringops_transform): Use optimize_bb_for_size_p.
2033 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2034 * final.c (compute_alignments): Use optimize_function_for_size_p.
2035 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2036 (fold_builtin_strcpy, fold_builtin_fputs): Use
2037 optimize_function_for_size_p.
2038 * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2039 * recog.c (relax_delay_slots): Likewise.
2040 * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
2041 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2042 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2043 optimize_function_for_size_p.
2044 (cgraph_decide_inlining_of_small_function): Use
2045 optimize_function_for_size_p.
2046 * global.c (find_reg): Use optimize_function_for_size_p.
2047 * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
2048 flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
2049 flag_prefetch_loop_arrays. Those can work it out from profile.
2050 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2051 optimize_loop_for_speed_p.
2052 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2054 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2055 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2056 * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2057 * local-alloc.c (block_alloc): Pass BB pointer.
2058 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2059 * gcse.c (gcse_main): Use optimize_function_for_size_p.
2060 * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
2061 (decide_peel_completely): Likewise.
2062 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2063 optimize_loop_for_size_p.
2064 (vect_enhance_data_refs_alignment): Likewise.
2065 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2066 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
2067 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2068 (try_crossjump_bb): Use optimize_bb_for_size_p.
2069 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2070 optimize_loop_for_speed_p.
2071 * bb-reorder.c (find_traces_1_round): Likewise.
2072 (copy_bb): Use optimize_bb_for_speed_p.
2073 (duplicate_computed_gotos): Likewise.
2074 * basic-block.h (optimize_loop_nest_for_size_p,
2075 optimize_loop_nest_for_speed_p): New.
2076 * stmt.c (expand_case): Use optimize_insn_for_size_p.
2078 2008-08-29 Tristan Gingold <gingold@adacore.com>
2080 * gcov.c (main): Call expandargv.
2082 2008-08-29 Jan Hubicka <jh@suse.cz>
2084 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2086 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2088 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2089 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2091 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2093 2008-08-29 Jan Hubicka <jh@suse.cz>
2095 * tree-pass.h (pass_strip_predict_hints): Declare.
2096 * predict.c (strip_builtin_expect): Rename to ...
2097 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2098 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2099 (tree_estimate_probability): Do not strip builtin_expect.
2100 (pass_strip_predict_hints): New pass.
2101 * tree-inline.c (expand_call_inline): When inlining cold function, predict
2103 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2105 2008-08-29 Richard Guenther <rguenther@suse.de>
2107 PR tree-optimization/37207
2108 * tree-vrp.c (extract_range_from_binary_expr): Also try
2109 to constant fold if only one of the operands is a constant.
2111 2008-08-29 Nick Clifton <nickc@redhat.com>
2113 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2114 the same way as SYMBOL_REFs.
2116 2008-08-28 Bob Wilson <bob.wilson@acm.org>
2118 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2120 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
2122 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2123 * config/mips/mips.md (branch_likely): Remove const. Fix
2125 (define_delay for type "branch"): Change to only apply for branch
2126 with likely variant.
2127 (define_delay for type "branch" and "branch_likely" no). New delay
2129 (equality_op): New code iterator.
2130 (bbv, bbinv): New code attributes.
2131 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2134 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2135 Andrew Pinski <pinskia@gcc.gnu.org>
2138 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2140 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
2142 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2143 rule that a symbolic constant must be defined and >= 0 for the
2144 corresponding facility to be present at compile-time.
2145 * gthr-posix.c: Likewise.
2147 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
2149 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2150 * config/mips/mips.md (D): New mode attribute.
2151 (mulsi3, muldi3): Merge it into ...
2152 (mul<mode>3): ... new template. Use _mul3 ending for 3-op
2154 (muldi3_mul3): New pattern.
2155 (mulsi3_mult3): Rename to mulsi3_mul3.
2157 2008-08-28 Jan Hubicka <jh@suse.cz>
2159 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2161 * predict.c (always_optimize_for_size_p): Rename to ...
2162 (optimize_function_for_size): ... this one; make extern.
2163 (optimize_function_for_speed_p): New.
2164 (optimize_bb_for_size_p, optimize_bb_for_size_p,
2165 optimize_edge_for_size_p,optimize_edge_for_size_p,
2166 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2167 * basic-block.h (optimize_function_for_size_p,
2168 optimize_function_for_speed_p): Declare.
2169 * i386.md (optimize_size checks): Replace them by appropriate
2171 (standard_80387_constant_p, ix86_compute_frame_layout,
2172 ix86_expand_epilogue, ix86_decompose_address,
2173 print_operand, emit_i387_cw_initialization,
2174 inline_memory_move_cost, ix86_pad_returns,
2175 ix86_reorg): Replace optimize_size checks.
2177 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2179 * rtl.h (simplify_subreg_regno): Declare.
2180 * rtlanal.c (simplify_subreg_regno): New function, split out from...
2181 * simplify-rtx.c (simplify_subreg): ...here.
2182 * reload.c (find_reloads): Use simplify_subreg_regno instead of
2183 subreg_offset_representable_p.
2185 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2188 * c-typeck.c (convert_for_assignment): Give a note describing what
2189 was passed and what was expected.
2191 2008-08-28 Joey Ye <joey.ye@intel.com>
2193 * doc/extend.texi: Document AVX built-in functions.
2194 * doc/invoke.texi: Document -mavx.
2196 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
2197 Joey Ye <joey.ye@intel.com>
2198 Xuepeng Guo <xuepeng.guo@intel.com>
2200 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2202 * config/i386/cpuid.h (bit_FMA): New.
2203 (bit_XSAVE): Likewise.
2204 (bit_OSXSAVE): Likewise.
2205 (bit_AVX): Likewise.
2207 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2208 define. Use ASM_OUTPUT_AVX_PREFIX.
2210 * config/i386/gmmintrin.h: New.
2212 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2213 (OPTION_MASK_ISA_AVX_SET): New.
2214 (OPTION_MASK_ISA_FMA_SET): Likewise.
2215 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2216 (OPTION_MASK_ISA_FMA_SET): Likewise.
2217 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2218 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2219 (pta_flags): Add PTA_AVX and PTA_FMA.
2220 (override_options): Handle PTA_AVX and PTA_FMA.
2221 (init_cumulative_args): Handle warn_avx.
2222 (classify_argument): Return 0 for COImode and OImode. Return
2223 1 and X86_64_AVX_CLASS for 256bit vector types.
2224 (examine_argument): Handle X86_64_AVX_CLASS.
2225 (construct_container): Likewise.
2226 (function_arg_advance_32): Pass OImode and 256bit vector types
2228 (function_arg_advance_64): Take a new argument to indicate if a
2229 parameter is named. Handle 256bit vector types. Return
2230 immediately for unnamed 256bit vector mode parameters.
2231 (function_arg_advance): Updated.
2232 (function_arg_32): Add comments for TImode. Handle OImode
2233 and 256bit vector types.
2234 (function_arg_64): Take a new argument to indicate if a
2235 parameter is named. Handle 256bit vector types. Return NULL
2236 for unnamed 256bit vector mode parameters.
2237 (function_arg): Updated.
2238 (setup_incoming_varargs_64): Support
2239 AVX encoding for *sse_prologue_save_insn.
2240 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2241 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2242 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
2243 enabled, otherwise return -3.
2244 (standard_sse_constant_opcode): Handle AVX and 256bit vector
2246 (print_reg): Support AVX registers. Handle 'x' and 't'.
2247 Handle 'd' to duplicate the operand.
2248 (print_operand): Likewise. Also support AVX vector compare
2250 (output_387_binary_op): Support AVX.
2251 (output_fp_compare): Likewise.
2252 (ix86_expand_vector_move_misalign): Likewise.
2253 (ix86_attr_length_vex_default): New.
2254 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2255 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2256 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2257 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2258 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2259 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2260 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2261 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2262 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2263 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2264 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2265 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2266 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2267 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2268 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2269 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2270 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2271 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2272 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2273 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2274 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2275 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2276 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2277 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2278 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2279 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2280 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2281 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2282 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2283 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2284 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2285 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2286 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2287 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2288 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2289 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2290 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2291 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2292 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2293 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2294 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2295 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2296 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2297 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2298 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2299 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2300 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2301 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2302 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2303 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2304 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2305 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2306 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2307 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2308 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2309 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2310 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2311 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2312 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2313 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2314 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2315 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2316 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2317 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2318 and IX86_BUILTIN_MOVMSKPS256,
2319 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2320 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2321 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2322 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2323 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2324 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2325 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2326 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2327 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2328 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2329 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2330 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2331 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2332 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2333 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2334 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2335 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2336 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2337 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2338 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2339 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2340 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2341 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2342 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2343 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2344 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2345 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2346 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2347 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2348 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2349 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2350 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2351 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2352 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2353 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2354 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2355 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2356 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2357 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2358 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2359 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2360 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2361 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2362 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2363 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2364 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2365 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2366 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2367 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2368 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2369 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2370 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2371 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2372 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2373 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2374 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2375 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2376 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2378 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2379 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2380 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2381 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2382 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2383 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2384 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2385 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2386 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2387 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2388 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2389 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2390 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2391 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2392 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2393 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2394 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2395 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2396 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2397 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2398 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2399 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2400 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2401 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2402 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2403 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2404 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2405 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2406 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2407 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2408 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2409 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2410 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2411 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2412 IX86_BUILTIN_MOVMSKPS256.
2413 (ix86_init_mmx_sse_builtins): Support AVX builtins.
2414 (ix86_expand_args_builtin): Likewise.
2415 (ix86_expand_special_args_builtin): Likewise.
2416 (ix86_hard_regno_mode_ok): Handle AVX modes.
2417 (ix86_expand_vector_init_duplicate): Likewise.
2418 (ix86_expand_vector_init_one_nonzero): Likewise.
2419 (ix86_expand_vector_init_one_var): Likewise.
2420 (ix86_expand_vector_init_concat): Likewise.
2421 (ix86_expand_vector_init_general): Likewise.
2422 (ix86_expand_vector_set): Likewise.
2423 (ix86_vector_mode_supported_p): Likewise.
2424 (x86_extended_reg_mentioned_p): Check INSN_P before using
2427 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2428 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2430 * config/i386/i386.h (TARGET_AVX): New.
2431 (TARGET_FMA): Likewise.
2432 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2433 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2434 (VALID_AVX256_REG_MODE): New.
2435 (AVX256_VEC_FLOAT_MODE_P): Likewise.
2436 (AVX_FLOAT_MODE_P): Likewise.
2437 (AVX128_VEC_FLOAT_MODE_P): Likewise.
2438 (AVX256_VEC_FLOAT_MODE_P): Likewise.
2439 (AVX_VEC_FLOAT_MODE_P): Likewise.
2440 (ASM_OUTPUT_AVX_PREFIX): Likewise.
2441 (ASM_OUTPUT_OPCODE): Likewise.
2442 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2444 (SSE_REG_MODE_P): Allow 256bit vector modes.
2445 (ix86_args): Add a warn_avx field.
2447 * config/i386/i386.md (UNSPEC_PCMP): New.
2448 (UNSPEC_VPERMIL): Likewise.
2449 (UNSPEC_VPERMIL2): Likewise.
2450 (UNSPEC_VPERMIL2F128): Likewise.
2451 (UNSPEC_MASKLOAD): Likewise.
2452 (UNSPEC_MASKSTORE): Likewise.
2453 (UNSPEC_CAST): Likewise.
2454 (UNSPEC_VTESTP): Likewise.
2455 (UNSPECV_VZEROALL): Likewise.
2456 (UNSPECV_VZEROUPPER): Likewise.
2457 (XMM0_REG): Likewise.
2458 (XMM1_REG): Likewise.
2459 (XMM2_REG): Likewise.
2460 (XMM3_REG): Likewise.
2461 (XMM4_REG): Likewise.
2462 (XMM5_REG): Likewise.
2463 (XMM6_REG): Likewise.
2464 (XMM8_REG): Likewise.
2465 (XMM9_REG): Likewise.
2466 (XMM10_REG): Likewise.
2467 (XMM11_REG): Likewise.
2468 (XMM12_REG): Likewise.
2469 (XMM13_REG): Likewise.
2470 (XMM14_REG): Likewise.
2471 (XMM15_REG): Likewise.
2473 (prefix_vex_imm8): Likewise.
2474 (prefix_vex_w): Likewise.
2475 (length_vex): Likewise.
2478 (*avx_ashlti3): Likewise.
2479 (*avx_lshrti3): Likewise.
2480 (*avx_setcc<mode>): Likewise.
2481 (*fop_<mode>_comm_mixed_avx): Likewise.
2482 (*fop_<mode>_comm_avx): Likewise.
2483 (*fop_<mode>_1_mixed_avx): Likewise.
2484 (*fop_<mode>_1_avx): Likewise.
2485 (*avx_<code><mode>3): Likewise.
2486 (*avx_ieee_smin<mode>3): Likewise.
2487 (*avx_ieee_smax<mode>3): Likewise.
2488 (mode): Add OI, V8SF and V4DF.
2489 (length): Support VEX prefix.
2490 (*cmpfp_i_mixed): Set prefix attribute.
2491 (*cmpfp_i_sse): Likewise.
2492 (*cmpfp_iu_mixed): Likewise.
2493 (*cmpfp_iu_sse): Likewise.
2494 (*movsi_1): Support AVX.
2495 (*movdi_2): Likewise.
2496 (*movdi_1_rex64): Likewise.
2497 (*movti_internal): Likewise.
2498 (*movti_rex64): Likewise.
2499 (*movsf_1): Likewise.
2500 (*movdf_nointeger): Likewise.
2501 (*movdf_integer_rex64): Likewise.
2502 (*movtf_internal): Likewise.
2503 (zero_extendsidi2_32): Likewise.
2504 (zero_extendsidi2_rex64): Likewise.
2505 (*extendsfdf2_mixed): Likewise.
2506 (*extendsfdf2_sse): Likewise.
2507 (*truncdfsf_fast_mixed): Likewise.
2508 (*truncdfsf_fast_sse): Likewise.
2509 (*truncdfsf_mixed): Likewise.
2510 (fix_trunc<mode>di_sse): Likewise.
2511 (fix_trunc<mode>si_sse): Likewise.
2512 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2513 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2514 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2515 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2516 (*rcpsf2_sse): Likewise.
2517 (*rsqrtsf2_sse): Likewise.
2518 (*sqrt<mode>2_sse): Likewise.
2519 (sse4_1_round<mode>2): Likewise.
2520 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
2521 Support AVX. Set length attribute properly for AVX.
2523 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
2524 (VECTOR_MODES (FLOAT, 32)): Likewise.
2525 (VECTOR_MODE (INT, DI, 8)): Likewise.
2526 (VECTOR_MODE (INT, HI, 32)): Likewise.
2527 (VECTOR_MODE (INT, QI, 64)): Likewise.
2528 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
2529 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
2530 (VECTOR_MODE (INT, DI, 4)): Removed.
2531 (VECTOR_MODE (INT, SI, 8)): Likewise.
2532 (VECTOR_MODE (INT, HI, 16)): Likewise.
2533 (VECTOR_MODE (INT, QI, 32)): Likewise.
2534 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
2535 (INT_MODE (OI, 32)): Likewise.
2537 * config/i386/i386.opt (mavx): New.
2540 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
2542 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
2543 (*mov<mode>_internal_avx): New.
2544 (*movv2sf_internal_rex64_avx): Likewise.
2545 (*movv2sf_internal_avx): Likewise.
2547 * config/i386/predicates.md (const_4_to_5_operand): New.
2548 (const_6_to_7_operand): Likewise.
2549 (const_8_to_11_operand): Likewise.
2550 (const_12_to_15_operand): Likewise.
2551 (avx_comparison_float_operator): Likewise.
2553 * config/i386/sse.md (AVX256MODEI): New.
2554 (AVX256MODE): Likewise.
2555 (AVXMODEQI): Likewise.
2556 (AVXMODE): Likewise.
2557 (AVX256MODEF2P): Likewise.
2558 (AVX256MODE2P): Likewise.
2559 (AVX256MODE4P): Likewise.
2560 (AVX256MODE8P): Likewise.
2561 (AVXMODEF2P): Likewise.
2562 (AVXMODEF4P): Likewise.
2563 (AVXMODEDCVTDQ2PS): Likewise.
2564 (AVXMODEDCVTPS2DQ): Likewise.
2565 (avxvecmode): Likewise.
2566 (avxvecpsmode): Likewise.
2567 (avxhalfvecmode): Likewise.
2568 (avxscalarmode): Likewise.
2569 (avxcvtvecmode): Likewise.
2570 (avxpermvecmode): Likewise.
2571 (avxmodesuffixf2c): Likewise.
2572 (avxmodesuffixp): Likewise.
2573 (avxmodesuffixs): Likewise.
2574 (avxmodesuffix): Likewise.
2575 (vpermilbits): Likewise.
2576 (pinsrbits): Likewise.
2577 (mov<mode>): Likewise.
2578 (*mov<mode>_internal): Likewise.
2579 (push<mode>1): Likewise.
2580 (movmisalign<mode>): Likewise.
2581 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2582 (avx_movdqu<avxmodesuffix>): Likewise.
2583 (avx_lddqu<avxmodesuffix>): Likewise.
2584 (<plusminus_insn><mode>3): Likewise.
2585 (*avx_<plusminus_insn><mode>3): Likewise.
2586 (*avx_vm<plusminus_insn><mode>3): Likewise.
2587 (mul<mode>3): Likewise.
2588 (*avx_mul<mode>3): Likewise.
2589 (*avx_vmmul<mode>3): Likewise.
2590 (divv8sf3): Likewise.
2591 (divv4df3): Likewise.
2592 (avx_div<mode>3): Likewise.
2593 (*avx_div<mode>3): Likewise.
2594 (*avx_vmdiv<mode>3): Likewise.
2595 (avx_rcpv8sf2): Likewise.
2596 (*avx_vmrcpv4sf2): Likewise.
2597 (sqrtv8sf2): Likewise.
2598 (avx_sqrtv8sf2): Likewise.
2599 (*avx_vmsqrt<mode>2): Likewise.
2600 (rsqrtv8sf2): Likewise.
2601 (avx_rsqrtv8sf2): Likewise.
2602 (*avx_vmrsqrtv4sf2): Likewise.
2603 (<code><mode>3): Likewise.
2604 (*avx_<code><mode>3_finite): Likewise.
2605 (*avx_<code><mode>3): Likewise.
2606 (*avx_vm<code><mode>3): Likewise.
2607 (*avx_ieee_smin<mode>3): Likewise.
2608 (*avx_ieee_smax<mode>3): Likewise.
2609 (avx_addsubv8sf3): Likewise.
2610 (avx_addsubv4df3): Likewise.
2611 (*avx_addsubv4sf3): Likewise.
2612 (*avx_addsubv2df3): Likewise.
2613 (avx_h<plusminus_insn>v4df3): Likewise.
2614 (avx_h<plusminus_insn>v8sf3): Likewise.
2615 (*avx_h<plusminus_insn>v4sf3): Likewise.
2616 (*avx_h<plusminus_insn>v2df3): Likewise.
2617 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
2618 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
2619 (*avx_maskcmp<mode>3): Likewise.
2620 (avx_nand<mode>3): Likewise.
2621 (*avx_<code><mode>3): Likewise.
2622 (*avx_nand<mode>3): Likewise.
2623 (*avx_<code><mode>3): Likewise.
2624 (*avx_cvtsi2ss): Likewise.
2625 (*avx_cvtsi2ssq): Likewise.
2626 (*avx_cvtsi2sd): Likewise.
2627 (*avx_cvtsi2sdq): Likewise.
2628 (*avx_cvtsd2ss): Likewise.
2629 (avx_cvtss2sd): Likewise.
2630 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
2631 (avx_cvtps2dq<avxmodesuffix>): Likewise.
2632 (avx_cvttps2dq<avxmodesuffix>): Likewise.
2633 (*avx_cvtsi2sd): Likewise.
2634 (*avx_cvtsi2sdq): Likewise.
2635 (avx_cvtdq2pd256): Likewise.
2636 (avx_cvtpd2dq256): Likewise.
2637 (avx_cvttpd2dq256): Likewise.
2638 (*avx_cvtsd2ss): Likewise.
2639 (*avx_cvtss2sd): Likewise.
2640 (avx_cvtpd2ps256): Likewise.
2641 (avx_cvtps2pd256): Likewise.
2642 (*avx_movhlps): Likewise.
2643 (*avx_movlhps): Likewise.
2644 (avx_unpckhps256): Likewise.
2645 (*avx_unpckhps): Likewise.
2646 (avx_unpcklps256): Likewise.
2647 (*avx_unpcklps): Likewise.
2648 (avx_movshdup256): Likewise.
2649 (avx_movsldup256): Likewise.
2650 (avx_shufps256): Likewise.
2651 (avx_shufps256_1): Likewise.
2652 (*avx_shufps_<mode>): Likewise.
2653 (*avx_loadhps): Likewise.
2654 (*avx_storelps): Likewise.
2655 (*avx_loadlps): Likewise.
2656 (*avx_movss): Likewise.
2657 (*vec_dupv4sf_avx): Likewise.
2658 (*vec_concatv2sf_avx): Likewise.
2659 (*vec_concatv4sf_avx): Likewise.
2660 (*vec_setv4sf_0_avx): Likewise.
2661 (*vec_setv4sf_avx): Likewise.
2662 (*avx_insertps): Likewise.
2663 (avx_vextractf128<mode>): Likewise.
2664 (vec_extract_lo_<mode>): Likewise.
2665 (vec_extract_hi_<mode>): Likewise.
2666 (vec_extract_lo_<mode>): Likewise.
2667 (vec_extract_hi_<mode>): Likewise.
2668 (vec_extract_lo_v16hi): Likewise.
2669 (vec_extract_hi_v16hi): Likewise.
2670 (vec_extract_lo_v32qi): Likewise.
2671 (vec_extract_hi_v32qi): Likewise.
2672 (avx_unpckhpd256): Likewise.
2673 (*avx_unpckhpd): Likewise.
2674 (avx_movddup256): Likewise.
2675 (*avx_movddup): Likewise.
2676 (avx_unpcklpd256): Likewise.
2677 (*avx_unpcklpd): Likewise.
2678 (avx_shufpd256): Likewise.
2679 (avx_shufpd256_1): Likewise.
2680 (*avx_punpckhqdq): Likewise.
2681 (*avx_punpcklqdq): Likewise.
2682 (*avx_shufpd_<mode>): Likewise.
2683 (*avx_storehpd): Likewise.
2684 (*avx_loadhpd): Likewise.
2685 (*avx_loadlpd): Likewise.
2686 (*avx_movsd): Likewise.
2687 (*vec_concatv2df_avx): Likewise.
2688 (*avx_<plusminus_insn><mode>3): Likewise.
2689 (*avx_<plusminus_insn><mode>3): Likewise.
2690 (*avx_mulv8hi3): Likewise.
2691 (*avxv8hi3_highpart): Likewise.
2692 (*avx_umulv8hi3_highpart): Likewise.
2693 (*avx_umulv2siv2di3): Likewise.
2694 (*avx_mulv2siv2di3): Likewise.
2695 (*avx_pmaddwd): Likewise.
2696 (*avx_mulv4si3): Likewise.
2697 (*avx_ashr<mode>3): Likewise.
2698 (*avx_lshr<mode>3): Likewise.
2699 (*avx_ashl<mode>3): Likewise.
2700 (*avx_<code><mode>3): Likewise.
2701 (*avx_eq<mode>3): Likewise.
2702 (*avx_gt<mode>3): Likewise.
2703 (*avx_nand<mode>3): Likewise.
2704 (*avx_nand<mode>3): Likewise.
2705 (*avx_<code><mode>3): Likewise.
2706 (*avx_<code><mode>3): Likewise.
2707 (*avx_packsswb): Likewise.
2708 (*avx_packssdw): Likewise.
2709 (*avx_packuswb): Likewise.
2710 (*avx_punpckhbw): Likewise.
2711 (*avx_punpcklbw): Likewise.
2712 (*avx_punpckhwd): Likewise.
2713 (*avx_punpcklwd): Likewise.
2714 (*avx_punpckhdq): Likewise.
2715 (*avx_punpckldq): Likewise.
2716 (*avx_pinsr<avxmodesuffixs>): Likewise.
2717 (*avx_pinsrq): Likewise.
2718 (*avx_loadld): Likewise.
2719 (*vec_extractv2di_1_rex64_avx): Likewise.
2720 (*vec_extractv2di_1_avx): Likewise.
2721 (*vec_dupv2di_avx): Likewise.
2722 (*vec_concatv2si_avx): Likewise.
2723 (*vec_concatv4si_1_avx): Likewise.
2724 (*vec_concatv2di_avx): Likewise.
2725 (*vec_concatv2di_rex64_avx): Likewise.
2726 (*avx_uavgv16qi3): Likewise.
2727 (*avx_uavgv8hi3): Likewise.
2728 (*avx_psadbw): Likewise.
2729 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
2730 (*avx_phaddwv8hi3): Likewise.
2731 (*avx_phadddv4si3): Likewise.
2732 (*avx_phaddswv8hi3): Likewise.
2733 (*avx_phsubwv8hi3): Likewise.
2734 (*avx_phsubdv4si3): Likewise.
2735 (*avx_phsubswv8hi3): Likewise.
2736 (*avx_pmaddubsw128): Likewise.
2737 (*avx_pmulhrswv8hi3): Likewise.
2738 (*avx_pshufbv16qi3): Likewise.
2739 (*avx_psign<mode>3): Likewise.
2740 (*avx_palignrti): Likewise.
2741 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2742 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2743 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2744 (*avx_mpsadbw): Likewise.
2745 (*avx_packusdw): Likewise.
2746 (*avx_pblendvb): Likewise.
2747 (*avx_pblendw): Likewise.
2748 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2749 (avx_ptest256): Likewise.
2750 (avx_roundp<avxmodesuffixf2c>256): Likewise.
2751 (*avx_rounds<ssemodesuffixf2c>): Likewise.
2752 (*avx_aesenc): Likewise.
2753 (*avx_aesenclast): Likewise.
2754 (*avx_aesdec): Likewise.
2755 (*avx_aesdeclast): Likewise.
2756 (avx_vzeroupper): Likewise.
2757 (avx_vzeroupper_rex64): Likewise.
2758 (avx_vpermil<mode>): Likewise.
2759 (avx_vpermilvar<mode>3): Likewise.
2760 (avx_vpermil2<mode>3): Likewise.
2761 (avx_vperm2f128<mode>3): Likewise.
2762 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2763 (avx_vbroadcastss256): Likewise.
2764 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
2765 (avx_vinsertf128<mode>): Likewise.
2766 (vec_set_lo_<mode>): Likewise.
2767 (vec_set_hi_<mode>): Likewise.
2768 (vec_set_lo_<mode>): Likewise.
2769 (vec_set_hi_<mode>): Likewise.
2770 (vec_set_lo_v16hi): Likewise.
2771 (vec_set_hi_v16hi): Likewise.
2772 (vec_set_lo_v32qi): Likewise.
2773 (vec_set_hi_v32qi): Likewise.
2774 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2775 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2776 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2777 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
2778 (vec_init<mode>): Likewise.
2779 (*vec_concat<mode>_avx): Likewise.
2780 (blendbits): Support V8SF and V4DF.
2781 (sse2_movq128): Support AVX.
2782 (<sse>_movnt<mode>): Likewise.
2783 (sse2_movntv2di): Likewise.
2784 (sse_rcpv4sf2): Likewise.
2785 (sse_sqrtv4sf2): Likewise.
2786 (sse_rsqrtv4sf2): Likewise.
2787 (<sse>_comi): Likewise.
2788 (<sse>_ucomi): Likewise.
2789 (sse_cvtss2si): Likewise.
2790 (sse_cvtss2si_2): Likewise.
2791 (sse_cvtss2siq): Likewise.
2792 (sse_cvtss2siq_2): Likewise.
2793 (sse_cvttss2si): Likewise.
2794 (sse_cvttss2siq): Likewise.
2795 (sse2_cvtsd2si): Likewise.
2796 (sse2_cvtsd2si_2): Likewise.
2797 (sse2_cvtsd2siq): Likewise.
2798 (sse2_cvtsd2siq_2): Likewise.
2799 (sse2_cvttsd2si): Likewise.
2800 (sse2_cvttsd2siq): Likewise.
2801 (sse2_cvtdq2pd): Likewise.
2802 (*sse2_cvtpd2dq): Likewise.
2803 (*sse2_cvttpd2dq): Likewise.
2804 (*sse2_cvtpd2ps): Likewise.
2805 (sse2_cvtps2pd): Likewise.
2806 (sse3_movshdup): Likewise.
2807 (sse3_movsldup): Likewise.
2808 (sse_storehps): Likewise.
2809 (*sse4_1_extractps): Likewise.
2810 (sse2_storelpd): Likewise.
2811 (vec_dupv2df_sse3): Likewise.
2812 (*vec_concatv2df_sse3): Likewise.
2813 (*sse4_1_pextrb): Likewise.
2814 (*sse4_1_pextrb_memory): Likewise.
2815 (*sse2_pextrw): Likewise.
2816 (*sse4_1_pextrw_memory): Likewise.
2817 (*sse4_1_pextrd): Likewise.
2818 (*sse4_1_pextrq): Likewise.
2819 (sse2_pshufd_1): Likewise.
2820 (sse2_pshuflw_1): Likewise.
2821 (sse2_pshufhw_1): Likewise.
2822 (*sse2_storeq_rex64): Likewise.
2823 (*vec_dupv4si): Likewise.
2824 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
2825 (sse2_pmovmskb): Likewise.
2826 (*sse2_maskmovdqu): Likewise.
2827 (*sse2_maskmovdqu_rex64): Likewise.
2828 (sse_ldmxcsr): Likewise.
2829 (sse_stmxcsr): Likewise.
2830 (abs<mode>2): Likewise.
2831 (sse4_1_movntdqa): Likewise.
2832 (sse4_1_phminposuw): Likewise.
2833 (sse4_1_extendv8qiv8hi2): Likewise.
2834 (*sse4_1_extendv8qiv8hi2): Likewise.
2835 (sse4_1_extendv4qiv4si2): Likewise.
2836 (*sse4_1_extendv4qiv4si2): Likewise.
2837 (sse4_1_extendv2qiv2di2): Likewise.
2838 (*sse4_1_extendv2qiv2di2): Likewise.
2839 (sse4_1_extendv4hiv4si2): Likewise.
2840 (*sse4_1_extendv4hiv4si2): Likewise.
2841 (sse4_1_extendv2hiv2di2): Likewise.
2842 (*sse4_1_extendv2hiv2di2): Likewise.
2843 (sse4_1_extendv2siv2di2): Likewise.
2844 (*sse4_1_extendv2siv2di2): Likewise.
2845 (sse4_1_zero_extendv8qiv8hi2): Likewise.
2846 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
2847 (sse4_1_zero_extendv4qiv4si2): Likewise.
2848 (*sse4_1_zero_extendv4qiv4si2): Likewise.
2849 (sse4_1_zero_extendv2qiv2di2): Likewise.
2850 (*sse4_1_zero_extendv2qiv2di2): Likewise.
2851 (sse4_1_zero_extendv4hiv4si2): Likewise.
2852 (*sse4_1_zero_extendv4hiv4si2): Likewise.
2853 (sse4_1_zero_extendv2hiv2di2): Likewise.
2854 (*sse4_1_zero_extendv2hiv2di2): Likewise.
2855 (sse4_1_zero_extendv2siv2di2): Likewise.
2856 (*sse4_1_zero_extendv2siv2di2): Likewise.
2857 (sse4_1_ptest): Likewise.
2858 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
2859 (sse4_2_pcmpestri): Likewise.
2860 (sse4_2_pcmpestrm): Likewise.
2861 (sse4_2_pcmpistri): Likewise.
2862 (sse4_2_pcmpistrm): Likewise.
2864 (aeskeygenassist): Likewise.
2866 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
2868 * config/i386/predicates.md (vzeroall_operation): New.
2870 * config/i386/sse.md (avx_vzeroall): New.
2871 (*avx_vzeroall): Likewise.
2873 2008-08-28 Paul Brook <paul@codesourcery.com>
2874 Mark Shinwell <shinwell@codesourcery.com>
2875 Richard Earnshaw <richard.earnshaw@arm.com>
2877 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
2878 (TARGET_MIN_ANCHOR_OFFSET): New.
2879 (arm_override_options): Set correct anchor ranges for Thumb-1
2880 and Thumb-2 if required.
2881 (legitimize_pic_address): Handle case involving a TLS symbol
2882 reference with an addend.
2883 (arm_optimization_options): Enable section anchors at -O1 and
2885 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
2886 * config/arm/arm-protos.h (arm_optimization_options): New.
2888 2008-08-28 Nick Clifton <nickc@redhat.com>
2890 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
2891 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
2894 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
2895 * config/v850/v850.md (return): Remove frame size restriction.
2897 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
2899 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
2901 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
2903 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
2905 2008-08-28 Paul Brook <paul@codesourcery.com>
2907 * config/arm/vfp11.md: Update license notice.
2908 * config/arm/cortex-r4.md: Ditto.
2910 2008-08-28 Richard Guenther <rguenther@suse.de>
2912 PR tree-optimization/37207
2913 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
2916 2008-08-28 Dodji Seketeli <dodji@redhat.com>
2919 * tree.c (int_fits_type_p): Don't forget unsigned integers
2920 of type sizetype which higher end word equals -1.
2922 2008-08-28 Ira Rosen <irar@il.ibm.com>
2924 * target.h (struct vectorize): Add new target builtin.
2925 * tree-vectorizer.c (destroy_loop_vec_info): Call
2926 vect_free_slp_instance instead of vect_free_slp_node.
2927 * tree-vectorizer.h (enum slp_load_perm_type): New.
2928 (struct _slp_instance): Add new fields.
2929 (SLP_INSTANCE_LOAD_PERMUTATION): New.
2930 (SLP_INSTANCE_LOADS): New.
2931 (vect_free_slp_tree): Remove.
2932 (vect_free_slp_instance): Declare.
2933 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
2934 (vectorizable_load): Add argument.
2935 (vect_transform_slp_perm_load): New.
2936 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
2938 (vect_get_place_in_interleaving_chain): New function.
2939 (vect_free_slp_tree): Make static.
2940 (vect_free_slp_instance): New function.
2941 (vect_build_slp_tree): Add new arguments. Allow load permutations and
2942 collect the load location in the interleaving chain.
2943 (vect_supported_slp_permutation_p): New function.
2944 (vect_supported_load_permutation_p): Likewise.
2945 (vect_analyze_slp_instance): In case of loads permutation, call
2946 vect_supported_load_permutation_p to check that the permutation is
2948 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
2949 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
2950 (vect_create_mask_and_perm): New function.
2951 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
2952 (vectorizable_load): Add an argument. Don't keep the created vectors
2953 statements in the node if permutation is required. Call
2954 vect_transform_slp_perm_load to generate the permutation.
2955 (vect_transform_stmt): Add new argument. Call vectorizable_load with
2956 additional argument.
2957 (vect_schedule_slp_instance): In case of loads permutation, allocate
2958 vectorized statements structure for all the related SLP nodes. Call
2959 vect_transform_stmt with addditional argument.
2960 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
2961 * config/spu/spu.c (spu_builtin_vec_perm): New.
2962 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2963 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
2964 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
2965 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2967 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
2969 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
2970 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
2971 __gthread_cond_signal, __gthread_cond_timedwait,
2972 __gthread_cond_timedwait_recursive): New functions.
2973 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
2975 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
2978 2008-08-28 Richard Guenther <rguenther@suse.de>
2981 * fold-const.c (maybe_canonicalize_comparison_1): Require
2982 undefined overflow only for canonicalizing A +- CST cmp CST.
2983 Make sure to not generate new constants that are not inside
2984 their TYPE_MIN/MAX_VALUE range.
2985 (maybe_canonicalize_comparison): Remove undefined overflow
2987 (fold_binary): Remove now duplicate folding.
2989 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
2991 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
2992 use not updated in the last change.
2994 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
2996 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
2997 (IRA_COVER_CLASSES): Add FPUL_REGS.
2999 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3002 * c-common.c (conversion_warning): Check for null operands.
3004 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3007 * c-decl.c (check_for_loop_decls): Improve error message. Give
3010 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3013 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3014 (convert_for_assignment): Pass corrent OPT_W* parameter to
3015 WARN_FOR_ASSIGNMENT.
3017 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
3020 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3022 2008-08-27 Paul Brook <paul@codesourcery.com>
3024 * config.gcc: Loosen checks for arm uclinux eabi targets.
3026 2008-08-27 Paul Brook <paul@codesourcery.com>
3028 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3030 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3032 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
3034 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3035 the enumerators of an ENUMERAL_TYPE.
3036 * dbxout.c (dbxout_type): Ditto.
3038 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
3041 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3042 (fwprop_addr): Check that the loop_father is not the outer loop.
3044 2008-08-26 Paul Brook <paul@codesourcery.com>
3046 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3047 Remove documentation entry for fmul type.
3048 Use fmuls to annotate single-precision multiplication patterns,
3049 fmuld to annotate double-precision multiplication patterns,
3050 fmacs to annotate single-precision multiply-accumulate patterns
3051 and fmacd to annotate double-precision multiply-accumulate patterns.
3052 * config/arm/vfp11.md: Update reservations accordingly.
3053 * config/arm/arm.md: Note that certain values of the "type"
3054 attribute are documented in vfp.md.
3055 * config/arm/arm1020e.md: Remove out of date duplicate comment.
3056 (v10_cvt): Use new fmul types.
3058 2008-08-26 Paul Brook <paul@codesourcery.com>
3060 * config/arm/vfp.md: Move pipeline description for VFP11 to...
3061 * config/arm/vfp11.md: ...here. New.
3062 * config/arm/arm.md: Include vfp11.md.
3064 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
3066 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3067 parameter to inform call.
3069 2008-08-26 Jeff Law <law@redhat.com>
3071 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3072 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3073 preferred class when copying a constant into a partial word register.
3075 2008-08-26 Ben Elliston <bje@au.ibm.com>
3077 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3078 * cp/typeck.c: Likewise.
3079 * cp/tree.c: Likewise.
3080 * gimple-low.c: Likewise.
3083 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
3085 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3086 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3088 * doc/passes.texi: Describe IRA.
3090 * doc/tm.texi (IRA_COVER_CLASSES,
3091 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3093 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3094 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3095 -fira-propagate-cost, -fno-ira-share-save-slots,
3096 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3098 * flags.h (ira_algorithm): New enumeration.
3099 (flag_ira_algorithm, flag_ira_verbose): New external variable
3102 * postreload.c (gate_handle_postreload): Don't do post reload
3103 optimizations unless the reload is completed.
3105 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3108 * tree-pass.h (pass_ira): New external variable declaration.
3110 * reload.h: Add 2008 to the Copyright.
3112 * cfgloopanal.c: Include params.h.
3113 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3116 * params.h (IRA_MAX_LOOPS_NUM): New macro.
3118 * toplev.c (ira.h): New include.
3119 (flag_ira_algorithm, flag_ira_verbose): New external variables.
3120 (backend_init_target): Call ira_init.
3121 (backend_init): Call ira_init_once.
3122 (finalize): Call finish_ira_once.
3124 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3125 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3128 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3129 may_move_out_cost): New external variable declarations.
3130 (move_table): New typedef.
3132 * caller-save.c: Include headers output.h and ira.h.
3133 (no_caller_save_reg_set): New global variable.
3134 (save_slots_num, save_slots): New variables.
3135 (reg_save_code, reg_restore_code, add_stored_regs): Add
3137 (init_caller_save): Set up no_caller_save_reg_set.
3138 (init_save_areas): Reset save_slots_num.
3139 (saved_hard_reg): New structure.
3140 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3141 (initiate_saved_hard_regs, new_saved_hard_reg,
3142 finish_saved_hard_regs, saved_hard_reg_compare_func): New
3144 (setup_save_areas): Add code for sharing stack slots.
3145 (all_blocks): New variable.
3146 (save_call_clobbered_regs): Process pseudo-register too.
3147 (mark_set_regs): Process pseudo-register too.
3148 (insert_one_insn): Put the insn after bb note in a empty basic
3149 block. Add insn check.
3151 * global.c (eliminable_regset): Make it external.
3152 (mark_elimination): Use DF_LR_IN for IRA.
3153 (pseudo_for_reload_consideration_p): New.
3154 (build_insn_chain): Make it external. Don't ignore spilled
3155 pseudos for IRA. Use pseudo_for_reload_consideration_p.
3156 (gate_handle_global_alloc): New function.
3157 (pass_global_alloc): Add the gate function.
3159 * opts.c (decode_options): Set up flag_ira. Print the warning for
3161 (common_handle_option): Process -fira-algorithm and -fira-verbose.
3163 * timevar.def (TV_IRA, TV_RELOAD): New passes.
3165 * regmove.c (regmove_optimize): Don't do replacement of output for
3168 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3169 New external variable declarations.
3171 * local-alloc.c (update_equiv_regs): Make it external. Return
3172 true if jump label rebuilding should be done. Rescan new_insn for
3174 (gate_handle_local_alloc): New function.
3175 (pass_local_alloc): Add the gate function.
3177 * alias.c (value_addr_p, stack_addr_p): New functions.
3178 (nonoverlapping_memrefs_p): Use them for IRA.
3180 * common.opt (fira, fira-algorithm, fira-coalesce,
3181 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3182 fira-verbose): New options.
3184 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3185 move_cost, may_move_in_cost, may_move_out_cost): Make the
3187 (move_table): Remove typedef.
3188 (init_move_cost): Make it external.
3189 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3192 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3193 setup_reg_classes): New function prototypes.
3194 (eliminable_regset): New external variable declaration.
3195 (build_insn_chain, update_equiv_regs): New function prototypes.
3197 * Makefile.in (IRA_INT_H): New definition.
3198 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3199 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3200 (reload1.o, toplev.o): Add dependence on ira.h.
3201 (cfgloopanal.o): Add PARAMS_H.
3202 (caller-save.o): Add dependence on output.h and ira.h.
3203 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3204 ira-emit.o, ira-lives.o): New entries.
3206 * passes.c (pass_ira): New pass.
3208 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3210 * reload1.c (ira.h): Include the header.
3211 (changed_allocation_pseudos): New bitmap.
3212 (init_reload): Initiate the bitmap.
3213 (compute_use_by_pseudos): Permits spilled registers in FROM.
3214 (temp_pseudo_reg_arr): New variable.
3215 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
3216 IRA. Call alter_reg with the additional parameter. Don't clear
3217 spilled_pseudos for IRA. Restore original insn chain for IRA.
3218 Clear changed_allocation_pseudos at the end of reload.
3219 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3220 (hard_regno_to_pseudo_regno): New variable.
3221 (count_pseudo): Check spilled pseudos. Set up
3222 hard_regno_to_pseudo_regno.
3223 (count_spilled_pseudo): Check spilled pseudos. Update
3224 hard_regno_to_pseudo_regno.
3225 (find_reg): Use better_spill_reload_regno_p. Check
3226 hard_regno_to_pseudo_regno.
3227 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
3229 (eliminate_regs_1): Use additional parameter for alter_reg.
3230 (finish_spills): Set up pseudo_previous_regs only for spilled
3231 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
3232 more arguments. Don't clear live_throughout and dead_or_set for
3233 spilled pseudos. Use additional parameter for alter_reg. Call
3234 mark_allocation_change. Set up changed_allocation_pseudos.
3235 Remove sanity check.
3236 (emit_input_reload_insns, delete_output_reload): Use additional
3237 parameter for alter_reg. Call mark_allocation_change.
3238 (substitute, gen_reload_chain_without_interm_reg_p): New
3240 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3242 * testsuite/gcc.dg/20080410-1.c: New file.
3244 * config/s390/s390.h (IRA_COVER_CLASSES,
3245 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3247 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3249 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3251 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3253 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3255 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3257 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3259 2008-08-24 Jeff Law <law@redhat.com>
3260 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3261 when ignoring unavailable registers.
3263 2008-08-24 Jeff Law <law@redhat.com>
3264 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3265 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3266 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3267 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3269 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3270 * ira-build.c (allocno_range_compare_func): Stabilize sort.
3272 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3273 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3274 * reload1.c (find_reg): Process registers in register allocation order.
3276 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3277 * toplev.c (backend_init_target): Move ira_init call from
3279 (lang_dependent_init_target): ...to here.
3281 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3282 * ira.c (setup_class_subset_and_memory_move_costs): Don't
3283 calculate memory move costs for NO_REGS.
3285 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3286 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3287 STACK_REGS is defined.
3289 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3290 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3292 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3293 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3295 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3296 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3297 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3300 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
3301 Dorit Nuzman <dorit@il.ibm.com>
3303 * gcc/config/spu/spu.md (vec_extract_evenv4si,
3304 vec_extract_evenv4sf, vec_extract_evenv8hi,
3305 vec_extract_evenv16qi, vec_extract_oddv4si,
3306 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3307 vec_interleave_highv4sf, vec_interleave_lowv4sf,
3308 vec_interleave_highv4si, vec_interleave_lowv4si,
3309 vec_interleave_highv8hi, vec_interleave_lowv8hi,
3310 vec_interleave_highv16qi, vec_interleave_lowv16qi,
3311 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3313 2008-08-25 Janis Johnson <janis187@us.ibm.com>
3316 * config/rs6000/rs6000.c (optimization_options): Don't default to
3317 section anchors without toplevel reorder.
3319 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3321 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3322 (mfc_end_critical_section): Likewise.
3324 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3326 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3327 all type qualifiers from element type to vector type.
3329 2008-08-25 David Daney <ddaney@avtrex.com>
3331 * config/mips/mips.md (immediate_insn): Move up in file, fix
3332 comment typo, reformat.
3333 (fetchop_bit, atomic_hiqi_op memory_barrier,
3334 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3335 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3336 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3337 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3338 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3339 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3340 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3341 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3342 sync_old_nand<mode>, sync_new_nand<mode>,
3343 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3344 test_and_set_12): Moved to sync.md.
3346 * config/mips/sync.md: New file.
3348 2008-08-25 Richard Henderson <rth@redhat.com>
3350 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3351 (regsave): Likewise.
3352 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3353 (output_cfi_directive): Likewise.
3354 (div_data_align): New.
3355 (output_cfi): Use it.
3357 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
3359 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3360 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3361 (TARGET_OCTEON): New macro.
3362 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3363 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3364 (ISA_HAS_POP): New macro.
3365 * config/mips/driver-native.c (host_detect_local_cpu): Handle
3367 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3369 * config/mips/mips.md (cpu): Add octeon.
3370 (type): Add pop attribute value.
3371 (popcount<mode>2): New pattern.
3372 * doc/invoke.texi (-march=@var{arch}): Add octeon.
3374 2008-08-24 Jan Hubicka <jh@suse.cz>
3376 * doc/invoke.texi (-fipa-cp-clone): New option.
3377 (-fipa-cp): Update docs.
3378 (--param ipcp-unit-growth):New.
3379 * ipa-cp.c: Include fibheap.h, params.h
3380 (ipcp_initialize_node_lattices): When not cloning, all externally
3381 visible functions are bottom.
3382 (ipcp_need_redirect_p): Accept clones.
3383 (ipcp_insert_stage): Use cost driven heuristics.
3384 (max_count, dead_nodes): New static vars.
3385 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3386 ipcp_const_param_count): New functions.
3387 * common.opt (ipa-cp-clone): New command line option.
3388 * params.def (ipcp-unit-growth): New.
3390 2008-08-24 Jan Hubicka <jh@suse.cz>
3392 * tree-inline.c (tree_function_versioning): Look harder
3393 for referenced vars.
3395 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
3397 PR tree-optimization/37185
3398 * matrix-reorg.c (transform_access_sites): Update changed stmt.
3400 2008-08-23 Jan Hubicka <jh@suse.cz>
3402 * ipa-cp.c (ipcp_analyze_node): New function.
3403 (ipcp_update_cloned_node): Use it.
3404 (ipcp_init_stage): Likewise.
3405 * ipa-inline.c (function_insertion_hook_holder): New static var.
3406 (analyze_function): Break out from ....
3407 (inline_generate_summary): Here; register insertion hook.
3408 (cgraph_decide_inlining): Remove hook.
3409 (add_new_function): New function.
3411 2008-08-23 Jan Hubicka <jh@suse.cz>
3413 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3415 2008-08-23 Jan Hubicka <jh@suse.cz>
3417 * ipa-cp.c (constant_val_insert): Remove.
3418 (ipcp_propagate_one_const): Remove.
3419 (ipcp_create_replace_map): Always insert replacements to the map.
3420 (ipcp_insert_stage): Do not try to insert statements by hand.
3421 * tree-inline.c (insert_init_stmt): Break out from ...
3422 (setup_one_parameter): ... here; allow NULL BB pointer.
3423 (tree_function_versioning): Use setup_one_parameter to process
3426 2008-08-23 Jan Hubicka <jh@suse.cz>
3428 * tree.c (decl_address_ip_invariant_p): New function.
3429 * tree.h (decl_address_ip_invariant_p): Declare.
3430 * gimple.c (strip_invariant_refs): Break out from ...
3431 (is_gimple_invariant_address): ... here
3432 (is_gimple_ip_invariant_address): New function.
3433 (is_gimple_ip_invariant): New function.
3434 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3437 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3438 (ipcp_lat_is_insertable): All constants are insertable.
3439 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3440 IPA_CONST_VALUE_REF.
3441 (ipcp_initialize_node_lattices): Propagate all types of operands.
3442 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3443 (ipcp_create_replace_map): Reformat.
3444 (ipcp_need_redirect_p): Simplify.
3445 (ipcp_insert_stage): Check that argument is used before clonning.
3446 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3447 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3448 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3449 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3450 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3451 (jump_func_type): Remove IPA_CONST_VALUE_REF.
3452 * tree-inline.c (tree_function_versioning): Add variables referenced by
3455 2008-08-23 Jan Hubicka <jh@suse.cz>
3458 * i386.c (standard_80387_constant_p): Use optimize_size.
3460 2008-08-23 Ira Rosen <irar@il.ibm.com>
3462 PR tree-optimization/37161
3463 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3464 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3465 (vect_determine_vectorization_factor): Move the scalar type
3466 retrieval to vect_get_smallest_scalar_type.
3467 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3468 scalar type. Remove redundant computation.
3469 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3470 (vect_get_slp_defs): Take the type of RHS into account if
3471 necessary by calling vect_get_smallest_scalar_type. Call
3472 vect_get_constant_vectors with additional argument.
3474 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3477 * doc/invoke.texi (Wwrite-strings): Clarify description.
3479 2008-08-23 Ira Rosen <irar@il.ibm.com>
3481 PR tree-optimization/37174
3482 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
3483 def stmt is a part of the loop before accessing its stmt_vec_info.
3485 2008-08-22 Anatoly Sokolov <aesok@post.ru>
3488 * config/avr/avr.md (UNSPEC_SWAP): New constants.
3489 (*swap): New insn pattern.
3490 (*ashlqi3): Rename from ashlqi3 insn pattern.
3491 (ashlqi3): New expanders.
3492 (*lshrqi3): Rename from lshrqi3 insn pattern.
3493 (lshrqi3): New expanders.
3494 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
3495 lshrqi3_const5, lshrqi3_const6): New splitters.
3496 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
3497 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
3500 2008-08-22 Richard Guenther <rguenther@suse.de>
3502 PR tree-optimization/37078
3503 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
3504 [+INF, +INF] ranges.
3506 2008-08-22 Richard Guenther <rguenther@suse.de>
3508 PR tree-optimization/37143
3509 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
3510 a conversion statement instead of a copy.
3512 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
3515 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
3516 CCCmode, CCOmode and CCSmode destination modes.
3519 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
3520 from different units in a single alternative.
3521 (*vec_extractv2sf_1): Ditto.
3522 (*vec_extractv2si_0): Ditto.
3523 (*vec_extractv2si_1): Ditto.
3524 * config/i386/sse.md (sse2_storehpd): Ditto.
3525 (sse2_storelpd): Ditto.
3526 (sse2_loadhpd): Ditto.
3527 (sse2_loadlpd): Ditto.
3530 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
3531 (popcountsi2): Ditto.
3532 (clzdi2_abm): Ditto.
3533 (popcountdi2): Ditto.
3534 (clzhi2_abm): Ditto.
3535 (popcounthi2): Ditto.
3537 2008-08-22 Richard Guenther <rguenther@suse.de>
3541 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
3542 if the multiplication does not overflow.
3544 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
3546 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
3548 2008-08-21 Richard Henderson <rth@redhat.com>
3550 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
3551 spurrious comma from test.
3552 * configure: Rebuild.
3554 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3557 * builtins.c (fold_builtin_next_arg): Add warning about undefined
3560 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
3562 * c-tree.h (grokfield): New argument.
3563 * c-decl.c (grokfield): Handle new location argument.
3564 * c-parser.c (c_parser_struct_declaration): Pass location to
3567 2008-08-21 Richard Guenther <rguenther@suse.de>
3569 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
3571 2008-08-21 Jan Hubicka <jh@suse.cz>
3573 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
3574 (cgraph_add_function_insertion_hook,
3575 cgraph_remove_function_insertion_hook,
3576 cgraph_call_function_insertion_hooks): New functions.
3577 * cgraph.h (cgraph_add_function_insertion_hook,
3578 cgraph_remove_function_insertion_hook,
3579 cgraph_call_function_insertion_hooks): Declare.
3580 * ipa-reference.c (function_insertion_hook_holder): New variable.
3581 (check_operand, look_for_address_of): When checking late, do not care
3582 about module bitmaps.
3583 (add_new_function): New function.
3584 (generate_summary): Register hooks; zero module bitmaps.
3585 (propagate): Unregister hooks.
3586 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
3587 (add_new_function): New function.
3588 (generate_summary): Register hook.
3589 (propagate): Remove hook.
3591 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
3593 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
3594 * ipa-cp.c (ipcp_update_cloned_node): New function.
3595 (build_const_val): Handle functions correctly; bring type logic
3596 into sync with tree-inline.c
3597 (ipcp_init_stage): Take care of computing stuff needed by
3598 indirect inlining; update clones.
3599 (ipcp_generate_summary): Break out of ipcp_driver.
3600 (ipcp_driver): Do only execution and transformation.
3601 (pass_ipa_cp): Make IPA_PASS.
3602 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
3604 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
3605 ipcp, some info is already available.
3606 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
3607 * tree-inline.c (remap_ssa_name): Unshare expression.
3609 2008-08-21 Richard Guenther <rguenther@suse.de>
3611 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3612 a PHI ask VN if it is already available.
3613 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3614 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3616 2008-08-21 Richard Guenther <rguenther@suse.de>
3619 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
3620 makes sure to produce a result of the correct type.
3622 2008-08-21 Jan Hubicka <jh@suse.cz>
3623 Backport from LTO branch:
3625 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
3626 Jan Hubicka <jh@suse.cz>
3629 (init_state, finish_state, set_function_state, generate_summary):
3631 (scan_stmt): Renamed from scan_function. Changed to keep state in
3632 local static vars rather than cgraph aux field.
3633 (propagate): Renamed from static_execute. Changed to keep state in
3634 local static vars rather than cgraph aux field.
3635 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
3636 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
3638 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
3640 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
3641 * ipa-reference.c (init_function_info, generate_summary,
3642 propagate): New functions.
3643 (analyze_function): Call init_function_info.
3644 (static_execute): Stripped into generate_summary and propagate.
3645 (pass_ipa_reference): Made into ipa_opt_pass.
3647 2008-08-21 Richard Guenther <rguenther@suse.de>
3649 PR tree-optimization/37181
3650 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
3652 (extract_range_from_unary_expr): Likewise.
3654 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3656 * diagnostic.c (pedwarn_at): Rename as pedwarn.
3658 * toplev.h (pedwarn_at): Likewise.
3659 * builtins.c: Update all calls to pedwarn.
3660 * c-lex.c: Likewise.
3661 * toplev.c: Likewise.
3662 * c-tree.h: Likewise.
3663 * c-decl.c: Likewise.
3664 * c-errors.c: Likewise.
3665 * c-typeck.c: Likewise.
3666 * c-common.c: Likewise.
3667 * c-parser.c: Likewise.
3669 2008-08-20 Joseph Myers <joseph@codesourcery.com>
3672 * config/sparc/sparc.c (function_arg_slotno): Handle structure
3673 with MODE_VECTOR_INT mode.
3675 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3678 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
3679 initialized outside the current module.
3680 (warn_uninitialized_var): Ignore left-hand side when walking the
3681 trees. Ignore address expressions. Examine VUSE operands in gimple
3682 statements with a variable declaration on the right-hand side.
3684 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3687 * rtlanal.c (subreg_offset_representable_p): Revert last change.
3689 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3692 * c-common.c (conversion_warning): Do not warn if applying bit-and
3693 operator to unsigned constant that fits in the target type.
3695 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3698 * c-common.c (conversion_warning): Do not warn for artificial
3701 2008-08-20 Richard Guenther <rguenther@suse.de>
3703 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
3704 (extract_range_from_binary_expr): Fall back to constant propagation.
3705 (extract_range_from_unary_expr): Likewise.
3707 2008-08-20 Richard Guenther <rguenther@suse.de>
3709 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
3710 with TREE_THIS_VOLATILE on shared nodes.
3711 (fold_stmt_r): Likewise.
3713 2008-08-20 Jakub Jelinek <jakub@redhat.com>
3716 * c-parser.c (c_parser_attributes): For keywords use canonical
3717 spelling for attr_name.
3719 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3721 * value-prof.c (check_counter): Revert wrong call to error.
3723 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3725 * profile.c: Update calls to inform.
3726 * value-prof.c: Update calls to inform.
3728 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3730 * diagnostic.c (inform): Add an explicit location_t parameter.
3731 * toplev.h (inform): Update declaration.
3732 * builtins.c: Update all calls to inform.
3733 * c-common.c: Likewise.
3734 * c-decl.c: Likewise.
3735 * c-opts.c: Likewise.
3736 * c-pch.c: Likewise.
3737 * c-pragma.c: Likewise.
3738 * c-typeck.c: Likewise.
3739 * coverage.c: Likewise.
3741 * toplev.c: Likewise.
3742 * tree-cfg.c: Likewise.
3743 * tree-ssa.c: Likewise.
3745 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
3748 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
3749 V2DI mode, for SSE4.1, use movq instead of vector set if the
3750 second element is zero and inter-unit moves are OK.
3752 2008-08-20 Richard Guenther <rguenther@suse.de>
3754 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
3755 properly handle conversion/copy chains after tuplification.
3757 2008-08-20 Richard Guenther <rguenther@suse.de>
3759 * passes.c (init_optimization_passes): Move the second
3760 forwprop pass before alias computation. Remove the second
3761 DCE pass. Remove the first dominator and phi copy/const
3764 2008-08-20 Nick Clifton <nickc@redhat.com>
3766 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
3767 support of this feature. Do not assume that a sufficiently new
3768 assembler will support the feature regardless of the target type.
3769 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3770 * configure: Regenerate.
3772 2008-08-20 Richard Guenther <rguenther@suse.de>
3774 * tree-vrp.c (found_in_subgraph): Remove.
3775 (live): New global static.
3776 (live_on_edge): New function.
3777 (blocks_visited): Remove.
3778 (register_edge_assert_for_2): Use live_on_edge.
3779 (find_conditional_asserts): Remove code dealing with
3780 found_in_subgraph. Do not walk the CFG.
3781 (find_switch_asserts): Likewise.
3782 (find_assert_locations_1): Renamed from find_assert_locations.
3783 Move finding assert locations for conditional and switch
3784 statements first. Update live bitmap. Do not walk the CFG.
3785 (find_assert_locations): New function.
3786 (insert_range_assertions): Remove entry of CFG walk.
3787 Adjust call to find_assert_locations.
3788 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
3789 that only can appear because of fake exit edges but assert we
3790 never try to insert on those.
3791 (fini_pre): Do not remove fake exit edges here...
3792 (execute_pre): ...but here, before committing edge inserts.
3794 2008-08-19 Richard Guenther <rguenther@suse.de>
3796 * passes.c (init_optimization_passes): Exchange store-ccp
3799 2008-08-19 Rafael Espíndola <espindola@google.com>
3801 * varasm.c (weak_decls): Move earlier in the file.
3802 (assemble_external): Add weak decls to the weak_decls list.
3803 (declare_weak): Don't add decls to the weak_decls list.
3805 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
3808 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
3809 before (sse2_shufpd_<mode>).
3811 2008-08-19 Jakub Jelinek <jakub@redhat.com>
3814 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
3815 * tree.c (block_nonartificial_location): Likewise.
3817 2008-08-19 Richard Guenther <rguenther@suse.de>
3819 PR tree-optimization/35972
3820 PR tree-optimization/23094
3821 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
3823 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3824 handle MISALIGNED_INDIRECT_REF.
3825 (get_ref_from_reference_ops): New helper.
3826 (vn_reference_lookup_pieces): Walk the use-def chain using the
3827 alias-oracle if requested.
3828 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
3829 walking the use-def chain.
3830 (compute_avail): But not here.
3831 (create_component_ref_by_pieces_1): Properly handle
3832 MISALIGNED_INDIRECT_REF.
3833 (do_regular_insertion): Handle fully redundant
3834 expressions after PHI-translation also for SSA_NAME values, not
3835 only constants. Correctly use edoubleprime for that.
3837 2008-08-19 Ira Rosen <irar@il.ibm.com>
3839 * tree-vectorizer.c (supportable_widening_operation): Support
3840 multi-step conversion, return the number of steps in such conversion
3841 and the required intermediate types.
3842 (supportable_narrowing_operation): Likewise.
3843 * tree-vectorizer.h (vect_pow2): New function.
3844 (supportable_widening_operation): Change argument types.
3845 (supportable_narrowing_operation): Likewise.
3846 (vectorizable_type_promotion): Add an argument.
3847 (vectorizable_type_demotion): Likewise.
3848 * tree-vect-analyze.c (vect_analyze_operations): Call
3849 vectorizable_type_promotion and vectorizable_type_demotion with
3850 additional argument.
3851 (vect_get_and_check_slp_defs): Detect patterns.
3852 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
3854 (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
3855 vect_build_slp_tree with correct arguments. Calculate unrolling factor
3856 according to the smallest type in the loop.
3857 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
3858 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
3859 supportable_widening_operation with correct arguments.
3860 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
3861 operands lists according to the number of vector statements in left
3862 or right node, if exists.
3863 (vect_gen_widened_results_half): Remove unused argument.
3864 (vectorizable_conversion): Call supportable_widening_operation,
3865 supportable_narrowing_operation, and vect_gen_widened_results_half
3866 with correct arguments.
3867 (vectorizable_assignment): Change documentation, support multiple
3869 (vectorizable_operation): Likewise.
3870 (vect_get_loop_based_defs): New function.
3871 (vect_create_vectorized_demotion_stmts): Likewise.
3872 (vectorizable_type_demotion): Support loop-aware SLP and general
3873 multi-step conversion. Call vect_get_loop_based_defs and
3874 vect_create_vectorized_demotion_stmts for transformation.
3875 (vect_create_vectorized_promotion_stmts): New function.
3876 (vectorizable_type_promotion): Support loop-aware SLP and general
3877 multi-step conversion. Call vect_create_vectorized_promotion_stmts
3879 (vectorizable_store): Change documentation, support multiple
3881 (vectorizable_load): Likewise.
3882 (vect_transform_stmt): Pass SLP_NODE to
3883 vectorizable_type_promotion and vectorizable_type_demotion.
3884 (vect_schedule_slp_instance): Move here the calculation of number
3885 of vectorized statements for each node from...
3886 (vect_schedule_slp): ... here.
3887 (vect_transform_loop): Call vect_schedule_slp without the last
3890 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
3893 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
3894 to == in assert statement.
3895 (vectorizable_reduction): Fix typo.
3897 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
3900 * value-prof.c (check_counter): Dereference pointer to overall
3901 count when printing it.
3903 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
3905 * profile.h: Really add it.
3907 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
3909 * mcf.c: Really add it.
3911 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
3912 Vinodha Ramasamy <vinodha@google.com>
3914 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
3916 * value-prof.c (check_counter): Fix the counter if
3917 flag_profile_correction is true.
3918 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3919 tree_mod_subtract_transform):
3920 Follow check_counter parameter change.
3921 * common.opt (fprofile-correction): New option.
3923 * profile.h: Likewise.
3924 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
3925 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
3926 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
3928 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
3929 flag_profile_correction is set.
3931 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
3933 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
3935 2008-08-18 Tomas Bily <tbily@suse.cz>
3937 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
3938 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
3940 * tree-data-ref.c (split_constant_offset_1): Likewise.
3941 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
3942 * tree-sra.c (sra_walk_expr): Likewise.
3943 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
3944 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3945 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
3946 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
3948 * gimple.c (gimple_assign_unary_nop_p): Likewise.
3949 * tree-vect-transform.c (vectorizable_type_demotion)
3950 (vectorizable_type_promotion): Likewise.
3951 * tree-inline.c (expand_call_inline):
3952 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3953 (forward_propagate_addr_expr_1, forward_propagate_comparison)
3954 (tree_ssa_forward_propagate_single_use_vars): Likewise.
3955 * expr.c (expand_expr_real_1): Likewise.
3956 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
3957 (gimple_assign_unary_useless_conversion_p): Likewise.
3958 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3959 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
3960 * fold-const.c (fold_unary): Likewise.
3961 * tree.h (CONVERT_EXPR_P): Likewise.
3962 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
3963 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3965 (register_edge_assert_for_2, extract_range_from_unary_expr)
3966 (register_edge_assert_for_1): Likewise.
3968 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3970 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
3971 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
3972 (enum real_value_const): Delete.
3973 (get_real_const): Delete.
3974 * real.c (get_real_const): Delete.
3975 (dconst_e_ptr): Define.
3976 (dconst_third_ptr): Define.
3977 (dconst_sqrt2_ptr): Define.
3978 * builtins.c: Update all callers.
3980 2008-08-18 Richard Guenther <rguenther@suse.de>
3982 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
3983 statement iterator after statement removal.
3985 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
3987 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
3988 (detect_processor_freebsd): Likewise.
3989 (host_detect_local_cpu): Call newly added functions for FreeBSD.
3991 2008-08-18 Richard Guenther <rguenther@suse.de>
3993 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
3994 and loads have the correct types.
3996 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3999 * c-opts.c (cpp_opts): Remove static.
4000 * c-parser.c (cpp_opts): Declare it extern.
4001 (disable_extension_diagnostics): Handle cpp options.
4002 (enable_extension_diagnostics): Likewise.
4004 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4006 * diagnostics.c (permerror_at): Rename as permerror.
4007 (permerror): Delete.
4008 * toplev.h: Likewise.
4010 2008-08-18 Richard Guenther <rguenther@suse.de>
4012 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4013 sdse1 and addressables2 passes. Replace dce1 with cddce1.
4014 Move call_cdce before build_alias. Move copyrename2,
4015 cunrolli and ccp2 beafore build_alias. Re-add addressable2
4016 right after final inlining.
4017 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4018 (pass_build_cfg): But instead via TODO_dump_func.
4020 2008-08-18 Richard Guenther <rguenther@suse.de>
4022 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4024 (scalarize_init): If we failed to generate some initializers
4025 do not generate zeros for not instantiated members. Instead
4026 rely on the copy out.
4027 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4028 about missing flow-sensitive alias info only if we have
4031 2008-08-17 Nick Clifton <nickc@redhat.com>
4033 * doc/extend.texi (Function Attributes): Fix typo in description
4034 if hot function attribute.
4036 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
4037 Richard Sandiford <rdsandiford@googlemail.com>
4039 * doc/install.texi (--with-mips-plt): Document.
4040 * doc/invoke.texi (-mplt, -mno-plt): Document.
4041 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4042 and handle ${with_mips_plt}.
4043 * config/mips/mips.opt (mplt): New option.
4044 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4045 (TARGET_ABICALLS_PIC2): Likewise.
4046 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4047 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4048 (ASM_SPEC): Use !mabi=* instead of !mabi*.
4049 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4050 to decide whether to output ".option picX" directives.
4051 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4052 Pass -call_nonpic rather than -KPIC for -mplt.
4053 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4054 on the command line. Also remove it when -mabi=64 is used without
4056 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4057 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4058 TARGET_ABICALLS_PIC0.
4059 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4061 (mips16_build_function_stub): Only output ".option pic" directives
4062 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
4063 (mips16_build_call_stub): Fix comment and remove redundant
4064 ".set at"/"set .noat" directives.
4065 (mips_function_rodata_section): Use the default behaviour for
4066 TARGET_ABSOLUTE_ABICALLS.
4067 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4068 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4069 (mips_restore_gp): Do nothing if the current function doesn't use
4071 (mips_expand_prologue): Only save $gp if the current function uses it.
4072 Use a normal move for TARGET_ABICALLS_PIC0.
4073 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4075 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
4077 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4078 of function when handling GLOBAL_POINTER_REGNUM.
4080 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4083 * common.opt (-fstack-check): Do not declare the variable here.
4084 (-fstack-check=): New option variant.
4085 * doc/invoke.texi (Code Gen Options): Document it.
4086 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4087 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4088 (STACK_CHECK_STATIC_BUILTIN): New macro.
4089 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4090 * opts.c: Include expr.h.
4091 (common_handle_option) <OPT_fold_stack_check_>: New case.
4092 <OPT_fstack_check>: Likewise.
4093 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4094 consistently in the test for variable-sized types. Adjust for
4095 new behaviour of flag_stack_check.
4096 * explow.c: Include except.h.
4097 (allocate_dynamic_stack_space): Do not take into account
4098 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4099 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4100 for variable-sized parameters. Treat all parameters whose size is
4101 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4102 stack checking is enabled.
4103 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4104 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4105 if generic stack checking is enabled.
4106 (expand_function_end): Adjust for new behaviour of flag_stack_check.
4107 * reload1.c (reload): Likewise.
4108 * stmt.c (expand_decl): Assert that all automatic variables have
4109 fixed size at this point and remove dead code.
4110 * flags.h (stack_check_type): New enumeration type.
4111 (flag_stack_check): Declare.
4112 * toplev.c (flag_stack_check): New global variable.
4113 * Makefile.in (opts.o): Add dependency on EXPR_H.
4114 (explow.o): Add dependency on except.h.
4116 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
4118 * config/avr/avr.c (avr_override_options): Reduce value of
4119 PARAM_INLINE_CALL_COST.
4121 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
4123 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4124 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
4125 lieu of TYPE_MODE (type) throughout.
4127 2008-08-15 Joseph Myers <joseph@codesourcery.com>
4129 * config/arm/arm.c (add_minipool_backward_ref): Check for
4130 8-byte-aligned entries in second case of forcing insertion after a
4131 particular entry. Change third case to avoid inserting
4132 non-8-byte-aligned entries before 8-byte-aligned ones.
4134 2008-08-15 Richard Guenther <rguenther@suse.de>
4136 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4137 strip components for unknown size accesses.
4139 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
4141 * config/s390/2097.md New file.
4142 * config/s390/s390.md ("z10prop" attribute): Define none,
4143 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4144 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4145 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4146 possible values and apply them to insns as appropriate.
4147 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4148 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4149 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4150 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
4152 ("bfp" mode attribute): Removed. Every occurence replaced
4154 * config/s390/s390.c (struct "z10_cost"): Updated entries.
4155 * config/s390/2084.md (insn_reservation "x_itof"): Updated
4158 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4161 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4164 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
4166 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4167 additional argument. Support reduction when duplication is needed due
4168 to data-types of different sizes in the loop.
4169 (get_initial_def_for_induction): Fix printout.
4170 (vect_get_vec_def_for_stmt_copy): Support case where the
4171 vec_stmt_for_operand is a phi node.
4172 (vectorizable_reduction): Support reduction when duplication is needed
4173 due to data-types of different sizes in the loop.
4174 (vectorizable_call): Remove restriction to not vectorize in case we
4175 have data-types of different sizes in the loop.
4176 (vectorizable_conversion): Likewise.
4177 (vectorizable_operation): Likewise.
4178 (vectorizable_type_demotion): Likewise.
4179 (vectorizable_type_promotion): Likewise.
4180 (vectorizable_induction): Add restriction to not vectorize in case
4181 we have data-types of different sizes in the loop.
4183 2008-08-14 Christophe Saout <christophe@saout.de>
4184 Uros Bizjak <ubizjak@gmail.com>
4187 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4188 (*vec_concatv2di_rex64_sse4_1): Ditto.
4189 (*vec_concatv2di_rex64_sse): Ditto.
4191 2008-08-14 Jakub Jelinek <jakub@redhat.com>
4194 * fold-const.c (fold_widened_comparison): Do not allow
4195 sign changes that change the result even if shorter type
4196 is wider than arg1_unw's type.
4198 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
4200 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4201 Skip if the multilib testing specifies -march that does not
4202 agree with the one specified in the testcase.
4204 2008-08-13 Joseph Myers <joseph@codesourcery.com>
4206 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4207 zero extend SImode values being converted to TFmode before passing
4210 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4212 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4213 __PPU__ when targeting the Cell/B.E. PPU processor.
4215 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
4217 * gimple.h (gimple_call_set_chain): Accept SSA variables.
4218 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4219 Rematerialize the static chain, if any.
4220 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4223 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
4225 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4226 (new_loc_descr): Likewise.
4227 (add_loc_descr): Likewise.
4228 (size_of_loc_descr): Likewise.
4229 (size_of_locs): Likewise.
4230 (output_loc_operands): Likewise.
4231 (output_loc_sequence): Likewise.
4232 (new_reg_loc_descr): New.
4233 (build_cfa_loc): Use it.
4234 (build_cfa_aligned_loc): Likewise.
4235 (one_reg_loc_descriptor): Likewise.
4236 (based_loc_descr): Likewise.
4238 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4241 * doc/invoke.texi (Wmain): Update.
4242 * c-decl.c (start_decl): warn_main is only 0 or 1.
4243 (start_function): Likewise. Fix formatting.
4244 (finish_function): Delete redundant warning.
4245 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4246 * c-opts (c_common_handle_option): -Wall only has effect if
4247 warn_main is uninitialized. OPT_Wmain is automatically
4248 handled. -pedantic also enables Wmain.
4249 (c_common_post_options): Handle all logic for Wmain here.
4250 * c-common.c (warn_main): Delete.
4251 (check_main_parameter_types): Make pedwarns conditional on
4253 * c-common.h (warn_main): Delete.
4255 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
4258 * expr.c (emit_group_store): Allocate stack temp with the
4259 largest alignment when copying from register to stack.
4261 2008-08-13 Richard Guenther <rguenther@suse.de>
4263 * tree.h (maybe_fold_offset_to_address): Declare.
4264 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4265 (ccp_fold): Handle pointer conversions the same as fold_stmt.
4266 Likewise for POINTER_PLUS_EXPR.
4267 (maybe_fold_offset_to_reference): Enable disabled code.
4268 (maybe_fold_offset_to_address): New function.
4269 (fold_stmt_r): Use it.
4270 (fold_gimple_assign): Likewise.
4271 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4272 (gimplify_expr): Likewise.
4274 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4276 * toplev.h (pedwarn_at): Fix declaration.
4278 2008-08-13 Joseph Myers <joseph@codesourcery.com>
4280 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4281 LINK_SPEC): Use %R in -Y P argument.
4283 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4286 * diagnostic.c (pedwarn_at): New.
4287 * toplev.h (pedwarn_at): Declare.
4288 * c-tree.h (build_enumerator): Update declaration.
4289 * c-decl.c (finish_enum): Update comment.
4290 (build_enumerator): Take a location parameter. Give a pedwarn but do
4291 not perform any conversion.
4292 * c-parser.c (c_parser_enum_specifier): Set correct location for
4295 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4298 * c-common.c (conversion_warning): Use a switch. Ignore boolean
4299 expressions except for conversions to signed:1 bitfields. Handle
4300 COND_EXPR with constant operands.
4302 2008-08-13 Richard Guenther <rguenther@suse.de>
4304 PR tree-optimization/15255
4305 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4306 (struct oecount_s): New struct and VEC types.
4308 (oecount_hash): New function.
4309 (oecount_eq): Likewise.
4310 (oecount_cmp): Likewise.
4311 (zero_one_operation): New function.
4312 (build_and_add_sum): Likewise.
4313 (undistribute_ops_list): Perform un-distribution of multiplication
4314 and division on the chain of summands.
4315 (should_break_up_subtract): Also break up subtracts for factors.
4316 (reassociate_bb): Delete dead visited statements.
4317 Call undistribute_ops_list. Re-sort and optimize if it did something.
4318 * passes.c (init_optimization_passes): Move DSE before
4320 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4323 2008-08-12 Janis Johnson <janis187@us.ibm.com>
4325 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4327 * doc/invoke.texi: Revert unintended checkin.
4329 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
4332 * gcc.c (include_spec_function): Tweak call to find_a_file.
4334 2008-08-12 Jakub Jelinek <jakub@redhat.com>
4337 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4338 and TRUTH_ORIF_EXPR.
4339 * dojump.c (do_jump): Likewise.
4341 PR tree-optimization/37084
4342 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4343 if id->regimplify, don't assume stmt is a cast assignment.
4345 2008-08-12 Anatoly Sokolov <aesok@post.ru>
4347 * final.c (final_scan_insn): Use app_enable/app_disable functions.
4349 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4352 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4355 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4357 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4358 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4360 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4361 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4362 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4363 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4364 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4366 * doc/tm.texi (Storage Layout): Remove documentation for
4367 TARGET_FLOAT_FORMAT.
4369 * simplify-rtx.c (simplify_binary_operation_1): Replace
4370 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4372 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4374 * real.h (struct real_format): New member has_sign_dependent_rounding.
4375 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4376 spu_single_format, ieee_double_format, mips_double_format,
4377 motorola_double_format, ieee_extended_motorola_format,
4378 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4379 ieee_extended_intel_96_round_53_format, ibm_extended_format,
4380 mips_extended_format, ieee_quad_format, mips_quad_format,
4381 vax_f_format, vax_d_format, vax_g_format): Initialize it.
4382 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4384 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4385 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4386 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4387 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4388 (ROUND_TOWARDS_ZERO): Likewise.
4390 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4391 (FLOAT_MODE_FORMAT): New macro.
4392 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4393 (MODE_COMPOSITE_P): ... this new macro.
4394 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4395 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4396 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4398 * flags.h: Include "real.h".
4400 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4401 REAL_MODE_FORMAT_COMPOSITE_P.
4402 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4404 * doc/tm.texi (Storage Layout): Remove documentation of
4405 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4406 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
4407 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4408 they only apply to libgcc2.a.
4410 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4412 * config/spu/float_disf.c: New file.
4413 * config/spu/float_unsdisf.c: New file.
4414 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4415 (LIB2FUNCS_EXCLUDE): Define.
4417 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4418 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4420 * real.h (struct real_format): New member round_towards_zero.
4421 * real.c (round_for_format): Respect fmt->round_towards_zero.
4422 (ieee_single_format, mips_single_format, motorola_single_format,
4423 spu_single_format, ieee_double_format, mips_double_format,
4424 motorola_double_format, ieee_extended_motorola_format,
4425 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4426 ieee_extended_intel_96_round_53_format, ibm_extended_format,
4427 mips_extended_format, ieee_quad_format, mips_quad_format,
4428 vax_f_format, vax_d_format, vax_g_format): Initialize it.
4429 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4431 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4432 real_format to choose rounding mode when calling MPFR functions.
4433 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4434 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4436 * real.h (real_to_decimal_for_mode): Add prototype.
4437 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4438 Respect target rounding mode when generating decimal representation.
4439 (real_to_decimal): New stub for backwards compatibility.
4440 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4441 real_to_decimal_for_mode instead of real_to_decimal.
4443 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4445 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4446 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4448 * real.c (spu_single_format): New variable.
4449 * real.h (spu_single_format): Declare.
4451 * config/spu/spu.c (spu_override_options): Install SFmode format.
4452 (spu_split_immediate): Use integer mode to operate on pieces of
4453 floating-point values in all cases.
4455 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4456 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4457 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4459 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4461 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4463 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4465 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4467 2008-08-12 Jakub Jelinek <jakub@redhat.com>
4470 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4471 on the VAR_DECL instead of TYPE_READONLY on its type.
4473 2008-08-12 Ira Rosen <irar@il.ibm.com>
4475 * tree-vectorizer.c: Depend on langhooks.h.
4476 (supportable_widening_operation): Add two arguments. Support double
4478 (supportable_narrowing_operation): Likewise.
4479 * tree-vectorizer.h (supportable_widening_operation): Add two
4481 (supportable_narrowing_operation): Likewise.
4482 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
4483 supportable_widening_operation with correct arguments.
4484 * tree-vect-transform.c (vectorizable_conversion): Likewise.
4485 (vectorizable_type_demotion): Support double type conversions.
4486 (vectorizable_type_promotion): Likewise.
4487 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
4489 2008-08-11 Michael Matz <matz@suse.de>
4491 * i386/i386.c (override_options): Move initialisation from
4492 flag_schedule_insns_after_reload to here from ...
4493 (optimization_options): ... here.
4495 2008-08-11 Jakub Jelinek <jakub@redhat.com>
4497 PR rtl-optimization/36998
4498 * dwarf2out.c (compute_barrier_args_size_1,
4499 compute_barrier_args_size): Temporarily remove assertions.
4501 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4504 * tree-ssa.c (struct walk_data): Add new flag
4505 warn_possibly_uninitialized.
4506 (warn_uninitialized_var): Use it.
4507 (warn_uninitialized_vars): New.
4508 (execute_early_warn_uninitialized): Call it.
4509 (execute_late_warn_uninitialized): Likewise.
4511 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
4514 * reload1.c (gen_reload): Guard calls to get_secondary_mem
4517 2008-08-09 Jan Hubicka <jh@suse.cz>
4520 * optabs.c (maybe_emit_unop_insn): Remove produced code if
4522 (expand_fix): Be prepared for expansion to fail.
4523 (expand_sfix_optab): Remove instructions if expansion failed.
4525 2008-08-09 Anatoly Sokolov <aesok@post.ru>
4527 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
4529 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
4530 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4532 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
4534 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
4535 mips/t-libgcc-mips16 to tmake_file.
4536 * config/mips/mips-protos.h (mips_call_type): New enum.
4537 (mips_pic_base_register, mips_got_load): Declare.
4538 (mips_restore_gp): Take an rtx argument.
4539 (mips_use_pic_fn_addr_reg_p): Declare.
4540 (mips_expand_call): Replace the sibcall_p argument with
4541 a mips_call_type argument. Add a lazy_p parameter.
4542 (mips_split_call): Declare.
4543 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
4544 (MIPS16_PIC_TEMP): Likewise.
4545 (reg_class): Delete M16_NA_REGS.
4546 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4547 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
4548 (mips_split_hi_p): Declare.
4549 * config/mips/mips.c (mips_split_hi_p): New array.
4550 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
4551 (mips_got_symbol_type_p): New function.
4552 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
4553 (mips16_stub_function_p): New function.
4554 (mips16_local_function_p): Likewise.
4555 (mips_use_pic_fn_addr_reg_p): Likewise.
4556 (mips_cannot_force_const_mem): Return false for HIGHs.
4557 Extend CONST_INT and symbolic handling to MIPS16, using
4558 mips_symbol_insns to check that the base symbol type is a
4559 legitimate constant. Reject GOT-based constants if
4560 TARGET_MIPS16_PCREL_LOADS.
4561 (mips_const_insns): Check targetm.cannot_force_const_mem when
4562 decomposing a symbolic base and a large offset.
4563 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
4564 When calling a function that needs $25 from MIPS16 code,
4565 move the target address into $25 separately and add a USE
4567 (mips16_gp_pseudo_reg): Insert the initializer immediately
4568 before the first real insn.
4569 (mips_pic_base_register, mips_got_load): New functions.
4570 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
4571 parameter to LOW_OUT. Say that it can be any valid SET_SRC
4572 when splitting a load-address operation. Split SYMBOL_GOT_DISP
4573 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
4574 (mips_call_tls_get_addr): Update the call to mips_expand_call,
4575 also passing NULL_RTX rather than const0_rtx as the aux argument.
4576 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
4577 instead of TARGET_EXPLICIT_RELOCS.
4578 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
4579 (mips_load_call_address): Replace the sibcall_p argument with
4580 a mips_call_type argument. Use mips_got_load.
4581 (mips16_local_alias): New structure.
4582 (mips16_local_aliases): New variable.
4583 (mips16_local_aliases_hash): New function.
4584 (mips16_local_aliases_eq): Likewise.
4585 (mips16_local_alias): Likewise.
4586 (mips16_stub_function): Likewise.
4587 (mips16_build_function_stub): Create a local alias for the target
4588 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
4589 .cpload directive and an R_MIPS_NONE relocation for the target
4590 function, then load the alias rather than the function itself.
4591 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
4592 (mips16_copy_fpr_return_value): Use mips16_stub_function and
4593 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
4594 (mips16_build_call_stub): Replace the FN parameter with an
4595 FN_PTR parameter. Force the address into a register if it
4596 isn't a call_insn_operand; don't rely on the caller to do this.
4597 If a call to a locally-defined and locally-binding MIPS16
4598 function must be made indirectly, redirect the call to the
4599 function's local alias. Use mips16_stub_function_p,
4600 mips16_stub_function, mips_expand_call and use_reg.
4601 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
4602 Use explicit %hi and %lo accesses where possible.
4603 Use MIPS_CALL to generate the correct code form of a
4604 jal instruction. Add clobbers of $18 instead of uses.
4605 Update the call to mips_emit_call_insn.
4606 (mips_expand_call): Replace the SIBCALL_P argument with a
4607 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
4608 Take a LAZY_P parameter. Call mips16_build_call_stub first,
4609 allowing it to modify the call address. Update the calls to
4610 mips_load_call_address and mips_emit_call_insn.
4611 (mips_split_call): New function.
4612 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
4613 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
4614 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
4615 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
4616 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
4618 (mips_cprestore_slot): New function.
4619 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
4620 and use mips_cprestore_slot.
4621 (mips_output_function_prologue): Handle TARGET_MIPS16 for
4623 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
4624 then use a copygp_mips16 instruction to set up $28.
4625 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
4626 (mips16_lay_out_constants): Call split_all_insns_noflow.
4627 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
4628 false if TARGET_MIPS16.
4629 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
4630 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
4631 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
4632 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
4633 MIPS16 code. Allow MIPS16 o32 PIC.
4634 (mips_override_options): Allow MIPS16 o32 PIC.
4635 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
4636 after reload if TARGET_USE_GOT.
4637 (UNSPEC_COPYGP): New constant.
4638 (length): Use a default length of 8 for MIPS16 GOT loads.
4639 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
4640 (*got_page<mode>): Check mips_split_hi_p.
4641 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
4642 (unspec_got<mode>, unspec_call<mode>): New expanders.
4643 (load_got<mode>, load_call<mode>): Remove the length attributes.
4644 Use a got attribute instead of a type attribute.
4645 (copygp_mips16): New insn.
4646 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
4647 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
4648 (sibcall, sibcall_value, call, call_value): Update the calls
4649 to mips_expand_call.
4650 (call_internal, call_value_internal): Use mips_split_call.
4651 (call_value_multiple_internal): Likewise.
4652 (call_split): Move after call_internal (the insn it is split from).
4653 (call_internal_direct, call_value_internal_direct): Turn into
4654 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
4655 (call_direct_split, call_value_direct_split): New patterns.
4656 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
4657 and use M16_REGS instead of M16_NA_REGS.
4658 * config/mips/predicates.md (const_call_insn_operand): Replace
4659 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4660 mips_use_pic_fn_addr_reg_p check.
4661 (move_operand): Reject HIGHs if mips_split_hi_p.
4662 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
4663 (__mips16_floatunsisf): Inline __mips16_floatsisf.
4664 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
4665 * config/mips/libgcc-mips16.ver: New file.
4666 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
4667 $(srcdir)/config/mips/libgcc-mips16.ver.
4669 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
4671 * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
4672 (mips_unspec_address, mips_unspec_offset_high): Likewise.
4673 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
4674 (mips16_cfun_returns_in_fpr_p): Likewise.
4676 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
4678 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
4679 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
4680 rather than 4 to PC.
4682 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
4684 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4685 (FUNCTION_PROFILER): Save the static chain pointer into $2
4686 beforehand and restore it aftewards.
4687 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
4688 address directly into $25 and call the function through $25;
4689 do not clobber $3. Pad the DImode version to cover the space
4690 left by the deleted $25 <- $3 move.
4691 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
4692 the removal of the $25 <- $3 move.
4693 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
4694 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4696 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
4697 Daniel Jacobowitz <dan@codesourcery.com>
4699 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
4700 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
4701 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
4702 * config/mips/mips.c (mips_start_function_definition): New function.
4703 (mips_end_function_definition): Likewise.
4704 (mips_output_function_prologue): Use mips_start_function_definition.
4705 (mips_output_function_epilogue): Use mips_end_function_definition.
4706 (build_mips16_function_stub): Use mips_start_function_definition
4707 and mips_end_function_definition.
4708 (build_mips16_call_stub): Likewise.
4710 2008-08-09 Richard Guenther <rguenther@suse.de>
4712 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
4713 * gimple.h (gimple_call_fn): Adjust comment.
4714 (gimple_call_set_fndecl): New function.
4715 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
4716 longer having bare FUNCTION_DECL operand.
4717 (gimple_call_return_type): Likewise.
4718 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
4720 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
4721 (gimple_mod_pow2): Likewise.
4722 (gimple_mod_subtract): Likewise.
4723 (gimple_ic): Likewise.
4724 (gimple_stringop_fixed_value): Likewise.
4725 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
4726 longer having bare FUNCTION_DECL operand.
4727 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
4728 * omp-low.c (optimize_omp_library_calls): Likewise.
4729 * cgraphunit.c (update_call_expr): Likewise.
4730 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4731 (execute_convert_to_rsqrt): Likewise.
4732 * cfgexpand.c (gimple_to_tree): Simplify.
4733 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
4734 bare FUNCTION_DECL operand.
4735 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
4736 (convert_gimple_call): Use gimple_call_fndecl.
4737 * c-common.c (c_warn_unused_result): Likewise.
4739 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4742 * c-typeck.c (digest_init): Call verify_sequence_points from here.
4743 (c_finish_return): Likewise.
4744 (c_start_case): Likewise.
4745 * c-common.c (warn_for_collisions_1): Use explicit location in
4747 * c-parser.c (c_parser_condition): New. Call
4748 verify_sequence_points.
4749 (c_parser_paren_condition): Call c_parser_condition.
4750 (c_parser_for_statement): Call c_parser_condition.
4752 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4755 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
4756 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
4757 Moved from diagnostic.h
4758 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
4760 (emit_diagnostic): New.
4761 (warning0, pedwarn0): Delete.
4762 (warning, warning_at, pedwarn, permerror): Return bool.
4763 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
4764 Moved to diagnostic.c.
4765 (struct diagnostic_context): Use correct type for
4766 classify_diagnostic.
4767 (diagnostic_report_diagnostic): Update declaration.
4768 (emit_diagnostic): Declare.
4769 * errors.c (warning): Return bool.
4770 * errors.h (warning): Update declaration.
4771 * toplev.h (warning0, pedwarn0): Delete.
4772 (warning, warning_at, pedwarn, permerror): Return bool.
4773 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
4774 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
4775 inform. Update all calls.
4776 (diagnose_mismatched_decls): Check return value of warning/pedwarn
4777 before giving informative note.
4778 (implicit_decl_warning): Likewise.
4779 * c-typeck.c (build_function_call): Likewise.
4780 * tree-sssa.c (warn_uninit): Likewise.
4781 * builtins.c (gimplify_va_arg_expr): Likewise.
4783 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4786 * doc/invoke.texi (-Wextra): Move warning from here...
4787 (-Wuninitialized): ... to here.
4789 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4792 * flags.h (set_Wunused): Delete
4793 * toplev.c (process_options): Handle Wunused flags here.
4794 * opts.c (maybe_warn_unused_parameter): Delete.
4795 (common_handle_option): Replace set_Wunused by warn_unused.
4796 (set_Wextra): Do not handle Wunused-parameter here.
4797 (set_Wunused): Delete.
4798 * c-opts.c (c_common_handle_option): Replace set_Wunused by
4800 * common.opt (Wunused): Add Var and Init.
4801 (Wunused-function): Likewise.
4802 (Wunused-label): Likewise.
4803 (Wunused-parameter): Likewise.
4804 (Wunused-value): Likewise.
4805 (Wunused-variable): Likewise.
4807 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
4809 * doc/invoke.texi: Add cpu_type power7.
4810 * config.in (HAVE_AS_VSX): New.
4811 * config.gcc: Add cpu_type power7.
4812 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
4814 * configure: Regenerate.
4815 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
4817 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
4818 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
4819 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
4821 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
4823 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
4824 type to vectorize.builtin_conversion.
4825 (vectorizable_conversion): Likewise.
4826 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
4827 integral type as input.
4828 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
4830 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
4831 and ALTIVEC_BUILTIN_VCTSXS.
4832 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
4835 2008-08-08 Richard Guenther <rguenther@suse.de>
4837 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
4838 (surely_varying_stmt_p): Calls are varying only if they are
4839 non-builtin and not indirect or have no result.
4840 (ccp_fold): Re-instantiate code before the tuples merge.
4842 2008-08-08 Richard Guenther <rguenther@suse.de>
4844 PR tree-optimization/37056
4845 * gimple.h (gimple_assign_rhs_class): New helper function.
4846 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
4847 unary operations properly.
4849 2008-08-07 Jan Hubicka <jh@suse.cz>
4851 * i386.h (ix86_size_cost): Declare.
4852 (ix86_cur_cost): New function macro.
4853 * i386.md (peepholes expanding size and splitters): Predicate by
4854 optimize_insn_for_speed_p.
4855 (peepholes reduce size and splitters): Predicate by
4856 optimize_insn_for_size_p.
4857 * i386.c (ix86_size_cost): Rename from ...
4858 (size_cost): This one.
4859 (override_options): Update.
4860 (decide_alg): Likewise.
4861 (ix86_expand_clear): Use RTL profile.
4862 (ix86_pad_returns): Use RTL profile.
4864 2008-08-07 Jan Hubicka <jh@suse.cz>
4866 * recog.c (split_all_insns): Set RTL profile
4867 (peephole2_optimize): Likewise.
4868 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4869 * combine.c (combine_instructions): Likewise.
4871 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4873 * c-common.c (c_common_reswords): Also warn about keyword "bool".
4875 2008-08-07 Bob Wilson <bob.wilson@acm.org>
4877 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
4878 value in a6 after the set_frame_ptr insn.
4880 2008-08-07 Richard Henderson <rth@redhat.com>
4883 * gcc.c (cpp_options): Pass along -g*.
4885 2008-08-07 Joseph Myers <joseph@codesourcery.com>
4887 * config/arm/arm.c (output_move_neon): Update comment describing
4888 big-endian vector layout.
4889 (arm_assemble_integer): Do not handle big-endian NEON vectors
4891 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
4892 neon_vget_lane<mode>_sext_internal,
4893 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
4894 element indices for big-endian.
4896 2008-08-07 Richard Henderson <rth@redhat.com>
4898 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
4899 * configure, config.in: Rebuild.
4900 * debug.h (dwarf2out_do_cfi_asm): Declare.
4901 * c-cppbuiltin.c (c_cpp_builtins): Use it.
4902 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
4903 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
4904 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
4906 2008-08-07 Joseph Myers <joseph@codesourcery.com>
4908 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4909 movv2si_internal): Combine into mov<mode>_internal.
4910 (movv2si_internal_2): Remove.
4912 2008-08-07 Jan Hubicka <jh@suse.cz>
4915 * i386.md (single stringop patterns): Enable unconditionally.
4917 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
4920 * config/i386/emmintrin.h (_mm_move_epi64): Use
4921 __builtin_ia32_movq128.
4923 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
4924 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
4926 * config/i386/sse.md (sse2_movq128): New.
4928 * doc/extend.texi: Document __builtin_ia32_movq128.
4930 2008-08-07 Richard Guenther <rguenther@suse.de>
4933 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
4934 pointers can access anything.
4936 2008-08-06 Jan Hubicka <jh@suse.cz>
4938 * optabs.c (emit_unop_insn): Break out to ...
4939 (maybe_emit_unop_insn): ... this one.
4940 (expand_sfix_optab): Use maybe variant.
4941 * optabs.h (maybe_emit_unop_insn): Declare.
4943 * i386.md (mov0 patterns): Enable by default.
4944 (FP conversion expanders): Disable expansion of code expanding
4945 sequences when instruction should be optimized for size.
4946 (single strinop patterns): Enable when optimizing for size.
4947 (string expanders): Disable expanding of code expanding sequences
4948 when optimizning instruction for size.
4949 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
4951 (ix86_fp_comparison_sahf_cost): Likewise.
4952 (ix86_expand_branch): Likewise.
4953 (ix86_expand_ashl_const): Likewise.
4954 (ix86_split_ashl): Likewise.
4955 (ix86_expand_strlen): Likewise.
4956 (ix86_emit_fp_unordered_jump): Likewie.
4958 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4960 * c-common.c: Fix typo.
4961 (c_common_reswords): Activate more C++ keyword warnings.
4963 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
4965 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4968 * diagnostic.c (permerror_at): New.
4969 * toplev.h (permerror_at): Declare.
4971 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
4972 Ira Rosen <irar@il.ibm.com>
4974 * tree-vect-transform.c (vect_model_simple_cost): Return
4975 immediately if stmt is pure SLP.
4976 (vect_model_store_cost): Ditto.
4977 (vect_model_load_cost): Ditto.
4978 (vectorizable_store): Remove PURE_SLP check before call
4979 to vect_model_store_cost.
4980 (vect_model_store_cost): When checking whether stmt describe
4981 strided access, add a check that it is not slp_node.
4983 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4986 * c-common.c (warn_for_sign_compare): New. Handle separately the
4987 case that 'constant' is zero.
4988 * c-typeck.c (build_binary_op): Move code to c-common.c
4990 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4992 * config/alpha/alpha.c (alpha_preferred_reload_class,
4993 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
4994 alpha_output_mi_thunk_osf): Avoid C++ keywords.
4995 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
4996 * config/arm/arm.md: Likewise.
4997 * config/avr/avr-protos.h (preferred_reload_class,
4998 test_hard_reg_class, avr_simplify_comparison_p,
4999 out_shift_with_cnt, class_max_nregs): Likewise.
5000 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5001 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5002 preferred_reload_class, test_hard_reg_class): Likewise.
5003 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5004 bfin_memory_move_cost, bfin_secondary_reload,
5005 bfin_output_mi_thunk): Likewise.
5006 * config/crx/crx.c (crx_secondary_reload_class,
5007 crx_memory_move_cost): Likewise.
5008 * config/frv/frv-protos.h (frv_secondary_reload_class,
5009 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5010 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5011 frv_secondary_reload_class, frv_class_likely_spilled_p,
5012 frv_class_max_nregs): Likewise.
5013 * config/h8300/h8300.c (h8300_classify_operand,
5014 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5016 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5017 * config/ia64/ia64.c (ia64_preferred_reload_class,
5018 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5019 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5020 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5022 * config/m68hc11/m68hc11.c (preferred_reload_class,
5023 m68hc11_memory_move_cost): Likewise.
5024 * config/mcore/mcore.c (mcore_secondary_reload_class,
5025 mcore_reload_class): Likewise.
5026 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5027 mips_class_max_nregs, mips_cannot_change_mode_class,
5028 mips_preferred_reload_class, mips_secondary_reload_class,
5029 mips_output_mi_thunk): Likewise.
5030 * config/mmix/mmix.c (mmix_preferred_reload_class,
5031 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5033 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5035 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5036 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5037 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5038 * config/rs6000/rs6000.c (paired_expand_vector_init,
5039 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5040 compare_section_name, rs6000_memory_move_cost): Likewise.
5041 * config/s390/s390.c (s390_emit_compare_and_swap,
5042 s390_preferred_reload_class, s390_secondary_reload,
5043 legitimize_pic_address, legitimize_tls_address,
5044 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5045 s390_class_max_nregs): Likewise.
5046 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5047 * config/s390/s390.md: Likewise.
5048 * config/score/score-protos.h (score_secondary_reload_class,
5049 score_preferred_reload_class): Likewise.
5050 * config/score/score.c (score_preferred_reload_class,
5051 score_secondary_reload_class): Likewise.
5052 * config/score/score3.c (score3_output_mi_thunk,
5053 score3_preferred_reload_class, score3_secondary_reload_class,
5054 score3_hard_regno_mode_ok): Likewise.
5055 * config/score/score3.h (score3_preferred_reload_class,
5056 score3_secondary_reload_class): Likewise.
5057 * config/score/score7.c (score7_output_mi_thunk,
5058 score7_preferred_reload_class, score7_secondary_reload_class,
5059 score7_hard_regno_mode_ok): Likewise.
5060 * config/score/score7.h (score7_preferred_reload_class,
5061 score7_secondary_reload_class): Likewise.
5062 * config/sh/sh.c (prepare_move_operands, output_far_jump,
5063 output_branchy_insn, add_constant, gen_block_redirect,
5064 sh_insn_length_adjustment, sh_cannot_change_mode_class,
5065 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
5067 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5068 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5069 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5070 xstormy16_preferred_reload_class): Likewise.
5071 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5072 xtensa_expand_atomic, override_options,
5073 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5075 * reorg.c (try_merge_delay_insns): Likewise.
5076 * tree.c (merge_dllimport_decl_attributes): Likewise.
5078 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5080 2008-08-06 Michael Matz <matz@suse.de>
5082 * Makefile.in (write_entries_to_file): Quote words.
5083 * gengtype.c: (read_input_line): Skip over leading white-space.
5085 2008-08-06 Marc Gauthier <marc@tensilica.com>
5087 * config.gcc: Match more processor names for Xtensa.
5088 * configure.ac: Likewise.
5089 * doc/install.texi (Specific): Likewise.
5090 * configure: Regenerate.
5092 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5094 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5095 * calls.c (avoid_likely_spilled_reg): Likewise.
5096 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5097 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5098 * config/i386/i386.c (ix86_expand_special_args_builtin,
5099 ix86_secondary_reload): Likewise.
5100 * except.c (struct eh_region, gen_eh_region_catch,
5101 remove_unreachable_regions, duplicate_eh_regions,
5102 assign_filter_values, build_post_landing_pads,
5103 sjlj_find_directly_reachable_regions, remove_eh_handler,
5104 reachable_next_level, foreach_reachable_handler,
5105 can_throw_internal_1, can_throw_external_1,
5106 collect_one_action_chain): Likewise.
5107 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5108 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5109 * function.c (update_temp_slot_address, instantiate_new_reg,
5110 instantiate_virtual_regs_in_rtx,
5111 instantiate_virtual_regs_in_insn): Likewise.
5112 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5113 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5114 gimplify_cleanup_point_expr): Likewise.
5115 * ipa-cp.c (ipcp_lattice_changed): Likewise.
5116 * passes.c (next_pass_1): Likewise.
5117 * print-tree.c (print_node_brief, print_node): Likewise.
5118 * profile.c (branch_prob): Likewise.
5119 * tree-dump.c (dump_register): Likewise.
5120 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5122 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5123 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5124 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5125 copy_arguments_for_versioning, copy_static_chain): Likewise.
5126 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5127 add_new_name_mapping, register_new_name_mapping): Likewise.
5128 * tree-mudflap.c (mf_xform_derefs): Likewise.
5129 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5130 get_init_expr, combine_chains): Likewise.
5131 * tree-pretty-print.c (dump_generic_node): Likewise.
5132 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5133 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5134 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5135 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5137 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
5140 * calls.c (expand_call): Use the biggest preferred stack
5143 2008-08-06 Michael Matz <matz@suse.de>
5146 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5147 for reused reload, instead of overwriting them.
5149 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
5152 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5153 for incoming stack boundary.
5155 * function.c (assign_parm_find_entry_rtl): Update
5156 parm_stack_boundary.
5158 * function.h (rtl_data): Add parm_stack_boundary.
5160 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5161 parm_stack_boundary for incoming stack boundary.
5163 2008-08-06 Joseph Myers <joseph@codesourcery.com>
5165 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5166 for unrepresentable subregs or treat them as equal to other regs
5167 or subregs with the same register number.
5169 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
5172 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5175 2008-08-06 Jan Hubicka <jh@suse.cz>
5177 * predict.c (maybe_hot_frequency_p): When profile is absent, all
5178 frequencies might be hot.
5180 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
5182 * reload.c (find_reloads): Force constants into literal pool
5183 also if they are wrapped in a SUBREG.
5185 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5188 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5189 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5190 Don't allow predicated instructions for data speculation.
5191 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5194 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5196 * haifa-sched.c (extend_global): Split to extend_global_data and
5197 extend_region_data. Update all uses.
5198 (extend_all): Rename to extend_block_data.
5200 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5202 * sched-rgn.c (new_ready): Check if instruction can be
5203 speculatively scheduled before attempting speculation.
5204 (debug_rgn_dependencies): Remove wrongful assert.
5206 2008-08-05 Bob Wilson <bob.wilson@acm.org>
5208 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5210 2008-08-05 Bob Wilson <bob.wilson@acm.org>
5212 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5213 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5214 va_size, and type_size.
5216 2008-08-04 Jason Merrill <jason@redhat.com>
5219 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5220 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5222 2008-08-05 Richard Henderson <rth@redhat.com>
5224 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5225 * configure: Rebuild.
5227 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5230 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5231 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5234 2008-08-05 Richard Henderson <rth@redhat.com>
5236 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5237 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5238 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5239 * common.opt (fdwarf2-cfi-asm): New.
5240 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5241 * config.in, configure: Rebuild.
5242 * dwarf2asm.c (dw2_asm_output_data_raw): New.
5243 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5244 (dw2_force_const_mem): Externalize.
5245 * dwarf2asm.h: Update.
5246 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5247 generate a real label.
5248 (output_cfi_directive): New.
5249 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5250 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5251 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5253 (dwarf2out_end_epilogue): Emit .cfi_endproc.
5254 (output_loc_operands_raw, output_loc_sequence_raw): New.
5255 (output_cfa_loc_raw): New.
5257 2008-08-05 Paul Brook <paul@codesourcery.com>
5259 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5260 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5261 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5262 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
5263 * config/arm/arm.h (TARGET_VFPD32): Define.
5264 (TARGET_VFP3): Use TARGET_VFPD32.
5265 (fputype): Add FPUTYPE_VFP3D16.
5266 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5267 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5268 * config/arm/arm-cores.def: Add cortex-r4f.
5269 * config/arm/arm-tune.md: Regenerate.
5271 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5273 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5274 Reword some comments throughout the file.
5276 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5277 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5278 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5279 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5281 (MFC_START_ENABLE): Remove PPU-only define.
5282 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5283 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5285 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5286 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5287 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5288 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5289 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5290 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5291 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5293 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5294 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5295 (mfc_sdcrt, mfc_sdcrtst): Likewise.
5296 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5298 (spu_read_machine_status): Fix typo.
5300 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5302 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5303 SUBREG of multi-word hard register.
5304 * config/spu/spu.c (valid_subreg): Likewise.
5305 (adjust_operand): Handle SUBREGs of multi-word hard registers.
5307 2008-08-04 Richard Guenther <rguenther@suse.de>
5309 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5310 the candidate with the stripped base if that base is different
5311 from the original base even for offset zero.
5313 2008-08-04 Richard Guenther <rguenther@suse.de>
5316 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5317 check for no_overflow.
5319 2008-08-04 Richard Guenther <rguenther@suse.de>
5321 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5323 2008-08-04 Paul Brook <paul@codesourcery.com>
5325 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5326 (arm_order_regs_for_local_alloc): New function.
5327 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5329 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5331 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
5334 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5335 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5336 (ix86_expand_epilogue): Likewise.
5338 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
5340 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5343 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
5345 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5346 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5347 (*movv2sf_internal_rex64): Ditto.
5349 2008-08-03 Jan Hubicka <jh@suse.cz>
5351 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5352 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5353 * expmed.c (expand_smod_pow2): Likewise.
5355 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
5358 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5359 alternative 0 of operand 1.
5360 (*vec_concatv2di_rex64_sse): Ditto.
5361 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5363 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5364 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5365 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5366 (*movv2sf_internal_rex64): Ditto.
5368 2008-08-02 Richard Guenther <rguenther@suse.de>
5371 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5372 (ssedoublesizemode): New mode attribute.
5373 (sse_shufps): Call gen_sse_shufps_v4sf.
5374 (sse_shufps_1): Macroize.
5375 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5376 (sse2_shufpd_1): Macroize.
5377 (vec_extract_odd, vec_extract_even): New expanders.
5378 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5379 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5380 * i386.c (ix86_expand_vector_init_one_nonzero): Call
5381 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5382 (ix86_expand_vector_set): Likewise.
5383 (ix86_expand_reduc_v4sf): Likewise.
5385 2008-08-01 Doug Kwan <dougkwan@google.com>
5387 * matrix-reorg.c: Re-enable all code.
5388 (struct malloc_call_data): Change CALL_STMT to gimple type.
5389 (collect_data_for_malloc_call): Tuplify.
5390 (struct access_site_info): Change STMT to gimple type.
5391 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5392 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5393 (struct free_info): Change STMT to gimple type.
5394 (struct matrix_access_phi_node): Change PHI to gimple type.
5395 (get_inner_of_cast_expr): Remove.
5396 (may_flatten_matrices_1): Tuplify.
5397 (may_flatten_matrices): Ditto.
5398 (mark_min_matrix_escape_level): Ditto.
5399 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5400 (ssa_accessed_in_call_rhs): New
5401 (ssa_accessed_in_assign_rhs): New
5402 (record_access_alloc_site_info): Tuplify.
5403 (add_allocation_site): Ditto.
5404 (analyze_matrix_allocation_site): Ditto.
5405 (analyze_transpose): Ditto.
5406 (get_index_from_offset): Ditto.
5407 (update_type_size): Ditto.
5408 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5409 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5410 (analyze_accesses_for_phi_node): Tuplify.
5411 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5412 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5413 (analyze_matrix_accesses): Tuplify.
5414 (check_var_data): New call-back type for check_var_notmodified_p.
5415 (check_var_notmodified_p): Tuplify and use call-back struct to
5416 return statement found.
5417 (can_calculate_expr_before_stmt): Factor out statement related code
5419 (can_calculate_stmt_before_stmt): New.
5420 (check_allocation_function): Tuplify.
5421 (find_sites_in_func): Ditto.
5422 (record_all_accesses_in_func): Ditto.
5423 (transform_access_sites): Ditto.
5424 (transform_allocation_sites): Ditto.
5425 (matrix_reorg): Re-enable.
5426 (gate_matrix_reorg): Re-enable.
5428 2008-08-01 Jakub Jelinek <jakub@redhat.com>
5430 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5431 for labels for which it hasn't been set yet. If it has been set,
5432 stop walking insns and continue with next worklist item.
5433 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5434 if the only BARRIER is at the very end of a function.
5436 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
5438 * cfgexpand.c (expand_stack_alignment): Assert that
5439 stack_realign_drap and drap_rtx must match.
5441 * function.c (instantiate_new_reg): If DRAP is used to realign
5442 stack, replace virtual_incoming_args_rtx with internal arg
5445 2008-08-01 Richard Guenther <rguenther@suse.de>
5447 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
5448 loop information only if we initialized it.
5449 (execute_pre): Call fini_pre with in_fre.
5450 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5451 if we do not unroll because we hit max-completely-peeled-insns.
5452 Use our estimation for consistency, do allow shrinking.
5454 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
5456 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5457 with MIN_STACK_BOUNDARY.
5458 (ix86_update_stack_boundary): Likewise.
5459 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5462 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5463 (MIN_STACK_BOUNDARY): This.
5465 2008-08-01 Richard Guenther <rguenther@suse.de>
5468 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5470 2008-08-01 Richard Guenther <rguenther@suse.de>
5472 PR tree-optimization/36988
5473 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5474 do not matter if that doesn't change volatile qualification.
5476 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
5478 * configure.ac: Do not generate libada-mk. Do not subst
5480 * libada-mk.in: Remove.
5481 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
5482 * configure: Regenerate.
5484 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
5486 * tree-pass.h: Added comment about not dumping passes with name
5487 starting with star in struct opt_pass.
5488 * passes.c (register_dump_files_1): Don't do dump for a pass with
5489 name starting with star.
5490 * doc/passes.texi (Pass manager): Mention pass names and special
5491 meaning of star prefix to avoid dump.
5493 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
5495 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
5497 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
5498 (ISA_MIPS64R2): New macro.
5499 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
5500 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
5501 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
5502 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
5503 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
5504 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
5505 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
5506 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
5507 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
5508 Move up to keep list alphabetically sorted.
5509 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
5510 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
5512 * doc/invoke.texi (MIPS Options): Add -mips64r2.
5513 (-march=@var{arch}): Add mips64r2.
5515 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
5517 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
5519 2008-07-31 Steve Ellcey <sje@cup.hp.com>
5521 * expr.c (expand_assignment): Check for complete type.
5523 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
5526 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
5528 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
5529 for stack alignment.
5531 * function.h (rtl_data): Add stack_realign_tried. Update comments.
5533 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5535 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
5536 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
5538 2008-07-31 Jakub Jelinek <jakub@redhat.com>
5540 PR rtl-optimization/36419
5541 * dwarf2out.c (barrier_args_size): New variable.
5542 (compute_barrier_args_size, compute_barrier_args_size_1): New
5544 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
5545 if not called yet in the current function, use barrier_args_size
5546 array to find the new args_size value.
5547 (dwarf2out_frame_debug): Free and clear barrier_args_size.
5549 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
5552 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
5555 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
5558 * dwarf2out.c (dwarf2out_args_size_adjust): New.
5559 (dwarf2out_stack_adjust): Use it.
5560 (dwarf2out_frame_debug_expr): Likewise.
5562 2008-07-31 Richard Guenther <rguenther@suse.de>
5564 PR tree-optimization/36978
5565 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
5566 the generated condition.
5568 2008-07-31 Richard Guenther <rguenther@suse.de>
5570 * passes.c (init_optimization_passes): Always call
5571 pass_early_warn_uninitialized.
5572 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
5573 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
5574 * doc/passes.texi (Warn for uninitialized variables): Adjust.
5576 2008-07-31 Jakub Jelinek <jakub@redhat.com>
5579 * builtins.c (maybe_emit_free_warning): New function.
5580 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
5581 maybe_emit_free_warning for BUILT_IN_FREE.
5584 * dwarf2out.c (get_context_die): New function.
5585 (force_decl_die, force_type_die): Use it.
5586 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
5587 returns NULL, force generation of DW_TAG_typedef and put that into
5590 PR preprocessor/36649
5591 * c-pch.c (c_common_read_pch): Save and restore
5592 line_table->trace_includes across PCH restore.
5594 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
5597 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5599 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
5602 * final.c (call_from_call_insn): Handle COND_EXEC.
5604 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
5606 * builtins.c (std_gimplify_va_arg_expr): Replace
5607 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
5608 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5610 2008-07-30 Joey Ye <joey.ye@intel.com>
5611 H.J. Lu <hongjiu.lu@intel.com>
5613 * builtins.c (expand_builtin_setjmp_receiver): Replace
5614 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
5615 (expand_builtin_apply_args_1): Likewise.
5616 (expand_builtin_longjmp): Need DRAP for stack alignment.
5617 (expand_builtin_apply): Likewise.
5619 * caller-save.c (setup_save_areas): Call assign_stack_local_1
5620 instead of assign_stack_local to allow alignment reduction.
5622 * calls.c (emit_call_1): Need DRAP for stack alignment if
5624 (expand_call): Replace virtual_incoming_args_rtx with
5625 crtl->args.internal_arg_pointer.
5626 * stmt.c (expand_nl_goto_receiver): Likewise.
5628 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
5629 alignment and store to stack_alignment_estimated and
5630 max_used_stack_slot_alignment.
5631 (expand_one_var): Likewise.
5632 (expand_stack_alignment): New function.
5633 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
5634 and stack_alignment_estimated fields in rtl_data. Call
5635 expand_stack_alignment at end.
5637 * defaults.h (INCOMING_STACK_BOUNDARY): New.
5638 (MAX_STACK_ALIGNMENT): Likewise.
5639 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
5640 (SUPPORTS_STACK_ALIGNMENT): Likewise.
5642 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
5643 stack alignment when generating virtual registers.
5645 * function.c (assign_stack_local): Renamed to ...
5646 (assign_stack_local_1): This. Add a parameter to indicate
5647 if it is OK to reduce alignment.
5648 (assign_stack_local): Use it.
5649 (instantiate_new_reg): Instantiate virtual incoming args rtx
5650 to vDRAP if stack realignment and DRAP is needed.
5651 (assign_parms): Collect parameter/return type alignment and
5652 contribute to stack_alignment_estimated.
5653 (locate_and_pad_parm): Likewise.
5654 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
5655 with crtl->args.internal_arg_pointer.
5657 * function.h (rtl_data): Add new field drap_reg,
5658 max_used_stack_slot_alignment, stack_alignment_estimated,
5659 stack_realign_needed, need_drap, stack_realign_processed and
5660 stack_realign_finalized.
5661 (stack_realign_fp): New macro.
5662 (stack_realign_drap): Likewise.
5664 * global.c (compute_regsets): Frame pointer is needed when
5665 stack is realigned. Can eliminate frame pointer when stack is
5666 realigned and dynamic realigned argument pointer isn't used.
5668 * reload1.c (update_eliminables): Frame pointer is needed
5669 when stack is realigned.
5670 (init_elim_table): Can eliminate frame pointer when stack is
5671 realigned and dynamic realigned argument pointer isn't used.
5673 * rtl.h (assign_stack_local_1): Declare new funtion.
5675 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
5676 (TARGET_GET_DRAP_RTX): Likewise.
5677 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
5678 TARGET_GET_DRAP_RTX.
5680 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
5682 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5683 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
5685 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
5686 H.J. Lu <hongjiu.lu@intel.com>
5688 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
5689 vdrap_reg, stack_realign and drap_reg_saved.
5690 (add_cfi): Don't allow redefining CFA when DRAP is used.
5691 (reg_save): Handle stack alignment.
5692 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
5693 alignment. Don't generate DWARF information for (set fp sp)
5695 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
5697 (int_loc_descriptor): Move prototype forward. Also define if
5698 DWARF2_UNWIND_INFO is true.
5699 (output_cfa_loc): Handle DW_CFA_expression.
5700 (build_cfa_aligned_loc): New.
5701 (based_loc_descr): Update assert for stack realign. For local
5702 variables, use sp+offset when stack is aligned without drap and
5703 fp+offset when stack is aligned with drap. For arguments, use
5704 cfa+offset when drap is used to align stack.
5706 2008-07-30 Joey Ye <joey.ye@intel.com>
5707 H.J. Lu <hongjiu.lu@intel.com>
5709 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
5711 (ix86_gen_andsp): New.
5712 (ix86_user_incoming_stack_boundary): Likewise.
5713 (ix86_default_incoming_stack_boundary): Likewise.
5714 (ix86_incoming_stack_boundary): Likewise.
5715 (ix86_can_eliminate): Likewise.
5716 (find_drap_reg): Likewise.
5717 (ix86_update_stack_boundary): Likewise.
5718 (ix86_get_drap_rtx): Likewise.
5719 (ix86_finalize_stack_realign_flags): Likewise.
5720 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
5721 (TARGET_GET_DRAP_RTX): Likewise.
5722 (override_options): Overide option value for new options.
5723 (ix86_function_ok_for_sibcall): Remove check for
5724 force_align_arg_pointer.
5725 (ix86_handle_cconv_attribute): Likewise.
5726 (ix86_function_regparm): Likewise.
5727 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
5728 (ix86_va_start): Replace virtual_incoming_args_rtx with
5729 crtl->args.internal_arg_pointer.
5730 (ix86_select_alt_pic_regnum): Check DRAP register.
5731 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
5732 (ix86_compute_frame_layout): Compute frame layout wrt stack
5734 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
5735 (ix86_expand_prologue): Decide if stack realignment is needed
5736 and generate prologue code accordingly.
5737 (ix86_expand_epilogue): Generate epilogue code wrt stack
5738 realignment is really needed or not.
5740 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
5741 (ABI_STACK_BOUNDARY): Likewise.
5742 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
5743 (STACK_REALIGN_DEFAULT): Likewise.
5744 (INCOMING_STACK_BOUNDARY): Likewise.
5745 (MAX_STACK_ALIGNMENT): Likewise.
5746 (ix86_incoming_stack_boundary): Likewise.
5747 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
5748 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
5749 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
5750 (machine_function): Remove force_align_arg_pointer.
5752 * config/i386/i386.md (BX_REG): New.
5753 (R13_REG): Likewise.
5755 * config/i386/i386.opt (mforce_drap): New.
5756 (mincoming-stack-boundary): Likewise.
5757 (mstackrealign): Add Init(-1).
5759 * config/i386/i386-protos.h (ix86_can_eliminate): New
5761 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
5763 * doc/extend.texi: Update force_align_arg_pointer.
5765 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
5768 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
5769 (INCOMING_STACK_BOUNDARY): Likewise.
5770 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
5771 (TARGET_GET_DRAP_RTX): Likewise.
5773 2008-07-30 Andreas Schwab <schwab@suse.de>
5775 PR rtl-optimization/36929
5776 * dse.c (replace_inc_dec): Use emit_insn_before instead of
5777 add_insn_before and fix argument order.
5778 (replace_inc_dec_mem): Handle NULL rtx.
5780 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
5782 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
5784 (arm_compute_initial_elimination_offset): Use it.
5785 (arm_compute_save_reg_mask): Include static chain save slot when
5786 calculating alignment.
5787 (arm_get_frame_offsets): Ditto.
5788 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
5789 that we can use to decrement the stack when the stack decrement
5790 could be too big for an immediate value in a single insn.
5791 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
5793 2008-07-30 Richard Guenther <rguenther@suse.de>
5795 PR tree-optimization/36967
5796 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
5797 Release defs of statements we remove.
5799 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
5801 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
5802 instead of NULL_RTVEC.
5804 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
5808 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
5811 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
5813 * final.c (call_from_call_insn): New.
5814 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
5816 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
5818 * configure.ac: Substitute ADA_CFLAGS.
5819 * configure: Regenerate.
5820 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
5821 * Makefile.in: Remove mention of X_* variables.
5822 * config/pa/x-ada-hpux10: Remove.
5823 * config/pa/x-ada: Remove.
5825 * doc/fragments.texi: Update.
5827 2008-07-30 Olivier Hainque <hainque@adacore.com>
5829 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
5830 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
5831 __dso_handle explicitly here.
5833 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5836 * c-typeck.c (build_binary_op): Encapsulate code into...
5837 * c-common.c (shorten_binary_op): ...this new function.
5838 (conversion_warning): Use the new function. Handle non-negative
5839 constant in bitwise-and.
5840 * c-common.h (shorten_binary_op): Declare.
5842 2008-07-30 Olivier Hainque <hainque@adacore.com>
5844 * scan.c (make_sstring_space): Add explicit conversions of
5845 allocator's return value.
5846 * fix-header.c (recognized_function): Likewise.
5848 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5850 * doc/cpp.texi: Update to GFDL 1.2.
5851 * doc/gcc.texi: Do not list GPL as Invariant Section.
5852 * doc/gccint.texi: Likewise. Update copyright years.
5853 * doc/install.texi: Update copyright years.
5855 2008-07-30 Alan Modra <amodra@bigpond.net.au>
5858 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
5859 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
5861 2008-07-29 Jan Hubicka <jh@suse.cz>
5863 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
5864 (grokdeclarator): Likewise.
5865 * langhooks.c (lhd_warn_unused_global_decl): Use
5866 DECL_DECLARED_INLINE_P.
5867 * print-tree.c (print_node): Remove DECL_INLINE check.
5869 2008-07-29 Richard Guenther <rguenther@suse.de>
5871 PR tree-optimization/36945
5872 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
5873 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
5874 Record invariant addresses un-decomposed.
5875 (copy_reference_ops_from_call): Record reference call
5876 arguments properly. Simplify.
5877 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
5878 helper split out from ...
5879 (create_component_ref_by_pieces): ... here. Simplify.
5880 Prepare for recursive invocation for call arguments.
5881 (create_expression_by_pieces): Adjust call to
5882 create_component_ref_by_pieces.
5883 (compute_avail): Process operand 2 of reference ops.
5885 2008-07-29 Richard Guenther <rguenther@suse.de>
5887 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
5889 2008-07-29 Jakub Jelinek <jakub@redhat.com>
5891 * c-format.c (check_format_types): Revert unwanted checkin.
5893 2008-07-29 Jan Hubicka <jh@suse.cz>
5895 * flags.h (flag_really_no_inline): Remove.
5896 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
5897 * toplev.c (flag_really_no_inline): Remove.
5898 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
5899 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
5900 (cgraph_decide_inlining_incrementally): Likewise.
5901 (compute_inline_parameters): Likewise.
5902 * opts.c (decode_options): Simplify.
5903 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
5904 * common.opt (finline): Initialize to 1.
5905 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
5907 2008-07-29 Jan Hubicka <jh@suse.cz>
5909 * predict.c (always_optimize_for_size_p): New function.
5910 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5911 optimize_edge_for_size_p, optimize_edge_for_speed_p,
5912 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
5914 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
5915 * function.c (prepare_function_start): Set default profile.
5916 * function.h (rtl_data): Add maybe_hot_insn_p.
5917 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
5918 (construct_exit_block): Likewise.
5919 (tree_expand_cfg): Likewise.
5921 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5922 optimize_edge_for_size_p, optimize_edge_for_speed_p,
5923 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
5924 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
5927 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5930 * c-decl.c (merge_decls): Merge USED flags.
5932 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
5934 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
5935 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
5936 next_stack, lab_false and lab_over trees.
5938 2008-07-28 Richard Guenther <rguenther@suse.de>
5940 PR tree-optimization/36957
5941 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
5942 (useless_type_conversion_p): Remove.
5943 (types_compatible_p): Remove.
5944 * gimple.h (tree_ssa_useless_type_conversion): Declare.
5945 (useless_type_conversion_p): Declare.
5946 (types_compatible_p): Declare.
5947 (gimple_expr_type): Return the base type only if it is
5948 trivially convertible to the subtype.
5950 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
5952 * configure.ac: Use the m4_do macro to concatenate the warnings into
5953 one string in ACX_PROG_CC_WARNING_OPTS,
5954 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
5955 * configure: Regenerate.
5957 2008-07-28 Richard Guenther <rguenther@suse.de>
5959 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
5960 (insert_fake_stores): Remove.
5961 (realify_fake_stores): Likewise.
5962 (execute_pre): Remove dead code.
5963 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
5964 (find_func_aliases): Deal with it here instead.
5965 Re-enable gcc_unreachable call.
5967 2008-07-28 Richard Guenther <rguenther@suse.de>
5969 Merge from gimple-tuples-branch.
5971 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
5972 * gimple.def: New file.
5973 * gsstruct.def: Likewise.
5974 * gimple-iterator.c: Likewise.
5975 * gimple-pretty-print.c: Likewise.
5976 * tree-gimple.c: Removed. Merged into ...
5977 * gimple.c: ... here. New file.
5978 * tree-gimple.h: Removed. Merged into ...
5979 * gimple.h: ... here. New file.
5981 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
5982 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
5983 --enable-checking=gimple flag.
5984 * config.in: Likewise.
5985 * configure: Regenerated.
5987 * tree-ssa-operands.h: Tuplified.
5988 * tree-vrp.c: Likewise.
5989 * tree-loop-linear.c: Likewise.
5990 * tree-into-ssa.c: Likewise.
5991 * tree-ssa-loop-im.c: Likewise.
5992 * tree-dump.c: Likewise.
5993 * tree-complex.c: Likewise.
5994 * cgraphbuild.c: Likewise.
5995 * tree-ssa-threadupdate.c: Likewise.
5996 * tree-ssa-loop-niter.c: Likewise.
5997 * tree-pretty-print.c: Likewise.
5998 * tracer.c: Likewise.
5999 * gengtype.c: Likewise.
6000 * tree-loop-distribution.c: Likewise.
6001 * tree-ssa-loop-unswitch.c: Likewise.
6002 * cgraph.c: Likewise.
6003 * cgraph.h: Likewise.
6004 * tree-ssa-loop-manip.c: Likewise.
6005 * value-prof.c: Likewise.
6006 * tree-ssa-loop-ch.c: Likewise.
6007 * tree-tailcall.c: Likewise.
6008 * value-prof.h: Likewise.
6011 * tree-pass.h: Likewise.
6012 * ipa-cp.c: Likewise.
6013 * tree-scalar-evolution.c: Likewise.
6014 * tree-scalar-evolution.h: Likewise.
6015 * target.h: Likewise.
6016 * lambda-mat.c: Likewise.
6017 * tree-phinodes.c: Likewise.
6018 * diagnostic.h: Likewise.
6019 * builtins.c: Likewise.
6020 * tree-ssa-alias-warnings.c: Likewise.
6021 * cfghooks.c: Likewise.
6022 * fold-const.c: Likewise.
6023 * cfghooks.h: Likewise.
6024 * omp-low.c: Likewise.
6025 * tree-ssa-dse.c: Likewise.
6026 * ipa-reference.c: Likewise.
6027 * tree-ssa-uncprop.c: Likewise.
6028 * toplev.c: Likewise.
6029 * tree-gimple.c: Likewise.
6030 * tree-gimple.h: Likewise.
6031 * tree-chrec.c: Likewise.
6032 * tree-chrec.h: Likewise.
6033 * tree-ssa-sccvn.c: Likewise.
6034 * tree-ssa-sccvn.h: Likewise.
6035 * cgraphunit.c: Likewise.
6036 * tree-ssa-copyrename.c: Likewise.
6037 * tree-ssa-ccp.c: Likewise.
6038 * tree-ssa-loop-ivopts.c: Likewise.
6039 * tree-nomudflap.c: Likewise.
6040 * tree-call-cdce.c: Likewise.
6041 * ipa-pure-const.c: Likewise.
6042 * c-format.c: Likewise.
6043 * tree-stdarg.c: Likewise.
6044 * tree-ssa-math-opts.c: Likewise.
6045 * tree-ssa-dom.c: Likewise.
6046 * tree-nrv.c: Likewise.
6047 * tree-ssa-propagate.c: Likewise.
6048 * ipa-utils.c: Likewise.
6049 * tree-ssa-propagate.h: Likewise.
6050 * tree-ssa-alias.c: Likewise.
6051 * gimple-low.c: Likewise.
6052 * tree-ssa-sink.c: Likewise.
6053 * ipa-inline.c: Likewise.
6054 * c-semantics.c: Likewise.
6055 * dwarf2out.c: Likewise.
6057 * tree-ssa-loop-ivcanon.c: Likewise.
6058 * predict.c: Likewise.
6059 * tree-ssa-loop.c: Likewise.
6060 * tree-parloops.c: Likewise.
6061 * tree-ssa-address.c: Likewise.
6062 * tree-ssa-ifcombine.c: Likewise.
6063 * matrix-reorg.c: Likewise.
6064 * c-decl.c: Likewise.
6065 * tree-eh.c: Likewise.
6066 * c-pretty-print.c: Likewise.
6067 * lambda-trans.c: Likewise.
6068 * function.c: Likewise.
6069 * langhooks.c: Likewise.
6070 * ebitmap.h: Likewise.
6071 * tree-vectorizer.c: Likewise.
6072 * function.h: Likewise.
6073 * langhooks.h: Likewise.
6074 * tree-vectorizer.h: Likewise.
6075 * ipa-type-escape.c: Likewise.
6076 * ipa-type-escape.h: Likewise.
6077 * domwalk.c: Likewise.
6078 * tree-if-conv.c: Likewise.
6079 * profile.c: Likewise.
6080 * domwalk.h: Likewise.
6081 * tree-data-ref.c: Likewise.
6082 * tree-data-ref.h: Likewise.
6083 * tree-flow-inline.h: Likewise.
6084 * tree-affine.c: Likewise.
6085 * tree-vect-analyze.c: Likewise.
6086 * c-typeck.c: Likewise.
6087 * gimplify.c: Likewise.
6088 * coretypes.h: Likewise.
6089 * tree-ssa-phiopt.c: Likewise.
6090 * calls.c: Likewise.
6091 * tree-ssa-coalesce.c: Likewise.
6092 * tree.def: Likewise.
6093 * tree-dfa.c: Likewise.
6094 * except.c: Likewise.
6095 * except.h: Likewise.
6096 * cfgexpand.c: Likewise.
6097 * tree-cfgcleanup.c: Likewise.
6098 * tree-ssa-pre.c: Likewise.
6099 * tree-ssa-live.c: Likewise.
6100 * tree-sra.c: Likewise.
6101 * tree-ssa-live.h: Likewise.
6102 * tree-predcom.c: Likewise.
6103 * lambda.h: Likewise.
6104 * tree-mudflap.c: Likewise.
6105 * ipa-prop.c: Likewise.
6106 * print-tree.c: Likewise.
6107 * tree-ssa-copy.c: Likewise.
6108 * ipa-prop.h: Likewise.
6109 * tree-ssa-forwprop.c: Likewise.
6110 * ggc-page.c: Likewise.
6111 * c-omp.c: Likewise.
6112 * tree-ssa-dce.c: Likewise.
6113 * tree-vect-patterns.c: Likewise.
6114 * tree-ssa-ter.c: Likewise.
6115 * tree-nested.c: Likewise.
6116 * tree-ssa.c: Likewise.
6117 * lambda-code.c: Likewise.
6118 * tree-ssa-loop-prefetch.c: Likewise.
6119 * tree-inline.c: Likewise.
6120 * tree-inline.h: Likewise.
6121 * tree-iterator.c: Likewise.
6122 * tree-optimize.c: Likewise.
6123 * tree-ssa-phiprop.c: Likewise.
6124 * tree-vect-transform.c: Likewise.
6125 * tree-object-size.c: Likewise.
6126 * tree-outof-ssa.c: Likewise.
6127 * cfgloop.c: Likewise.
6128 * system.h: Likewise.
6129 * tree-profile.c: Likewise.
6130 * cfgloop.h: Likewise.
6131 * c-gimplify.c: Likewise.
6132 * c-common.c: Likewise.
6133 * tree-vect-generic.c: Likewise.
6134 * tree-flow.h: Likewise.
6135 * c-common.h: Likewise.
6136 * basic-block.h: Likewise.
6137 * tree-ssa-structalias.c: Likewise.
6138 * tree-switch-conversion.c: Likewise.
6139 * tree-ssa-structalias.h: Likewise.
6140 * tree-cfg.c: Likewise.
6141 * passes.c: Likewise.
6142 * ipa-struct-reorg.c: Likewise.
6143 * ipa-struct-reorg.h: Likewise.
6144 * tree-ssa-reassoc.c: Likewise.
6145 * cfgrtl.c: Likewise.
6146 * varpool.c: Likewise.
6148 * tree-ssanames.c: Likewise.
6149 * tree-ssa-threadedge.c: Likewise.
6150 * langhooks-def.h: Likewise.
6151 * tree-ssa-operands.c: Likewise.
6152 * config/alpha/alpha.c: Likewise.
6153 * config/frv/frv.c: Likewise.
6154 * config/s390/s390.c: Likewise.
6155 * config/m32c/m32c.c: Likewise.
6156 * config/m32c/m32c-protos.h: Likewise.
6157 * config/spu/spu.c: Likewise.
6158 * config/sparc/sparc.c: Likewise.
6159 * config/i386/i386.c: Likewise.
6160 * config/sh/sh.c: Likewise.
6161 * config/xtensa/xtensa.c: Likewise.
6162 * config/stormy16/stormy16.c: Likewise.
6163 * config/ia64/ia64.c: Likewise.
6164 * config/rs6000/rs6000.c: Likewise.
6165 * config/pa/pa.c: Likewise.
6166 * config/mips/mips.c: Likewise.
6168 2008-07-28 Simon Baldwin <simonb@google.com>
6170 * c-pragma.c (handle_pragma_message): New function.
6171 (init_pragma): Register handle_pragma_message.
6172 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6175 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
6177 PR tree-optimization/35252
6178 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6179 REALPART_EXPR to be considered as same load operation.
6181 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
6183 PR tree-optimization/36830
6184 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6185 (expressions_equal_p): Return false if only one operand is null.
6187 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
6189 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6190 version requirements.
6192 2008-07-26 Olivier Hainque <hainque@adacore.com>
6194 * collect2.c (symkind): New enum. Symbol kinds we care about.
6195 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
6196 code and head comment accordingly.
6197 (scan_prog_file): Use symkind names instead of bare integers.
6199 2008-07-25 Jan Hubicka <jh@suse.cz>
6201 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6203 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6204 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6205 * dojump.c (clear_pending_stack_adjust): Likewise.
6206 * print-tree.c (print_node): Ignore DECL_INLINE.
6207 * tree-inline.c (inlinable_function_p): Likewise.
6209 2008-07-25 Michael Meissner <gnu@the-meissners.org>
6211 * doc/extend.texi (hot attribute): Document that the hot attribute
6212 turns on -O3 for some ports.
6213 (cold attribute): Document that the cold attribute turns on -Os
6216 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6217 reflect function specific option support.
6219 * target.h (struct target_option_hooks): Add fields to say whether
6220 the cold attribute implies -Os and the hot attribute implies -O3.
6222 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6223 By default, do not turn on -Os for cold functions.
6224 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6225 not turn on -O3 for hot functions.
6227 * c-common.c (handle_hot_attribute): Use target hook to determine
6228 if hot functions should enable -O3.
6229 (handle_cold_attribute): Use target hook to determine if cold
6230 functions should enable -Os.
6232 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6233 (override_options): Move disable scheduling to
6234 optimization_options.
6235 (optimization_options): Disable scheduling here, not
6237 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6238 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6240 * config/ia64/ia64.c (ia64_override_options): Move setting
6241 scheduling flags to ia64_optimization_options.
6242 (ia64_optimization_options): Disable scheduling options here, and
6243 not in ia64_override_options.
6244 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6245 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6247 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
6250 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6252 2008-07-25 Martin Jambor <mjambor@suse.cz>
6254 PR tree-optimization/36926
6255 * ipa-prop.c (ipa_analyze_call_uses): Call
6256 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6258 2008-07-25 Joseph Myers <joseph@codesourcery.com>
6260 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6261 movv2si_internal): Add mem = reg alternative.
6263 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
6266 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6267 DEFAULT_PCC_STRUCT_RETURN to 127.
6269 2008-07-24 Jan Hubicka <jh@suse.cz>
6271 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6272 (build_cgraph_edges): Likewise.
6273 * cgraph.c (cgraph_node): Do not update assembler hash.
6274 (cgraph_remove_node): Drop non-unit-at-a-time code.
6275 * tree-pass.h (pass_O0_always_inline): Remove.
6276 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6277 * toplev.c (process_options): Flag unit-at-a-time does not imply
6279 * cgraphunit.c: Update comments.
6280 (decide_is_function_needed): Drop non-unit-at-a-time mode.
6281 (cgraph_assemble_pending_functions): Remove.
6282 (cgraph_reset_node): Drop non-unit-at-a-time code.
6283 (cgraph_finalize_function): Likewise.
6284 (cgraph_analyze_function): Likewise.
6285 (cgraph_finalize_compilation_unit): Likewise.
6286 (cgraph_expand_function): Likewise.
6287 (cgraph_optimize): Likesise.
6288 (save_inline_function_body): Likewise.
6289 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6290 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6291 * ipa-inline.c: Update comments.
6292 (enum inlining_mode): remove INLINE_SPEED.
6293 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6294 (cgraph_mark_inline_edge): Likewise.
6295 (try_inline): Likewise.
6296 (cgraph_decide_inlining_incrementally): Likewise.
6297 (cgraph_gate_inlining): Remove.
6298 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6299 (cgraph_gate_early_inlining): Likewise.
6300 (gate_inline_passes): Remove.
6301 (pass_inline_parameters, pass_ipa_inline): Remove gates.
6302 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6303 pass_O0_always_inline): Remove.
6304 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6305 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6306 * opts.c (no_unit_at_a_time_default): Remove.
6307 (decode_options): Remove flag_unit_at_a_time reset and warning.
6308 * opts.h (no_unit_at_a_time_default): Remove.
6309 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6310 early in GNU dialect.
6311 (merge_decls): Update comment; drop unit-at-a-time check.
6312 (finish_decl): Likewise.
6313 (grok_declaration): Remove flag_inline_trees code.
6314 (finish_functions): Return on function returning non-void on all
6316 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6317 * cfgexpand.c (expand_one_static_var): Remove.
6318 (expand_one_var): Remove expand_one_static_var call.
6319 (expand_used_vars_for_block): Remove flag_unit_a_time check.
6320 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6321 and flag_unit_at_a-time compatibility checks.
6322 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6323 * tree-inline.c (flag_inline_trees): Remove.
6324 (inlinable_function_p): Don't check it.
6325 (expand_call_inline): Remove non-unit-at-a-time code.
6326 * tree-inline.h (flag_inline_trees): Remove.
6327 * tree-optimize.c (execute_early_local_optimizations): Remove
6328 unit-at-a-time checks.
6329 (tree_rest_of_compilation): Likewise.
6330 * combine.c (setup_incoming_promotions): Likewise.
6331 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6332 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6333 * passes.c (pass_inline_parameters): Update comments; remove
6334 O0_alwaysinline pass.
6335 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6336 (execute_one_pass): Likewise.
6337 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6338 (ix86_function_sseregparm): Likewise.
6339 * arm.c (arm_function_in_section_p): Likewise.
6340 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6341 * varpool.c: Update comments.
6342 (decide_is_variable_needed): Remove unit-at-a-time checks.
6343 (varpool_finalize_decl): Likewise.
6345 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
6347 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6349 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6351 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
6353 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6354 imp symbol extension.
6356 2008-07-23 Ian Lance Taylor <iant@google.com>
6358 * tree-vrp.c (infer_value_range): Ignore asm statements when
6359 looking for memory accesses for -fdelete-null-pointer-checks.
6361 2008-07-24 Ben Elliston <bje@au.ibm.com>
6363 * config/spu/spu-c.c (__vector_keyword): New variable.
6364 (vector_keyword): Likewise.
6365 (spu_categorize_keyword): New function.
6366 (spu_macro_to_expand): Likewise.
6367 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6368 compiling an ISO C dialect.
6370 2008-07-24 Ben Elliston <bje@au.ibm.com>
6372 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6375 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6377 * configure: Regenerate.
6378 * configure.ac: Require texinfo 4.7.
6379 * doc/install.texi: Document texinfo 4.7 requirement.
6381 2008-07-23 Martin Jambor <mjambor@suse.cz>
6383 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6384 rather than for DECL_SAVED_TREE.
6385 * ipa-prop.c: Include diagnostic.h.
6386 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6388 (ipa_detect_param_modifications): Function rewritten from scratch.
6389 (ipa_compute_jump_functions): Changed accesses to modification flags.
6390 (ipa_free_node_params_substructures): Update flags destruction.
6391 (ipa_node_duplication_hook): Update flags duplication.
6392 (ipa_print_all_params_modified): Updated flag access.
6393 * ipa-prop.h (struct ipa_param_flags): New structure.
6394 (struct ipa_node_params): New field modification_analysis_done,
6395 modified_flags changed into param_flags.
6396 (ipa_is_ith_param_modified): Changed to use new flags.
6397 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6399 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6400 ipa-cp.c and split into two functions.
6401 (ipa_print_node_jump_functions): New function.
6402 (compute_scalar_jump_functions): New function.
6403 (type_like_member_ptr_p): New function.
6404 (compute_pass_through_member_ptrs): New function.
6405 (fill_member_ptr_cst_jump_function): New function.
6406 (determine_cst_member_ptr): New function.
6407 (compute_cst_member_ptr_arguments): New function.
6408 (ipa_compute_jump_functions): Complete rewrite.
6409 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6410 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6411 (struct ipa_member_ptr_cst): New structure.
6412 (union jump_func_value): New field member_cst.
6413 * ipa-cp.c (ipcp_lat_is_insertable): New function.
6414 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6415 jump function types.
6416 (ipcp_print_all_lattices): Slight fprintf rearrangement.
6417 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6418 instead of ipcp_print_all_jump_functions.
6419 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6420 only for replacable scalars.
6422 * doc/invoke.texi (Optimize options): Add description of
6423 -findirect-inlining.
6424 * common.opt (flag_indirect_inlining): New flag.
6425 * opts.c (decode_options): Set flag_indirect_inlining when
6428 * ipa-inline.c: Include ipa-prop.h.
6429 (inline_indirect_intraprocedural_analysis): New function.
6430 (inline_generate_summary): Allocate parameter and argument info
6431 structures, call inline_indirect_intraprocedural_analysis on each
6432 node when doing indirect inlining and deallocate indirect inlining
6433 data structures in the end.
6434 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6435 (free_all_ipa_structures_after_iinln): New function.
6436 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6438 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6440 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6441 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6442 of computing the frequency separately.
6443 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6444 of computing the frequency separately.
6445 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6446 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6447 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6448 (ipa_get_stmt_member_ptr_load_param): New function.
6449 (ipa_is_ssa_with_stmt_def): New function.
6450 (ipa_note_param_call): New function.
6451 (ipa_analyze_call_uses): New function.
6452 (ipa_analyze_stmt_uses): New function.
6453 (ipa_analyze_params_uses): New function.
6454 (ipa_free_node_params_substructures): Also free the param_calls linked
6456 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6457 (ipa_print_node_param_flags): New function.
6458 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6459 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6460 * ipa-prop.h (struct ipa_param_flags): New field called.
6461 (struct ipa_param_call_note): New structure.
6462 (struct ipa_node_params): New fields param_calls and
6464 (ipa_is_ith_param_called): New function.
6465 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6466 ipa_analyze_params_uses and dump parameter flags.
6468 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6469 ipa_propagate_indirect_call_infos if performing indirect inlining,
6470 pass a new parameter new_edges to it.
6471 (add_new_edges_to_heap): New fucntion.
6472 (cgraph_decide_inlining_of_small_functions): New vector
6473 new_indirect_edges for newly found indirect edges , call
6474 ipa_propagate_indirect_call_infos after inlining.
6475 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6476 inlining if performing indirect inlining. Call
6477 free_all_ipa_structures_after_iinln when doing so too.
6478 (inline_generate_summary): Do not call
6479 free_all_ipa_structures_after_iinln here.
6480 * ipa-prop.c (update_jump_functions_after_inlining): New function.
6481 (print_edge_addition_message): New function.
6482 (update_call_notes_after_inlining): New function.
6483 (propagate_info_to_inlined_callees): New function.
6484 (ipa_propagate_indirect_call_infos): New function.
6485 * ipa-prop.h: Include cgraph.h
6486 (struct ipa_param_call_note): Fields reordered, new field processed.
6487 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
6489 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
6490 rediscovered call statements.
6491 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
6492 (dump_cgraph_node): Dump also the indirect_call flag.
6493 (cgraph_clone_edge): Copy also the indirect_call flag.
6494 * tree-inline.c (copy_bb): Do not check for fndecls from call
6495 expressions, check for edge availability when moving clones.
6496 (get_indirect_callee_fndecl): New function.
6497 (expand_call_inline): If callee declaration is not apprent from
6498 the statement, try calling get_indirect_callee_fndecl. Do not
6499 issue warnings or call sorry when not inlinings an indirect edge.
6500 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
6502 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
6503 bit more frandly to matching.
6504 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
6505 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
6506 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
6508 2008-07-23 Michael Meissner <gnu@the-meissners.org>
6511 * opth-gen.awk: Suppress function specific features when building
6513 * optc-gen.awk: Ditto.
6515 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6518 * diagnostic.c (pedwarn): Add opt parameter.
6520 * c-tree.h (pedwarn_init): Add opt parameter.
6521 (pedwarn_c90): Likewise.
6522 (pedwarn_c99): Likewise.
6523 * c-errors.c (pedwarn_c99): Likewise.
6524 (pedwarn_c90): Likewise.
6525 * toplev.h (pedwarn): Update declaration.
6526 (pedwarn0): Declare.
6527 * c-lex.c: All calls to pedwarn changed.
6528 * builtins.c: All calls to pedwarn changed.
6529 * toplev.c: All calls to pedwarn changed.
6530 * c-decl.c: All calls to pedwarn changed.
6531 * c-typeck.c: All calls to pedwarn changed.
6532 * c-common.c: All calls to pedwarn changed.
6533 * c-parser.c: All calls to pedwarn changed.
6535 2008-07-23 Michael Meissner <gnu@the-meissners.org>
6536 Karthik Kumar <karthikkumar@gmail.com>
6538 * attribs.c (file scope): Include c-common.h.
6539 (decl_attributes): Add support for #pragma GCC optimize and
6542 * targhooks.c (default_can_inline_p): New function that is the
6543 default for the TARGET_CAN_INLINE_P target hook.
6545 * targhooks.h (default_can_inline_p): Add declaration.
6547 * tree.c (cl_optimization_node): New static tree for building
6548 OPTIMIZATION_NODE tree.
6549 (cl_target_option_node): New static tree for building
6550 TARGET_OPTION_NODE tree.
6551 (cl_option_hash_table): New hash table for hashing
6552 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6553 (cl_option_hash_hash): New function to provide the hash value for
6554 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6555 (cl_option_hash_eq): New function to provide an equality test for
6556 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6557 (tree_code_size): Add support for OPTIMIZATION_NODE and
6558 TARGET_OPTION_NODE trees.
6559 (tree_code_structure): Add support for OPTIMIZATION_NODE and
6560 TARGET_OPTION_NODE trees.
6561 (build_optimization_node): Build a tree that has all of the
6562 current optimization options.
6563 (build_target_option_node): Build a tree that has the target
6564 options that might be changed on a per function basis.
6566 * tree.h (file scope): Include options.h.
6567 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
6568 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6569 (TREE_OPTIMIZATION): Ditto.
6570 (TREE_TARGET_SPECIFIC): Ditto.
6571 (struct tree_function_decl): Add fields for remembering the
6572 current optimization options and target specific options.
6573 (struct tree_optimization_option): New tree variant that remembers
6574 the optimization options.
6575 (struct tree_target_option): New tree variant that remembers the
6576 target specific flags that might change for compiling a particular
6578 (union tree_node): Include tree_optimization_option and
6579 tree_target_option fields.
6580 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
6581 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
6582 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
6583 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
6584 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
6585 optimization and target options.
6586 (optimization_default_node): New macro to refer to global_trees
6588 (optimization_current_node): Ditto.
6589 (optimization_cold_node): Ditto.
6590 (optimization_hot_node): Ditto.
6591 (target_option_default_node): Ditto.
6592 (target_option_current_node): Ditto.
6593 (current_option_pragma): Ditto.
6594 (current_optimize_pragma): Ditto.
6596 * target.h (struct gcc_target): Add valid_option_attribute_p,
6597 target_option_save, target_option_restore, target_option_print,
6598 target_option_pragma_parse, and can_inline_p hooks.
6600 * toplev.h (parse_optimize_options): Add declaration.
6601 (fast_math_flags_struct_set_p): Ditto.
6603 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
6604 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
6607 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
6608 tree_can_inline_p hook to see if one function can inline another.
6609 (cgraph_decide_inlining): Ditto.
6610 (cgraph_decide_inlining_incrementally): Ditto.
6612 * opts.c (decode_options): Add support for running multiple times
6613 to allow functions with different target or optimization options
6614 than was specified on the command line.
6615 (fast_math_flags_struct_set_p): New function that is similar to
6616 fast_math_flags_set_p, except it uses the values in the
6617 cl_optimization structure instead of global variables.
6619 * optc-gen.awk: Add support for TargetSave to allow a back end to
6620 declare new fields that need to be saved when using function
6621 specific options. Include flags.h and target.h in the options.c
6622 source. Add support for Save to indicate which options can be set
6623 for individual functions. Generate cl_optimize_save,
6624 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
6625 cl_target_option_restore, cl_target_option_print functions to
6626 allow functions to use different optimization or target options.
6628 * opt-functions.awk (var_type_struct): Return the type used for
6629 storing the field in a structure.
6631 * opth-gen.awk: Add support for TargetSave to allow a back end to
6632 declare new fields that need to be saved when using function
6633 specific options. Add support for Save to indicate which options
6634 can be set for individual functions. Only generate one extern for
6635 Mask fields. Generate cl_optimization and cl_target_option
6636 structures to remember optimization and target options.
6638 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
6639 collecting new tree nodes.
6640 (TS_TARGET_OPTION): Ditto.
6642 * c-decl.c (merge_decls): Merge function specific target and
6643 optimization options.
6645 * function.c (invoke_set_current_function_hook): If the function
6646 uses different optimization options, change the global variables
6649 * coretypes.h (struct cl_optimization): Add forward reference.
6650 (struct cl_target_option): Ditto.
6652 * c-pragma.c (option_stack): New static vector to remember the
6653 current #pragma GCC option stack.
6654 (handle_pragma_option): New function to support #pragma GCC option
6655 to change target options.
6656 (optimize_stack): New static vector to remember the current
6657 #pragma GCC optimize stack.
6658 (handle_pragma_optimize): New function to support #pragma GCC
6659 optimize to change optimization options.
6660 (init_pragma): Add support for #pragma GCC optimize and #pragma
6663 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
6664 optimization options.
6665 (TARGET_OPTION_NODE): New tree code for remembering certain target
6668 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
6669 TARGET_OPTION_NODE trees.
6671 * common.opt (-O): Add Optimization flag.
6673 (-fmath-errno): Ditto.
6674 (-falign-functions): Add UInteger flag to make sure flag gets full
6675 int in cl_optimization structure.
6676 (-falign-jumps): Ditto.
6677 (-falign-labels): Ditto.
6678 (-falign-loops): Ditto.
6679 (-fsched-stalled-insns): Ditto.
6680 (-fsched-stalled-insns-dep): Ditto.
6682 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
6684 (TARGET_OPTION_SAVE): Ditto.
6685 (TARGET_OPTION_RESTORE): Ditto.
6686 (TARGET_OPTION_PRINT): Ditto.
6687 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6688 (TARGET_CAN_INLINE_P): Ditto.
6689 (TARGET_INITIALIZER): Add new hooks.
6691 * tree-inline.c (tree_can_inline_p): New function to determine
6692 whether one function can inline another. Check if the functions
6693 use compatible optimization options, and also call the backend
6696 * tree-inline.h (tree_can_inline_p): Add declaration.
6698 * c-common.c (c_common_attribute): Add support for option and
6699 optimize attributes.
6700 (handle_option_attribute): Add support for the option attribute to
6701 allow the user to specify different target options for compiling a
6703 (handle_optimize_attribute): Add support for the optimize
6704 attribute to allow the user to specify different optimization
6705 options for compiling a specific function.
6706 (handle_hot_attribute): Turn on -O3 optimization for this one
6707 function if it isn't the default optimization level.
6708 (handle_cold_attribute): Turn on -Os optimization for this one
6709 function if it insn't the default optimization.
6710 (const_char_p): New const char * typedef.
6711 (optimize_args): New static vector to remember the optimization
6713 (parse_optimize_options): New function to set up the optimization
6714 arguments from either the optimize attribute or #pragma GCC optimize.
6716 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
6717 (builtin_define_std): Ditto.
6719 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
6720 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
6721 (x86_64-*-*): Ditto.
6723 * Makefile.in (TREE_H): Add options.h.
6724 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
6726 * doc/extend.texi (option attribute): Document new attribute.
6727 (optimize attribute): Ditto.
6728 (hot attribute): Document hot attribute sets -O3.
6729 (cold attribute): Document cold attribute sets -Os.
6730 (#pragma GCC option): Document new pragma.
6731 (#pragma GCC optimize): Ditto.
6733 * doc/options.texi (TargetSave): Document TargetSave syntax.
6734 (UInteger): Document UInteger must be used for certain flags.
6735 (Save): Document Save option to create target specific options
6736 that can be saved/restored on a function specific context.
6738 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
6739 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6741 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
6742 (TARGET_OPTION_SAVE): Ditto.
6743 (TARGET_OPTION_RESTORE): Ditto.
6744 (TARGET_OPTION_PRINT): Ditto.
6745 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6746 (TARGET_CAN_INLINE_P): Ditto.
6748 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
6750 (-mfpmath=both): Ditto.
6752 2008-07-23 Michael Meissner <gnu@the-meissners.org>
6753 Karthik Kumar <karthikkumar@gmail.com>
6755 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
6756 (TARGET_POPCNT): Ditto.
6757 (TARGET_SAHF): Ditto.
6758 (TARGET_AES): Ditto.
6759 (TARGET_PCLMUL): Ditto.
6760 (TARGET_CMPXCHG16B): Ditto.
6761 (TARGET_RECIP): Move switch into target_flags.
6762 (TARGET_FUSED_MADD): Ditto.
6763 (ix86_arch_features): Make an unsigned char type.
6764 (ix86_tune_features): Ditto.
6765 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
6766 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
6767 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
6769 * config/i386/i386.opt (arch): New TargetSave field to define
6770 fields that need to be saved for function specific option support.
6773 (branch_cost): Ditto.
6774 (ix86_isa_flags_explicit): Ditto.
6775 (tune_defaulted): Ditto.
6776 (arch_specified): Ditto.
6777 (-m128-long-double): Add Save flag to save option for target
6778 specific option support.
6780 (-maccumulate-outgoing-args): Ditto.
6781 (-malign-double): Ditto.
6782 (-malign-stringops): Ditto.
6783 (-mfancy-math-387): Ditto.
6784 (-mhard-float): Ditto.
6786 (-minline-all-stringops): Ditto.
6787 (-minline-stringops-dynamically): Ditto.
6788 (-mms-bitfields): Ditto.
6789 (-mno-align-stringops): Ditto.
6790 (-mno-fancy-math-387): Ditto.
6791 (-mno-push-args): Ditto.
6792 (-mno-red-zone): Ditto.
6793 (-mpush-args): Ditto.
6794 (-mred-zone): Ditto.
6796 (-msseregparm): Ditto.
6797 (-mstack-arg-probe): Ditto.
6812 (-mrecip): Move flag into target_flags.
6814 (-mno-fused-madd): Ditto.
6815 (-mfused-madd): Ditto.
6816 (-mabm): Move flag into ix86_isa_flags.
6823 * config/i386/i386-c.c: New file for #pragma support.
6824 (ix86_target_macros_internal): New function to #define or #undef
6825 target macros based when the user uses the #pragma GCC option to
6826 change target options.
6827 (ix86_pragma_option_parse): New function to add #pragma GCC option
6829 (ix86_target_macros): Move defining the target macros here from
6830 TARGET_CPU_CPP_BUILTINS in i386.h.
6831 (ix86_register_pragmas): Register the #pragma GCC option hook. If
6832 defined, initialize any subtarget #pragmas.
6834 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
6835 REGISTER_TARGET_PRAGMAS.
6837 * config/i386/t-i386: New file for x86 dependencies.
6838 (i386.o): Make dependencies mirror the include files used.
6839 (i386-c.o): New file, add dependencies.
6841 * config/i386/i386-protos.h (override_options): Add bool argument.
6842 (ix86_valid_option_attribute_tree): Add declaration.
6843 (ix86_target_macros): Ditto.
6844 (ix86_register_macros): Ditto.
6846 * config/i386/i386.c (ix86_tune_features): Move initialization of
6847 the target masks to initial_ix86_tune_features to allow functions
6848 to have different target options. Make type unsigned char,
6849 instead of unsigned int.
6850 (initial_ix86_tune_features): New static vector to hold processor
6851 masks for the tune variables.
6852 (ix86_arch_features): Move initialization of the target masks to
6853 initial_ix86_arch_features to allow functions to have different
6854 target options. Make type unsigned char, instead of unsigned int.
6855 (initial_ix86_arch_features): New static vector to hold processor
6856 masks for the arch variables.
6857 (enum ix86_function_specific_strings): New enum to describe the
6858 string options used for attribute((option(...))).
6859 (ix86_target_string): New function to return a string that
6860 describes the target options.
6861 (ix86_debug_options): New function to print the current options in
6863 (ix86_function_specific_save): New function hook to save the
6864 function specific global variables in the cl_target_option structure.
6865 (ix86_function_specific_restore): New function hook to restore the
6866 function specific variables from the cl_target_option structure to
6867 the global variables.
6868 (ix86_function_specific_print): New function hook to print the
6869 target specific options in the cl_target_option structure.
6870 (ix86_valid_option_attribute_p): New function hook to validate
6871 attribute((option(...))) arguments.
6872 (ix86_valid_option_attribute_tree): New function that is common
6873 code between attribute((option(...))) and #pragma GCC option
6874 support that parses the options and returns a tree holding the options.
6875 (ix86_valid_option_attribute_inner_p): New helper function for
6876 ix86_valid_option_attribute_tree.
6877 (ix86_can_inline_p): New function hook to decide if one function
6878 can inline another on a target specific basis.
6879 (ix86_set_current_function); New function hook to switch target
6880 options if the user used attribute((option(...))) or #pragma GCC
6882 (ix86_tune_defaulted): Move to static file scope from
6884 (ix86_arch_specified): Ditto.
6885 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
6887 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
6888 (OPTION_MASK_ISA_ABM_SET): Ditto.
6889 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
6890 (OPTION_MASK_ISA_CX16_SET): Ditto.
6891 (OPTION_MASK_ISA_SAHF_SET): Ditto.
6892 (OPTION_MASK_ISA_AES_UNSET): Ditto.
6893 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
6894 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
6895 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
6896 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
6897 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
6898 (struct ptt): Move to static file scope from override_options.
6899 (processor_target_table): Ditto.
6901 (ix86_handle_option): Add support for options that are now isa options.
6902 (override_options): Add support for declaring functions that
6903 support different target options than were specified on the
6904 command line. Move struct ptt, processor_target_table, cpu_names,
6905 ix86_tune_defaulted, ix86_arch_specified to static file scope.
6906 Add bool argument. Fix up error messages so the appropriate error
6907 is given for either command line or attribute.
6908 (ix86_previous_fndecl): New static to remember previous function
6909 declaration to see if we need to change target options.
6910 (ix86_builtins_isa): New array to record the ISA of each builtin
6912 (def_builtin): Always create the builtin function, even if the
6913 current ISA doesn't support it.
6914 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
6915 tests for those builtins.
6916 (ix86_init_builtins): Remove TARGET_MMX test for calling
6917 ix86_init_mmx_sse_builtins.
6918 (ix86_expand_builtin): If the current ISA doesn't support a given
6919 builtin, signal an error.
6920 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
6921 (TARGET_SET_CURRENT_FUNCTION): Ditto.
6922 (TARGET_OPTION_SAVE): Ditto.
6923 (TARGET_OPTION_RESTORE): Ditto.
6924 (TARGET_OPTION_PRINT): Ditto.
6925 (TARGET_CAN_INLINE_P): Ditto.
6927 2008-07-22 Rafael Ávila de Espíndola <espindola@google.com>
6929 * c-typeck.c (build_external_ref): Don't call assemble_external.
6930 * final.c (output_operand): Call assemble_external.
6932 2008-07-21 DJ Delorie <dj@redhat.com>
6934 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
6935 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
6937 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6939 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
6940 original insn and splitter contents into ...
6941 ("*div<mode>3_fast"): ... this new pattern. Enable only if
6942 flag_unsafe_math_optimizations. Add dummy scratch register.
6943 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
6944 !flag_unsafe_math_optimizations. Returns number with next
6945 highest magnitude if this is still less or equal to the true
6946 quotient in magnitude.
6948 2008-07-21 Rafael Ávila de Espíndola <espindola@google.com>
6950 * Makefile.in: Replace toplev.h with TOPLEV_H.
6951 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
6952 * c-lex.c (fe_file_change): Don't set in_system_header.
6953 * c-parser.c (c_token): Remove in_system_header.
6954 (c_lex_one_token): Don't set in_system_header.
6955 (c_parser_set_source_position_from_token): Don't set in_system_header.
6956 * diagnostic.c (diagnostic_report_diagnostic): Use location from
6959 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
6960 * flags.h (in_system_header): Remove.
6961 * function.c (saved_in_system_header): Remove.
6962 (push_cfun): Don't set in_system_header.
6963 (pop_cfun): Don't set in_system_header.
6964 (push_struct_function): Don't set in_system_header.
6965 * input.h (expanded_location): Add sysp.
6966 (in_system_header_at): New.
6967 (in_system_header): New.
6968 * toplev.c (in_system_header): Remove.
6969 * toplev.h: Include input.h
6971 * tree-cfg.c (execute_warn_function_return): Call warning_at.
6972 * tree-ssa.c (warn_uninit): Call warning_at.
6973 (warn_uninitialized_var): Update calls to warn_uninit.
6974 (warn_uninitialized_phi): Update calls to warn_uninit.
6975 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
6976 (expand_location): Initialize xloc.sysp.
6977 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
6978 (tree_decl_with_vis): Remove in_system_header_flag.
6980 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
6983 * recog.c (asm_operand_ok): Change the order of the extra
6984 memory constraint checks.
6986 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
6989 * tree-switch-conversion.c (build_one_array): Call
6990 varpool_mark_needed_node and varpool_finalize_decl
6991 instead of assemble_variable.
6993 2008-07-19 Jan Hubicka <jh@suse.cz>
6995 * cgraph.c (cgraph_add_new_function): Do early local passes.
6996 * tree-nrv.c (gate_pass_return_slot): New gate.
6997 (pass_nrv): Add the gate.
6998 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7000 (coalesce_ssa_name): Coalesce SSA names.
7001 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7002 not optimizing so unused user vars remains visible.
7003 * common.opt (flag_tree_ter): Always enable by default.
7004 * tree-ssa-ter.c: Include flags.h
7005 (is_replaceable_p): Check that locations match; when aliasing is missing
7006 be conservative about loads.
7007 * tree-optimize.c (gate_init_datastructures): Remove.
7008 (pass_init_datastructures): New.
7009 * passes.c: Reorder passes so we always go into SSA.
7011 2008-07-19 Jan Hubicka <jh@suse.cz>
7013 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7014 * doc/invoke.texi (--combine): Likewise.
7015 (-finline-functions-called-once): Update levels when enabled.
7016 (-funit-at-a-time): Document new behaviour.
7017 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7018 -fno-section-anchors when disabled explicitly.
7019 (inline params): They are not ignored now.
7020 (precompiled headers): Remove unit-at-a-time as being incompatible.
7021 * opts.c (decode_options): Handle unit-at-a-time as alias;
7022 imply -fno-section-anchors when toplevel reorder is disabled
7024 * common.opt (ftoplevel-reorder): Set default value to 2.
7025 (funit-at-a-time): Set default value to 1.
7026 * config/rs6000/rs6000.c (optimization_options): Set section anchors
7029 2008-07-19 Jan Hubicka <jh@suse.cz>
7031 * builtins.c (expand_builtin_int_roundingfn,
7032 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7035 2008-07-19 Richard Guenther <rguenther@suse.de>
7038 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7039 * tree-ssa-sccvn.c (get_constant_value_id): New function.
7040 * tree-ssa-pre.c (get_expr_value_id): For newly created
7041 constant value-ids make sure to add the expression to its
7044 2008-07-19 Jakub Jelinek <jakub@redhat.com>
7047 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7048 return value of the builtin is ignored.
7050 2008-07-19 Olivier Hainque <hainque@adacore.com>
7052 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7053 bits, a C conformant malloc implementation has to provide.
7054 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7056 2008-07-19 Joseph Myers <joseph@codesourcery.com>
7060 * reload.c (find_reloads_subreg_address): Only reload address if
7061 reloaded == 0, not for reloaded != 1.
7064 2008-07-16 Joseph Myers <joseph@codesourcery.com>
7065 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7066 (m32c_legitimate_address_p): Handle "++rii" addresses created by
7067 m32c_legitimize_reload_address.
7069 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7070 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7071 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7073 2008-07-19 Olivier Hainque <hainque@adacore.com>
7075 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7076 argument, saying whether nested array are to be collapsed
7077 into a single array type DIE with multiple subscripts.
7078 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7079 issues, centralize the nested array types collapsing control and
7080 disable the transformation for Ada.
7082 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
7085 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7087 (x86_64_shift_adj_2): New expander.
7088 (x86_64_shift_adj_3): Ditto.
7089 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7090 to split TImode operands.
7091 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7092 (ix86_split_lshr): Ditto.
7094 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
7096 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7097 and __CHAR32_TYPE__.
7098 * c-typeck.c (digest_init): Support char16_t and char32_t.
7099 (set_nonincremental_init_from_string): Idem.
7101 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
7104 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7105 PREFERRED_STACK_BOUNDARY.
7106 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7108 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
7111 * function.c (locate_and_pad_parm): Cap boundary earlier.
7113 2008-07-17 Julian Brown <julian@codesourcery.com>
7115 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7116 no-op for targets which don't use DLLs.
7118 2008-07-17 Martin Jambor <mjambor@suse.cz>
7120 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7121 that nodes are relevant by examining the node->analyzed flag.
7122 (ipcp_init_stage): Check which nodes are relevant, assert that the
7123 relevant ones are also required.
7124 (ipcp_propagate_stage): Check on the side arrays are properly
7126 (ipcp_print_all_jump_functions): Make sure not to touch any node
7127 that is not analyzed or an edge that does not have a corresponding
7128 entry in the on-the-side vectors.
7129 (ipcp_function_scale_print): Likewise.
7130 (ipcp_update_callgraph): Check that the node is relevant.
7131 (ipcp_insert_stage): Check that the node is relevant. Check there is
7132 an info for every node and edge.
7133 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7134 (ipa_print_all_tree_maps): Likewise and a new variable info.
7135 (ipa_print_all_params_modified): Likewise.
7136 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7138 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
7141 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7143 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
7145 PR rtl-optimization/36753
7146 * fwprop.c (use_killed_between): Don't shortcut
7147 single-definition global registers.
7149 2008-07-16 Jan Hubicka <jh@suse.cz>
7151 * cgraph.h (varpool_empty_needed_queue): Declare.
7152 * cgraphunit.c (output_in_order): Mark all variables as needed;
7154 * varpool.c (varpool_assemble_node): Update debug queue.
7155 (varpool_assemble_pending_decls): Don't do it here.
7156 (varpool_empty_needed_queue): New function.
7158 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7160 * recog.c (peephole2_optimize): Fix formatting.
7162 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7164 * c-pch.c (get_ident): Avoid C++ keywords.
7165 * combine-stack-adj.c (single_set_for_csa): Likewise.
7166 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7167 output_asm_insn): Likewise.
7168 * reload.c (push_secondary_reload, find_reusable_reload,
7169 push_reload, combine_reloads, find_reloads,
7170 debug_reload_to_stream): Likewise.
7171 * reload.h (struct reload): Likewise.
7172 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7173 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7174 emit_output_reload_insns): Likewise.
7175 * targhooks.c (default_secondary_reload): Likewise.
7176 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7178 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7180 * recog.c (validate_change_1, validate_change,
7181 validate_unshare_change, validate_replace_rtx_1, struct
7182 funny_match, constrain_operands, peephole2_optimize): Avoid C++
7184 * reload.c (push_secondary_reload, secondary_reload_class,
7185 scratch_reload_class, find_valid_class, find_reusable_reload,
7186 push_reload, find_dummy_reload, find_reloads_address_1,
7187 find_reloads_address_part, find_equiv_reg): Likewise.
7188 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7189 choose_reload_regs): Likewise.
7190 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7192 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7193 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7194 * sched-rgn.c (concat_INSN_LIST): Likewise.
7195 * stor-layout.c (mode_for_size, mode_for_size_tree,
7196 smallest_mode_for_size): Likewise.
7198 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7200 * cfg.c (dump_reg_info): Avoid C++ keywords.
7201 * dwarf2asm.c (dw2_force_const_mem,
7202 dw2_asm_output_encoded_addr_rtx): Likewise.
7203 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7204 * expmed.c (expand_shift): Likewise.
7205 * global.c (find_reg): Likewise.
7206 * graph.c (draw_edge): Likewise.
7207 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7208 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7209 widen_clz, widen_bswap, expand_parity, expand_unop,
7210 emit_cmp_and_jump_insn_1): Likewise.
7211 * postreload.c (reload_cse_simplify_operands): Likewise.
7212 * ra.h (add_neighbor): Likewise.
7213 * reg-stack.c (remove_regno_note, change_stack): Likewise.
7214 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7215 record_reg_classes, copy_cost, record_address_regs,
7216 invalid_mode_change_p): Likewise.
7217 * regrename.c (regrename_optimize, scan_rtx_reg,
7218 dump_def_use_chain, find_oldest_value_reg,
7219 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7221 2008-07-16 David Edelsohn <edelsohn@gnu.org>
7223 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7224 MASK_POWERPC64 for power4 in previous commit.
7226 2008-07-16 Olivier Hainque <hainque@adacore.com>
7228 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7229 instead of bare conversion to cast const-ness away.
7231 2008-07-16 Anatoly Sokolov <aesok@post.ru>
7233 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7234 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7235 * config/xtensa/xtensa.c (xtensa_function_value): New function.
7236 (TARGET_FUNCTION_VALUE): Define.
7238 2008-07-16 David Edelsohn <edelsohn@gnu.org>
7240 * config/rs6000/rs6000.c (processor_target_table): Add
7241 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7243 2008-07-16 Joseph Myers <joseph@codesourcery.com>
7246 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7247 (m32c_legitimate_address_p): Handle "++rii" addresses created by
7248 m32c_legitimize_reload_address.
7250 2007-07-16 Rafael Ávila de Espíndola <espindola@google.com>
7252 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7253 DECL_IN_SYSTEM_HEADER in sync.
7255 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
7257 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7258 * tree-ssa-pre.c (pre_expr_eq): Ditto
7259 (get_constant_for_value_id): Take a type as an argument.
7260 (fully_constant_expression): Pass in type.
7261 (find_or_generate_expression): Short circuit constant case.
7262 (create_expression_by_pieces): Remove special casing of
7264 (do_regular_insertion): Short circuit constant case.
7265 (do_partial_partial_insertion): Ditto.
7267 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7270 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7272 2008-07-15 Bob Wilson <bob.wilson@acm.org>
7274 * config/xtensa/libgcc-xtensa.ver: New file.
7275 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7277 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7279 * df-problems.c (df_set_note): Avoid C++ keywords.
7280 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7281 * dse.c (record_store, remove_useless_values): Likewise.
7282 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7283 gen_reg_rtx_offset, operand_subword, change_address_1,
7284 change_address, adjust_address_1, offset_address,
7285 widen_memory_access, emit_copy_of_insn_after): Likewise.
7286 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7287 * fwprop.c (should_replace_address, propagate_rtx_1,
7288 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7290 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7291 gcse_emit_move_after, update_ld_motion_stores): Likewise.
7292 * lcm.c (compute_insert_delete, pre_edge_lcm,
7293 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7294 * lower-subreg.c (resolve_reg_notes): Likewise.
7295 * mode-switching.c (optimize_mode_switching): Likewise.
7297 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7299 * bt-load.c (add_btr_def, migrate_btr_def,
7300 branch_target_load_optimize): Avoid C++ keywords.
7301 * caller-save.c (insert_restore, insert_save, insert_one_insn):
7303 * combine.c (subst, simplify_set, make_extraction,
7304 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7305 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7306 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7308 2008-07-15 Richard Guenther <rguenther@suse.de>
7311 * c-common.c (strict_aliasing_warning): Do not warn for
7312 TYPE_REF_CAN_ALIAS_ALL pointers.
7313 (c_common_get_alias_set): may_alias types are not special.
7314 * tree.c (build_pointer_type_for_mode): Look up the may_alias
7315 attribute and set can_ref_all accordingly.
7316 (build_reference_type_for_mode): Likewise.
7317 * doc/extend.texi (may_alias): Clarify.
7319 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7322 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7323 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7325 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7328 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7329 gcc_assert, instead call output_operand_lossage.
7331 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
7333 * builtins.c (std_canonical_va_list): Treat structure based
7336 2008-07-15 Ben Elliston <bje@au.ibm.com>
7338 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7340 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
7342 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7345 2008-07-14 Jan Hubicka <jh@suse.cz>
7347 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7348 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7349 fix predicates and constraints.
7350 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7351 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7353 2008-07-14 Doug Kwan <dougkwan@google.com>
7355 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7356 additional option file arm/eabi.opt.
7357 * config/arm/eabi.h (File): New configuration file for EABI targets.
7358 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7359 SUBSUBTARGET_EXTRA_SPECS.
7360 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7361 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7362 from STARTFILE_SPEC so that it can be referenced in an override.
7363 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7364 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7365 can be referenced in an override.
7366 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7367 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7368 so that it can be referenced in an override.
7369 (LINK_SPEC): Use BPABI_LINK_SPEC.
7370 * config/arm/eabi.opt (File): New.
7372 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7374 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7375 (FIXED_VALUE_H): New variable.
7376 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7377 input.h, fixed-value.h.
7378 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7379 (BASIC_BLOCK_H): Use $(BITMAP_H).
7380 (FUNCTION_H): Add varray.h.
7381 (IPA_REFERENCE_H): Use $(BITMAP_H).
7382 (CGRAPH_H): Add $(BASIC_BLOCK_H).
7383 (DF_H): Use $(BITMAP_H).
7384 (GGC_H): Add statistics.h.
7386 (INSN_ATTR_H): Use it.
7387 (SYSTEM_H): Add safe-ctype.h, filenames.h.
7389 (SYMTAB_H): Add $(OBSTACK_H).
7390 (CPP_INTERNAL_H): New.
7391 (TREE_DUMP_H): Add tree-pass.h.
7392 (TREE_FLOW_H): Use $(BITMAP_H)
7393 (PRETTY_PRINT_H): Use $(INPUT_H).
7394 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7397 (many object files): Fix lots of header dependencies throughout.
7399 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7401 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7403 (s-gtyp-input): Use them to write tmp-gi.list.
7404 (echo_to_gi.list): Remove.
7406 2008-07-14 Richard Guenther <rguenther@suse.de>
7408 * tree-ssa-sccvn.c (pre_info): Remove.
7409 (switch_to_PRE_table): Likewise.
7410 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
7411 (set_hashtable_value_ids): Do not create value-ids for the
7413 (run_scc_vn): Remove double test. Remove bogus special-case
7414 in value-number printing.
7415 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7416 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7418 * tree-flow-inline.h (get_value_handle): Remove.
7419 * tree-flow.h (get_value_handle): Remove.
7421 2008-07-14 Martin Jambor <mjambor@suse.cz>
7423 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7424 in which we generate arithmetics is not a subrange.
7426 2008-07-14 Martin Jambor <mjambor@suse.cz>
7428 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7430 2008-07-14 Richard Guenther <rguenther@suse.de>
7432 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7434 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
7437 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7438 reload for symbol refs moved to r0 with -fPIC.
7439 (legitimize_pic_address): Use the target register as temporary
7441 (emit_symbolic_move): Adjust comment.
7442 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7445 2008-07-14 Ben Elliston <bje@au.ibm.com>
7447 * c-common.h (C_CPP_HASHNODE): New macro.
7448 * coretypes.h (struct cpp_token): Forward declare.
7449 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7450 the context-sensitive keyword method.
7451 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7452 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7453 expand_bool_pixel): New.
7454 (altivec_categorize_keyword): New function.
7455 (init_vector_keywords): New function.
7456 (rs6000_macro_to_expand): Likewise.
7457 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7458 compiling an ISO C dialect.
7460 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
7462 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7463 (create_expression_by_pieces): Fix typo.
7464 (do_regular_insertion): Use debug counter here too.
7466 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
7469 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7470 CONST_OK_FOR_LETTER_P. All port-local users changed.
7471 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7472 implement Kp matching power-of-two.
7473 (CONSTRAINT_LEN): Define to match.
7474 * config/cris/cris.md: Replace all use of constraint K with Kc.
7475 ("*btst*): Use Kp for operand 0 of last alternative.
7477 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7480 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
7483 2008-07-13 Jan Hubicka <jh@suse.cz>
7485 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
7488 2008-07-13 Richard Guenther <rguenther@suse.de>
7491 * langhooks.c (lhd_print_error_function): Deal with recursive
7494 2008-07-12 Jan Hubicka <jh@suse.cz>
7496 * cgraph.c (assembler_name_hash): New static var.
7497 (hash_node_by_assembler_name, eq_assembler_name): New.
7498 (cgraph_node_for_asm): Use hashtable.
7499 (cgraph_remove_node): Maintain hashtable.
7500 (change_decl_assembler_name): Sanity check that names are not changing
7501 after aliasing was processed.
7502 * cgraph.h (varpoon_node): Add next GGC marker.
7503 * tree.c (decl_assembler_name_equal): Constify.
7504 (decl_assembler_name_hash): New.
7505 * tree.h (decl_assembler_name_equal): Constify.
7506 (decl_assembler_name_hash): Update.
7508 2008-07-12 David Daney <ddaney@avtrex.com>
7510 * config/mips/driver-native.c (host_detect_local_cpu): Handle
7513 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
7515 * doc/md.texi: Document the MIPS "v" constraint.
7516 * config/mips/mips.h (reg_class): Revert last change.
7517 (REG_CLASS_NAMES): Likewise.
7518 (REG_CLASS_CONTENTS): Likewise.
7519 * config/mips/mips.c (mips_regno_to_class): Likewise.
7520 * config/mips/constraints.md (v): Likewise, but add documentation.
7521 Add a comment to say that this constraint should not be used in
7524 2008-07-11 DJ Delorie <dj@redhat.com>
7526 * config/h8300/h8300.md (length): Fix branch offset limit.
7528 2008-07-11 Anatoly Sokolov <aesok@post.ru>
7530 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
7531 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
7532 (avr_hard_regno_scratch_ok): New function.
7533 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7534 * config/avr/avr.md (all peepholes that request a scratch register):
7535 Remove avr_peep2_scratch_safe use.
7537 2008-07-11 Tom Tromey <tromey@redhat.com>
7538 Ian Lance Taylor <iant@google.com>
7540 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
7541 (struct c_common_resword): Define.
7542 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
7543 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
7544 (c_common_reswords, num_c_common_reswords): Declare.
7545 * c-common.c (c_common_reswords): New global const array.
7546 (num_c_common_reswords): New const int.
7547 * c-parser.c (struct resword, reswords): Don't define.
7548 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
7549 (c_parse_init): Clarify mask code. Use c_common_reswords rather
7550 than reswords. If warning about C++ keywords, give them a special
7552 (c_lex_one_token): Warn about C++ keywords. Call
7553 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
7554 (c_parser_external_declaration): Look for RID_xxx rather than
7555 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
7556 (c_parser_statement_after_labels): Likewise.
7557 (c_parser_objc_class_instance_variables): Likewise.
7558 (c_parser_objc_class_declaration): Likewise.
7559 (c_parser_objc_try_catch_statement): Likewise.
7560 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
7561 (declspecs_add_type): Likewise.
7563 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
7565 * ggc-page.c (alloc_page):
7566 Substituting xmalloc, xcalloc with
7567 XNEWVEC and XCNEWVAR macros which add the
7570 2008-07-11 Richard Guenther <rguenther@suse.de>
7572 PR tree-optimization/36765
7573 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
7574 aliases from HEAP vars to SMTs.
7576 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7578 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
7579 * configure.ac (loose_warn): Move -Wc++-compat from here...
7580 (strict_warn): ...to here.
7581 * configure: Regenerate.
7583 2008-07-10 Joseph Myers <joseph@codesourcery.com>
7585 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
7586 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
7587 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
7588 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
7589 excluding more specific h8300-*-* and sh-*-* targets.
7591 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
7593 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
7595 (execute_pre): Call loop_optimizer_finalize in early exit.
7597 2008-07-10 Jakub Jelinek <jakub@redhat.com>
7600 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
7601 uids in the bitmap, not just VAR_DECL uids.
7603 PR rtl-optimization/36419
7604 * combine-stack-adj.c (adjust_frame_related_expr): New function.
7605 (combine_stack_adjustments_for_block): Call it if needed. Delete
7607 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
7608 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
7609 prologue sp adjustment.
7611 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
7614 * opts.c (print_ignored_options): Report postponed diagnostics for
7615 unknown -Wno-* options as warnings, not errors.
7616 (postpone_unknown_option_error): Renamed to...
7617 (postpone_unknown_option_warning): ... this.
7619 2008-07-09 Doug Kwan <dougkwan@google.com>
7622 2008-07-08 Doug Kwan <dougkwan@google.com>
7624 * config/arm/arm.opt (mandroid): New option.
7625 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7626 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7628 (CC1PLUS_SPEC): Same.
7630 (STARTFILE_SPEC): Same.
7631 (ENDFILE_SPEC): Same.
7632 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7635 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
7638 * config/mips/mips.h (reg_class): Remove V1_REG.
7639 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7640 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
7642 (mips_get_tp): New function.
7643 (mips_legitimize_tls_address): Use it.
7644 * config/mips/constraints.md (v): Delete.
7645 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
7646 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
7647 After reload, split into a move and ...
7648 (*tls_get_tp_<mode>_split): ...this new instruction.
7650 2008-07-09 David Daney <ddaney@avtrex.com>
7652 * config/mips/driver-native.c: Include coretypes.h and tm.h.
7654 2008-07-09 Jakub Jelinek <jakub@redhat.com>
7656 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
7657 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7659 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7660 htab_delete should be called. Don't free c.
7661 (lookup_tmp_var): Create temp_htab lazily.
7662 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
7663 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
7665 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
7666 lower_omp_ordered, lower_omp_critical, lower_omp_for,
7667 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
7668 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
7669 * tree-sra.c (generate_element_init): Likewise.
7670 * tree-mudflap.c (execute_mudflap_function_ops,
7671 execute_mudflap_function_decls): Likewise.
7672 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
7673 * tree-gimple.h (struct gimplify_ctx): New type.
7674 (push_gimplify_context): Adjust prototype.
7676 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
7678 * tree-ssa-pre.c (phi_translate_1): Update placement of
7681 2008-07-09 Anatoly Sokolov <aesok@post.ru>
7683 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
7684 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
7685 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
7686 * targhooks.c (default_hard_regno_scratch_ok): New function.
7687 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
7688 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
7689 * recog.c: Include "target.h".
7690 (peep2_find_free_register): Add check for global regs. Add target
7692 * Makefile.in (recog.o): Depend on target.h.
7694 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
7696 * config/sh/sh.c (sh_canonical_va_list_type): New.
7697 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
7699 2008-07-09 Raksit Ashok <raksit@google.com>
7701 * doc/invoke.texi (Option Summary): Mention new option
7702 -Wdisallowed-function-list=...
7703 (Warning Options): Document -Wdisallowed-function-list=...
7704 * common.opt (Wdisallowed-function-list=): New flag.
7705 * flags.h (warn_disallowed_functions): External definition of new
7706 boolean warning flag.
7707 (warn_if_disallowed_function_p): Declare new function.
7708 * opts.c (warning_disallowed_functions): New static variable.
7709 (warn_disallowed_functions): New boolean warning flag.
7710 (warn_if_disallowed_function_p): New function.
7711 (add_comma_separated_to_vector): Rename
7712 add_instrument_functions_exclude_list to this.
7713 (common_handle_option): Handle new option. Rename calls to
7714 add_instrument_functions_exclude_list into calls to
7715 add_comma_separated_to_vector.
7716 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
7717 based on flag warn_disallowed_functions.
7719 2008-07-09 Christian Bruel <christian.bruel@st.com>
7721 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
7722 instead of get_attr_length.
7724 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7726 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
7728 * genemit.c (gen_insn): Likewise.
7729 * gengtype.c (note_def_vec): Likewise.
7730 * gengtype.h (note_def_vec): Likewise.
7731 * genoutput.c (struct data, output_insn_data, process_template,
7732 gen_expand, gen_split, note_constraint): Likewise.
7733 * genrecog.c (new_decision, add_to_sequence, factor_tests,
7734 make_insn_sequence): Likewise.
7735 * gensupport.c (record_insn_name): Likewise.
7737 2008-07-08 Doug Kwan <dougkwan@google.com>
7739 * config/arm/arm.opt (mandroid): New option.
7740 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7741 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7743 (CC1PLUS_SPEC): Same.
7745 (STARTFILE_SPEC): Same.
7746 (ENDFILE_SPEC): Same.
7747 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7750 2008-07-08 Raksit Ashok <raksit@google.com>
7752 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
7753 (set_storage_via_setmem): Fix expected_align parameter.
7754 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
7755 missing from the list.
7756 * doc/md.texi (movmem): Explicitly state that expected alignment is
7757 to be expressed in bytes.
7758 (setmem): Explicitly state that expected alignment is to be expressed
7761 2008-07-08 Joseph Myers <joseph@codesourcery.com>
7763 * reload.c (find_reloads_subreg_address): Do not require validity
7764 of address in original mode before reloading address.
7766 2008-07-07 Tianwei Sheng <tianweis@google.com>
7768 * df-core.c (df_remove_problem): Adjust the access to avoid out of
7769 bounds array access.
7771 2008-07-08 Jakub Jelinek <jakub@redhat.com>
7773 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
7775 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
7777 Fix PR tree-optimization/23455
7778 Fix PR tree-optimization/35286
7779 Fix PR tree-optimization/35287
7780 * Makefile.in (OBJS-common): Remove tree-vn.o.
7781 (tree-vn.o): Remove.
7782 * dbgcnt.def: Add treepre_insert debug counter.
7783 * gcc/tree-flow.h (add_to_value): Updated for other changes.
7784 (debug_value_expressions): Ditto.
7785 (print_value_expressions): Ditto.
7786 * tree-pretty-print.c (dump_generic_node): Updated for
7787 VALUE_HANDLE removal.
7788 * tree-ssa-dom.c (record_equality): Ditto.
7789 (cprop_operand): Ditto.
7790 (lookup_avail_expr): Ditto.
7791 * tree-ssa-threadedge.c
7792 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
7793 (simplify_control_stmt_condition): Ditto.
7794 * tree.c (tree_code_size): Ditto.
7795 (tree_node_structure): Ditto.
7796 (iterative_hash_expr): Ditto.
7798 * tree.h (VALUE_HANDLE_ID): Ditto.
7799 (VALUE_HANDLE_EXPR_SET): Ditto.
7800 (struct tree_value_handle): Ditto.
7801 (union tree_node): Ditto.
7802 * treestruct.def: Ditto.
7803 * tree-vn.c: Removed.
7804 * tree-ssa-pre.c: Rewritten entirely.
7805 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
7806 (constant_value_ids): Ditto.
7807 (vn_nary_op_t): Moved to header.
7809 (vn_reference_op_t): Ditto
7810 (vn_reference_t): Ditto.
7811 (next_value_id): New variable.
7812 (VN_INFO): Add an assert.
7813 (vn_constant_eq): New function.
7814 (vn_constant_hash): Ditto.
7815 (get_or_alloc_constant_value_id): Ditto.
7816 (value_id_constant_p): Ditto.
7817 (vn_reference_compute_hash): De-staticify.
7818 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
7819 Disable some code with a FIXME. Remove VALUE_HANDLE use.
7820 (valueize_refs): Update opcode if it changes from ssa name to constant.
7821 (vn_reference_lookup_1): Add new argument.
7822 (vn_reference_lookup): Ditto.
7823 (vn_reference_lookup_pieces): New function.
7824 (vn_reference_insert): Add return type. Modify to deal with value ids.
7825 (vn_reference_insert_pieces): New function.
7826 (vn_nary_op_compute_hash): De-staticify.
7827 (vn_nary_op_eq): Ditto.
7828 (vn_nary_op_lookup_pieces): New function.
7829 (vn_nary_op_lookup): Add new argument.
7830 (vn_nary_op_insert_pieces): New function.
7831 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
7832 (vn_phi_insert): Ditto.
7833 (visit_unary_op): Update for callee changes.
7834 (visit_binary_op): Ditto.
7835 (visit_reference_op_load): Ditto.
7836 (visit_reference_op_store): Ditto.
7837 (init_scc_vn): Init next_value_id, constant_to_value_id and
7839 (free_scc_vn): Free them.
7840 (set_hashtable_value_ids): New function.
7841 (run_scc_vn): Use it.
7842 (get_max_value_id): New function.
7843 (get_next_value_id): Ditto.
7844 (expressions_equal_p): Moved from tree-vn.c
7845 (sort_vuses): Ditto.
7846 (sort_vuses_heap): Ditto.
7847 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
7849 * tree.c (iterative_hash_hashval_t): Made non-static
7850 * tree.h (iterative_hash_hashval_t): Declare it.
7852 2008-07-08 Martin Jambor <mjambor@suse.cz>
7854 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
7855 instead of ipa_create_node_params.
7856 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
7857 ipa_check_create_edge_args, free them with
7858 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
7860 * ipa-prop.c: Include flags.h and tree-inline.h.
7861 (ipa_node_params_vector): New variable.
7862 (ipa_edge_args_vector): New variable.
7863 (edge_removal_hook_holder): New variable.
7864 (node_removal_hook_holder): New variable.
7865 (edge_duplication_hook_holder): New variable.
7866 (node_duplication_hook_holder): New variable.
7867 (ipa_detect_param_modifications): Check for presence of modified flags.
7868 (ipa_compute_jump_functions): Check for presence of jump functions.
7869 (ipa_free_edge_args_substructures): New function.
7870 (ipa_create_node_params): Removed.
7871 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
7872 (ipa_free_node_params_substructures): New function.
7873 (ipa_free_all_node_params): Changed to deallocate the on-the-side
7875 (ipa_edge_removal_hook): New function.
7876 (ipa_node_removal_hook): New function.
7877 (duplicate_array): New function.
7878 (ipa_edge_duplication_hook): New function.
7879 (ipa_node_duplication_hook): New function.
7880 (ipa_register_cgraph_hooks): New function.
7881 (ipa_unregister_cgraph_hooks): New function.
7882 (free_all_ipa_structures_after_ipa_cp): New function.
7884 * ipa-prop.h: Include vec.h.
7885 (ipa_node_params_t): New typedef with vector types for it.
7886 (ipa_edge_args_t): New typedef with vector types for it.
7887 (IPA_NODE_REF): Changed to access an on-the-side vector.
7888 (IPA_EDGE_REF): Changed to access an on-the-side vector.
7889 (ipa_check_create_node_params): New function.
7890 (ipa_check_create_edge_args): New function.
7892 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
7895 2008-07-07 Tom Tromey <tromey@redhat.com>
7897 * configure, config.in: Rebuilt.
7898 * configure.ac: Don't check for scandir or alphasort.
7900 2008-07-07 Joseph Myers <joseph@codesourcery.com>
7902 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
7903 types immediately after creating them.
7905 2008-07-07 Joseph Myers <joseph@codesourcery.com>
7907 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
7909 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
7911 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
7912 dump_constraint_graph.
7913 (dump_constraint_edge): New function.
7914 (dump_constraint_graph): New function.
7915 (debug_constraint_graph): New function.
7916 (dump_constraint): Removed useless comparison.
7917 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
7918 (dump_constraint_graph): Declare.
7919 (debug_constraint_graph): Declare.
7920 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
7922 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
7924 * config/i386/i386.c (is_va_list_char_pointer): New.
7925 (ix86_va_start): Replace compare with ms_va_list_type_node
7926 by is_va_list_char_pointer.
7927 (ix86_gimplify_va_arg): Likewise.
7929 2008-07-07 Martin Jambor <mjambor@suse.cz>
7931 * cgraph.c (cgraph_edge_max_uid): New variable.
7932 (struct cgraph_edge_hook_list): New type.
7933 (struct cgraph_node_hook_list): New type.
7934 (struct cgraph_2edge_hook_list): New type.
7935 (struct cgraph_2node_hook_list): New type.
7936 (first_cgraph_edge_removal_hook): New variable.
7937 (first_cgraph_node_removal_hook): New variable.
7938 (first_cgraph_edge_duplicated_hook): New variable.
7939 (first_cgraph_node_duplicated_hook): New variable.
7940 (cgraph_add_edge_removal_hook): New function.
7941 (cgraph_remove_edge_removal_hook): New function.
7942 (cgraph_call_edge_removal_hooks): New function.
7943 (cgraph_add_node_removal_hook): New function.
7944 (cgraph_remove_node_removal_hook): New function.
7945 (cgraph_call_node_removal_hooks): New function.
7946 (cgraph_add_edge_duplication_hook): New function.
7947 (cgraph_remove_edge_duplication_hook): New function.
7948 (cgraph_call_edge_duplication_hooks): New function.
7949 (cgraph_add_node_duplication_hook): New function.
7950 (cgraph_remove_node_duplication_hook): New function.
7951 (cgraph_call_node_duplication_hooks): New function.
7952 (cgraph_create_edge): Assign to edge uid.
7953 (cgraph_remove_edge): Call edge removal hooks.
7954 (cgraph_node_remove_callees): Call edge removal hooks.
7955 (cgraph_node_remove_callers): Call edge removal hooks.
7956 (cgraph_remove_node): Call node removal hooks.
7957 (cgraph_clone_edge): Call edge duplication hooks.
7958 (cgraph_clone_node): Call node duplication hooks.
7960 * cgraph.h (cgraph_edge): New field uid.
7961 (cgraph_edge_hook): New type.
7962 (cgraph_node_hook): New type.
7963 (cgraph_2edge_hook): New type.
7964 (cgraph_2node_hook): New type.
7966 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
7968 * config.in: Regenerate.
7970 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
7972 * gcc.c (print_sysroot): New.
7973 (option_map, display_help, process_command): Handle the
7974 -print-sysroot option.
7975 (main): Print the sysroot if requested.
7976 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
7978 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7981 * unwind-pe.h (size_of_encoded_value): add attribute unused.
7983 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
7985 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
7986 (assign_parm_setup_block_p): Also check mode of entry_parm.
7988 2008-07-07 Richard Guenther <rguenther@suse.de>
7990 * tree-ssa-structalias.h (set_used_smts): Remove.
7991 * tree-ssa-structalias.c (used_smts): Likewise.
7992 (set_used_smts): Likewise.
7993 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
7994 call to set_used_smts.
7996 2008-07-07 Richard Guenther <rguenther@suse.de>
7998 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
7999 (new_var_info): Set it to false.
8000 (solution_set_add): Correctly handle pointers outside a var and
8002 (type_safe): Treat variables with is_full_var properly.
8003 (do_sd_constraint): Likewise.
8004 (do_ds_constraint): Likewise.
8005 (process_constraint): Remove zeroing offset for !use_field_sensitive.
8006 (get_constraint_for_ptr_offset): New function.
8007 (get_constraint_for_component_ref): For addresses at least include
8008 the last field of the variable. Handle is_full_vars properly.
8009 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8010 (handle_ptr_arith): Remove.
8011 (find_func_aliases): Simplify assignment handling.
8012 (create_function_info_for): For parameter and result varinfos set
8014 (create_variable_info_for): Set is_full_var flag whenever we
8015 just created a single varinfo for a decl.
8016 (init_alias_vars): Initialize use_field_sensitive from
8017 max-fields-for-field-sensitive parameter.
8019 2008-07-07 Richard Guenther <rguenther@suse.de>
8021 PR tree-optimization/36713
8022 * tree-flow-inline.h (is_call_used): New function.
8023 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8024 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8025 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8027 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8029 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8031 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
8033 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8035 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8036 Nathan Sidwell <nathan@codesourcery.com>
8038 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
8039 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8041 * config/m68k/t-linux: New.
8042 * doc/install.texi: Document m68k-*-linux is now multilibbed by
8045 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
8047 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8048 * config/m68k/m68k-devices.def: Remove multilibs that only differ
8051 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8053 * gcc.c (execute): Fix -Wc++-compat warning.
8055 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
8058 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8059 constant for little endian.
8061 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
8063 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8064 mips_base_mips16 instead of TARGET_MIPS16.
8065 (mips_base_mips16): Declare.
8066 * config/mips/mips.c (mips_base_mips16): Make global.
8067 (was_mips16_p): Remove GTY marker.
8068 (was_mips16_pch_p): New variable.
8069 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8070 (mips_override_options): Force to non-MIPS16 mode initially.
8071 Do not complain about MIPS16 PIC incompatibilities here.
8072 Only allow -mgpopt if -mexplicit-relocs is in force for
8075 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
8077 * configure.ac: Check for caddr_t, define to char * if not defined.
8078 * configure: Regenerate.
8079 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8080 (mmap_gt_pch_use_address): Likewise.
8081 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8083 2008-07-06 Richard Guenther <rguenther@suse.de>
8085 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8086 (new_var_info): Deal with it.
8087 (solution_set_add): Likewise.
8088 (bitpos_of_field): Make signed, fix.
8089 (struct fieldoff): Remove type and decl fields. Make size field
8090 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
8092 (fieldoff_compare): Deal with it.
8093 (push_fields_onto_fieldstack): Remove has_union argument, glob
8094 adjacent non-pointer fields together.
8095 (create_function_info_for): Do not set has_union.
8096 (create_variable_info_for): Simplify.
8098 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
8100 * config.gcc (extra_headers): Add cross-stdarg.h for target
8101 x86_64-*-* and i?86-*-*.
8102 * config/i386/cross-stdarg.h: New.
8103 * builtins.c (std_fn_abi_va_list): New.
8104 (std_canonical_va_list_type): New.
8105 (stabilize_va_list): Replace va_list_type_node use by
8106 mtarget.canonical_va_list_type.
8107 (gimplify_va_arg_expr): Likewise.
8108 (expand_builtin_va_copy): Replace va_list_type_node use by
8109 mtarget.fn_abi_va_list.
8110 * tree-sra.c (is_va_list_type): New helper.
8111 (decl_can_be_decomposed_p): Replace
8112 va_list_type_node use by is_va_list_type.
8113 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8114 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8115 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8116 * config/i386/i386-protos.h (ix86_get_valist_type): New.
8117 (ix86_enum_va_list): New.
8118 * config/i386/i386.c (sysv_va_list_type_node): New.
8119 (ms_va_list_type_node): New.
8120 (ix86_function_type_abi): Remove sorry.
8121 (ix86_build_builtin_va_list_abi): New.
8122 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8124 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8125 (ix86_init_builtins_va_builtins_abi): New.
8126 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8128 (ix86_handle_abi_attribute): New.
8129 (attribute_spec): Add sysv_abi and ms_abi.
8130 (ix86_fn_abi_va_list): New.
8131 (ix86_canonical_va_list_type): New.
8132 (ix86_enum_va_list): New.
8133 (TARGET_FN_ABI_VA_LIST): New.
8134 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8135 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8136 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8137 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8138 (TARGET_ENUM_VA_LIST): New.
8139 * expr.h (std_fn_abi_va_list): New.
8140 (std_canonical_va_list_type): New.
8141 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8142 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8143 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8144 TARGET_CANONICAL_VA_LIST_TYPE.
8145 * target.h (struct gcc_target): Add fn_abi_va_list hook
8146 and canonical_va_list_type hook.
8148 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8150 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8151 integral and pointer types.
8153 2008-07-04 Roger Sayle <roger@eyesopen.com>
8155 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8156 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8158 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
8161 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8163 2008-07-04 Jakub Jelinek <jakub@redhat.com>
8165 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8166 build_gimple_modify_stmt.
8167 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
8168 gimple operand. Use fold_build* instead of build*.
8170 2008-07-04 Richard Guenther <rguenther@suse.de>
8172 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8173 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8174 properly to compute the reachability set if we do field-sensitive PTA.
8175 * invoke.texi (max-fields-for-field-sensitive): Document default.
8176 * opts.c (decode_options): Set max-fields-for-field-sensitive to
8177 100 for optimize >= 2.
8179 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8181 * ggc-zone.c (lookup_page_table_if_allocated,
8182 set_page_table_entry, zone_find_object_size, alloc_small_page,
8183 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8184 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8185 -Wc++-compat and/or -Wcast-qual warnings.
8187 2008-07-04 Alan Modra <amodra@bigpond.net.au>
8190 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8191 pic_offset_table_rtx to be marked as used here.
8192 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8193 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8194 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8195 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8198 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8200 * alloc-pool.c (hash_descriptor, eq_descriptor,
8201 alloc_pool_descriptor): Fix -Wc++-compat warnings.
8202 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8204 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8205 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8206 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8207 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8210 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
8212 * tree-flow.h (loop_only_exit_p): Declare.
8213 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8214 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8215 the number of iterations if it is constant. Otherwise, if this is the
8216 only possible exit of the loop, use the conservative estimate on the
8217 number of iterations of the entire loop if available.
8219 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
8221 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8222 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8223 Add synchronization functions.
8224 * config/sync.c: New file.
8225 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8226 (LIBGCC_SYNC_CFLAGS): Likewise.
8228 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
8231 * config/i386/i386.md (mode): Add TF to "mode" attribute.
8232 (*pushtf_sse): New insn pattern.
8233 (pushtf splitters): New splitters.
8235 2008-07-03 Michael Meissner <gnu@the-meissners.org>
8238 * predict.c (build_predict_expr): Use void_type_node for the tree
8239 type, instead of NULL_TREE.
8241 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
8243 * config/i386/i386.c (contains_aligned_value_p): Return true
8245 (ix86_data_alignment): Align TCmode to 128bits.
8246 (ix86_local_alignment): Likewise.
8248 2008-07-03 Andrew Haley <aph@redhat.com>
8251 * vec.h (VEC_TA): New.
8252 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8253 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8254 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8255 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8256 (C_COMMON_FIXED_TYPES): Remove first arg.
8257 (C_COMMON_FIXED_MODE_TYPES): Likewise.
8258 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8259 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8260 not to use empty macro arguments.
8262 2008-07-02 Joseph Myers <joseph@codesourcery.com>
8264 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8265 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8266 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8267 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8268 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8269 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8270 config/ia64/crtn.asm, config/m68hc11/larith.asm,
8271 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8272 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8273 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8274 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8275 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8276 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8277 config/rs6000/e500crtres64gpr.asm,
8278 config/rs6000/e500crtres64gprctr.asm,
8279 config/rs6000/e500crtrest32gpr.asm,
8280 config/rs6000/e500crtrest64gpr.asm,
8281 config/rs6000/e500crtresx32gpr.asm,
8282 config/rs6000/e500crtresx64gpr.asm,
8283 config/rs6000/e500crtsav32gpr.asm,
8284 config/rs6000/e500crtsav64gpr.asm,
8285 config/rs6000/e500crtsav64gprctr.asm,
8286 config/rs6000/e500crtsavg32gpr.asm,
8287 config/rs6000/e500crtsavg64gpr.asm,
8288 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8289 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8290 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8291 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8292 config/sparc/sol2-cn.asm: Remove .file directives.
8294 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
8296 * resource.c (mark_referenced_resources): Look inside
8297 UNSPEC_VOLATILEs and ASM_INPUTs.
8299 2008-07-02 Ian Lance Taylor <iant@google.com>
8301 * rtlanal.c (add_reg_note): New function.
8302 * rtl.h (add_reg_note): Declare.
8303 * auto-inc-dec.c (attempt_change): Use add_reg_note.
8304 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8305 * builtins.c (expand_builtin_longjmp): Likewise.
8306 (expand_builtin_nonlocal_goto): Likewise.
8307 * calls.c (emit_call_1, expand_call): Likewise.
8308 * cfgexpand.c (add_reg_br_prob_note): Likewise.
8309 * cfglayout.c (fixup_reorder_chain): Likewise.
8310 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8311 (commit_one_edge_insertion): Likewise.
8312 * combine.c (move_deaths, distribute_notes): Likewise.
8313 * df-problems.c (df_set_note): Likewise.
8314 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8315 (set_unique_reg_note): Likewise.
8316 (emit_copy_of_insn_after): Likewise.
8317 * expr.c (expand_expr_real): Likewise.
8318 * gcse.c (add_label_notes): Likewise.
8319 * haifa-sched.c (create_check_block_twin): Likewise.
8320 * jump.c (mark_jump_label_1): Likewise.
8321 * loop-doloop.c (add_test, doloop_modify): Likewise.
8322 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8323 * lower-subreg.c (move_eh_region_note): Likewise.
8324 * optabs.c (emit_libcall_block): Likewise.
8325 * predict.c (predict_insn): Likewise.
8326 (combine_predictions_for_insn): Likewise.
8327 * recog.c (peephole2_optimize): Likewise.
8328 * regmove.c (try_auto_increment): Likewise.
8329 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8330 * reload.c (find_reloads): Likewise.
8331 * reload1.c (fixup_eh_region_note): Likewise.
8332 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8333 * reorg.c (delete_prior_computation): Likewise.
8334 (delete_computation, dbr_schedule): Likewise.
8335 * config/pa/pa.c (legitimize_pic_address): Likewise.
8336 * config/sh/sh.c (sh_reorg): Likewise.
8338 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8341 * config/libgcc-glibc.ver: Add %exclude.
8342 * config/m32r/libgcc-glibc.ver: Likwise.
8343 * config/s390/libgcc-glibc.ver: Likwise.
8344 * config/sh/libgcc-glibc.ver: Likwise.
8345 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8347 * config/i386/libgcc-glibc.ver: New.
8349 * config/i386/libgcc-x86_64-glibc.ver: Removed.
8351 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8353 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8354 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8355 i[34567]86-*-linux*, x86_64-*-linux*. Add
8356 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8357 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8358 x86_64-*-linux*. Add i386/t-linux to tmake_file for
8359 i[34567]86-*-linux*, x86_64-*-linux*.
8361 * libgcc-std.ver: Add empty GCC_4.4.0.
8363 * mkmap-symver.awk: Support multiple versions per symbol.
8365 * config/i386/i386.c (ix86_init_builtins): Always define
8366 __builtin_fabsq and __builtin_copysignq with fallbacks.
8367 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8368 and __builtin_copysignq if SSE2 isn't available.
8370 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8371 (LIBGCC2_TF_CEXT): Likwise.
8374 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8376 * config/i386/sfp-machine.h: Moved to libgcc.
8378 * config/i386/sfp-machine.h: New.
8379 * config/i386/t-linux: Likwise.
8381 * config/i386/t-darwin: Remove softfp_wrap_start and
8383 * config/i386/t-darwin64: Likewise.
8385 * config/i386/t-fprules-softfp64: Renamed to ...
8386 * config/i386/t-fprules-softfp: This.
8388 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8389 and softfp_wrap_end.
8391 2008-07-02 Jason Merrill <jason@redhat.com>
8393 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8395 * tree.c (ctor_to_list): New fn.
8396 * tree.h: Declare it.
8397 (CONSTRUCTOR_ELT): New macro.
8398 (CONSTRUCTOR_NELTS): New macro.
8400 2008-07-02 Richard Guenther <rguenther@suse.de>
8402 * tree-ssa-structalias.c (struct variable_info): Reorder
8403 to fill padding on 64bit hosts. Make collapsed_to an int.
8404 (get_varinfo_fc): Deal with that.
8405 (new_var_info): Likewise.
8406 (collapse_rest_of_var): Likewise.
8408 2008-07-02 Joshua Sumali <jsumali@redhat.com>
8410 * doc/install.texi (--enable-java-home): Document.
8411 (--enable-aot-compile-rpm): Likewise.
8412 (--with-arch-directory): Likewise.
8413 (--with-os-directory): Likewise.
8414 (--with-origin-name): Likewise.
8415 (--with-arch-suffix): Likewise.
8416 (--with-jvm-root-dir): Likewise.
8417 (--with-jvm-jar-dir): Likewise.
8418 (--with-python-dir): Likewise.
8420 2008-07-02 Richard Guenther <rguenther@suse.de>
8422 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8423 from decls explicitly. Merge operand checking from tuples.
8425 2008-07-02 Martin Jambor <mjambor@suse.cz>
8427 * tree-switch-conversion.c: Included timevar.h which I forgot before.
8429 2008-07-02 Martin Jambor <mjambor@suse.cz>
8431 * tree-switch-conversion.c: Included timevar.h
8432 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8434 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8436 2008-07-02 Martin Jambor <mjambor@suse.cz>
8438 * tree-switch-conversion.c: Corrected various comments and
8440 (build_constructors): Fixed minor formatting mistakes.
8442 * invoke.texi (Optimize Options): Corrected the
8443 switch-conversion-max-branch-ratio parameter.
8445 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
8447 * final.c (asm_insn_count): Return zero for an empty asm body.
8449 2008-07-02 Richard Guenther <rguenther@suse.de>
8451 * bitmap.h (bitmap_set_bit): Return bool.
8452 (bitmap_clear_bit): Likewise.
8453 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
8454 write to the bitmap if it would.
8455 (bitmap_clear_bit): Likewise.
8456 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8457 bitmap_set_bit return value.
8458 (add_pred_graph_edge): Likewise.
8459 (add_graph_edge): Likewise.
8460 (do_sd_constraint): Likewise.
8461 (do_ds_constraint): Likewise.
8463 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8465 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8466 Fix -Wc++-compat and/or -Wcast-qual warnings.
8467 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8468 gen_regparm_prefix): Likewise.
8469 * vmsdbgout.c (write_modbeg, lookup_filename,
8470 vmsdbgout_source_line, vmsdbgout_init): Likewise.
8472 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
8474 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8475 defaults.h definition apply.
8477 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
8479 * function.c (assign_parm_remove_parallels): New.
8480 (assign_parm_setup_block_p): Do not return true for non-BLKmode
8482 (assign_parm_setup_block): Do not handle them.
8483 (assign_parm_setup_reg, assign_parm_setup_stack): Call
8484 assign_parm_remove_parallels.
8486 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
8488 * c-typeck.c (convert_for_assignment): Use
8489 vector_targets_convertible_p.
8490 * c-common.c (vector_targets_convertible_p): New.
8491 * c-common.h (vector_targets_convertible_p): New prototype.
8492 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8493 opaque_p_V2SI_type_node.
8495 2008-07-01 Steve Ellcey <sje@cup.hp.com>
8497 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8500 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
8502 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8503 TFmode constants via two element DImode vector for hosts with
8504 HOST_BITS_PER_WIDE_INT < 64.
8505 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8506 also for HOST_BITS_PER_WIDE_INT < 64.
8508 2008-07-01 Richard Guenther <rguenther@suse.de>
8510 PR tree-optimization/36666
8511 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8512 (get_constraint_exp_from_ssa_var): Split into ...
8513 (get_constraint_exp_for_temp): ... this ...
8514 (get_constraint_for_ssa_var): ... and that.
8515 Return constraint expressions for all touched sub-fields
8516 if the results address is not taken.
8517 (process_constraint): Remove assertion that aggregate
8518 assignments do not happen at this place.
8519 (get_constraint_for_component_ref): Add address_p argument.
8520 Return constraint expressions for all touched sub-fields
8521 if the results address is not taken.
8522 (do_deref): Use get_constraint_exp_for_temp.
8523 (get_constraint_for_1): Rename from ...
8524 (get_constraint_for): ... this. Add the old function as wrapper.
8525 (do_structure_copy): Use get_constraint_for_1.
8527 2008-07-01 Martin Jambor <mjambor@suse.cz>
8529 * Makefile.in (tree-switch-conversion.o): Add.
8530 (OBJS-common): Add tree-swtch-conversion.o.
8531 * passes.c (init_optimization_passes): Add pass_convert_switch.
8532 * tree-pass.h: (pass_convert_switch): Add.
8533 * tree-switch-conversion.c: New file.
8534 * gcc.dg/tree-ssa/cswtch.c: New testcase.
8535 * common.opt (ftree-cswtch): New option.
8536 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8537 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8538 * opts.c (decode_options): Set flag_tree_switch_conversion when
8539 optimization level is >= 2.
8540 * doc/invoke.texi (Optimize Options): Added description of
8541 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8543 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8545 * config/darwin-driver.c (darwin_default_min_version): Fix
8546 -Wc++-compat warnings.
8548 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
8550 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8553 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
8555 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8557 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
8559 PR rtl-optimization/34744
8560 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8561 (df_scan_free_internal): Free data structures not
8562 allocated in storage pools.
8563 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8564 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8565 df_scan_free_mws_vec.
8566 * dse.c (dse_step6): Free offset_map_p and offset_map_n
8569 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
8571 * config/i386/i386.c (contains_aligned_value_p): Return true
8573 (ix86_function_arg_boundary): Return its natural boundary
8575 (return_in_memory_32): Don't check TDmode.
8576 (ix86_split_to_parts): Support splitting into 4 parts and
8577 support TFmode for 32bit target.
8578 (ix86_split_long_move): Support splitting into 4 parts.
8579 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8581 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8582 (ix86_init_builtins): Here.
8583 (ix86_scalar_mode_supported_p): Always return true for TFmode.
8584 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8585 'q' and 'w', respectively.
8587 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8589 (movtf_internal): Likewise.
8590 (<code>tf2): Likewise.
8591 (*absnegtf2_sse): Likewise.
8592 (copysign<mode>3): Likewise.
8593 (copysign<mode>3_const): Likewise.
8594 (copysign<mode>3_var): Likewise.
8595 (define_split UNSPEC_COPYSIGN): Likewise.
8596 * config/i386/sse.md (*nandtf3): Likewise.
8597 (<code>tf3): Likewise.
8598 (*<code>tf3): Likewise.
8600 2008-06-30 Joey Ye <joey.ye@intel.com>
8601 H.J. Lu <hongjiu.lu@intel.com>
8603 * global.c (compute_regsets): Set frame_pointer_needed here.
8604 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8606 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8608 * doc/install.texi (specific): Expand Windows build notes.
8610 2008-06-30 Ira Rosen <irar@il.ibm.com>
8612 PR tree-optimization/36648
8613 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8614 number of prolog iterations by step. Fix the comment.
8616 2008-06-30 Richard Guenther <rguenther@suse.de>
8619 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8620 handle calls from ECF_MALLOC functions.
8621 (handle_pure_call): ECF_MALLOC functions do not return
8623 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8625 2008-06-29 Andreas Schwab <schwab@suse.de>
8627 * config/m68k/m68k.c (print_operand): Always print a float
8629 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8630 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8633 * config/rs6000/x-linux64: Remove never used file.
8635 2008-06-29 Richard Guenther <rguenther@suse.de>
8637 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8639 (struct alias_info): Move ...
8640 * tree-ssa-alias.c: ... here.
8641 (update_alias_info): Declare.
8642 (compute_may_aliases): Call it.
8643 (update_alias_info): New function.
8644 * tree-ssa-structalias.c (update_alias_info): Move ...
8645 * tree-ssa-alias.c (update_alias_info_1): ... here.
8646 * tree-ssa-structalias.c (process_constraint_1): Remove
8647 unused from_call argument. Rename to ...
8648 (process_constraint): ... this. Delete old wrapper.
8649 (make_constraint_to): Adjust callers.
8650 (handle_const_call): Likewise.
8651 (handle_pure_call): Likewise.
8652 (init_base_vars): Likewise.
8653 (handle_lhs_call): Likewise. Remove unnecessary constraint.
8654 (find_func_aliases): We don't need structure copies for
8656 (make_constraint_from_anything): Remove.
8657 (create_variable_info_for): For globals make constraints
8658 from escaped, not from anything.
8659 (compute_points_to_sets): Do not call update_alias_info.
8660 (ipa_pta_execute): Use make_constraint_from.
8662 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8664 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8665 (bitmap.o-warn, dominance.o-warn): New.
8666 * configure.ac (cxx_compat_warn): Delete.
8667 (loose_warn): Add -Wcast-qual and -Wc++-compat.
8668 * system.h: Remove #pragma diagnostic for -Wcast-qual and
8670 * configure: Regenerate.
8672 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8675 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8677 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8678 * df-scan.c (df_notes_rescan): Likewise.
8679 * ggc-page.c (set_page_table_entry): Likewise.
8680 * intl.c (gcc_gettext_width): Likewise.
8681 * varasm.c (get_unnamed_section, get_noswitch_section,
8682 get_section): Likewise.
8684 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
8686 * regrename.c (build_def_use): Don't copy RTX.
8688 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
8690 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8691 (Type Attributes): Fix nesting of @table and @subsection. Adjust
8692 punctuation. Use @ref instead of @xref.
8693 (Function Names): Remove stray @display/@end display.
8694 (C++ Attributes): Use @ref instead of @xref.
8695 (Deprecated Features): Fix punctuation around @xref.
8696 (Backwards Compatibility): Likewise.
8697 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8699 2008-06-28 Joseph Myers <joseph@codesourcery.com>
8701 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8702 constants for E500 double.
8704 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8706 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8707 element type of const_vector.
8709 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
8711 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8712 Remove FLAGS_REG clobber from expander pattern.
8713 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8714 (anddi3, andsi3, andhi3, andqi3): Ditto.
8715 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8716 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8717 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8718 (ashlsi3, ashlhi3, ashlqi3): Ditto.
8719 (ashrsi3, ashrhi3, ashrqi3): Ditto.
8720 (lshrsi3, lshrhi3, lshrqi3): Ditto.
8721 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8722 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8724 2008-06-28 Richard Guenther <rguenther@suse.de>
8726 * tree-ssa-structalias.c (callused_id, var_callused,
8727 callused_tree): Add.
8728 (handle_pure_call): New function.
8729 (find_func_aliases): Call it.
8730 (find_what_p_points_to): Handle the call-used set.
8731 (clobber_what_escaped): Likewise.
8732 (compute_call_used_vars): New function.
8733 (init_base_vars): Init the call-used variable.
8734 (do_sd_constraint): Do not propagate the solution from CALLUSED
8735 but use CALLUSED as a placeholder.
8736 (solve_graph): Likewise.
8737 * tree-flow-inline.h (gimple_call_used_vars): New function.
8738 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
8739 (compute_call_used_vars): Declare.
8740 * tree-ssa-alias.c (set_initial_properties): Call
8741 compute_call_used_vars.
8742 (reset_alias_info): Clear call-used variables.
8743 (add_call_clobber_ops): Assert we are not called for const/pure
8744 functions. Remove handling of them.
8745 (add_call_read_ops): Handle pure functions by adding the
8746 call-used set of variables as VUSEs.
8747 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
8748 (delete_tree_ssa): Free it.
8749 * tree-dfa.c (remove_referenced_var): Clear the var from the
8752 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
8754 * tree.c (build_varargs_function_type_list): New.
8755 (build_function_type_list_1): New.
8756 (build_function_type_list): Use build_function_type_list_1.
8757 * tree.h (build_varargs_function_type_list): New.
8759 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8762 * config/spu/spu.c (spu_builtin_splats): Do not generate
8763 invalid CONST_VECTOR expressions.
8764 (spu_expand_vector_init): Likewise.
8766 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
8768 * optabs.c (libfunc_decls): New variable.
8769 (libfunc_decl_hash, libfunc_decl_eq): New functions.
8770 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
8771 for the same function twice.
8773 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
8775 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
8776 ix86_expand_binary_operator directly.
8777 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
8779 (*ashrti3_1): Ditto.
8780 (*lshrti3_1): Ditto.
8781 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
8782 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
8783 using only one splitter. Conditionaly execute splitter before or
8784 after peephole2 pass.
8785 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
8786 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
8787 Use only one alternative in asm template.
8788 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
8790 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
8791 "J" operand constraint for operand 2.
8792 (*ashldi3_cconly_rex64): Ditto.
8793 (*ashrdi3_cmp_rex64): Ditto.
8794 (*ashrdi3_cconly_rex64): Ditto.
8795 (*lshrdi3_cmp_rex64): Ditto.
8796 (*lshrdi3_cconly_rex64): Ditto.
8797 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
8798 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
8799 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
8802 2008-06-27 Jakub Jelinek <jakub@redhat.com>
8804 * gimplify.c (omp_is_private): Don't return true if decl is not
8805 already private on #pragma omp for or #pragma omp parallel for.
8808 * tree-cfg.c (struct move_stmt_d): Replace block field with
8809 orig_block and new_block fields.
8810 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
8811 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
8812 (move_block_to_fn): Replace vars_map and new_label_map arguments
8813 with struct move_stmt_d pointer.
8814 (replace_block_vars_by_duplicates): New function.
8815 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
8816 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
8817 all subblocks of ORIG_BLOCK to the new function. Call
8818 replace_block_vars_by_duplicates.
8819 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
8820 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
8821 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
8822 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
8823 (expand_omp): Temporarily set input_location to the location of
8824 region's controlling stmt.
8825 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
8826 BIND_EXPR, push ctx->block_vars and gimplification vars into
8827 the BIND_EXPR and its block's BLOCK_VARS instead of directly
8829 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
8830 there are any BLOCK_VARS.
8831 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
8832 OMP_PARALLEL or OMP_TASK stmt.
8833 (lower_omp): Save and restore input_location around the lower_omp_1
8836 2008-06-27 Richard Guenther <rguenther@suse.de>
8838 PR tree-optimization/36400
8839 PR tree-optimization/36373
8840 PR tree-optimization/36344
8841 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
8842 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
8843 (update_alias_info): Remove call clobbering code.
8844 (make_constraint_to): New helper function.
8845 (make_escape_constraint): Likewise.
8846 (handle_rhs_call): Use it on all pointer containing arguments.
8847 Also mark the static chain escaped.
8848 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
8849 instead of ANYTHING.
8850 (make_constraint_from): New helper split out from ...
8851 (make_constraint_from_anything): ... here.
8852 (find_func_aliases): Add constraints for escape sites.
8853 (intra_create_variable_infos): Make constraints from NONLOCAL
8855 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
8857 (clobber_what_p_points_to): Remove.
8858 (clobber_what_escaped): New function.
8859 (init_base_vars): Init NONLOCAL and ESCAPED.
8860 (do_sd_constraint): Do not propagate the solution from ESCAPED
8861 but use ESCAPED as a placeholder.
8862 (solve_graph): Likewise.
8863 * tree-flow.h (clobber_what_p_points_to): Remove.
8864 (clobber_what_escaped): Declare.
8865 * tree-ssa-alias.c (set_initial_properties): Call it.
8866 Remove code clobbering escaped pointers.
8868 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
8870 * function.c (allocate_struct_function): Only allocate a unique
8871 funcdef_no if the decl is nonzero.
8873 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
8875 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
8876 * config/mips/mips.c (mips_split_const_insns): New function.
8877 * config/mips/mips.md (move_type): New attribute.
8878 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
8879 (dword_mode): New attribute.
8880 (type): Avoid long line. Map "move_type"s to "type"s,
8881 choosing "multi" for doubleword moves if appropriate.
8882 Swap MTC/MFC comments to match their declaration order.
8883 (extended_mips16): Default to "yes" if "move_type" is "sll0",
8884 "type" is "branch" or "jal" is "direct".
8885 (length): Handle "extended_mips16" first. Make the default
8886 "0" for "ghost" instructions. Set the length from "move_type".
8887 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
8888 of "type", with "sll0" for the register alternative. Remove the
8889 "extended_mips16" attribute.
8890 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
8891 of "type", with "shift_shift" for the register alternative.
8892 Remove the "length" attribute.
8893 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
8894 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
8895 of "type", with "andi" for the register alternative.
8896 (*zero_extendqihi2): Likewise.
8897 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
8898 of "andi" instead of a "type" of "arith".
8899 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
8901 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
8902 (mov_<store>r, *mov<mode>_ra): Likewise.
8903 (extendsidi2): Use "move_type" instead of "type", with "move"
8904 for the register alternative.
8905 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
8906 of "type", with "signext" for the register alternative.
8907 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
8908 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
8909 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
8910 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
8911 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
8912 (unnamed branch insn): Likewise.
8913 (*movdi_gp32_fp64): Fold into...
8914 (*movdi_32bit): ...here.
8915 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
8916 (*movdf_hardfloat): ...this new pattern.
8917 (*movdf_softfloat): Remove redundant FPR alternatives.
8918 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
8919 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
8920 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
8921 the "move" attribute.
8922 (*movdi_32bit): Use "move_type" instead of "type" and remove the
8923 "length" attribute. Use "fpload" and "fpstore" instead of "load"
8924 and "store" for COP loads and stores.
8925 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
8926 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
8927 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
8928 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
8929 (*movtf_mips16, *movv2sf): Likewise.
8930 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
8931 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
8932 (mfhc1<mode>): Use "move_type" instead of "move".
8933 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
8934 (loadgp_blockage): Remove the "length" attribute.
8935 (blockage, set_got_version, update_got_version): Likewise.
8936 (call_internal): Remove the "extended_mips16" attribute.
8937 (call_value_internal, call_value_multiple_internal): Likewise.
8938 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
8940 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
8941 the "length" attribute.
8943 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8945 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
8946 -Wcast-qual warnings.
8947 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
8948 handle_pragma_pop_macro): Likewise.
8949 * collect2.c (resolve_lib_name): Likewise.
8950 * config/arc/arc.c (arc_init): Likewise.
8951 * config/arm/arm.c (neon_builtin_compare,
8952 locate_neon_builtin_icode): Likewise.
8953 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
8954 * config/bfin/bfin.c (bfin_init_machine_status,
8955 bfin_optimize_loop): Likewise.
8956 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8957 * config/cris/cris.c (cris_init_expanders): Likewise.
8958 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
8959 * config/darwin.c (machopic_indirection_eq,
8960 machopic_indirection_name, machopic_output_indirection): Likewise.
8961 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
8962 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
8963 frv_optimize_membar): Likewise.
8964 * config/i386/cygwin.h (mingw_scan,
8965 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
8966 * config/i386/cygwin1.c (mingw_scan): Likewise.
8967 * config/i386/i386.c (machopic_output_stub): Likewise.
8968 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
8969 i386_pe_unique_section): Likewise.
8970 * config/ia64/ia64.c (ia64_init_machine_status,
8971 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
8973 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
8974 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
8975 * config/m68k/m68k.c (m68k_handle_option,
8976 m68k_sched_md_init_global): Likewise.
8977 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
8978 mcore_unique_section): Likewise.
8979 * config/mips/mips.c (mips_block_move_straight,
8980 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
8982 * config/mmix/mmix.c (mmix_init_machine_status,
8983 mmix_encode_section_info): Likewise.
8984 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
8985 * config/rs6000/rs6000.c (rs6000_init_machine_status,
8986 print_operand_address, output_toc, redefine_groups,
8987 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
8988 * config/s390/s390.c (s390_init_machine_status): Likewise.
8989 * config/score/score.c (score_block_move_straight,
8990 score_block_move_loop_body): Likewise.
8991 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8992 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8993 * emit-rtl.c (find_auto_inc): Likewise.
8994 * gcc.c (translate_options, process_command): Likewise.
8995 * reorg.c (dbr_schedule): Likewise.
8996 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
8997 * xcoffout.c (xcoffout_declare_function): Likewise.
8999 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
9001 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9002 ipa-pta working again.
9004 2008-06-27 David Edelsohn <edelsohn@gnu.org>
9006 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9009 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
9011 * config.gcc (powerpc*-*-*): Add new core e500mc.
9012 * config/rs6000/e500mc.md: New file.
9013 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9015 (rs6000_override_options): Add e500mc case to
9016 processor_target_table. Altivec and Spe options not allowed
9017 with e500mc. Add isel instruction to e500mc by
9018 default. Initialize rs6000_cost for e500mc.
9019 (rs6000_issue_rate): Set issue rate for e500mc.
9020 * config/rs6000/rs6000.h (processor_type): Add
9021 PROCESSOR_PPCE500MC.
9022 (ASM_CPU_SPEC): Add e500mc.
9023 Set TARGET_ISEL to rs6000_isel.
9024 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9025 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9026 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9028 * doc/invoke.texi: Add e500mc to list of cpus.
9030 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9033 * c-lex.c (lex_charconst): Initialize unsignedp.
9035 2008-06-27 Olivier Hainque <hainque@adacore.com>
9037 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9038 documented assumptions.
9040 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
9042 * dwarf2out.c: Remove trailing white spaces. Break long line
9045 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
9047 * libfuncs.h (LTI_synchronize): New libfunc_index.
9048 (synchronize_libfunc): Declare.
9049 * builtins.c (expand_builtin_synchronize): Consider using
9050 synchronize_libfunc before falling back on an asm blockage.
9051 * config/mips/mips.c: Include libfuncs.h
9052 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9054 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
9056 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9057 parameter. Copy stack_reg to r11 where appropriate.
9058 (no_global_regs_above): Add gpr parameter.
9059 (rs6000_stack_info): Only add padding for SPE save area if we
9060 are saving SPE GPRs and CR.
9061 (saveres_routine_syms): New variable.
9062 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9064 (rs6000_savres_routine_sym): New function.
9065 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9067 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
9068 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
9069 Tweak FPR out-of-line saving.
9070 (rs6000_make_savres_rtx): New function.
9071 (rs6000_use_multiple_p): New function.
9072 (rs6000_savres_strategy): New function.
9073 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
9074 out-of-line if appropriate.
9075 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9076 if we are optimizing for size.
9077 (GP_SAVE_INLINE): Define.
9078 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9079 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9080 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9081 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9082 (*save_fpregs_<mode>): Add use of r11.
9083 (*restore_gpregs_<mode>): New insn.
9084 (*return_and_restore_gpregs_<mode>): New insn.
9085 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9087 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9088 (*restore_gpregs_spe): New insn.
9089 (*return_and_restore_gpregs_spe): New insn.
9090 * config/rs6000/predicates.md (save_world_operation): Fix check.
9092 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9094 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9095 this point, so assert that.
9097 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9099 * cfganal.c: Include vec.h and vecprim.h.
9100 (compute_idf): Import from...
9101 * tree-into-ssa (compute_idf): ...here.
9102 * basic-block.h (compute_idf): Export.
9104 2008-06-26 Joseph Myers <joseph@codesourcery.com>
9106 * c-decl.c (merge_decls): Use !current_function_decl to check for
9107 extern declaration of C99 inline function being at file scope.
9109 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
9111 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9113 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9115 * alias.c (record_alias_subset, init_alias_analysis): Fix
9116 -Wc++-compat and/or -Wcast-qual warnings.
9117 * attribs.c (lookup_attribute_spec): Likewise.
9118 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9119 copy_bb, connect_traces,
9120 find_rarely_executed_basic_blocks_and_cr): Likewise.
9121 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9122 note_btr_set, migrate_btr_defs): Likewise.
9123 * builtins.c (result_vector, expand_builtin_memcpy,
9124 expand_builtin_mempcpy_args, expand_builtin_strncpy,
9125 builtin_memset_read_str, expand_builtin_printf,
9126 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9128 * caller-save.c (mark_set_regs): Likewise.
9129 * calls.c (expand_call, emit_library_call_value_1): Likewise.
9130 * cgraph.c (cgraph_edge): Likewise.
9131 * combine.c (likely_spilled_retval_1): Likewise.
9132 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9133 htab_counts_entry_del, get_coverage_counts): Likewise.
9134 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9135 new_cselib_val): Likewise.
9136 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9137 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9139 * df-core.c (df_compact_blocks): Likewise.
9140 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9141 * df-scan.c (df_grow_reg_info, df_ref_create,
9142 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9143 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9144 df_record_entry_block_defs, df_record_exit_block_uses,
9145 df_bb_verify): Likewise.
9146 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9147 DF_REF_EXTRACT_MODE_CONST): New.
9148 * dominance.c (get_immediate_dominator, get_dominated_by,
9149 nearest_common_dominator, root_of_dom_tree,
9150 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9151 -Wc++-compat and/or -Wcast-qual warnings.
9152 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9153 record_store, replace_read, check_mem_read_rtx, scan_insn,
9154 dse_step1, dse_record_singleton_alias_set): Likewise.
9155 * dwarf2asm.c (dw2_force_const_mem): Likewise.
9157 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9159 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9160 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9161 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9162 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9163 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9164 add_ranges_num, add_ranges_by_labels, file_info_cmp,
9165 file_name_acquire, output_file_names, add_const_value_attribute,
9166 premark_used_types_helper, file_table_eq, file_table_hash,
9167 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9168 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9169 -Wcast-qual warnings.
9170 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9171 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9172 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9173 gen_reg_rtx, start_sequence, init_emit): Likewise.
9174 * et-forest.c (et_new_occ, et_new_tree): Likewise.
9175 * except.c (init_eh_for_function, gen_eh_region,
9176 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9177 arh_to_landing_pad, arh_to_label, add_action_record,
9178 add_call_site, switch_to_exception_section): Likewise.
9179 * expmed.c (synth_mult): Likewise.
9180 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9181 store_expr): Likewise.
9182 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9184 * function.c (assign_stack_temp_for_type,
9185 allocate_struct_function, match_asm_constraints_1): Likewise.
9186 * gcov-io.c (gcov_allocate): Likewise.
9187 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9188 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9189 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9190 record_one_set, insert_expr_in_table, insert_set_in_table,
9191 dump_hash_table, compute_hash_table_work, alloc_hash_table,
9192 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9193 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9194 -Wcast-qual warnings.
9196 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9198 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9199 -Wcast-qual warnings.
9200 * gcc.c (process_command): Likewise.
9201 * genattrtab.c (oballoc): Use XOBNEW.
9202 (oballocvec): Define.
9203 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9204 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9205 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9206 -Wc++-compat and/or -Wcast-qual warnings.
9207 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9208 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9209 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9210 gen_presence_absence_set, gen_automaton, gen_regexp_el,
9211 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9212 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9213 add_excls, process_presence_absence_names,
9214 process_presence_absence_patterns, add_presence_absence,
9215 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9216 get_free_state, add_arc, get_free_automata_list_el,
9217 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9218 transform_3, cache_presence, create_ainsns, create_automata,
9219 create_state_ainsn_table, dfa_insn_code_enlarge,
9220 output_trans_func, output_min_issue_delay_func,
9221 output_dead_lock_func, output_reset_func,
9222 output_get_cpu_unit_code_func, output_dfa_start_func,
9223 expand_automata): Likewise.
9224 * genextract.c (gen_insn): Likewise.
9225 * gengtype-lex.l: Likewise.
9226 * gengtype.c (read_input_list, adjust_field_type,
9227 process_gc_options): Likewise.
9228 * genoutput.c (note_constraint): Likewise.
9229 * genpreds.c (mangle, add_constraint): Likewise.
9230 * genrecog.c (process_define_predicate, new_decision,
9231 add_to_sequence): Likewise.
9232 * gensupport.c (record_insn_name): Likewise.
9234 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9236 * config/i386/driver-i386.c (detect_caches_amd,
9237 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9238 and/or -Wcast-qual warnings.
9239 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9240 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9241 gt_pch_save): Likewise.
9242 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9243 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9244 * global.c (compute_regsets): Likewise.
9245 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9246 finish_graph_dump_file): Likewise.
9247 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9248 unlink_bb_notes): Likewise.
9249 * integrate.c (get_hard_reg_initial_val): Likewise.
9250 * ipa-prop.c (ipa_push_func_to_list): Likewise.
9251 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9252 * local-alloc.c (update_equiv_regs): Likewise.
9253 * loop-invariant.c (check_invariant_table_size,
9254 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9256 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9257 altered_reg_used, mark_altered): Likewise.
9258 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9259 insert_var_expansion_initialization,
9260 combine_var_copies_in_loop_exit, apply_opt_in_copies,
9261 release_var_copies): Likewise.
9262 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9263 analyze_matrix_decl, add_allocation_site, analyze_transpose,
9264 analyze_accesses_for_phi_node, check_var_notmodified_p,
9265 check_allocation_function, find_sites_in_func,
9266 record_all_accesses_in_func, transform_access_sites,
9267 transform_allocation_sites): Likewise.
9268 * omp-low.c (new_omp_region, create_omp_child_function_name,
9269 check_omp_nesting_restrictions, check_combined_parallel,
9270 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9271 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9272 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9273 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9275 * opts-common.c (prune_options): Likewise.
9276 * opts.c (add_input_filename, print_filtered_help,
9277 get_option_state): Likewise.
9278 * params.c (add_params): Likewise.
9279 * passes.c (set_pass_for_id, next_pass_1,
9280 do_per_function_toporder, pass_fini_dump_file): Likewise.
9281 * postreload.c (reload_cse_simplify_operands): Likewise.
9282 * predict.c (tree_predicted_by_p, tree_predict_edge,
9283 clear_bb_predictions, combine_predictions_for_bb): Likewise.
9285 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9287 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9289 * recog.c (check_asm_operands, validate_change_1): Likewise.
9290 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9291 subst_asm_stack_regs): Likewise.
9292 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9293 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9294 * regmove.c (reg_is_remote_constant_p): Likewise.
9295 * regrename.c (regrename_optimize, scan_rtx_reg,
9296 kill_clobbered_value, kill_set_value, kill_autoinc_value):
9298 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9299 regstat_compute_calls_crossed): Likewise.
9300 * reload1.c (init_reload, new_insn_chain,
9301 has_nonexceptional_receiver, reload, copy_reloads,
9302 calculate_needs_all_insns, init_elim_table): Likewise.
9303 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9304 * rtl.c (shallow_copy_rtx_stat): Likewise.
9305 * rtlanal.c (parms_set): Likewise.
9306 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9307 sbitmap_resize, sbitmap_vector_alloc): Likewise.
9308 * sched-ebb.c (earliest_block_with_similiar_load,
9309 add_deps_for_risky_insns): Likewise.
9310 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9311 schedule_region): Likewise.
9312 * see.c (eq_descriptor_pre_extension,
9313 hash_descriptor_pre_extension, hash_del_pre_extension,
9314 eq_descriptor_properties, hash_descriptor_properties,
9315 hash_del_properties, see_seek_pre_extension_expr,
9316 see_initialize_data_structures, see_print_register_properties,
9317 see_print_pre_extension_expr, see_delete_merged_def_extension,
9318 see_delete_unmerged_def_extension, see_emit_use_extension,
9319 see_pre_delete_extension, see_map_extension, see_commit_changes,
9320 see_analyze_merged_def_local_prop,
9321 see_analyze_merged_def_local_prop,
9322 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9323 see_set_prop_merged_def, see_set_prop_unmerged_def,
9324 see_set_prop_unmerged_use, see_print_one_extension,
9325 see_merge_one_use_extension, see_merge_one_def_extension,
9326 see_store_reference_and_extension, see_update_uses_relevancy,
9327 see_update_defs_relevancy): Likewise.
9328 * statistics.c (hash_statistics_hash, hash_statistics_eq,
9329 hash_statistics_free, curr_statistics_hash): Likewise.
9330 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9331 expand_asm_operands, expand_return, case_bit_test_cmp,
9332 expand_case): Likewise.
9333 * stor-layout.c (start_record_layout): Likewise.
9334 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9335 gt_pch_save_stringpool): Likewise.
9336 * tree-data-ref.c (hash_stmt_vertex_info,
9337 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9338 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9340 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
9343 * config/i386/i386.md : Change constraints of HImode and QImode
9344 immediate operands from "i" to "n". Change SImode "ni" constraint to
9345 "i" and SImode "rmi" constraint to "g". Remove all constraints
9346 from const0_operand and const1_operand predicated operands.
9347 (i): Change QImode and HImode attribute from "i" to "n".
9348 (*subqi_2): Change HImode operands to QImode.
9351 2008-06-25 Olivier Hainque <hainque@adacore.com>
9353 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9356 2008-06-25 Richard Guenther <rguenther@suse.de>
9358 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9359 not overflow the result type.
9361 2008-06-25 Richard Guenther <rguenther@suse.de>
9363 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9364 (vn_lookup): Likewise.
9366 2008-06-25 Richard Guenther <rguenther@suse.de>
9368 PR tree-optimization/35518
9369 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9370 * tree-sra.c (instantiate_element): Use fold_build3 to build
9372 (try_instantiate_multiple_fields): Likewise.
9374 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9376 * config/rs6000/rs6000.md: Change all string instruction's clobber to
9379 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9381 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9382 use_backchain_to_restore_sp to true
9383 if the offset of the link register save area would go over the 32k - 1
9384 offset limit of the load
9387 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
9389 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9390 anchor for the type-punning blurb. Cross-reference "Structures
9391 unions enumerations and bit-fields implementation". Provide a
9392 cast-through-pointer example. Make final sentence self-contained.
9393 * doc/implement-c.texi (Structures unions enumerations and
9394 bit-fields implementation): Cross-reference the type-punning blurb
9395 in the -fstrict-aliasing documentation.
9397 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9400 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9401 the memory instead of the memory itself for the save area.
9403 2008-06-24 Olivier Hainque <hainque@adacore.com>
9404 Nicolas Roche <roche@adacore.com>
9406 * gengtype.c (srcdir_len): size_t instead of int.
9407 (get_file_realbasename): New function. For F a filename, the real
9408 basename of F, with all the path components stripped.
9409 (get_file_srcdir_relative_path): New function. For F a filename, the
9410 relative path to F from $(srcdir).
9411 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9412 get_file_realbasename. Adjust the head comment.
9413 (get_prefix_langdir_index): New function. For F a filename, return the
9414 lang_dir_names[] relative index of the language directory that is
9416 (get_file_langdir): For F a filename, return the name of the language
9417 directory where F is located.
9418 (get_file_gtfilename): New function. The gt- output file name for an
9420 (get_output_file_with_visibility): Replace in-line computations with
9421 uses of get_file_gtfilename and get_prefix_langdir_index.
9422 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9424 2008-06-24 Jakub Jelinek <jakub@redhat.com>
9426 PR tree-optimization/36504
9427 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9428 references without base address.
9430 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9433 * calls.c (expand_call): Increase alignment for recursive functions.
9435 2008-06-23 Anatoly Sokolov <aesok@post.ru>
9437 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9438 (TARGET_FUNCTION_VALUE): New define.
9439 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9440 * config/avr/avr.h (FUNCTION_VALUE): Remove.
9442 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9444 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9445 (fmod<mode>3): Ditto.
9446 (remainderxf3): Ditto.
9447 (remainder<mode>3): Ditto.
9449 2008-06-23 Jakub Jelinek <jakub@redhat.com>
9452 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9453 REG is a hard register.
9455 PR tree-optimization/36508
9456 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9457 499, don't check it at all in release compilers.
9459 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9461 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9462 together with SSE_TARGET_MATH to disable insn pattern.
9463 (*fop_<MODEF:mode>_2_i387): Ditto.
9464 (*fop_<MODEF:mode>_3_i387): Ditto.
9466 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
9468 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9470 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9473 * gimplify.c (gimplify_asm_expr): Check the return code of
9474 parse_output_constraint call, set function return and is_inout
9477 2008-06-22 Ian Lance Taylor <iant@google.com>
9479 * c-lex.c (narrowest_unsigned_type): Change itk to int.
9480 (narrowest_signed_type): Likewise.
9481 * c-typeck.c (c_common_type): Change local variable mclass to enum
9483 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9484 tcc_comparison, not the tree code itself.
9485 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9486 (c_expand_expr): Cast modifier to enum expand_modifier.
9487 * c-common.h (C_RID_CODE): Add casts.
9488 (C_SET_RID_CODE): Define.
9489 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9490 (c_lex_one_token): Add cast to avoid warning.
9491 (c_parser_objc_type_name): Rename local typename to type_name.
9492 (check_no_duplicate_clause): Change code parameter to enum
9494 (c_parser_omp_var_list_parens): Change kind parameter to enum
9496 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9497 c_parser_omp_list_var_parens.
9498 (c_parser_omp_threadprivate): Likewise.
9499 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9500 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9501 * c-format.c (NO_FMT): Define.
9502 (printf_length_specs): Use NO_FMT.
9503 (asm_fprintf_length_specs): Likewise.
9504 (gcc_diag_length_specs): Likewise.
9505 (scanf_length_specs): Likewise.
9506 (strfmon_length_specs): Likewise.
9507 (gcc_gfc_length_specs): Likewise.
9508 (printf_flag_specs): Change 0 to STD_C89.
9509 (asm_fprintf_flag_specs): Likewise.
9510 (gcc_diag_flag_specs): Likewise.
9511 (gcc_cxxdiag_flag_specs): Likewise.
9512 (scanf_flag_specs): Likewise.
9513 (strftime_flag_specs): Likewise.
9514 (strfmon_flag_specs): Likewise.
9515 (print_char_table): Likewise.
9516 (asm_fprintf_char_table): Likewise.
9517 (gcc_diag_char_table): Likewise.
9518 (gcc_tdiag_char_table): Likewise.
9519 (gcc_cdiag_char_table): Likewise.
9520 (gcc_cxxdiag_char_table): Likewise.
9521 (gcc_gfc_char_table): Likewise.
9522 (scan_char_table): Likewise.
9523 (time_char_table): Likewis.
9524 (monetary_char_table): Likewise.
9525 * c-format.h (BADLEN): Likewise.
9527 2008-06-21 Ian Lance Taylor <iant@google.com>
9529 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9530 Define END_OF_BASE_TREE_CODES around inclusion.
9531 * tree.c (tree_code_type): New global array.
9532 (tree_code_length, tree_code_name): Likewise.
9533 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9535 (all-tree.def, s-alltree): New targets.
9536 (gencheck.h, s-gencheck): Remove.
9537 (tree.o): Depend upon all-tree.def.
9538 (build/gencheck.o): Remove gencheck.h dependency.
9539 (mostlyclean): Don't remove gencheck.h.
9540 * c-common.h (enum c_tree_code): Remove.
9541 * c-lang.c (tree_code_type): Remove.
9542 (tree_code_length, tree_code_name): Remove.
9543 * gencheck.c (tree_codes): Include all-tree.def, rather than
9544 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
9546 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9548 * cp/cp-tree.h (enum cplus_tree_code): Remove.
9549 (operator_name_info): Size to MAX_TREE_CODES.
9550 (assignment_operator_name_info): Likewise.
9551 * cp/cp-lang.c (tree_code_type): Remove.
9552 (tree_code_length, tree_code_name): Remove.
9553 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9554 (assignment_operator_name_info): Likewise.
9555 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9557 * cp/mangle.c (write_expression): Likewise.
9558 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9559 * fortran/f95-lang.c (tree_code_type): Remove.
9560 (tree_code_length, tree_code_name): Remove.
9561 * java/java-tree.h (enum java_tree_code): Remove.
9562 * java/lang.c (tree_code_type): Remove.
9563 (tree_code_length, tree_code_name): Remove.
9564 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9565 * objc/objc-act.h (enum objc_tree_code): Remove.
9566 * objc/objc-lang.c (tree_code_type): Remove.
9567 (tree_code_length, tree_code_name): Remove.
9568 * objcp/objcp-lang.c (tree_code_type): Remove.
9569 (tree_code_length, tree_code_name): Remove.
9570 * ada/ada-tree.h (enum gnat_tree_code): Remove.
9571 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9572 * ada/misc.c (tree_code_type): Remove.
9573 (tree_code_length, tree_code_name): Remove.
9575 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
9577 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9578 the grand_bitmap_obstack.
9580 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9582 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9583 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9584 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9585 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9586 move_stmt_r, new_label_mapper): Likewise.
9587 * tree-complex.c (cvc_lookup): Likewise.
9588 * tree-dfa.c (create_function_ann): Likewise.
9589 * tree-dump.c (dump_register): Likewise.
9590 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9591 find_phi_replacement_condition): Likewise.
9592 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9593 tree_function_versioning): Likewise.
9594 * tree-into-ssa.c (cmp_dfsnum): Likewise.
9595 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9596 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9597 get_nonlocal_debug_decl, convert_nonlocal_reference,
9598 convert_nonlocal_omp_clauses, get_local_debug_decl,
9599 convert_local_reference, convert_local_omp_clauses,
9600 convert_nl_goto_reference, convert_nl_goto_receiver,
9601 convert_tramp_reference, convert_call_expr): Likewise.
9602 * tree-outof-ssa.c (contains_tree_r): Likewise.
9603 * tree-parloops.c (reduction_phi, initialize_reductions,
9604 eliminate_local_variables_1, add_field_for_reduction,
9605 add_field_for_name, create_phi_for_local_result,
9606 create_call_for_reduction_1, create_loads_for_reductions,
9607 create_stores_for_reduction, create_loads_and_stores_for_name):
9609 * tree-phinodes.c (allocate_phi_node): Likewise.
9610 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9611 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9612 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9613 * tree-ssa-coalesce.c (compare_pairs): Likewise.
9614 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9615 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9616 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9617 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9618 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9619 vn_nary_op_insert): Likewise.
9620 * tree-ssa.c (redirect_edge_var_map_add,
9621 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9622 * tree-vectorizer.c (vectorize_loops): Likewise.
9623 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9624 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9625 tree_cons_stat, build1_stat, build_variant_type_copy,
9626 decl_init_priority_lookup, decl_fini_priority_lookup,
9627 decl_priority_info, decl_restrict_base_lookup,
9628 decl_restrict_base_insert, decl_debug_expr_lookup,
9629 decl_debug_expr_insert, decl_value_expr_lookup,
9630 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9631 type_hash_add, get_file_function_name, tree_check_failed,
9632 tree_not_check_failed, tree_range_check_failed,
9633 omp_clause_range_check_failed, build_omp_clause,
9634 build_vl_exp_stat): Likewise.
9635 * value-prof.c (gimple_histogram_value,
9636 gimple_duplicate_stmt_histograms): Likewise.
9637 * var-tracking.c (attrs_list_insert, attrs_list_copy,
9638 unshare_variable, variable_union_info_cmp_pos, variable_union,
9639 dataflow_set_different_1, dataflow_set_different_2,
9640 vt_find_locations, variable_was_changed, set_variable_part,
9641 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9642 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9643 section_entry_hash, object_block_entry_eq,
9644 object_block_entry_hash, create_block_symbol,
9645 initialize_cold_section_name, default_function_rodata_section,
9646 strip_reg_name, set_user_assembler_name, const_desc_eq,
9647 build_constant_desc, output_constant_def, lookup_constant_def,
9648 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9649 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9650 default_internal_label): Likewise.
9651 * varray.c (varray_init, varray_grow): Likewise.
9652 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9654 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
9656 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9657 operators for "test" insn. Macroize insn using SWI mode macro.
9658 (*jcc_fused_2): Ditto.
9659 (*jcc_fused_3): Macroize insn using SWI mode macro.
9660 (*jcc_fused_4): Ditto.
9662 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
9664 * tree-ssa-pre.c: Fix typo in comment.
9665 (init_antic, fini_antic): Add explicit funtions for
9666 initializing and deinitializing ANTIC and AVAIL sets.
9667 (create_expression_by_pieces): Fix typo in comment.
9668 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9669 (execute_pre): Eventually dump details about ANTIC_IN.
9671 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9673 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9674 * gcc.c (translate_options, init_spec, store_arg, read_specs,
9675 add_to_obstack, file_at_path, find_a_file, execute,
9676 add_preprocessor_option, add_assembler_option, add_linker_option,
9677 process_command, insert_wrapper, do_option_spec, do_self_spec,
9678 spec_path, do_spec_1, is_directory, main, used_arg,
9679 getenv_spec_function): Likewise.
9680 * tlink.c (symbol_hash_lookup, file_hash_lookup,
9681 demangled_hash_lookup, symbol_push, file_push, frob_extension):
9684 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
9686 * doc/rtl.texi: Updated subreg section.
9688 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9691 * cgraphunit.c (cgraph_process_new_functions): Don't clear
9692 node->needed and node->reachable.
9693 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9694 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9695 (expand_task_call): Don't call expand_task_copyfn.
9696 (expand_task_copyfn): Renamed to...
9697 (finalize_task_copyfn): ... this.
9699 2008-06-19 Jan Hubicka <jh@suse.cz>
9701 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9702 clobbering framepointer.
9704 2008-06-19 Jan Hubicka <jh@suse.cz>
9706 * tree-optimize.c (execute_early_local_optimizations): Set
9707 cgraph_state only at first invocation.
9709 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9711 * system.h (-Wc++-compat): Activate as a warning, no an error.
9713 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
9715 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9716 instead of "#" in insn asm template.
9717 (*jcc_fused_2): Ditto.
9719 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
9721 * config/i386/i386.h (ix86_tune_indices)
9722 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9723 (TARGET_FUSE_CMP_AND_BRANCH): New define.
9724 * config/i386/i386.md (*jcc_fused_1): New insn pattern
9725 (*jcc_fused_2): Ditto.
9726 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
9727 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
9728 (print operand): Handle 'E' and 'e' code.
9730 2008-06-19 Anatoly Sokolov <aesok@post.ru>
9732 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
9733 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9734 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9736 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
9738 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
9740 (cgraph_expand_function): Use local copy of decl.
9741 (cgraph_expand_all_functions): Remove redundant initialization of
9743 (cgraph_optimize): Reword internal_error message.
9745 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
9747 * arm-protos.h (arm_return_in_memory): Remove public
9748 arm_return_in_memory() prototype.
9749 * arm.c (arm_return_in_memory): Add static prototype, add target
9750 hook macro, change definition and comments.
9751 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
9753 2008-06-19 Ben Elliston <bje@au.ibm.com>
9755 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
9756 real.c: Remove references to IEEE 754R.
9757 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
9758 * doc/libgcc.texi (Decimal float library routines): Likewise.
9760 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9762 * targhooks.h (struct gcc_target): New member unwind_word_mode.
9763 (default_unwind_word_mode): Add prototype.
9764 * targhooks.c (default_unwind_word_mode): New function.
9765 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
9766 instead of word_mode.
9767 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
9768 (TARGET_INITIALIZER): Use it.
9770 * c-common.c (handle_mode_attribute): Support "unwind_word"
9772 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
9774 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
9775 word_mode to access SjLj_Function_Context member "data".
9776 (sjlj_emit_dispatch_table): Likewise. Also, perform type
9777 conversion from targetm.eh_return_filter_mode () to
9778 targetm.unwind_word_mode () if they differ.
9780 * builtin-types.def (BT_UNWINDWORD): New primitive type.
9781 (BT_FN_UNWINDWORD_PTR): New function type.
9782 (BT_FN_WORD_PTR): Remove.
9783 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
9784 * except.c (expand_builtin_extend_pointer): Convert pointer to
9785 targetm.unwind_word_mode () instead of word_mode.
9787 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
9788 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
9789 (spu_unwind_word_mode): New function.
9790 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
9791 (TARGET_UNWIND_WORD_MODE): Define.
9792 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
9794 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9796 * config/spu/spu.c (reg_align): Remove.
9797 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
9798 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
9799 (spu_split_store): Likewise.
9801 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
9803 * gcc/tree-vn.c: Fix typo in comment.
9805 2008-06-18 Jan Hubicka <jh@suse.cz>
9807 * cgraphunit.c (cgraph_optimize): Output debug info when doing
9808 toplevel reorder too.
9810 2008-06-18 Jan Hubicka <jh@suse.cz>
9812 * c-opts.c (c_common_post_options): PCH is not compatible with
9814 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
9815 -fno-toplevel-reorder by default now.
9817 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9819 PR documentation/30739
9820 * doc/install.texi (Prerequisites): Document dependency on awk.
9822 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
9823 Ian Lance Taylor <iant@google.com>
9825 PR rtl-optimization/35604
9826 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
9827 only want to change jump destinations, not eventual label comparisons.
9829 2008-06-16 Jan Hubicka <jh@suse.cz>
9831 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
9833 (cgraph_analyze_function): Likewise.
9835 2008-06-16 Jan Hubicka <jh@suse.cz>
9837 * cgraph.h (cgraph_mark_if_needed): New function.
9838 * cgraphunit.c (cgraph_mark_if_needed): New function.
9839 * c-decl.c (duplicate_decl): Use it.
9841 2008-06-16 Jan Hubicka <jh@suse.cz>
9843 * cgraph.c (cgraph_add_new_function): When in expansion state, do
9846 2008-06-16 Jan Hubicka <jh@suse.cz>
9848 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
9850 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
9851 Kazu Hirata <kazu@codesourcery.com>
9852 Maxim Kuvyrkov <maxim@codesourcery.com
9854 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
9855 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
9856 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
9857 EXTRA_SPEC_FUNCTIONS.
9858 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
9859 (DRIVER_SELF_SPECS): Adjust.
9860 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
9861 * config/mips/st.h, config/mips/t-st: New.
9862 * config/mips/driver-native.c, config/mips/x-native: New.
9863 * doc/invoke.texi (MIPS): Document 'native' value for -march and
9866 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9868 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
9870 (ISA_HAS_FP_CONDMOVE): New macro.
9871 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
9872 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
9873 (ISA_HAS_NMADD3_NMSUB3): New macro.
9874 * config/mips/mips.c (mips_rtx_costs): Update.
9875 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
9876 compiling for ST Loongson 2E/2F.
9877 (madd<mode>): Rename to madd4<mode>. Update.
9878 (madd3<mode>): New pattern.
9879 (msub<mode>): Rename to msub4<mode>. Update.
9880 (msub3<mode>): New pattern.
9881 (nmadd<mode>): Rename to nmadd4<mode>. Update.
9882 (nmadd3<mode>): New pattern.
9883 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
9884 (nmadd3<mode>_fastmath): New pattern.
9885 (nmsub<mode>): Rename to nmsub4<mode>. Update.
9886 (nmsub3<mode>): New pattern.
9887 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
9888 (nmsub3<mode>_fastmath): New pattern.
9889 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
9891 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
9893 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
9894 (DF_REF_INSN_INFO): New.
9895 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
9896 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
9897 with a NULL DF_REF_INSN_INFO.
9898 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
9900 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
9901 DF_INSN_INFO_EQ_USES): New.
9902 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
9903 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
9904 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
9905 * df-core.c: Update comment for above changes.
9906 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
9907 DF_INSN_UID_* macros.
9908 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
9909 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
9910 insn rtx. Update all callers.
9911 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
9912 df_ref_create_structure, df_insn_refs_collect): Likewise.
9913 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
9914 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
9915 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
9916 macros to access the insn refs.
9917 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
9918 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
9919 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
9920 for accessing the refs.
9921 (try_fwprop_subst): Likewise.
9922 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
9923 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
9924 for accessing the refs.
9925 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
9926 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
9927 to look at the insn refs.
9928 (record_uses): Likewise.
9929 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
9931 (mark_artificial_uses): Don't mark_insn for artificial refs.
9932 (mark_reg_rependencies): Likewise.
9934 * doc/rtl.texi: Remove documentation of ADDRESSOF.
9936 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9938 * configure: Regenerate.
9940 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
9942 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
9943 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9944 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9946 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
9948 * config/avr/avr.c (avr_mcu_t): Add attiny167.
9949 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9950 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9952 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
9954 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
9955 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9956 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9958 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
9960 * tree-ssa-sccvn.c: Fix format of comments.
9962 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
9964 * cgraph.c: Remove unneeded forward declarations of eq_node()
9967 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
9969 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
9971 (see_update_relevancy): Likewise.
9972 * fwprop.c (try_fwprop_subst): Likewise.
9973 * rtlanal.c (noop_move_p): Likewise.
9974 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
9975 notes to non-existing libcall blocks.
9976 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
9978 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
9979 (dead_libcall_p): Remove.
9980 (delete_trivially_dead_insns): Don't use it.
9981 * web.c (union_defs): Remove comment about keeping nops.
9982 * gcse.c (hash_scan_insn): Don't take libcall pointers.
9983 (compute_hash_table_work): Don't track libcall notes.
9984 (do_local_cprop): Don't take libcall pointers. Don't update
9986 (adjust_libcall_notes): Deleted.
9987 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
9988 ever have existed in the first place).
9989 (replace_store_insn): Don't try to remove libcall notes.
9990 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
9991 (resolve_reg_notes): Don't call them.
9992 (resolve_simple_move): Likewise.
9993 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
9994 Don't remove REG_RETVAL notes.
9995 * emit-rtl.c (try_split): Don't update libcall notes.
9996 (emit_copy_of_insn_after): Dito.
9997 * cselib.c (cselib_current_insn_in_libcall): Remove.
9998 (cselib_process_insn): Don't set/clear it.
9999 (new_elt_loc_list): Don't record it.
10000 (cselib_init): Don't initialize it.
10001 * cselib.c (struct elt_loc_list): Remove in_libcall field.
10002 * loop-invariant.c (find_invariant_insn): Don't look for libcall
10004 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10005 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10006 (init_deps): Don't initialize it.
10007 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10008 * combine.c (delete_noop_moves): Don't update libcall notes.
10009 (can_combine_p): Remove now pointless #if 0 block.
10010 (try_combine): Remove another obsolete #if 0 block.
10011 (distribute_notes): Don't distribute libcall notes.
10012 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10013 * dce.c (libcall_dead_p): Remove.
10014 (delete_unmarked_insns): Don't handle libcall blocks.
10015 (preserve_libcall_for_dce): Remove.
10016 (prescan_insns_for_dce): Don't special-case libcall block insns.
10017 * reload1 (reload): Don't handle libcall notes.
10018 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10021 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10023 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10024 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10025 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10027 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10029 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10030 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10031 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10033 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10035 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10037 2008-06-16 Ira Rosen <irar@il.ibm.com>
10039 PR tree-optimization/36493
10040 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10041 the arguments list. Use VECTYPE to create vector pointer.
10042 (vectorizable_store): Fail if accesses through a pointer to vectype
10043 do not alias the original memory reference operands.
10044 Call vect_create_data_ref_ptr without the removed argument.
10045 (vectorizable_load): Likewise.
10046 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10049 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
10052 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10053 reg_equiv_constant.
10055 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10057 * config/mips/loongson2ef.md: New file.
10058 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10059 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10060 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10061 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10062 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10064 (loongson2ef.md): New include.
10065 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10066 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10067 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10068 (loongson_gt_<mode>, loongson_extract_halfword)
10069 (loongson_insert_halfword_0, loongson_insert_halfword_2)
10070 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10071 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10072 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10073 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10074 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10075 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10076 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10077 (vec_interleave_low<mode>): Define type attribute.
10078 * config/mips/mips.c (mips_ls2): New static variable.
10079 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10080 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10081 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10082 Implement target scheduling hooks.
10083 (mips_multipass_dfa_lookahead): Update to handle tuning for
10085 (mips_sched_init): Initialize data for Loongson scheduling.
10086 (mips_ls2_variable_issue): New static function.
10087 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10089 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10090 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10091 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10092 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10093 Handle ST Loongson 2E/2F cores.
10094 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10096 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10098 * omp-low.c (extract_omp_for_data): Fix comment typo.
10101 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10103 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10104 FIXME note about gcc/config.guess.
10105 * doc/options.texi (Option file format): Remove non-ASCII bytes.
10106 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10107 * doc/cppopts.texi: Likewise.
10108 * doc/extend.texi: Likewise.
10109 * doc/gcc.texi: Likewise.
10110 * doc/gccint.texi: Likewise.
10111 * doc/gcov.texi: Likewise.
10112 * doc/gty.texi: Likewise.
10113 * doc/hostconfig.texi: Likewise.
10114 * doc/install.texi: Likewise.
10115 * doc/invoke.texi: Likewise.
10116 * doc/loop.texi: Likewise.
10117 * doc/makefile.texi: Likewise.
10118 * doc/md.texi: Likewise.
10119 * doc/passes.texi: Likewise.
10120 * doc/tm.texi: Likewise.
10121 * doc/tree-ssa.texi: Likewise.
10122 * doc/trouble.texi: Likewise.
10124 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
10125 Nathan Sidwell <nathan@codesourcery.com>
10126 Maxim Kuvyrkov <maxim@codesourcery.com>
10127 Richard Sandiford <rdsandiford@googlemail.com>
10129 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10130 * config/mips/mips-protos.h (mips_expand_vector_init): New.
10131 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10133 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10134 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10135 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10137 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10138 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10139 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10140 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10141 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10142 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10143 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10144 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10145 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10146 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10147 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10148 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10149 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10150 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10151 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10152 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10153 (mips_builtins): Add Loongson builtins.
10154 (mips_loongson_2ef_bdesc): New.
10155 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10156 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10157 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10158 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10160 (mips_expand_vector_init): New.
10161 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10162 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10164 * config/mips/mips.md: Add unspec numbers for Loongson
10165 builtins. Include loongson.md.
10166 (MOVE64): Include Loongson vector modes.
10167 (SPLITF): Include Loongson vector modes.
10168 (HALFMODE): Handle Loongson vector modes.
10169 * config/mips/loongson.md: New.
10170 * config/mips/loongson.h: New.
10171 * config.gcc: Add loongson.h header for mips*-*-* targets.
10172 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10174 2008-06-14 Joseph Myers <joseph@codesourcery.com>
10176 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10177 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10178 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10179 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10180 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10181 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10182 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10183 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10184 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10185 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10186 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10187 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10188 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10189 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10190 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10191 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10192 Remove use_fixproto=yes.
10193 (ia64*-*-hpux*): Remove comment about using fixproto.
10194 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10196 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10198 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10200 * configure: Regenerate.
10202 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
10204 PR middle-end/36520
10205 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10206 before evaluating it.
10208 2008-06-13 Jakub Jelinek <jakub@redhat.com>
10211 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10212 nested inline functions.
10213 (start_decl, start_function): Don't invert DECL_EXTERNAL
10214 for nested inline functions.
10216 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10218 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10219 splits that must be made for correctness.
10221 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10223 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10224 (AVAIL_NON_MIPS16): Likewise.
10225 (mips_builtin_description): Replace target_flags with a predicate.
10226 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10227 (dspr2_32): New availability predicates.
10228 (MIPS_BUILTIN): New macro.
10229 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10230 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10231 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10232 Replace the TARGET_FLAGS parameters with AVAIL parameters.
10233 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10234 (mips_dsp_32only_bdesc): Merge into...
10235 (mips_builtins): ...this new array.
10236 (mips_bdesc_map, mips_bdesc_arrays): Delete.
10237 (mips_init_builtins): Update after above changes.
10238 (mips_expand_builtin_1): Merge into...
10239 (mips_expand_builtin): ...here and update after above changes.
10241 2008-06-12 Paul Brook <paul@codesourcery.com>
10243 * longlong.h (__arm__): Define count_leading_zeros.
10244 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10245 (clzsi2, clzdi2): New functions.
10246 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10247 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10248 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10249 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10250 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10251 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10252 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10253 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10254 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10255 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10257 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
10259 * config/m68k/m68k.c (m68k_tune_flags): New.
10260 (override_options): Compute m68k_tune_flags.
10261 (MULL_COST, MULW_COST): Update for various variants of CFV2.
10262 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10264 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10266 PR middle-end/36506
10267 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10269 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10271 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10272 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10274 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10276 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10277 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10279 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10281 PR middle-end/36506
10282 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10285 2008-06-12 Richard Guenther <rguenther@suse.de>
10287 PR tree-optimization/36345
10288 * tree-flow.h (struct ptr_info_def): Align escape_mask,
10289 add memory_tag_needed flag.
10290 (may_alias_p): Declare.
10291 * tree-ssa-alias.c (may_alias_p): Export.
10292 (set_initial_properties): Use memory_tag_needed flag.
10293 (update_reference_counts): Likewise.
10294 (reset_alias_info): Reset memory_tag_needed flag.
10295 (create_name_tags): Check memory_tag_needed flag.
10296 (dump_points_to_info_for): Dump it.
10297 * tree-ssa-structalias.c (struct variable_info): Remove
10298 directly_dereferenced flag.
10299 (new_var_info): Do not initialize it.
10300 (process_constraint_1): Do not set it.
10301 (update_alias_info): Set is_dereferenced flag.
10302 (set_uids_in_ptset): Use may_alias_p.
10303 (set_used_smts): Check memory_tag_needed flag.
10304 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
10305 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10306 memory_tag_needed flag.
10307 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10308 from broken design.
10310 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
10312 * config/i386/i386.c (ix86_compute_frame_layout): Disable
10313 red zone for w64 abi.
10314 (ix86_expand_prologue): Likewise.
10315 (ix86_force_to_memory): Likewise.
10316 (ix86_free_from_memory): Likewise.
10318 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
10321 * config/rs6000/rs6000.c (rs6000_override_options): Set
10322 rs6000_isel conditionally to the absence of comand line override.
10323 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10324 Remove duplicate rs6000_isel setting.
10325 * config/rs6000/eabispe.h: Ditto.
10327 2008-06-11 Richard Guenther <rguenther@suse.de>
10329 * alias.c (get_alias_set): Use the element alias-set for arrays.
10330 (record_component_aliases): For arrays and vectors do nothing.
10331 * c-common.c (strict_aliasing_warning): Handle the cases
10332 of alias set zero explicitly.
10333 * Makefile.in (dfp.o-warn): Add -Wno-error.
10335 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10337 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10339 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10340 tune_32 tune_64 to supported_defaults. Allow values not
10341 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10342 x86_64. Do not override cpu_32 or cpu_64 values from target name.
10343 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10344 with_cpu_64 to generic for 64-bit-supporting configurations, not
10345 with_cpu. Remove FIXMEs.
10346 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10347 --with-arch-64, --with-tune-32, --with-tune-64): Document.
10348 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10349 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10350 arch_32 and arch_64.
10352 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
10353 Olivier Hainque <hainque@adacore.com>
10355 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10356 Use DECL_SIZE_UNIT to retrieve the size of the field.
10358 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10360 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10361 with function calls after declarations. Lay out
10362 neon_float_type_node before further use.
10364 2008-06-11 Richard Guenther <rguenther@suse.de>
10366 * tree-flow.h (may_point_to_global_var): Declare.
10367 * tree-ssa-alias.c (may_point_to_global_var): New function.
10368 * tree-ssa-sink.c (is_hidden_global_store): Use it.
10370 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
10372 * configure.ac: Teach that fido supports .debug_line.
10373 * configure: Regenerate.
10375 2008-06-10 Tom Tromey <tromey@redhat.com>
10377 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10380 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10382 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10383 (encode_decimal64, decode_decimal64, encode_decimal128,
10384 decode_decimal128): Reverse order of 32-bit parts of value if host
10385 and target endianness differ.
10387 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
10389 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10390 Avoid division by 0.
10391 (tree_mod_pow2_value_transform): Likewise.
10392 (tree_ic_transform): Likewise.
10393 (tree_stringops_transform): Likewise.
10394 (tree_mod_subtract_transform): Likewise.
10395 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10396 (copy_edges_for_bb): Likewise.
10397 (initialize_cfun): Likewise.
10399 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10401 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10402 nonmemory_operand. Add "N" operand constraint.
10404 (*jcc_btdi_mask_rex64): New instruction and split pattern.
10405 (*jcc_btsi_mask): Ditto.
10406 (*jcc_btsi_mask_1): Ditto.
10408 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10410 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10411 TYPE_CANONICAL for copied element type.
10413 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10416 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10417 Add m_CORE2 and m_GENERIC.
10418 * config/i386/predicates.md (bt_comparison_operator): New predicate.
10419 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10421 (*jcc_btdi_rex64): New instruction and split pattern.
10422 (*jcc_btsi): Ditto.
10423 (*jcc_btsi_1): Ditto.
10424 (*btsq): Fix Intel asm dialect operand order.
10428 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
10430 PR middle-end/36447
10431 * simplify-rtx.c (simplify_subreg): Add check for shift count
10434 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
10436 * doc/md.texi: Synchronize with later constraints.md change.
10437 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10438 with a C implementation.
10439 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10441 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10442 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10443 when moving to and from MD_REGNUM.
10444 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10445 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10446 Handle byte and halfword moves.
10447 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10449 * config/mips/constraints.md (h): Turn into NO_REGS.
10450 (l, x): Update documentation.
10451 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10452 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10453 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10454 (HILO): New mode iterator.
10456 (any_div): New code iterator.
10457 (u): Extend code attribute to div and udiv.
10458 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10459 d_operand in the splitters. Remove redundant CONST_INT checks.
10460 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10461 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10462 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
10463 accordingly, using normal moves instead of unspecs to move LO into
10464 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
10465 (<u>mulsidi3): Handle expansion in C code.
10466 (<u>mulsidi3_32bit_internal): Rename to...
10467 (<u>mulsidi3_32bit): ...this.
10468 (<u>mulsidi3_32bit_r4000): Fix insn separator.
10469 (*<u>mulsidi3_64bit): Rename to...
10470 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
10471 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
10472 to set LO and HI to the multiplication result. Use a normal move
10473 for MFLO and an unspec for MFHI.
10474 (*<u>mulsidi3_64bit_parts): Replace with...
10475 (<u>mulsidi3_64bit_hilo): ...this new instruction.
10476 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10477 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10478 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
10479 instead of HI. Split the instruction into a separate multiplication
10480 and MFHI if !TARGET_FIX_R4000.
10481 (<su>muldi3_highpart): Likewise.
10482 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10483 and the "=h" clobber.
10484 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10485 (<u>mulditi3): New expander.
10486 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10487 (madsi): Remove "=h" clobber.
10488 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10489 Force the modulus result to be a GPR and split the instruction into
10490 a division followed by an MFHI after reload.
10491 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10492 (*lea_high64): Use d_operand in the define_peephole2. Likewise
10493 the MIPS16 HIGH define_split.
10494 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10495 of acc<->gpr moves to "multi".
10496 (*movdi_64bit): Replace the single "x" alternative with
10497 alternatives for moving into and out of "a".
10498 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
10499 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10500 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10501 Use d_operand in the splitters. Remove redundant CONST_INT checks.
10502 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
10503 (movti): New expander.
10504 (*movti, *movti_mips16): New insns.
10505 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10506 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10507 (mthi<GPR:mode>_<HILO:mode>): Likewise.
10508 * config/mips/predicates.md (fpr_operand): Delete.
10509 (d_operand): New predicate.
10511 2008-06-09 Michael Meissner <michael.meissner@amd.com>
10513 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10514 failure on some Bourne shells.
10515 (x86_64-*-*): Ditto.
10517 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
10519 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10521 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
10523 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10524 (sparc-sun-solaris2*): Likewise.
10526 2008-06-09 Arnaud Charlet <charlet@adacore.com
10528 * doc/install.texi: Update requirements to build the Ada compiler.
10530 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
10532 * df-scan.c (struct df_scan_problem_data): Remove the
10533 mw_link_pool alloc pool.
10534 (df_scan_free_internal): Don't free it.
10535 (df_scan_alloc): Don't allocate it.
10536 * df.h (struct df_link): Update comment.
10538 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
10540 * except.h: Correct checks for when SJLJ exceptions must be used.
10542 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10544 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10547 2008-06-08 Joseph Myers <joseph@codesourcery.com>
10549 PR tree-optimization/36218
10550 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10551 configure for the build system.
10552 (BUILD_LDFLAGS): Define.
10553 * configure: Regenerate.
10554 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10556 2008-07-08 Anatoly Sokolov <aesok@post.ru>
10559 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10560 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10561 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10563 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
10565 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10567 2008-06-07 Joseph Myers <joseph@codesourcery.com>
10569 * config.gcc (Obsolete configurations): Remove list of
10571 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10572 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
10573 targets matched by those patterns.
10574 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10575 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10576 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10577 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10578 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10579 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10580 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10581 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10582 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10583 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10584 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10585 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10586 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10587 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10588 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10589 Make code for Solaris 7 and greater unconditional for Solaris.
10590 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10591 Remove --with-* handling.
10592 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10593 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10594 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10595 LINK_OS_WINDISS_SPEC): Remove.
10596 * config/rs6000/sysv4.opt (mwindiss): Remove.
10597 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10598 * configure: Regenerate.
10599 * doc/cpp.texi: Don't mention BeOS.
10600 * doc/extend.texi (interrupt): Don't mention MS1.
10601 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10602 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10603 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10604 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10605 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10607 * doc/invoke.texi (MT Options): Remove.
10608 (-mwindiss): Remove.
10609 (CRIS Options): Remove cris-axis-aout references.
10610 (HPPA Options): Don't mention hppa1.1-*-pro.
10611 * doc/md.texi: (MorphoTech family): Remove.
10612 * libgcc2.c: Don't handle UWIN.
10613 * config/alpha/t-unicosmk: Remove.
10614 * config/alpha/unicosmk.h: Remove.
10615 * config/arm/kaos-arm.h: Remove.
10616 * config/arm/kaos-strongarm.h: Remove.
10617 * config/arm/strongarm-coff.h: Remove.
10618 * config/arm/strongarm-elf.h: Remove.
10619 * config/arm/strongarm-pe.h: Remove.
10620 * config/arm/t-strongarm-pe: Remove.
10621 * config/arm/t-xscale-coff: Remove.
10622 * config/arm/t-xscale-elf: Remove.
10623 * config/arm/xscale-coff.h: Remove.
10624 * config/arm/xscale-elf.h: Remove.
10625 * config/chorus.h: Remove.
10626 * config/cris/aout.h: Remove.
10627 * config/cris/aout.opt: Remove.
10628 * config/cris/t-aout: Remove.
10629 * config/i386/beos-elf.h: Remove.
10630 * config/i386/kaos-i386.h: Remove.
10631 * config/i386/ptx4-i.h: Remove.
10632 * config/i386/sco5.h: Remove.
10633 * config/i386/sco5.opt: Remove.
10634 * config/i386/sysv4-cpp.h: Remove.
10635 * config/i386/sysv5.h: Remove.
10636 * config/i386/t-beos: Remove.
10637 * config/i386/t-sco5: Remove.
10638 * config/i386/t-uwin: Remove.
10639 * config/i386/uwin.asm: Remove.
10640 * config/i386/uwin.h: Remove.
10641 * config/kaos.h: Remove.
10642 * config/mips/windiss.h: Remove.
10643 * config/mt: Remove directory.
10644 * config/pa/pa-osf.h: Remove.
10645 * config/pa/pa-pro-end.h: Remove.
10646 * config/pa/t-pro: Remove.
10647 * config/ptx4.h: Remove.
10648 * config/rs6000/beos.h: Remove.
10649 * config/rs6000/kaos-ppc.h: Remove.
10650 * config/rs6000/t-beos: Remove.
10651 * config/rs6000/windiss.h: Remove.
10652 * config/sh/kaos-sh.h: Remove.
10653 * config/sol2-6.h: Remove.
10654 * config/sparc/sol26-sld.h: Remove.
10655 * config/sparc/sysv4-only.h: Remove.
10656 * config/vax/bsd.h: Remove.
10657 * config/vax/t-memfuncs: Remove.
10658 * config/vax/ultrix.h: Remove.
10659 * config/vax/vaxv.h: Remove.
10660 * config/windiss.h: Remove.
10662 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
10664 PR rtl-optimization/36438
10665 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10666 for vector shifts with constant scalar shift operands.
10668 2008-06-06 Sandip Matte <sandip@rmicorp.com>
10670 * doc/invoke.texi: Document -march=xlr.
10671 * config/mips/xlr.md: New file.
10672 * config/mips/mips.md: Include it.
10674 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10675 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10676 (mips_rtx_cost_data): Likewise.
10678 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
10680 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10681 PRE_INC and PRE_DEC cases.
10683 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10685 PR rtl-optimization/36419
10686 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10687 the emitting jump insn.
10690 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10691 is not bool, boolify the whole *expr_p and convert to the desired type.
10693 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10695 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10696 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10697 Add omp_private_outer_ref hook, add another argument to
10698 omp_clause_default_ctor hook.
10699 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10700 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10701 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10702 hook_tree_tree_tree_tree_null.
10703 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10704 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10705 * hooks.c (hook_tree_tree_tree_tree_null): New function.
10706 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10707 * tree.def (OMP_TASK): New tree code.
10708 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10709 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10710 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10711 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10712 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10713 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10714 OMP_CLAUSE_COLLAPSE_EXPR): Define.
10715 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10716 (OMP_DIRECTIVE_P): Add OMP_TASK.
10717 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10718 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10719 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10720 and OMP_CLAUSE_UNTIED entries.
10721 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
10723 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10724 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10725 * tree-pretty-print.c (dump_omp_clause): Handle
10726 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
10727 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10728 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
10729 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
10730 warning about unsigned iterators. Change decl/init/cond/incr
10731 arguments to TREE_VECs, check arguments for all collapsed loops.
10732 (c_finish_omp_taskwait): New function.
10733 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
10735 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
10736 default_function_array_conversion on init. Add par_clauses argument.
10737 If decl is present in parallel's lastprivate clause, change it to
10738 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
10739 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
10740 collapse count in clauses.
10741 (c_parser_omp_for, c_parser_omp_parallel): Adjust
10742 c_parser_omp_for_loop callers.
10743 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
10744 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
10745 (c_parser_omp_clause_name): Handle collapse and untied clauses.
10746 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
10748 (c_parser_omp_clause_schedule): Handle schedule(auto).
10749 Include correct location in the error message.
10750 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
10751 and PRAGMA_OMP_CLAUSE_UNTIED.
10752 (OMP_TASK_CLAUSE_MASK): Define.
10753 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
10754 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
10755 * tree-nested.c (convert_nonlocal_omp_clauses,
10756 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
10757 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
10758 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10759 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
10761 (conver_nonlocal_reference, convert_local_reference,
10762 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
10763 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
10764 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
10765 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
10766 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
10767 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
10768 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
10769 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
10770 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10772 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
10773 * c-common.h (c_finish_omp_taskwait): New prototype.
10774 * gimple-low.c (lower_stmt): Handle OMP_TASK.
10775 * tree-parloops.c (create_parallel_loop): Create 1 entry
10776 vectors for OMP_FOR_{INIT,COND,INCR}.
10777 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10778 (make_edges): Handle OMP_TASK.
10779 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
10780 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10781 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
10782 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
10783 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
10784 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10785 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10786 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
10787 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
10788 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
10789 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
10790 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
10791 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
10792 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
10793 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
10794 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
10795 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
10796 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
10797 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
10798 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
10799 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
10800 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
10801 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
10802 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
10803 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
10804 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
10805 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
10806 original iterator is present in lastprivate clause or if
10807 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
10808 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10809 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
10810 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
10811 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
10812 if it is set, lookup var in outer contexts too. Handle
10813 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
10814 to be implicitly determined firstprivate for task regions.
10815 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
10816 if it is set, lookup var in outer contexts too. Set
10817 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
10818 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
10819 OMP_CLAUSE_UNTIED. Take region_type as last argument
10820 instead of in_parallel and in_combined_parallel.
10821 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
10823 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
10824 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
10825 (new_omp_context): Set default_kind to
10826 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
10827 (omp_region_type): New enum.
10828 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
10829 fields, add region_type.
10830 (new_omp_context): Take region_type as argument instead of is_parallel
10831 and is_combined_parallel.
10832 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
10833 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
10834 ctx->is_combined_parallel checks.
10835 (gimplify_omp_task): New function.
10836 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10838 * omp-low.c (extract_omp_for_data): Use schedule(static)
10839 for schedule(auto). Handle pointer and unsigned iterators.
10840 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
10841 Add loops argument. Extract data for collapsed OMP_FOR loops.
10842 (expand_parallel_call): Assert sched_kind isn't auto,
10843 map runtime schedule to index 3.
10844 (struct omp_for_data_loop): New type.
10845 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
10846 Add loop, loops, collapse and iter_type fields.
10847 (workshare_safe_to_combine_p): Disallow combined for if
10848 iter_type is unsigned long long. Don't combine collapse > 1 loops
10849 unless all bounds and steps are constant. Adjust extract_omp_for_data
10851 (expand_omp_for_generic): Handle pointer, unsigned and long long
10852 iterators. Handle collapsed OMP_FOR loops. Adjust
10853 for struct omp_for_data changes. If libgomp function doesn't return
10854 boolean_type_node, add comparison of the return value with 0.
10855 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
10856 pointer, unsigned and long long iterators. Adjust for struct
10857 omp_for_data changes.
10858 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
10859 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
10860 unsigned long long. Allocate loops array, pass it to
10861 extract_omp_for_data. For collapse > 1 loops use always
10862 expand_omp_for_generic.
10863 (omp_context): Add sfield_map and srecord_type fields.
10864 (is_task_ctx, lookup_sfield): New functions.
10865 (use_pointer_for_field): Use is_task_ctx helper. Change first
10866 argument's type from const_tree to tree. Clarify comment.
10867 In OMP_TASK disallow copy-in/out sharing.
10868 (build_sender_ref): Call lookup_sfield instead of lookup_field.
10869 (install_var_field): Add mask argument. Populate both record_type
10870 and srecord_type if needed.
10871 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
10873 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
10874 and DECL_FIELD_OFFSET.
10875 (scan_sharing_clauses): Adjust install_var_field callers. For
10876 firstprivate clauses on explicit tasks allocate the var by value in
10877 record_type unconditionally, rather than by reference.
10878 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
10879 Use is_taskreg_ctx instead of is_parallel_ctx.
10880 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10881 (create_omp_child_function_name): Add task_copy argument, use
10882 *_omp_cpyfn* names if it is true.
10883 (create_omp_child_function): Add task_copy argument, if true create
10884 *_omp_cpyfn* helper function.
10885 (scan_omp_parallel): Adjust create_omp_child_function callers.
10886 Rename parallel_nesting_level to taskreg_nesting_level.
10887 (scan_omp_task): New function.
10888 (lower_rec_input_clauses): Don't run constructors for firstprivate
10889 explicit task vars which are initialized by *_omp_cpyfn*.
10890 Pass outer var ref to omp_clause_default_ctor hook if
10891 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
10892 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
10893 OMP_CLAUSE_REDUCTION_INIT.
10894 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
10895 avoid duplicate setting of fields. Handle
10896 OMP_CLAUSE_PRIVATE_OUTER_REF.
10897 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
10898 copy-out if TREE_READONLY, only copy-in.
10899 (expand_task_copyfn): New function.
10900 (expand_task_call): New function.
10901 (struct omp_taskcopy_context): New type.
10902 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
10904 (lower_omp_parallel): Rename to...
10905 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
10906 Call create_task_copyfn if srecord_type is needed. Adjust
10908 (task_shared_vars): New variable.
10909 (check_omp_nesting_restrictions): Warn if work-sharing,
10910 barrier, master or ordered region is closely nested inside OMP_TASK.
10911 Add warnings for barrier if closely nested inside of work-sharing,
10912 ordered, or master region.
10913 (scan_omp_1): Call check_omp_nesting_restrictions even for
10914 GOMP_barrier calls. Rename parallel_nesting_level to
10915 taskreg_nesting_level. Handle OMP_TASK.
10916 (lower_lastprivate_clauses): Even if some lastprivate is found on a
10917 work-sharing construct, continue looking for them on parent parallel
10919 (lower_omp_for_lastprivate): Add lastprivate clauses
10920 to the beginning of dlist rather than end. Adjust for struct
10921 omp_for_data changes.
10922 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
10923 not after it. Handle collapsed OMP_FOR loops, adjust for
10924 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
10925 (get_ws_args_for): Adjust extract_omp_for_data caller.
10926 (scan_omp_for): Handle collapsed OMP_FOR
10927 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10928 (lower_omp_single_simple): If libgomp function doesn't return
10929 boolean_type_node, add comparison of the return value with 0.
10930 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
10931 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
10932 (parallel_nesting_level): Rename to...
10933 (taskreg_nesting_level): ... this.
10934 (is_taskreg_ctx): New function.
10935 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
10936 of is_parallel_ctx.
10937 (execute_lower_omp): Rename parallel_nesting_level to
10938 taskreg_nesting_level.
10939 (expand_omp_parallel): Rename to...
10940 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
10941 Call omp_task_call for OMP_TASK regions.
10942 (expand_omp): Adjust caller, handle OMP_TASK.
10943 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
10945 * bitmap.c (bitmap_default_obstack_depth): New variable.
10946 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
10947 if argument is NULL and bitmap_default_obstack is already initialized.
10948 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
10950 * matrix-reorg.c (matrix_reorg): Likewise.
10952 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
10954 * config/i386/i386.md (*indirect_jump): Macroize using P
10955 mode iterator. Remove !TARGET_64BIT from insn constraints.
10956 (*tablejump_1): Ditto.
10957 (*indirect_jump_rex64): Remove insn pattern.
10958 (*tablejump_1_rex64): Ditto.
10959 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
10960 and eh_return_si insn patterns.
10962 2008-06-06 Richard Guenther <rguenther@suse.de>
10964 * tree-ssa-structalias.c (merge_smts_into): Remove.
10965 (find_what_p_points_to): Do not bother to compute the
10966 points-to set for pt_anything pointers.
10967 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
10968 for pt_anything pointers is ok.
10970 2008-06-06 Jan Hubicka <jh@suse.cz>
10972 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
10974 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10976 * cgraph.c: Fix typos in comments.
10977 (cgraph_availability_names): Fix string typo.
10978 * fold-const.c: Fix typos in comments.
10979 (fold_binary): Fix typo in warning.
10980 * genautomata.c: Fix typos in comments.
10981 (check_presence_pattern_sets): Fix typo in local variable.
10982 (output_description): Fix typo in output.
10983 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
10984 * hwint.h: Likewise.
10985 * matrix-reorg.c (check_allocation_function): Likewise.
10986 * omega.c (smooth_weird_equations): Likewise.
10987 * auto-inc-dec.c: Fix typos in comments.
10988 * bb-reorder.c: Likewise.
10989 * builtins.c: Likewise.
10990 * c-common.c: Likewise.
10991 * c-cppbuiltin.c: Likewise.
10992 * c-parser.c: Likewise.
10993 * c-pretty-print.c: Likewise.
10994 * cfgcleanup.c: Likewise.
10995 * cfgexpand.c: Likewise.
10996 * cfghooks.c: Likewise.
10997 * cfglayout.c: Likewise.
10998 * cfgloopmanip.c: Likewise.
10999 * cgraphunit.c: Likewise.
11000 * coverage.c: Likewise.
11001 * dbxout.c: Likewise.
11002 * df-byte-scan.c: Likewise.
11003 * df-core.c: Likewise.
11004 * df-problems.c: Likewise.
11005 * df-scan.c: Likewise.
11007 * dominance.c: Likewise.
11008 * domwalk.c: Likewise.
11010 * dwarf2out.c: Likewise.
11011 * emit-rtl.c: Likewise.
11012 * et-forest.c: Likewise.
11013 * function.c: Likewise.
11014 * function.h: Likewise.
11016 * gcov-io.c: Likewise.
11017 * gcov.c: Likewise.
11018 * gcse.c: Likewise.
11019 * genattrtab.c: Likewise.
11020 * ggc-page.c: Likewise.
11021 * gimplify.c: Likewise.
11022 * gthr-lynx.h: Likewise.
11023 * haifa-sched.c: Likewise.
11024 * ipa-cp.c: Likewise.
11025 * ipa-inline.c: Likewise.
11026 * ipa-prop.h: Likewise.
11027 * ipa-pure-const.c: Likewise.
11028 * ipa-struct-reorg.c: Likewise.
11029 * ipa-struct-reorg.h: Likewise.
11030 * ipa-type-escape.c: Likewise.
11032 * loop-doloop.c: Likewise.
11033 * mips-tfile.c: Likewise.
11034 * mkmap-flat.awk: Likewise.
11035 * mkmap-symver.awk: Likewise.
11036 * modulo-sched.c: Likewise.
11037 * omp-low.c: Likewise.
11038 * optabs.c: Likewise.
11039 * optabs.h: Likewise.
11040 * opts.c: Likewise.
11041 * passes.c: Likewise.
11042 * postreload-gcse.c: Likewise.
11043 * postreload.c: Likewise.
11044 * predict.c: Likewise.
11045 * pretty-print.h: Likewise.
11046 * profile.c: Likewise.
11047 * protoize.c: Likewise.
11048 * ra-conflict.c: Likewise.
11049 * real.c: Likewise.
11050 * recog.c: Likewise.
11051 * regclass.c: Likewise.
11052 * regs.h: Likewise.
11053 * reload.c: Likewise.
11054 * rtl-error.c: Likewise.
11055 * rtlanal.c: Likewise.
11056 * scan.h: Likewise.
11057 * sched-rgn.c: Likewise.
11059 * stmt.c: Likewise.
11060 * target.h: Likewise.
11061 * tree-dfa.c: Likewise.
11062 * tree-eh.c: Likewise.
11063 * tree-flow-inline.h: Likewise.
11064 * tree-inline.c: Likewise.
11065 * tree-into-ssa.c: Likewise.
11066 * tree-loop-distribution.c: Likewise.
11067 * tree-nested.c: Likewise.
11068 * tree-parloops.c: Likewise.
11069 * tree-pass.h: Likewise.
11070 * tree-pretty-print.c: Likewise.
11071 * tree-profile.c: Likewise.
11072 * tree-scalar-evolution.c: Likewise.
11073 * tree-sra.c: Likewise.
11074 * tree-ssa-alias-warnings.c: Likewise.
11075 * tree-ssa-ccp.c: Likewise.
11076 * tree-ssa-coalesce.c: Likewise.
11077 * tree-ssa-dom.c: Likewise.
11078 * tree-ssa-dse.c: Likewise.
11079 * tree-ssa-forwprop.c: Likewise.
11080 * tree-ssa-live.c: Likewise.
11081 * tree-ssa-live.h: Likewise.
11082 * tree-ssa-loop-im.c: Likewise.
11083 * tree-ssa-loop-ivopts.c: Likewise.
11084 * tree-ssa-loop-niter.c: Likewise.
11085 * tree-ssa-loop-prefetch.c: Likewise.
11086 * tree-ssa-phiopt.c: Likewise.
11087 * tree-ssa-phiprop.c: Likewise.
11088 * tree-ssa-sccvn.c: Likewise.
11089 * tree-ssa-ter.c: Likewise.
11090 * tree-ssa-threadupdate.c: Likewise.
11091 * tree-ssa.c: Likewise.
11092 * tree-vect-analyze.c: Likewise.
11093 * tree-vect-transform.c: Likewise.
11094 * tree-vectorizer.c: Likewise.
11095 * tree-vn.c: Likewise.
11096 * tree-vrp.c: Likewise.
11097 * tree.c: Likewise.
11098 * tree.def: Likewise.
11099 * tree.h: Likewise.
11100 * unwind-dw2-fde.c: Likewise.
11101 * unwind.inc: Likewise.
11102 * value-prof.c: Likewise.
11103 * vmsdbgout.c: Likewise.
11105 2008-06-05 David Edelsohn <edelsohn@gnu.org>
11107 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11108 always place FP constants in the TOC for TARGET_POWERPC64.
11109 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11111 2008-06-05 Joseph Myers <joseph@codesourcery.com>
11113 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11114 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11115 enable for TARGET_E500_DOUBLE.
11116 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11117 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11118 floating-point modes like integer modes for E500 double.
11119 (rs6000_legitimate_offset_address_p): Likewise.
11120 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
11121 addressing for DDmode for E500 double.
11122 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11123 modes as using 64-bits of registers for E500 double.
11124 (spe_build_register_parallel): Do not handle DDmode or TDmode.
11125 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11126 specially for E500 double.
11127 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11128 TDmode for E500 double.
11129 (rs6000_gimplify_va_arg): Only handle SDmode in registers
11130 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11131 (rs6000_split_multireg_move): Do not handle TDmode specially for
11133 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11134 using 64-bit registers for E500 double.
11135 (emit_frame_save): Do not handle DDmode specially for E500 double.
11136 (gen_frame_mem_offset): Likewise.
11137 (rs6000_function_value): Do not call spe_build_register_parallel
11138 for DDmode or TDmode.
11139 (rs6000_libcall_value): Likewise.
11140 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11141 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11144 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
11146 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11149 2008-06-04 Junjie Gu <jgu@tensilica.com>
11151 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11152 comparison for frame pointers.
11154 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11157 * config/avr/avr.h (PUSH_ROUNDING): Remove.
11159 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11162 * builtins.c (expand_builtin_signbit): Don't take lowpart when
11163 register is already smaller or equal to required mode.
11165 2008-06-04 Xinliang David Li <davidxl@google.com>
11167 * tree-call-cdce.c: New file.
11168 (cond_dead_built_in_calls): New static variable.
11169 (input_domain): New struct.
11170 (check_pow): New function.
11171 (check_builtin_call): Ditto.
11172 (check_target_format): Ditto.
11173 (is_call_dce_candidate): Ditto.
11174 (gen_one_condition): Ditto.
11175 (gen_conditions_for_domain): Ditto.
11176 (get_domain): Ditto.
11177 (gen_conditions_for_pow_cst_base): Ditto.
11178 (gen_conditions_for_pow_int_base): Ditto.
11179 (gen_conditions_for_pow): Ditto.
11180 (get_no_error_domain): Ditto.
11181 (gen_shrink_wrap_conditions): Ditto.
11182 (shrink_wrap_one_built_in_call): Ditto.
11183 (shink_wrap_conditional_dead_built_in_calls): Ditto.
11184 (tree_call_cdce): Ditto.
11185 (gate_call_cdce): Ditto.
11186 (pass_call_cdce): New gimple pass.
11187 * passes.c: (init_optimization_passes): New pass.
11188 * tree-pass.h: New pass declaration.
11189 * opts.c (decode_options): New flag setting.
11190 * common.opt: Add -ftree-builtin-call-dce flag.
11191 * Makefile.in: Add new source file.
11192 * tempvar.def: New tv_id.
11193 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11195 2008-06-04 Richard Guenther <rguenther@suse.de>
11197 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11198 (is_call_clobbered): Always check var_ann->call_clobbered.
11199 (mark_call_clobbered): Always set var_ann->call_clobbered.
11200 (clear_call_clobbered): Always clear var_ann->call_clobbered.
11201 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11202 (reset_alias_info): Clear call clobbering info on MTAGs and
11204 (set_pt_anything): Set pt_global_mem.
11205 (create_tag_raw): Adjust comment.
11206 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11208 2008-06-04 Joseph Myers <joseph@codesourcery.com>
11209 Maxim Kuvyrkov <maxim@codesourcery.com>
11211 * config/m68k/m68k.opt (mxgot): New option.
11212 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11213 (m68k_output_addr_const_extra): New.
11214 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11215 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11216 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11217 * doc/invoke.texi (M680x0 Options): Document -mxgot.
11219 2008-06-04 Richard Guenther <rguenther@suse.de>
11221 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11222 negative or non-representable offsets.
11224 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
11226 * config/i386/i386.c (ix86_gen_leave): New.
11227 (ix86_gen_pop1): Likewise.
11228 (ix86_gen_add3): Likewise.
11229 (ix86_gen_sub3): Likewise.
11230 (ix86_gen_sub3_carry): Likewise.
11231 (ix86_gen_one_cmpl2): Likewise.
11232 (ix86_gen_monitor): Likewise.
11233 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11234 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11235 ix86_gen_one_cmpl2 and ix86_gen_monitor.
11236 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11237 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11238 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11239 (ix86_expand_epilogue): Updated.
11240 (print_operand): Handle integer register operand for 'z'.
11241 (ix86_expand_strlensi_unroll_1): Likewise.
11242 (ix86_expand_strlen): Likewise.
11243 (ix86_expand_builtin): Likewise.
11244 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11245 mov{q}/mov{l} and add{q}/add{l}.
11247 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11249 * config/i386/i386.md (P): New mode iterator.
11250 (SFmode push_operand splitter): Macroize DImode and SImode pushes
11251 using P mode iterator.
11252 (DFmode push_operand splitter): Ditto.
11253 (XFmode push_operand splitter): Ditto.
11254 (DFmode float_extend SFmode push_operand splitter): Ditto.
11255 (XFmode float_extend SFmode push_operand splitter): Do not generate
11256 SImode pushes for 64bit target. Macroize Dimode and SImode
11257 pushes using P mode iterator.
11258 (XFmode float_extend DFmode push_operand splitter): Ditto.
11260 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11262 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11263 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11264 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11265 return type to int.
11266 (ix86_call_abi_override): Remove check for call_used_regs.
11268 2008-06-03 Richard Guenther <rguenther@suse.de>
11270 * tree-ssa-structalias.c (find_func_aliases): Add constraints
11271 for the lhs of calls if the return type contains pointers.
11273 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11275 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11276 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11277 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11278 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11279 of cfun and DEFAULT_ABI to deceide abi mode.
11280 (DEFAULT_ABI): New.
11281 (REG_PARM_STACK_SPACE): Removed.
11282 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11283 (STACK_BOUNDARY): Use default target to deceide stack boundary.
11284 * config/i386/i386-protos.h (ix86_cfun_abi): New.
11285 (ix86_function_abi): Likewise.
11286 (ix86_function_type_abi): Likewise.
11287 (ix86_call_abi_override): Likewise.
11288 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11289 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11290 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11291 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11293 (X86_64_REGPARM_MAX): New.
11294 (X86_64_SSE_REGPARM_MAX): New.
11295 (X64_REGPARM_MAX): New.
11296 (X64_SSE_REGPARM_MAX): New.
11297 (X86_32_REGPARM_MAX): New.
11298 (X86_32_SSE_REGPARM_MAX): New.
11299 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11300 (ix86_function_regparm): Handle user calling abi.
11301 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11302 by DEFAULT_ABI versus SYSV_ABI check.
11303 (ix86_reg_parm_stack_space): New.
11304 (ix86_function_type_abi): New.
11305 (ix86_call_abi_override): New.
11306 (ix86_function_abi): New.
11307 (ix86_cfun_abi): New.
11308 (init_cumulative_args): Call abi specific initialization.
11309 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11310 (function_arg_64): Extend SSE_REGPARM_MAX check.
11311 (function_arg (): Remove TARGET_64BIT_MS_ABI.
11312 (ix86_pass_by_reference): Likewise.
11313 (ix86_function_value_regno_p): Likewise.
11314 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11315 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11316 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11317 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11318 (setup_incoming_varargs_64): Adjust regparm for call abi.
11319 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11320 (ix86_va_start): Likewise.
11321 (ix86_gimplify_va_arg): Likewise.
11322 (ix86_expand_prologue): Likewise.
11323 (output_pic_addr_const): Likewise.
11324 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11325 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11326 (x86_output_mi_thunk): Likewise.
11327 (x86_function_profiler): Likewise.
11328 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11329 (SYSV_ABI, MS_ABI): New constants.
11330 (DEFAULT_ABI): New.
11331 (init_regs): Add prototype of function in regclass.c file.
11332 (OVERRIDE_ABI_FORMAT): New.
11333 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11334 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11335 (OUTGOING_REG_PARM_STACK_SPACE): New.
11336 (ix86_reg_parm_stack_space): New prototype.
11337 (CUMULATIVE_ARGS): Add call_abi member.
11338 (machine_function): Add call_abi member.
11339 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11340 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11342 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
11345 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11346 (avr_builtin_setjmp_frame_value): New function.
11347 * config/avr/avr.md (nonlocal_goto_receiver): Define.
11348 (nonlocal_goto): Define.
11350 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
11352 * config/mips/mips.c (mips_emit_loadgp): Return early if
11353 there is nothing do to, otherwise emit a blockage if
11354 !TARGET_EXPLICIT_RELOCS || crtl->profile.
11355 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11357 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11359 * configure.ac: Drop unneeded backslash ending up in config.in.
11360 * acinclude.m4: Likewise.
11361 * config.in: Regenerate.
11363 2008-05-26 Jan Hubicka <jh@suse.cz>
11365 * predict.c (maybe_hot_frequency_p): Break out of...
11366 (maybe_hot_bb_p): ... here.
11367 (maybe_hot_edge_p): New.
11368 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11369 * basic-block.h (maybe_hot_edge_p): Declare.
11371 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
11373 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11374 (*cmpfp_<mode>_cc): Ditto.
11375 (*fp_jcc_8<mode>_387): Ditto.
11376 (*fop_<MODEF:mode>_2_i387): Ditto.
11377 (*fop_<MODEF:mode>_3_i387): Ditto.
11378 (*fop_xf_2_i387): Ditto.
11379 (*fop_xf_3_i387): Ditto.
11381 2008-06-02 Tomas Bily <tbily@suse.cz>
11383 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11385 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11387 * config/mips/mips.c (mips_valid_offset_p): New function.
11388 (mips_valid_lo_sum_p): Likewise.
11389 (mips_classify_address): Use them.
11390 (mips_force_address): New function.
11391 (mips_legitimize_address): Use it.
11392 * config/mips/mips.md (MOVE128): New mode iterator.
11393 (movtf): Require TARGET_64BIT. Remove empty strings.
11394 (*movtf_internal): Rename to...
11395 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
11396 of "R" and use {,fp}{load,store} attributes instead of "multi".
11397 Use a separate define_split.
11398 (*movtf_mips16): New pattern.
11400 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11402 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11403 * config/mips/mips.c (mips_expand_before_return): New function.
11404 (mips_expand_epilogue): Call it.
11405 * config/mips/mips.md (return): Turn into a define_expand.
11406 (*return): New insn.
11408 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11410 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11411 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11412 functions. Do not emit uses and clobbers of CONCATs; individually
11413 use and clobber their operands.
11414 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11415 gen_clobber, emit_use and gen_use.
11416 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11417 (expand_builtin_return): Likewise.
11418 * cfgbuild.c (count_basic_blocks): Likewise.
11419 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11420 * explow.c (emit_stack_restore): Likewise.
11421 * expmed.c (extract_bit_field_1): Likewise.
11422 * expr.c (convert_move, emit_move_complex_parts): Likewise.
11423 (emit_move_multi_word, store_constructor): Likewise.
11424 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11425 (thread_prologue_and_epilogue_insns): Likewise.
11426 * lower-subreg.c (resolve_simple_move): Likewise.
11427 * optabs.c (widen_operand, expand_binop): Likewise.
11428 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11429 * reload.c (find_reloads): Likewise.
11430 * reload1.c (eliminate_regs_in_insn): Likewise.
11431 * stmt.c (expand_nl_goto_receiver): Likewise.
11432 * config/alpha/alpha.md (builtin_longjmp): Likewise.
11433 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11434 * config/arm/arm.c (arm_load_pic_register): Likewise.
11435 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11436 * config/arm/arm.md (untyped_return): Likewise.
11437 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11438 * config/avr/avr.c (expand_prologue): Likewise.
11439 * config/bfin/bfin.c (do_unlink): Likewise.
11440 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11441 * config/cris/cris.c (cris_expand_prologue): Likewise.
11442 * config/darwin.c (machopic_indirect_data_reference): Likewise.
11443 (machopic_legitimize_pic_address): Likewise.
11444 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11445 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11446 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11447 (ix86_expand_convert_uns_didf_sse): Likewise.
11448 (ix86_expand_vector_init_general): Likewise.
11449 * config/ia64/ia64.md (eh_epilogue): Likewise.
11450 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11451 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11452 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11453 (config/iq2000/iq2000.c): Likewise.
11454 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11455 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11456 (builtin_longjmp): Likewise.
11457 * config/mn10300/mn10300.md (call, call_value): Likewise.
11458 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11459 * config/pdp11/pdp11.md (abshi2): Likewise.
11460 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11461 * config/s390/s390.c (s390_emit_prologue): Likewise.
11462 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11463 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11464 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11465 * config/sh/sh.c (prepare_move_operands): Likewise.
11466 (output_stack_adjust, sh_expand_epilogue): Likewise.
11467 (sh_set_return_address, sh_expand_t_scc): Likewise.
11468 * config/sparc/sparc.c (load_pic_register): Likewise.
11469 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11470 * config/spu/spu.c (spu_expand_epilogue): Likewise.
11471 * config/v850/v850.c (expand_epilogue): Likewise.
11473 2008-05-31 Anatoly Sokolov <aesok@post.ru>
11475 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11476 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11477 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11478 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11479 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11480 stack pointer register.
11481 (output_movhi): Remove code for interrupt specific writing to the
11482 stack pointer register.
11484 2008-05-31 Richard Guenther <rguenther@suse.de>
11486 PR tree-optimization/34244
11487 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11488 (tree_expr_nonzero_warnv_p): Likewise.
11489 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11490 ssa_name_nonnegative_p.
11491 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11492 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11493 not tree_expr_nonzero_warnv_p.
11495 PR tree-optimization/36262
11497 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
11499 PR tree-optimization/34244
11500 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11501 (record_numbers_of_iterations): New function.
11502 (execute_vrp): Cache the numbers of iterations of loops.
11503 * tree-scalar-evolution.c (scev_reset_except_niters):
11505 (scev_reset): Use scev_reset_except_niters.
11506 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11508 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
11510 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11511 __WORKAROUND_RETS when appropriate.
11513 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
11515 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11516 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11518 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11519 *fop_df_comm_sse insn patterns using MODEF mode iterator.
11520 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11521 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11522 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11523 *fop_df_1_mixed insn patterns using MODEF mode iterator.
11524 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11525 *fop_df_1_sse insn patterns using MODEF mode iterator.
11526 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11527 *fop_df_1_i387 insn patterns using MODEF mode iterator.
11528 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11529 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11530 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11531 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11532 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11533 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11534 (*fop_xf_4_i387): Use <MODE> for mode attribute.
11535 (*fop_xf_5_i387): Ditto.
11536 (*fop_xf_6_i387): Ditto.
11538 2008-05-30 Richard Guenther <rguenther@suse.de>
11540 * builtins.c (build_string_literal): Avoid generating
11541 a non-gimple_val result.
11543 2008-05-30 DJ Delorie <dj@redhat.com>
11545 * exec-tool.in: Use an environment variable (private) instead of a
11546 file (shared) as a semaphore, so as to not break parallel builds.
11548 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
11550 * optabs.c (maybe_encapsulate_block): Remove.
11551 (emit_libcall_block): Adjust accordingly.
11552 * optabs.h (maybe_encapsulate_block): Remove prototype.
11554 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11555 Don't use maybe_encapsulate_block.
11557 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
11559 * config/rs6000/rs6000.c (rs6000_legitimize_address,
11560 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11561 rtx is a SYMBOL_REF before calling get_pool_constant.
11563 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
11565 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11567 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
11569 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11570 rather than OS names to choose INO_T_EQ definition.
11571 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11572 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11574 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
11577 * config/darwin-f.c: New.
11578 * config/t-darwin: Added rule to build darwin-f.o.
11579 * config.gcc: Defined new variable, fortran_target_objs.
11580 (*-*-darwin*): Set fortran_target_objs.
11581 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11582 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11583 * configure: Regenerated.
11585 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
11588 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11589 canonical type if needed.
11591 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
11593 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11595 2008-05-29 Richard Guenther <rguenther@suse.de>
11597 PR tree-optimization/36343
11598 PR tree-optimization/36346
11599 PR tree-optimization/36347
11600 * tree-flow.h (clobber_what_p_points_to): Declare.
11601 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11602 pointed-to variable is dereferenced is irrelevant to whether
11603 the pointer can access the pointed-to variable.
11604 (clobber_what_p_points_to): New function.
11605 * tree-ssa-alias.c (set_initial_properties): Use it.
11606 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11607 call clobber check for NMTs.
11609 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
11611 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11612 for printing gcov_type.
11614 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
11616 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11617 and the eh region information.
11618 * value-prof.c (gimple_move_stmt_histograms): New function.
11619 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11621 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
11623 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11625 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
11627 * value-prof.c (tree_ic_transform): Print counts.
11628 * tree-profile.c (tree_gen_ic_func_profiler):
11629 Clear __gcov_indreict_call_callee variable to avoid misattribution
11632 2008-05-28 Rafael Espíndola <espindola@google.com>
11634 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11637 2008-05-28 Richard Guenther <rguenther@suse.de>
11639 PR tree-optimization/36339
11640 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11641 and clobbering code out of the loop.
11643 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
11645 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11648 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11649 s390_contiguous_bitmask_p, s390_symref_operand_p,
11650 s390_check_symref_alignment, s390_reload_larl_operand,
11651 s390_reload_symref_address): New functions.
11652 (s390_branch_condition_mnemonic): Support compare and branch
11654 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11655 and 'W' constraints.
11656 (s390_secondary_reload): Add secondary reloads for unaligned
11657 symbol refs or symbol refs to floating point or QI/TI mode
11659 (legitimate_address_p): Accept symbol references as addresses.
11660 (s390_expand_insv): Use rotate and insert selected bits
11661 instruction for insv when building for z10.
11662 (print_operand_address): Handle symbol ref addresses.
11663 (print_operand): Output modifier 'c' added for signed byte values.
11664 (s390_encode_section_info): Mark symbol refs with
11665 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11667 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11668 (length attribute): RRF, RRR have 4 byte length.
11669 (FPALL, INTALL): New mode iterators added.
11670 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11671 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11672 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11673 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11674 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11675 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11676 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11677 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11679 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11680 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11681 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11682 reload<INTALL:mode><P:mode>_toreg_z10,
11683 reload<FPALL:mode><P:mode>_tomem_z10,
11684 reload<FPALL:mode><P:mode>_toreg_z10,
11685 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11686 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11687 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11688 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11690 (movmem, clrmem, cmpmem): New splitters added.
11692 * config/s390/predicates.md (larl_operand): Use
11693 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11694 SYMBOL_REF_ALIGN1_P.
11695 (s390_signed_integer_comparison,
11696 s390_unsigned_integer_comparison): New predicates.
11698 * config/s390/s390-protos.h (s390_check_symref_alignment,
11699 s390_contiguous_bitmask_p, s390_reload_larl_operand,
11700 s390_reload_symref_address,
11701 s390_compare_and_branch_condition_mask): Prototypes added.
11703 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11704 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11705 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11707 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
11709 * config/s390/s390.c (z10_cost): New cost function for z10.
11710 (s390_handle_arch_option, override_options): Support -march=z10 switch.
11711 (s390_issue_rate): Adjust issue rate for z10.
11712 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11713 (processor_flags): Add PF_Z10.
11714 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11715 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11716 * gcc/config.gcc: Add z10.
11718 2008-05-28 Richard Guenther <rguenther@suse.de>
11720 PR tree-optimization/36291
11721 * tree-flow. h (struct gimple_df): Remove var_anns member.
11722 * tree-flow-inline.h (gimple_var_anns): Remove.
11723 (var_ann): Simplify.
11724 * tree-dfa.c (create_var_ann): Simplify.
11725 (remove_referenced_var): Clear alias info from var_anns of globals.
11726 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
11727 (delete_tree_ssa): Clear alias info from var_anns of globals.
11728 Do not free var_anns.
11729 (var_ann_eq): Remove.
11730 (var_ann_hash): Likewise.
11732 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
11734 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
11735 and loongson2f entries.
11736 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
11737 * config/mips/mips.h (processor_type): Add Loongson-2E
11738 and Loongson-2F entries.
11739 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
11740 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
11741 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
11742 * doc/invoke.texi (MIPS Options): Document loongson2e
11743 and loongson2f processor names.
11745 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
11749 * config/i386/i386.c (ix86_function_arg_boundary): Use
11750 alignment of canonical type.
11751 (ix86_expand_vector_move): Check unaligned memory access for
11754 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
11756 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
11757 Moved to the front of file.
11759 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
11760 H.J. Lu <hongjiu.lu@intel.com>
11762 * dwarf2out.c (current_fde): New.
11764 (lookup_cfa:): Likewise.
11765 (dwarf2out_end_epilogue): Likewise.
11766 (dwarf2out_note_section_used): Likewise.
11768 2008-05-27 Michael Matz <matz@suse.de>
11771 * c.opt (Wenum-compare): New warning option.
11772 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
11774 2008-05-27 Michael Matz <matz@suse.de>
11776 PR middle-end/36326
11777 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
11779 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
11780 into memory as tail calls.
11782 2008-05-27 Richard Guenther <rguenther@suse.de>
11784 PR tree-optimization/36339
11785 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
11786 pointers cause all addressable variables to be call clobbered.
11788 2008-05-27 Richard Guenther <rguenther@suse.de>
11790 PR tree-optimization/36245
11791 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
11793 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
11795 * config/s390/s390.md: Replace all occurences of the 'm'
11796 constraint with 'RT'.
11798 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
11800 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
11802 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
11804 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
11805 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
11806 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
11808 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
11810 * reload.c: (find_reloads): Skip alternatives according to the
11811 "enabled" attribute. Constify the constraint variable.
11812 * recog.c (get_attr_enabled): Add default implementation.
11813 (extract_insn): Set the alternative_enabled_p array
11814 in the recog_data struct.
11815 (preprocess_constraints, constrain_operands): Skip
11816 alternatives according to the "enabled" attribute
11817 * recog.h (struct recog_data): New field alternative_enabled_p.
11818 (skip_alternative): New inline function.
11819 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
11820 (record_reg_classes): Skip alternative according to the
11821 "enabled" attribute.
11823 * doc/md.texi: Add documention for the "enabled" attribute.
11825 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
11827 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
11828 * postreload.c (reload_cse_simplify_operands): Replace 'm'
11829 constraint with TARGET_MEM_CONSTRAINT.
11830 * recog.c (asm_operand_ok, preprocess_constraints,
11831 constrain_operands): Likewise.
11832 * regclass.c (record_reg_classes): Likewise.
11833 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
11834 * reload1.c (maybe_fix_stack_asms): Likewise.
11835 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11836 * recog.h: Adjust comment.
11837 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
11838 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
11839 * doc/md.texi: Add a note to description of 'm' constraint.
11840 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
11842 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
11844 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
11845 that the bitfield is of integral type before testing its precision.
11847 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
11848 Sa Liu <saliu@de.ibm.com>
11850 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
11851 __modti3, __udivti3, __umodti3 and __udivmodti4.
11852 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
11853 that implement TImode mul and div functions.
11854 * config/spu/multi3.c: New. Implement __multi3.
11855 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
11856 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
11859 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
11861 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
11862 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
11863 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
11864 tls_sysv_suffix): New mode and mode attribute iterators.
11865 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
11866 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
11867 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
11868 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
11869 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
11872 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
11874 PR tree-optimization/36329
11875 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
11876 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
11877 * cgraphbuild.c (initialize_inline_failed): Use the latter
11878 macro in lieu of the former.
11879 * ipa-inline.c (cgraph_mark_inline): Likewise.
11880 (cgraph_decide_inlining_of_small_function): Likewise.
11881 (cgraph_decide_inlining): Likewise.
11882 (cgraph_decide_inlining_incrementally): Likewise.
11884 2008-05-26 Tristan Gingold <gingold@adacore.com>
11885 Anatoly Sokolov <aesok@post.ru>
11887 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
11888 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
11889 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
11890 optimization for 'avr6' architecture.
11892 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
11895 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
11897 2008-05-26 Richard Guenther <rguenther@suse.de>
11899 * tree-ssa-sccvn.c (expr_has_constants): Declare.
11900 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
11902 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
11904 PR middle-end/36253
11905 * caller-save.c (insert_restore): Verify alignment of spill space.
11906 (insert_save): Likewise.
11907 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
11908 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
11909 (STACK_SLOT_ALIGNMENT): Likewise.
11910 * function.c (LOCAL_ALIGNMENT): Removed.
11911 (get_stack_local_alignment): New.
11912 (assign_stack_local): Use it. Set alignment on stack slot.
11913 (assign_stack_temp_for_type): Use get_stack_local_alignment.
11914 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
11915 (STACK_SLOT_ALIGNMENT): New.
11916 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
11917 stack slot in XFmode.
11919 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
11921 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
11924 * config/i386/i386.md (allocate_stack_worker_64): Make sure
11925 argument operand in rax isn't removed.
11927 2008-05-26 Richard Guenther <rguenther@suse.de>
11929 PR middle-end/36300
11930 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
11931 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
11933 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
11936 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
11938 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
11940 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
11941 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
11943 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
11945 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
11946 build a trampoline if we don't want one.
11947 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
11948 return zero for nested functions if we don't want a trampoline.
11950 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
11952 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
11954 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
11957 * c.opt: Removed undocumented option '-lang-fortran'.
11958 * c-common.h: Removed global variable 'lang_fortran'.
11959 * c-opts.c (c_common_handle_option): Removed code to handle
11960 option '-lang-fortran'. Updated includes.
11961 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
11962 definition of '__GFORTRAN__'.
11963 (define__GNUC__): Reimplemented to use BASEVER and
11964 cpp_define_formatted.
11965 (builtin_define_with_value_n): Removed.
11966 * c-incpath.h: Renamed to ...
11967 * incpath.h: ... this.
11968 * c-incpath.c: Renamed to ...
11969 * incpath.c: ... this. Updated includes.
11970 * fix-header.c: Updated includes.
11971 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
11972 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
11973 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
11975 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
11977 * tree.h: Update the table of flags used on tree nodes.
11978 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
11979 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
11980 (FORCED_LABEL): Add access check.
11981 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
11982 (ASM_INPUT_P): Likewise.
11983 (ASM_VOLATILE_P): Likewise.
11984 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
11985 (OMP_SECTION_LAST): Access private_flag directly.
11986 (OMP_RETURN_NOWAIT): Likewise.
11987 (OMP_PARALLEL_COMBINED): Likewise.
11988 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
11989 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
11990 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
11991 deprecated_flag directly.
11993 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
11995 * final.c (frame_pointer_needed): Removed.
11996 * flags.h (frame_pointer_needed): Likewise.
11998 * function.h (rtl_data): Add frame_pointer_needed.
11999 (frame_pointer_needed): New.
12001 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
12003 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12005 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
12007 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12010 2008-05-25 Alan Modra <amodra@bigpond.net.au>
12012 * c-common.c (strip_array_types): Move function to..
12014 (get_inner_array_type): Delete.
12015 * c-common.h (strip_array_types): Move declaration to..
12017 (get_inner_array_type): Delete.
12018 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12019 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12020 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12021 * config/pa/pa.c (emit_move_sequence): Likewise.
12023 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
12025 * config/i386/i386.md (*sse_prologue_save_insn): Set length
12028 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
12030 * function.c: Include target hook for nonlocal_goto frame value.
12032 2008-05-24 Richard Guenther <rguenther@suse.de>
12034 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12035 variable can be only accessed through a pointer or a union.
12037 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12039 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12040 * doc/extend.texi: Likewise.
12042 2008-05-23 DJ Delorie <dj@redhat.com>
12044 * config/m32c/jump.md (untyped_call): Add.
12046 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12047 for A24 to PSImode.
12048 (m32c_address_cost): Detail costs for indirect offsets.
12050 2008-05-23 Rafael Espíndola <espindola@google.com>
12052 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12053 if a node is a SUBREG.
12054 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12057 2008-05-23 Paul Brook <paul@codesourcery.com>
12058 Carlos O'Donell <carlos@codesourcery.com>
12060 * doc/extend.texi: Clarify use of __attribute__((naked)).
12061 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12062 * target.h (gcc_target): Add allocate_stack_slots_for_args.
12063 * function.c (use_register_for_decl): Use
12064 targetm.calls.allocate_stack_slots_for_args.
12065 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12066 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12067 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12069 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
12071 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12073 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
12075 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12076 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12077 is only rounded once.
12079 2008-05-23 Richard Guenther <rguenther@suse.de>
12081 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12083 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
12084 Jakub Jelinek <jakub@redhat.com>
12087 * configure.ac: Handle --enable-cld.
12088 * configure: Regenerated.
12089 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12090 * config/i386/i386.h (struct machine_function): Add needs_cld field.
12091 (ix86_current_function_needs_cld): New define.
12092 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12093 (cld): New isns pattern.
12094 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12095 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12096 * config/i386/i386.opt (mcld): New option.
12097 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12098 TARGET_CLD and ix86_current_function_needs_cld.
12099 (override_options): Use -mcld by default for 32-bit code if
12102 * doc/install.texi (Options specification): Document --enable-cld.
12103 * doc/invoke.texi (Machine Dependent Options)
12104 [i386 and x86-64 Options]: Add -mcld option.
12105 (Intel 386 and AMD x86-64 Options): Document -mcld option.
12107 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
12108 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12109 (return_in_memory_64): Likewise.
12110 (return_in_memory_ms_64): Likewise.
12112 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12114 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12115 * builtins.c (fold_builtin_fpclassify): New.
12116 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12117 * builtins.def (BUILT_IN_FPCLASSIFY): New.
12118 * c-common.c (handle_type_generic_attribute): Adjust to accept
12119 fixed arguments before an elipsis.
12120 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12121 * doc/extend.texi: Document __builtin_fpclassify.
12123 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
12125 * omp-low.c (gate_expand_omp_ssa): Remove.
12126 (pass_expand_omp_ssa): Remove.
12127 (gate_expand_omp): Do not check for flag_openmp_ssa.
12128 * common.opt (-fopenmp-ssa): Remove.
12129 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12131 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
12133 * config/sh/sh.opt (mfixed-range): New option.
12134 * config/sh/sh-protos.h (sh_fix_range): Declare.
12135 * config/sh/sh.c (sh_fix_range): New function.
12136 * config/sh/sh.h (sh_fixed_range_str): Declare.
12137 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12139 * doc/invoke.texi (SH Options): Document -mfixed-range.
12141 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
12143 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12144 it before the redeclaration.
12146 2008-05-22 Anatoly Sokolov <aesok@post.ru>
12148 * config/avr/avr.c (get_sequence_length): Add new function.
12149 (expand_prologue, expand_epilogue): Remove duplicate code.
12151 2008-05-22 Rafael Espíndola <espindola@google.com>
12153 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12156 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
12158 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12159 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12161 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12162 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12163 (vect_update_misalignment_for_peel): Likewise.
12164 (vector_alignment_reachable_p): Likewise.
12165 * tree-vect-transform.c (vectorizable_load): Likewise.
12166 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12167 (get_vectype_for_scalar_type): Pass mode of scalar_type
12168 to UNITS_PER_SIMD_WORD.
12170 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12171 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12172 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12173 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12174 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12176 2008-05-22 Ira Rosen <irar@il.ibm.com>
12178 PR tree-optimization/36293
12179 * tree-vect-transform.c (vect_transform_strided_load): Don't check
12180 if the first load must be skipped because of a gap.
12182 2008-05-22 Richard Guenther <rguenther@suse.de>
12184 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
12185 more cases of offset disambiguation that is possible if
12186 strict-aliasing rules apply.
12187 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12188 for basic offset and type-based disambiguation.
12190 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12192 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12193 ix86_expand_vector_set on V16QImode for SSE4.1.
12195 2008-05-21 Tom Tromey <tromey@redhat.com>
12197 * c.opt (Wimport): Mark as undocumented.
12198 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12200 (Warning Options): Likewise.
12201 * doc/cppopts.texi: Don't mention -Wimport.
12203 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
12205 PR tree-optimization/36287
12206 PR tree-optimization/36286
12207 * lambda-code.c (build_access_matrix): Do not use the loop->num
12208 for computing the number of induction variables: use the loop depth
12211 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
12214 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12215 option -f(no-)leading-underscore.
12217 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12219 * config/i386/i386.c (ix86_expand_vector_init_general): Use
12220 GET_MODE_NUNITS (mode).
12222 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
12224 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12225 (-mmulhw): Add 464 to description.
12226 (-mdlmzb): Likewise.
12227 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12228 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12230 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12231 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12232 * config/rs6000/rs6000.md: Update comments for 464.
12234 2008-05-21 Janis Johnson <janis187@us.ibm.com>
12236 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12238 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12240 * config/i386/sse.md (vec_extractv4sf): Removed.
12241 (vec_extractv2df): Likewise.
12242 (vec_extractv2di): Likewise.
12243 (vec_extractv4si): Likewise.
12244 (vec_extractv8hi): Likewise.
12245 (vec_extractv16qi): Likewise.
12246 (vec_extract<mode>): New.
12248 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12250 * config/i386/sse.md (vec_setv4sf): Removed.
12251 (vec_setv2df): Likewise.
12252 (vec_setv2di): Likewise.
12253 (vec_setv4si): Likewise.
12254 (vec_setv8hi): Likewise.
12255 (vec_setv16qi): Likewise.
12256 (vec_set<mode>): New.
12258 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12260 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12261 goto for vec_concat and vec_interleave.
12263 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12265 * config/i386/sse.md (vec_initv4sf): Removed.
12266 (vec_initv2df): Likewise.
12267 (vec_initv2di): Likewise.
12268 (vec_initv4si): Likewise.
12269 (vec_initv8hi): Likewise.
12270 (vec_initv16qi): Likewise.
12271 (vec_init<mode>): New.
12273 2008-05-21 Joseph Myers <joseph@codesourcery.com>
12275 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12277 2008-05-21 Tom Tromey <tromey@redhat.com>
12279 * ggc-zone.c (lookup_page_table_if_allocated): New function.
12280 (zone_find_object_offset): Likewise.
12281 (gt_ggc_m_S): Likewise.
12282 (highest_bit): Likewise.
12283 * ggc-page.c (gt_ggc_m_S): New function.
12284 * stringpool.c (string_stack): Remove.
12285 (init_stringpool): Update.
12286 (ggc_alloc_string): Use ggc_alloc.
12287 (maybe_delete_ident): New function.
12288 (ggc_purge_stringpool): Likewise.
12289 (gt_ggc_m_S): Remove.
12290 * ggc-common.c (ggc_protect_identifiers): New global.
12291 (ggc_mark_roots): Call ggc_purge_stringpool. Use
12292 ggc_protect_identifiers.
12293 * ggc.h (ggc_protect_identifiers): Declare.
12294 (gt_ggc_m_S): Update.
12295 (ggc_purge_stringpool): Declare.
12296 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12297 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12299 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12301 2008-05-21 David S. Miller <davem@davemloft.net>
12303 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12306 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
12308 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12311 2008-05-20 David Daney <ddaney@avtrex.com>
12313 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12314 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12315 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12316 UNSPEC_UPDATE_GOT_VERSION): Renumber.
12317 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12318 (atomic_hiqi_op): New define_code_iterator.
12319 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12320 mips_expand_compare_and_swap_12.
12321 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12322 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
12323 (sync_<optab><mode>, sync_old_<optab><mode>,
12324 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12325 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12326 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12327 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12328 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12329 (test_and_set_12): New insn.
12330 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12331 sync_new_<optab><mode>, sync_old_nand<mode>,
12332 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
12333 clobber to operand 0 for SI and DI mode insns.
12334 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12335 mips_gen_fn_4): New typedefs.
12336 (mips_gen_fn_ptrs): Define new union type.
12337 (mips_expand_compare_and_swap_12): Remove declaration.
12338 (mips_expand_atomic_qihi): Declare function.
12339 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12340 (mips_expand_atomic_qihi): ... this. Use new generator function
12342 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12343 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12344 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12345 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12346 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12347 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12348 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12349 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12350 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12351 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12354 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
12356 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12359 2008-05-20 Anatoly Sokolov <aesok@post.ru>
12361 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12362 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12363 (avr_attribute_table): Add 'OS_main' function attribute.
12364 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12365 functions with 'OS_main' attribute.
12367 2008-05-20 Richard Guenther <rguenther@suse.de>
12369 PR tree-optimization/35204
12370 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12371 helper, split out from ...
12372 (DFS): ... here. Make the DFS walk non-recursive.
12374 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
12375 Jan Sjodin <jan.sjodin@amd.com>
12377 PR tree-optimization/36181
12378 * tree-parloops.c (loop_has_vector_phi_nodes): New.
12379 (parallelize_loops): Don't parallelize when the loop has vector
12382 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12383 Sebastian Pop <sebastian.pop@amd.com>
12385 * tree-loop-linear.c (gather_interchange_stats): Look in the access
12386 matrix, and never look at the tree representation of the memory
12388 (linear_transform_loops): Computes parameters and access matrices.
12389 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12391 (access_matrix_get_index_for_parameter): New.
12392 * tree-data-ref.h (struct access_matrix): New.
12393 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12394 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12395 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12396 am_vector_index_for_loop): New.
12397 (struct data_reference): Add field access_matrix.
12398 (DR_ACCESS_MATRIX): New.
12399 (compute_data_dependences_for_loop): Update declaration.
12400 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12401 * lambda.h (lambda_vector_vec_p): Declared.
12402 * lambda-code.c: Depend on pointer-set.h.
12403 (lambda_collect_parameters_from_af, lambda_collect_parameters,
12404 av_for_af_base, av_for_af, build_access_matrix,
12405 lambda_compute_access_matrices): New.
12406 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12408 2008-05-20 Joseph Myers <joseph@codesourcery.com>
12410 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12411 $SOURCEDIR/include.
12413 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12414 Sebastian Pop <sebastian.pop@amd.com>
12416 PR tree-optimization/36206
12417 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12419 (instantiate_scev_1): Rename flags to fold_conversions.
12420 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12421 outeside instantiation_loop.
12422 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12423 (evolution_function_is_affine_or_constant_p): Removed.
12424 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12426 (analyze_siv_subscript): Pass in the loop nest number.
12427 Call evolution_function_is_affine_in_loop instead of
12428 evolution_function_is_affine_p.
12429 (analyze_overlapping_iterations): Pass in the loop nest number.
12431 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12432 Sebastian Pop <sebastian.pop@amd.com>
12434 PR tree-optimization/36206
12435 * tree-chrec.h (chrec_fold_op): New.
12436 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12439 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
12441 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12443 (remove_duplicates): Do not set inode on non-inode systems.
12446 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
12448 * config.gcc (tm_file): Update comments about relative pathnames.
12450 2008-05-20 Richard Guenther <rguenther@suse.de>
12452 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12453 * tree-ssa-sccvn.c (process_scc): Likewise.
12454 * tree-ssa-sink.c (execute_sink_code): Likewise.
12455 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12456 * tree-vrp.c (process_assert_insertions): Likewise.
12457 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12458 (perform_tree_ssa_dce): Likewise.
12459 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12460 (dump_dominator_optimization_stats): Likewise.
12461 * tree-vectorizer.c (vectorize_loops): Likewise.
12463 2008-05-20 Richard Guenther <rguenther@suse.de>
12465 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12467 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
12469 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12470 (ix86_i386elf_return_in_memory): Likewise.
12471 (ix86_i386interix_return_in_memory): Likewise.
12472 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12473 (SUBTARGET_RETURN_IN_MEMORY): New.
12474 * config/i386/i386elf.h: Likewise.
12475 * config/i386/ptx4-i.h: Likewise.
12476 * config/i386/sol2-10.h: Likewise.
12477 * config/i386/sysv4.h: Likewise.
12478 * config/i386/vx-common.h: Likewise.
12479 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12480 * config/i386/i386.c (ix86_return_in_memory): Made static and
12481 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12482 (ix86_i386elf_return_in_memory): Removed.
12483 (ix86_i386interix_return_in_memory): Removed.
12484 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12485 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12487 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
12489 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12491 2008-05-19 Xinliang David Li <davidxl@google.com>
12493 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12495 * common.opt: Ditto.
12496 * doc/invoke.texi: Ditto.
12498 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
12500 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12501 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12503 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
12505 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12506 sizes of operand array from 8/4 to 4/2.
12507 (ix86_expand_vector_init_general): Change size of operand array
12508 from 32 to 16. Remove op0, op1 and half_mode.
12510 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
12512 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12513 (ix86_expand_vector_init_interleave): Likewise.
12514 (ix86_expand_vector_init_general): Use them. Assert
12515 word_mode == SImode when n_words == 4.
12517 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
12519 * config/i386/i386.c (ix86_secondary_reload): New static function.
12520 (TARGET_SECONDARY_RELOAD): New define.
12521 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12522 * config/i386/i386.md (reload_outqi): Remove.
12524 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12526 PR middle-end/35509
12527 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12528 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
12529 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12530 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12531 (fold_builtin_1): Likewise.
12532 * builtins.def (BUILT_IN_ISINF_SIGN): New.
12533 c-common.c (check_builtin_function_arguments): Handle
12534 BUILT_IN_ISINF_SIGN.
12535 * doc/extend.texi: Document __builtin_isinf_sign.
12536 * fold-const.c (operand_equal_p): Handle COND_EXPR.
12538 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
12540 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12541 EH cleanup at the end of the pass, search for those that have been
12542 turned into forwarder blocks and do the cleanup on their successor.
12544 2008-05-18 Richard Guenther <rguenther@suse.de>
12546 * tree-cfg.c (verify_gimple_expr): Allow conversions from
12547 pointers to sizetype and vice versa.
12549 2008-05-18 Xinliang David Li <davidxl@google.com>
12551 * gcc/tree-ssa-dce.c: Coding style fix.
12552 (check_pow): Documentation comment.
12553 (check_log): Documenation comment. Coding style fix.
12554 (is_unnecessary_except_errno_call): Ditto.
12555 (gen_conditions_for_pow): Ditto.
12556 (gen_conditions_for_log): Ditto.
12557 (gen_shrink_wrap_conditions): Ditto.
12558 (shrink_wrap_one_built_in_calls): Ditto.
12559 * gcc/doc/invoke.texi: Better documentation string.
12560 * ChangeLog: Fix wrong change log entries from
12561 May 17 checkin on function call DCE.
12563 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
12565 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12567 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
12569 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12570 * df-problems.c (simulation routines): Fixed block comment to
12571 properly say how to add forwards scanning functions.
12573 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
12575 * tree-inline.c (setup_one_parameter): Remove dead code.
12577 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
12579 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12580 a BIT_AND_EXPR only for an INTEGER_TYPE.
12582 2008-05-17 Xinliang David Li <davidxl@google.com>
12584 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12585 (check_pow, check_log, is_unnecessary_except_errno_call): New
12586 functions to check for eliminating math functions that are pure
12587 except for setting errno.
12588 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12589 general condition expressions for shrink-wrapping pow/log calls.
12590 (gen_shrink_wrap_conditions): Ditto.
12591 (shrink_wrap_one_built_in_call): Ditto.
12592 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12593 (mark_operand_necessary): If debugging, output if OP is necessary.
12594 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12596 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12598 * gcc/common.opt: New user flag -ftree-builtin-dce.
12599 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12601 2008-05-16 David S. Miller <davem@davemloft.net>
12603 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12604 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12606 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
12609 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12611 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12613 * ifcvt.c (dead_or_predicable): Rename
12614 df_simulate_one_insn_backwards to df_simulate_one_insn.
12615 * recog.c (peephole2_optimize): Ditto.
12616 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12618 * df.h: Rename df_simulate_one_insn_backwards to
12619 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
12620 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12621 scanning of defs and uses.
12622 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12623 (df_simulate_one_insn_forwards): Removed.
12625 2008-05-16 Doug Kwan <dougkwan@google.com>
12627 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12629 (real_from_string): Handle NaNs and Inf as approriate.
12631 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
12633 * doc/gty.texi (Source Files Containing Type Information): Note
12634 that headers should appear first in the gtfiles list.
12636 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12638 * tree.def (COND_EXEC): Properly documented this code.
12640 2008-05-16 Diego Novillo <dnovillo@google.com>
12642 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12643 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12646 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12648 * tree-ssa-dse (max_stmt_uid): Removed.
12649 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12650 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12651 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12652 * function.h (cfun.last_stmt_uid): New field.
12653 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12654 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12656 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12657 (create_stmt_ann): Initialize the ann->uid field.
12658 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12660 * tree-flow.h (renumber_gimple_stmt_uids): New function.
12662 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
12664 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12665 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12666 (init_empty_tree_cfg): Call it.
12668 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12670 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
12673 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12675 * doc/invoke.text (-fdump-tree-*-verbose): New option.
12676 * tree-dump.c (dump_options): New verbose option.
12677 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12679 * tree-pass.h (TDF_VERBOSE): New dump flag.
12680 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12681 (tree-flow.h): Added include.
12682 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
12684 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
12686 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12688 From Jie Zhang <jie.zhang@analog.com>
12689 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12690 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12691 mcpu=bf561-none and mcpu=bf561-0.2.
12692 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12693 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12694 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12695 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12696 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12697 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12698 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
12700 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12701 (cputype_selected): Remove.
12702 (bfin_handle_option): Don't use cputype_selected.
12703 (override_options): When no mcpu option, enable all workarounds.
12704 Don't use bfin_workarounds.
12705 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12707 (DEFAULT_CPU_TYPE): Don't define.
12709 2008-05-16 Richard Guenther <rguenther@suse.de>
12711 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12712 on deletion of the last stmt.
12714 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
12716 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12717 V8HImode for SSE2 and V16QImode for SSE4.1.
12719 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
12721 * cgraph.h (compute_inline_parameters): Made public.
12722 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12723 variable_generate_summary, function_write_summary,
12724 variable_write_summary, variable_read_summary. Added generate_summary,
12725 write_summary, read_summary.
12726 * cgraphunit.c (cgraph_process_new_functions): Changed call from
12727 pass_ipa_inline.function_generate_summary, to
12728 compute_inline_parameters.
12729 * ipa-inline.c (compute_inline_parameters): Made public and added
12731 (compute_inline_parameters_for_current): New function.
12732 (pass_inline_param): Now calls compute_inline_parameters_for_current.
12733 (inline_generate_summary): Removed parameter and made to loop over
12735 (pass_ipa_inline): Updated for new IPA_PASS structure.
12736 * passes.c (execute_ipa_summary_passes): Now is called once per
12737 pass rather than once per node*pass.
12739 2008-05-15 Anatoly Sokolov <aesok@post.ru>
12741 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
12742 avr_have_mul_p, avr_asm_only_p): Remove variables.
12743 (avr_override_options): Remove initialization of removed variables.
12744 (avr_file_start): Convert removed variables to fields of
12745 'struct base_arch_s *avr_current_arch'.
12746 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
12747 (AVR_HAVE_MUL): (Ditto.).
12748 (AVR_HAVE_MOVW): (Ditto.).
12749 (AVR_HAVE_LPMX): (Ditto.).
12750 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
12751 avr_asm_only_p): Remove declaration.
12753 2008-05-15 Diego Novillo <dnovillo@google.com>
12755 * config/arm/arm.c (arm_return_in_memory): Fix return type.
12756 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
12758 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
12760 PR middle-end/36194
12761 * combine.c (check_conversion): Rename back to check_promoted_subreg.
12762 Don't call record_truncated_value from here.
12763 (record_truncated_value): Turn it into a for_each_rtx callback.
12764 (record_truncated_values): New function.
12765 (combine_instructions): Call note_uses with record_truncated_values.
12766 Change name of check_conversion to check_promoted_subreg.
12768 2008-05-15 Janis Johnson <janis187@us.ibm.com>
12770 * doc/sourcebuild.texi: Document support for torture tests.
12772 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
12774 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
12775 to alternative 4 of operand 2.
12777 2008-05-15 Richard Guenther <rguenther@suse.de>
12779 * tree-pass.h (current_pass): Declare.
12780 (get_pass_for_id): Likewise.
12781 * passes.c (passes_by_id, passes_by_id_size): New globals.
12782 (set_pass_for_id): New function.
12783 (get_pass_for_id): Likewise.
12784 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
12785 (execute_function_todo): Flush per function statistics.
12786 * toplev.c (compile_file): Init statistics.
12787 (general_init): Do early statistics initialization.
12788 (finalize): Finish statistics.
12789 * statistics.h (statistics_early_init): Declare.
12790 (statistics_init): Likewise.
12791 (statistics_fini): Likewise.
12792 (statistics_fini_pass): Likewise.
12793 (statistics_counter_event): Likewise.
12794 (statistics_histogram_event): Likewise.
12795 * statistics.c: New file.
12796 * Makefile.in (OBJS-common): Add statistics.o.
12797 (statistics.o): Add dependencies.
12798 * doc/invoke.texi (-fdump-statistics): Document.
12800 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
12801 (insert): Likewise.
12802 (execute_pre): Use statistics_counter_event.
12803 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
12804 (substitute_and_fold): Increment it. Use statistics_counter_event.
12806 2008-05-15 Diego Novillo <dnovillo@google.com>
12808 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
12810 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
12811 * tree-ssa-alias.c (new_type_alias): Remove references to
12812 sub-variables from comment.
12813 * tree-ssa-operands.c (swap_tree_operands): Likewise.
12815 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
12817 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
12818 attribute to 1 only for insertps alternative.
12820 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
12822 * config/bfin/bfin.md (loadbytes): New pattern.
12823 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
12824 (bfin_init_builtins): Initialize it.
12825 (bdesc_1arg): Add it.
12827 2008-05-15 Sa Liu <saliu@de.ibm.com>
12829 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
12830 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
12831 * testsuite/lib/target-supports.exp: Add
12832 check_effective_target_fortran_integer_16.
12834 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
12836 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
12837 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
12838 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
12839 (TARGET_RETURN_IN_MEMORY): Define.
12841 2008-05-15 Richard Guenther <rguenther@suse.de>
12843 PR middle-end/36244
12844 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
12845 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
12846 represent unmodifiable vars.
12848 2008-05-15 Richard Guenther <rguenther@suse.de>
12850 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
12851 INDIRECT_REF and TARGET_MEM_REF.
12852 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12855 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
12856 H.J. Lu <hongjiu.lu@intel.com>
12858 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
12859 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
12860 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
12861 insn alternatives. Add missing alternatives.
12862 (*vec_concatv2di_rex64_sse4_1): Likewise.
12863 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
12864 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
12865 Require TARGET_SSE.
12867 2008-05-15 Richard Guenther <rguenther@suse.de>
12869 PR tree-optimization/36009
12870 PR tree-optimization/36204
12871 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
12872 (determine_invariantness_stmt): Record the loop a store is
12873 always executed in.
12874 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
12877 2008-05-15 Richard Guenther <rguenther@suse.de>
12879 PR tree-optimization/34330
12880 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
12881 through the pointer will alias the SMT.
12883 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
12885 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
12887 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
12889 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
12891 2008-05-14 Michael Meissner <michael.meissner@amd.com>
12892 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
12894 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
12895 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
12896 (vashl_optab): New optab for vector/vector shifts.
12897 (vashr_optab): Ditto.
12898 (vlshr_optab): Ditto.
12899 (vrotl_optab): Ditto.
12900 (vrotr_optab): Ditto.
12901 (optab_subtype): New enum for optab_for_tree_code call.
12902 (optab_for_tree_code): Add enum optab_subtype argument.
12904 * optabs.c (optab_for_tree_code): Take an additional argument to
12905 distinguish between a vector shift by a scalar and vector shift by
12906 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
12907 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
12908 vector shift by a vector.
12909 (expand_widen_pattern_expr): Pass additional argument to
12910 optab_for_tree_code.
12912 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
12913 vrotl_optab, vrotr_optab.
12915 * expr.c (expand_expr_real_1): Update calls to
12916 optab_for_tree_code to distinguish between vector shifted by a
12917 scalar and vector shifted by a vector.
12918 * tree-vectorizer.c (supportable_widening_operation): Ditto.
12919 (supportable_narrowing_operation): Ditto.
12920 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
12921 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
12922 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
12923 (vect_create_epilog_for_reduction): Ditto.
12924 (vectorizable_reduction): Ditto.
12925 (vectorizable_operation): Ditto.
12926 (vect_strided_store_supported): Ditto.
12927 (vect_strided_load_supported): Ditto.
12928 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
12929 * expmed.c (expand_shift): Ditto.
12931 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
12933 (ashr@var{m}3): Ditto.
12934 (vashl@var{m}3): Document new vector/vector shift standard name.
12935 (vashr@var{m}3): Ditto.
12936 (vlshr@var{m}3): Ditto.
12937 (vrotl@var{m}3): Ditto.
12938 (vrotr@var{m}3): Ditto.
12940 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
12941 (PPERM_INVERT): Ditto.
12942 (PPERM_REVERSE): Ditto.
12943 (PPERM_REV_INV): Ditto.
12944 (PPERM_ZERO): Ditto.
12945 (PPERM_ONES): Ditto.
12946 (PPERM_SIGN): Ditto.
12947 (PPERM_INV_SIGN): Ditto.
12948 (PPERM_SRC1): Ditto.
12949 (PPERM_SRC2): Ditto.
12951 * config/i386/sse.md (mulv2di3): Add SSE5 support.
12952 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
12953 allows a memory operand to be the value being added, and split it
12954 to improve vectorization.
12955 (sse5_pmacsdqh_mem): Ditto.
12956 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
12957 (sse5_mulv2div2di3_high): Ditto.
12958 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
12959 (vec_pack_trunc_v4si): Ditto.
12960 (vec_pack_trunc_v2di): Ditto.
12961 (sse5_pcmov_<mode>): Remove code that tried to use use
12962 andps/andnps instead of pcmov.
12963 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
12964 pmacsdqh instructions.
12965 (vec_widen_smult_lo_v4si): Ditto.
12967 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
12968 (PPERM_INVERT): Ditto.
12969 (PPERM_REVERSE): Ditto.
12970 (PPERM_REV_INV): Ditto.
12971 (PPERM_ZERO): Ditto.
12972 (PPERM_ONES): Ditto.
12973 (PPERM_SIGN): Ditto.
12974 (PPERM_INV_SIGN): Ditto.
12975 (PPERM_SRC1): Ditto.
12976 (PPERM_SRC2): Ditto.
12977 (ix86_expand_sse_movcc): Move the SSE5 test after the if
12979 (ix86_expand_int_vcond): If SSE5 generate all possible integer
12981 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
12982 says ignore whether the last reference is a memory operand.
12984 2008-05-14 Michael Meissner <michael.meissner@amd.com>
12985 Paolo Bonzini <bonzini at gnu dot org>
12987 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
12990 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
12991 (vlshr<mode>3): Rename from vlshr<mode>3.
12992 (vashr<mode>3): Rename from vashr<mode>3.
12993 (mulv4sf3): Change the names of vector shift patterns.
12997 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13000 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13025 * config/spu/spu.md (v): New iterator macro to add v for vector types.
13026 (floatunssidf2_internal): Change vector/vector shift names.
13027 (floatunsdidf2_internal): Ditto.
13034 (vashl<mode>3): Rename from ashl<mode>3.
13035 (vashr<mode>3): Rename from ashr<mode>3.
13036 (vlshr<mode>3): Rename from lshr<mode>3.
13037 (vrotl<mode>3): Rename from rotl<mode>3.
13039 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13042 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13043 multiply gives the wrong value when doing widening multiplies.
13044 (vec_widen_smult_lo_v4si): Ditto.
13046 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13048 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13049 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13050 emit_library_call_value.
13051 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13052 * tree.h (ECF_LIBCALL_BLOCK): Removed.
13053 * calls.c (initialize_argument_information, precompute_arguments,
13054 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13055 (precompute_arguments): Removed flags parameter.
13056 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13058 2008-05-14 Richard Guenther <rguenther@suse.de>
13060 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13061 Make sure to register the store if the use is a PHI_NODE.
13063 2008-05-14 Olivier Hainque <hainque@adacore.com>
13065 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13066 memory if the component is to be referenced in BLKmode according
13067 to get_inner_reference.
13069 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
13071 * calls.c (emit_library_call_value_1): Restore code clearing
13072 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13074 2008-05-14 Olivier Hainque <hainque@adacore.com>
13075 Nicolas Roche <roche@adacore.com>
13077 * configure.ac: Add support for a "gcc_subdir" variable in
13078 config-lang.in, to denote a subdirectory where the language/GCC
13079 integration files are to be found.
13080 * configure: Regenerate.
13082 2008-05-14 Ira Rosen <irar@il.ibm.com>
13084 PR tree-optimization/36098
13085 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13086 value for the first load in the group in case of a gap.
13087 (vect_build_slp_tree): Check that there are no gaps in loads.
13089 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13091 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13092 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13093 expand_copysign_bit, ): Change call to emit_no_conflict_block to
13094 emit_insn and remove unneeded code to construct extra args.
13095 (emit_no_conflict_block): Removed.
13096 * optabls.h: (emit_no_conflict_block): Removed.
13097 * cse.c (cse_extended_basic_block): Remove search for
13098 REG_NO_CONFLICT note.
13099 * global.c: Removed incorrect comment added in revision 117.
13100 * expr.c (convert_move): Change call to emit_no_conflict_block to
13102 * recog.c: Change comments so that they do not mention
13104 * local_alloc.c (combine_regs): Removed last parameter.
13105 (no_conflict_p): Removed.
13106 (block_alloc): Removed note, no_conflict_combined_regno and set
13107 local vars. Removed all code to process REG_NO_CONFLICT blocks.
13108 (combine_regs): Removed already_dead and code to look for
13109 REG_NO_CONFLICT notes.
13110 * lower_subreg (remove_retval_note): Removed code to look for
13111 REG_NO_CONFLICT block.
13112 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13113 (resolve_clobber): Remove code to process libcalls that have
13114 REG_NO_CONFLICT notes.
13115 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13117 * combine.c (can_combine_p, distribute_notes): Removed
13118 REG_NO_CONFLICT case.
13119 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13121 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13122 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13124 * reg-notes.def (NO_CONFLICT): Removed.
13126 2008-05-14 David S. Miller <davem@davemloft.net>
13128 * config/sparc/sparc.c (sparc_profile_hook): If
13129 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13130 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13131 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13133 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
13135 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13137 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
13140 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13141 and op1 expansion before vector concat to have less live pseudos.
13143 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
13145 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13146 ix86_expand_vector_set if supported.
13148 2008-05-13 Diego Novillo <dnovillo@google.com>
13149 Kenneth Zadeck <zadeck@naturalbridge.com>
13151 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13153 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13154 phinodes_print_statistics, init_ssanames, fini_ssanames,
13155 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13156 release_ssa_name, release_defs, replace_ssa_name_symbol,
13157 ssanames_print_statistics): Move ...
13158 * tree-flow.h: ... here.
13159 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13160 Use FN instead of cfun.
13161 (make_ssa_name_fn): Rename from make_ssa_name.
13162 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13163 * tree-flow-inline.h (make_ssa_name): Move from
13164 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
13165 * omp-low.c (expand_omp_parallel):
13166 * tree-flow-inline.h (redirect_edge_var_map_result):
13167 * tree-ssa.c (init_tree_ssa): Add argument FN.
13168 Use it instead of cfun. Update all users.
13170 2008-05-13 Tom Tromey <tromey@redhat.com>
13172 PR preprocessor/22168:
13173 * doc/cpp.texi (Top): Update menu.
13174 (Alternatives to Wrapper #ifndef): New node.
13175 (Other Directives): Document deprecation.
13176 (Obsolete Features): Remove menu.
13177 (Assertions): Merge node into Obsolete Features.
13178 (Obsolete once-only headers): Move earlier; rename to Alternatives
13179 to Wrapper #ifndef.
13180 * doc/cppopts.texi: Update.
13181 * c.opt (Wdeprecated): Enable for C and ObjC.
13182 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13183 (C++ Dialect Options): Move -Wno-deprecated from here to...
13184 (Warning Options): ... here.
13186 2008-05-13 Richard Guenther <rguenther@suse.de>
13188 PR middle-end/36227
13189 * fold-const.c (fold_sign_changed_comparison): Do not allow
13190 changes in pointer-ness.
13192 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
13195 * config/sh/sh.c (sh_expand_prologue): Don't clear
13196 RTX_FRAME_RELATED_P for push insns.
13198 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
13200 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13202 2008-05-12 Anatoly Sokolov <aesok@post.ru>
13204 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13205 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13206 Use 'machine->is_leaf' instead of 'leaf_func_p'.
13208 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
13210 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13211 (*vec_concatv4sf_sse): This.
13212 (*sse2_concatv2si): Renamed to ...
13213 (*vec_concatv2si_sse2): This.
13214 (*sse1_concatv2si): Renamed to ...
13215 (*vec_concatv2si_sse): This.
13216 (*vec_concatv2di_rex): Renamed to ...
13217 (*vec_concatv2di_rex64): This.
13218 (*vec_concatv2si_sse4_1): New.
13219 (*vec_concatv2di_rex64_sse4_1): Likewise.
13221 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
13223 PR rtl-optimization/36111
13224 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13225 that was created for swappable operands.
13227 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
13230 * Makefile.in: Substitute GNATMAKE and GNATBIND.
13231 * configure.ac: Add call to ACX_PROG_GNAT.
13233 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
13235 * optc-gen.awk: Fix comment typo.
13237 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13239 * pretty-print.c (pp_integer_with_precision): Use
13240 HOST_LONG_LONG_FORMAT.
13242 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
13244 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13246 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
13248 * config/i386/i386.c (bdesc_ptest): Removed.
13249 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13250 (bdesc_args): Add __builtin_ia32_ptestz128,
13251 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13252 (ix86_init_mmx_sse_builtins): Updated.
13253 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13254 (ix86_expand_builtin): Updated.
13256 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
13258 * tree-cfg.c (valid_fixed_convert_types_p): New function.
13259 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13261 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
13263 * value-prof.c (interesting_stringop_to_profile): Do not
13264 return early for BUILT_IN_MEMPCPY.
13266 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
13268 * calls.c (expand_call): Don't use callgraph to increase
13269 preferred_stack_boundary.
13271 * cgraph.h (cgraph_rtl_info): Use unsigned on
13272 preferred_incoming_stack_boundary.
13274 * final.c (rest_of_clean_state): Use unsigned on
13275 preferred_stack_boundary.
13277 2008-05-09 Tom Tromey <tromey@redhat.com>
13279 PR preprocessor/22231:
13280 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13283 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
13285 PR tree-optimization/36129
13286 * tree-ssa-ccp.c: Include value-prof.h.
13287 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13288 built-in function was folded to a constant.
13289 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13291 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
13292 Sebastian Pop <sebastian.pop@amd.com>
13294 * tree-scalar-evolution.c: Document instantiate_scev.
13295 (instantiate_parameters_1): Renamed instantiate_scev_1.
13296 Don't use the same loop for instantiation_loop and evolution_loop.
13297 (instantiate_scev): New.
13298 (instantiate_parameters): Moved...
13299 (resolve_mixers): Update call to instantiate_scev_1 to pass the
13300 same loop twice. Maintains the semantics for this function.
13301 * tree-scalar-evolution.h (instantiate_scev): Declare.
13302 (instantiate_parameters): ...here. Now static inline.
13303 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13304 instead of resolve_mixers.
13306 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
13308 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13310 2008-05-09 Tomas Bily <tbily@suse.cz>
13312 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13313 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13314 * tree-ssa-structalias.c (get_constraint_for): Likewise.
13315 * c-common.c (c_common_truthvalue_conversion): Likewise.
13316 * tree-object-size.c (compute_object_offset): Likewise.
13317 * tree-inline.c (estimate_num_insns_1): Likewise.
13318 * varasm.c (const_hash_1, compare_constant, copy_constant)
13319 (compute_reloc_for_constant, output_addressed_constants)
13320 (initializer_constant_valid_p): Likewise.
13321 * c-omp.c (check_omp_for_incr_expr): Likewise.
13322 * gimplify.c (gimplify_expr): Likewise.
13323 * c-typeck.c (c_finish_return): Likewise.
13324 * tree-vectorizer.c (supportable_widening_operation)
13325 (supportable_narrowing_operation): Likewise.
13326 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13327 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13328 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13329 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13330 (descr_info_loc): Likewise.
13331 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13332 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13333 (fold_unary): Likewise.
13334 * builtins.c (get_pointer_alignment): Likewise.
13335 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13336 (instantiate_parameters_1): Likewise.
13337 * tree.c (expr_align, stabilize_reference): Likewise.
13338 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13339 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13340 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13341 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13342 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13343 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13345 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13346 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13347 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13348 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13349 (forward_propagate_comparison)
13350 (tree_ssa_forward_propagate_single_use_vars): Likewise.
13351 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13352 * emit-rtl.c (component_ref_for_mem_expr)
13353 (set_mem_attributes_minus_bitpos): Likewise.
13354 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13355 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13357 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13358 (build_function_call, pointer_diff, build_compound_expr)
13359 (c_finish_return): Likewise.
13360 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13361 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13363 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13364 * expr.c (is_aligning_offset): Likewise.
13365 * tree-ssa-alias.c (is_escape_site): Likewise.
13366 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13367 (check_all_va_list_escapes): Likewise.
13368 * tree-ssa-loop-ivopts.c (determine_base_object)
13369 (determine_common_wider_type): Likewise.
13370 * dojump.c (do_jump): Likewise.
13371 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13372 * tree-gimple.c (is_gimple_cast): Likewise.
13373 * fold-const.c (decode_field_reference, )
13374 (fold_sign_changed_comparison, fold_unary, fold_comparison)
13375 (fold_binary): Likewise.
13376 * tree-ssa-alias-warnings.c (find_alias_site_helper)
13377 (already_warned_in_frontend_p): Likewise.
13378 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13379 * tree.c (really_constant_p, get_unwidened): Likewise.
13380 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13381 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13382 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13384 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13386 (CONVERT_EXPR_P): Define.
13387 (CASE_CONVERT): Define.
13389 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
13391 PR middle-end/36117
13392 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13393 (delete_unmarked_insns): When deleting a call, call
13394 delete_unreachable_blocks.
13395 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13396 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13398 2008-05-08 Richard Guenther <rguenther@suse.de>
13400 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13401 (-ftree-salias): Likewise.
13402 (salias-max-implicit-fields): Remove param documentation.
13403 (salias-max-array-elements): Likewise.
13404 * tree-pass.h (pass_create_structure_vars): Remove.
13405 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13406 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13407 * tree-ssa-alias.c (create_structure_vars): Remove.
13408 (gate_structure_vars): Likewise.
13409 (pass_create_structure_vars): Likewise.
13410 (gate_build_alias): Likewise.
13411 (pass_build_alias): Adjust to run always and dump the function.
13412 * common.opt (ftree-salias): Hide.
13413 * passes.c (init_optimization_passes): Remove
13414 pass_create_structure_vars, adjust comment.
13415 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13416 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13417 * opts.c (decode_options): Do not set flag_tree_salias.
13418 (common_handle_option): Add OPT_ftree_salias to the backward
13419 compatibility section.
13421 2008-05-08 Richard Guenther <rguenther@suse.de>
13423 * tree-flow-inline.h (var_can_have_subvars): Move ...
13424 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13425 * tree-flow.h (var_can_have_subvars): Remove.
13426 (push_fields_onto_fieldstack): Remove.
13427 (sort_fieldstack): Likewise.
13428 (struct fieldoff): Move ...
13429 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
13430 alias_set and base_for_components fields.
13431 (sort_fieldstack): Make static.
13432 (push_fields_onto_fieldstack): Likewise. Remove code that
13433 handles anything but RECORD_TYPEs. Remove alias_set and
13434 base_for_components handling.
13435 (create_variable_info_for): Adjust.
13437 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
13439 * common.opt (Wframe-larger-than=): Shorten the help message
13441 * doc/invoke.texi (Wframe-larger-than=): Add more description.
13443 2008-05-08 Rafael Espíndola <espindola@google.com>
13445 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13447 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13448 trap and that both operands are gimple values.
13449 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13450 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13453 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
13455 * read-rtl.c (join_c_conditions): Return the first string if the
13456 two strings are equal.
13458 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
13460 * gensupport.h (pred_data): Add a "num_codes" field.
13461 (add_predicate_code): Declare.
13462 * gensupport.c (add_predicate_code): New function.
13463 (std_pred_table): Add an "allows_const_p" field.
13464 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13465 Remove the (incomplete) list of such codes from the codes field.
13466 (init_predicate_table): Use add_predicate_code. Add all
13467 RTX_CONST_OBJs if allows_const_p is true.
13468 * genrecog.c (process_define_predicate): Use add_predicate_code.
13470 2008-05-08 David Daney <ddaney@avtrex.com>
13471 Richard Sandiford <rsandifo@nildram.co.uk>
13473 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13474 special case of constant zero operands.
13475 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13476 old and new values. Special case constant zero values.
13477 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13479 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13480 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13482 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
13485 * simplify-rtx.c (simplify_plus_minus): Create CONST of
13486 similar RTX_CONST_OBJ before CONST_INT.
13488 2008-05-08 Steve Ellcey <sje@cup.hp.com>
13490 * stmt.c (expand_stack_restore): Change sa mode if needed.
13492 2008-05-08 Richard Guenther <rguenther@suse.de>
13494 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13495 return type to bool.
13496 (ix86_sol10_return_in_memory): Likewise.
13497 (ix86_i386elf_return_in_memory): Likewise.
13498 (ix86_i386interix_return_in_memory): Likewise.
13499 * config/i386/i386.c (ix86_return_in_memory): Likewise.
13500 (ix86_sol10_return_in_memory): Likewise.
13501 (ix86_i386elf_return_in_memory): Likewise.
13502 (ix86_i386interix_return_in_memory): Likewise.
13504 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
13507 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13509 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13510 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13513 2008-05-08 Richard Guenther <rguenther@suse.de>
13515 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13516 * tree-data-ref.h (struct dr_alias): Remove subvars field.
13517 (DR_SUBVARS): Remove.
13518 * tree-dfa.c (dump_subvars_for): Remove.
13519 (debug_subvars_for): Likewise.
13520 (dump_variable): Do not dump subvars.
13521 (remove_referenced_var): Do not remove subvars.
13522 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13523 (lookup_subvars_for_var): Remove.
13524 (get_subvars_for_var): Likewise.
13525 (get_subvars_at): Likewise.
13526 (get_first_overlapping_subvar): Likewise.
13527 (overlap_subvar): Likewise.
13528 * tree-flow.h (subvar_t): Remove.
13529 (struct var_ann_d): Remove subvars field.
13530 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13531 argument. Remove special handling of SFTs.
13532 (compute_tag_properties): Likewise.
13533 (set_initial_properties): Likewise.
13534 (compute_call_clobbered): Likewise.
13535 (count_mem_refs): Likewise.
13536 (compute_memory_partitions): Likewise.
13537 (compute_flow_insensitive_aliasing): Likewise.
13538 (setup_pointers_and_addressables): Likewise.
13539 (new_type_alias): Likewise.
13540 (struct used_part): Remove.
13541 (used_portions): Likewise.
13542 (struct used_part_map): Likewise.
13543 (used_part_map_eq): Likewise.
13544 (used_part_map_hash): Likewise.
13545 (free_used_part_map): Likewise.
13546 (up_lookup): Likewise.
13547 (up_insert): Likewise.
13548 (get_or_create_used_part_for): Likewise.
13549 (create_sft): Likewise.
13550 (create_overlap_variables_for): Likewise.
13551 (find_used_portions): Likewise.
13552 (create_structure_vars): Likewise.
13553 * tree.def (STRUCT_FIELD_TAG): Remove.
13554 * tree.h (MTAG_P): Adjust.
13555 (struct tree_memory_tag): Remove base_for_components and
13556 unpartitionable flags.
13557 (struct tree_struct_field_tag): Remove.
13558 (SFT_PARENT_VAR): Likewise.
13559 (SFT_OFFSET): Likewise.
13560 (SFT_SIZE): Likewise.
13561 (SFT_NONADDRESSABLE_P): Likewise.
13562 (SFT_ALIAS_SET): Likewise.
13563 (SFT_UNPARTITIONABLE_P): Likewise.
13564 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13565 (union tree_node): Remove sft field.
13566 * alias.c (get_alias_set): Remove special handling of SFTs.
13567 * print-tree.c (print_node): Remove handling of SFTs.
13568 * tree-dump.c (dequeue_and_dump): Likewise.
13569 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13570 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13571 * tree-predcom.c (set_alias_info): Do not set subvars.
13572 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13573 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13574 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13575 (add_vars_for_offset): Remove.
13576 (add_virtual_operand): Remove special handling of SFTs.
13577 (add_call_clobber_ops): Likewise.
13578 (add_call_read_ops): Likewise.
13579 (get_asm_expr_operands): Likewise.
13580 (get_modify_stmt_operands): Likewise.
13581 (get_expr_operands): Likewise.
13582 (add_to_addressable_set): Likewise.
13583 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13584 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13585 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13586 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13587 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13588 (tree_node_structure): Likewise.
13589 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13591 (find_what_p_points_to): Likewise.
13593 2008-05-08 Sa Liu <saliu@de.ibm.com>
13595 * config/spu/spu.md: Fixed subti3 pattern.
13597 2008-05-08 Richard Guenther <rguenther@suse.de>
13599 PR middle-end/36154
13600 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13601 sure to create a representative for trailing arrays for PTA.
13603 2008-05-08 Richard Guenther <rguenther@suse.de>
13605 PR middle-end/36172
13606 * fold-const.c (operand_equal_p): Two objects which types
13607 differ in pointerness are not equal.
13609 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
13611 * calls.c (compute_argument_block_size): Add argument tree fndecl.
13612 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13613 (emit_library_call_value_1): Add new variable fndecl initialized by
13614 NULL_TREE. It should be the decl type of orgfun, but this information
13615 seems not to be available here, so it uses the default calling abi.
13616 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13617 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13618 by TARGET_RETURN_IN_MEMORY.
13619 * config/i386/i386-interix.h: Likewise.
13620 * config/i386/i386.h: Likewise.
13621 * config/i386/i386elf.h: Likewise.
13622 * config/i386/ptx4-i.h: Likewise.
13623 * config/i386/sol2-10.h: Likewise.
13624 * config/i386/sysv4.h: Likewise.
13625 * config/i386/vx-common.h: Likewise.
13626 * config/cris/cris.h: Removed #if 0 clause.
13627 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13628 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13630 (ix86_sol10_return_in_memory): Likewise.
13631 (ix86_i386elf_return_in_memory): New.
13632 (ix86_i386interix_return_in_memory): New.
13633 * config/mt/mt-protos.h (mt_return_in_memory): New.
13634 * config/mt/mt.c: Likewise.
13635 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13636 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
13637 * config/bfin/bfin.h: Likewise.
13638 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13640 * config/bfin/bfin.c: Likewise.
13641 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13642 * config/alpha/unicosmk.h: Likewise.
13643 * config/i386/cygming.h: Likewise.
13644 * config/iq2000/iq2000.h: Likewise.
13645 * config/mips/mips.h: Likewise.
13646 * config/mn10300/mn10300.h: Likewise.
13647 * config/rs6000/rs6000.h: Likewise.
13648 * config/score/score.h: Likewise.
13649 * config/spu/spu.h: Likewise.
13650 * config/v850/v850.h: Likewise.
13651 * defaults.h: Likewise.
13652 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13653 * expr.c (emit_block_move): Adjust use of
13654 OUTGOING_REG_PARM_STACK_SPACE.
13655 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13656 OUTGOING_REG_PARM_STACK_SPACE.
13657 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13659 2008-05-08 Jakub Jelinek <jakub@redhat.com>
13661 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13662 on OMP_RETURN for OMP_FOR.
13665 * dwarf2out.c (dw_expand_expr, common_check): Removed.
13666 (fortran_common): New function.
13667 (gen_variable_die): Call fortran_common instead of common_check,
13668 adjust for it returning tree instead of rtx. Formatting.
13670 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
13674 * see.c (see_copy_insn): Copy new pure const attributes for new call.
13675 * c-decl.c (merge_decls): Ditto.
13676 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13677 to RTL_CONST_OR_PURE_CALL_P.
13678 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13679 Initialized DECL_LOOPING_CONST_PURE.
13680 (process_call_operands): Set tree_side_effects properly.
13681 * tree.h (TREE_READONLY_DECL_P): Removed.
13682 (DECL_IS_PURE): Renamed to DECL_PURE_P.
13683 (DECL_LOOPING_OR_CONST_P): New macro.
13684 (struct tree_function_decl): Added looping_const_or_pure_p.
13685 (ECF_*) Renumbered.
13686 (ECF_LOOPING_OR_CONST_P): New macro.
13687 * rtlanal.c (pure_const_p): Removed.
13688 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13689 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13690 to RTL_CONST_CALL_P.
13691 * ipa-pure-const.c (pure_const_state_e): Added looping field.
13692 (check_decl, check_tree, check_call, scan_function): Initialize
13694 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13695 (static_execute): Set looping true for recursive functions.
13696 Undo setting state to IPA_NEITHER for recursive functions.
13697 * cse.c (cse_insn):
13698 * ifcvt.c (noce_can_store_speculate_p): Changed
13699 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13700 RTL_CONST_OR_PURE_CALL_P.
13701 * dse.c (scan_insn): Ditto.
13702 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13703 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13704 RTL_CONST_OR_PURE_CALL_P.
13705 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13706 pure_call_p to RTL_CONST_CALL_P.
13707 * gimplify.c (gimplify_call_expr): Clear side effects for
13708 non-looping pure and constant calls.
13709 * calls.c (emit_call_1): Set rtl flags from ecf flags.
13710 (flags_from_decl_or_type): Set ecf flags from decl flags.
13711 (initialize_argument_information): Turn off
13712 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13713 Change const to pure if callee_copies is true rather than just
13715 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13716 way of marking pure calls.
13717 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13718 Remove hack that was supposed to fix pr7335 and remove old
13719 way of marking pure calls.
13720 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13721 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13722 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13723 RTL_CONST_OR_PURE_CALL_P.
13724 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13725 * loop-invariant.c (find_exits, find_invariant_bb): Changed
13726 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
13727 * sched-deps.c (schedule_analyze): Ditto.
13728 * rtl.h (struct rtx_def): Use call field, unchanging field, and
13729 return_val field of calls to represent pure and const function info.
13730 (CONST_OR_PURE_CALL_P): Deleted macro.
13731 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13732 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
13733 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
13735 * tree-optimize.c (execute_fixup_cfg): Added test for
13736 ECF_LOOPING_CONST_OR_PURE.
13737 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
13739 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
13740 effects for looping pure or const calls.
13741 (verify_gimple_expr): Added verification code.
13742 * config/alpha/alpha.c (alpha_legitimize_address,
13743 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
13745 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
13746 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
13747 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
13748 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
13749 RTL_CONST_OR_PURE_CALL_P.
13750 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
13751 and const calls to be deleted.
13753 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
13756 * config/i386/mmx.md (mmx_subv2sf3): New expander.
13757 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
13758 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
13759 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
13760 to handle nonimmediate operands.
13761 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
13762 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
13763 to handle nonimmediate operands.
13764 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
13765 (mmx_pmulhrwv4hi3): New expander. Use
13766 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13767 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
13768 (sse2_umulv1siv1di3): New expander. Use
13769 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13770 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
13771 (mmx_eq<mode>3): New expander. Use
13772 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13773 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
13774 (mmx_uavgv8qi3): New expander. Use
13775 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13776 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
13777 (mmx_uavgv4hi3): New expander. Use
13778 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13780 * config/i386/sse.md
13781 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
13782 to handle nonimmediate operands.
13783 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
13784 to handle nonimmediate operands.
13785 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
13786 to handle nonimmediate operands.
13787 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
13788 to handle nonimmediate operands.
13789 (sse2_unpckhpd_exp): New expander. Use
13790 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13791 (sse2_unpcklpd_exp): New expander. Use
13792 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13793 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
13794 to handle nonimmediate operands.
13795 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
13796 to handle nonimmediate operands.
13797 (*sse2_<plusminus_insn><mode>3): Rename from
13798 sse2_<plusminus_insn><mode>3 insn pattern.
13799 (sse2_<plusminus_insn><mode>3): New expander. Use
13800 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13801 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
13802 (sse2_umulv2siv2di3): New expander. Use
13803 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13804 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
13805 (sse4_1_mulv2siv2di3): New expander. Use
13806 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13807 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
13808 (sse2_pmaddwd): New expander. Use
13809 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13810 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
13811 (sse2_eq<mode>3): New expander. Use
13812 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13813 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
13814 (sse4_1_eqv2di3): New expander. Use
13815 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13816 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13817 (sse2_uavgv16qi3): New expander. Use
13818 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13819 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13820 (sse2_uavgv16qi3): New expander. Use
13821 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13822 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
13823 (sse2_uavgv8hi3): New expander. Use
13824 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13825 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
13826 (ssse3_pmulhrswv8hi3): New expander. Use
13827 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13828 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
13829 (ssse3_pmulhrswv4hi3): New expander. Use
13830 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13832 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
13833 (<sse>_vmmul<mode>3): Ditto.
13834 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
13836 (ssse3_pmaddubsw128): Use register_operand for operand 1.
13837 (ssse3_pmaddubsw): Ditto.
13839 * config/i386/i386.c (struct_builtin_description)
13840 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
13841 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
13842 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
13843 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
13844 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
13845 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
13846 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
13847 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
13848 (ix86_fixup_binary_operands): Assert that src1
13849 and src2 must have the same mode when swapped.
13850 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
13851 and ix86_binary_operator_ok. Do not force operands in registers
13854 2008-05-07 Jan Hubicka <jh@suse.cz>
13856 * cgraph.c (dump_cgraph_node): Update.
13857 * cgraph.h (cgraph_local_info): Break out inline summary.
13858 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
13860 * ipa-inline (inline_summary): New accestor function.
13861 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
13862 cgraph_decide_inlining, compute_inline_parameters): Update.
13863 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
13865 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
13867 Cleanup ColdFire scheduling support and add V4 pipeline model.
13869 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
13870 (define_attr cpu): Add cfv4 value.
13871 (define_attr type, define_attr type1): Merge into a single 'type'
13872 attribute. Update all uses.
13873 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
13874 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
13876 (define_attr opx_mem, define_attr opy_mem): Remove.
13877 (define_attr op_mem): Clean up, update comment.
13878 (define_attr size): Use specific values instead of general int.
13879 (define_attr guess, define_attr split): Remove. Update all uses.
13880 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
13881 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
13882 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
13883 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
13884 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
13885 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
13886 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
13887 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
13888 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
13889 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
13890 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
13891 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
13892 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
13893 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
13894 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
13895 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
13896 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
13897 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
13898 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
13899 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
13900 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
13901 Update or set attributes.
13902 (stack_tie): New fake instruction.
13904 * config/m68k/m68k.h (TUNE_CFV4): New macro.
13905 (m68k_sched_attr_size): Update declaration.
13906 (m68k_sched_attr_type2): Remove.
13907 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
13908 Declare new bypass predicates.
13910 * config/m68k/m68k.c (m68k_sched_issue_rate,
13911 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
13913 (TARGET_SCHED_ISSUE_RATE,
13914 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
13915 (override_options): Handle scheduling for ColdFire V4 core.
13916 (m68k_expand_prologue): Emit stack_tie.
13917 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
13918 'OP_TYPE_FPN'. Update all uses.
13919 (sched_guess_p): Remove.
13920 (sched_address_type): Handle symbolic addresses.
13921 (sched_get_operand): New static function.
13922 (sched_operand_type): Merge into sched_attr_op_type.
13923 (sched_attr_op_type): Handle FP registers, handle quick constants,
13925 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
13926 (m68k_sched_attr_size): Update. Move logic to ...
13927 (sched_get_attr_size_int): New static function.
13928 (sched_get_opxy_mem_type): New static function.
13929 (m68k_sched_attr_op_mem): Update.
13930 (m68k_sched_attr_type2): Remove.
13931 (sched_cfv4_bypass_data): New static variable.
13932 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
13933 (m68k_sched_issue_rate): Implement scheduler hook.
13934 (struct _sched_ib: enabled_p): New field.
13935 (m68k_sched_variable_issue): Update. Handle V4.
13936 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
13937 sched_dump_class_func_t, sched_dump_split_class,
13938 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
13939 sched_dump_dfa_class, m68k_sched_dump): Remove.
13940 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
13942 (m68k_sched_init_global): Remove statisctics dumping, introduce
13943 sanity check that all instructions have pipeline reservations. Handle
13945 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
13946 Handle ColdFire V4 core.
13947 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
13948 New static functions.
13949 (m68k_sched_address_bypass_p): New bypass predicate.
13950 (sched_get_indexed_address_scale): New static function.
13951 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
13953 * cf.md: Update comments.
13954 (define_attr type2): Remove. Use 'type' attribute instead.
13956 (cf_ib): Rename to cfv123_ib. Update all uses.
13957 (cf_oep): Rename to cfv123_oep. Update all uses.
13958 (cf_chr): Rename to cfv123_chr. Update all uses.
13959 (cf_mem): Rename to cfv123_mem. Update all uses.
13960 (cf_mac): Move to more appropriate place.
13961 (cfv123_guess): New automaton and cpu_unit.
13962 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
13963 Update uses of 'size' attribute. Handle before reload scheduling.
13964 (cfv123_guess): New dummy reservation for unhandled instructions.
13965 (cfv4_*): Pipeline description of ColdFire V4 core.
13966 (ignore): New reservation to handle 'ignore' type.
13968 2008-05-07 Ian Lance Taylor <iant@google.com>
13970 PR middle-end/36013
13971 * gimplify.c (find_single_pointer_decl_1): Don't look through
13973 (find_single_pointer_decl): Adjust comments.
13975 2008-05-07 Jakub Jelinek <jakub@redhat.com>
13977 PR middle-end/36137
13978 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
13979 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
13981 PR middle-end/36106
13982 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
13983 integral type rather than floating point, then VIEW_CONVERT_EXPR
13984 to the floating point type.
13986 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
13988 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
13989 TFmode op0 to register.
13991 2008-05-07 Alan Modra <amodra@bigpond.net.au>
13993 * c-decl.c (grokdeclarator): Comment typo.
13995 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
13997 * tree-flow.h: Remove prototype for computed_goto_p.
13998 * tree-cfg.c (computed_goto_p): Make static.
14000 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
14003 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14004 (contains_aligned_value_p): This. Handle _Decimal128.
14005 (ix86_function_arg_boundary): Only align _Decimal128 to its
14006 natural boundary and handle it properly.
14008 2008-05-06 Martin Jambor <mjambor@suse.cz>
14010 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14011 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14012 (ipcp_method_set_orig_node): Removed.
14013 (ipcp_cval_get_cvalue_type): Removed.
14014 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14015 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14016 (ipcp_cval_set_cvalue_type): Removed.
14017 (ipcp_cval_get_cvalue): Removed.
14018 (ipcp_cval_set_cvalue): Removed.
14019 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14020 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14021 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14022 (ipcp_cval_meet): Renamed to ipa_lattice_meet
14023 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14024 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14025 (ipcp_get_ith_lattice): Changed parameters.
14026 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14027 (ipcp_lattice_from_jfunc): Changed parameters.
14028 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14029 (ipcp_method_cval_print): Added temporary variable info.
14030 (ipcp_redirect): Removed already unused local variable caller.
14031 (ipcp_redirect): New temporary variable orig_callee_info
14032 (ipcp_redirect): Removed newly unused local variable callee.
14033 (ipcp_redirect): Removed (a bit confusing) local variable type.
14034 (ipcp_insert_stage): Added local variable info.
14035 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14037 (ipcp_formal_create): Removed.
14038 (ipcp_method_cval_set): Removed.
14039 (ipcp_propagate_stage): Renamed lattice variables.
14040 (ipcp_method_cval_set_cvalue_type): Removed.
14041 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14042 (ipcp_print_all_lattices): Changed printed strings to refer to
14043 lattices rather than cvals.
14044 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14045 (ipcp_propagate_const): Changed formal parameters.
14046 (build_const_val): Changed formal parameters.
14047 (ipcp_insert_stage): Removed useless variable cvalue
14048 (build_const_val): Changed formal parameters.
14049 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14050 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14051 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14052 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14053 (ipcp_print_func_profile_counts): Changed string from "method" to
14055 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14056 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14057 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14058 (ipcp_structures_print): Renamed to ipcp_print_all_structures
14059 (ipcp_profile_print): Renamed to ipcp_print_profile_data
14060 (ipcp_lat_is_const): Changed parameters and made inline.
14061 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14062 (ipcp_redirect): Renamed to ipcp_need_redirect_p
14063 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14064 the predicate condition directly
14065 (ipcp_propagate_stage): Added local variable args. Removed local
14066 variable callee. (Both are mere code simplifications.)
14067 (ipcp_method_dont_insert_const): Renamed to
14068 ipcp_node_not_modifiable_p.
14069 (ipcp_node_not_modifiable_p): Made inline.
14070 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14071 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14072 (ipcp_print_all_lattices): Removed variable cvalue
14073 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14076 2008-05-06 Olivier Hainque <hainque@adacore.com>
14078 * tree-sra.c (try_instantiate_multiple_fields): Early return
14079 if field has POINTER_TYPE.
14081 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
14083 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14084 by using 'q' specifier for instruction.
14085 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14087 2008-05-06 Anatoly Sokolov <aesok@post.ru>
14089 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14090 Change mode of zero_extract from QImode to HImode.
14091 (sign bit tests peepholes): (Ditto.).
14093 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
14095 * config/i386/mmx.md: Remove double backslashes from asm templates.
14096 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14097 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14098 to handle nonimmediate operands.
14099 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14100 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14101 to handle nonimmediate operands.
14102 (*mmx_<code>v2sf3_finite): New insn pattern.
14103 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14104 (mmx_<code>v2sf3): New expander. Use
14105 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14106 (mmx_<plusminus_insn><mode>3): New expander. Use
14107 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14108 (*mmx_<plusminus_insn><mode>3): New insn pattern.
14109 (mmx_add<mode>3): Removed.
14110 (mmx_ssadd<mode>3): Ditto.
14111 (mmx_usadd<mode>3): Ditto.
14112 (mmx_sub<mode>3): Ditto.
14113 (mmx_sssub<mode>3): Ditto.
14114 (mmx_ussub<mode>3): Ditto.
14115 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14116 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
14117 to handle nonimmediate operands.
14118 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14120 (mmx_smulv4hi3_highpart): New expander. Use
14121 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14122 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14124 (mmx_umulv4hi3_highpart): New expander. Use
14125 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14126 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14127 (mmx_<code>v4hi3): New expander. Use
14128 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14129 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14130 (mmx_<code>v8qi3): New expander. Use
14131 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14132 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14133 (mmx_<code><mode>3): New expander. Use
14134 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14136 2008-05-05 Jan Hubicka <jh@suse.cz>
14138 PR tree-optimization/36118
14139 * passes.c (pass_init_dump_file): Fix dump header.
14141 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
14143 PR middle-end/36141
14144 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14145 VCE for function decls.
14147 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14149 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14151 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14153 * config/i386/i386.md (sat_plusminus): New.
14154 (plusminus_insn): Likewise.
14155 (plusminus_mnemonic): Likewise.
14157 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14158 (*<addsub><mode>3_cc_overflow): Renamed to ...
14159 (*<plusminus_insn><mode>3_cc_overflow): This.
14160 (*<addsub>si3_zext_cc_overflow): Renamed to ...
14161 (*<plusminus_insn>si3_zext_cc_overflow): This.
14163 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14164 (<plusminus_insn><mode>3): This.
14165 (*<addsub><mode>3): Renamed to ...
14166 (*<plusminus_insn><mode>3): This.
14167 (<sse>_vm<addsub><mode>3): Renamed to ...
14168 (<sse>_vm<plusminus_insn><mode>3): This.
14169 (sse3_h<addsub>v4sf3): Renamed to ...
14170 (sse3_h<plusminus_insn>v4sf3): This.
14171 (sse3_h<addsub>v2df3): Renamed to ...
14172 (sse3_h<plusminus_insn>v2df3): This.
14173 (<plusminus_insn><mode>3): New.
14174 (*<plusminus_insn><mode>3): Likewise.
14175 (sse2_<plusminus_insn><mode>3): Likewise.
14176 (add<mode>): Removed.
14177 (*add<mode>3): Likewise.
14178 (sse2_ssadd<mode>3): Likewise.
14179 (sse2_usadd<mode>3): Likewise.
14180 (sub<mode>3): Likewise.
14181 (*sub<mode>3): Likewise.
14182 (sse2_sssub<mode>3): Likewise.
14183 (sse2_ussub<mode>3): Likewise.
14185 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
14187 * gthr-single.h: Add in required interface elements as per gthr.h.
14188 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14189 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14190 Generalize UNUSED macro.
14191 (__gthread_once): Add.
14192 (__gthread_key_create): Add.
14193 (__gthread_key_delete): Add.
14194 (__gthread_getspecific): Add.
14195 (__gthread_setspecific): Add.
14197 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
14199 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14200 the same size types for the indirect reference on the rhs, then
14203 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
14205 * config/i386/i386.md
14206 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14207 one insn template instead of template series.
14208 (*xordi_1_rex64): Ditto.
14209 (*xordi_2_rex64): Ditto.
14211 2008-05-05 Ira Rosen <irar@il.ibm.com>
14213 PR tree-optimization/36119
14214 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14217 2008-06-04 Jan Hubicka <jh@suse.cz>
14219 tree-optimization/36100
14220 * tree-pass.h (pass_O0_always_inline): Declare.
14221 * ipa-inline.c (inline_transform): Remove dead code.
14222 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14223 pass_O0_always_inline): New.
14224 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14226 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
14228 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14229 mnemonic in this_param move for TARGET_64BIT.
14231 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
14233 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14234 (*strmovsi_rex_1): Ditto.
14235 (*strsetsi_1): Ditto.
14236 (*strsetsi_rex_1): Ditto.
14238 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14239 adddicc expanders using SWI mode iterator.
14241 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
14244 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14247 2008-05-04 David S. Miller <davem@davemloft.net>
14249 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14250 (sparc*-*-linux*): Use linux.h in tm_file.
14251 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14252 compiler defaulting to 32-bit.
14253 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14255 * config/sparc/linux.h: Remove definitions now obtained
14256 properly from linux.h
14257 * config/sparc/linux64.h: Likewise.
14258 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14259 don't want this setting for 32-bit builds in a biarch compiler.
14260 * doc/install.texi: Add sparc-linux to list of targets
14261 supporting --enable-targets=all.
14263 2008-05-03 Andrew Pinski <pinskia@gmail.com>
14265 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14267 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
14269 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14270 after V4SI_FTYPE_V8HI.
14271 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14272 case V4SI_FTYPE_V2DF.
14274 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
14276 * doc/invoke.texi (max-flow-memory-locations): Removed.
14277 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14279 2008-05-03 Richard Guenther <rguenther@suse.de>
14281 PR middle-end/34973
14282 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14284 2008-05-02 David S. Miller <davem@davemloft.net>
14286 * config.gcc (need_64bit_hwint): Document libcpp dependency.
14288 2008-05-02 Simon Baldwin <simonb@google.com>
14291 * c-common.h (warn_array_subscript_range): Removed.
14292 * c-common.c (warn_array_subscript_range): Ditto.
14293 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14294 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14296 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14298 * config/i386/i386.c (ix86_special_builtin_type): New.
14299 (bdesc_special_args): Likewise.
14300 (ix86_expand_special_args_builtin): Likewise.
14301 (ix86_init_mmx_sse_builtins): Updated.
14302 (ix86_expand_builtin): Updated.
14303 (ix86_expand_store_builtin): Removed.
14304 (ix86_expand_unop_builtin): Likewise.
14306 * config/i386/mm3dnow.h (__v2sf): Moved to ...
14307 * config/i386/mmintrin.h (__v2sf): Here.
14309 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14311 (_mm_loadl_pi): Likewise.
14312 (_mm_storeh_pi): Replace __v2si with __v2sf.
14313 (_mm_storel_pi): Likewise.
14315 * doc/extend.texi: Correct __builtin_ia32_loadhps,
14316 __builtin_ia32_loadlps, __builtin_ia32_storehps,
14317 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14318 __builtin_ia32_loadlpd.
14320 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14322 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14323 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14324 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
14325 (ix86_init_mmx_sse_builtins): Updated.
14326 (ix86_expand_args_builtin): Likewise.
14327 (ix86_expand_builtin): Likewise.
14328 (ix86_expand_unop1_builtin): Renamed to ...
14329 (ix86_expand_unop_vec_merge_builtin): This.
14331 2008-05-01 Jan Hubicka <jh@suse.cz>
14334 * ipa-inline.c (inline_generate_summary): Make static.
14335 (inline_transform): Do not call inlining at -O0; make static.
14336 * passes.c (execute_todo): Add sanity check.
14337 (execute_one_ipa_transform_pass): Execute proper flags.
14339 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
14341 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14342 (DECL_NONADDRESSABLE_P): Likewise.
14343 * alias.c (record_component_aliases): Fix comment.
14345 2008-05-01 Simon Baldwin <simonb@google.com>
14347 * c-common.h (warn_array_subscript_range): New function.
14348 * c-common.c (warn_array_subscript_range): Ditto.
14349 * tree-vrp.c (check_array_ref): Corrected code to agree with
14350 comment, ignoring only arrays of size 0 or size 1.
14351 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14353 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14355 * config/i386/i386.c (ix86_builtin_type): Replace
14356 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14357 (bdesc_args): Updated.
14358 (ix86_init_mmx_sse_builtins): Likewise.
14359 (ix86_expand_args_builtin): Likewise.
14361 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14364 * doc/extend.texi: Correct __builtin_ia32_palignr.
14366 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14369 * config/i386/i386.c (bdesc_crc32): Removed.
14370 (ix86_expand_crc32): Likewise.
14371 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14372 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14373 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
14374 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14375 UINT_FTYPE_UINT_UCHAR.
14376 (bdesc_args): Updated. Add crc32 builtins.
14377 (ix86_init_mmx_sse_builtins): Updated.
14378 (ix86_expand_args_builtin): Updated to support subreg.
14380 * doc/extend.texi: Correct __builtin_ia32_crc32di.
14382 2008-05-01 Jan Hubicka <jh@suse.cz>
14384 * tree-pass.h (opt_pass): Add IPA_PASS.
14385 (varpool_node, cgraph_node): Forward declare.
14386 (ipa_opt_pass): Define.
14387 (pass_ipa_inline): Turn into ipa_opt_pass.
14388 (pass_apply_inline): Remove.
14389 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14390 (apply_inline): Turn into ....
14391 (inline_transform): ... this one.
14392 (inline_generate_summary): New function.
14393 (pass_apply_inline): Remove.
14394 * function.h (ipa_opt_pass): Forward declare structure; typedef;
14396 (struct function): Add ipa_transforms_to_apply.
14397 * passes.c (register_one_dump_file): Work on IPA_PASS.
14398 (init_optimization_passes): Remove pass_inline_parameters and
14400 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14401 (execute_one_pass) ... here; apply transforms when possible.
14402 (add_ipa_transform_pass, execute_ipa_summary_asses,
14403 execute_one_ipa_transform_pass): New.
14404 (execute_ipa_pass_list): Update for IPA_PASS type.
14406 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14408 * config/i386/i386.c (ix86_builtin_type): Add
14409 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14410 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14411 (bdesc_args): Add SSE4a builtins.
14412 (ix86_init_mmx_sse_builtins): Updated.
14413 (ix86_expand_args_builtin): Likewise.
14414 (ix86_expand_builtin): Likewise.
14416 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14418 * config/i386/i386.c (ix86_builtin_type): Add
14419 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14420 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14421 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14422 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14423 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14424 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14425 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14426 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14427 and DI_FTYPE_DI_DI_INT.
14428 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14429 (ix86_init_mmx_sse_builtins): Updated.
14430 (ix86_expand_args_builtin): Likewise.
14431 (ix86_expand_builtin): Likewise.
14432 (ix86_expand_binop_imm_builtin): Removed.
14434 * doc/extend.texi: Correct __builtin_ia32_palignr128.
14436 2008-04-30 Richard Guenther <rguenther@suse.de>
14438 PR tree-optimization/32921
14439 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14441 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
14443 * config/arm/arm.c (arm_unwind_emit): Use
14444 crtl->all_throwers_are_sibcalls instead of
14445 cfun->all_throwers_are_sibcalls.
14446 (arm_output_fn_unwind): Likewise.
14447 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14448 instead of cfun->uses_pic_offset_table.
14449 (frv_expand_prologue): Likewise.
14450 (frv_frame_pointer_required): Likewise.
14451 (frv_expand_fdpic_call): Likewise.
14452 (frv_emit_movsi): Likewise.
14453 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14454 cfun->returns_pcc_struct instead of
14455 current_function_returns_pcc_struct.
14456 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14457 instead of cfun->calls_eh_return.
14458 (m32c_pushm_popm): Likewise.
14459 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14460 "extern" declaration.
14462 2008-04-30 Richard Guenther <rguenther@suse.de>
14464 PR tree-optimization/21636
14465 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14467 (evaluate_stmt): Print the likely value.
14468 (ccp_visit_stmt): Avoid excessive vertical spacing.
14470 2008-04-30 Rafael Espíndola <espindola@google.com>
14472 * builtins.c (fold_call_expr): Return realret.
14473 * tree-ssa-threadedge.c
14474 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14475 __builtin_object_size.
14477 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
14479 * gcc.c (wrapper_string): New variable.
14480 (insert_wrapper): New function.
14481 (execute): New option -wrapper.
14482 * doc/invoke.texi (Overall Options): New driver option -wrapper.
14484 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
14486 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14487 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14488 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14490 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
14491 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14492 config/rs6000/e500crtres64gprctr.asm,
14493 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14494 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14495 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14496 config/rs6000/e500crtsav64gprctr.asm,
14497 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14498 config/rs6000/e500crtsavg64gprctr.asm: New files.
14499 * config/rs6000/t-ppccomm: Add build rules for new files.
14500 (LIB2FUNCS_STATIC_EXTRA): Add new files.
14501 * config/rs6000/t-netbsd: Add build rules for new files.
14502 (LIB2FUNCS_STATIC_EXTRA): New variable.
14503 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14504 (CRTSAVRES_DEFAULT_SPEC): Likewise.
14505 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14507 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
14509 * config/i386/i386.c (ix86_builtin_type): Add
14510 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14511 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14512 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14513 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14514 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14515 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14516 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14517 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14518 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14519 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14520 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14521 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14522 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14523 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14524 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14525 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14526 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14527 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14528 V1DI_FTYPE_V2SI_V2SI.
14529 (bdesc_2arg): Moved to ...
14530 (bdesc_args): Here.
14531 (ix86_init_mmx_sse_builtins): Updated.
14532 (ix86_expand_args_builtin): Updated. Take a pointer
14533 to const struct builtin_description. Handle comparison
14535 (ix86_expand_sse_compare): Take a new argument for swapping operands.
14536 (ix86_expand_builtin): Updated.
14538 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14539 (ssse3_pmaddubsw128): This.
14540 (ssse3_pmaddubswv4hi3): Renamed to ...
14541 (ssse3_pmaddubsw): This.
14543 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14544 (__builtin_ia32_packssdw128): Likewise.
14545 (__builtin_ia32_packuswb128): Likewise.
14546 (__builtin_ia32_pmaddubsw): Likewise.
14547 (__builtin_ia32_pmaddubsw128): Likewise.
14549 2008-04-30 Richard Guenther <rguenther@suse.de>
14551 PR tree-optimization/14847
14552 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14553 (recognize_bits_test): Use it.
14554 (recognize_single_bit_test): Likewise.
14556 2008-04-30 Martin Jambor <mjambor@suse.cz>
14558 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14559 instead of setting number of formal parameters to zero.
14560 (ipcp_init_stage): Do not set the number of actual parameters to zero
14562 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14563 which are called with variable number of arguments.
14564 (ipcp_insert_stage): Explicitely skipping all nodes which are
14565 called with variable number of arguments.
14566 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14567 number of parameters.
14569 * ipa-prop.h (struct ipa_node_params): Added flag
14570 called_with_var_arguments
14571 (ipa_set_param_count): Added. Changed sole setter to use it.
14572 (ipa_get_param_count): Added. All readers of param_count
14573 converted to use it instead.
14574 (ipa_set_called_with_variable_arg): Added.
14575 (ipa_is_called_with_var_arguments): Added.
14576 (ipa_get_ith_param): Added. All readers of param_decls converted
14578 (ipa_set_cs_argument_count): Added, sole writer to argument_count
14580 (ipa_get_cs_argument_count): Added, all readers of argument_count
14582 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14585 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14586 (struct ipcp_lattice): Renamed cval_type to type
14587 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14589 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14590 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14591 (ipcp_insert_stage): Changed the type of variable cvalue to tree
14592 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14593 (build_const_val): Changed the type of parameter cvalue to tree
14594 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14595 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14597 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14600 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14601 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14602 (ipa_add_method): Renamed to ipa_push_func_to_list
14603 (ipa_remove_method): Renamed to ipa_pop_func_from_list
14604 (ipa_callsite_param_count): Removed.
14605 (ipa_callsite_param_count_set): Removed.
14606 (ipa_callsite_param): Removed.
14607 (ipa_callsite_callee): Removed.
14608 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14609 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14610 (ipa_method_formal_count): Removed.
14611 (ipa_method_formal_count_set): Removed.
14612 (ipa_method_get_tree): Removed.
14613 (ipa_method_tree_map_create): Removed.
14614 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14615 (ipa_create_param_decls_array): Creates the array itself
14616 (ipa_create_param_decls_array): Temporary variable info instead of
14617 a few dereferences.
14618 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14619 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14620 (get_type): Removed.
14621 (ipa_jf_get_info_type): Removed.
14622 (ipa_node_create): Renamed to ipa_create_node_params
14623 (ipa_free): Renamed to ipa_free_all_node_params
14624 (ipa_nodes_create): Renamed to ipa_create_all_node_params
14625 (ipa_edges_create): Renamed to ipa_create_all_edge_args
14626 (ipa_edges_free): Renamed to ipa_free_all_edge_args
14627 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14628 (ipa_free_all_node_params): Deallocation to jump_functions moved to
14629 ipa_free_all_edge_args
14630 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14631 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14632 (ipa_create_methodlist_node): Removed.
14633 (ipa_methodlist_method): Removed.
14634 (ipa_methodlist_method_set): Removed.
14635 (ipa_methodlist_next_method): Removed.
14636 (ipa_methodlist_next_method_set): Removed.
14637 (ipa_method_is_modified): Removed.
14638 (ipa_method_modify_create): Removed.
14639 (ipa_method_modify_init): Temporary variable info instead of a few
14641 (ipa_detect_param_modifications): Temporary variable info instead of
14642 a few dereferences.
14643 (ipa_compute_jump_functions): Temporary variable info instead of
14644 a few dereferences.
14645 (ipa_method_modify_set): Removed.
14646 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14647 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14648 than craph_node as the first parameter.
14649 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14650 (ipa_method_modify_init): Removed.
14651 (ipa_compute_jump_functions): Added a temp variable instead of
14652 repeatadly dereferencing the cgraph_edge.aux pointer
14653 (ipa_callsite_param_set_type): Removed.
14654 (ipa_compute_jump_functions): i renamed to index and moved to
14656 (ipa_callsite_param_set_info_type_formal): Removed.
14657 (ipa_callsite_param_set_info_type): Removed.
14658 (ipa_callsite_param_map_create): Removed.
14659 (ipa_callsite_tree): Removed.
14660 (ipa_callsite_caller): Removed.
14661 (ipa_pop_func_from_list): return_method removed to return_func
14663 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14664 prefixed all values with IPA_. Changed all users.
14665 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14666 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14667 and FORMAL_IPATYPE IPA_PASS_THROUGH.
14668 (union parameter_info): Renamed to jump_func_value.
14669 (union jump_func_value): Renamed value to constant
14670 (struct ipa_jump_func): Renamed info_type to value
14671 (struct ipa_node): Renamed to ipa_node_params
14672 (struct ipa_node_params): Renamed ipa_arg_num to param_count
14673 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14674 (struct ipa_node_params): Renamed ipa_mod to modified_flags
14675 (struct ipa_edge): Renamed to ipa_edge_args
14676 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14677 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14678 (struct ipa_methodlist): Renamed to ipa_func_list
14679 (struct ipa_func_list): method_p renamed to node, next_method
14681 (ipa_methodlist_p): Removed, switched all users to struct pointer
14682 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14684 2008-04-30 Alan Modra <amodra@bigpond.net.au>
14686 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14687 (rs6000_emit_epilogue): Use backchain to restore only when we
14688 have a large frame. Make use of frame pointer to restore if we
14689 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14691 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
14693 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14694 Add mode to zero_extract.
14695 (sign bit tests peepholes): (Ditto.).
14697 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
14699 * config/i386/i386.c (ix86_builtins): Replace Prescott New
14700 Instructions in comments with SSE3.
14701 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
14702 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14703 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14704 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14705 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14706 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14707 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14708 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14709 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14710 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14711 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14712 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14713 (bdesc_sse_args): Renamed to ...
14714 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14715 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14716 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14717 IX86_BUILTIN_FABSQ.
14718 (bdesc_1arg): Moved to ...
14719 (bdesc_args): Here.
14720 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
14721 Instructions in comments with SSE3.
14722 (ix86_expand_sse_operands_builtin): Renamed to ...
14723 (ix86_expand_args_builtin): This. Updated.
14724 (ix86_expand_unop1_builtin): Update comments.
14725 (ix86_expand_builtin): Updated.
14727 2008-04-29 Richard Guenther <rguenther@suse.de>
14729 PR tree-optimization/36078
14730 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
14731 Update virtual SSA form after cleaning up the CFG.
14733 2008-04-29 Richard Guenther <rguenther@suse.de>
14735 PR middle-end/15255
14736 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
14738 2008-04-29 Richard Guenther <rguenther@suse.de>
14740 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
14741 (compute_may_aliases): Do not call finalize_ref_all_pointers.
14742 (compute_flow_insensitive_aliasing): Do not treat
14743 PTR_IS_REF_ALL pointers special.
14744 (get_smt_for): Likewise.
14745 (may_alias_p): Re-structure.
14746 (is_escape_site): A ref-all pointer conversion is not an escape site.
14747 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
14748 PTR_IS_REF_ALL pointers special.
14749 * tree-ssa-structalias.h (struct alias_info): Remove
14750 ref_all_symbol_mem_tag field.
14751 (PTR_IS_REF_ALL): Remove.
14753 2008-04-29 Richard Guenther <rguenther@suse.de>
14755 PR middle-end/36077
14756 * fold-const.c (extract_muldiv_1): In combining division constants
14757 make sure to never overflow.
14759 2008-04-29 Nick Clifton <nickc@redhat.com>
14761 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
14763 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14766 * optc-gen.awk: Work around HP-UX/IA awk bug.
14768 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
14770 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
14773 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
14776 * config/i386/i386.md
14777 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
14778 Change operand 1 predicate to nonimmediate_operand.
14780 2008-04-28 Jakub Jelinek <jakub@redhat.com>
14783 * dwarf2out.c (struct die_struct): Mark as chain_circular through
14785 * gengtype.c (walk_type, write_func_for_structure): Handle
14787 * doc/gty.texi: Document chain_circular.
14789 2008-04-28 Richard Guenther <rguenther@suse.de>
14791 PR tree-optimization/36066
14792 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
14795 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
14798 * config/i386/i386.md
14799 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
14800 Use match_scratch instead of match_operand for operands 3 and 4.
14802 2008-04-27 Richard Guenther <rguenther@suse.de>
14804 PR tree-optimization/18754
14805 PR tree-optimization/34223
14806 * tree-pass.h (pass_complete_unrolli): Declare.
14807 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
14808 loop size before and after unconditionally of UL_NO_GROWTH in effect.
14809 Rewrite loop into loop closed SSA form if it is not already.
14810 (tree_unroll_loops_completely): Re-structure to iterate over
14811 innermost loops with intermediate CFG cleanups.
14812 Unroll outermost loops only if requested or the code does not grow
14814 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
14815 loops are available.
14816 (tree_vectorize): Instead do so here.
14817 (tree_complete_unroll): Also unroll outermost loops.
14818 (tree_complete_unroll_inner): New function.
14819 (gate_tree_complete_unroll_inner): Likewise.
14820 (pass_complete_unrolli): New pass.
14821 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
14822 uses outside of the loop.
14823 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14824 form if it is available.
14825 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
14826 * passes.c (init_optimization_passes): Schedule complete inner
14827 loop unrolling pass before the first CCP pass after final inlining.
14829 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
14831 * targhooks.h (default_emutls_var_fields,
14832 default_emutls_var_init): Declare.
14833 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
14834 * target.h (struct gcc_target): Add struct emutls member.
14835 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
14836 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
14837 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
14838 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
14839 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
14840 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
14841 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
14842 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
14843 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
14844 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
14845 emit debug information.
14846 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
14847 * varasm.c: Include targhooks.h.
14848 (emutls_object_section, emutls_tmpl_section): New.
14849 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
14850 (EMUTLS_SEPARATOR): New.
14851 (prefix_name): New.
14852 (get_emutls_object_name): New.
14853 (default_emutls_var_fields): New, broken out of ...
14854 (get_emutls_object_type): ... here. Adjust to use target hooks.
14855 (get_emutls_init_templ_addr): Adjust to use target hooks.
14856 (emutls_decl): Adjust to use target hooks.
14857 (emutls_finish): Likewise.
14858 (default_emutls_var_init): New, broken out of ...
14859 (assemble_variable): ... here. Adjust to use target hooks.
14860 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
14861 SECCAT_EMUTLS_TMPL.
14862 * c-common.c (handle_section_attribute): Prevent overriding
14863 sections for emulated tls with special sections.
14864 * config/i386/i386.c (x86_64_elf_select_section): Add
14865 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
14866 (x86_64_elf_unique_section): Likewise.
14867 * config/vxworks.c: Include tree.h.
14868 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
14869 (vxworks_override_options): Set TLS scheme.
14870 * doc/tm.texi (Emulated TLS): New node.
14872 2008-04-26 Simon Baldwin <simonb@google.com>
14875 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
14876 with propagated string constants.
14878 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
14880 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
14881 constraint for operand 2 when operand 0 is memory operand.
14882 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
14883 operand 0 is memory operand.
14884 (fix_trunc<mode>_i387_with_temp): Ditto.
14885 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
14886 operand 2 when operand 1 is memory operand.
14887 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
14888 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
14889 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
14890 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
14891 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
14892 operands 2,3 and 4 when operand 1 is memory operand.
14893 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
14895 (fistdi2_floor_with_temp): Ditto.
14896 (fist<mode>2_floor_with_temp): Ditto.
14897 (fistdi2_ceil_with_temp): Ditto.
14898 (fist<mode>2_ceil_with_temp): Ditto.
14899 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
14901 2008-04-26 David Daney <ddaney@avtrex.com>
14903 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
14905 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
14906 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14907 UNSPEC_UPDATE_GOT_VERSION): Renumber.
14908 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
14909 (compare_and_swap_12): New insn.
14910 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
14911 * config/mips/mips.c (mips_force_binary): New function.
14912 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
14913 (mips_expand_compare_and_swap_12): New function.
14914 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
14916 2008-04-25 Jan Hubicka <jh@suse.cz>
14919 * cfgexpand.c (pass_expand): Turn into RTL pass.
14920 * passes.c (execute_one_pass): Do pass typechecking after execution.
14921 * tree-pass.h (pass_expand): Turn into RTL pass.
14923 * function.h (struct rtl_data): Move here fields
14924 accesses_prior_frames, calls_eh_return, saves_all_registers,
14925 has_nonlocal_goto, has_asm_statement, is_thunk,
14926 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
14927 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
14928 arg_pointer_save_area_init from struct function; turn into bool.
14929 (struct function): Move
14930 calls_eh_return, saves_all_registers, has_nonlocal_goto,
14931 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
14932 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
14933 tail_call_emit, arg_pointer_save_area_init
14934 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
14935 (current_function_returns_struct, current_function_returns_pcc_struct,
14936 current_function_calls_setjmp, current_function_calls_alloca,
14937 current_function_accesses_prior_frames,
14938 current_function_calls_eh_return, current_function_is_thunk,
14939 current_function_stdarg, current_function_profile,
14940 current_function_limit_stack, current_function_uses_pic_offset_table,
14941 current_function_uses_const_pool, current_function_has_nonlocal_label,
14942 current_function_saves_all_registers,
14943 current_function_has_nonlocal_goto,
14944 current_function_has_asm_statement): Remove accesor macros.
14945 * ra-conflict.c (global_conflicts): Update.
14946 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
14947 (suitable_for_tail_call_opt_p): Update.
14948 * builtins.c (expand_builtin_return_addr): Update.
14949 (expand_builtin_setjmp_setup): Update.
14950 (expand_builtin_nonlocal_goto): Update.
14951 * final.c (final_start_function): Update.
14952 (profile_function): Update.
14953 (leaf_function_p): Update.
14954 (only_leaf_regs_used): Update.
14955 * df-scan.c (df_get_exit_block_use_set): Update.
14956 * dojump.c (clear_pending_stack_adjust): Update.
14957 * tree-stdarg.c (gate_optimize_stdarg): Update.
14958 * gimple-low.c (lower_function_body): Update.
14959 * global.c (compute_regsets): Update.
14960 (global_alloc): Update.
14961 * dwarf2out.c (dwarf2out_begin_prologue): Update.
14962 * expr.c (expand_assignment): Update.
14963 * dse.c (dse_step0): Update.
14964 (dse_step1): Update.
14965 * c-decl.c (store_parm_decls): Update.
14966 * local-alloc.c (combine_regs): Update.
14967 (find_free_reg): Update.
14968 * function.c (assign_parms_augmented_arg_list): Update.
14969 (assign_parm_find_data_types): Update.
14970 (assign_parms): Update.
14971 (allocate_struct_function): Update.
14972 (expand_function_start): Update.
14973 (expand_function_end): Update.
14974 (get_arg_pointer_save_area): Update.
14975 (thread_prologue_and_epilogue_insns): Update.
14976 (rest_of_match_asm_constraints): Update.
14977 * stor-layout.c (variable_size): Update.
14978 * gcse.c (gcse_main): Update.
14979 (bypass_jumps): Update.
14980 * gimplify.c (gimplify_function_tree): Update.
14981 * calls.c (emit_call_1): Update.
14982 (expand_call): Update.
14983 * bt-load.c (compute_defs_uses_and_gen): Update.
14984 * except.c (sjlj_assign_call_site_values): Update.
14985 (sjlj_emit_function_enter): Update.
14986 (can_throw_external): Update.
14987 (set_nothrow_function_flags): Update.
14988 (expand_builtin_unwind_init): Update.
14989 (expand_eh_return): Update.
14990 (convert_to_eh_region_ranges): Update.
14991 (output_function_exception_table): Update.
14992 * emit-rtl.c (gen_tmp_stack_mem): Update.
14993 * cfgexpand.c (expand_used_vars): Update.
14994 (tree_expand_cfg): Update.
14995 * cfgcleanup.c (rest_of_handle_jump): Update.
14996 * explow.c (allocate_dynamic_stack_space): Update.
14997 * varasm.c (assemble_start_function): Update.
14998 (force_const_mem): Update.
14999 (mark_constant_pool): Update.
15000 * tree-optimize.c (tree_rest_of_compilation): Update.
15001 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15002 * tree-cfg.c (notice_special_calls): Update.
15003 (is_ctrl_altering_stmt): Update.
15004 (tree_can_make_abnormal_goto): Update.
15005 (tree_purge_dead_abnormal_call_edges): Update.
15006 * config/alpha/predicates.md: Update.
15007 * config/alpha/alpha.c (alpha_sa_mask): Update.
15008 (alpha_sa_size): Update.
15009 (alpha_does_function_need_gp): Update.
15010 (alpha_expand_prologue): Update.
15011 (alpha_start_function): Update.
15012 (alpha_output_function_end_prologue): Update.
15013 (alpha_expand_epilogue): Update.
15014 * config/frv/frv.c (frv_stack_info): Update.
15015 (frv_expand_epilogue): Update.
15016 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15017 (s390_register_info): Update.
15018 (s390_frame_info): Update.
15019 (s390_init_frame_layout): Update.
15020 (s390_can_eliminate): Update.
15021 (save_gprs): Update.
15022 * config/spu/spu.c (spu_split_immediate): Update.
15023 (need_to_save_reg): Update.
15024 (spu_expand_prologue): Update.
15025 (spu_expand_epilogue): Update.
15026 * config/sparc/sparc.md: Update.
15027 * config/sparc/sparc.c (eligible_for_return_delay): Update.
15028 (sparc_tls_got): Update.
15029 (legitimize_pic_address): Update.
15030 (sparc_emit_call_insn): Update.
15031 (sparc_expand_prologue): Update.
15032 (output_return): Update.
15033 (print_operand): Update.
15034 (sparc_function_ok_for_sibcall): Update.
15035 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15036 * config/m32r/m32r.md: Update.
15037 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15038 (m32r_compute_frame_size): Update.
15039 (m32r_expand_prologue): Update.
15040 (m32r_expand_epilogue): Update.
15041 (m32r_legitimize_pic_address): Update.
15042 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15043 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15044 * config/i386/i386.c (ix86_frame_pointer_required): Update.
15045 (gen_push): Update.
15046 (ix86_save_reg): Update.
15047 (ix86_compute_frame_layout): Update.
15048 (ix86_expand_prologue): Update.
15049 (ix86_expand_epilogue): Update.
15050 * config/sh/sh.c (output_stack_adjust): Update.
15051 (calc_live_regs): Update.
15052 (sh5_schedule_saves): Update.
15053 (sh_expand_prologue): Update.
15054 (sh_expand_epilogue): Update.
15055 (sh_setup_incoming_varargs): Update.
15056 (sh_allocate_initial_value): Update.
15057 (sh_get_pr_initial_val): Update.
15058 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15059 * config/sh/sh.md (label:): Update.
15060 * config/avr/avr.c (out_movhi_mr_r): Update.
15061 * config/crx/crx.h (enum): Update.
15062 * config/xtensa/xtensa.h (along): Update.
15063 * config/stormy16/stormy16.c Update.
15064 (xstormy16_compute_stack_layout): Update.
15065 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15066 (fr30_expand_prologue): Update.
15067 * config/cris/cris.c (cris_conditional_register_usage): Update.
15068 (cris_reg_saved_in_regsave_area): Update.
15069 (cris_initial_frame_pointer_offset): Update.
15070 (cris_simple_epilogue): Update.
15071 (cris_expand_prologue): Update.
15072 (cris_expand_epilogue): Update.
15073 (cris_expand_pic_call_address): Update.
15074 (cris_asm_output_symbol_ref): Update.
15075 (cris_asm_output_label_ref): Update.
15076 * config/cris/cris.md Update.
15077 * config/iq2000/iq2000.c (compute_frame_size): Update.
15078 (iq2000_expand_epilogue): Update.
15079 * config/mt/mt.h (save_direction): Update.
15080 * config/mn10300/mn10300.c (mn10300_function_value): Update.
15081 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15082 (ia64_secondary_reload_class): Update.
15083 * config/m68k/m68k.c (m68k_save_reg): Update.
15084 (m68k_expand_prologue): Update.
15085 (m68k_expand_epilogue): Update.
15086 (legitimize_pic_address): Update.
15087 * config/rs6000/rs6000.c (rs6000_got_register): Update.
15088 (first_reg_to_save): Update.
15089 (first_altivec_reg_to_save): Update.
15090 (compute_vrsave_mask): Update.
15091 (compute_save_world_info): Update.
15092 (rs6000_stack_info): Update.
15093 (spe_func_has_64bit_regs_p): Update.
15094 (rs6000_ra_ever_killed): Update.
15095 (rs6000_emit_eh_reg_restore): Update.
15096 (rs6000_emit_allocate_stack): Update.
15097 (rs6000_emit_prologue): Update.
15098 (rs6000_emit_epilogue): Update.
15099 (rs6000_output_function_epilogue): Update.
15100 (output_profile_hook): Update.
15101 (rs6000_elf_declare_function_name): Update.
15102 * config/rs6000/rs6000.h (rs6000_args): Update.
15103 * config/rs6000/rs6000.md: Update.
15104 * config/mcore/mcore.c (mcore_expand_prolog): Update.
15105 * config/arc/arc.c (arc_output_function_epilogue): Update.
15106 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15107 * config/darwin.c (machopic_function_base_name): Update.
15108 * config/score/score3.c (score3_compute_frame_size): Update.
15111 (score3_epilogue): Update.
15112 * config/score/score7.c (score7_compute_frame_size): Update.
15113 (score7_prologue): Update.
15114 (score7_epilogue): Update.
15115 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15116 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15117 * config/arm/arm.c (use_return_insn): Update.
15118 (require_pic_register): Update.
15119 (arm_load_pic_register): Update.
15120 (arm_compute_save_reg0_reg12_mask): Update.
15121 (arm_compute_save_reg_mask): Update.
15122 (thumb1_compute_save_reg_mask): Update.
15123 (output_return_instruction): Update.
15124 (arm_output_function_prologue): Update.
15125 (arm_output_epilogue): Update.
15126 (arm_get_frame_offsets): Update.
15127 (arm_expand_prologue): Update.
15128 (thumb_pushpop): Update.
15129 (thumb_exit): Update.
15130 (thumb1_expand_prologue): Update.
15131 (thumb1_expand_epilogue): Update.
15132 (arm_unwind_emit): Update.
15133 (arm_output_fn_unwind): Update.
15134 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15135 * config/arm/arm.md: Update.
15136 * config/pa/pa.md: Update.
15137 * config/pa/pa.c (legitimize_pic_address): Update.
15138 (compute_frame_size): Update.
15139 (hppa_expand_prologue): Update.
15140 (hppa_expand_epilogue): Update.
15141 (borx_reg_operand): Update.
15142 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15143 (HARD_REGNO_RENAME_OK): Update.
15144 * config/mips/mips.c (mips_global_pointer): Update.
15145 (mips_save_reg_p): Update.
15146 (mips_compute_frame_info): Update.
15147 (mips_frame_pointer_required): Update.
15148 (mips_expand_prologue): Update.
15149 (mips_expand_epilogue): Update.
15150 (mips_can_use_return_insn): Update.
15151 (mips_reorg_process_insns): Update.
15152 * config/v850/v850.c (compute_register_save_size): Update.
15153 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15154 * config/mmix/mmix.c (along): Update.
15155 (mmix_expand_epilogue): Update.
15156 * config/bfin/bfin.c (legitimize_pic_address): Update.
15157 (must_save_p): Update.
15158 (stack_frame_needed_p): Update.
15159 (add_to_reg): Update.
15160 (bfin_expand_prologue): Update.
15161 * stmt.c (expand_asm_operands): Update.
15162 * reload1.c (reload): Update.
15163 (init_elim_table): Update.
15165 2008-04-25 Bob Wilson <bob.wilson@acm.org>
15167 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15169 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
15171 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15172 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
15173 (mov<mode>): Removed.
15174 (*movv4sf_internal): Likewise.
15175 (*movv2df_internal): Likewise.
15177 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15179 * config.gcc (crx-*-elf): Remove deprecation.
15181 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
15183 * config/i386/cygming-crtend.c (register_frame_ctor): Register
15184 __gcc_deregister_frame with atexit.
15185 (deregister_frame_dtor): Remove.
15187 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
15188 Nathan Sidwell <nathan@codesourcery.com>
15190 * config/rs6000/rs6000.opt (mspe): Remove Var property.
15192 * config/rs6000/rs6000.h (rs6000_spe): Declare.
15193 (rs6000_isel): Likewise.
15194 * config/rs6000/rs6000.c (rs6000_spe): New variable.
15195 (rs6000_isel): New variable.
15196 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15198 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15201 * c-common.c (handle_vector_size_attribute): Call
15202 lang_hooks.types.reconstruct_complex_type instead of
15203 reconstruct_complex_type.
15204 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15205 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15206 * langhooks.h (struct lang_hooks_for_types): Add
15207 reconstruct_complex_type hook.
15208 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15209 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15211 2008-04-24 Richard Guenther <rguenther@suse.de>
15213 * c-common.h (check_builtin_function_arguments): Declare.
15214 * c-common.c (validate_nargs): New function.
15215 (check_builtin_function_arguments): Likewise.
15216 * c-typeck.c (build_function_call): Call
15217 check_builtin_function_arguments.
15218 * builtins.c (fold_builtin_classify): Remove error reporting code.
15219 (fold_builtin_unordered_cmp): Likewise.
15220 (fold_builtin_1): Likewise.
15221 (fold_builtin_n): Likewise.
15223 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15225 PR tree-optimization/36008
15226 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15227 the original op1, rather than delta by step.
15229 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
15230 Sebastian Pop <sebastian.pop@amd.com>
15232 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15233 eliminate_local_variables_stmt, eliminate_local_variables,
15234 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15235 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15236 of code delimited by two edges in the CFG.
15237 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15238 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15239 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
15240 the case of parallelisation of reductions.
15241 (expr_invariant_in_region_p): New.
15243 * tree-flow.h (gather_blocks_in_sese_region): Declared.
15244 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15246 2008-04-24 Ira Rosen <irar@il.ibm.com>
15247 Richard Guenther <rguenther@suse.de>
15249 PR tree-optimization/36034
15250 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15251 incapable of dealing with loads with gaps.
15253 2008-04-24 Rafael Espíndola <espindola@google.com>
15255 * tree-flow.h (vrp_evaluate_conditional): Change signature.
15256 * tree-ssa-propagate.c (fold_predicate_in): Update call to
15257 vrp_evaluate_conditional.
15258 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15259 (vrp_evaluate_conditional): Split the cond argument.
15260 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15261 (simplify_stmt_for_jump_threading): Update call to
15262 vrp_evaluate_conditional.
15264 2008-04-24 Ira Rosen <irar@il.ibm.com>
15266 PR tree-optimization/35982
15267 * tree-vect-analyze.c (vect_check_interleaving): Check that the
15268 interleaved data-refs are of the same type.
15270 2008-04-24 Danny Smith <dannysmith@users.net>
15272 * c-format.c (check_format_info_main): Use strncmp rather than a
15273 magic prefix to handle multichar length specs.
15274 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15275 Don't prefix "I64" and "I32" with '\0'.
15277 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15280 * config/i386/i386.c (init_cumulative_args): Don't pass anything
15281 in registers for -m32 only if stdarg_p (fntype).
15283 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
15285 PR rtl-optimization/36006
15286 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15287 temp to op0 in order to avoid invalid rtx sharing.
15289 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15291 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
15292 check TREE_INVARIANT.
15293 * tree-gimple.c (is_gimple_address): New.
15294 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15295 * tree-gimple.h (is_gimple_address): New.
15296 * tree.h (decl_address_invariant_p): New.
15297 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15298 (build_string): Likewise.
15299 (decl_address_invariant_p): New, from is_gimple_invariant_address.
15300 (tree_invariant_p_1): Likewise.
15301 (save_expr): Use it.
15302 (tree_invariant_p): New.
15303 (skip_simple_arithmetic): Use it.
15304 (stabilize_reference_1): Use it.
15305 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15307 (build1_stat): Drop code to compute TREE_INVARIANT.
15308 (build2_stat): Drop code to compute TREE_INVARIANT.
15309 (build3_stat): Drop code to compute TREE_INVARIANT.
15310 (build4_stat): Drop code to compute TREE_INVARIANT.
15311 (build5_stat): Drop code to compute TREE_INVARIANT.
15312 (build7_stat): Drop code to compute TREE_INVARIANT.
15313 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15314 * tree.h (struct tree_base): Remove invariant_flag.
15315 (TREE_INVARIANT): Remove.
15316 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15317 (fold_builtin_expect): Check TREE_CONSTANT.
15318 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15319 * c-tree.h (c_expr_to_decl): Drop third parameter.
15320 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15321 (build_c_cast): Don't set TREE_INVARIANT.
15322 (pop_init_level): Don't set TREE_INVARIANT.
15323 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15324 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15326 (gimplify_init_constructor): Don't set TREE_INVARIANT.
15327 (gimplify_addr_expr): Adjust comment.
15328 * tree-mudflap.c (mf_build_string):
15329 * print-tree.c (print_node): Don't print TREE_INVARIANT.
15330 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15331 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15332 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15333 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15334 * langhooks.h (struct lang_hooks): Drop third parameter from
15337 2008-04-23 Richard Guenther <rguenther@suse.de>
15339 PR tree-optimization/27799
15340 PR tree-optimization/32921
15341 PR tree-optimization/32624
15342 * tree-ssa-structalias.c (merge_smts_into): Only merge the
15343 SMTs aliases and the tag itself into the solution.
15344 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15345 merge the points-to solution back into the SMT aliases.
15346 (may_alias_p): Use alias_set_subset_of instead of
15347 aliases_conflict_p. A pointer which points to
15348 memory with alias set zero may access any variable.
15350 2008-04-23 Richard Guenther <rguenther@suse.de>
15352 * alias.c (alias_set_subset_of): Correctly handle asking
15353 if zero is a subset of an alias set with zero child.
15354 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15355 (compute_flow_insensitive_aliasing): Correctly walk all
15356 pointers. Do not unnecessarily union sets.
15358 2008-04-23 Richard Guenther <rguenther@suse.de>
15360 PR middle-end/36021
15361 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15363 2008-04-22 Tomas Bily <tbily@suse.cz>
15365 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15367 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15369 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15370 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15371 * tree-inline.c (estimate_num_insns_1): Likewise.
15372 * varasm.c (const_hash_1, compare_constant, copy_constant)
15373 (compute_reloc_for_constant, output_addressed_constants): Likewise.
15374 * emit-rtl.c (component_ref_for_mem_expr)
15375 (set_mem_attributes_minus_bitpos): Likewise.
15376 * expr.c (highest_pow2_factor, expand_expr_real_1, )
15377 (is_aligning_offset): Likewise.
15378 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15379 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15380 * dojump.c (do_jump): Likewise.
15381 * builtins.c (get_pointer_alignment, get_memory_rtx)
15382 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15383 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15385 2008-04-23 Jakub Jelinek <jakub@redhat.com>
15387 PR rtl-optimization/36017
15388 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15389 expanding the library call.
15391 2008-04-22 Ian Lance Taylor <iant@google.com>
15393 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15394 than size_in_bytes.
15396 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
15398 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15399 of LR/CTR moves for Power6.
15401 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15403 PR middle-end/36003
15404 * passes.c (init_optimization_passes): Remove
15405 pass_fast_rtl_byte_dce.
15407 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
15410 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15411 builtin functions to generate faster code.
15412 (_mm_cvtpu16_ps): Ditto.
15413 (_mm_cvtpi32x2_ps): Ditto.
15415 2008-04-22 Nick Clifton <nickc@redhat.com>
15417 * common.opt (ftree-loop-distribution): Add Optimization
15420 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15421 (frv_expand_builtin_va_start): Likewise.
15423 * config/arm/arm.c (thumb_find_work_register): Fix location of
15424 argument register count.
15426 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15428 Support scheduling for ColdFire V1 and V3 microarchitecture.
15429 Improve scheduling of multiplication instructions.
15431 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
15432 (mac): New instruction attribute.
15433 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15434 (m68k_sched_mac): New variable.
15435 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15436 Handle cfv1 and cfv3.
15437 (max_insn_size): New static variable.
15438 (struct _sched_ib): New type.
15439 (sched_ib): New static variable.
15440 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15441 to fields of 'struct _sched_ib sched_ib'. Update all uses.
15442 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15444 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15445 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
15446 new variables. Update.
15447 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15448 Add modeling of cfv3 instruction buffer. Update.
15449 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15450 * config/m68k/m68k.h (TUNE_CFV3): New macro.
15451 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15452 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15453 a particular reservation applies to.
15454 (type2): Reorganize attribute values. Rename alu to alu_reg,
15455 alu_l to alu, move_l to omove. Join move to alu. Split mul
15456 to mul_l and mul_w.
15457 (cf_ib_*): Simplify description of instruction buffer.
15458 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15459 (cf_mem): Split into cf_mem1 and cf_mem2.
15460 (cf_v2_move_??): Rename to cfv12_alu_??.
15461 (cf_v2_move_l_??): Rename to cfv12_omove_??.
15462 (cf_v2_mul_??): Remove reservations.
15463 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15464 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15465 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15467 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15468 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15469 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15470 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15471 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15472 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15473 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15474 expansions of the above reservations for instructions of sizes
15477 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15479 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15481 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
15483 * coverage.c: Include tree-pass.h.
15484 (coverage_counter_alloc): Print da_file_name to the dump file.
15486 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
15488 * sbitmap.c (sbitmap_range_empty_p): New function.
15489 * sbitmap.h (sbitmap_range_empty_p): New function.
15490 * bitmap.h: Now includes obstack.h.
15492 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
15493 Kenneth Zadeck <zadeck@naturalbridge.com>
15495 * dbgcnt.def (ra_byte_scan): Added.
15496 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15497 when the last hit happens for a counter.
15498 * timevar.def (TV_DF_BYTE_LR): New variable.
15499 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15500 * passes.c (pass_fast_rtl_byte_dce): New pass.
15501 * fwprop.c (update_df): Added mode to call df_ref_create.
15502 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15503 DF_REF_EXTRACT_OFFSET.
15504 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15505 DF_BYTE_LR_OUT, df_byte_lr): New macro.
15507 (df_ref_extract): Added mode field.
15508 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15509 DF_REF_EXTRACT_OFFSET.
15510 (DF_REF_EXTRACT_MODE): New macro.
15511 (df_byte_lr_bb_info): New structure.
15512 (df_print_byte_regset, df_compute_accessed_bytes,
15513 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15514 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15515 df_byte_lr_simulate_uses,
15516 df_byte_lr_simulate_artificial_refs_at_top,
15517 df_byte_lr_simulate_artificial_refs_at_end,
15518 df_compute_accessed_bytes): New function.
15519 (df_ref_create): Add parameter.
15520 (df_byte_lr_get_bb_info): New inline function.
15521 * df-scan.c (df_ref_record, df_uses_record,
15522 df_ref_create_structure): Added mode parameter.
15523 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15524 df_defs_record, df_uses_record, df_get_conditional_uses,
15525 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15526 df_entry_block_defs_collect, df_exit_block_uses_collect):
15527 Added mode parameter to calls to df_ref_record, df_uses_record,
15528 df_ref_create_structure.
15529 (df_ref_equal_p, df_ref_compare): Added test for modes.
15530 (df_ref_create_structure): Added code to set mode. Renamed
15531 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15532 DF_REF_EXTRACT_OFFSET.
15533 * df-core.c (df_print_byte_regset): New function.
15534 * df-byte-scan.c: New file.
15535 * df-problems.c (df_rd_transfer_function): Removed unnecessary
15536 calls to BITMAP_FREE.
15537 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15538 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15539 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15540 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15541 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15542 df_byte_lr_local_compute, df_byte_lr_init,
15543 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15544 df_byte_lr_transfer_function, df_byte_lr_free,
15545 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15546 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15547 df_byte_lr_simulate_uses,
15548 df_byte_lr_simulate_artificial_refs_at_top,
15549 df_byte_lr_simulate_artificial_refs_at_end): New function.
15550 * dce.c (byte_dce_process_block): New function.
15551 (dce_process_block): au is now passed in rather than computed
15552 locally. Changed loops that look at artificial defs to not look
15553 for conditional or partial ones, because there never are any.
15554 (fast_dce): Now is able to drive byte_dce_process_block or
15555 dce_process_block depending on the kind of dce being done.
15556 (rest_of_handle_fast_dce): Add parameter to fast_dce.
15557 (rest_of_handle_fast_byte_dce): New function.
15558 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15559 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15561 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
15564 * gcc.h: Added fortran options that take arguments to
15565 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15568 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
15570 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15571 scalarization if on the LHS and not a full access.
15573 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15575 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15577 2008-04-18 Rafael Espíndola <espindola@google.com>
15579 * tree-vrp.c (find_case_label_index): Fix the binary search.
15580 (find_case_label_range): New.
15581 (vrp_visit_switch_stmt): Use find_case_label_range.
15582 (simplify_switch_using_ranges): Use find_case_label_range.
15584 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
15586 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15587 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15589 2008-04-18 Tom Tromey <tromey@redhat.com>
15592 * doc/cpp.texi (Implementation-defined behavior): Mention
15595 2008-04-18 Ian Lance Taylor <iant@google.com>
15597 * fold-const.c (pointer_may_wrap_p): New static function.
15598 (fold_comparison): Add another test for pointer overflow. Use
15599 pointer_may_wrap_p to disable some false positives.
15601 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
15603 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15604 (fname_as_string): Match updated cpp_interpret_string prototype.
15605 (fix_string_type): Support char16_t* and char32_t*.
15606 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15607 derivative) nodes. Register as builtin if C++0x.
15608 (c_parse_error): Support CPP_CHAR{16,32}.
15609 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15610 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15611 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15612 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15613 CTI_CHAR32_ARRAY_TYPE>: New elements.
15614 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15615 char32_type_node, signed_char32_type_node, char16_array_type_node,
15616 char32_array_type_node): New defines.
15617 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15618 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15619 (lex_string): Support CPP_STRING{16,32}, match updated
15620 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15621 (lex_charconst): Support CPP_CHAR{16,32}.
15622 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15623 and CPP_STRING{16,32}.
15625 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
15628 * aclocal.m4: Regenerate.
15629 * configure: Regenerate.
15631 2008-04-18 Jan Hubicka <jh@suse.cz>
15633 * except.c (dw2_size_of_call_site_table,
15634 sjlj_size_of_call_site_table): Use vector API for call_site_record.
15636 * cgraphbuild.c (build_cgraph_edges): Update.
15637 * tree-pass.h: Update comment.
15638 * final.c (leaf_function_p): Update.
15639 (leaf_renumber_regs): Update.
15640 (rest_of_clean_state): Update.
15641 * omp-low.c (expand_omp_parallel): Update.
15642 * ipa-reference.c (analyze_function): Update.
15643 * reorg.c (find_end_label): Update.
15644 (optimize_skip): Update.
15645 (fill_simple_delay_slots): Update.
15646 (fill_simple_delay_slots): Update.
15647 (make_return_insns): Update.
15648 (dbr_schedule): Update.
15649 * gimple-low.c (record_vars_into): Update.
15650 * cfgbuild.c (make_edges): Update.
15651 * function.c (assign_stack_local): Update.
15652 (assign_parm_adjust_stack_rtl): Update.
15653 (locate_and_pad_parm): Update.
15654 (allocate_struct_function): Do not initialize stack_alignment_needed
15655 and preferred_stack_boundary here.
15656 (stack_protect_prologue): Update.
15657 (stack_protect_epilogue): Update.
15658 (expand_function_start): Initialize stack_alignment_needed,
15659 preferred_stack_boundary and max_jumptable_ents.
15660 (expand_function_end): Update.
15661 (free_after_compilation): Do not NULLify epilogue_delay_list.
15662 * function.h (struct rtl_data): Add stack_protect_guard,
15663 stack_alignment_needed,
15664 preferred_stack_boundary, epilogue_delay_list.
15665 (struct function): Remove value_histograms, stack_alignment_needed,
15666 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15668 unexpanded_var_list, stack_protect_guard.
15669 (current_function_epilogue_delay_list): Remove.
15670 * ipa-type-escape.c (analyze_function): Update.
15671 * gimplify.c (pop_gimplify_context): Update comment.
15672 * calls.c (expand_call): Update.
15673 (emit_library_call_value_1): Update.
15674 * except.c (set_nothrow_function_flags): Update.
15675 * cfgexpand.c (get_decl_align_unit): Update.
15676 (create_stack_guard): Update.
15677 (estimated_stack_frame_size): Update.
15678 (expand_used_vars): Update.
15679 (tree_expand_cfg): Free histogram earliers, init expansion variables.
15680 * explow.c (allocate_dynamic_stack_space): Update.
15681 * tree-ssa-live.c (remove_unused_locals): Update.
15682 * varasm.c (mark_constant_pool): Update.
15683 * tree-inline.c (remap_decls): Update.
15684 (initialize_cfun): Update.
15685 (declare_return_variable): Update.
15686 (inline_forbidden_p): Update.
15687 (expand_call_inline): Update.
15688 (declare_inline_vars): Update.
15689 (tree_function_versioning): Update.
15690 * tree-flow.h (value_histograms): New.
15691 (VALUE_HISTOGRAMS): New macro.
15692 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15694 * tree-cfg.c (set_bb_for_stmt): Update.
15695 (replace_by_duplicate_decl): Update.
15696 (move_block_to_fn): Update.
15697 (new_label_mapper): Update.
15698 (dump_function_to_file): Update.
15699 * ipa-struct-reorg.c (build_data_structure): Update.
15700 * cfgrtl.c (print_rtl_with_bb): Update.
15701 * reload1.c (reload): Update.
15703 * config/i386/i386.c (setup_incoming_varargs_64,
15704 ix86_compute_frame_layout): Update.
15705 * config/arc/arc.c (arc_output_function_epilogue): Update.
15707 2008-04-18 Marius Strobl <marius@FreeBSD.org>
15709 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15710 for FreeBSD as well.
15711 * gthr-posix95.h: Likewise.
15713 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
15715 PR rtl-optimization/35838
15716 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15717 out the byte offset of the first subreg.
15719 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
15721 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15722 to split_ti instead of three separate calls with single member arrays.
15723 (subti3 splitter): Ditto.
15724 (adddi3 splitter): Ditto with split_di.
15725 (subdi3 splitter): Ditto.
15726 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
15727 two separate calls with single member arrays. Swap match_dup
15728 operands 1 and 2 to better fit into the array.
15729 (negdi2 splitter): Ditto with split_di.
15730 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
15731 two separate calls with single member arrays. Swap match_dup operands
15732 6 and 7 to better fit into the array.
15734 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
15736 * config/i386/i386.c (sse_builtin_type): New.
15737 (bdesc_sse_args): Likewise.
15738 (bdesc_sse_3arg): Removed.
15739 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15740 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
15741 IX86_BUILTIN_ROUNDPS.
15742 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
15743 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
15744 IX86_BUILTIN_ROUNDPS.
15745 (ix86_expand_sse_4_operands_builtin): Removed.
15746 (ix86_expand_sse_operands_builtin): New.
15747 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
15748 and CODE_FOR_sse4_1_roundps.
15749 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15750 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
15752 2008-04-17 Alan Modra <amodra@bigpond.net.au>
15755 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
15756 regs before frame pop when needed. If use_backchain_to_restore_sp
15757 then load backchain into a temp reg to restore vr and vrsave. Add
15758 code to restore vr after frame pop if possible.
15760 2008-04-17 Richard Guenther <rguenther@suse.de>
15762 * tree-vn.c (expressions_equal_p): Do not check type
15763 equality or compatibility before calling operand_equal_p.
15764 * fold-const.c (operand_equal_p): Check equivalence of
15765 integer constants before bailing out due to signedness or
15766 precision differences.
15767 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
15768 spurious differences in type qualification. Ignore types
15769 for COMPONENT_REFs at all.
15771 2008-04-17 Christian Bruel <christian.bruel@st.com>
15773 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
15774 msw_skip comparison.
15776 2008-04-16 Jakub Jelinek <jakub@redhat.com>
15779 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
15782 PR tree-optimization/35899
15783 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
15784 rather than TREE_OPERAND.
15786 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
15789 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
15790 temporary registers. Change operand predicate to general_operand.
15791 (remainderxf3): Ditto.
15793 2008-04-16 Richard Guenther <rguenther@suse.de>
15795 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
15796 * tree-affine.c (aff_combination_expand): Look through some
15799 2008-04-15 Doug Kwan <dougkwan@google.com>
15801 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
15803 * tree-pretty-print.c (dump_generic_node): Ditto.
15804 * final.c (output_addr_const): Ditto.
15805 * dwarf2out.c (output_cfi): Ditto.
15806 * c-pretty-print.c (pp_c_integer_constant): Ditto.
15807 * print-rtl.c (print_rtx): Ditto.
15808 * print-tree.c (print_node_brief, print_node): Ditto.
15809 * c-common.c (match_case_to_enum_1): Ditto.
15810 * sched-vis.c (print_value): Ditto.
15811 * config/i386/i386.c (print_operand): Cast to long unsigned int
15814 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
15815 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
15816 MS Windows VirtualProtect function.
15818 2008-04-15 Jan Hubicka <jh@suse.cz>
15820 * gengtype.c (write_root): Param_is argument is OK.
15821 * expr.c (expand_expr_real_1): Update call of get_exception_*.
15822 * function.h: Include varray.h
15823 (rtl_eh): New stucture based on except.c one.
15824 (call_site_record): New forward declaration and vector type.
15825 * calls.c (emit_call_1): Do not call
15826 note_current_region_may_contain_throw.
15827 * except.c (eh_status): Remove cur_region, try_region since they are
15829 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
15830 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
15831 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
15832 Remove call_site_data_used, call_site_data_size.
15833 Turn call_site_record into vector in function.h.
15834 (note_current_region_may_contain_throw): Remove.
15835 (get_exception_pointer, get_exception_filter): Do not take struct
15836 function argument; update.
15837 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
15838 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
15839 build_post_landing_pads, dw2_build_landing_pads,
15840 sjlj_assign_call_site_values, sjlj_mark_call_sites,
15841 sjlj_emit_function_enter, sjlj_emit_function_enter,
15842 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
15843 sjlj_build_landing_pads, finish_eh_generation,
15844 remove_exception_handler_label, remove_eh_handler,
15845 maybe_remove_eh_handler, add_reachable_handler,
15846 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
15847 add_action_record, collect_one_action_chain, add_call_site,
15848 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
15849 sjlj_output_call_site_table, output_function_exception_table,
15850 * except.h (note_current_region_may_contain_throw): Remove
15851 (get_exception_pointer, get_exception_filter): Do not take struct
15853 * Makefile.in (GTFILES): Put varargs before struct function.
15855 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
15857 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
15858 punt for STRING_CST.
15859 (get_constraint_for): Deal with STRING_CST here instead.
15861 2008-04-15 Richard Guenther <rguenther@suse.de>
15863 * tree-ssa-propagate.c (substitute_and_fold): Substitute
15864 statements in a basic-block with a backward walk. Do not
15865 substitute into dead statements but instead remove those.
15867 2008-04-15 Richard Guenther <rguenther@suse.de>
15869 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
15870 to zero, thus disable creation of SFTs.
15872 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
15874 * tree-predcom.c (suitable_reference_p): Return false if the
15875 reference can throw.
15877 2008-04-15 Jakub Jelinek <jakub@redhat.com>
15880 * c-decl.c (finish_decl): If extern or static var has variable
15881 size, set TREE_TYPE (decl) to error_mark_node.
15883 2008-04-15 Rafael Espíndola <espindola@google.com>
15885 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
15888 2008-04-15 Richard Guenther <rguenther@suse.de>
15890 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15891 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
15892 (visit_reference_op_load): Do walk vuse-vdef chains on
15893 vn_reference_lookup.
15894 (visit_reference_op_store): But do not here.
15895 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
15896 vn_reference_lookup.
15897 (vn_lookup_with_vuses): But do so here.
15899 2008-04-14 Ian Lance Taylor <iant@google.com>
15901 * fold-const.c (fold_overflow_warning): Remove assertion.
15903 2008-04-15 Ben Elliston <bje@au.ibm.com>
15905 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
15906 temp1 local variables.
15908 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
15911 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
15912 ".text.unlikely" section as executable.
15914 2008-04-14 James E. Wilson <wilson@tuliptree.org>
15916 * config/ia64/ia64.c (rtx_needs_barrier): Handle
15917 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
15918 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
15919 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
15920 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
15921 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
15922 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
15924 2008-04-14 Ian Lance Taylor <iant@google.com>
15926 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
15927 * fold-const.c (fold_comparison): If appropriate, test
15928 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
15929 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
15930 reassociating a pointer type.
15931 * doc/invoke.texi (Optimize Options): Document that
15932 -fstrict-overflow applies to pointer wraparound.
15934 2008-04-13 Jan Hubicka <jh@suse.cz>
15936 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
15938 2008-04-12 Andrew Pinski <pinskia@gmail.com>
15940 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
15941 we are going to "save the world".
15943 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
15945 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
15946 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
15947 operand 0 constraint, not "=".
15949 2008-04-11 James E. Wilson <wilson@tuliptree.org>
15951 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
15953 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
15955 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
15956 of size of positions_needed * CHAR_BIT.
15958 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
15960 PR middle-end/35897
15961 * dse.c (store_info): Change positions_needed to unsigned
15963 (lowpart_bitmask): New.
15964 (record_store): Cast to unsigned HOST_WIDE_INT for
15965 positions_needed. Assert width <= size of positions_needed *
15966 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
15967 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
15968 lowpart_bitmask to set mask.
15970 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
15972 * config/bfin/constraints.md: New file.
15973 * config/bfin/bfin.md: Include it.
15974 (adddi3): Use satisfies_constraint functions instead of the old macros.
15975 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
15976 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
15977 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
15978 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
15979 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
15980 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
15981 EXTRA_CONSTRAINT): Delete.
15982 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
15983 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
15985 * config/bfin/bfin.c: Include "tm-constrs.h".
15986 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
15987 Use satisfies_constraint functions instead of the old macros.
15988 * doc/md.texi (Blackfin Constraints): Update file name reference.
15990 2008-04-11 Richard Guenther <rguenther@suse.de>
15992 PR tree-optimization/35869
15993 * tree-vrp.c (execute_vrp): Move switch statement update after
15994 jump threading. Schedule another cfg cleanup run.
15996 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
15999 * attribs.c (decl_attributes): Return early on errorneous node.
16001 2008-04-10 Oleg Ryjkov <olegr@google.com>
16003 * tree.h (struct tree_base): Added a new flag default_def_flag.
16004 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16006 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
16008 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16010 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16013 * pa.md: Define mode iterator P. Define mode attribute dwc.
16014 (dcacheflush): Update pattern to use iterator P and attribute dwc.
16015 (icacheflush): Likewise.
16016 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16017 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16019 2008-04-11 Ben Elliston <bje@au.ibm.com>
16021 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16023 2008-04-10 Rafael Espíndola <espindola@google.com>
16025 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16026 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16027 (extract_range_from_expr): The same.
16029 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16031 * config/mips/mips.md (GPR2): New mode iterator.
16032 (seq): Add comment.
16033 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16034 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16035 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16036 Rewrite these to take two modes, the mode of comparison and the
16037 mode of the destination.
16038 * config/mips/mips.c (mips_expand_scc): Instead of having
16039 paradoxical subreg as destination, expand "narrowing" scc if mode
16040 of comparison is SI and target is requested in DI mode.
16041 (mips_emit_int_order_test): Update comment. Make mode of
16042 comparison match CMP0 rather than TARGET. When creating inverse
16043 target use mode of TARGET.
16045 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16047 * gcov-dump.c (tag_summary): Only print summaries for the first
16048 GCOV_COUNTERS_SUMMABLE counters.
16050 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
16052 * config/i386/i386.md (absneg): New code iterator.
16053 (absnegprefix): New code attribute.
16054 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16055 patterns using absneg code iterator.
16056 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16057 using absneg code iterator.
16058 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16059 *neg<mode>2 patterns using absneg code iterator.
16060 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16061 *negextendsfdf2 patterns using absneg code iterator.
16062 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16063 *negextendsfxf2 patterns using absneg code iterator.
16064 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16065 *negextendsfdf2 patterns using absneg code iterator.
16066 * config/i386/sse.md (<code><mode>2): Macroize expander from
16067 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16069 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
16071 * config/s390/s390.h: Remove the remains of the recent search
16072 & replace action of current_function_outgoing_args_size.
16074 2008-04-10 Ira Rosen <irar@il.ibm.com>
16076 PR tree-optimization/35821
16077 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16078 NEW_STMT_LIST is not NULL.
16080 2008-04-09 David Edelsohn <edelsohn@gnu.org>
16083 * toplev.c (process_options): Remove -ffunction-sections debugging
16086 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
16088 PR middle-end/PR28690
16089 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16090 than gen_rtx_fmt_ee to perform more canonicalizations.
16092 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16095 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16097 2008-04-09 Richard Guenther <rguenther@suse.de>
16099 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16100 (dump_function_to_file): Dump function arguments with types.
16102 2008-04-08 Richard Guenther <rguenther@suse.de>
16104 * fold-const.c (fold_widened_comparison): Do not allow
16105 sign-changes that change the result.
16107 2008-04-08 Janis Johnson <janis187@us.ibm.com>
16110 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16111 kinds of indirect references.
16113 2008-04-08 David Edelsohn <edelsohn@gnu.org>
16115 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16116 GNU Fortran language string.
16118 2008-04-08 Rafael Espíndola <espindola@google.com>
16120 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16121 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16122 * tree.h (tree_call_nonnegative_warnv_p): New.
16124 2008-04-08 Jan Hubicka <jh@suse.cz>
16126 * function.c (free_after_compilation): Clear out regno_reg_rtx
16129 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
16132 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16134 PR middle-end/PR28690
16135 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16136 same precedence as REG_POINTER and MEM_POINTER operands.
16138 2008-04-08 Richard Guenther <rguenther@suse.de>
16140 PR middle-end/35834
16141 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16142 for adding index to base.
16144 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
16146 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16147 (MINGW_ENABLE_EXECUTE_STACK): New.
16148 (IN_LIBGCC2): For libgcc include windows.h file for
16149 function declarations.
16151 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
16153 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16154 and tem2 if tem1 is not a REG or MULT.
16156 2008-04-08 Jan Hubicka <jh@suse.cz>
16158 * function.h (incomming_args): Break out of struct function.
16159 (function_subsections): Break out of struct function.
16160 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16161 return_rtx and hard_reg_initial_vals from struct function.
16162 Kill inl_max_label_num.
16163 (current_function_pops_args, current_function_args_info,
16164 current_function_args_size, current_function_args_size,
16165 current_function_pretend_args_size,
16166 current_function_outgoing_args_size,
16167 current_function_internal_arg_pointer, current_function_return_rtx):
16168 Kill compatibility accestor macros.
16169 * builtins.c (expand_builtin_apply_args_1): Update.
16170 (expand_builtin_next_arg): Update.
16171 * df-scan.c (df_get_call_refs): Update.
16172 * dbxout.c (dbxout_function_end): Update.
16173 * dwarf2out.c (dwarf2out_switch_text_section): Update.
16174 (output_line_info): Update.
16175 (secname_for_decl): Update.
16176 (dwarf2out_var_location): Update.
16177 * function.c (free_after_compilation): Update.
16178 (assign_parm_find_stack_rtl): Update.
16179 (assign_parms): Update.
16180 (expand_dummy_function_end): Update.
16181 (expand_function_end): Update.
16182 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16183 (expand_call): Update.
16184 (emit_library_call_value_1): Update.
16185 (store_one_arg): Update.
16186 * varasm.c (initialize_cold_section_name): Update.
16187 (unlikely_text_section): Update.
16188 (unlikely_text_section_p): Update.
16189 (assemble_start_function): Update.
16190 (assemble_end_function): Update.
16191 (default_section_type_flags): Update.
16192 (switch_to_section): Update.
16193 * integrate.c (set_decl_abstract_flags): Update.
16194 (get_hard_reg_initial_val): Update.
16195 (has_hard_reg_initial_val): Update.
16196 (allocate_initial_values): Update.
16197 * resource.c (init_resource_info): Update.
16198 * config/alpha/alpha.c (NUM_ARGS): Update.
16199 (direct_return): Update.
16200 (alpha_va_start): Update.
16201 (alpha_sa_size): Update.
16202 (alpha_initial_elimination_offset): Update.
16203 (alpha_expand_prologue): Update.
16204 (alpha_start_function): Update.
16205 (alpha_expand_epilogue): Update.
16206 (unicosmk_initial_elimination_offset):
16207 * config/alpha/alpha.md (call expander): Update.
16208 * config/s390/s390.c (s390_register_info): Update.
16209 (s390_register_info): Update.
16210 (s390_frame_info): Update.
16211 (s390_initial_elimination_offset): Update.
16212 (s390_build_builtin_va_list): Update.
16213 (s390_va_start): Update.
16214 * config/spu/spu.c (direct_return): Update.
16215 (spu_expand_prologue): Update.
16216 (spu_initial_elimination_offset): Update.
16217 (spu_build_builtin_va_list): Update.
16218 (spu_va_start): Update.
16219 * config/sparc/sparc.c (sparc_init_modes): Update.
16220 (sparc_compute_frame_size): Update.
16221 (function_value): Update.
16222 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16223 * config/i386/i386.md (return expander): Update.
16224 * config/i386/i386.c (ix86_va_start): Update.
16225 (ix86_can_use_return_insn_p): Update.
16226 (ix86_compute_frame_layout): Update.
16227 (ix86_expand_epilogue): Update.
16228 * config/sh/sh.c (output_stack_adjust): Update.
16229 (calc_live_regs): Update.
16230 (sh_expand_prologue): Update.
16231 (sh_builtin_saveregs): Update.
16232 (sh_va_start): Update.
16233 (initial_elimination_offset): Update.
16234 (sh_allocate_initial_value): Update.
16235 (sh_function_ok_for_sibcall): Update.
16236 (sh_get_pr_initial_val): Update.
16237 * config/sh/sh.md (return expander): Update.
16238 * config/avr/avr.c (frame_pointer_required_p): UPdate.
16239 * config/crx/crx.c (crx_compute_frame): UPdate.
16240 (crx_initial_elimination_offset): UPdate.
16241 * config/xtensa/xtensa.c (compute_frame_size): Update
16242 (xtensa_builtin_saveregs): Update.
16243 (xtensa_va_start): Update.
16244 (order_regs_for_local_alloc): Update.
16245 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16246 (xstormy16_expand_builtin_va_start): Update.
16247 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16248 * config/m68hc11/m68hc11.md (return expanders): Update.
16249 * config/m68hc11/m68hc11.c (expand_prologue): Update.
16250 (expand_epilogue): Update.
16251 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16252 (cris_simple_epilogue): Update.
16253 (cris_expand_prologue): Update.
16254 (cris_expand_epilogue): Update.
16255 * config/iq2000/iq2000.c (iq2000_va_start): Update.
16256 (compute_frame_size): Update.
16257 * config/mt/mt.c (mt_compute_frame_size): Update.
16258 * config/mn10300/mn10300.c (expand_prologue): Update.
16259 (expand_epilogue): Update.
16260 (initial_offset): Update.
16261 (mn10300_builtin_saveregs):
16262 * config/mn10300/mn10300.md (return expander): Update.
16263 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16264 (ia64_initial_elimination_offset): Update.
16265 (ia64_initial_elimination_offset): Update.
16266 (ia64_expand_prologue): Update.
16267 * config/m68k/m68k.md (return expander): Update.
16268 * config/rs6000/rs6000.c (rs6000_va_start): Update.
16269 (rs6000_stack_info): Update.
16270 * config/mcore/mcore.c (layout_mcore_frame): Update.
16271 (mcore_expand_prolog): Update.
16272 * config/arc/arc.c (arc_compute_frame_size): Update.
16273 * config/score/score3.c (score3_compute_frame_size): Update.
16274 * config/score/score7.c (score7_compute_frame_size): Update.
16275 * config/arm/arm.c (use_return_insn): Update.
16276 (thumb_find_work_register): Update.
16277 (arm_compute_save_reg_mask): Update.
16278 (arm_output_function_prologue): Update.
16279 (arm_output_epilogue): Update.
16280 (arm_size_return_regs): Update.
16281 (arm_get_frame_offsets): Update.
16282 (arm_expand_prologue): Update.
16283 (thumb_exit): Update.
16284 (thumb_unexpanded_epilogue): Update.
16285 (thumb1_output_function_prologue): Update.
16286 * config/pa/pa.md (return expander): Update.
16287 * config/pa/pa.c (compute_frame_size): Update.
16288 (hppa_builtin_saveregs): Update.
16289 * config/mips/mips.c (mips_va_start): Update.
16290 (mips16_build_function_stub): Update.
16291 (mips_compute_frame_info): Update.
16292 (mips_restore_gp): Update.
16293 (mips_output_function_prologue): Update.
16294 (mips_expand_prologue): Update.
16295 * config/v850/v850.c (compute_frame_size): Update.
16296 (expand_prologue): * config/mmix/mmix.c (along): update.
16297 (mmix_initial_elimination_offset): update.
16298 (mmix_reorg): update.
16299 (mmix_use_simple_return): update.
16300 (mmix_expand_prologue): update.
16301 (mmix_expand_epilogue): Update.
16302 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16303 (emit_link_insn): Update.
16305 2008-04-08 Anatoly Sokolov <aesok@post.ru>
16307 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16308 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16310 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16313 2008-04-07 Jan Hubicka <jh@suse.cz>
16315 * function.h (rtl): Rename to x_rtl.
16316 (crtl): New define.
16317 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16318 frame_offset, stack_check_probe_note, arg_pointer_save_area,
16319 used_temp_slots avail_temp_slots, temp_slot_level,
16320 nonlocal_goto_handler_labels): Update accesstors.
16321 (rtl): New global variable.
16322 (struct function): Move some fileds to rtl_data.
16323 (get_arg_pointer_save_area): Update prototype.
16324 * builtins.c (expand_builtin_setjmp_receiver): Update call of
16325 get_arg_pointer_save_area.
16326 * expr.c (init_expr): Update
16327 * function.c (get_frame_size): Update
16328 (assign_stack_local): Update
16329 (expand_function_end): Update.
16330 (get_art_pointer_save_area): Update
16332 * emit-rtl.c (rtl): Declare.
16333 (regno_reg_rtx): Declare.
16334 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16336 (gen_reg_rtx): Update.
16337 * varasm.c (n_deferred_constatns): Update accestor.
16338 (init_varasm_status): Do not allocate varasm_status.
16339 (force_const_mem, get_pool_size, output_constant_pool): Update.
16340 * stmt.c (force_label_rtx): Do not use x_ prefixes.
16341 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16342 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16343 * sparc/sparc.h (INIT_EXPANDERS): Update.
16344 * ia64/ia64.h (INIT_EXPANDERS): Update.
16346 2008-04-07 James E. Wilson <wilson@tuliptree.org>
16348 * reload.c (push_secondary_reload): Add missing break to for loop.
16350 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16352 PR middle-end/PR28690
16353 * rtlanal.c: Update copyright years.
16354 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16355 as REG_POINTER and MEM_POINTER operands.
16356 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16357 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16358 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16359 * gcse.c: Update copyright years.
16360 (pre_delete): Call gen_reg_rtx_and_attrs.
16361 (hoist_code): Likewise.
16362 (build_store_vectors): Likewise.
16363 (delete_store): Likewise.
16364 * loop-invariant.c (move_invariant_reg): Likewise.
16365 Update copyright years.
16367 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
16369 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16370 control string instead of quoted.
16372 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16374 * doc/rtl.texi: Rewrite of subreg section.
16376 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
16379 * config/i386/i386.c (legitimize_pic_address): Add treating
16380 of dllimport SYM_REF's.
16381 (legitimize_dllimport_symbol): Add prototype.
16383 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16385 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
16386 reference in constructor with non self-referential type.
16388 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16390 Removal of Return with Depressed Stack Pointer support
16391 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16392 (ECF_SP_DEPRESSED): Likewise.
16393 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16394 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16395 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16396 (expand_call): Do not test ECF_SP_DEPRESSED.
16397 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16398 * function.c (keep_stack_depressed): Delete.
16399 (handle_epilogue_set): Likewise.
16400 (update_epilogue_consts): Likewise.
16401 (emit_equiv_load): Likewise.
16402 (thread_prologue_and_epilogue_insns): Remove support for Return with
16403 Depressed Stack Pointer.
16404 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16406 2008-04-06 Richard Guenther <rguenther@suse.de>
16408 PR tree-optimization/35400
16409 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16410 information from SSA_NAMEs.
16412 2008-04-06 Anatoly Sokolov <aesok@post.ru>
16414 * config/avr/avr.h (avr_mega_p): Remove declaration.
16415 (AVR_MEGA): Remove macro.
16416 * config/avr/avr.c (avr_mega_p): Remove variable.
16417 (avr_override_options): Remove inicializion of avr_mega_p.
16418 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16419 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16420 (avr_jump_mode): (Ditto.).
16421 (avr_output_progmem_section_asm_op): (Ditto.).
16422 (avr_asm_init_sections): (Ditto.).
16423 (avr_asm_init_sections): (Ditto.).
16424 (avr_rtx_costs): (Ditto.).
16425 * config/avr/avr.md: (Ditto.).
16426 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16429 2008-04-06 Richard Guenther <rguenther@suse.de>
16431 PR tree-optimization/35842
16432 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16433 is_gimple_invariant_address.
16435 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16437 * gcc.c (default_compilers): Sync Fortran extensions list with
16438 that in fortran/lang-specs.h.
16439 * doc/invoke.texi: Likewise.
16440 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16441 * dwarf2out.c (gen_compile_unit_die): Likewise.
16443 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
16445 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16447 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
16450 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16451 attribute is used for nested functions.
16453 2008-04-05 Jan Hubicka <jh@suse.cz>
16455 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16457 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16459 (dump_files): Update.
16460 (enable_rtl_dump_file): Do not accept letter argument.
16461 * tree-pass.h (dump_file_info): Remove letter argument.
16462 * toplev.c (decode_d_option): Update -da handling.
16463 * toplev.h (enable_rtl_dump_file): Update prototype.
16464 * passes.c (register_one_dump_file): Do not accept IPA argument; work
16465 it out based on pass type.
16466 (register_dump_files_1): Likewise.
16467 (init_optimization_passes): Update register_one_dump_file calls.
16468 (execute_one_pass): Sanity check that IPA passes are called at IPA
16469 level and RTL passes at RTL level.
16470 (execute_pass_list): IPA pass can not be after or subpass of
16472 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16473 disallov RTL subpasses of IPA subpasses.
16475 2008-04-05 Ben Elliston <bje@au.ibm.com>
16477 * tree-cfg.c (need_fake_edge_p): Return false for calls to
16478 builtins that return exactly once and do not throw. Cache call to
16481 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16483 PR rtl-optimization/34916
16484 PR middle-end/35519
16485 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16486 between instruction pairs.
16488 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
16490 * doc/invoke.texi: Document -mbitops for SH.
16491 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16492 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16493 * config/sh/sh.c (print_operand): Add %t operand code.
16494 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16495 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16496 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16497 (extendqihi2): Likewise.
16498 (movqi_i): Likewise.
16499 (insv): Use bset, bclr and bst instructions for SH2A if possible.
16500 (extv): Use bld instruction for SH2A if possible.
16502 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16503 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16504 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16505 (bset.b, bclr.b): Define peepholes.
16506 * config/sh/sh.opt (mbitops): New option.
16508 2008-04-04 Janis Johnson <janis187@us.ibm.com>
16511 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16512 and view convert expression.
16514 2008-04-04 Jakub Jelinek <jakub@redhat.com>
16517 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16519 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
16521 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16523 * config/i386/cpuid.h (bit_AES): New.
16524 (bit_PCLMUL): Likewise.
16526 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16527 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
16528 SSE2 if AES or PCLMUL is enabled.
16529 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16530 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16531 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16532 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16533 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16534 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16535 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16536 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16537 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16538 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16539 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16540 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16541 __builtin_ia32_aeskeygenassist128 and
16542 __builtin_ia32_pclmulqdq128.
16543 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16544 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16545 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
16547 * config/i386/i386.h (TARGET_AES): New.
16548 (TARGET_PCLMUL): Likewise.
16549 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16551 * config/i386/i386.md (UNSPEC_AESENC): New.
16552 (UNSPEC_AESENCLAST): Likewise.
16553 (UNSPEC_AESDEC): Likewise.
16554 (UNSPEC_AESDECLAST): Likewise.
16555 (UNSPEC_AESIMC): Likewise.
16556 (UNSPEC_AESKEYGENASSIST): Likewise.
16557 (UNSPEC_PCLMUL): Likewise.
16559 * config/i386/i386.opt (maes): New.
16560 (mpclmul): Likewise.
16562 * config/i386/sse.md (aesenc): New pattern.
16563 (aesenclast): Likewise.
16564 (aesdec): Likewise.
16565 (aesdeclast): Likewise.
16566 (aesimc): Likewise.
16567 (aeskeygenassist): Likewise.
16568 (pclmulqdq): Likewise.
16570 * config/i386/wmmintrin.h: New.
16572 * doc/extend.texi: Document AES and PCLMUL built-in function.
16574 * doc/invoke.texi: Document -maes and -mpclmul.
16576 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
16578 * function.c (free_after_parsing): Replace with
16579 cxx_push_function_context from C++ front-end.
16580 (allocate_struct_function): Don't call langhook.
16581 * langhooks.h (struct lang_hooks_for_functions): Delete.
16582 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16584 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16585 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16586 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16587 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16588 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16589 remove LANG_HOOKS_FUNCTION_INITIALIZER.
16590 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16592 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16593 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16595 2008-04-04 Jakub Jelinek <jakub@redhat.com>
16598 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16601 2008-04-04 Richard Guenther <rguenther@suse.de>
16603 PR middle-end/35823
16604 * fold-const.c (optimize_minmax_comparison): Use the correct
16605 type for the constant in the simplified comparison.
16607 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
16609 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16610 Pass L2 size as "--param l2-cache-size" to the compiler.
16611 (decode_l2_cache): New function to decode L2 cache parameters using
16612 0x8000006 extended cpuid function.
16613 (detect_caches_amd): Determine parameters of L2 cache using
16614 decode_l2_caches function.
16615 (decode_caches_intel): Decode L2 cache parameters.
16616 (detect_caches_intel): Determine L2 cache parameters using
16617 decode_caches_intel and decode_l2_caches functions.
16619 2008-04-03 Bob Wilson <bob.wilson@acm.org>
16621 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16622 secondary input reload for subword loads from the constant pool.
16624 2008-04-03 Janis Johnson <janis187@us.ibm.com>
16627 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16628 constants of the appropriate size for runtime calculations.
16631 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16632 decimal-float literal constant zero.
16634 2008-04-03 Jakub Jelinek <jakub@redhat.com>
16637 * c-parser.c (c_parser_omp_atomic): Call
16638 default_function_array_conversion on the RHS.
16640 PR middle-end/35818
16641 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16642 call is_variable_sized if decl has incomplete type.
16644 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
16646 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16648 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
16650 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16652 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16653 (sgt<u>): Merge sgt and sgtu into new expander.
16654 (sgt, sgtu): Remove expanders.
16655 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16656 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16657 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16658 *sgtu_<mode>_mips16 into new pattern.
16659 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16660 (sge<u>): Merge sge and sgeu into new expander.
16661 (sge, sgeu): Remove expanders.
16662 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16664 (*sge_<mode>, second *sge_<mode>): Remove patterns.
16665 (slt<u>): Merge slt and sltu into new expander.
16666 (slt, sltu): Remove expanders.
16667 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16668 (*slt_<mode>, *sltu_<mode>): Remove patterns.
16669 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16670 *sltu_<mode>_mips16 into new pattern.
16671 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16672 (sle<u>): Merge sle and sleu into new expander.
16673 (sle, sleu): Remove expanders.
16674 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16675 (*sle_<mode>, *sleu_<mode>): Remove patterns.
16676 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16677 *sleu_<mode>_mips16 into new pattern.
16678 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16680 2008-04-03 Jan Hubicka <jh@suse.cz>
16682 PR tree-optimization/35795
16683 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16684 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16685 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16686 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16687 * score/score3.c (score3_output_mi_thunk): Likewise.
16688 * score/score7.c (score7_output_mi_thunk): Likewise.
16689 * mips/mips.c (mips_output_mi_thunk): Likewise.
16691 2008-04-03 Richard Guenther <rguenther@suse.de>
16693 * tree-vrp.c (extract_range_from_unary_expr): Handle all
16694 conversions. Simplify code.
16696 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
16698 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16700 2008-04-03 Tom Tromey <tromey@redhat.com>
16701 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16703 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16704 * config/bfin/t-bfin-linux (generated_files): Add
16705 linux-sysroot-suffix.h.
16706 * doc/install.texi (Prerequisites): Require make 3.80.
16707 * doc/sourcebuild.texi (Front End Directory): Document new
16709 * Makefile.in (generated_files): New variable.
16710 (ALL_HOST_OBJS): New variable.
16711 ($(ALL_HOST_OBJS)): New target.
16713 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
16715 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16716 (remap_block): Call id->transform_lang_insert_block instead
16718 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16719 Set id.transform_lang_insert_block to NULL.
16720 (clone_body): Move to cp/optimize.c
16721 * tree-inline.h (struct copy_body_data): Change
16722 transform_lang_insert_block to function pointer.
16723 (copy_generic_body, copy_decl_no_change): Export.
16724 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16725 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
16726 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
16728 * c-tree.h (insert_block): Kill.
16729 * c-decl.c (insert_block): Kill.
16731 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
16733 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16734 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16735 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
16737 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
16738 argument, call {push,pop}_function_context from here.
16739 * c-parser.c: Use c_{push,pop}_function_context.
16741 * function.c (push_function_context_to): Move meat ...
16742 (push_function_context): ... here. Simplify.
16743 * function.c (pop_function_context_from): Move meat ...
16744 (pop_function_context): ... here. Simplify.
16745 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
16747 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16748 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16749 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
16750 * tree.h (push_function_context_to, pop_function_context_from): Remove.
16752 2008-04-03 Ben Elliston <bje@au.ibm.com>
16754 * expmed.c (extract_force_align_mem_bit_field): Remove.
16756 2008-04-03 Richard Guenther <rguenther@suse.de>
16758 PR middle-end/35800
16759 * expr.h (try_casesi): Adjust prototype.
16760 * expr.c (try_casesi): Take fallback label as extra parameter.
16761 Use that for gen_casesi if default_label is NULL.
16762 * stmt.c (expand_case): Pass fallback label to try_casesi,
16763 make sure to fill gaps with a fallback label if default_label
16766 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
16769 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
16771 2008-04-03 Ben Elliston <bje@au.ibm.com>
16773 * expmed.c (extract_split_bit_field): Remove if (0) code.
16774 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
16775 (do_ds_constraint): Likewise.
16777 2008-04-02 Joseph Myers <joseph@codesourcery.com>
16779 * doc/cppopts.texi (-dU): Document.
16780 * c-common.h (flag_dump_macros): Update comment.
16781 * c-opts.c (handle_OPT_d): Handle -dU.
16782 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
16783 dump_queued_macros, cb_used_define, cb_used_undef): New.
16784 (init_pp_output): Handle -dU.
16785 (cb_line_change): Call dump_queued_macros.
16786 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
16788 2008-04-02 Anatoly Sokolov <aesok@post.ru>
16790 * config/avr/predicates.md (io_address_operand): New predicate.
16791 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
16792 * config/avr/avr.c (avr_io_address_p): Remove function.
16793 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
16794 'avr_io_address_p' function.
16795 (out_movhi_r_mr): (Ditto.).
16796 (out_movqi_mr_r): (Ditto.).
16797 (out_movhi_mr_r): (Ditto.).
16798 (avr_address_cost): (Ditto.).
16800 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
16802 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
16803 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
16804 in 32bit mode when XMM registers are available to avoid store
16806 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
16807 corresponding post-reload splitters.
16809 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
16811 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
16812 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
16813 __builtin_ia32_roundss.
16814 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
16815 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
16816 __builtin_ia32_roundss.
16817 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
16818 IX86_BUILTIN_SHUFPD here.
16820 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
16822 * config/i386/i386.md (plogic): New.
16823 (plogicprefix): Likewise.
16825 * config/i386/mmx.md (mmx_<code><mode>3): New.
16826 (mmx_and<mode>3): Removed.
16827 (mmx_ior<mode>3): Likewise.
16828 (mmx_xor<mode>3): Likewise.
16830 * config/i386/sse.md (<code><mode>3): New.
16831 (*<code><mode>3): Likewise.
16832 (*<code><mode>3): Likewise.
16833 (<code><mode>3): Likewise.
16834 (*sse_<code><mode>3): Likewise.
16835 (*sse2_<code><mode>3): Likewise.
16836 (<code>tf3): Likewise.
16837 (*<code>tf3): Likewise.
16838 (and<mode>3): Likewise.
16839 (*and<mode>3): Likewise.
16840 (ior<mode>3): Removed.
16841 (*ior<mode>3): Likewise.
16842 (xor<mode>3): Likewise.
16843 (*xor<mode>3): Likewise.
16844 (*and<mode>3): Likewise.
16845 (*ior<mode>3): Likewise.
16846 (*xor<mode>3): Likewise.
16847 (and<mode>3): Likewise.
16848 (*sse_and<mode>3): Likewise.
16849 (*sse2_and<mode>3): Likewise.
16850 (andtf3): Likewise.
16851 (*andtf3): Likewise.
16852 (ior<mode>3): Likewise.
16853 (*sse_ior<mode>3): Likewise.
16854 (*sse2_ior<mode>3): Likewise.
16855 (iortf3): Likewise.
16856 (*iortf3): Likewise.
16857 (xor<mode>3): Likewise.
16858 (*sse_xor<mode>3): Likewise.
16859 (*sse2_xor<mode>3): Likewise.
16860 (xortf3): Likewise.
16861 (*xortf3): Likewise.
16863 2008-04-02 Richard Guenther <rguenther@suse.de>
16865 PR tree-optimization/14495
16866 PR tree-optimization/34793
16867 * tree-vrp.c (struct switch_update): New structure.
16868 (to_remove_edges, to_update_switch_stmts): New VECs.
16869 (simplify_switch_using_ranges): New function. Remove not taken
16870 case labels and edges.
16871 (simplify_stmt_using_ranges): Call it.
16872 (identify_jump_threads): Mark edges we have queued for removal
16873 so we don't thread them.
16874 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
16876 * tree-cfg.c (group_case_labels): Deal with missing default label.
16877 (tree_verify_flow_info): Allow missing default label.
16878 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
16879 (emit_case_nodes): Likewise.
16880 (expand_case): Do not rely on the default label to be present.
16881 * expr.c (try_casesi): Deal with NULL default_label.
16882 (do_tablejump): Likewise.
16884 2008-04-02 Richard Guenther <rguenther@suse.de>
16886 PR tree-optimization/14495
16887 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
16888 SWITCH_EXPR here ...
16889 (vrp_visit_switch_stmt): ... but here (new function).
16890 (find_case_label_index): New helper function.
16891 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
16893 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16895 * fwprop.c: Fix ISO-C99ism.
16897 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16900 * Makefile.in (objdir): Set it here.
16901 * configure.ac: Not here. Find dynamic linker characteristics.
16902 * exec-tool.in: Use them.
16903 * aclocal.m4: Regenerate.
16904 * configure: Regenerate.
16906 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16908 * expr.c (expand_var): Delete it.
16909 * expr.h (expand_var): Delete prototype.
16910 * function.c (expand_function_start): Use expand_decl instead.
16911 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
16914 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
16916 PR rtl-optimization/35542
16917 * fwprop.c (forward_propagate_and_simplify): Replace
16918 loc_reg_mentioned_in_p with reg_mentioned_p.
16920 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16922 PR rtl-optimization/35281
16923 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
16924 (propagate_rtx_1): Handle PR_HANDLE_MEM.
16925 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
16926 (varying_mem_p): Move above propagate_rtx.
16927 (all_uses_available_at): Do not check MEMs.
16929 2008-04-02 Rafael Espíndola <espindola@google.com>
16931 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
16932 (register_edge_assert_for_2): Split the cond argument.
16933 (register_edge_assert_for_1): Adjust for the change in
16934 register_edge_assert_for_2.
16935 (register_edge_assert_for): Split the cond argument.
16936 (find_switch_asserts): Adjust for the change in
16937 register_edge_assert_for.
16939 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
16941 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
16942 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
16943 offsets for 64-bit mingw.
16944 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
16945 abi for x86_64-pc-mingw.
16947 2008-04-02 Richard Guenther <rguenther@suse.de>
16949 * tree-vrp.c (extract_range_from_assert): Make sure to not
16950 produce range min/max with TREE_OVERFOW set.
16951 If merging a anti-range and a range keep the anti-range if
16952 the range covers all values of the type.
16953 (register_edge_assert_for_2): Only allow sign-changing
16954 conversions in detecting canonical range checks. Also
16955 register an assert for the unsigned name if useful.
16957 PR tree-optimization/35787
16958 * tree-vrp.c (vrp_val_max): New function.
16959 (vrp_val_min): Likewise.
16960 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
16961 (vrp_val_is_min): Likewise.
16962 (supports_overflow_infinity): Use vrp_val_{min,max}.
16963 (negative_overflow_infinity): Likewise.
16964 (positive_overflow_infinity): Likewise.
16965 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
16966 (is_positive_overflow_infinity): Likewise.
16967 (is_overflow_infinity): Likewise.
16968 (avoid_overflow_infinity): Use vrp_val_{min,max} and
16969 vrp_val_is_{min,max}.
16970 (set_and_canonicalize_value_range): Canonicalize anti-ranges
16971 to ranges if possible. Avoid empty ranges.
16973 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16975 PR middle-end/35705
16976 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
16977 the expression is a function address.
16979 2008-04-01 George Helffrich <george@gcc.gnu.org>
16981 PR fortran/35154, fortran/23057
16982 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
16983 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
16984 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
16985 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
16987 (dbxout_syms): Check for COMMON-based symbol and wrap in
16988 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
16989 in bracket for efficiency.
16991 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
16992 using DW_TAG_common_block + member offset.
16993 (add_pubname_string): New function.
16994 (dw_expand_expr): New function to find block name and offset for
16996 (common_check): New function to check whether symbol in Fortran COMMON.
16997 (gen_variable_die): If COMMON, use DW_TAG_common_block.
16999 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
17002 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17004 2008-04-02 Ben Elliston <bje@au.ibm.com>
17006 * config/v850/v850.md (casesi): Remove if (0) code.
17007 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17008 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17010 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
17012 * config/i386/i386.md (rex64suffix): New mode attribute.
17013 (floathi<mode>2): Disable expander for SSE math.
17014 (*floathi<mode>2_1): New insn insn_and_split pattern.
17015 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17016 corresponding post-reload splitters.
17017 (*floathi<mode>2_i387): New macroized insn pattern.
17018 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17019 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17020 insn_and_split pattern.
17021 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17022 New macroized instruction patterns and corresponding post-reload
17024 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17025 and corresponding post-reload splitters.
17026 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17027 New macroized instruction patterns.
17028 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17029 macroized instruction patterns and corresponding post-reload splitters.
17030 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17031 corresponding post-reload splitters.
17032 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17033 New macroized instruction patterns.
17034 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17035 corresponding post-reload splitters.
17036 (*floatsi<mode>2_i387): New macroized instruction patterns.
17038 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
17040 * config/i386/i386.md (smaxmin): New.
17041 (umaxmin): Likewise.
17042 (maxminiprefix): Likewise.
17043 (maxminfprefix): Likewise.
17044 (<code><mode>3): Likewise.
17045 (smin<mode>3): Removed.
17046 (smax<mode>3): Likewise.
17048 * config/i386/mmx.md (mmx_<code>v2sf3): New.
17049 (mmx_<code>v4hi3): Likewise.
17050 (mmx_<code>v8qi3): Likewise.
17051 (mmx_smaxv2sf3): Removed.
17052 (mmx_sminv2sf3): Likewise.
17053 (mmx_umaxv8qi3): Likewise.
17054 (mmx_smaxv4hi3): Likewise.
17055 (mmx_uminv8qi3): Likewise.
17056 (mmx_sminv4hi3): Likewise.
17058 * config/i386/sse.md (<addsub><mode>3): New.
17059 (*<addsub><mode>3): Likewise.
17060 (<sse>_vm<addsub><mode>3): Likewise.
17061 (<maxmin><mode>3): Likewise.
17062 (*<maxmin><mode>3_finite): Likewise.
17063 (*<maxmin><mode>3): Likewise.
17064 (<sse>_vm<maxmin><mode>3): Likewise.
17065 (sse3_h<addsub>v4sf3): Likewise.
17066 (sse3_h<addsub>v2df3): Likewise.
17067 (<maxmin>v16qi3): Likewise.
17068 (*<maxmin>v16qi3): Likewise.
17069 (<maxmin>v8hi3): Likewise.
17070 (*<maxmin>v8hi3): Likewise.
17071 (*sse4_1_<maxmin><mode>3): Likewise.
17072 (*sse4_1_<maxmin><mode>3): Likewise.
17073 (add<mode>3): Removed.
17074 (*add<mode>3): Likewise.
17075 (<sse>_vmadd<mode>3): Likewise.
17076 (sub<mode>3): Likewise.
17077 (*sub<mode>3): Likewise.
17078 (<sse>_vmsub<mode>3): Likewise.
17079 (smin<mode>3): Likewise.
17080 (*smin<mode>3_finite): Likewise.
17081 (*smin<mode>3): Likewise.
17082 (<sse>_vmsmin<mode>3): Likewise.
17083 (smax<mode>3): Likewise.
17084 (*smax<mode>3_finite): Likewise.
17085 (*smax<mode>3): Likewise.
17086 (<sse>_vmsmax<mode>3): Likewise.
17087 (sse3_haddv4sf3): Likewise.
17088 (sse3_haddv2df3): Likewise.
17089 (sse3_hsubv4sf3): Likewise.
17090 (sse3_hsubv2df3): Likewise.
17091 (umaxv16qi3): Likewise.
17092 (*umaxv16qi3): Likewise.
17093 (smaxv8hi3): Likewise.
17094 (*smaxv8hi3): Likewise.
17095 (*sse4_1_smax<mode>3): Likewise.
17096 (*sse4_1_umax<mode>3): Likewise.
17097 (uminv16qi3): Likewise.
17098 (*uminv16qi3): Likewise.
17099 (sminv8hi3): Likewise.
17100 (*sminv8hi3): Likewise.
17101 (*sse4_1_smin<mode>3): Likewise.
17102 (*sse4_1_umin<mode>3): Likewise.
17104 2008-04-01 Rafael Espíndola <espindola@google.com>
17106 * tree-cfg.c (verify_expr): remove in_phi.
17107 (verify_stmt): Don't call walk_tree with verify_expr. Use
17108 is_gimple_min_invariant instead of is_gimple_val.
17110 2008-04-01 Joseph Myers <joseph@codesourcery.com>
17112 * doc/include/gpl_v3.texi: Update for manpage generation.
17113 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17115 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17116 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17117 gpl_v3.texi instead of gpl.texi.
17120 2008-04-01 Jakub Jelinek <jakub@redhat.com>
17123 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17125 2008-04-01 Rafael Espíndola <espindola@google.com>
17127 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17128 (extract_code_and_val_from_cond): Use
17129 extract_code_and_val_from_cond_with_ops.
17131 2008-04-01 Jan Hubicka <jh@suse.cz>
17133 * function.c (free_after_compilation): Free epilogue_delay_list.
17134 (prepare_function_start): Assert that previous compilation was freed.
17136 2008-04-01 Jan Hubicka <jh@suse.cz>
17137 Jim Wilson <wilson@tuliptree.org>
17138 Andreas Tobler <andreast@gcc.gnu.org>
17140 PR middle-end/35781
17141 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17142 rtl.emit instead cfun->emit.
17143 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17144 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17146 2008-04-01 Ben Elliston <bje@au.ibm.com>
17148 * doc/c-tree.texi (Function Basics): Fix grammatical error.
17150 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
17152 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17154 (fprofile-use): Add var flag_profile_use
17155 * coverage.c (coverage_begin_output): Do not open a gcno file for
17156 output only if -ftest-coverage is set.
17157 Do not add getpwd() to gcda file path.
17158 (build_gcov_info): Check the new flag
17159 flag_profile_datafile_relative_path.
17160 (coverage_init): Use profile_data_prefix.
17161 Read profile counter only if flag_profile_use is set.
17162 * opts.c (common_handle_option): New option fprofile-use=,
17163 fprofile-dir=, fprofile-generate=.
17164 * toplev.c (profile_data_prefix): New variable definition.
17165 * toplev.h (profile_data_prefix): New declaration.
17166 * doc/invoke.tex (Option Summary, Optimization Options):
17169 2008-03-31 James E. Wilson <wilson@tuliptree.org>
17171 * varasm.c (output_constant_pool_1): In LABEL_REF check,
17172 use tmp consistently.
17175 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17176 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17177 UNSPEC_FR_RECIP_APPROX_RES.
17178 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17180 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
17183 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17185 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
17187 PR middle-end/30186
17188 * fold-const.c (fold_indirect_ref_1): Support accessing non first
17189 element of the vector via a pointer.
17191 2008-03-31 Ian Lance Taylor <iant@google.com>
17193 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17195 2008-03-31 Jan Hubicka <jh@suse.cz>
17197 * builtins.c (expand_builtin_setjmp_receiver): Update call of
17198 get_arg_pointer_save_area.
17199 * expr.c (init_expr): Just clear out rtl.expr.
17200 * function.c (free_after_compilation): Clear out whole RTL structure.
17201 (get_func_frame_size): Merge into ...
17202 (get_frame_size): ... this one.
17203 (assign_stack_local_1): Merge into ...
17204 (assign_stack_local): ... this one.
17205 (expand_function_end): Update call of get_arg_pointer_save_area.
17206 (get_art_pointer_save_area): Remove cfun argument.
17207 * function.h (emit_status): regno_pointer_align does not need length
17208 attribute. Move x_regno_reg_rtx to ...
17209 (regno_reg_rtx): ... new global array.
17210 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17211 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17212 apply_args_value, forced_labels, stack_pointer_delta):
17214 (struct varasm_status): Move here from varasm.c
17215 (struct rtl_data): New. Move here some fields from struct function.
17216 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17217 frame_offset, stack_check_probe_note, arg_pointer_save_area,
17218 used_temp_slots avail_temp_slots, temp_slot_level,
17219 nonlocal_goto_handler_labels): Update accesstors.
17220 (rtl): New global variable.
17221 (struct function): Move some fileds to rtl_data.
17222 (get_arg_pointer_save_area): Update prototype.
17223 * emit-rtl.c (rtl): Declare.
17224 (regno_reg_rtx): Declare.
17225 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17227 (gen_reg_rtx): Update.
17228 (init_virtual_regs): Do not tate emit_status argument.
17229 (init_emit): Do not allocate emit.
17230 * varasm.c (varasm_statuc): Move to function.h.
17231 (n_deferred_constatns): Update accestor.
17232 (init_varasm_status): Do not allocate varasm_status.
17233 (force_const_mem, get_pool_size, output_constant_pool): Update.
17234 * stmt.c (force_label_rtx): Do not use x_ prefixes.
17235 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17237 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
17239 PR rtl-optimization/35729
17240 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17243 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
17246 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17247 load/store if memory is unaligned.
17248 (*movti_rex64): Likewise.
17250 * config/i386/predicates.md (misaligned_operand): New.
17252 2008-03-31 Andrew Pinski <pinskia@gmail.com>
17255 * tree-ssa-phiopt.c (conditional_replacement): Return early for
17258 2008-03-31 Jan Beulich <jbeulich@novell.com>
17260 * config/ia64/constraints.md: Add 'j' constraint.
17261 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17262 (movdi_internal): Likewise.
17264 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
17267 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17269 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
17272 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17273 proper error message for the third argument on blendpd and
17276 * config/i386/sse.md (blendbits): New.
17277 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17279 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
17281 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17283 2008-03-30 Richard Guenther <rguenther@suse.de>
17285 PR middle-end/31023
17286 * fold-const.c (fold_sign_changed_comparison): Do leave
17287 conversions to base-types alone.
17289 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
17291 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17292 the link register if one altivec register is be saved.
17294 2008-03-30 Ben Elliston <bje@au.ibm.com>
17296 * final.c (final_scan_insn): Remove if (0) code.
17298 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
17300 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17302 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
17304 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17305 of V4SFmode to ix86_binary_operator_ok.
17307 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
17309 * config/i386/i386.c (override_options): Initialize
17310 ix86_veclib_handler to ix86_veclibabi_svml when
17311 -mveclibabi=svml is used.
17312 (ix86_veclibabi_svml): New function for SVML ABI style
17313 vectorization support.
17314 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17316 2008-03-28 Rafael Espíndola <espindola@google.com>
17318 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17319 (tree_binary_nonnegative_warnv_p): Make it public.
17320 (tree_single_nonnegative_warnv_p): Make it public.
17321 (tree_invalid_nonnegative_warnv_p): Make it public.
17322 (tree_unary_nonzero_warnv_p): Make it public.
17323 (tree_binary_nonzero_warnv_p): Make it public
17324 (tree_single_nonzero_warnv_p): Make it public.
17325 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17326 (extract_range_from_binary_expr): Split the expr argument.
17327 (extract_range_from_unary_expr): Split the expr argument.
17328 (extract_range_from_comparison): Split the expr argument.
17329 (extract_range_from_expr): Use the new aux functions.
17330 (vrp_evaluate_conditional_warnv): Use
17331 vrp_evaluate_conditional_warnv_with_ops.
17332 * tree.h (tree_unary_nonzero_warnv_p): Declare.
17333 (tree_binary_nonzero_warnv_p): Declare.
17334 (tree_single_nonzero_warnv_p): Declare.
17335 (tree_expr_nonzero_warnv_p): Declare.
17336 (tree_unary_nonnegative_warnv_p): Declare.
17337 (tree_binary_nonnegative_warnv_p): Declare.
17338 (tree_single_nonnegative_warnv_p): Declare.
17339 (tree_invalid_nonnegative_warnv_p): Declare.
17341 2008-03-28 Richard Guenther <rguenther@suse.de>
17343 PR tree-optimization/30317
17344 PR tree-optimization/30911
17345 PR tree-optimization/34793
17346 * tree-vrp.c (set_and_canonicalize_value_range): New function.
17347 (struct assert_locus_d): New member EXPR.
17348 (register_new_assert_for): Add EXPR parameter to support
17349 ASSERT_EXPR <name, expr OP limit>.
17350 (register_edge_assert_for_1): Adjust callers.
17351 (find_assert_locations): Likewise.
17352 (process_assert_insertions_for): Build condition from expression.
17353 (extract_range_from_assert): Handle ASSERT_EXPRs
17354 of the form ASSERT_EXPR <name, expr OP limit>.
17355 (register_edge_assert_for_2): New helper registering
17356 asserts for comparisons. Recognize range tests of the form
17357 (unsigned)i - CST1 OP CST2.
17358 (register_edge_assert_for_1): Use it.
17359 (register_edge_assert_for): Likewise.
17360 (needs_overflow_infinity): Integer sub-types
17361 do not need overflow infinities.
17362 (vrp_val_is_max): The extreme values of integer sub-types
17363 are those of the base type.
17364 (vrp_val_is_min): Likewise.
17365 * tree.def (ASSERT_EXPR): Document extra allowed conditional
17368 2008-03-28 Nick Clifton <nickc@redhat.com>
17371 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17372 Return GENERAL_REGS for stack adjustment reloads.
17374 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
17377 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17378 const_vector when all the vectors are constant.
17380 2008-03-27 Bob Wilson <bob.wilson@acm.org>
17382 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17384 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17385 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17387 (s<code>_sf): Use new scc_sf attribute for opcode names.
17389 2008-03-27 Tom Tromey <tromey@redhat.com>
17391 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17392 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17393 config/spu/t-spu-elf, config/i386/t-interix,
17394 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17395 config/i386/x-darwin, config/i386/x-mingw32,
17396 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17397 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17398 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17399 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17400 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17401 config/rs6000/x-darwin, config/rs6000/t-rs6000,
17402 config/score/t-score-elf, config/arm/t-strongarm-pe,
17403 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17404 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17405 Revert automatic dependency patch.
17407 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
17410 * config/i386/i386.c (ix86_function_arg_boundary): Align
17411 decimal floating point to its natural boundary.
17413 2008-03-27 Richard Guenther <rguenther@suse.de>
17415 PR middle-end/35716
17416 * fold-const.c (fold_comparison): Restrict distinct decl
17417 comparison folding to VAR_DECLs and PARM_DECLs. Do not
17418 solely rely on operand_equal_p.
17420 2008-03-27 Richard Guenther <rguenther@suse.de>
17423 * c-common.c (handle_weak_attribute): Reject combination of
17426 2008-03-27 Richard Guenther <rguenther@suse.de>
17428 PR tree-optimization/32810
17429 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17430 conversions from DECL_INITIAL.
17431 (fold_const_aggregate_ref): Likewise from constructor elements.
17433 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
17435 * tree-affine.h (aff_combination_expand): Declare.
17436 (get_inner_reference_aff): Likewise.
17437 * tree-affine.c (aff_combination_expand): Split out from
17438 tree_to_aff_combination_expand.
17439 (get_inner_reference_aff): New function.
17440 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17441 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17442 (struct lim_aux_data): sm_done field removed.
17443 (mem_ref_loc_p, mem_ref_locs_p): New types.
17444 (struct mem_ref): Added id, stored, accesses_in_loop,
17445 indep_loop, dep_loop, indep_ref, dep_ref fields.
17446 Removed is_stored, locs and next fields.
17447 (memory_accesses): New variable.
17448 (movement_possibility): Do not allow moving statements
17449 that store to memory.
17450 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17452 (determine_max_movement): For statements with memory references,
17453 find the outermost loop in that the reference is independent.
17454 (move_computations_stmt): Mark the virtual operands for renaming.
17455 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17456 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17457 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17458 add_vop_ref_mapping, create_vop_ref_mapping_loop,
17459 create_vop_ref_mapping, analyze_memory_references,
17460 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17461 get_all_locs_in_loop, ref_always_accessed_p,
17462 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17463 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17464 store_motion_loop, store_motion): New functions.
17465 (struct vop_to_refs_elt): New type.
17466 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17467 memref_hash, memref_eq, hoist_memory_references): Rewritten.
17468 (schedule_sm): Replaced by...
17469 (execute_sm): ... this.
17470 (determine_lsm_ref, hoist_memory_references,
17471 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17472 find_more_ref_vops, free_mem_ref, free_mem_refs,
17473 determine_lsm_loop, determine_lsm): Removed.
17474 (tree_ssa_lim_finalize): Free data structures used by store motion.
17475 (tree_ssa_lim): Call analyze_memory_references. Use
17476 store_motion instead of determine_lsm.
17478 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
17480 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17481 rename tmake_file to m68hc11/t-m68hc11.
17482 (mcore): Set inhibit_libc to true.
17483 * config.host (alpha*-dec-*vms*): Set extra_programs.
17484 (interix3*): Don't use host_xmake_file.
17485 * configure.ac: Let config.gcc override inhibit_libc.
17486 * configure: Regenerate.
17488 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17489 * config/t-openbsd-thread: Remove commented out lines.
17491 * config/x-interix: Remove.
17493 * config/m68hc11/t-m68hc11-gas: Rename to...
17494 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
17496 * config/mcore/t-mcore: Remove T_CFLAGS.
17497 * config/mcore/t-mcore-pe: Likewise.
17499 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
17501 * configure.ac: Replace custom __GNU_SOURCE test with
17502 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
17503 * aclocal.m4: Regenerate.
17504 * configure: Regenerate.
17505 * config.in: Regenerate.
17507 2008-03-27 Richard Guenther <rguenther@suse.de>
17509 * fold-const.c (target.h): Include.
17510 (fold_comparison): Fold comparison of addresses of decls
17511 that bind locally or of constants. Consolidate address folding code.
17512 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17513 results from fold_binary_to_constant.
17514 (compare_values_warnv): Likewise.
17516 2008-03-27 Andrew Pinski <pinskia@gmail.com>
17518 PR middle-end/35429
17519 * fold-const.c (fold_truthop): Check for integeral types when folding
17520 a == 0 && b == 0 and a != 0 || b != 0 .
17522 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
17524 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17526 2008-03-26 Andreas Schwab <schwab@suse.de>
17528 * doc/invoke.texi: Fix use of @item vs. @itemx.
17530 2008-03-26 Tom Tromey <tromey@redhat.com>
17532 * Makefile.in (build/gensupport.o, build/print-rtl.o,
17533 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17534 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17535 build/gencodes.o, build/genconditions.o, build/genconfig.o,
17536 build/genconstants.o, build/genemit.o, build/genextract.o,
17537 build/genflags.o, build/genmddeps.o, build/genopinit.o,
17538 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17541 2008-03-26 Richard Guenther <rguenther@suse.de>
17544 2008-03-26 Richard Guenther <rguenther@suse.de>
17546 * fold-const.c (target.h): Include.
17547 (fold_comparison): Fold comparison of addresses of two decls
17548 that bind locally. Consolidate address folding code.
17550 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17552 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17553 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17554 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17555 dconstsqrt2, dconstthird, dconste and/or dconst10.
17556 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17557 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17558 dconstsqrt2, dconste): Delete.
17559 (init_emit_once): Likewise. Simplify initializing dconstm1.
17561 * real.c (get_real_const): New.
17562 * real.h (dconst3, dconst10, dconstm2, dconstthird,
17563 dconstsqrt2, dconste): Delete.
17564 (real_value_const, get_real_const): New.
17566 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
17568 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17570 * config/i386/i386.c (ix86_function_arg_boundary): Check
17571 BIGGEST_ALIGNMENT instead of 128.
17572 (setup_incoming_varargs_64): Likewise.
17574 2008-03-26 Tom Tromey <tromey@redhat.com>
17576 * Makefile.in (DEPFILES): Add missing '/'.
17578 2008-03-26 Richard Guenther <rguenther@suse.de>
17580 * fold-const.c (target.h): Include.
17581 (fold_comparison): Fold comparison of addresses of two decls
17582 that bind locally. Consolidate address folding code.
17584 2008-03-26 Nick Clifton <nickc@redhat.com>
17587 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17588 not allow INT+INT as a legitimate addressing mode.
17590 2008-03-26 Richard Guenther <rguenther@suse.de>
17592 * tree-flow.h (widen_bitfield): Remove declaration.
17593 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17594 (widen_bitfield): Remove function.
17595 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17598 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
17601 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17604 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
17606 PR rtl-optimization/35232
17607 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17608 (forget_old_reloads_1, forget_marked_reloads): Don't clear
17609 reg_reloaded_call_part_clobbered here.
17610 (reload_regs_reach_end_p): New function.
17611 (reload_reg_rtx_for_input): New variable.
17612 (reload_reg_rtx_for_output): Likewise.
17613 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17614 when reassigning a pseudo register. Load reloadreg from
17615 reload_reg_rtx_for_input, moving the mode and register
17617 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
17618 instead of the original when deciding whether an input reload
17619 would be a no-op or whether an output reload can be deleted.
17620 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17621 when setting up new_spill_reg_store. Load it from
17622 reload_reg_rtx_for_output, moving the mode and register
17624 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
17625 instead of the original when deciding whether an output reload
17626 would be a no-op. Do the same when modifying insn notes.
17627 Use rtx_equal_p instead of == to compare the registers.
17628 (inherit_piecemeal_p): Take a mode and two register numbers
17630 (emit_reload_insns): Clear new_spill_reg_store for every hard
17631 register in the reload register. Remove spill registers
17632 from reg_reloaded_valid before considering whether to record
17633 inheritance information for them. Use reload_reg_rtx_for_output
17634 instead of reg_rtx when recording output reloads. Use
17635 reload_reg_rtx_for_input instead of reg_rtx when recording
17636 input reloads. Set or clear reg_reloaded_call_part_clobbered
17637 at the same time as setting reg_reloaded_valid.
17638 (delete_output_reload): Add a new_reload_reg parameter and use it
17639 instead of rld[j].reg_rtx.
17640 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17643 2008-03-25 Tom Tromey <tromey@redhat.com>
17645 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17646 (build/genattr.o): Likewise.
17647 (build/genattrtab.o): Likewise.
17648 (build/gencodes.o): Likewise.
17649 (build/genconfig.o): Likewise.
17650 (build/genconstants.o): Likewise.
17651 (build/genemit.o): Likewise.
17652 (build/genextract.o): Likewise.
17653 (build/genflags.o): Likewise.
17655 2008-03-25 Bob Wilson <bob.wilson@acm.org>
17657 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17658 instead of size_int for integer types.
17659 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
17660 to match type of MINUS_EXPR.
17662 2008-03-25 Tom Tromey <tromey@redhat.com>
17664 * configure: Rebuilt.
17665 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17668 2008-03-25 Tom Tromey <tromey@redhat.com>
17670 * config/x-solaris (host-solaris.o): Update.
17671 * config/x-linux (host-linux.o): Update.
17672 * config/x-hpux (host-hpux.o): Update.
17673 * config/x-darwin (host-darwin.o): Update.
17674 * config/v850/t-v850e (v850-c.o): Update.
17675 * config/v850/t-v850 (v850-c.o): Update.
17676 * config/t-vxworks (vxworks.o): Update.
17677 * config/t-sol2 (sol2-c.o, sol2.o): Update.
17678 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17679 * config/spu/t-spu-elf (spu-c.o): Update.
17681 * config/sh/t-symbian (sh-c.o): Update.
17682 (symbian.o): Update.
17683 * config/sh/t-sh (sh-c.o): Update.
17684 * config/score/t-score-elf (score7.o, score3.o): Update.
17685 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17686 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17687 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17688 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17689 (rs6000.o): Remove.
17690 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17691 * config/m32c/t-m32c (m32c-pragma.o): Update.
17692 * config/ia64/t-ia64 (ia64-c.o): Update.
17693 * config/i386/x-mingw32 (host-mingw32.o): Update.
17694 * config/i386/x-i386 (driver-i386.o): Update.
17695 * config/i386/x-darwin (host-i386-darwin.o): Update.
17696 * config/i386/x-cygwin (host-cygwin.o): Update.
17697 * config/i386/t-nwld (nwld.o): Update.
17698 * config/i386/t-netware (netware.o): Update.
17699 * config/i386/t-interix (winnt.o): Update.
17700 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17701 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17702 msformat-c.o): Update.
17703 * config/bfin/t-bfin-linux (generated_files): Add
17704 linux-sysroot-suffix.h.
17705 * config/arm/t-wince-pe (pe.o): Update.
17706 * config/arm/t-strongarm-pe (pe.o): Update.
17707 * config/arm/t-pe (pe.o): Update.
17708 * config/arm/t-arm (arm-c.o): Update.
17709 * doc/install.texi (Prerequisites): Require make 3.80.
17710 * Makefile.in: Remove .o targets.
17711 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17712 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17713 (simple_generated_h, simple_generated_c): Move earlier.
17714 (generated_files): New variable.
17715 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17716 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17717 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17718 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17719 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17720 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17721 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17722 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17723 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17724 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17725 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
17726 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
17728 (COMPILE.base, COMPILE): New variables.
17729 (%.o): New pattern rule.
17730 (ALL_HOST_OBJS): New variable.
17731 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
17732 (dummy-checksum.o, cc1-checksum.o): Remove.
17733 (DRIVER_SHLIB): New variable.
17734 (DRIVER_DEFINES): Use it.
17735 (gencondmd.c): Move out of build/.
17736 (s-conditions): Update.
17737 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
17738 (ALL_BUILD_OBJS): Likewise.
17739 (build/%.o): Use BUILDCOMPILE.
17740 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
17741 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
17742 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
17743 build/gencheck.o, build/gencodes.o, build/genconditions.o,
17744 build/genconfig.o, build/genconstants.o, build/genemit.o,
17745 build/genextract.o, build/genflags.o, build/genmddeps.o,
17746 build/genopinit.o, build/genoutput.o, build/genpeep.o,
17747 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
17748 build/gen-protos.o, build/scan.o, build/fix-header.o,
17749 build/scan-decls.o): Simplify.
17750 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
17751 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
17752 prefix.o, toplev.o): Reduce to variable setting.
17753 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
17754 ($(out_object_file), gcc-options.o): New targets.
17755 ($(ALL_HOST_OBJS)): New target. Include dependency files.
17756 * configure: Rebuilt.
17757 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
17758 * doc/sourcebuild.texi (Front End Directory): Document new variable.
17760 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
17762 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
17763 complain when we hit an error, return ERROR_MARK_NODE.
17765 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
17767 * config/sh/constraints.md (Pso, Psz): New constraints.
17768 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
17769 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
17771 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
17773 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
17774 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
17776 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
17778 * config/sh/sh.md (prefetch): Add condition for SH2A target.
17779 (prefetch_sh2a): New.
17781 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
17782 Naveen.H.S <naveen.hs@kpitcummins.com>
17784 * config/sh/constraints.md (I28): New constraint.
17785 * config/sh/sh.c (broken_move): Add support for movi20s.
17786 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
17788 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
17789 Jayant Sonar <Jayant.sonar@kpitcummins.com>
17790 Naveen.H.S <naveen.hs@kpitcummins.com>
17792 * config/sh/sh.c (SH_ATTRIBUTES): Define.
17793 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
17794 (print_operand): Handle resbank in %@ operand code.
17795 (sh_encode_section_info): New.
17796 (push_regs): Add conditions for resbank.
17797 (sh_expand_epilogue): Likewise.
17798 (sh_insert_attributes): Likewise.
17799 (sh_attribute_table): Likewise.
17800 (sh_handle_resbank_handler_attribute): New.
17801 (sh2a_handle_function_vector_handler_attribute): New.
17802 (sh2a_is_function_vector_call): New.
17803 (sh2a_get_function_vector_number): New.
17804 (sh2a_function_vector_p): New.
17805 (sh_cfun_resbank_handler_p): New.
17806 * config/sh/sh.md (calli): Emit jsr/n if possible.
17807 (calli_tbr_rel): New.
17808 (calli_pcrel): Emit jsr/n if possible.
17809 (return_i): Emit rts/n if possible.
17810 (call_valuei_tbr_rel): New.
17811 (call_valuei_pcrel): Add condition for SH2A target.
17812 (call_value): Likewise.
17813 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
17814 (sh2a_get_function_vector_number): Likewise.
17815 (sh2a_is_function_vector_call): Likewise.
17816 * doc/extend.texi: Document TBR relative addressing of SH2A.
17817 (resbank): Add description for SH2A.
17819 2008-03-24 Richard Guenther <rguenther@suse.de>
17822 * gimplify.c (gimplify_modify_expr): For frontend type-correct
17823 pointer assignments change conversions according to middle-end rules.
17824 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
17825 * configure.ac: Include type checking in yes.
17826 * configure: Regenerate.
17828 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17830 * diagnostic.c (diagnostic_count_diagnostic): Delete.
17831 (diagnostic_report_diagnostic): Update. Handle ICEs here.
17833 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
17835 * gthr-vxworks.h (UNUSED): Define.
17837 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
17839 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
17841 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
17843 * doc/extend.texi (Function Attributes): Add missing comma in the
17844 example of the "alloc_size" attribute.
17846 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
17849 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
17851 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17854 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
17857 * stor-layout.c (update_alignment_for_field): Set minimum alignment
17858 of the underlying type of a MS bitfield layout to the natural
17859 alignment of the type.
17861 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
17863 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17864 to their natural alignment to avoid store forwarding stalls.
17866 2008-03-22 Richard Guenther <rguenther@suse.de>
17868 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
17869 For PHI nodes verify the address is invariant.
17870 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
17871 (get_symbol_constant_value): Use is_gimple_min_invariant.
17872 (maybe_fold_stmt_indirect): Likewise.
17874 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
17876 PR rtl-optimization/33927
17877 * Makefile.in (dse.o): Depend on $(TM_P_H).
17878 * expr.h (extract_low_bits): Declare.
17879 * expmed.c (extract_low_bits): New function.
17880 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
17881 * dse.c: Include tm_p.h.
17882 (find_shift_sequence): Remove the read_reg argument and return the
17883 read value. Emit the instructions instead of returning them.
17884 Iterate on new_mode rather than calculating it each time.
17885 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
17886 source to NEW_MODE and extract_low_bits to convert the shifted
17887 value to READ_MODE.
17888 (replace_read): Allow the load and store to have different mode
17889 classes. Use extract_low_bits when SHIFT == 0. Create the shift
17890 or extraction instructions before trying the replacement. Update
17891 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
17893 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
17895 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17896 to their natural alignment to avoid store forwarding stalls.
17898 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17901 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
17902 encouraging but not allowing gprs for input;
17903 change the input constraint to !f#r.
17904 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
17906 change the output constraint to !f#r.
17908 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
17911 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
17912 corresponding post-reload splitters.
17913 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
17914 when x87 FP math is selected.
17915 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
17916 New function prototype.
17917 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
17918 unreachable function to ease macroization of insn patterns.
17920 2008-03-21 Martin Jambor <mjambor@suse.cz>
17922 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
17923 reference dumps if ddr is NULL or dependence is unknown.
17925 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
17927 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
17928 unsigned extension into account.
17929 (ATOMIC_COMPARE_AND_SWAP): Likewise.
17930 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
17931 Do computations on a scratch register.
17933 2008-03-21 Richard Guenther <rguenther@suse.de>
17935 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17936 Use is_gimple_min_invariant instead of TREE_INVARIANT.
17937 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17938 * tree-ssa-dom.c (record_equality): Likewise.
17939 * tree-inline.c (copy_body_r): Likewise.
17940 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
17943 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
17945 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
17946 as 'delete_unused' argument.
17948 2008-03-20 Richard Guenther <rguenther@suse.de>
17950 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
17951 special casing of constant qualifiers.
17952 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
17953 care about them in general.
17954 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
17955 regardless of their type.
17956 (fold_stmt_r): Forcefully fold *& if we end up with that.
17958 2008-03-20 Paul Brook <paul@codesourcery.com>
17960 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
17961 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
17963 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
17965 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
17966 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
17968 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
17970 * common.opt (Wmudflap): New option.
17971 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
17972 (mx_register_decls): Likewise.
17973 (mudflap_finish_file): Likewise.
17974 * doc/invoke.texi: Document -Wno-mudflap.
17976 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
17978 * c-format.c (replace_format_name_to_system_name): New.
17979 (cmp_attribs): New.
17980 (convert_format_name_to_system_name): New.
17981 (decode_format_attr): Add use of convert_format_name_to_system_name.
17982 (format_types_orig): Add gnu_ prefix to names.
17983 (check_format_info_main): Special treating of \0 escaped names for
17984 supporting multi-character format specifiers as I32, I64.
17985 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
17986 (gnu_target_overrides_format_attributes): New.
17987 * c-format.h: Add structure target_ovr_attr to hold
17988 system specific formatter names.
17989 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
17990 msformat-c.o file to c_target_objs and cxx_target_objs.
17991 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17992 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
17993 (TARGET_N_FORMAT_TYPES): New.
17994 * config/i386/msformat-c.c: New.
17995 * config/i386/t-cygming: Add build rule for msformat-c.o.
17996 * doc/extend.texi: Add new format names gnu_* and ms_* and
17998 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18000 2008-03-20 Ira Rosen <irar@il.ibm.com>
18002 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18003 optimizations turned on under -O3.
18004 (ftree-vectorize): Add that the flag is turned on with -O3.
18006 2008-03-20 Ben Elliston <bje@au.ibm.com>
18008 * regmove.c (try_auto_increment): Fix spelling error in comment.
18009 * final.c (final_scan_insn): Likewise.
18011 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
18014 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18015 allocator preferences for "y" and "r" class registers.
18016 ("*mov<mode>_internal"): Ditto.
18017 ("*movv2sf_internal_rex64"): Ditto.
18018 ("*movv2sf_internal"): Ditto.
18020 2008-03-19 Michael Matz <matz@suse.de>
18022 PR middle-end/35616
18023 * calls.c (expand_call): Check overlap of arguments with call
18024 address for sibcalls.
18026 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18029 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18030 of the underlying type of a MS bitfield layout to the natural
18031 alignment of the type.
18033 2008-03-19 Jan Hubicka <jh@suse.cz>
18036 * toplev.c (decode_d_option): Handle all CPP flags.
18037 * tree-vrp.c: Update tree_pass descriptors.
18038 * regrename.c: Update tree_pass descriptors.
18039 * fwprop.c: Update tree_pass descriptors.
18040 * doc/invoke.texi: Remove documentation of dropped -d? flags.
18041 * tree-into-ssa.c: Update tree_pass descriptors.
18042 * tree-dump.c: Update tree_pass descriptors.
18043 * tree-complex.c: Update tree_pass descriptors.
18044 * tree-dump.h: Update tree_pass descriptors.
18045 * see.c: Update tree_pass descriptors.
18046 * cgraphbuild.c: Update tree_pass descriptors.
18047 * tracer.c: Update tree_pass descriptors.
18048 * tree-loop-distribution.c: Update tree_pass descriptors.
18049 * cgraph.c: Update tree_pass descriptors.
18050 * postreload-gcse.c: Update tree_pass descriptors.
18051 * postreload.c: Update tree_pass descriptors.
18052 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18053 * tree-tailcall.c: Update tree_pass descriptors.
18054 * tree-pass.h (tree_opt_pass): Rename to ...
18055 (opt_pass) ... this one; add "type" field and remove letter field.
18056 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18057 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18058 all_lowering_passes): Update declaration.
18059 * ipa-cp.c: Update tree_pass descriptors.
18060 * final.c: Update tree_pass descriptors.
18061 * omp-low.c: Update tree_pass descriptors.
18062 * tree-ssa-dse.c: Update tree_pass descriptors.
18063 * ipa-reference.c: Update tree_pass descriptors.
18064 * tree-ssa-uncprop.c: Update tree_pass descriptors.
18065 * auto-inc-dec.c: Update tree_pass descriptors.
18066 * reorg.c: Update tree_pass descriptors.
18067 * cgraphunit.c: Update tree_pass descriptors.
18068 * tree-ssa-copyrename.c: Update tree_pass descriptors.
18069 * tree-ssa-ccp.c: Update tree_pass descriptors.
18070 * df-core.c: Update tree_pass descriptors.
18071 * mode-switching.c: Update tree_pass descriptors.
18072 * tree-nomudflap.c: Update tree_pass descriptors.
18073 * modulo-sched.c: Update tree_pass descriptors.
18074 * ipa-pure-const.c: Update tree_pass descriptors.
18075 * cse.c: Update tree_pass descriptors.
18076 * web.c: Update tree_pass descriptors.
18077 * tree-stdarg.c: Update tree_pass descriptors.
18078 * tree-ssa-math-opts.c: Update tree_pass descriptors.
18079 * tree-ssa-dom.c: Update tree_pass descriptors.
18080 * tree-nrv.c: Update tree_pass descriptors.
18081 * tree-ssa-alias.c: Update tree_pass descriptors.
18082 * loop-init.c: Update tree_pass descriptors.
18083 * gimple-low.c: Update tree_pass descriptors.
18084 * ipa-inline.c: Update tree_pass descriptors.
18085 * tree-ssa-sink.c: Update tree_pass descriptors.
18086 * global.c: Update tree_pass descriptors.
18087 * ifcvt.c: Update tree_pass descriptors.
18088 * jump.c: Update tree_pass descriptors.
18089 * predict.c: Update tree_pass descriptors.
18090 * tree-ssa-loop.c: Update tree_pass descriptors.
18091 * recog.c: Update tree_pass descriptors.
18092 * dse.c: Update tree_pass descriptors.
18093 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18094 * tree-eh.c: Update tree_pass descriptors.
18095 * regmove.c: Update tree_pass descriptors.
18097 * function.c: Update tree_pass descriptors.
18098 * tree-vectorizer.c: Update tree_pass descriptors.
18099 * gcse.c: Update tree_pass descriptors.
18100 * ipa-type-escape.c: Update tree_pass descriptors.
18101 * tree-if-conv.c: Update tree_pass descriptors.
18102 * init-regs.c: Update tree_pass descriptors.
18103 * ipa.c: Update tree_pass descriptors.
18104 * tree-ssa-phiopt.c: Update tree_pass descriptors.
18105 * rtl-factoring.c: Update tree_pass descriptors.
18106 * lower-subreg.c: Update tree_pass descriptors.
18107 * bt-load.c: Update tree_pass descriptors.
18108 * tree-dfa.c: Update tree_pass descriptors.
18109 * except.c: Update tree_pass descriptors.
18110 * emit-rtl.c: Update tree_pass descriptors.
18111 * cfgexpand.c: Update tree_pass descriptors.
18112 * tree-cfgcleanup.c: Update tree_pass descriptors.
18113 * cfgcleanup.c: Update tree_pass descriptors.
18114 * tree-ssa-pre.c: Update tree_pass descriptors.
18115 * tree-sra.c: Update tree_pass descriptors.
18116 * tree-mudflap.c: Update tree_pass descriptors.
18117 * tree-ssa-copy.c: Update tree_pass descriptors.
18118 * cfglayout.c: Update tree_pass descriptors.
18119 * tree-ssa-forwprop.c: Update tree_pass descriptors.
18120 * tree-ssa-dce.c: Update tree_pass descriptors.
18121 * tree-ssa.c: Update tree_pass descriptors.
18122 * regclass.c: Update tree_pass descriptors.
18123 * integrate.c: Update tree_pass descriptors.
18124 * tree-optimize.c: Update tree_pass descriptors.
18125 * tree-ssa-phiprop.c: Update tree_pass descriptors.
18126 * tree-object-size.c: Update tree_pass descriptors.
18127 * combine.c: Update tree_pass descriptors.
18128 * tree-outof-ssa.c: Update tree_pass descriptors.
18129 * bb-reorder.c: Update tree_pass descriptors.
18130 * stack-ptr-mod.c: Update tree_pass descriptors.
18131 * var-tracking.c: Update tree_pass descriptors.
18132 * tree-profile.c: Update tree_pass descriptors.
18133 * tree-vect-generic.c: Update tree_pass descriptors.
18134 * reg-stack.c: Update tree_pass descriptors.
18135 * sched-rgn.c: Update tree_pass descriptors.
18136 * tree-ssa-structalias.c: Update tree_pass descriptors.
18137 * tree-cfg.c: Update tree_pass descriptors.
18138 * passes.c (current_pass): Update declaration.
18139 (finish_optimization_passes): Update.
18140 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18141 (register_one_dump_file, register_dump_files_1, next_pass_1):
18143 (init_optimization_passes): Update handling of new types.
18144 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18145 * ipa-struct-reorg.c: Update tree_pass descriptors.
18146 * tree-ssa-reassoc.c: Update tree_pass descriptors.
18147 * combine-stack-adj.c: Update tree_pass descriptors.
18148 * cfgrtl.c: Update tree_pass descriptors.
18149 * dce.c: Update tree_pass descriptors.
18150 * tree-ssanames.c: Update tree_pass descriptors.
18152 2008-03-19 Richard Guenther <rguenther@suse.de>
18154 PR middle-end/35609
18155 * tree-ssa.c (walk_data): New structure.
18156 (warn_uninitialized_var): If not always_executed warn with "maybe"
18158 (execute_early_warn_uninitialized): Compute post-dominators.
18159 Initialize always_executed before processing each basic block.
18161 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
18164 * config/i386/i386.c (x86_this_parameter): Calculate correct location
18165 of "this" pointer when "regparm = N" or "fastcall" is in effect.
18167 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18169 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18171 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
18173 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18175 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18176 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18177 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
18178 target after ignore has been set, and move there also the commputation
18179 of subtarget and original_target.
18180 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18181 (LANG_HOOKS_INITIALIZER): Remove it.
18182 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18184 2008-03-18 Richard Guenther <rguenther@suse.de>
18186 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18187 found an expression with constants, note that in the VN for the lhs.
18188 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18189 fold them to constants if possible. Run cleanup_cfg if done so.
18190 (execute_pre): Return todo.
18191 (do_pre): Likewise.
18192 (execute_fre): Likewise.
18193 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18195 (get_prop_source_stmt): Look through pointer conversions.
18197 2008-03-18 Jan Hubicka <jh@suse.cz>
18199 * tree-pretty-print.c: Include predict.h.
18200 (dump_generic_node): Dump predictor.
18201 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18202 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18203 * gimple-low.c (lower_stmt): Likewise.
18204 * expr.c (expand_expr_real): Likewise.
18205 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18207 (build_predict_expr, build_predict_expr): New.
18208 * predict.h (predictor_name, build_predict_expr): Update.
18209 * c-typeck.c (c_finish_bc_stmt): Add prediction.
18210 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18211 * predict.def (PRED_CONTINUE): Update hitrate.
18212 * tree.def (PREDICT_EXPR): Define.
18213 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18214 do not handle BIND_EXPR.
18215 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18216 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18217 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18220 2008-03-18 Michael Matz <matz@suse.de>
18222 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18224 2008-03-18 Richard Guenther <rguenther@suse.de>
18226 * tree-gimple.h (is_gimple_invariant_address): Declare.
18227 (is_gimple_constant): Likewise.
18228 * tree-gimple.c (is_gimple_constant): New function.
18229 (is_gimple_invariant_address): Likewise.
18230 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18231 and is_gimple_invariant_address.
18232 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18234 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18235 an addressable base.
18237 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18239 PR middle-end/35611
18240 * gimplify.c (gimplify_expr): Gimplify second operand of
18243 2008-03-17 Richard Guenther <rguenther@suse.de>
18245 PR tree-optimization/19637
18246 * fold-const.c (fold_unary): Remove restrictions of removing
18247 intermediate pointer-conversions (P2)(P1)P0.
18248 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18249 conversion to void pointer.
18250 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18252 2008-03-16 James E. Wilson <wilson@tuliptree.org>
18255 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18256 emulated thread local variables.
18258 2008-03-16 Richard Guenther <rguenther@suse.de>
18260 PR middle-end/35607
18261 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18262 expand TREE_INVARIANT operations that are not gimple invariant.
18264 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
18266 * doc/extend.texi (Alignment): Say that the ABI controls
18267 the __alignof__ for non-strict-alignment targets rather
18268 than being a recommendation.
18270 2008-03-15 Paul Brook <paul@codesourcery.com>
18272 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18274 (arm_output_fn_unwind): Mark functions that can not be unwound.
18276 2008-03-15 Paul Brook <paul@codesourcery.com>
18278 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18279 extension instructions.
18281 2008-03-15 Richard Guenther <rguenther@suse.de>
18283 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18284 and fold constant aggregate refs.
18285 (fold_const_aggregate_ref): Handle string constants
18286 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
18287 (evaluate_stmt): Simplify now that ccp_fold folds constant
18290 2008-03-15 Paul Brook <paul@codesourcery.com>
18292 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18293 (extzv): Use gen_extzv_t2.
18294 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18296 2008-03-15 Richard Guenther <rguenther@suse.de>
18298 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18299 (fold_const_aggregate_ref): Likewise.
18300 (get_value): Return NULL if we don't have any values.
18301 (ccp_finalize): Set const_val to NULL after freeing it.
18302 * tree-flow.h (get_symbol_constant_value): Declare.
18303 (fold_const_aggregate_ref): Likewise.
18304 * tree-ssa-sccvn.c (try_to_simplify): Use them.
18306 2008-03-15 Richard Guenther <rguenther@suse.de>
18308 PR middle-end/35593
18309 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18310 to not produce negative array indices if not allowed. Add
18311 parameter to indicate that.
18312 (maybe_fold_offset_to_component_ref): Allow negative array
18313 indices only for the first member of a structure.
18314 (maybe_fold_offset_to_reference): Allow negative array indices.
18315 (maybe_fold_stmt_addition): Likewise.
18317 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
18318 Anatoly Sokolov <aesok@post.ru>
18320 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18321 (avr_arch): Add ARCH_AVR6.
18322 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18323 (initial_elimination_offset): Initialize and use 'avr_pc_size'
18324 instead of fixed value 2.
18325 (print_operand_address): Use gs() asm specifier instead of pm().
18326 (avr_assemble_integer): (Ditto.).
18327 (avr_output_addr_vec_elt): (Ditto.).
18328 (print_operand): Handle "!" code.
18329 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18330 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18331 (AVR_HAVE_EIJMP_EICALL): Define.
18332 (AVR_3_BYTE_PC): Redefine.
18333 (AVR_2_BYTE_PC): (Ditto.).
18334 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18335 (LINK_SPEC): Add atmega2560 and atmega2561.
18336 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18338 * config/avr/avr.md (call_insn): Use eicall instead of icall
18339 for 3 byte PC devices.
18340 (call_value_insn): (Ditto.).
18341 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18342 (indirect_jump): Use only for for 2 byte PC devices.
18343 (*tablejump): (Ditto.).
18344 (*indirect_jump_avr6): Add insn.
18345 (*tablejump_rjmp): Don't use for 3 byte PC devices.
18346 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18347 instead of ijmp for 3 byte PC devices.
18348 (__tablejump2__): (Ditto.).
18349 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18350 (MULITLIB_DIRNAMES): (Ditto.).
18351 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18353 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
18355 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18356 "sse2_umulsidi3". Use V1DI mode for operand 0.
18357 ("mmx_psadbw"): Use V1DI mode for operand 0.
18358 * config/i386/i386-modes.def (V1SI): New vector mode.
18359 * config/i386/i386.c (struct builtin_description)
18360 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18361 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18362 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18363 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18364 v1di_ftype_v8qi_v8qi type.
18365 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18367 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18368 __builtin_ia32_pmuludq]: Fix the mode of return value.
18370 2008-03-15 Richard Guenther <rguenther@suse.de>
18372 PR middle-end/35595
18373 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18376 2008-03-14 Bob Wilson <bob.wilson@acm.org>
18378 * doc/invoke.texi (Option Summary, Xtensa Options): Document
18379 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18380 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18381 unless TARGET_SERIALIZE_VOLATILE is enabled.
18382 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18383 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18384 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18386 2008-03-14 Richard Guenther <rguenther@suse.de>
18388 PR tree-optimization/34172
18389 * tree-flow.h (refs_may_alias_p): Declare.
18390 (get_single_def_stmt): Likewise.
18391 (get_single_def_stmt_from_phi): Likewise.
18392 (get_single_def_stmt_with_phi): Likewise.
18393 * tree-dfa.c (refs_may_alias_p): New function.
18394 (get_single_def_stmt): Likewise.
18395 (get_single_def_stmt_from_phi): Likewise.
18396 (get_single_def_stmt_with_phi): Likewise.
18397 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18398 (vn_reference_lookup_1): New helper function.
18399 (vn_reference_lookup): Walk the virtual use-def chain to
18400 continue searching for a match if the def does not alias the
18401 reference we are looking for.
18403 2008-03-14 David Edelsohn <edelsohn@gnu.org>
18405 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
18406 archive and Perzl. Update The Written Word listing.
18408 2008-03-14 Richard Guenther <rguenther@suse.de>
18410 PR tree-optimization/34043
18411 PR tree-optimization/33989
18412 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18414 (bitmap_find_leader): Use extra argument to verify dominance
18415 relationship inside a basic-block.
18416 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18417 (find_leader_in_sets): Adjust.
18418 (create_component_ref_by_pieces): Take extra argument for
18419 dominance check, handle lookup failures.
18420 (find_or_generate_expression): Likewise.
18421 (create_expression_by_pieces): Likewise.
18422 (insert_into_preds_of_block): Adjust.
18423 (create_value_expr_from): If asked for, verify all operands
18424 are in the blocks AVAIL_OUT set.
18425 (make_values_for_stmt): Check for SSA_NAMEs that are life
18426 over an abnormal edge.
18427 (compute_avail): Remove such check.
18428 (do_SCCVN_insertion): New function.
18429 (eliminate): If we do not find a leader suitable for replacement
18430 insert a replacement expression from SCCVN if available.
18431 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18432 (struct vn_ssa_aux): Add needs_insertion flag.
18433 * tree-ssa-sccvn.c (may_insert): New global flag.
18434 (copy_reference_ops_from_ref): Value-number union member access
18435 based on its size, not type and member if insertion is allowed.
18436 (visit_reference_op_load): For a weak match from union type
18437 punning lookup a view-converted value and insert a SSA_NAME
18438 for that value if that is not found.
18439 (visit_use): Make dumps shorter. Do not disallow value numbering
18440 SSA_NAMEs that are life over an abnormal edge to constants.
18441 (free_scc_vn): Release inserted SSA_NAMEs.
18442 (run_scc_vn): New flag to specify whether insertion is allowed.
18443 Process SSA_NAMEs in forward order.
18444 * tree-ssa-loop-im.c (for_each_index): Handle invariant
18445 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18446 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18447 pointer type to/from integral types that do not change the
18448 precision to regular conversions.
18450 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
18452 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18453 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18454 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18455 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18456 input arguments and the mode of return value. Built-in functions
18457 that operate on whole 64-bit MMX register now use V1DI mode.
18459 2008-03-13 Alon Dayan <alond@il.ibm.com>
18460 Olga Golovanevsky <olga@il.ibm.com>
18462 PR tree-optimization/35041
18463 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18464 to locate the right position in a statement.
18466 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
18470 * config/i386/xmmintrin.h: Change all static inline functions to
18471 extern inline and add __gnu_inline__ attribute.
18472 * config/i386/bmintrin.h: Ditto.
18473 * config/i386/smmintrin.h: Ditto.
18474 * config/i386/tmmintrin.h: Ditto.
18475 * config/i386/mmintrin-common.h: Ditto.
18476 * config/i386/ammintrin.h: Ditto.
18477 * config/i386/emmintrin.h: Ditto.
18478 * config/i386/pmmintrin.h: Ditto.
18479 * config/i386/mmintrin.h: Ditto.
18480 * config/i386/mm3dnow.h: Ditto.
18482 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18484 PR middle-end/35185
18485 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18486 (lower_omp_2): New function.
18487 (lower_omp_1, lower_omp): Rewritten.
18489 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
18492 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18493 with the phrase "Microsoft Windows compilers".
18494 (Push/Pop Macro Pragmas): New subsection. Document
18495 #pragma push_macro and pragma pop_macro.
18497 2008-03-12 Paul Brook <paul@codesourcery.com>
18499 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18501 2008-03-12 Paul Brook <paul@codesourcery.com>
18503 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18504 (thumb2_alusi3_short): Exclude PLUS and MINUS.
18505 (thumb2_addsi_shortim): Rename ...
18506 (thumb2_addsi_short): ... to this. Allow register operands.
18507 (thumb2_subsi_short): New pattern.
18508 (thumb2_one_cmplsi2_short,
18509 thumb2_negsi2_short): New patterns and peepholes.
18511 2008-03-12 Paul Brook <paul@codesourcery.com>
18513 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18515 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
18517 * config/i386/i386.md (int_cond): New code iterator.
18519 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18520 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18521 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18522 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18523 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18524 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18525 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18526 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18528 2008-03-12 Paul Brook <paul@codesourcery.com>
18530 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18531 instead of {arm,thumb}_compute_save_reg_mask.
18532 (output_return_instruction): Ditto.
18533 (thumb_unexpanded_epilogue): Ditto.
18534 (thumb1_expand_prologue): Ditto.
18535 (thumb1_output_function_prologue): Ditto.
18536 (arm_set_return_address): Ditto.
18537 (thumb_set_return_address): Ditto.
18538 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
18539 regs to achieve stack alignment.
18540 (thumb1_compute_save_reg_mask): Fix compiler warning.
18541 (arm_output_epilogue): Use offsets->saved_regs_mask.
18542 Adjust stack pointer by poping call clobered registers.
18543 (arm_expand_prologue): Use offsets->saved_regs_mask.
18544 Adjust stack pointer by pushing extra registers.
18545 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18547 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
18550 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18551 conversion to the operands of a multiplication.
18553 2008-03-12 Richard Guenther <rguenther@suse.de>
18555 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18556 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18557 * timevar.def (TV_TREE_PHIPROP): Add.
18558 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18559 pass description. Use TV_TREE_PHIPROP.
18560 * tree-ssa-forwprop.c: Remove phiprop code.
18562 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18564 PR middle-end/35549
18565 * omp-low.c (maybe_lookup_decl): Constify first argument.
18566 (use_pointer_for_field): Change last argument from bool to
18567 omp_context *. Disallow shared copy-in/out in nested
18568 parallel if decl is shared in outer parallel too.
18569 (build_outer_var_ref, scan_sharing_clauses,
18570 lower_rec_input_clauses, lower_copyprivate_clauses,
18571 lower_send_clauses, lower_send_shared_vars): Adjust callers.
18573 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
18574 Ira Rosen <irar@il.ibm.com>
18576 * tree-vectorizer.c (free_stmt_vec_info): New function.
18577 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18578 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18579 * tree-vectorizer.h (free_stmt_vec_info): Declare.
18580 * tree-vect-transform.c (vectorizable_conversion): Free
18581 vec_oprnds0 if it was allocated.
18582 (vect_permute_store_chain): Remove unused VECs.
18583 (vectorizable_store): Free VECs that are allocated in the..
18585 (vect_transform_strided_load, vectorizable_load): Likewise.
18586 (vect_remove_stores): Simplify the code.
18587 (vect_transform_loop): Move code to vect_remove_stores().
18588 Call vect_remove_stores() and free_stmt_vec_info().
18590 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18592 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18593 TARGET_HPUX. Revise comment.
18594 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18595 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18596 Use sr4 variant of `be' instruction when not generating PIC code.
18597 (attr_length_call): Adjust for above change.
18599 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18601 * ipa-reference.c (static_execute): Remove module_statics_const and
18602 associated setting code.
18604 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
18607 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18608 predicate for operand 1.
18609 (paritysi2_cmp): Use register_operand predicate for operand 2.
18610 Use earlyclobber modifier for operand 1. Remove support for
18612 (paritydi2_cmp): Use register_operand predicate for operand 3.
18613 Use earlyclobber modifier for operand 1. Remove support for
18616 2008-03-11 Paul Brook <paul@codesourcery.com>
18617 Vladimir Prus <vladimir@codesourcery.com>
18619 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18620 (arm_compute_save_reg0_reg12_mask): Always
18621 check if register 11 must be saved. Always safe hard frame pointer
18622 when frame_pointer_needeed.
18623 (arm_compute_save_reg_mask): Save IP and PC
18624 only with apcs frames.
18625 (arm_output_epilogue): Adjust Thumb2 codepath to
18626 be also invoked and work for ARM non-apcs frames.
18627 (arm_expand_prologue): Don't bother saving IP
18628 for non-apcs frame, since it's not clobbered by
18629 prologue code. Implement non-apcs frame
18632 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
18634 PR rtl-optimization/35281
18635 * expr.c (convert_move): Use a new pseudo for the intermediate
18636 from_mode->word_mode result.
18638 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
18640 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18641 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18642 * toplev.c (compile_file): Don't call it.
18644 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
18646 PR middle-end/35526
18647 * expr.c (store_expr): Call emit_block_move if the mode
18648 of "temp" RTX is BLKmode.
18650 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18651 Richard Guenther <rguenther@suse.de>
18653 PR tree-optimization/31358
18654 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18655 the step with a NULL_TREE.
18656 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18657 to sizetype if type is a pointer type.
18658 (add_candidate_1): Don't convert the base and step to
18659 the generic type if the orginal type is a pointer type.
18660 (add_iv_value_candidates): Use sizetype for the step
18661 if type is a pointer type.
18662 (cand_value_at): Likewise.
18663 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18665 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18666 Don't convert the tem affine to the type.
18667 (add_elt_to_tree): Use sizetype for the step if a pointer.
18668 Use POINTER_PLUS_EXPR for pointers.
18669 (aff_combination_to_tree): Use sizetype for the step if a
18672 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
18674 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18675 Remove commutativity hint.
18677 2008-03-10 Jakub Jelinek <jakub@redhat.com>
18681 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18682 errorneous type. Check that v is a VAR_DECL.
18684 PR middle-end/35099
18685 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18687 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
18689 PR tree-optimization/35494
18690 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18691 may be overriden at link and run time.
18693 2008-03-10 Richard Guenther <rguenther@suse.de>
18695 PR tree-optimization/34677
18696 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18697 (poolify_tree): Likewise.
18698 (modify_expr_template): Likewise.
18699 (poolify_modify_stmt): Likewise.
18700 (insert_fake_stores): Handle all component-ref style stores
18701 in addition to INDIRECT_REF. Also handle complex types.
18702 Do not poolify the inserted load.
18703 (realify_fake_stores): Do not rebuild the tree but only
18704 make it a SSA_NAME copy.
18705 (init_pre): Remove initialzation of modify_expr_template.
18706 Do not allocate modify_expr_node_pool.
18707 (fini_pre): Do not free modify_expr_node_pool.
18709 2008-03-10 Paul Brook <paul@codesourcery.com>
18711 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18712 to avoid conflicts.
18714 2008-03-10 Paul Brook <paul@codesourcery.com>
18715 Mark Shinwell <shinwell@codesourcery.com>
18717 * config/arm/cortex-r4.md: New.
18718 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18720 * config/arm/arm.md: Include cortex-r4.md.
18721 (insn): Add smmls, sdiv and udiv values.
18722 (generic_sched): Don't use generic scheduling for Cortex-R4.
18723 (arm_issue_rate): New function.
18724 (TARGET_SCHED_ISSUE_RATE): Define.
18726 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
18728 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
18730 2008-03-10 Richard Guenther <rguenther@suse.de>
18732 * tree-ssa-pre.c (get_sccvn_value): Simplify.
18733 (compute_avail): Do not add stmt uses to AVAIL_OUT.
18735 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
18737 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
18738 Set default to true.
18740 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18742 * c.opt (Wsynth): Deprecate.
18743 * doc/invoke.texi (Option Summary, Warning Options): Document
18744 -Wno-format-contains-nul.
18746 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
18749 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
18750 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
18752 2008-03-09 Ira Rosen <irar@il.ibm.com>
18754 * config/rs6000/rs6000.c (builtin_description): Rename vector
18755 left shift operations.
18756 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
18757 (altivec_vsl<VI_char>): Rename to ...
18758 (ashl<mode>3): ... new name.
18759 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
18761 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
18763 2008-03-08 Richard Guenther <rguenther@suse.de>
18765 * coverage.h (tree_coverage_counter_addr): Declare.
18766 * coverage.c (tree_coverage_counter_addr): New function.
18767 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
18768 before using again.
18769 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
18770 (tree_gen_one_value_profiler): Likewise.
18771 (tree_gen_ic_profiler): Likewise.
18772 (tree_gen_average_profiler): Likewise.
18773 (tree_gen_ior_profiler): Likewise.
18775 2008-03-08 Richard Guenther <rguenther@suse.de>
18777 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
18778 (vn_binary_op_insert): Likewise.
18779 (vn_unary_op_lookup): Likewise.
18780 (vn_unary_op_insert): Likewise.
18781 (vn_nary_op_lookup): Declare.
18782 (vn_nary_op_insert): Likewise.
18783 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
18784 and binary hashes, use a single obstack for unary_op_pool
18785 and binary_op_pool.
18786 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
18787 a single struct vn_nary_op_s. Store tree code length and
18788 a variable number of operands.
18789 (struct vn_reference_op_struct): Remove unused op2.
18790 (vn_reference_op_eq): Do not compare op2.
18791 (vn_reference_op_compute_hash): Do not compute hash of op2.
18792 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
18793 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
18794 with vn_nary_op_compute_hash.
18795 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
18796 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
18798 (vn_unary_op_insert, vn_binary_op_insert): Replace with
18800 (visit_unary_op): Call nary functions.
18801 (visit_binary_op): Likewise.
18802 (process_scc): Adjust for struct vn_tables_s changes.
18803 (allocate_vn_table): Likewise.
18804 (free_vn_table): Likewise.
18805 * tree-vn.c (vn_add): Call nary functions.
18806 (vn_lookup): Likewise.
18808 2008-03-08 Jakub Jelinek <jakub@redhat.com>
18811 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
18812 wdst back after sync_compare_and_swapqhi_internal.
18814 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
18817 * config/i386/i386-modes.def (V1DI): New vector mode.
18818 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
18819 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
18820 (MMXMODE248): Ditto.
18821 (MMXMODE): Add V1DI mode.
18822 (mmxvecsize): Change DI mode to V1DI mode.
18823 ("mov<mode>): Use MMXMODEI8 mode iterator.
18824 ("*mov<mode>_internal_rex64"): Ditto.
18825 ("*mov<mode>_internal"): Ditto.
18826 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
18827 ("mmx_sub<mode>3"): Ditto.
18828 ("mmx_adddi3"): Remove insn pattern.
18829 ("mmx_subdi3"): Ditto.
18830 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
18831 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
18832 ("mmx_ashl<mode>3"): Ditto.
18833 ("mmx_lshrdi3"): Remove insn pattern.
18834 ("mmx_ashldi3"): Ditto.
18835 * config/i386/i386.c (classify_argument): Handle V1DImode.
18836 (function_arg_advance_32): Ditto.
18837 (function_arg_32): Ditto.
18838 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
18839 mmx_addv1di3 insn pattern.
18840 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
18841 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
18842 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
18843 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
18844 Remove definitions of built-in functions.
18845 (V1DI_type_node): New node.
18846 (v1di_ftype_v1di_int): Ditto.
18847 (v1di_ftype_v1di_v1di): Ditto.
18848 (v2si_ftype_v2si_si): Ditto.
18849 (v4hi_ftype_v4hi_di): Remove node.
18850 (v2si_ftype_v2si_di): Ditto.
18851 (ix86_init_mmx_sse_builtins): Handle V1DImode.
18852 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
18853 Redefine builtins using def_builtin_const with *_ftype_*_int node.
18854 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
18855 Add new builtins using def_builtin_const.
18856 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
18857 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
18858 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
18859 * config/i386/mmintrin.h (__v1di): New typedef.
18860 (_mm_add_si64): Cast arguments to __v1di type.
18861 (_mm_sub_si64): Ditto.
18862 (_mm_sll_pi16): Cast __count to __v4hi type.
18863 (_mm_sll_pi32): Cast __count to __v2si type.
18864 (_mm_sll_si64): Cast arguments to __v1di type.
18865 (_mm_srl_pi16): Cast __count to __v4hi type.
18866 (_mm_srl_pi32): Cast __count to __v2si type.
18867 (_mm_srl_si64): Cast arguments to __v1di type.
18868 (_mm_sra_pi16): Cast __count to __v4hi type.
18869 (_mm_sra_pi32): Cast __count to __v2si type.
18870 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
18871 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
18872 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
18873 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
18874 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
18875 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
18876 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
18877 (_mm_srai_pi32): Use __builtin_ia32_psradi.
18878 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
18879 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18880 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18881 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
18883 2008-03-07 Joseph Myers <joseph@codesourcery.com>
18885 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
18887 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
18890 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
18891 reg+const addressing for Altivec modes. Don't generate reg+reg
18892 addressing for TFmode or TDmode quantities.
18894 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
18896 * c-common.c (vector_types_convertible_p): Call langhook
18897 instead of comptypes.
18899 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
18902 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
18903 integral and scalar float variables which have a
18906 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
18908 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
18909 dwarf_register_span hook when emitting unwind information for
18910 register-to-memory saves.
18911 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
18912 (rs6000_frame_related): Remove call to spe_synthesize_frame.
18914 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18916 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
18917 for the same VAR_DECL.
18919 2008-03-06 Tom Tromey <tromey@redhat.com>
18921 * treelang: Delete.
18922 * doc/standards.texi (Standards): Don't mention treelang.
18923 * doc/invoke.texi (Overall Options): Don't mention treelang.
18924 * doc/install.texi (Prerequisites): Don't mention bison or
18926 (Configuration): Don't mention treelang.
18927 (Building): Likewise.
18928 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
18930 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
18932 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
18933 word-extractions out of a multi-word object.
18935 2008-03-06 Richard Guenther <rguenther@suse.de>
18937 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
18938 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
18939 result type and precision.
18940 * expr.c (get_inner_reference): Set unsignedp based on the result
18941 type of BIT_FIELD_REF.
18942 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
18943 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
18944 (try_instantiate_multiple_fields): Likewise. Use the correct type
18946 (sra_build_assignment): Likewise.
18947 (sra_build_elt_assignment): Likewise.
18948 (sra_explode_bitfield_assignment): Likewise.
18949 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
18950 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
18951 set BIT_FIELD_REF_UNSIGNED.
18952 (vectorizable_load): Likewise.
18954 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
18956 * cse.c (cse_extended_basic_block): Invalidate artificial defs
18959 2008-03-06 Richard Guenther <rguenther@suse.de>
18961 * alias.c (struct alias_set_entry): Move has_zero_child field
18962 to pack with alias_set.
18964 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
18966 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18969 2008-03-05 Ian Lance Taylor <iant@google.com>
18971 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
18973 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
18975 * fwprop.c (update_df): Support width and offset parameters of
18977 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
18978 global_conflicts): Change DF_REF_EXTRACT to either
18979 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
18980 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18981 * df-scan.c (df_ref_record, df_defs_record,
18982 df_ref_create_structure, df_def_record_1, df_uses_record,
18983 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
18984 df_bb_refs_collect, df_entry_block_defs_collect,
18985 df_exit_block_uses_collect): Support new width and offset fields.
18986 (ref_extract_pool): New storage pool.
18987 (df_free_ref): New function.
18988 (df_reg_chain_unlink, df_free_collection_rec,
18989 df_sort_and_compress_refs): Call df_free_ref.
18990 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
18992 (df_ref_create_structure): Allocate df_ref_extract if offset and
18993 width fields are used.
18994 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
18995 (df_uses_record): Get offset and width from ZERO_EXTRACT
18997 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
18998 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
18999 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19000 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19001 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19002 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19003 (df_ref_extract): New structure.
19004 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19005 (df_ref_create): Add width and offset parameters.
19007 2008-03-05 Richard Guenther <rguenther@suse.de>
19009 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19010 Use ranges_overlap_p.
19011 (offset_overlaps_with_access): Rename
19012 to ranges_overlap_p and move ...
19013 * tree-flow-inline.h (ranges_overlap_p): ... here.
19015 * tree.h (get_inner_reference, handled_component_p): Update
19018 * tree.h (record_component_aliases, get_alias_set,
19019 alias_sets_conflict_p, alias_sets_must_conflict_p,
19020 objects_must_conflict_p): Move declarations ...
19021 * alias.h (record_component_aliases, get_alias_set,
19022 alias_sets_conflict_p, alias_sets_must_conflict_p,
19023 objects_must_conflict_p): ... here.
19024 Include coretypes.h.
19025 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19027 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
19029 * cfg.c: Include tree-flow.h.
19030 (remove_edge_raw): Call redirect_edge_var_map_clear.
19031 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19032 * tree-flow-inline.h (redirect_edge_var_map_def): New.
19033 (redirect_edge_var_map_result): New.
19034 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19035 PENDING_STMT use with redirect_edge_var_map_*.
19036 * tree-ssa.c (edge_var_maps): New definition.
19037 (redirect_edge_var_map_add): New.
19038 (redirect_edge_var_map_clear): New.
19039 (redirect_edge_var_map_dup): New.
19040 (redirect_edge_var_map_vector): New.
19041 (redirect_edge_var_map_destroy): New.
19042 (ssa_redirect_edge): Replace PENDING_STMT use with
19043 redirect_edge_var_map_*.
19044 (flush_pending_stmts): Same.
19045 (delete_tree_ssa): Destroy edge var map.
19046 * tree-flow.h (struct _edge_var_map): New.
19047 Define edge_var_map vector type.
19048 Declare redirect_edge_var_map_* prototypes.
19049 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19050 * tree-cfg.c (reinstall_phi_args): Replace
19051 PENDING_STMT use with redirect_edge_var_map_*.
19053 2008-03-05 Richard Guenther <rguenther@suse.de>
19055 PR tree-optimization/35472
19056 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19057 whose single use_stmt has a overlapping set of loaded and
19058 stored symbols as that use_stmt might be a noop assignment then.
19060 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
19062 * gthr-rtems.h: Implement __gthread_mutex_destroy.
19064 2008-03-05 Richard Guenther <rguenther@suse.de>
19067 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19068 should be constants.
19069 * tree-cfg.c (verify_expr): Verify it.
19070 * fold-const.c (fold_truthop): Remove code generating
19071 BIT_FIELD_REFs of structure bases.
19072 (fold_binary): Likewise.
19073 (fold_ternary): Position and size of BIT_FIELD_REFs are
19074 always host integers.
19075 (make_bit_field_ref): Remove.
19076 (optimize_bit_field_compare): Remove.
19077 (all_ones_mask_p): Remove.
19079 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
19082 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19083 (split_block_and_df_analyze): New. Split basic block and rebuild
19085 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19087 (split_pattern_seq): Likewise.
19088 (erase_matching_seqs): Likewise.
19089 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19091 2008-03-04 Geoff Keating <geoffk@apple.com>
19093 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19094 declaration and code.
19095 (tree_invalid_nonnegative_warnv_p): Likewise.
19097 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
19099 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19100 examples. Truncate option-names then causing overfull hbox.
19102 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19105 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19107 * configure: Rebuilt.
19109 2008-03-04 Rafael Espíndola <espindola@google.com>
19111 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19112 (tree_unary_nonnegative_warnv_p): New.
19113 (tree_binary_nonnegative_warnv_p): New.
19114 (tree_single_nonnegative_warnv_p): New.
19115 (tree_invalid_nonnegative_warnv_p): New.
19116 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19118 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19121 * opts.c (handle_option): Postpone 'unknown option' errors only for
19124 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
19127 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19130 2008-03-04 Rafael Espíndola <espindola@google.com>
19132 * fold-const.c (tree_unary_nonzero_warnv_p): New.
19133 (tree_binary_nonzero_warnv_p): New.
19134 (tree_single_nonzero_warnv_p): New.
19135 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19137 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
19139 PR middle-end/35456
19140 * fold-const.c (fold_cond_expr_with_comparison): Prevent
19141 transformations for modes that have signed zeros.
19142 * ifcvt.c (noce_try_abs): Ditto.
19144 2008-03-04 Joseph Myers <joseph@codesourcery.com>
19146 * config/i386/i386.c (override_options): Force
19147 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19149 2008-03-04 Jan Hubicka <jh@suse.cz>
19152 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19155 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19157 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
19158 label to probe the stack.
19160 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19162 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19163 (__gthr_win32_mutex_destroy): Declare.
19164 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19165 __gthr_win32_mutex_destroy.
19166 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
19168 2008-03-03 Jan Hubicka <jh@suse.cz>
19171 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19172 aggressive on inlining cold calls.
19174 2008-03-03 Richard Guenther <rguenther@suse.de>
19176 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19177 struct copies into the expression table.
19178 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19179 (try_to_simplify): Likewise.
19180 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19181 integral and pointer arguments which do not change the
19182 precision to NOP_EXPRs.
19183 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19184 VIEW_CONVERT_EXPR case.
19186 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
19188 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19189 defined in a loop at depth 0 is invariant.
19190 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19191 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19192 be called at loop depth 0.
19194 2008-03-02 Jakub Jelinek <jakub@redhat.com>
19197 * gcc.c (process_command): Update copyright notice dates.
19198 * gcov.c (print_version): Likewise.
19199 * gcov-dump.c (print_version): Likewise.
19200 * mips-tfile.c (main): Likewise.
19201 * mips-tdump.c (main): Likewise.
19203 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19206 * c-common.c (flag_permissive): Delete.
19207 (constant_expression_warnings): Check flags first.
19208 (constant_expression_error): New.
19209 * c-common.h (flag_permissive): Delete.
19210 (constant_expression_error): Declare.
19211 * flags.h (flag_permissive): Declare. Update description.
19212 * diagnostic.c (pedwarn): Update.
19214 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19215 (permissive_error_kind): New.
19216 * toplev.c (flag_permissive): Define. Update description.
19217 * toplev.h (permissive_error_kind): Declare.
19218 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19219 (pedwarn_c90): Use pedantic_warning_kind.
19220 * c-opts.c (c_common_post_options): flag_permissive does not affect
19221 flag_pedantic_errors.
19223 2008-03-02 Joseph Myers <joseph@codesourcery.com>
19225 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19226 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19227 __absvsi2, __absvDI2): Use unsigned arithmetic.
19229 2008-03-02 Andi Kleen <ak@suse.de>
19230 Richard Guenther <rguenther@suse.de>
19232 * struct-equiv.c: Remove file.
19233 * cfg_cleanup.c (condjump_equiv_p): Remove.
19234 * Makefile.in (OBJS-common): Remove struct-equiv.o.
19235 (struct-equiv.o): Remove rule.
19236 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19237 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19238 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19240 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19242 * ifcvt.c (noce_process_if_block): Try to handle only the then
19243 block if the else block exists but isn't suitable.
19245 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19248 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19249 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19250 regression from previous patch.
19252 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19255 * gthr.h: Add __gthread_mutex_destroy as a function that must be
19257 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19258 * gthr-single.h (__gthread_mutex_destroy): Likewise.
19259 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19260 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19261 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19262 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19263 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19264 (__gthread_mutex_destroy_function): Rename to
19265 __gthread_mutex_destroy.
19266 * gthr-dce.h (__gthread_mutex_destroy): Call
19267 pthread_mutex_destroy.
19268 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19269 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19270 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19272 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19274 * df-scan.c (df_ref_chain_change_bb): Simplify.
19275 (df_insn_change_bb): Add new_bb argument. Simplify. Call
19276 set_block_for_insn if there's any change.
19277 * df.h ((df_insn_change_bb): Fix prototype.
19278 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19279 df_insn_change_bb, don't call set_block_for_insn.
19280 * emit-rtl.c (reorder_insns): Likewise.
19281 * haifa-sched.c (move_insn): Likewise.
19283 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19285 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19287 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19289 * tree-flow-inline.h (next_readonly_imm_use): Return
19290 NULL_USE_OPERAND_P after the end.
19292 2008-03-01 Richard Guenther <rguenther@suse.de>
19294 PR tree-optimization/35411
19295 * tree-sra.c (sra_build_assignment): Split conversion to
19296 final type to a separate statement if we are not assigning
19299 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19301 * fold-const.c (fold_convertible_p): Correct the logic to follow
19302 that in fold_convert().
19304 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
19307 * tree-inline.c (build_duplicate_type): When we make a
19308 duplicate type, make it unique in the canonical types system.
19310 2008-02-29 Tom Tromey <tromey@redhat.com>
19312 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19313 input_file_stack_history, input_file_stack_restored): Remove.
19314 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19315 * input.h (struct file_stack): Remove.
19316 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19317 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19319 * diagnostic.h (struct diagnostic_context) <last_module>: Change
19321 (diagnostic_last_module_changed): Add 'map' argument.
19322 (diagnostic_set_last_function): Likewise.
19323 * diagnostic.c (undiagnostic_report_current_module): Iterate using
19324 line map, not input_file_stack.
19325 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19327 2008-02-29 Paul Brook <paul@codesourcery.com>
19329 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19331 2008-02-29 Paul Brook <paul@codesourcery.com>
19333 * config/arm/ieee754-df.S (muldf3): Use RET macros.
19335 2008-02-29 Richard Guenther <rguenther@suse.de>
19337 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19339 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19340 value for comparing for a store match.
19341 (simplify_unary_expression): Do nothing for SSA_NAMEs.
19342 (try_to_simplify): Do not do a full-blown reference lookup.
19344 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19346 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19347 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19349 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19351 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
19353 * tree-loop-linear.c (try_interchange_loops): Compare memory access
19354 strides against cache sizes.
19356 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19358 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19361 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
19363 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19364 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19365 is smaller than the original promoted value.
19366 (simplify_subreg): If OP is a SUBREG, try to preserve its
19367 SUBREG_PROMOTED_VAR_P information.
19369 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
19371 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19372 (VN_INFO_GET): Allocate new objects on the obstack.
19373 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
19374 for rpo_numbers_temp, for consistency.
19375 (free_scc_vn): Free the obstack.
19377 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
19379 * doc/invoke.texi: Document -ftree-loop-distribution.
19380 * tree-loop-distribution.c: New.
19381 * tree-pass.h (pass_loop_distribution): New.
19382 * graphds.h (struct graph): Add htab_t indices.
19383 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19384 * tree-vectorizer.c (rename_variables_in_loop): Extern.
19385 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19386 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19387 * tree-data-ref.c (debug_data_dependence_relations): New.
19388 (dump_data_dependence_relation): Also print data references.
19389 (free_data_ref): Extern.
19390 (same_access_functions): Moved...
19391 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19392 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19393 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19394 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19395 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19396 (stmts_from_loop): Skip LABEL_EXPR.
19397 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19399 (build_rdg): Initialize rdg->indices htab.
19400 (free_rdg, stores_from_loop, ref_base_address,
19401 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19402 have_similar_memory_accesses_1, ref_base_address_1,
19403 remove_similar_memory_refs): New.
19404 * tree-data-ref.h: Depend on tree-chrec.h.
19405 (debug_data_dependence_relations, free_data_ref): Declared.
19406 (same_access_functions): ... here.
19407 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19409 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19410 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19411 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19412 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19413 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19414 rdg_vertex_for_stmt): Declared.
19415 (struct rdg_edge): Add level.
19417 (free_rdg, stores_from_loop, remove_similar_memory_refs,
19418 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19420 (rdg_has_similar_memory_accesses): New.
19421 * tree-vect-analyze.c: Remove unused static decls.
19422 * lambda.h (dependence_level): New.
19423 * common.opt (ftree-loop-distribution): New.
19424 * tree-flow.h (mark_virtual_ops_in_bb,
19425 slpeel_tree_duplicate_loop_to_edge_cfg,
19426 rename_variables_in_loop): Declared.
19427 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19428 (OBJS-common): Add tree-loop-distribution.o.
19429 (tree-loop-distribution.o): New rule.
19430 * tree-cfg.c (mark_virtual_ops_in_bb): New.
19431 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19432 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19434 2008-02-28 Joseph Myers <joseph@codesourcery.com>
19437 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19438 other than structures and unions.
19440 2008-02-28 Richard Guenther <rguenther@suse.de>
19443 2008-02-26 Richard Guenther <rguenther@suse.de>
19445 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19446 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19447 (lookup_decl_from_uid): Declare.
19448 (remove_decl_from_map): Likewise.
19449 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19450 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19451 (decl_for_uid_map): New global hashtable mapping DECL_UID
19453 (init_ttree): Allocate it.
19454 (insert_decl_to_uid_decl_map): New helper function.
19455 (make_node_stat): Insert new decls into the map.
19456 (copy_node_stat): Likewise.
19457 (lookup_decl_from_uid): New function.
19458 (remove_decl_from_map): Likewise.
19459 (print_decl_for_uid_map_statistics): New helper.
19460 (dump_tree_statistics): Call it.
19462 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19463 (referenced_var_iterator): Adjust.
19464 (FOR_EACH_REFERENCED_VAR): Adjust.
19465 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19466 (num_referenced_vars): Adjust.
19467 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19468 (first_referenced_var): Remove.
19469 (end_referenced_vars_p): Likewise.
19470 (next_referenced_var): Likewise.
19471 (referenced_var_iterator_set): New helper function.
19472 * tree-dfa.c (referenced_var_lookup): Adjust.
19473 (referenced_var_check_and_insert): Likewise.
19474 (remove_referenced_var): Likewise.
19475 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19476 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19477 (verify_call_clobbering): Likewise.
19478 (verify_memory_partitions): Likewise.
19479 (init_tree_ssa): Allocate bitmap instead of hashtable for
19481 (delete_tree_ssa): Adjust.
19482 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19483 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19484 (compute_tag_properties): Likewise.
19485 (set_initial_properties): Likewise.
19486 (find_partition_for): Likewise.
19487 (update_reference_counts): Likewise.
19488 (dump_may_aliases_for): Likewise.
19489 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19490 (add_call_clobber_ops): Likewise.
19491 (add_call_read_ops): Likewise.
19492 (get_asm_expr_operands): Likewise.
19493 * tree-into-ssa.c (dump_decl_set): Likewise.
19494 (update_ssa): Likewise.
19495 * tree-sra.c (scan_function): Likewise.
19496 (decide_instantiations): Likewise.
19497 (scalarize_parms): Likewise.
19498 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19499 (dsa_named_for): Likewise.
19500 * tree-ssa-structalias.c (update_alias_info): Likewise.
19501 (merge_smts_into): Likewise.
19503 2008-02-27 David Daney <ddaney@avtrex.com>
19506 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19507 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19508 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19509 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19510 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19512 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
19515 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19516 (BUILT_IN_NEXTTOWARD): Remove.
19517 (BUILT_IN_NEXTTOWARDF): Ditto.
19518 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19519 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
19521 2008-02-27 Tom Tromey <tromey@redhat.com>
19523 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19524 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19526 2008-02-27 Jan Beulich <jbeulich@novell.com>
19528 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19529 update the respective field on newdecl.
19531 2008-02-27 Revital Eres <eres@il.ibm.com>
19533 PR rtl-optimization/34999
19534 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19535 crossing edges that ends with a call insn.
19536 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19537 call insn and clear the EDGE_CROSSING flag of the crossing edge
19538 when fixing fallthru edges.
19540 2008-02-27 Richard Guenther <rguenther@suse.de>
19542 PR middle-end/35390
19543 * fold-const.c (fold_unary): Return the correct argument,
19544 converted to the result type.
19546 2008-02-27 Richard Guenther <rguenther@suse.de>
19548 PR middle-end/34971
19549 * expr.c (expand_expr_real_1): Assert on rotates that operate
19551 * fold-const.c (fold_binary): Use the types precision, not the
19552 bitsize of the mode if folding rotate expressions. Build rotates
19553 only for full modes.
19555 2008-02-27 Jakub Jelinek <jakub@redhat.com>
19557 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19558 and CPP_PRAGMA_EOL.
19559 * c-pragma.c (pragma_ns_name): New typedef.
19560 (registered_pp_pragmas): New variable.
19561 (c_pp_lookup_pragma): New function.
19562 (c_register_pragma_1): If flag_preprocess_only, do nothing
19563 for non-expanded pragmas, for expanded ones push pragma's
19564 namespace and name into registered_pp_pragmas vector.
19565 (c_invoke_pragma_handler): Register OpenMP pragmas even when
19566 flag_preprocess_only, don't register GCC pch_preprocess
19567 pragma if flag_preprocess_only.
19568 * c-opts.c (c_common_init): Call init_pragma even if
19569 flag_preprocess_only.
19570 * c-pragma.c (c_pp_lookup_pragma): New prototype.
19571 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19572 cpp_register_pragma if flag_preprocess_only.
19574 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19577 * c-parser.c (c_parser_translation_unit): Warn for empty
19578 translation unit, not empty source file.
19580 2008-02-26 Paul Brook <paul@codesourcery.com>
19582 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19583 operand for Thumb-2.
19584 * config/arm/arm.h (reg_class): Add CORE_REGS.
19585 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19586 (BASE_REG_CLASS): Use CORE_REGS.
19587 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19588 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19589 (REGNO_OK_FOR_INDEX_P): Exclude SP.
19590 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
19591 ARM_REGNO_OK_FOR_INDEX_P.
19592 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19593 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19594 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19595 (ldm/stm peepholes): Ditto.
19596 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19597 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19598 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19599 * config/arm/constraints.md: Enable "k" constraint on ARM.
19601 2008-02-27 Ben Elliston <bje@au.ibm.com>
19603 * config/rs6000/rs6000.c: Annotate cache line size field in all
19604 instances of struct processor_costs.
19606 2008-02-26 David Edelsohn <edelsohn@gnu.org>
19608 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19609 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19610 jump_bypass): New counters.
19611 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19612 * dce.c (gate_ud_dce): Same.
19613 (gate_fast_dce): Same.
19614 * dse.c (gate_dse1): New function.
19615 (gate_dse2): New function.
19616 (gate_dse): Merge results of new gate functions.
19617 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19618 (gate_handle_jump_bypass): Add dbg_cnt.
19619 (gate_handle_gcse): Add dbg_cnt.
19620 * ifcvt.c (gate_handle_if_conversion): Same.
19621 (gate_handle_if_after_combine): Same.
19622 (gate_handle_if_after_reload): Same.
19623 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19625 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
19627 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19629 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19631 2008-02-26 Jason Merrill <jason@redhat.com>
19634 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19635 alone if it's the naming decl for the type's main variant.
19637 2008-02-26 Tom Tromey <tromey@redhat.com>
19639 * system.h (USE_MAPPED_LOCATION): Poison.
19640 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19641 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19642 (make_goto_expr_edges): Likewise.
19643 (remove_bb): Likewise.
19644 (execute_warn_function_return): Likewise.
19645 * basic-block.h (struct edge_def) <goto_locus>: Change type to
19647 * c-common.c (fname_decl): Remove old location code.
19648 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19650 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19652 (ASM_INPUT_SOURCE_LOCATION): Likewise.
19653 (gen_rtx_ASM_INPUT): Likewise.
19654 (gen_rtx_ASM_INPUT_loc): Likewise.
19655 (get_rtx_asm_OPERANDS): Remove.
19656 * cfglayout.c (insn_locators_alloc): Remove old location code.
19657 (set_curr_insn_source_location): Likewise.
19658 (curr_insn_locator): Likewise.
19659 * print-tree.c (print_node): Remove old location code.
19660 * tree-mudflap.c (mf_varname_tree): Remove old location code.
19661 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19662 * cfgexpand.c (expand_gimple_cond_expr): Don't use
19663 location_from_locus.
19664 (construct_exit_block): Remove old location code.
19665 * emit-rtl.c (force_next_line_note): Remove old location code.
19666 * profile.c (branch_prob): Remove old location code.
19667 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19668 LOC_LINE): Remove old-location variants.
19669 * langhooks.c (lhd_print_error_function): Remove old location
19671 * configure, config.in: Rebuilt.
19672 * configure.ac (--enable-mapped-location): Remove.
19673 * c-decl.c (c_init_decl_processing): Remove old location code.
19674 (finish_function): Likewise.
19675 * recog.c (decode_asm_operands): Remove old location code.
19676 * c-pch.c (c_common_read_pch): Remove old location code.
19677 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19679 * gimple-low.c (lower_function_body): Remove old location code.
19680 * toplev.c (unknown_location): Remove.
19681 (push_srcloc): Remove old-location variant.
19682 (process_options): Remove old location code.
19683 (lang_dependent_init): Likewise.
19684 * input.h (UNKNOWN_LOCATION): Move definition.
19685 (location_t): Undeprecate.
19686 (source_locus): Remove.
19687 (location_from_locus): Remove.
19688 (struct location_s): Remove.
19689 Remove all old-location code.
19690 (input_line, input_filename): Remove.
19691 * final.c (final_scan_insn): Remove old location code.
19692 * diagnostic.c (diagnostic_build_prefix): Remove
19693 USE_MAPPED_LOCATION test.
19694 * tree.h (gimple_stmt) <locus>: Now a location_t.
19695 (tree_exp) <locus>: Likewise.
19696 (DECL_IS_BUILTIN): Remove old-location variant.
19697 (annotate_with_file_line, annotate_with_locus): Likewise.
19698 (expr_locus, set_expr_locus): Update.
19699 * tree.c (build1_stat): Remove old location code.
19700 (last_annotated_node): Remove.
19701 (annotate_with_file_line): Remove old-location variant.
19702 (annotate_with_locus): Likewise.
19703 (expr_location): Remove old location code.
19704 (set_expr_location): Likewise.
19705 (expr_has_location): Likewise.
19706 (expr_locus): Likewise.
19707 (set_expr_locus): Likewise.
19708 (expr_filename): Don't use location_from_locus.
19709 (expr_lineno): Likewise.
19710 * rtl-error.c (location_for_asm): Remove old location code.
19711 * c-lex.c (cb_line_change): Remove old location code.
19712 (fe_file_change): Likewise.
19713 (cb_def_pragma): Likewise.
19714 (c_lex_with_flags): Likewise.
19715 * gengtype.c (do_typedef): Don't special-case location types.
19716 (define_location_structures): Remove.
19717 (main): Don't call define_location_structures.
19718 * tree-pretty-print.c (dump_implicit_edges): Remove old location
19721 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19724 * builtins.def (BUILT_IN_STDARG_START): Remove.
19725 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
19726 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19727 * tree-inline.c (inline_forbidden_p_1): Likewise.
19729 2008-02-26 Richard Guenther <rguenther@suse.de>
19731 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19732 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19733 (lookup_decl_from_uid): Declare.
19734 (remove_decl_from_map): Likewise.
19735 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19736 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19737 (decl_for_uid_map): New global hashtable mapping DECL_UID
19739 (init_ttree): Allocate it.
19740 (insert_decl_to_uid_decl_map): New helper function.
19741 (make_node_stat): Insert new decls into the map.
19742 (copy_node_stat): Likewise.
19743 (lookup_decl_from_uid): New function.
19744 (remove_decl_from_map): Likewise.
19745 (print_decl_for_uid_map_statistics): New helper.
19746 (dump_tree_statistics): Call it.
19748 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19749 (referenced_var_iterator): Adjust.
19750 (FOR_EACH_REFERENCED_VAR): Adjust.
19751 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19752 (num_referenced_vars): Adjust.
19753 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19754 (first_referenced_var): Remove.
19755 (end_referenced_vars_p): Likewise.
19756 (next_referenced_var): Likewise.
19757 (referenced_var_iterator_set): New helper function.
19758 * tree-dfa.c (referenced_var_lookup): Adjust.
19759 (referenced_var_check_and_insert): Likewise.
19760 (remove_referenced_var): Likewise.
19761 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19762 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19763 (verify_call_clobbering): Likewise.
19764 (verify_memory_partitions): Likewise.
19765 (init_tree_ssa): Allocate bitmap instead of hashtable for
19767 (delete_tree_ssa): Adjust.
19768 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19769 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19770 (compute_tag_properties): Likewise.
19771 (set_initial_properties): Likewise.
19772 (find_partition_for): Likewise.
19773 (update_reference_counts): Likewise.
19774 (dump_may_aliases_for): Likewise.
19775 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19776 (add_call_clobber_ops): Likewise.
19777 (add_call_read_ops): Likewise.
19778 (get_asm_expr_operands): Likewise.
19779 * tree-into-ssa.c (dump_decl_set): Likewise.
19780 (update_ssa): Likewise.
19781 * tree-sra.c (scan_function): Likewise.
19782 (decide_instantiations): Likewise.
19783 (scalarize_parms): Likewise.
19784 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19785 (dsa_named_for): Likewise.
19786 * tree-ssa-structalias.c (update_alias_info): Likewise.
19787 (merge_smts_into): Likewise.
19789 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19792 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
19793 * c-opts.c (c_common_handle_option): Wall enables
19794 Wvolatile-register-var.
19795 * common.opt: Move Wvolatile-register-var to...
19798 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19800 * common.opt (Wlarger-than=): New.
19801 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
19803 * opts.c (common_handle_option): Handle -Wlarger-than=.
19804 * optc-gen.awk: Likewise.
19805 * opth-gen.awk: Likewise.
19806 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
19807 * tree-optimize.c (tree_rest_of_compilation): Likewise.
19809 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19811 * c-common.c (match_case_to_enum_1): Add appropriate
19812 OPT_W* parameter to warning.
19813 (c_do_switch_warnings): Likewise.
19814 * c-typeck.c (warning_init): Add one more parameter following
19815 'warning' function.
19816 (push_init_level): Update call to warning_init.
19817 (pop_init_level): Likewise.
19818 (add_pending_init): Likewise.
19819 (output_init_element: Likewise.
19821 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19824 * toplev.c (toplev_main): If there are warnings or error, print
19825 errors for ignored options.
19826 * opts.c (ignored_options): New static variable.
19827 (postpone_unknown_option_error): New.
19828 (print_ignored_options): New.
19829 (handle_option): Postpone errors for unknown -Wno-* options.
19830 * opts.h (print_ignored_options): Declare.
19832 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
19834 * config/mips/mips.md (loadgp_blockage, blockage): Change type
19837 2008-02-25 Richard Guenther <rguenther@suse.de>
19840 2008-02-25 Richard Guenther <rguenther@suse.de>
19842 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19843 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19844 (lookup_decl_from_uid): Declare.
19845 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19846 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19847 (decl_for_uid_map): New global hashtable mapping DECL_UID
19849 (init_ttree): Allocate it.
19850 (insert_decl_to_uid_decl_map): New helper function.
19851 (make_node_stat): Insert new decls into the map.
19852 (copy_node_stat): Likewise.
19853 (lookup_decl_from_uid): New function.
19854 (print_decl_for_uid_map_statistics): New helper.
19855 (dump_tree_statistics): Call it.
19857 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19858 (referenced_var_iterator): Adjust.
19859 (FOR_EACH_REFERENCED_VAR): Adjust.
19860 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19861 (num_referenced_vars): Adjust.
19862 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19863 (first_referenced_var): Remove.
19864 (end_referenced_vars_p): Likewise.
19865 (next_referenced_var): Likewise.
19866 (referenced_var_iterator_set): New helper function.
19867 * tree-dfa.c (referenced_var_lookup): Adjust.
19868 (referenced_var_check_and_insert): Likewise.
19869 (remove_referenced_var): Likewise.
19870 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19871 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19872 (verify_call_clobbering): Likewise.
19873 (verify_memory_partitions): Likewise.
19874 (init_tree_ssa): Allocate bitmap instead of hashtable for
19876 (delete_tree_ssa): Adjust.
19877 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19878 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19879 (compute_tag_properties): Likewise.
19880 (set_initial_properties): Likewise.
19881 (find_partition_for): Likewise.
19882 (update_reference_counts): Likewise.
19883 (dump_may_aliases_for): Likewise.
19884 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19885 (add_call_clobber_ops): Likewise.
19886 (add_call_read_ops): Likewise.
19887 (get_asm_expr_operands): Likewise.
19888 * tree-into-ssa.c (dump_decl_set): Likewise.
19889 (update_ssa): Likewise.
19890 * tree-sra.c (scan_function): Likewise.
19891 (decide_instantiations): Likewise.
19892 (scalarize_parms): Likewise.
19893 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19894 (dsa_named_for): Likewise.
19895 * tree-ssa-structalias.c (update_alias_info): Likewise.
19896 (merge_smts_into): Likewise.
19898 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
19901 * doc/invoke.texi (-fcx-limited-range): Document new option.
19902 * toplev.c (process_options): Handle -fcx-fortran-rules.
19903 * common.opt: Add documentation for -fcx-fortran-rules.
19905 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
19908 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
19909 actual behaviour and C99.
19911 2008-02-26 Ben Elliston <bje@au.ibm.com>
19913 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
19914 (ASM_CPU_POWER6_SPEC): Likewise.
19915 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
19916 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
19917 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
19919 2008-02-25 Richard Guenther <rguenther@suse.de>
19921 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19922 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19923 (lookup_decl_from_uid): Declare.
19924 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19925 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19926 (decl_for_uid_map): New global hashtable mapping DECL_UID
19928 (init_ttree): Allocate it.
19929 (insert_decl_to_uid_decl_map): New helper function.
19930 (make_node_stat): Insert new decls into the map.
19931 (copy_node_stat): Likewise.
19932 (lookup_decl_from_uid): New function.
19933 (print_decl_for_uid_map_statistics): New helper.
19934 (dump_tree_statistics): Call it.
19936 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19937 (referenced_var_iterator): Adjust.
19938 (FOR_EACH_REFERENCED_VAR): Adjust.
19939 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19940 (num_referenced_vars): Adjust.
19941 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19942 (first_referenced_var): Remove.
19943 (end_referenced_vars_p): Likewise.
19944 (next_referenced_var): Likewise.
19945 (referenced_var_iterator_set): New helper function.
19946 * tree-dfa.c (referenced_var_lookup): Adjust.
19947 (referenced_var_check_and_insert): Likewise.
19948 (remove_referenced_var): Likewise.
19949 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19950 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19951 (verify_call_clobbering): Likewise.
19952 (verify_memory_partitions): Likewise.
19953 (init_tree_ssa): Allocate bitmap instead of hashtable for
19955 (delete_tree_ssa): Adjust.
19956 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19957 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19958 (compute_tag_properties): Likewise.
19959 (set_initial_properties): Likewise.
19960 (find_partition_for): Likewise.
19961 (update_reference_counts): Likewise.
19962 (dump_may_aliases_for): Likewise.
19963 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19964 (add_call_clobber_ops): Likewise.
19965 (add_call_read_ops): Likewise.
19966 (get_asm_expr_operands): Likewise.
19967 * tree-into-ssa.c (dump_decl_set): Likewise.
19968 (update_ssa): Likewise.
19969 * tree-sra.c (scan_function): Likewise.
19970 (decide_instantiations): Likewise.
19971 (scalarize_parms): Likewise.
19972 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19973 (dsa_named_for): Likewise.
19974 * tree-ssa-structalias.c (update_alias_info): Likewise.
19975 (merge_smts_into): Likewise.
19977 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
19980 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
19981 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
19982 * alias.h (nonoverlapping_memrefs_p): Likewise.
19984 2008-02-25 Jan Beulich <jbeulich@novell.com>
19986 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
19987 * config/i386/netware-libgcc.exp: Add __bswap?i2,
19988 __emultls_get_address, __emultls_register_common,
19989 __floatundi?f, and _Unwind_GetIPInfo.
19990 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
19991 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
19992 (gen_regparm_prefix): Likewise.
19993 (i386_nlm_encode_section_info): Sync with
19994 config/i386/winnt.c:i386_pe_encode_section_info().
19995 (i386_nlm_maybe_mangle_decl_assembler_name): New.
19996 i386_nlm_mangle_decl_assembler_name): New.
19997 (netware_override_options): New.
19998 * config/i386/netware.h (netware_override_options): Declare.
19999 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20000 (i386_nlm_mangle_decl_assembler_name): Declare.
20001 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20003 2008-02-25 Ben Elliston <bje@au.ibm.com>
20006 * c-decl.c (grokdeclarator): Remove unused local variables
20007 `typedef_type' and `type_as_written'.
20009 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20010 unused local variable `has_hot_blocks'.
20011 (fix_crossing_conditional_branches): Remove unused local variable
20014 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
20016 PR middle-end/19984
20017 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20018 using DEF_C99_BUILTIN.
20019 (BUILT_IN_NANF): Ditto.
20020 (BUILT_IN_NANL): Ditto.
20022 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
20023 Revital Eres <eres@il.ibm.com>
20025 * modulo-sched.c (calculate_must_precede_follow): Address TODO
20026 regarding the order of two dependent insns in the same row.
20028 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
20030 * stor-layout.c (layout_decl): Do not bump the alignment of a
20031 bit-field to more than byte alignment if it is packed.
20033 2008-02-24 David Edelsohn <edelsohn@gnu.org>
20035 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20038 2008-02-24 Diego Novillo <dnovillo@google.com>
20040 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20043 * tree-vrp.c (vrp_evaluate_conditional): With
20044 -Wtype-limits, emit a warning when comparing against a
20045 constant outside the natural range of OP0's type.
20046 * c.opt (Wtype-limits): Move ...
20047 * common.opt (Wtype-limits): ... here.
20049 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
20051 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20052 * config/rs6000/e300c2c3.md: New file.
20053 * config/rs6000/rs6000.c (processor_costs): Add new costs for
20055 (rs6000_override_options): Add e300c2 and e300c3 cases to
20056 processor_target_table. Do not allow usage of Altivec or Spe
20057 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20058 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20059 * config/rs6000/rs6000.h (processor_type): Add
20060 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20061 (ASM_CPU_SPEC): Add e300c2 and e300c3.
20062 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20063 and ppce300c3. Include e300c2c3.md.
20065 2008-02-23 David Edelsohn <edelsohn@gnu.org>
20067 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20068 instead of TARGET_STRICT_ALIGN.
20070 2008-02-23 Joseph Myers <joseph@codesourcery.com>
20072 * explow.c (memory_address): Assert that the generated address is
20075 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20078 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20079 * config/darwin-ppc-ldouble-patch.def: New file.
20080 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20081 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20082 SUBTARGET_INIT_BUILTINS if defined.
20083 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20086 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20089 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20090 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20092 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20095 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20096 file" warning condtional on -Winvalid-PCH.
20098 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
20100 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20102 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
20106 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20107 prevent reload from using MMX registers.
20108 (*mov<mode>_internal): Ditto.
20109 (*movv2sf_internal_rex64): Ditto.
20110 (*movv2sf_internal): Ditto.
20112 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20114 PR documentation/31569
20115 * doc/install.texi2html: Use makeinfo --no-number-sections.
20117 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20119 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20120 ensure that we can address an entire entity > 8 bytes. Don't
20121 generate reg+reg addressing for such data.
20123 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20125 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20126 strings when optimizing for size, unless the target cares about
20129 2008-02-22 Tom Tromey <tromey@redhat.com>
20131 * regclass.c (current_pass): Remove declaration.
20133 2008-02-22 Anatoly Sokolov <aesok@post.ru>
20135 * config/avr/libgcc.S (__RAMPZ__): Define.
20136 (__do_copy_data): Add for devices with 128KB code memory.
20138 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20140 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20142 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20144 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
20146 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20149 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20152 * c-typeck.c (build_binary_op): Warn about floating point
20153 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20155 2008-02-21 Janis Johnson <janis187@us.ibm.com>
20158 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20159 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20161 (rs6000_override_options): Set altivec_abi as default, not override,
20162 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20163 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20164 is used; use new member spe_abi.
20165 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20166 spe_abi and altivec_abi.
20168 2008-02-22 Tomas Bily <tbily@suse.cz>
20170 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20172 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20175 * config.build (build_file_translate): Set to `CMD //c' only if
20177 * Makefile.in (build_file_translate): Improve comment.
20179 2008-02-21 Jan Hubicka <jh@suse.cz>
20181 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20182 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20183 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20185 2008-02-21 Michael Matz <matz@suse.de>
20188 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20190 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
20192 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20193 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20194 as insn constraint.
20195 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20196 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20197 SSE_VEC_FLOAT_MODE_P as insn constraint.
20198 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20199 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20200 sse4a_movntdf using MODEF mode iterator.
20201 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20202 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20203 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20204 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20205 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20206 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20207 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20209 2008-02-21 Richard Guenther <rguenther@suse.de>
20211 * tree.def (PAREN_EXPR): New tree code.
20212 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20214 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20215 * expr.c (expand_expr_real_1): Likewise.
20216 * tree-inline.c (estimate_num_insns_1): Likewise.
20217 * tree-complex.c (expand_complex_move): Likewise.
20218 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20221 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20224 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20226 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20229 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20231 * config/sh/sh.c (find_barrier): Don't go past
20232 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20234 2008-02-20 DJ Delorie <dj@redhat.com>
20236 * config/h8300/h8300.md (insv): Force source operand to be a register.
20238 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20239 as a jump, not as a plain insn.
20241 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
20243 * doc/invoke.texi (Warning Options): Add new option
20244 -Wframe-larger-than=.
20245 (-Wframe-larger-than): Document.
20247 * flags.h (warn_frame_larger_than, frame_larger_than_size):
20248 Add declarations for new option variables.
20250 * final.c (final_start_function): Check the frame size
20251 before emission and issue a Wframe-larger-than warning.
20253 * opts.c (warn_frame_larger_than, frame_larger_than_size):
20254 Add definitions for new option variables.
20255 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20257 * common.opt (Wframe-larger-than=): New option.
20259 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20261 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20262 (<sse>_div<mode>3): Ditto.
20263 (<sse>_vmdiv<mode>3): Ditto.
20264 (<sse>_vmsqrt<mode>2): Ditto.
20265 (*smax<mode>3): Ditto.
20266 (sse5_frcz<mode>2): Ditto.
20267 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
20268 as insn constraint.
20270 2008-02-20 Richard Guenther <rguenther@suse.de>
20272 PR middle-end/35265
20273 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20274 be happy with INTEGRAL_TYPE_P.
20276 2008-02-20 Richard Guenther <rguenther@suse.de>
20278 * fold-const.c (split_tree): Associate floatig-point expressions
20279 if flag_associative_math is set.
20281 2008-02-20 Richard Guenther <rguenther@suse.de>
20283 * tree.h (fold_real_zero_addition_p): Declare.
20284 * fold-const.c (fold_real_zero_addition_p): Export.
20285 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20286 floating-point operations with zero and one.
20288 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
20290 * doc/install.texi: Correct references to CFLAGS, replacing them
20291 with BOOT_CFLAGS. Document flags used during bootstrap for
20294 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20296 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20297 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20298 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20300 (smin<mode>3): Ditto from similar patterns.
20301 (smax<mode>3): Ditto.
20302 (*ieee_smin<mode>3): Ditto.
20303 (*ieee_smax<mode>3): Ditto.
20304 * config/i386/sse.md (sse): New mode attribute.
20305 (mov<mode>): Macroize expander from movv4sf and movv2df using
20306 SSEMODEF2P mode iterator.
20307 (<sse>_movnt<mode>): Ditto from similar patterns. Use
20308 SSE_VEC_FLOAT_MODE_P as insn constraint.
20309 (storent<mode>): Ditto.
20310 (storent<mode>): Macroize expander from storentsf and storentdf using
20311 MODEF mode iterator.
20312 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20313 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20314 (abs<mode>2): Ditto from similar patterns.
20315 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20316 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20317 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20318 (<sse>_vmsqrt<mode>2): Ditto.
20319 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20320 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20321 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20322 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20323 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20324 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20325 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20327 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20328 iterator and SSE_FLOAT_MODE_P as insn constraint.
20329 (<sse>_ucomi): Ditto from similar patterns.
20330 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20331 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20332 SSE_VEC_FLOAT_MODE_P as insn constraint.
20333 (vcond<mode>): Ditto from similar patterns.
20334 (and<mode>3, *and<mode>3): Ditto.
20335 (<sse>_nand<mode>3): Ditto.
20336 (ior<mode>3, *ior<mode>3): Ditto.
20337 (xor<mode>3, *xor<mode>3): Ditto.
20338 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20339 iterator and SSE_FLOAT_MODE_P as insn constraint.
20340 (*nand<mode>3): Ditto from similar patterns.
20341 (*ior<mode>3): Ditto.
20342 (*xor<mode>3): Ditto.
20344 2008-02-20 Ira Rosen <irar@il.ibm.com>
20346 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20347 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20348 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20350 2008-02-19 Jan Hubicka <jh@suse.cz>
20352 * predict.c (tree_bb_level_predictions): Remove variable next
20353 mistakely introduced by previous commit.
20355 2008-02-19 Jan Hubicka <jh@suse.cz>
20357 * predict.c (predict_paths_leading_to): Rewrite.
20358 (predict_paths_for_bb): New.
20359 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20361 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20364 * Makefile.in (build_file_translate): New.
20365 (gcc-vers.texi): Use it for translating $(abs_srcdir).
20366 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20367 * configure.ac (build_file_translate): Substitute it.
20368 * configure: Regenerate.
20370 2008-02-19 Jan Hubicka <jh@suse.cz>
20372 PR rtl-optimization/34408
20373 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20376 2008-02-19 Jan Hubicka <jh@suse.cz>
20378 PR middle-end/28779
20379 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20382 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
20385 * config/i386/i386-modes.def: Revert the last DI alignment
20386 change until Ada people can look into it.
20388 2008-02-19 Nick Clifton <nickc@redhat.com>
20390 * opts.c (print_specific_help): Fix typo in --help text.
20392 2008-02-19 Jakub Jelinek <jakub@redhat.com>
20395 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20396 32-bit inline asm without asm alternatives for host GCC < 3.0.
20398 2008-02-19 Richard Guenther <rguenther@suse.de>
20400 PR tree-optimization/34989
20401 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20402 Allow propagation to INDIRECT_REF if we can simplify only.
20404 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20406 * c-common.c (warn_for_collisions_1): Use appropriate option when
20409 2008-02-19 Nick Clifton <nickc@redhat.com>
20412 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20413 (handle_options): Fix indentation.
20414 (print_filtered_help): If no language-specific options were
20415 displayed tell the user how to list all the options supported by
20416 the language's front-end.
20417 (print_specific_help): Fix indentation and remove duplicate line.
20418 (common_handle_option): Handle the -v option.
20419 For --help enable the display of undocumented options if the -v
20420 switch has been included on the command line.
20421 For --help= check for overlaps in the arguments between the option
20422 classes and the language names and issue a warning when they
20423 cannot be disambiguated.
20424 * c.opt (v): Pass on to the common option handler.
20426 2008-02-19 Revital Eres <eres@il.ibm.com>
20428 * modulo-sched.c (sms_schedule): Change dump message when
20429 create_ddg function fails.
20430 (try_scheduling_node_in_cycle): Rename row to cycle.
20431 (print_partial_schedule): Rename CYCLE to ROW.
20433 2008-02-19 Christian Bruel <christian.bruel@st.com>
20434 Zdenek Dvorak <ook@ucw.cz>
20436 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20438 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20441 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20442 (*x86_movdicc_0_m1_se): Ditto.
20444 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20446 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20447 (CMPtype): Define as __gcc_CMPtype.
20448 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20449 (CMPtype): Define as __gcc_CMPtype.
20451 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
20453 Support valgrind 3.3 for --enable-checking=valgrind.
20454 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20456 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20457 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20458 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20459 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20460 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20461 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20462 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20464 * ggc-zone.c: Similar.
20465 * ggc-page.c: Similar.
20467 2008-02-19 Paul Brook <paul@codesourcery.com>
20470 * config/arm/ieee754-df.S: Fix do_it typo.
20471 * config/arm/ieee754-sf.S: Fix do_it typo.
20473 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
20476 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20477 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20478 (OPTION_MASK_ISA_SSE_SET): Likewise.
20479 (OPTION_MASK_ISA_SSE2_SET): Likewise.
20480 (OPTION_MASK_ISA_SSE3_SET): Likewise.
20481 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20482 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20483 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20484 (OPTION_MASK_ISA_SSE4_SET): Likewise.
20485 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20486 (OPTION_MASK_ISA_SSE5_SET): Likewise.
20487 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20488 (OPTION_MASK_ISA_MMX_UNSET): Updated.
20489 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20490 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20491 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20492 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20493 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20494 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20495 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20496 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20497 (OPTION_MASK_ISA_SSE4): Removed.
20498 (ix86_handle_option): Turn on bits in ix86_isa_flags and
20499 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20500 (override_options): Don't turn on implied SSE/MMX bits in
20503 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
20505 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20508 2008-02-18 Joey Ye <joey.ye@intel.com>
20510 PR middle-end/34921
20511 * tree-nested.c (insert_field_into_struct): Set type alignment
20512 to field alignment if the former is less than the latter.
20514 2008-02-18 Jakub Jelinek <jakub@redhat.com>
20516 * BASE-VER: Set to 4.4.0.
20518 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20520 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20521 * doc/cfg.texi: Likewise.
20522 * doc/extend.texi: Likewise.
20523 * doc/gty.texi: Likewise.
20524 * doc/invoke.texi: Likewise.
20525 * doc/loop.texi: Likewise.
20526 * doc/md.texi: Likewise.
20527 * doc/passes.texi: Likewise.
20528 * doc/rtl.texi: Likewise.
20529 * doc/sourcebuild.texi: Likewise.
20530 * doc/tm.texi: Likewise.
20531 * doc/tree-ssa.texi: Likewise.
20533 2008-02-17 Richard Guenther <rguenther@suse.de>
20535 PR middle-end/35227
20536 * tree-complex.c (init_parameter_lattice_values): Handle parameters
20537 without default definition.
20539 2008-02-17 Richard Guenther <rguenther@suse.de>
20541 PR tree-optimization/35231
20542 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20545 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
20548 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20549 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20550 libgcc_cmp_return mode.
20552 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20555 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20557 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
20559 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20562 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20564 * doc/c-tree.texi: Use `@.' where appropriate.
20565 * doc/extend.texi: Likewise.
20566 * doc/install.texi: Likewise.
20567 * doc/invoke.texi: Likewise.
20568 * doc/loop.texi: Likewise.
20569 * doc/makefile.texi: Likewise.
20570 * doc/md.texi: Likewise.
20571 * doc/passes.texi: Likewise.
20572 * doc/standards.texi: Likewise.
20573 * doc/tm.texi: Likewise.
20575 2008-02-15 Jakub Jelinek <jakub@redhat.com>
20577 PR middle-end/35196
20578 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20580 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20581 rather than in entry_bb.
20583 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20585 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20586 libgcc_cmp_return mode.
20588 2008-02-15 Jakub Jelinek <jakub@redhat.com>
20590 PR middle-end/35130
20591 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20592 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20594 2008-02-15 Richard Guenther <rguenther@suse.de>
20595 Zdenek Dvorak <ook@ucw.cz>
20597 PR tree-optimization/35164
20598 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20599 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20600 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20601 Only propagate addresses which do not have abnormal SSA_NAMEs
20604 2008-02-15 Joseph Myers <joseph@codesourcery.com>
20607 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20609 2008-02-15 Jan Hubicka <jh@suse.cz>
20611 PR middle-end/35149
20612 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20614 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20616 PR middle-end/34621
20617 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20618 when calculating alignment_pad.
20620 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20622 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20623 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20624 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20625 and STACK_BOUNDARY define.
20627 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
20629 PR preprocessor/35061
20630 * c-pragma.c (handle_pragma_pop_macro): Check that
20631 pushed_macro_table has been allocated.
20633 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
20635 PR middle-end/35136
20636 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20637 (force_gimple_operand): Likewise.
20638 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20639 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20640 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20641 (find_interesting_uses_address): Check addressability and alignment
20642 of the base expression only after substituting bases of IVs into it.
20644 2008-02-14 Michael Matz <matz@suse.de>
20647 * function.c (instantiate_virtual_regs_in_insn): Reload address
20648 before falling back to reloading the whole operand.
20650 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
20652 * config/s390/s390.c (s390_mainpool_start): Emit the pool
20653 before the first section switch note.
20655 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20657 * doc/bugreport.texi: Update copyright years.
20658 * doc/c-tree.texi: Likewise.
20659 * doc/cfg.texi: Likewise.
20660 * doc/cpp.texi: Likewise.
20661 * doc/cppinternals.texi: Likewise.
20662 * doc/fragments.texi: Likewise.
20663 * doc/frontends.texi: Likewise.
20664 * doc/gcc.texi: Likewise.
20665 * doc/gty.texi: Likewise.
20666 * doc/hostconfig.texi: Likewise.
20667 * doc/implement-c.texi: Likewise.
20668 * doc/libgcc.texi: Likewise.
20669 * doc/loop.texi: Likewise.
20670 * doc/makefile.texi: Likewise.
20671 * doc/options.texi: Likewise.
20672 * doc/passes.texi: Likewise.
20673 * doc/rtl.texi: Likewise.
20674 * doc/sourcebuild.texi: Likewise.
20675 * doc/standards.texi: Likewise.
20676 * doc/tree-ssa.texi: Likewise.
20677 * doc/trouble.texi: Likewise.
20679 * doc/extend.texi: Use @: or add comma where appropriate.
20680 * doc/invoke.texi: Likewise.
20681 * doc/tm.texi: Likewise.
20683 2008-02-14 Alan Modra <amodra@bigpond.net.au>
20686 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20689 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
20691 * doc/md.texi (clz, ctz): Add reference.
20692 * doc/rtl.texi (clz, ctz): Likewise.
20694 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20697 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20700 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
20702 * config/s390/s390.c (struct constant_pool): New field
20703 emit_pool_after added.
20704 (s390_mainpool_start): Set the emit_pool_after flag according
20705 to the section switch notes.
20706 (s390_mainpool_finish): Consider emit_pool_after when emitting
20707 the literal pool at the end of the function.
20708 (s390_chunkify_start): Force literal pool splits at section
20711 2008-02-13 Michael Matz <matz@suse.de>
20714 * var-tracking.c (clobber_variable_part): Correctly traverse the
20717 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20720 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20721 Add -fdump-ipa-inline.
20722 * tree-dump.c (dump_files): Remove tree-inlined dump.
20723 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20725 2008-02-12 Richard Guenther <rguenther@suse.de>
20727 PR tree-optimization/35171
20728 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
20731 2008-02-12 Richard Guenther <rguenther@suse.de>
20733 PR middle-end/35163
20734 * fold-const.c (fold_widened_comparison): Use get_unwidened in
20735 value-preserving mode. Disallow final truncation.
20737 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
20739 PR middle-end/35136
20740 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
20741 code from here to...
20742 (force_gimple_operand): ...here.
20744 2008-02-12 Jakub Jelinek <jakub@redhat.com>
20747 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
20748 non-compatible pointers.
20749 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
20750 different FIELD_DECLs, try harder by comparing field offsets, sizes
20753 PR inline-asm/35160
20754 * function.c (match_asm_constraints_1): Don't replace the same input
20757 2008-02-12 Anatoly Sokolov <aesok@post.ru>
20759 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
20760 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
20761 (expand_epilogue): Restore RAMPZ register.
20762 * config/avr/avr.md (RAMPZ_ADDR): New constant.
20764 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
20766 * config/i386/cygwin.asm: (__alloca): Correct calling
20767 convention and alignment.
20768 (__chkstk): Force 8 byte stack alignment.
20770 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
20771 Richard Guenther <rguenther@suse.de>
20773 PR tree-optimization/33992
20774 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
20775 the zero we compare against.
20777 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
20779 PR libfortran/35063
20780 * gthr-win32.h (__gthread_mutex_destroy_function): New function
20781 to CloseHandle after unlocking to prevent accumulation of handle
20784 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20786 PR middle_end/34150
20787 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
20788 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
20789 and update LABEL_NUSES during and after reload.
20791 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
20793 PR middle-end/34627
20794 * combine.c (simplify_if_then_else): Make sure the comparison is
20795 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
20797 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
20800 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
20801 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
20802 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
20803 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
20804 * tree.h (get_type_static_bounds): Likewise.
20806 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20808 * doc/invoke.texi (Option Summary, C++ Dialect Options)
20809 (Objective-C and Objective-C++ Dialect Options, Warning Options):
20810 Make -Wfoo language annotations match what the compiler outputs.
20812 2008-02-08 Sa Liu <saliu@de.ibm.com>
20814 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
20815 intrinsics spu_convts, spu_convtu, spu_convtf.
20817 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
20819 * doc/extend.texi (Function Attributes) <noinline>: Mention
20820 asm ("") as method to keep calls.
20822 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20825 * doc/options.texi (Options): Replace references to opts.sh with
20827 * opts-common.c: Likewise.
20828 * optc-gen.awk: Likewise.
20830 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
20832 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
20834 2008-02-07 Richard Henderson <rth@redhat.com>
20837 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
20838 EXPR_LIST for the REG_EQUAL instead of a comparison with a
20841 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
20843 PR tree-optimization/35085
20844 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
20845 for operand entry oe2 in addition to operand entry oe3 in order to
20846 expose more opportunities for vectorizer sum reduction.
20848 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20851 * Makefile.in (LIBS): Remove $(GMPLIBS).
20852 (cc1-dummy, cc1): Add $(GMPLIBS).
20854 2008-02-06 Jan Hubicka <jh@suse.cz>
20857 * i386.md (moddf_integer): Do not produce partial memory stalls for
20858 targets where it hurts.
20860 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
20863 * optabs.c (expand_float): Do not check for decimal modes when
20864 expanding unsigned integer through signed conversion.
20866 2008-02-06 Nick Clifton <nickc@redhat.com>
20868 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
20869 inside the clobber with a match_operand and duplicated operand
20870 number in the constraint.
20871 (ineqbranchsi): Delete redundant comment.
20873 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
20875 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
20876 builtin_define ("__USE_INIT_FINI__").
20877 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
20879 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
20881 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20883 PR documentation/30330
20884 * doc/invoke.texi (C++ Dialect Options)
20885 (Objective-C and Objective-C++ Dialect Options, Warning Options):
20886 For each warning option -Wfoo that allows -Wno-foo, ensure both
20887 -Wfoo and -Wno-foo are listed in the option index. Fix index
20888 entry of -Wswitch-default, index -Wnormalized= including the
20889 `=', and -Wlarger-than-@var{len} including @var{len}.
20891 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
20893 * config/i386/i386.md (floatunssisf2): Use
20894 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
20895 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
20896 Macroize expander using MODEF mode iterator.
20898 2008-02-05 Diego Novillo <dnovillo@google.com>
20900 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
20903 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
20905 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20908 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
20910 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
20913 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
20914 to indicate if a message should be generated.
20915 (init_cumulative_args): Updated.
20916 (function_value_32): Likewise.
20918 2008-02-05 Joseph Myers <joseph@codesourcery.com>
20920 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
20922 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
20925 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
20926 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
20928 2008-02-04 Diego Novillo <dnovillo@google.com>
20930 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
20933 * tree-vrp.c (vrp_evaluate_conditional): With
20934 -Wtype-limits, emit a warning when comparing against a
20935 constant outside the natural range of OP0's type.
20937 2008-02-04 Richard Guenther <rguenther@suse.de>
20939 PR middle-end/33631
20940 * expr.c (count_type_elements): Give for unions instead of
20943 2008-02-04 Richard Guenther <rguenther@suse.de>
20945 PR middle-end/35043
20946 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
20947 to TYPE_DOMAINs base type instead of using bitsizetype here.
20949 2008-02-03 Jason Merrill <jason@redhat.com>
20951 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
20953 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20956 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
20957 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
20958 (RS/6000 and PowerPC Options): Fix typos and markup.
20959 * doc/passes.texi (Tree-SSA passes): Likewise.
20961 2008-02-02 Michael Matz <matz@suse.de>
20964 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
20965 from record_last_reg_set_info.
20966 (record_last_reg_set_info): Take an RTX argument, iterate over all
20967 constituent hardregs.
20968 (record_last_set_info, record_opr_changes): Change calls to
20969 new signature or to record_last_reg_set_info_regno.
20971 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
20973 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
20975 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
20977 PR rtl-optimization/34773
20978 * reg-notes.def (EQUAL): Mention significance of combination of
20979 REG_EQUAL and REG_RETVAL.
20980 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
20981 insn that has a REG_RETVAL.
20983 2008-02-01 Roger Sayle <roger@eyesopen.com>
20986 * configure.ac (--enable-fixed-point): Disable unless explicitly
20988 * configure: Regenerate.
20990 2008-02-01 Richard Guenther <rguenther@suse.de>
20993 * invoke.texi (-finline-limit): Remove no longer true parts
20994 of the documentation. Note that there is no default value.
20996 2008-02-01 Andrew Pinski <pinskia@gmail.com>
20997 Mark Mitchell <mark@codesourcery.com>
20998 Ben Elliston <bje@au.ibm.com>
21001 * doc/extend.texi (Other Builtins): Document.
21003 2008-01-31 Tom Browder <tom.browder@gmail.com>
21005 * doc/c-tree.texi (Types): Fix grammar.
21006 (Expression trees): Ditto.
21007 * doc/passes.texi (Tree-SSA passes): Ditto.
21009 * doc/configterms.texi (Configure Terms): Fix typo.
21010 * doc/cpp.texi (Common Predefined Macros): Ditto.
21011 * doc/md.texi (Machine Constraints): Ditto.
21013 * doc/makefile.texi (Makefile): Add comma.
21015 2008-01-31 Tom Browder <tom.browder@gmail.com>
21016 Gerald Pfeifer <gerald@pfeifer.com>
21018 * doc/sourcebuild.texi (Front End): Remove references to CVS
21019 and CVSROOT/modules.
21020 (Texinfo Manuals): Replace reference to CVS by one to SVN.
21021 (Back End): Remove reference to CVS.
21023 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21026 * config/mips/mips.c (gen_load_const_gp): New function, taking a
21028 (mips16_gp_pseudo_reg): ...here.
21029 * config/mips/mips.md (load_const_gp): Replace with...
21030 (load_const_gp_<mode>): ...this :P-based insn.
21032 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21034 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21035 options. Minor fixes.
21036 (-std): Move reference to standards closer to where language
21037 standards are first mentioned.
21039 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21041 PR rtl-optimization/34995
21042 * reload.c (alternative_allows_const_pool_ref): Take an rtx
21043 parameter and return a bool. If the rtx parameter is nonnull,
21044 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21045 (find_reloads): Update call accordingly. Pass the new operand
21046 if it needed no address reloads, otherwise pass null.
21048 2008-01-30 Richard Henderson <rth@redhat.com>
21051 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21052 for unbounded arrays.
21054 2008-01-30 Silvius Rus <rus@google.com>
21056 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21058 2008-01-30 Jan Hubicka <jh@suse.cz>
21061 * i386.c (init_cumulative_args): Use real function declaration when
21064 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
21066 PR rtl-optimization/34998
21067 * global.c (build_insn_chain): Treat non-subreg_lowpart
21068 SUBREGs of pseudos as clobbering all the words covered by the
21069 SUBREG, not just all the bytes.
21070 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
21071 original df_ref rather than an extract parameter.
21072 (global_conflicts): Update call accordingly.
21074 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
21076 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21077 the overflow check to make it easier to read.
21078 (__fixtfdi): Change the type of the ll member in union
21079 long_double to UDItype_x.
21081 2008-01-30 Jakub Jelinek <jakub@redhat.com>
21083 PR middle-end/34969
21084 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21085 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21086 * tree-inline.c (fold_marked_statements): Call
21087 cgraph_update_edges_for_call_stmt if folding a call statement.
21088 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21089 debug_generic_stmt calls, reset it back afterwards.
21092 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21094 * c-typeck.c (build_external_ref): Don't pedwarn about
21095 static vars in current function's scope.
21097 2008-01-29 Joseph Myers <joseph@codesourcery.com>
21099 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21101 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
21104 * ipa-struct-reorg.c: Fix spelling.
21105 * params.def: Ditto.
21107 2008-01-29 Richard Guenther <rguenther@suse.de>
21109 PR middle-end/35006
21110 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21112 * tree-inline.c (remap_type): Increment remapping_type_depth
21113 around remapping types.
21114 (copy_body_r): Only add referenced variables if they are referenced
21115 from code, not types.
21117 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
21128 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21129 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21131 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
21134 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21135 pointer for tiny stack.
21137 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21139 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21141 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21143 * config/vx-common.h: Fix typo in comment.
21145 2008-01-28 Ian Lance Taylor <iant@google.com>
21149 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21150 coalesce pointers if they have different DECL_NO_TBAA_P values.
21151 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21152 between variables with different DECL_NO_TBAA_P values.
21154 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
21157 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21158 are not legitimate small data references on SPE targets.
21160 2008-01-28 David Daney <ddaney@avtrex.com>
21162 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21164 2008-01-28 David Daney <ddaney@avtrex.com>
21166 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
21168 2008-01-27 Joseph Myers <joseph@codesourcery.com>
21170 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21171 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21172 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21173 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21174 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21175 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21176 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21177 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21179 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21181 * basic-block.h (condjump_equiv_p): Fix comment.
21183 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21185 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21186 print_generic_stmt_indented): Fix comment.
21188 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21190 * configure.ac (__stack_chk_fail): Add detecion for availability
21191 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21192 * configure: Regenerate.
21194 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
21196 PR middle-end/34688
21197 * final.c (output_addr_const): Handle TRUNCATE.
21199 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
21202 * tree-ssa-loop-ivopts.c (comp_cost): New type.
21203 (zero_cost, infinite_cost): New constants.
21204 (struct cost_pair): Change type of cost to comp_cost.
21205 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21206 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21208 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21209 split_address_cost, ptr_difference_cost, difference_cost,
21210 get_computation_cost_at, get_computation_cost,
21211 determine_use_iv_cost_generic, determine_use_iv_cost_address,
21212 determine_use_iv_cost_condition, determine_use_iv_costs,
21213 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21214 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21215 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21216 Change type of cost to comp_cost.
21217 (determine_iv_cost): Increase cost of non-original ivs, instead
21218 of decreasing the cost of original ones.
21219 (get_address_cost): Indicate the complexity of the addressing mode
21221 (try_add_cand_for): Prefer using ivs not specific to some object.
21222 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21224 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
21225 Janis Johnson <janis187@us.ibm.com>
21228 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21229 (TARGET_INSTANTIATE_DECLS): Likewise.
21230 * target.h (expand_to_rtl_hook): New target hook.
21231 (instantiate_decls): Likewise.
21232 * function.c (instantiate_decl): Make non-static. Rename to...
21233 (instantiate_decl_rtl): ... this.
21234 (instantiate_expr): Use instantiate_decl_rtl.
21235 (instantiate_decls_1): Likewise.
21236 (instantiate_decls): Likewise.
21237 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21238 * function.h (instantiate_decl_rtl): Add prototype.
21239 * cfgexpand.c (target.h): New include.
21240 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21241 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21242 (TARGET_INSTANTIATE_DECLS): Likewise.
21243 (TARGET_INITIALIZER): New target hooks added.
21244 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21246 * config/rs6000/rs6000.c (tree-flow.h): New include.
21247 (machine_function): Add sdmode_stack_slot field.
21248 (rs6000_alloc_sdmode_stack_slot): New function.
21249 (rs6000_instantiate_decls): Likewise.
21250 (rs6000_secondary_memory_needed_rtx): Likewise.
21251 (rs6000_check_sdmode): Likewise.
21252 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21253 (TARGET_INSTANTIATE_DECLS): Likewise.
21254 (rs6000_hard_regno_mode_ok): Allow SDmode.
21255 (num_insns_constant): Likewise. Handle _Decimal32 constants.
21256 (rs6000_emit_move): Handle SDmode.
21257 (function_arg_advance): Likewise.
21258 (function_arg): Likewise.
21259 (rs6000_gimplify_va_arg): Likewise. Add special handling of
21260 SDmode var args for 32-bit compiles.
21261 (rs6000_secondary_reload_class): Handle SDmode.
21262 (rs6000_output_function_epilogue): Likewise.
21263 (rs6000_function_value): Simplify if statement.
21264 (rs6000_libcall_value): Likewise.
21265 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21266 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21267 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21268 (movsd_hardfloat): New define_insn.
21269 (movsd_softfloat): Likewise.
21270 (movsd_store): Likewise.
21271 (movsd_load): Likewise.
21272 (extendsddd2): Likewise.
21273 (extendsdtd2): Likewise.
21274 (truncddsd2): Likewise.
21275 (movdd_hardfloat64): Fixup comment.
21276 (UNSPEC_MOVSD_LOAD): New constant.
21277 (UNSPEC_MOVSD_STORE): Likewise.
21279 2008-01-26 Jakub Jelinek <jakub@redhat.com>
21282 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21284 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21285 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21286 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21287 and TRUTH_XOR_EXPR.
21289 2008-01-26 David Edelsohn <edelsohn@gnu.org>
21292 * config.gcc: Separate AIX 5.3 from AIX 6.1.
21293 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21294 __LONGDOUBLE128 too.
21295 * config/rs6000/aix61.h: New file.
21297 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21299 PR rtl-optimization/34959
21300 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21301 popcount and parity rtxes the same mode as their operand.
21302 Truncate or extend the result to the return value's mode
21305 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21308 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21309 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21310 to GOT_VERSION_REGNUM.
21311 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21312 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21313 * config/mips/mips.c (mips_emit_call_insn): New function.
21314 (mips_call_tls_get_addr): Call mips_expand_call directly.
21315 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21317 (mips16_build_call_stub): Likewise. Return the call insn or null.
21318 (mips_expand_call): Update the call to mips16_build_call_stub
21319 accordingly and a remove redundant condition. Assert that MIPS16
21320 stubs do not use lazy binding. Use mips_emit_call_insn and return
21322 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21324 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21325 (mips_avoid_hazard): Remove hazard_set handling.
21326 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21327 (UNSPEC_RESTORE_GP): ...this.
21328 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21329 (FAKE_CALL_REGNO): Rename to...
21330 (GOT_VERSION_REGNUM): ...this.
21331 (type): Add "ghost" value. Add an associated insn reservation.
21332 (hazard_set): Remove.
21333 (exception_receiver): Rename to...
21334 (restore_gp): ...this and update the unspec identifier accordingly.
21335 (exception_receiver, nonlocal_got_receiver): New expanders.
21336 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
21337 FAKE_CALL_REGNO. Remove hazard_set attribute.
21338 (set_got_version, update_got_version): New patterns.
21340 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
21343 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21345 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21348 * doc/install.texi2html: Generate gcc-vers.texi.
21350 2008-01-25 DJ Delorie <dj@redhat.com>
21352 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21354 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21356 * config/c4x: Remove directory.
21357 * config.gcc (crx-*, mt-*): Mark obsolete.
21358 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21359 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21360 sh-*-rtemscoff*): Remove cases.
21361 * defaults.h (C4X_FLOAT_FORMAT): Remove.
21362 * real.c (encode_c4x_single, decode_c4x_single,
21363 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21364 c4x_extended_format): Remove.
21365 * real.h (c4x_single_format, c4x_extended_format): Remove.
21366 * doc/extend.texi (interrupt, naked): Remove mention of attributes
21368 (Pragmas): Remove comment about c4x pragmas.
21369 * doc/install.texi (c4x): Remove target-specific instructions.
21370 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21371 * doc/md.texi (Machine Constraints): Remove C4x documentation.
21372 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21373 refer to C4x source files as examples.
21374 (C4X_FLOAT_FORMAT): Remove documentation.
21376 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
21378 * config/bfin/bfin.c (override_options): Reorder tests so that
21379 flag_pic gets enabled for -msep-data.
21381 2008-01-25 Richard Guenther <rguenther@suse.de>
21383 PR middle-end/32244
21384 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21385 to its bitfield precision if required.
21387 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21389 PR middle-end/33880
21390 * tree-nested.c (walk_omp_for): New function.
21391 (convert_nonlocal_reference, convert_local_reference): Call
21392 walk_omp_for on OMP_FOR.
21393 (convert_call_expr): Call walk_body on OMP_FOR's
21394 OMP_FOR_PRE_INIT_BODY.
21396 2008-01-25 Richard Guenther <rguenther@suse.de>
21398 PR tree-optimization/34966
21399 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21400 default defs and PHI_NODEs we have to insert after the
21401 defining statement.
21403 2008-01-24 Nick Clifton <nickc@redhat.com>
21405 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21406 Provide a default definition.
21407 (LIBGCC2_UNITS_PER_WORD): Likewise.
21409 * config/stormy16/stormy16.c: Include df.h for the prototype
21410 for df_regs_ever_live_p.
21411 (xstormy16_expand_builtin_va_start): Convert the stack offset
21412 into a component_ref and then use POINTER_PLUS_EXPR to add it
21413 to the incoming_virtual_args_rtx.
21414 (xstormy16_gimplify_va_arg_expr): Rename to
21415 xstormy16_gimplify_va_arg_expr.
21416 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21417 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21418 xstormy16_gimplify_va_arg_expr.
21419 Fix up some formatting issues.
21421 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21422 Move to predicates.md.
21423 (xs_hi_general_operand): Likewise.
21424 (xs_hi_nonmemory_operand): Likewise.
21425 * config/stormy16/predicates.md:
21426 (xstormy16_carry_plus_operand): New predicate.
21427 (xs_hi_general_operand): New predicate.
21428 (xs_hi_nonmemory_operand): New predicate.
21429 * config/stormy16/stormy16-protos.h:
21430 (xstormy16_carry_plus_operand): Delete prototype.
21431 (xs_hi_general_operand): Likewise.
21432 (xs_hi_nonmemory_operand): Likewise.
21434 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21435 modifiers as they are no longer needed and they can trigger
21436 reload spill failures.
21438 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21439 with a match_operand in order to help reload.
21441 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21442 constraint with 'e' for the 8th alternative as this version of
21443 the mov.w instruction only accepts the lower 8 registers.
21445 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
21448 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21449 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21452 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21454 PR middle-end/33333
21455 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21457 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
21459 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21461 (remove_structure): Update allocations list before removing structure.
21463 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
21465 * ipa-struct-reorg.c (is_safe_cond_expr,
21466 create_new_stmts_for_cond_expr): Use integer_zerop function,
21467 that recognize not only zero-pointer, but zero-integer too.
21469 2008-01-25 Ben Elliston <bje@au.ibm.com>
21472 * fixproto: Escape "." in sed expression that strips leading "./".
21474 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
21477 * gcc.c (SWITCH_OK): Removed.
21478 (SWITCH_LIVE): Changed to bit.
21479 (SWITCH_FALSE): Likewise.
21480 (SWITCH_IGNORE): Likewise.
21481 (switchstr): Change live_cond to unsigned int.
21482 (process_command): Replace SWITCH_OK with 0.
21483 (do_self_spec): Likewise.
21484 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21485 (give_switch): Likewise.
21486 (used_arg): Likewise.
21487 (do_spec_1): Set the SWITCH_IGNORE bit.
21488 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21489 bits. Set the SWITCH_LIVE bit.
21491 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
21493 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21495 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
21497 PR tree-optimization/34472
21498 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21499 parameter to a "bool *" and set *DATA to false if there is
21500 an unsafe access. Do not delete the structure here.
21501 (check_cond_exprs): Delete it here instead.
21502 (check_cond_exprs, exclude_cold_structs): Do not increase
21503 I when removing a structure.
21505 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
21508 * config/i386/i386.c (ix86_expand_vector_init): Consider only
21509 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21511 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
21513 PR middle-end/34934
21514 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21515 a fixed vector for stack.
21517 2008-01-24 Ben Elliston <bje@au.ibm.com>
21520 * doc/gcc.texi (Software development): Add a direntry for g++.
21522 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
21524 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21525 stale and straggling -fforce-addr comments above.
21527 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21529 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21530 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21532 2008-01-23 Michael Matz <matz@suse.de>
21535 * dwarf2out.c (force_type_die): Use modified_type_die instead of
21538 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
21540 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21541 malloc result type.
21543 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21545 * config/avr/avr.c (avr_current_arch): New variable.
21546 (avr_arch_types): Add 'avr31' and 'avr51' entries.
21547 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21548 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21549 (avr_override_options): Init 'avr_current_arch'.
21550 (base_arch_s): Move from here...
21551 * config/avr/avr.h (base_arch_s): ... here. Add new members
21552 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21553 'mega' to 'have_jmp_call'.
21554 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21555 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21557 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21559 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21560 MULTILIB_MATCHES): Ditto.
21562 2008-01-23 Richard Guenther <rguenther@suse.de>
21564 PR middle-end/31529
21565 * cgraphunit.c (cgraph_reset_node): Always mark the node
21566 not reachable if it is not queued already.
21568 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
21570 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21571 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21572 (cputype_selected): New static variable.
21573 (bfin_handle_option): Set it if -mcpu is used.
21574 (override_option): Select default set of workarounds if no cpu type
21575 selected on the command line.
21576 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21578 From Michael Frysinger <michael.frysinger@analog.com>
21579 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21580 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21582 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21583 for bf547, bf523, bf524, and bf526.
21584 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
21586 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21587 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21588 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21589 __ADSPBF547__ and __ADSPBF54x__ for bf547.
21590 * doc/invoke.texi (Blackfin Options): Document that
21591 -mcpu now accept bf547, bf523, bf524, and bf526.
21593 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
21595 PR rtl-optimization/34628
21596 * combine.c (try_combine): Stop and undo after the first combination
21597 if an autoincrement side-effect on the first insn has effectively
21600 2008-01-22 David Edelsohn <edelsohn@gnu.org>
21603 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21604 Offset addresses are not valid for Altivec or paired float modes.
21606 2008-01-22 Jakub Jelinek <jakub@redhat.com>
21609 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21610 if DECL_INITIAL (decl) is error_mark_node.
21613 * c-common.c (handle_vector_size_attribute): Only allow
21614 integral, scalar float and fixed point types. Handle OFFSET_TYPE
21615 the same way as pointer, array etc. types.
21616 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21619 * tree.c (build_type_attribute_qual_variant): Call
21620 build_qualified_type if attributes are equal, but quals are not.
21622 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21625 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21626 * flags.h (warn_strict_aliasing): Remove.
21627 (warn_strict_overflow): Remove.
21628 * opts.c (warn_strict_aliasing): Remove.
21629 (warn_strict_overflow): Remove.
21630 * c-opts.c (c_common_handle_option): -Wall only sets
21631 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21632 (c_common_post_options): Give default values to -Wstrict-aliasing
21633 and -Wstrict-overflow if they are uninitialized.
21634 * common.opt (Wstrict-aliasing): Specify Var and Init.
21635 (Wstrict-overflow): Likewise.
21637 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
21639 PR rtl-optimization/26854
21640 PR rtl-optimization/34400
21641 PR rtl-optimization/34884
21642 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21644 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21645 (df_rd_bb_info.expanded_lr_out): Deleted
21646 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21647 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
21648 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21649 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21650 Removed code to allocate, initialize or free expanded_lr_out.
21651 (df_rd_bb_local_compute_process_def): Restructured to make more
21653 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21654 sets if the sets are being trimmed.
21656 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
21659 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21660 (as_vers): Likewise.
21661 * configure: Regenerated.
21663 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21665 PR middle-end/33092
21666 * tree-pass.h (pass_build_alias): New pass.
21667 * tree-ssa-alias.c (gate_build_alias): New.
21668 (pass_build_alias): New.
21669 * passes.c (init_optimization_passes): Add pass_build_alias after
21670 pass_create_structure_vars.
21672 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
21674 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21675 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21676 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21677 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21678 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21679 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21680 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21681 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21682 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21683 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21684 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21685 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21686 * config/s390/s390.md (FP_ALL): New mode iterator.
21687 (_d): New mode attribute.
21688 ("*signbit<mode>2>"): Changed mode of first operand.
21689 ("isinf<mode>2"): Changed mode of first operand.
21690 ("*TDC_insn"): Adaptation for DFP modes.
21692 2008-01-22 Ben Elliston <bje@au.ibm.com>
21694 * tree.c (check_qualified_type): Improve function description.
21696 2008-01-21 Jason Merrill <jason@redhat.com>
21699 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21700 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21703 2008-01-21 DJ Delorie <dj@redhat.com>
21705 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21708 2008-01-21 Richard Guenther <rguenther@suse.de>
21710 PR middle-end/34856
21711 * tree-cfg.c (verify_expr): Allow all invariant expressions
21712 instead of just constant class ones as reference argument.
21713 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21714 like any other constant.
21715 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21717 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
21719 * regmove.c (fixup_match_1): Update call crossed frequencies.
21721 2008-01-21 Richard Guenther <rguenther@suse.de>
21724 * tree-inline.c (setup_one_parameter): Deal with mismatched
21725 types using a VIEW_CONVERT_EXPR.
21727 2008-01-21 Alon Dayan <alond@il.ibm.com>
21728 Olga Golovanevsky <olga@il.ibm.com>
21730 PR tree-optimization/34701
21731 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
21732 when the structure size is not a power of 2.
21734 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
21736 * doc/install.texi: Add doc for --enable-checking=df.
21738 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
21740 PR rtl-optimization/34808
21741 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
21743 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
21745 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
21748 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
21750 PR rtl-optimization/26854
21751 PR rtl-optimization/34400
21752 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
21754 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
21755 (df_rd_bb_info.expanded_lr_out): New.
21756 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
21757 * loop_iv.c (iv_analysis_loop_init): Ditto.
21758 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21759 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21760 Added code to allocate, initialize or free expanded_lr_out.
21761 (df_rd_bb_local_compute_process_def): Restructured to make
21762 more understandable.
21763 (df_rd_confluence_n): Add code to do nothing with fake edges and
21764 code to no apply invalidate_by_call sets if the sets are being trimmed.
21765 (df_lr_local_finalize): Renamed to df_lr_finalize.
21766 (df_live_local_finalize): Renamed to df_live_finalize.
21768 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
21771 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
21772 deciding whether to use reciprocal instructions.
21774 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
21776 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
21777 dwarf2out_note_section_used if cold_text_section is NULL.
21779 2008-01-19 Jakub Jelinek <jakub@redhat.com>
21781 PR gcov-profile/34610
21782 * tree-cfg.c (make_edges): Mark both outgoing edges from
21783 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
21784 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
21785 from OMP_FOR and OMP_CONTINUE outgoing edges.
21787 * tree-profile.c (tree_profiling): Return early if
21788 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
21790 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
21791 from cfun to child_cfun.
21792 * function.h (struct function): Add after_tree_profile bit.
21794 2008-01-19 Anatoly Sokolov <aesok@post.ru>
21796 * config/avr/avr.S (_exit): Disable interrupt.
21798 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
21799 Steven Bosscher <stevenb.gcc@gmail.com>
21801 PR rtl-optimization/26854
21802 PR rtl-optimization/34400
21803 * df-problems.c (df_live_scratch): New scratch bitmap.
21804 (df_live_alloc): Allocate df_live_scratch when doing df_live.
21805 (df_live_reset): Clear the proper bitmaps.
21806 (df_live_bb_local_compute): Only process the artificial defs once
21807 since the order is not important.
21808 (df_live_init): Init the df_live sets only with the variables
21809 found live by df_lr.
21810 (df_live_transfer_function): Use the df_lr sets to prune the
21811 df_live sets as they are being computed.
21812 (df_live_free): Free df_live_scratch.
21814 2008-01-18 Ian Lance Taylor <iant@google.com>
21816 * common.opt: Add fmerge-debug-strings.
21817 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
21818 flag_merge_debug_strings rather than flag_merge_constants.
21819 * doc/invoke.texi (Option Summary): Mention
21820 -fmerge-debug-strings.
21821 (Debugging Options): Document -fmerge-debug-strings.
21823 2008-01-18 Ian Lance Taylor <iant@google.com>
21826 * tree.h (DECL_IS_OPERATOR_NEW): Define.
21827 (struct tree_function_decl): Add new field operator_new_flag.
21828 * tree-inline.c (expand_call_inline): When inlining a call to
21829 operator new, force the return value to go into a variable, and
21830 set DECL_NO_TBAA_P on that variable.
21831 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
21833 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
21836 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
21837 DWARF2_DEBUGGING_INFO.
21838 (dwarf2out_note_section_used): Ditto. Add prototype.
21839 (have_multiple_function_sections, text_section_used,
21840 cold_text_section_used, *cold_text_sections): Move declarations
21843 2008-01-17 Bob Wilson <bob.wilson@acm.org>
21845 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
21846 field and add signal_ra.
21847 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
21848 assignments to frame state pc. Move end of stack check after
21849 MD_FALLBACK_FRAME_STATE_FOR.
21850 (uw_update_context_1): Use frame state signal_regs if set, instead
21851 of checking signal_frame flag.
21852 (uw_update_context): Use frame state signal_ra if set.
21853 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
21854 * config/xtensa/linux-unwind.h: New file.
21856 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
21858 * modulo-sched.c (get_sched_window): Fix comment typo.
21860 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
21862 PR tree-optimization/34648
21863 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
21865 2008-01-17 Anatoly Sokolov <aesok@post.ru>
21867 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
21868 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
21870 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
21872 PR rtl-optimization/34400
21873 * df-core.c (df_worklist_dataflow_overeager,
21874 df_worklist_dataflow_doublequeue): New functions.
21875 (df_worklist_dataflow): Two different worklist solvers.
21876 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
21879 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21882 * doc/invoke.texi: Document the dependence on pthread for fopenmp
21883 and ftree-parallelize-loops.
21885 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
21887 PR rtl-optimization/34826
21888 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
21890 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
21892 * global.c (find_reg): Mark the eh regs as used if necessary.
21893 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
21894 * ra.h (struct allocno): no_eh_reg field added. Changed
21895 no_stack_reg type to bitfield.
21897 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
21899 * tree.c (substitute_in_expr): Add missing 'break'.
21901 2008-01-17 Richard Guenther <rguenther@suse.de>
21903 PR tree-optimization/34825
21904 * tree-ssa-math-opts.c (is_division_by): Do not recognize
21905 x / x as division to handle.
21907 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21909 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
21910 "-pthread" is specified.
21911 * pa-hpux11.h (LIB_SPEC): Likewise.
21913 2008-01-16 Janis Johnson <janis187@us.ibm.com>
21914 Peter Bergner <bergner@vnet.ibm.com>
21916 PR rtl-optimization/33796
21917 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
21919 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21921 PR libgfortran/34699
21922 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
21924 * pa-hpux10.h (LINK_SPEC): Likewise.
21925 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
21927 2008-01-16 Richard Guenther <rguenther@suse.de>
21929 PR middle-end/32628
21930 * fold-const.c (fold_convert_const_int_from_int): Do not
21931 set overflow if that occured only because of a sign extension
21932 change when converting from/to a sizetype with the same
21933 precision and signedness.
21935 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
21938 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
21939 location address to the correct place. Update copyright year.
21941 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21943 * lambda-code.c (lambda_transform_legal_p): Handle the case of
21944 no dependences in the dependence_relations vector.
21946 2008-01-16 Jan Hubicka <jh@suse.cz>
21948 PR rtl-optimization/31396
21949 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
21950 * cfg.c (dump_reg_info): Print it.
21951 * regs.h (struct reg_info_t): add freq_calls_crossed.
21952 (REG_FREQ_CALLS_CROSSED): New macro.
21953 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
21954 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
21955 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
21956 regmove_optimize): Update call crossed frequencies.
21957 * local-alloc.c (struct qty): Add freq_calls_crossed.
21958 (alloc_qty): Copute freq_calls_crossed.
21959 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
21960 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
21961 * ra.h (struct allocno): Add freq_calls_crossed.
21963 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21965 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
21966 libgomp when compiling with ftree-parallelize-loops.
21967 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
21969 2008-01-16 Richard Guenther <rguenther@suse.de>
21971 PR tree-optimization/34769
21972 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
21973 * tree.c (int_cst_value): Instead make this function more
21974 permissive in what it accepts as valid input. Document this
21975 function always sign-extends the value.
21977 2008-01-16 Jakub Jelinek <jakub@redhat.com>
21978 Richard Guenther <rguenther@suse.de>
21981 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
21982 (gimple_fold_indirect_ref_rhs): ... this.
21983 (gimple_fold_indirect_ref): New function with foldings
21984 that preserve lvalueness.
21985 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
21986 * tree-flow.h (gimple_fold_indirect_ref): Declare.
21987 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
21988 to fold an INDIRECT_REF, fall back to the old use of
21989 fold_indirect_ref_1.
21991 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21993 * tree-data-ref.c (subscript_dependence_tester_1): Call
21994 free_conflict_function.
21995 (compute_self_dependence): Same.
21997 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22000 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22001 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
22003 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22004 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22005 for DWARF2_UNWIND_INFO targets.
22007 2008-01-16 Richard Guenther <rguenther@suse.de>
22010 * c-typeck.c (common_pointer_type): Do not merge inconsistent
22011 type qualifiers for function types.
22013 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
22015 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22016 loop_iterator li from previous commit.
22018 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
22020 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22022 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22024 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22025 (parallelize_loops): Don't parallelize irreducible components.
22027 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22030 * c-opts (c_common_post_options): Do not enable CPP
22031 flag_pedantic_errors by default.
22033 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
22035 PR rtl-optimization/31944
22036 * cse.c (remove_pseudo_from_table): New function.
22037 (merge_equiv_classes): Use above function to remove pseudo-registers.
22038 (invalidate): Likewise.
22040 2008-01-13 Richard Guenther <rguenther@suse.de>
22042 PR middle-end/34601
22043 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22044 instead of TYPE_MODE to deal with calls from expand_one_error_var.
22046 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
22048 * gcse.c (cprop_jump): Call validate_unshare_change instead of
22049 validate_change to unshare the source of the PC set.
22051 2008-01-12 Jan Hubicka <jh@suse.cz>
22053 PR middle-end/32135
22054 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22055 references above array bounds. This might trigger bounds checks for
22056 pointers to arrays.
22058 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22060 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22061 new_replaceable_dependencies.
22063 2008-01-12 Doug Kwan <dougkwan@google.com>
22065 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22066 instead of OPT_Wreturn_type in warning due to ignored return type
22068 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22069 options included in -Wextra.
22070 * c.opt: New option -Wignored_qualifiers.
22071 * doc/invoke.texi (Warning Options, -Wextra): Add new option
22072 -Wignore_qualifiers.
22073 (-Wignored-qualifiers): Document.
22074 (-Wreturn-type): Remove description of functionality now handled
22075 by -Wignored-qualifiers.
22077 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
22080 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22081 NOP_EXPR if it is between integral types with the same precision.
22083 2008-01-12 Jan Hubicka <jh@suse.cz>
22086 * invoke.texi (max-inline-recursive-depth): Fix default value.
22088 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
22090 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22093 2008-01-11 Bob Wilson <bob.wilson@acm.org>
22095 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22097 2008-01-11 James E. Wilson <wilson@specifix.com>
22100 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22102 2008-01-11 Anatoly Sokolov <aesok@post.ru>
22104 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22105 save/restore frame pointer register and don't use 'call-prologues'
22106 optimization in function with "OS_task" attribute.
22108 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
22110 PR middle-end/31309
22111 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22112 when copying to memory.
22114 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
22116 PR rtl-optimization/30905
22117 * cfgcleanup.c: Include dce.h
22118 (crossjumps_occured): New global variable.
22119 (try_crossjump_bb): Exit loop after finding a fallthru edge.
22120 If something changed, set crossjumps_occured to true.
22121 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22122 Don't add/remove fake edges to exit here...
22123 (cleanup_cfg): ...but do it here, when crossjumping.
22124 Run a fast DCE when successful crossjumps occured in the latest
22125 iteration of try_optimize_cfg.
22127 2008-01-11 Richard Guenther <rguenther@suse.de>
22129 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22130 (struct vn_unary_op_s): Likewise.
22131 (vn_reference_insert): Free old reference on hash collision.
22133 2008-01-10 Raksit Ashok <raksit@google.com>
22135 PR rtl-optimization/27971
22136 * combine.c (find_split_point): Split PLUS expressions which are
22137 inside a MEM rtx, and whose first operand is complex.
22139 2008-01-10 DJ Delorie <dj@redhat.com>
22141 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22142 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22143 (m32c_hard_regno_ok): Call the underlying function.
22145 2008-01-10 Richard Guenther <rguenther@suse.de>
22147 PR middle-end/34683
22148 * tree-cfg.c (tree_merge_blocks): Do not go through the
22149 full-blown folding and stmt updating path if we just deal
22150 with virtual operands.
22151 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22152 test for abnormal SSA_NAMEs.
22154 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
22156 PR middle-end/34641
22157 * reload.c (push_reload): Add assertions. All constants from
22158 reg_equiv_constant should have been used for replacing the respective
22160 (find_reloads_address): Invoke find_reloads_address_part for
22161 constant taken from the reg_equiv_constant array.
22163 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
22165 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22166 field (valnum) the first in the struct. Replace bools with
22169 2008-01-10 Richard Guenther <rguenther@suse.de>
22171 PR tree-optimization/34651
22172 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
22173 types and ordering for masking and converting.
22175 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
22177 PR tree-optimization/34017
22178 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22179 also for PHI_NODE expressions.
22181 2008-01-09 Jan Hubicka <jh@suse.cz>
22183 PR tree-optimization/34708
22184 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22185 based on number of case labels.
22186 (init_inline_once): Remove switch_cost.
22187 * tree-inline.h (eni_weights_d): Remove switch_cost.
22189 2008-01-09 Richard Guenther <rguenther@suse.de>
22190 Andrew Pinski <andrew_pinski@playstation.sony.com>
22192 PR middle-end/30132
22193 * gimplify.c (gimplify_cond_expr): Do not create an addressable
22194 temporary if an rvalue is ok or an lvalue is not required.
22196 2008-01-09 Richard Guenther <rguenther@suse.de>
22198 PR middle-end/34458
22199 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22200 adjust return type.
22202 2008-01-09 Richard Guenther <rguenther@suse.de>
22204 PR middle-end/34679
22205 * tree.c (host_integerp): Check for sizetype only if the
22206 type is an integer type.
22208 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
22211 * opts.c (decode_options): Disable inlining of functions called
22212 once if not in unit-at-a-time mode.
22214 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
22216 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22218 2008-01-08 Richard Guenther <rguenther@suse.de>
22220 PR middle-end/31863
22221 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22222 out early if the result will be unused.
22224 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22229 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22230 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22233 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
22235 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22236 for vectorization tuned.
22238 2008-01-08 Richard Guenther <rguenther@suse.de>
22240 PR tree-optimization/34683
22241 * tree-ssa-operands.c (operand_build_cmp): Export.
22242 * tree-ssa-operands.h (operand_build_cmp): Declare.
22243 * tree-vn.c (vuses_compare): Remove.
22244 (sort_vuses): Use operand_build_cmp.
22245 (sort_vuses_heap): Likewise.
22246 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22247 to re-use old VEC if available. Do not sort already sorted VUSEs.
22248 (vdefs_to_vec): Do not sort already sorted VDEFs.
22250 2008-01-08 Jakub Jelinek <jakub@redhat.com>
22252 PR middle-end/34694
22253 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22255 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22258 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22259 limitations of reciprocal sequences on x86 targets.
22261 2008-01-08 Richard Guenther <rguenther@suse.de>
22263 PR tree-optimization/34683
22264 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22266 2008-01-07 Jakub Jelinek <jakub@redhat.com>
22269 * config/darwin.c (darwin_mergeable_string_section): Don't use
22270 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22272 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
22275 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22276 negxf2. Macroize expander using X87MODEF mode iterator. Change
22277 predicates of op0 and op1 to register_operand.
22278 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
22279 expander using X87MODEF mode iterator. Change predicates of
22280 op0 and op1 to register_operand.
22281 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22282 corresponding patterns and macroize using MODEF macro. Change
22283 predicates of op0 and op1 to register_operand and remove
22284 "m" constraint. Disparage "r" alternative with "!".
22285 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22286 macroize using X87MODEF macro. Change predicates of op0 and op1
22287 to register_operand and remove "m" constraint. Disparage "r"
22288 alternative with "!".
22289 (absneg splitter with memory operands): Remove.
22290 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22291 patterns and macroize using X87MODEF mode iterator.
22292 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22293 Change predicate of op1 to register_operand.
22294 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22295 for memory operands.
22297 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
22299 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22301 2008-01-07 Richard Guenther <rguenther@suse.de>
22303 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22306 2008-01-07 Richard Guenther <rguenther@suse.de>
22308 PR tree-optimization/34683
22309 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22310 VOPs of the needed size to save memory. Use VEC_quick_push
22311 to save compile-time.
22312 (vdefs_to_vec): Likewise.
22314 2008-01-07 Sa Liu <saliu@de.ibm.com>
22316 * config/spu/spu.md (divdf3): Genetate inline code for double
22317 division. The implementation doesn't handle INF or NAN, therefore it
22318 only applies when -ffinite-math-only is given.
22320 2008-01-06 Paolo Carlini <pcarlini@suse.de>
22323 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22324 * doc/cpp.texi ([Common Predefined Macros]): Document.
22326 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
22328 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22329 order to use commutative addition instead of subtraction.
22331 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
22332 Mircea Namolaru <namolaru@il.ibm.com>
22333 Vladimir Yanovsky <yanov@il.ibm.com>
22334 Revital Eres <eres@il.ibm.com>
22336 PR tree-optimization/34263
22337 * tree-outof-ssa.c (process_single_block_loop_latch,
22338 contains_tree_r): New functions.
22339 (analyze_edges_for_bb): Call process_single_block_loop_latch
22340 function to empty single-basic-block latch block if possible.
22342 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22344 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22346 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22348 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22350 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22352 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22354 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22356 2008-01-05 Jakub Jelinek <jakub@redhat.com>
22358 PR tree-optimization/34618
22359 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22362 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22365 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22366 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
22367 Update copyright year.
22369 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22370 Update copyright year.
22371 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22374 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
22376 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22377 edge does not point to current bb before changing need_assert.
22379 2008-01-04 Richard Guenther <rguenther@suse.de>
22381 PR middle-end/34029
22382 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22383 for verifying purposes if they are is_gimple_min_invariant.
22385 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
22387 PR tree-optimization/34448
22388 PR tree-optimization/34465
22389 * gimplify.c (gimplify_init_constructor): Add new parameter
22390 notify_temp_creation. Use it.
22391 (gimplify_modify_expr_rhs): Take volatiles into account when
22392 optimizing constructors.
22393 Do not optimize constructors if gimplify_init_constructor will dump to
22395 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22396 * gcc.c-torture/compile/pr34448.c: New.
22398 2008-01-04 Jakub Jelinek <jakub@redhat.com>
22400 PR gcov-profile/34609
22401 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22402 return_slot if result is TREE_ADDRESSABLE.
22404 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
22406 * config/mips/mips.md (sqrt_condition): Tweak comment.
22407 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
22409 2008-01-03 Tom Tromey <tromey@redhat.com>
22412 * c-common.c (c_type_hash): Handle VLAs.
22414 2008-01-03 Jan Hubicka <jh@suse.cz>
22416 PR tree-optimization/31081
22417 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22418 0 when inlining and not inlining to first basic block.
22419 (remap_decl): When var is initialized to 0, don't set default_def.
22420 (expand_call_inline): Set entry_bb.
22421 * tree-inline.h (copy_body_data): Add entry_bb.
22423 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22426 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22429 PR tree-optimization/29484
22430 * tree-inline.c (inline_forbidden_p_2): New function.
22431 (inline_forbidden_p): Disallow inlining if some static var
22432 has an address of a local LABEL_DECL in its initializer.
22433 * doc/extend.texi (Labels as Values): Document &&foo behaviour
22436 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
22438 PR tree-optimization/34635
22439 * tree-data-ref.c (add_other_self_distances): Make sure that the
22440 evolution step is constant.
22442 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22444 PR middle-end/34608
22445 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22447 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
22449 * tree-sra.c (scalarize_init): Insert the generate_element_init
22450 statements after the generate_element_zero statements.
22452 2008-01-02 Richard Guenther <rguenther@suse.de>
22454 PR middle-end/34093
22455 PR middle-end/31976
22456 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22457 for very large number of operands instead of ICEing.
22459 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
22462 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22463 while stack probing.
22465 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
22467 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22470 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
22472 PR libmudflap/26442
22473 * tree-mudflap.c (mx_register_decls): Guard warning by
22474 !DECL_ARTIFICIAL check.
22476 2008-01-01 Jakub Jelinek <jakub@redhat.com>
22478 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22479 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22480 sse5_perm<mode>): Fix constraints.