* config/sh/sh.c (sh_insn_length_adjustment): Adjust for
[official-gcc.git] / gcc / ChangeLog
blob5e2f3ea58167d46678449a60fe296311321a7104
1 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
4         the change of decode_asm_operands.
6 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8         * mode-switching.c (create_pre_exit): Skip blockage insn.
10 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
12         * tree-pass.h (TODO_update_smt_usage): Remove.
13         Update all users.
14         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
15         argument SOME.
16         Update all users.
18 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
21         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
22         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
23         SOM target.
25 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
27         * gcc.c: Document %{, in big comment at top.
28         (input_suffix_matches): Remove special handling for .s and
29         .S.
30         (input_spec_matches): New.
31         (handle_braces): Handle %{,.
32         (validate_switches): ',' indicates a value which is not a switch.
33         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
34         to detect assembler input.
35         * config/i386/sol2.h (CPP_SPEC): Likewise.
36         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
37         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
39         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
40         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
41         -m64 causes deployment target to default to 10.5.
42         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
44 2007-03-09  Richard Henderson  <rth@redhat.com>
46         PR target/26090
47         * target.h (targetm.asm.out.reloc_rw_mask): New.
48         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
49         (TARGET_ASM_OUT): Use it.
50         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
51         * varasm.c (categorize_decl_for_section): Remove shlib argument;
52         use the new reloc_rw_mask target hook instead.
53         (default_section_type_flags_1): Merge into...
54         (default_section_type_flags): ... here.
55         (decl_readonly_section_1): Merge into...
56         (decl_readonly_section): ... here.
57         (default_elf_select_section_1): Merge into...
58         (default_elf_select_section): ... here.
59         (default_unique_section_1): Merge into...
60         (default_unique_section): ... here.
61         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
62         (default_select_rtx_section): Use it.
63         (default_elf_select_rtx_section): Likewise.
64         * output.h: Update to match.
65         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
66         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
67         (TARGET_ASM_RELOC_RW_MASK): New.
68         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
69         to categorize_decl_for_section.
70         (x86_64_elf_unique_section): Likewise.
71         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
72         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
73         (TARGET_ASM_RELOC_RW_MASK): New.
74         * config/ia64/ia64.c (ia64_rwreloc_select_section,
75         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
76         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
77         (TARGET_RWRELOC): Remove.
78         (ia64_section_type_flags): Adjust call to default_section_type_flags.
79         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
80         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
81         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
82         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
83         (rs6000_xcoff_select_section): Use decl_readonly_section.
84         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
85         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
86         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
87         (TARGET_SECTION_TYPE_FLAGS): Remove.
88         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
90 2007-03-09  Roger Sayle  <roger@eyesopen.com>
92         * fold-const.c (fold_comparison): Remove compile-time evaluation of
93         complex constant equality/inequality comparisons for here.
94         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
95         known at compile-time or can be simplified to a scalar comparison.
96         (fold_relational_const): Move compile-time evaluation of complex
97         constant equality/inequality comparisons to here.
99 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
101         PR rtl-optimization/30643
102         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
103         dest_addr_elt.
104         (fold_rtx): Recurse, like before 2006-11-03.
106 2007-03-09  DJ Delorie  <dj@redhat.com>
108         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
109         m32c-pragma.o.
111 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
113         PR tree-optimization/30375
114         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
115         LHS of statements is not the same.
116         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
118 2007-03-09  Chao-ying Fu  <fu@mips.com>
120         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
121         REV 2.
122         * doc/invoke.texi (-mdspr2): Document new option.
123         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
124         New unspec for DSP REV 2.
125         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
126         these instructions are extended in DSP REV 2.
127         (mips-dspr2.md): Include.
128         * config/mips/mips.opt (mdspr2): New option.
129         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
130         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
131         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
132         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
133         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
134         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
135         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
136         and 2 builtins.
137         (bdesc_map): Add one field of unsupported_target_flags.
138         (bdesc_arrays):  Update entries to have extra fields.  Add
139         dsp_32only_bdesc.
140         (mips_init_builtins): Initialize new function types.
141         Check unsupported_target_fileds to filter out builtins.
142         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
143         TARGET_DSPR2.
144         (ASM_SPEC): Pass mdspr2 to the assembler.
145         * config/mips/mips-dspr2.md: New file.
147 2007-03-09  Sa Liu  <saliu@de.ibm.com>
149         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
151 2007-03-09  Ian Lance Taylor  <iant@google.com>
153         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
154         argument) like -Wstrict-overflow=2.
155         * doc/invoke.texi (Warning Options): Update documentation.
157 2007-03-09  Dirk Mueller  <dmueller@suse.de>
159         PR c++/17946
160         * doc/invoke.texi (-Wlogical-op): Document.
161         * common.opt (-Wlogical-op): New.
162         * c-common.h (warn_logical_operator): Declare.
163         * c-common.c (warn_logical_operator): Define.
164         * c-typeck.c (parser_build_binary_op): Call
165         warn_logical_operator.
167 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
169         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
170         * final.c (final_scan_insn): Test for non-"" file name.
172 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
174         * doc/loop.texi: Document the Omega linear constraints solver.
175         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
176         omega-max-geqs, omega-max-eqs, omega-max-wild-cards, 
177         omega-hash-table-size, omega-max-keys, and 
178         omega-eliminate-redundant-constraints.
179         * tree-pass.h (pass_check_data_deps): Declared.
180         * omega.c: New.
181         * omega.h: New.
182         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
183         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps, 
184         pass_check_data_deps): New.
185         * tree-data-ref.c (init_data_ref): Remove declaration.
186         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
187         (analyze_array): Renamed init_array_ref, move up initializations.
188         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
189         Removed arguments that are set to NULL.
190         (analyze_indirect_ref): Correct indentation, correct call to 
191         init_pointer_ref.
192         (object_analysis): Call init_array_ref instead of analyze_array.
193         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
194         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
195         of DR_ACCESS_FNS_ADDR.
196         (init_omega_eq_with_af, omega_extract_distance_vectors, 
197         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
198         ddr_consistent_p): New.
199         (compute_affine_dependence): Check consistency of ddrs when 
200         flag_check_data_deps is passed.
201         (analyze_all_data_dependences): Uncomment.
202         (tree_check_data_deps): New.
203         * tree-data-ref.h: Include omega.h.
204         (DR_ACCESS_FNS_ADDR): Removed.
205         (data_dependence_relation): Add inner_loop.
206         (DDR_INNER_LOOP): New.
207         * common.opt (fcheck-data-deps): New.
208         * tree-flow.h (tree_check_data_deps): Declare.
209         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
210         (OBJS-common): Depend on omega.o.
211         (omega.o): Define.
212         * passes.c (pass_check_data_deps): Scheduled.
213         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS, 
214         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
215         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
216         PARAM_VECT_MAX_VERSION_CHECKS,
217         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
219 2007-03-09  Richard Guenther  <rguenther@suse.de>
221         PR tree-optimization/30904
222         PR middle-end/31058
223         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
224         the same way as *_DIV_EXPR.
226 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
228         * recog.c (decode_asm_operands): No mixed declarations and code.
230 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
232         * rtl.def (ASM_INPUT): Add location.
233         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
234         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
235         (decode_asm_operands): Add loc operand.
236         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
237         * stmt.c (expand_asm): Rename to...
238         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
239         gen_rtx_ASM_INPUT_loc.
240         (expand_asm_expr): Adjust.
241         * recog.c (decode_asm_operands): Add loc operand.
242         (check_asm_operands, extract_insn): Adjust.
243         * reload1.c (maybe_fix_stack_asms): Likewise.
244         * final.c (asm_insn_count): Likewise.
245         (final_scan_insn): Output # line before and after asm.
247 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
249         * tree-ssa-structalias.c (variable_info): Remove
250         finished_solution.
251         (new_var_info): Ditto.
252         (shared_bitmap_info_t): New structure.
253         (shared_bitmap_table): New variable.
254         (shared_bitmap_hash): New function.
255         (shared_bitmap_eq): Ditto
256         (shared_bitmap_lookup): Ditto.
257         (shared_bitmap_add): Ditto.
258         (merge_smts_into): Change to take bitmap directly.
259         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
260         (init_alias_vars): Init shared bitmap hashtable.
261         (delete_points_to_sets): Delete shared bitmap hashtable.
262         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
263         is_aliased removal as a change that was still necessary was
264         deleted.
266 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
268         * config/i386/i386.h (override_options): Conditionally disable
269         x86_sahf for 64bit targets only.
271 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
273         PR C/31072
274         * c-decl.c (merge_decls): Don't call make_var_volatile.
275         * varasm.c (make_var_volatile): Remove.
276         * output.h (make_var_volatile): Remove.
278 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
280         PR tree-optimization/31085
281         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
283 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
285         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
286         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
287         ATTR_CONST_NOTHROW_LIST.
288         
289         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
290         FIX_TRUNC_EXPR.
292 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
294         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
296 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
298         PR 31013
299         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
300         is declared.
301         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
302         passed, use shared libgcc.
304 2007-03-08  Roger Sayle  <roger@eyesopen.com>
306         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
307         instead of calling build2 with a GIMPLE_MODIFY_STMT.
308         (honor_protect_cleanup_actions, lower_try_finally_switch):
309         Likewise.
310         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
311         ifc_temp_var): Likewise.
312         * tree-inline.c (setup_one_parameter): Likewise.
313         * tree-mudflap.c (mf_decl_cache_locals,
314         mf_build_check_statement_for): Likewise.
315         * tree-nested.c (init_tmp_var, save_tmp_var,
316         finalize_nesting_tree_1): Likewise.
317         * tree-outof-ssa.c (insert_copy_on_edge,
318         insert_backedge_copies): Likewise.
319         * tree-profile.c (tree_gen_edge_profiler,
320         tree_gen_ic_profiler): Likewise.
321         * tree-scalar-evolution.c (scev_const_prop): Likewise.
322         * tree-sra.c (sra_build_assignment): Likewise.
323         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
324         * tree-ssa-math-opts.c (insert_reciprocals,
325         execute_cse_sincos_1): Likewise.
326         * tree-tailcall.c (adjust_accumulator_values,
327         adjust_return_value): Likewise.
328         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
329         * tree-vect-transform.c (vect_create_data_ref_ptr,
330         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
331         vect_create_epilog_for_reduction, vectorizable_reduction,
332         vectorizable_call, vectorizable_conversion,
333         vectorizable_assignment, vectorizable_operation,
334         vectorizable_type_demotion, vect_gen_widened_results_half,
335         vect_permute_store_chain, vectorizable_store,
336         vect_setup_realignment, vect_permute_load_chain,
337         vectorizable_load, vectorizable_condition,
338         vect_create_cond_for_align_checks): Likewise.
339         * tree-vrp.c (build_assert_expr_for): Likewise.
341 2007-03-08  Ian Lance Taylor  <iant@google.com>
343         * tree-vrp.c: Include "intl.h".
344         (usable_range_p): New static function.
345         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
346         overflowed values, juts set *strict_overflow_p.
347         (compare_values): Only return -2 if one of the operands is not a
348         constant.
349         (compare_ranges): Call usable_range_p.
350         (compare_range_with_value): Likewise.
351         (vrp_evaluate_conditional_warnv): Rename from
352         vrp_evaluate_conditional.  Make static.  Change all callers.
353         (vrp_evaluate_conditional): New function.
354         (simplify_div_or_mod_using_ranges): Issue warning about reliance
355         on signed overflow.
356         (simplify_abs_using_ranges): Likewise.
357         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
358         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
359         within_stmt parameter.
360         * tree-ssa-propagate.c (fold_predicate_in): Update call to
361         vrp_evaluate_conditional.
362         * tree-ssa-threadedge.c
363         (record_temporary_equivalences_from_stmts_at_dest): Change
364         simplify parameter to take a second tree parameter.
365         (simplify_control_stmt_condition): Likewise.
366         (thread_across_edge): Likewise.
367         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
368         (thread_across_edge): Likewise.
369         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
371 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
373         * config/i386/i386.h (TARGET_SAHF): New define.
374         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
375         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
376         (x86_sahf): New global variable.
377         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
378         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
379         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
380         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
381         for 64-bit.
382         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
383         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
384         when expanding fcomi/sahf based tests.
385         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
386         expanding sahf based alternative. Emit sahf based sequence when
387         optimizing for code size.
388         * config/i386/i386.md (x86_sahf_1): Do not disable for
389         TARGET_64BIT, enable for TARGET_SAHF. 
391 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
393         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
394         spurious whitespace from error message.
396 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
398         PR c++/30852
399         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
401 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
403         * c-decl.c (grokdeclarator): Disable warnings for anonymous
404         bitfields.
405         * tree-sra.c (instantiate_element): Propagate disabled warnings
406         from the element itself to the created variable.
408 2007-03-07  Richard Henderson  <rth@redhat.com>
410         PR target/30848
411         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
412         silently fix up the stack in the case of a missing register.
414 2007-03-07  Paul Brook  <paul@codesourcery.com>
416         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
418 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
420         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
421         New.
422         (phase1_vrs): Use them.
423         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
424         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
425         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
426         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
427         __gnu_Unwind_Restore_WMMXC if required.
428         (_Unwind_VRS_Pop): Implement iWMMXt support.
429         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
430         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
431         gnu_Unwind_Save_WMMXC): Define.
433 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
435         * config/vxworks.h (vxworks_override_options): Declare.
436         (VXWORKS_OVERRIDE_OPTIONS): Use it.
437         * config/vxworks.c: Include target.h and toplev.h.
438         (vxworks_override_options): New function.
439         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
441 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
443         * config/s390/s390.c (override_options): Don't emit an error when
444         -mstack-size is used without providing -mstack-guard.
445         (s390_emit_prologue): Choose stack_guard value automatically if not
446         provided via command line.
447         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
449 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
451         * config/i386/i386.c (output_set_got): Add a GOT initialization
452         sequence for VxWorks PIC.
453         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
454         around labels as well as symbols.  Use gotoff_operand instead
455         of local_symbolic_operand.
456         (legitimize_pic_address): Use gotoff_operand instead of
457         local_symbolic_operand.  Use @GOT accesses for labels as
458         well as symbols.
459         (ix86_output_addr_diff_elt): Use PC-relative rather than
460         GP-relative offsets for VxWorks PIC.
461         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
462         no_new_pseudos.  Check whether the returned register is op0.
463         * config/i386/i386.md (tablejump): Use PC-relative rather than
464         GP-relative offsets for VxWorks PIC.
465         * config/i386/predicates.md (gotoff_operand): New predicate.
467 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
469         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
470         before defining.
471         * config/vxworks-dummy.h: New file.
472         * config/i386/i386.h: Include it.
474 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
476         * dwarf2out.c (is_inlined_entry_point): New
477         (add_high_low_attributes): Emit DW_AT_entry_pc along with
478         DW_AT_ranges if the first subblock is the entry point.
480 2007-03-06  David Daney  <ddaney@avtrex.com>
482         * doc/install.texi (mips-*-*): Change recommended binutils
483         version.
485 2007-03-06  Anatoly Sokolov <aesok@post.ru>
487         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
488         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162 
489         devices.
490         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
491         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
493 2007-03-06  Jan Hubicka  <jh@suse.cz>
495         * errors.h (warning, error, fatal, internal_error): Mark as cold.
496         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
497         are hot.
498         (probably_cold_bb_p): Cold functions are cold.
499         (probably_never_executed_bb_p): Cold functions are cold.
500         (tree_bb_level_predictions): Predict calls to cold functions as not
501         taken.
502         (compute_function_frequency): Check hot/cold attributes.
503         * function.h (function_frequency): Update comments.
504         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
505         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
506         (c_common_att): Add cold and hot.
508         * doc/extend.texi (hot,cold attributes): Document.
510 2007-03-06  Andrew Haley  <aph@redhat.com>
512         * function.c (expand_function_end): Move blockage to just after we
513         emit the label for the naked return from the function.
515 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
517         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
518         before redefining.
520 2007-03-06  Jan Hubicka  <jh@suse.cz>
522         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
523         loaded for constant large models.  Non-large 64bit PIC can do.
524         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
525         * cmodel.h: Add LARGE PIC.
526         * i386.md (UNSPEC_PLTOFF): New.
527         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
528         needed.
529         (*call_1_rex64): Disable for large models.
530         (*call_1_rex64_large): New.
531         (*call_value_1_rex64): Disable for large models.
532         (*call_value_1_rex64_large): New.
533         (set_rip_rex4): New.
534         (set_got_offset_rex64): New.
535         * predicates.md (constant_call_address_operand): For large model
536         constant calls are not possible.
537         * i386-protos.h (construct_plt_address): Declare.
538         * i386.c (override_options): Accept large models.
539         (ix86_expand_prologue): Expand large PIC GOT pointer load.
540         (legitimate_constant_p): Add new UNSPECs.
541         (legitimate_pic_operand_p): Likewise.
542         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
543         (legitimize_pic_address): Do easy RIP relative way for TLS only for
544         non-large model.
545         (output_pic_addr_const): Add PLTOFF.
546         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
547         (ix86_expand_move): Legitimize pic address when in PIC mode.
548         (construct_plt_address): New function.
549         (ix86_expand_call): Offload the address to register and use GOT pointer
550         for large model.
551         * invoke.texi (mcmodel=large): Update documentation.
553 2007-03-06  Richard Henderson  <rth@redhat.com>
555         * config/i386/i386.c (x86_use_leave, x86_push_memory,
556         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
557         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
558         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
559         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
560         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
561         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix, 
562         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
563         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
564         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves, 
565         x86_partial_reg_dependency, x86_memory_mismatch_stall, 
566         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
567         x86_sse_partial_reg_dependency, x86_sse_split_regs, 
568         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
569         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
570         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
571         x86_schedule, x86_use_bt, x86_pad_returns): Merge into ...
572         (ix86_tune_features): ... here.  New array.
573         (x86_cmove, x86_use_xchgb, x86_cmpxchg, x86_cmpxchg8b,  
574         x86_xadd, x86_bswap): Merge into ...
575         (ix86_arch_features): ... here.  New array.
576         (x86_3dnow_a): Remove.
577         (x86_accumulate_outgoing_args): Make static.
578         (x86_arch_always_fancy_math_387): Make static.
579         (ix86_tune_mask, ix86_arch_mask): Move ...
580         (override_options): ... to local variables here.  Apply the
581         appropriate mask to each element of ix86_arch_features and
582         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
583         as were done in the old macros.
584         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
585         * config/i386/i386.h (x86_use_leave, x86_push_memory,
586         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
587         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
588         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
589         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
590         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
591         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
592         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
593         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
594         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
595         x86_partial_reg_dependency, x86_memory_mismatch_stall,
596         x86_accumulate_outgoing_args, x86_prologue_using_move,
597         x86_epilogue_using_move, x86_decompose_lea,
598         x86_arch_always_fancy_math_387, x86_shift1,
599         x86_sse_partial_reg_dependency, x86_sse_split_regs,
600         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,        
601         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
602         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
603         x86_use_incdec, x86_pad_returns, x86_bswap,
604         x86_partial_flag_reg_stall): Remove.
605         (enum ix86_tune_indices): New.
606         (ix86_tune_features): New.
607         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
608         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
609         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
610         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
611         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
612         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
613         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
614         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
615         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
616         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
617         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
618         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
619         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
620         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
621         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
622         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
623         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
624         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
625         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
626         TARGET_EXT_80387_CONSTANTS): Use it.
627         (enum ix86_arch_indices): New.
628         (ix86_arch_features): New.
629         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
630         TARGET_BSWAP): Use it.
631         (ix86_tune_mask, ix86_arch_mask): Remove.
633 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
635         PR bootstrap/31020
636         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
637         Define using $${sysroot_headers_suffix}.
638         * configure: Regenerate.
639         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
640         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
641         defined.
642         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
643         * gcc.c (print_sysroot_headers_suffix): New.
644         (option_map): Include --print-sysroot-headers-suffix.
645         (display_help): Mention -print-sysroot-headers-suffix.
646         (process_command): Handle -print-sysroot-headers-suffix.
647         (do_spec_1): Append multilib directory to include-fixed path if
648         sysroot suffixes in use.
649         (main): Handle -print-sysroot-headers-suffix.
650         * Makefile.in (start.encap): Don't depend on xlimits.h
651         (xlimits.h): Remove.
652         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
653         limits.h for each multilib in fixinc_list.
654         (fixinc_list, s-fixinc_list): New.
655         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
656         generate them for each multilib in fixinc_list.
657         (stmp-fixproto): Use include-fixed.  Run fixproto for each
658         multilib in fixinc_list.
659         (mostlyclean): Don't remove xlimits.h.
660         (clean): Remove include-fixed.
661         (real-install-headers-tar, real-install-headers-cpio,
662         real-install-headers-cp): Don't copy include, only include-fixed.
663         (install-mkheaders): Depend on fixinc_list.  Don't depend on
664         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
665         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
666         SYSTEM_HEADER_DIR setting in mkheaders.conf.
668 2007-03-06  Jan Hubicka  <jh@suse.cz>
670         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
671         NANs easilly.
673 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
675         * configure.ac: Allow tm_file to contain build-directory files.
676         * configure: Regenerate.
677         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
678         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
679         * config/m68k/print-sysroot-suffix.sh: New file.
681 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
683         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
684         of pic_offset_table_rtx if reload_completed.
685         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
686         PIC_OFFSET_TABLE_REGNUM.
687         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
688         return true.
689         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
690         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
692 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
694         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
695         functions that call eh_return.
697 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
699         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
700         functions that need a constant pool.
702 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
704         PR target/28181
705         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
706         (m68k_preferred_reload_class): Likewise.
707         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
708         (SECONDARY_RELOAD_CLASS): Define.
709         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
710         (LIMIT_RELOAD_CLASS): Delete.
711         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
712         registers from storing bytes.
713         (m68k_secondary_reload_class): New function.
714         (m68k_preferred_reload_class): Likewise.
716 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
718         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
719         leaf functions.
720         (m68k_expand_prologue): Likewise.
722 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
724         * config/m68k/m68k-protos.h (output_sibcall): Declare.
725         (mips_expand_epilogue): Add a bool parameter.
726         (m68k_legitimize_sibcall_address): Declare.
727         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
728         (m68k_expand_epilogue): Add a parameter to select between sibling
729         and normal epilogues.  Only generate a return for the latter.
730         (m68k_ok_for_sibcall_p): New function.
731         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
732         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
733         (sibcall_value, *sibcall_value): Likewise.
734         (*call, *call_value): Require !SIBLING_CALL_P.
735         (epilogue): Update call to m68k_expand_epilogue.
736         (sibcall_epilogue): New pattern.
737         * config/m68k/predicates.md (const_call_operand): Say that this
738         predicate applies to sibling calls too.
739         (sibcall_operand): New predicate.
741 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
743         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
744         alternatives as movsi_cf.
745         (movsf_cf_hard): Add commentary.
747 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
748             Richard Sandiford  <richard@codesourcery.com>
750         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
751         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
752         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
753         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
754         as being live on exit from an interrupt function.
755         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
756         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
757         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
758         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
759         (m68k_interrupt_function_p): Globalize.
760         (m68k_compute_frame_layout): Remove reverse mask code.
761         (m68k_emit_movem, m68k_set_frame_related): New functions.
762         (m68k_output_function_prologue): Delete in favor of...
763         (m68k_expand_prologue): ...this new function.
764         (m68k_output_function_epilogue): Delete in favor of...
765         (m68k_expand_epilogue): ...this new function.
766         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
767         functions.
768         (print_operand): Handle %?.
769         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
770         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
771         (prologue, epilogue): New patterns.
772         (return): Turn into a define_expand.
773         (*return): New pattern, derived from old "return" pattern.  Use rte
774         rather than rts for interrupt functions.  Only use rtd if the pop
775         count is nonzero.
776         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
777         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
778         (link, *link, unlink, *unlink, load_got): Likewise.
780 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
782         PR target/23482
783         PR target/17114
784         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
785         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
786         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
787         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
788         and m68k_matches_u_p.
789         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
790         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
791         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
792         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
793         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
794         (REG_STRICT_P): New macro.
795         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
796         PCREL_GENERAL_OPERAND_OK.
797         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
798         m68k_legitimate_base_reg_p.
799         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
800         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
801         (PIC_CASE_VECTOR_ADDRESS): Update comment.
802         * config/m68k/m68k.c (m68k_address): New structure.
803         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
804         (m68k_decompose_index, m68k_legitimate_constant_address_p)
805         (m68k_jump_table_ref_p, m68k_decompose_address)
806         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
807         (m68k_matches_u_p): New functions.
808         (print_operand_address): Rewrite to use m68k_decompose_index.
810 2007-03-05  David Taylor  <dtaylor@emc.com>
812         * gcc.c: Correct copyright date in --version output.
814 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
816         * pa.md: In unamed move patterns, disparge copies between general
817         and floating point registers using '?' modifier.  Don't include 'f'
818         constraint for register preferences in DImode, SImode, HImode and
819         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
820         Remove constraints for copies between general and floating registers
821         in soft-float DFmode pattern.
822         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
823         floating register.
824         (movsf): Likewise. 
826 2007-03-05  Mike Stump  <mrs@apple.com>
828         * c-common.c (targetcm): Add.   
829         * c-opts.c (c_common_handle_option): Handle language specific
830         target options.
831         * opts.c (handle_option): Verify language for target options, if
832         any are given.
833         * opth-gen.awk: Add CL_LANG_ALL.
834         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
835         (TARGETCM_INITIALIZER): Add.
836         * target.h (struct gcc_targetcm): Add.
837         (targetcm): Add.
838         * targhooks.c (default_handle_c_option): Add.
839         * targhooks.h (default_handle_c_option): Add.
840         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
842         * config/darwin.opt (iframework): Add.
843         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
844         * config/darwin-c.c (handle_c_option): Add.
845         (TARGET_HANDLE_C_OPTION): Add.
846         (targetcm): Add.
847         * doc/invoke.texi (Darwin Options): Add -iframework.
849 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
851         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
852         conversion.
854 2007-03-05  Ian Lance Taylor  <iant@google.com>
856         * c.opt (fgnu89-inline): New option.
857         * c-opts.c (c_common_post_options): Set default value for
858         flag_gnu89_inline.
859         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
860         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
861         inline functions.
862         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
863         (grokdeclarator, start_function): Likewise.
864         * c-cppbuiltin.c (c_cpp_builtins): Define either
865         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
866         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
867         (C Dialect Options): Document -fgnu89-inline.
868         * doc/extend.texi (Function Attributes): Explain what the
869         gnu_inline attribute does.
870         * doc/cpp.texi (Common Predefined Macros): Document
871         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
873 2007-03-05  Ian Lance Taylor  <iant@google.com>
875         PR tree-optimization/31034
876         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
877         half-range if the other side is an overflow infinity.
879 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
881         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
882         (bfin*-linux-uclibc*): New configuration.
883         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
884         defining.
885         * config/bfin/linux.h: New file.
886         * config/bfin/libgcc-bfin.ver: New file.
887         * config/bfin/t-bfin-uclinux: New file.
888         * config/bfin/t-bfin-linux: New file.
889         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
890         (TARGET_OS_CPP_BUILTINS): New macro.
892 2007-03-05  Richard Guenther  <rguenther@suse.de>
894         * fold-const.c (fold_binary): Remove duplicate folding
895         of comparison of non-null ADDR_EXPR against null.
897 2007-03-05  Richard Guenther  <rguenther@suse.de>
898             Dorit Nuzman  <dorit@il.ibm.com>
900         PR tree-optimization/26420
901         * tree-vectorizer.c (vectorize_loops): Bail out early if there
902         are no loops in the function.  Only print the number of
903         vectorized loops if it is greater than zero or we are supposed
904         to print information about unvectorized loops.
906 2007-03-05  Revital Eres  <eres@il.ibm.com>
908         * gcc.dg/var-expand1.c: New test.
909         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
910         when an accumulator is expanded.
912 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
914         PR other/30465
915         * c-common.c (convert_and_check): Don't give warnings for
916         conversion if 'expr' already overflowed.
917         
918 2007-03-04  Roger Sayle  <roger@eyesopen.com>
920         PR middle-end/30744
921         * fold-const.c (fold_comparison): Enforce type consistency when
922         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
924 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
926         * tree-ssa-address.c (create_mem_ref): Do not put an expression
927         containing a cast to the base of TARGET_MEM_REF.
929 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
931         * tree.c (tree_contains_struct_check_failed): Remove spurious
932         whitespace from error message.
934 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
936         PR target/30406
937         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
938         instead of precision.
940 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
941             Nathan Sidwell  <nathan@codesourcery.com>
943         * emit-rtl.c (find_auto_inc): New.
944         (try_split): recreate REG_INC notes,
945         Use regular for loops rather than whiles.
947 2007-03-03  Andreas Schwab  <schwab@suse.de>
949         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
950         * configure: Regenerate.
952 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
954         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
955         flag_rounding_math, not flag_unsafe_math_optimizations.
957         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
958         fold_build2.
959         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
960         alpha_fold_vector_minmax): Likewise.
961         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
962         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
964 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
966         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
967         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
968         if the lhs has side-effects.
969         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
971 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
973         * config/i386/i386.h (TUNEMASK): Remove define.
974         (ARCHMASK): Remove define.
975         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
976          Use ix86_arch_mask variable instead of ARCHMASK.
977         * config/i386/i386.c (override_options): Ditto.
978         (standard_80387_constant_p): Ditto.
980 2007-03-02  Ian Lance Taylor  <iant@google.com>
982         Used signed infinities in VRP.
983         * tree-vrp.c (uses_overflow_infinity): New static function.
984         (supports_overflow_infinity): New static function.
985         (make_overflow_infinity): New static function.
986         (negative_overflow_infinity): New static function.
987         (positive_overflow_infinity): New static function.
988         (is_negative_overflow_infinity): New static function.
989         (is_positive_overflow_infinity): New static function.
990         (is_overflow_infinity): New static function.
991         (overflow_infinity_range_p): New static function.
992         (compare_values_warnv): New function split out of compare_values.
993         (compare_value): Call it.
994         (set_value_range_to_nonnegative): Add overflow_infinity
995         parameter.  Change caller.
996         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
997         Change callers.
998         (vrp_expr_computes_nonzero): Likewise.
999         (compare_ranges, compare_range_with_value): Likewise.
1000         (compare_name_with_value, compare_names): Likewise.
1001         (vrp_evaluate_conditional): Likewise.
1002         (set_value_range): Handle infinity
1003         (vrp_operand_equal_p, operand_less_p): Likewise.
1004         (extract_range_from_assert): Likewise.
1005         (vrp_int_const_binop): Likewise.
1006         (extract_range_from_binary_expr): Likewise.
1007         (extract_range_from_unary_expr): Likewise.
1008         (extract_range_from_comparison): Likewise.
1009         (extract_range_from_expr): Likewise.
1010         (dump_value_range): Likewise.
1011         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1012         (test_for_singularity): Likewise.
1013         (vrp_int_const_binop): Remove inline qualifier.
1014         (adjust_range_with_scev): Add comment.
1015         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1017 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
1019         * tree-ssa-structalias.c (could_have_pointers): Tidy.
1020         (get_constraint_for): Likewise.
1021         (do_structure_copy): Likewise.
1022         (find_func_aliases): Fix references to MODIFY_EXPR.
1023         (intra_create_variable_infos): Tidy.
1024         * tree-ssa-operands.c (add_virtual_operand): Add argument
1025         IS_CALL_SITE.
1026         When adding members of alias sets, if IS_CALL_SITE is true and
1027         the symbol is not call-clobbered, skip it.
1028         Adjust all callers.
1030 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1032         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1033         entry by means of emit_insn_at_entry.
1035 2007-03-02  Richard Henderson  <rth@redhat.com>
1037         * expr.h (promoted_input_arg): Remove decl.
1038         * function.c (promoted_input_arg): Merge into ...
1039         * combine.c (setup_incoming_promotions): ... only caller.
1040         Rearrange to avoid double loop.
1042 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1043             Peter Bergner  <bergner@vnet.ibm.com>
1044             Janis Johnson  <janis187@us.ibm.com>
1046         * config/rs6000/dfp.md: New file.
1047         * config/rs6000/rs6000.md: Include dfp.md.
1048         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1049         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1050         and TDmode decimal float modes in FP registers.
1051         (num_insns_constant): Likewise.
1052         (rs6000_legitimate_offset_address_p): Likewise.
1053         (rs6000_legitimize_address): Likewise.
1054         (rs6000_legitimize_reload_address): Likewise.
1055         (rs6000_legitimate_address): Likewise.
1056         (rs6000_emit_move): Likewise.
1057         (function_arg_boundary): Likewise.
1058         (function_arg_advance): Likewise.
1059         (rs6000_darwin64_record_arg_recurse): Likewise.
1060         (function_arg): Likewise.
1061         (rs6000_gimplify_va_arg): Likewise.
1062         (rs6000_split_multireg_move): Likewise.
1063         (rs6000_output_function_epilogue): Likewise.
1064         (rs6000_output_function_epilogue): Likewise.
1065         (rs6000_register_move_cost): Likewise.
1066         (rs6000_function_value): Likewise.
1067         (rs6000_libcall_value): Likewise.
1069 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1071         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1073 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1075         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1076         Use $MULTIDIR to choose between the kernel and RTP headers,
1077         and use $WIND_BASE and $WIND_USR to locate them.
1079 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1081         * config/i386/i386.c (override_options): Put initialization of
1082         ix86_tune_mask and ix86_arch_mask to the correct place.
1084 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1085             Michael Meissner  <michael.meissner@amd.com>
1087         PR target/31019
1088         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1089         (ARCHMASK): Define.
1090         (TARGET_CMOVE): Use ARCHMASK.
1091         (TARGET_CMPXCHG): Ditto.
1092         (TARGET_CMPXCHG8B): Ditto.
1093         (TARGET_XADD): Ditto.
1094         (TARGET_BSWAP): Ditto.
1095         * config/i386/i386.c (ix86_tune_mask): New global variable.
1096         (ix86_arch_mask): Ditto.
1097         (override_options): Initialize ix86_tune_mask and
1098         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1099         target_flags.
1101 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1103         PR 30992
1104         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1106 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
1108         * target.h (init_dwarf_reg_sizes_extra): New target hook.
1109         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1110         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1111         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1112         hook.
1113         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1114         rs6000_init_dwarf_reg_sizes_extra): New.
1115         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1116         SPE register high parts.
1118 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1120         * Makefile.in: Add install-pdf target as
1121         copied from automake v1.10 rules.
1122         * configure.ac: Add install-pdf to target list.
1123         * configure: Regenerate.
1125 2007-03-01  Paul Brook  <paul@codesourcery.com>
1127         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1128         modes to LDRD for DImode.
1129         (output_move_double): Fixup out of range ldrd/strd.
1130         (vfp_secondary_reload_class): Rename...
1131         (coproc_secondary_reload_class): ... to this.  Add wb argument.
1132         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1133         coproc_secondary_reload_class for CLASS_IWMMXT.
1134         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1135         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1137 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
1139         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
1140         factor by the estimated number of iterations.
1141         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1142         prefetch latency.
1144         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1145         decode_caches_intel, detect_caches_intel): New functions.
1146         (host_detect_local_cpu): Use detect_caches_amd and
1147         detect_caches_intel.
1149 2007-03-01  Richard Henderson  <rth@redhat.com>
1151         * expr.c (emit_move_complex_push): Export.
1152         (emit_move_complex_parts): Split out from ...
1153         (emit_move_complex): ... here.
1154         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1155         * config/i386/i386.md (movcdi): New.
1157 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
1159         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1160         size of mode1 to check for tieable modes in MMX case.
1162 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
1164         * Makefile.in (rtlanal.o): Depend on tree.h.
1165         * rtl.h (offset_within_section_p, split_const): Declare.
1166         * rtlanal.c: Include tree.h.
1167         (offset_within_block_p): New function, taken from
1168         mips_offset_within_object_p.
1169         (split_const): New function, taken from mips_split_const.
1170         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1171         Declare.
1172         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1173         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1174         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1175         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1176         (m68k_illegitimate_symbolic_constant_p): New function.
1177         * config/m68k/m68k.md (movsi): Remove misleading predicates.
1178         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1179         symbolic constant that might be outside the symbol's section,
1180         move the symbol first and then add the offset.
1181         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1182         Override.
1183         * config/mips/mips.c (mips_split_const): Delete.
1184         (mips_offset_within_object_p): Delete.
1185         (mips_symbolic_constant_p): Use offset_within_section_p and
1186         split_const instead of mips_offset_within_object_p and
1187         mips_split_const.
1188         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1189         (mips_legitimize_const_move, print_operand_reloc)
1190         (mips_dangerous_for_la25_p): Use split_const instead of
1191         mips_split_const.
1193 2007-02-28  Eric Christopher  <echristo@apple.com>
1195         * Makefile.in (install-include-dir): Don't rm -rf include.
1197 2007-02-28  Richard Guenther  <rguenther@suse.de>
1199         PR middle-end/30364
1200         * fold-const.c (fold_binary): Do not associate expressions
1201         with more than one variable for integer types that do not wrap.
1203 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
1205         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1206         Delete, and replace with...
1207         (fold_builtin_call_array): This.  Update callers to use it.
1208         * fold-const.c (fold_build_call_list): Delete, and replace with...
1209         (fold_build_call_array): This.
1210         (fold_build_call_list_initializer): Delete, and replace with...
1211         (fold_build_call_array_initializer): This.
1212         * tree.h: Update declarations to reflect above changes.
1214         * c-typeck.c (build_function_call): Store converted arguments
1215         in a stack-allocated array instead of building a list.
1216         (convert_arguments): Store arguments in the array passed in as an
1217         argument, and return the actual number of arguments.
1218         * c-format.c: (check_function_format): Pass arguments in an
1219         array instead of a list.
1220         * c-common.c (check_function_nonnull): Likewise.
1221         (check_function_sentinel): Likewise.
1222         (check_function_arguments): Likewise.
1223         * c-common.h: Update declarations to reflect above changes.
1225 2007-02-28  Jan Hubicka  <jh@suse.cz>
1227         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1228         PRED_NEGATIVE_RETURN): Update outcomes.
1230 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1232         * calls.c (emit_library_call_value_1): Handle partial registers
1233         correctly when building up CALL_INSN_FUNCTION_USAGE.
1235 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1237         * pa/predicates.md (move_src_operand): Allow zero for mode.
1238         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1239         move pattern.
1241 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
1243         PR target/30970
1244         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1245         *movv2df_internal): Enable pattern only for valid operand
1246         combinations.
1247         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1248         tie only 128bit modes. For MMX registers, tie only 64bit modes.
1250 2007-02-27  Mike Stump  <mrs@apple.com>
1252         * config/darwin-crt3.c: Avoid compilation when compiling for a
1253         kext multilib.
1255 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
1257         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1258         FIXED_INCLUDE_DIR.
1259         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1260         for fixed headers and limits.h.
1261         (install-include-dir, install-headers-tar, install-headers-cpio,
1262         install-headers-cp, real-install-headers-tar,
1263         real-install-headers-cpio, real-install-headers-cp): Handle
1264         include-fixed as well as include.
1265         (install-mkheaders): Don't install files that go only in include
1266         not include-fixed.
1267         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1268         from GCC_INCLUDE_DIR.
1269         * gcc.c (process_command): Remove special -BstageN/ handling.
1270         (do_spec_1): Add include-fixed directories.
1272 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1274         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1275         _smulsi3_highpart.
1276         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1277         New functions.
1278         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1279         patterns.
1281 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
1283         * c-common.c (get_priority): Add check for
1284         SUPPORTS_INIT_PRIORITY.
1286 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1288         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1290         * config/bfin/bfin.c: Include "cfglayout.h".
1291         (MAX_LSETUP_DISTANCE): New macro.
1292         (struct loop_info): New members incoming, incoming_src and
1293         incoming_dest.  Delete member predecessor.
1294         (length_for_loop): New function.
1295         (bfin_optimize_loop): Handle more different loop structures.
1296         (bfin_discover_loop): Rework detection of predecessor blocks by
1297         examining incoming edges.
1298         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1299         bfin_reorg_loops.
1300         (bfin_reorder_loops): New function.
1301         (bfin_reorg_loops): Use these three new functions.
1303         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1304         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1305         (CONSTRAINT_LEN): Add entry for 'q'.
1306         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1307         Add 'q' constraints.
1308         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1309         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1311         * config/bfin/bfin.md (add_with_carry): New pattern.
1312         (s_or_u, su_optab, su_modifier): New code macros/attrs.
1313         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1314         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1315         support unsigned multiplies too.  Removed incorrect commutativity from
1316         operand 1 constraint where appropriate.
1317         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1318         patterns.
1319         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1320         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1321         New patterns.
1322         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1323         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1324         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1325         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1326         usmulhisi_hh_huh): New patterns.
1328         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1329         lshifthi3): Fix output template to use half reg for operand 2.
1331         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1332         instead of R2.
1334         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1336 2007-02-27  Andreas Schwab  <schwab@suse.de>
1338         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1340 2007-02-27  Jan Hubicka  <jh@suse.cz>
1342         * predict.c (last_basic_block_p): Remove.
1343         (tree_estimate_probability): Update return heuristic for commonized
1344         return blocks.
1346 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1348         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1350 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1352         * doc/include/gcc-common.texi (versionsubtitle): New macro.
1353         * doc/cpp.texi: Standardize title page.
1354         * doc/cppinternals.texi: Likewise.
1355         * doc/gcc.texi: Standardize title page, remove version number
1356         from copyright page.
1357         * doc/gccint.texi: Likewise.
1358         * doc/install.texi: Standardize title page, add table of
1359         contents.
1361 2007-02-26  Jan Hubicka  <jh@suse.cz>
1363         * predict.def: Set outcomes according to more recent results.
1364         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1365         Remove dead predictors.
1366         * predict.c (return_prediction): Fix pasto.
1368 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1370         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1371         change; avoid a memory leak when returning early.
1373 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
1375         * c-decl.c (static_ctors): Move to c-common.c.
1376         (static_dtors): Likewise.
1377         (finish_function): Use c_record_cdtor_fn.
1378         (build_cdtor): Move to c-common.c.
1379         (c_write_global_declarations): Use c_build_cdtor_fns.
1380         * c-common.h (static_ctors): Declare.
1381         (static_dtors): Likewise.
1382         (c_record_cdtor_fn): Likewise.
1383         (c_build_cdtor_fns): Likewise.
1384         * c-common.c (static_ctors): New variable.
1385         (static_dtors): Likewise.
1386         (c_record_cdtor_fn): New function.
1387         (build_cdtor): Move from c-decl.c
1388         (c_build_cdtor_fns): New function.
1390         * output.h (assemble_addr_to_section): Declare.
1391         (get_cdtor_priority_section): Likewise.
1392         * varasm.c (assemble_addr_to_section): New function.
1393         (get_cdtor_priority_section): Likewise.
1394         (default_named_section_asm_out_destructor): Use them.
1395         (destor_dtor_section_asm_out_destructor): Likewise.
1396         (default_named_section_asm_out_constructor): Likewise.
1397         (default_ctor_section_asm_out_constructor): Likewise.
1398         * config.gcc (*-*-vxworks*): Include vxworks.o.
1399         * config/t-vxworks (vxworks.o): New target.
1400         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1401         (TARGET_ASM_CONSTRUCTOR): Define.
1402         (TARGET_ASM_DESTRUCTOR): Likewise.
1403         (vxworks_asm_out_constructor): Declare.
1404         (vxworks_asm_out_destructor): Likewise.
1406         * c-common.c (get_priority): Check that we have not just an
1407         INTEGER_CST, but an integer constant with integeral type.
1409 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
1411         PR tree-optimization/30938
1412         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1413         use &dt[nargs-1] instead of &dt[nargs] in the call to
1414         vect_is_simple_use().
1416 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
1418         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1419         from register elimination as PRE_MODIFY / POST_MODIFY increments.
1420         Do not attempt to handle MEM inside auto-inc expressions.
1421         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1422         of a register modified by an auto-inc expression.  However, do handle
1423         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1424         (elimination_effects): Prohibit elimination of a register modified
1425         by an auto-inc expression.  Disable register elimination rules whose
1426         target register is modified by an auto-inc expression with variable
1427         increment.
1429 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
1431         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1432         off-by-one error.
1433         (array_at_struct_end_p): New function.
1434         (idx_infer_loop_bounds): Use it.
1435         (estimate_numbers_of_iterations_loop): Export.
1436         * predict.c (predict_loops): Use estimated_loop_iterations_int.
1437         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1438         (tree_estimate_probability): Call record_loop_exits.
1439         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1440         (estimated_loop_iterations, estimated_loop_iterations_int,
1441         estimated_loop_iterations_tree): New functions.
1442         (analyze_siv_subscript_cst_affine,
1443         compute_overlap_steps_for_affine_1_2,
1444         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1445         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1446         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1447         (PRED_LOOP_ITERATIONS_GUESSED): New.
1448         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1449         * cfgloop.h (estimate_numbers_of_iterations_loop,
1450         estimated_loop_iterations_int): Declare.
1452 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
1454         * doc/extend.texi: Document optional priority argument to
1455         constructors and destructors.
1456         * tree.c (init_priority_for_decl): Adjust GTY markers.
1457         (init_ttree): Use priority-info hash functions for
1458         init_priority_for_decl.
1459         (tree_map_eq): Rename to ...
1460         (tree_map_base_eq): ... this.
1461         (tree_map_marked_p): Rename to ...
1462         (tree_map_base_marked_p): ... this.
1463         (tree_map_base_hash): New function.
1464         (decl_init_priority_lookup): Rework.
1465         (decl_fini_priority_lookup): New function.
1466         (decl_priority_info): New function.
1467         (decl_init_priority_insert): Use it.
1468         (decl_fini_priority_insert): Likewise.
1469         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1470         hierarchy.
1471         (decl_restrict_base_insert): Likewise.
1472         (decl_debug_expr_insert): Likewise.
1473         (decl_value_expr_lookup): Likewise.
1474         (decl_value_expr_insert): Likewise.
1475         * tree.h (priority_type): New type.
1476         (decl_init_priority_lookup): Use priority_type.
1477         (decl_fini_priority_lookup): New function.
1478         (decl_init_priority_insert): Use priority_type.
1479         (decl_fini_priority_insert): New function.
1480         (DECL_HAS_INIT_PRIORITY): Tweak comments.
1481         (DECL_INIT_PRIORITY): Likewise.
1482         (SET_DECL_INIT_PRIORITY): Add comment.
1483         (DECL_FINI_PRIORITY): New macro.
1484         (SET_DECL_FINI_PRIORITY): Likewise.
1485         (DEFAULT_INIT_PRIORITY): Document.
1486         (MAX_INIT_PRIORITY): Likewise.
1487         (MAX_RESERVED_INIT_PRIORITY): Likewise.
1488         (tree_map_base): New type.
1489         (tree_map_base_eq): New function.
1490         (tree_map_base_hash): Likewise.
1491         (tree_map_base_marked_p): Likewise.
1492         (tree_map): Inherit from tree_map_base.
1493         (tree_map_eq): Make it a macro.
1494         (tree_map_marked_p): Likewise.
1495         (tree_int_map): Inherit from tree_map_base.
1496         (tree_int_map_eq): Make it a macro.
1497         (tree_int_map_hash): Likewise.
1498         (tree_int_map_marked_p): Likewise.
1499         (tree_priority_map): New type.
1500         (tree_priority_map_eq): New macro.
1501         (tree_priority_map_hash): Likewise.
1502         (tree_priority_map_marked_p): Likewise.
1503         * varasm.c (emults_decl): Adjust for refactoring of tree_map
1504         hierarchy.
1505         (emutls_common_1): Likewise.
1506         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1507         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
1508         of tree_map hierarchy.
1509         * tree-cfg.c (move_stmt_r): Likewise.
1510         (new_label_mapper): Likewise.
1511         * c-tree.h (c_expand_body): Move to ...
1512         * c-common.h (c_expand_body): ... here.
1513         * c-decl.c (c_expand_body): Move to ...
1514         * c-common.c (c_expand_body): ... here.
1515         (c_common_attribute_table): Allow 1 argument for the constructor
1516         and destructor attributes.
1517         (get_priority): New function.
1518         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
1519         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
1521 2007-02-24  Jan Hubicka  <jh@suse.cz>
1523         PR middle-end/30509
1524         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
1526 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
1527             Jan Hubicka  <jh@suse.cz>
1529         PR target/30778
1530         * i386.c (counter_mode): New function.
1531         (expand_set_or_movmem_via_loop): Use it.
1532         (expand_movmem_epilogue): Likewise; fix pasto.
1533         (ix86_expand_movmem): Do emit guard even for constant counts.
1534         (ix86_expand_setmem): Likewise.
1536 2007-02-25  Nick Clifton  <nickc@redhat.com>
1538         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
1539         (JUMP_TABLES_IN_TEXT_SECTION): Define.
1541 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
1543         PR target/30770
1544         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
1545         count argument with 0x10, not with 0x16.
1546         (expand_setmem_epilogue): Ditto.
1548 2007-02-24  Mike Stump  <mrs@apple.com>
1550         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
1551         symbols.
1553 2007-02-24  Richard Guenther  <rguenther@suse.de>
1555         PR middle-end/30951
1556         * fold-const.c (fold_binary): Fold x +- CST op x for
1557         EQ_EXPR and NE_EXPR.
1559 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1561         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
1563 2007-02-24  Jan Hubicka  <jh@suse.cz>
1565         * cgraphunit.c (decide_is_function_needed): Honor
1566         -fkeep-inline-functions.
1568 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1570         * builtins.c (fold_builtin_modf): New.
1571         (fold_builtin_2): Use it.
1573 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1575         * loop-iv.c (implies_p): Detect additional cases where A implies B.
1576         (determine_max_iter): Take additional LOOP arg; all callers changed.
1577         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
1578         one using simplifications.
1579         (simplify_using_initial_values): Return if the expression becomes
1580         invalid due to altered regs.
1582 2007-02-23  DJ Delorie  <dj@redhat.com>
1584         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
1586 2007-02-23  Mike Stump  <mrs@apple.com>
1588         * tlink.c (scan_linker_output): Parse linker messages from
1589         darwin9's linker better.
1591 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
1593         PR debug/29614
1594         * varpool.c (varpool_assemble_pending_decls):  Set
1595         varpool_last_needed_node to null.
1597 2007-02-23  DJ Delorie  <dj@redhat.com>
1599         * config/i386/i386.c (ix86_data_alignment): Don't specify an
1600         alignment bigger than the object file can handle.
1602 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
1604         PR target/30825
1605         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
1606         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
1607         (*movsf_1): Penalize MMX moves.
1609 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
1611         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
1612         2^32-1 or more times unless flag_unsafe_loop_optimizations.
1614         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
1616 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1618         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
1619         (fold_builtin_1): Use them.
1620         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1621         BUILT_IN_SIGNIFICAND.
1623 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1625         * config/i386/i386.c (bdesc_1arg): Initialize
1626         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
1627         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
1628         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
1629         and IX86_BUILTIN_MOVSLDUP.
1631 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
1633         PR rtl-optimization/30841
1634         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
1636 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1638         * builtins.c (fold_builtin_frexp): New.
1639         (fold_builtin_2): Use it.
1641 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
1643         * doc/invoke.texi (Spec Files): Document getenv spec function.
1645         * gcc.c (getenv_spec_function): New function.
1646         (static_spec_functions): Add it.
1647         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
1648         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
1649         header files.
1651 2007-02-22  Michael Matz  <matz@suse.de
1653         PR c++/29433
1654         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
1655         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
1657 2007-02-22  Ian Lance Taylor  <iant@google.com>
1659         PR debug/30898
1660         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
1661         (mem_loc_descriptor): Call it.
1663 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
1664             Ira Rosen  <irar@il.ibm.com>
1666         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
1668 2007-02-22  Ira Rosen  <irar@il.ibm.com>
1670         PR tree-optimization/30843
1671         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
1672         stores only after all the group is vectorized.
1674 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
1676         PR tree-optimization/30858
1677         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
1678         in the reduction cycle have a single use in the loop.
1679         * tree-vectorizer.h (relevant): Add documentation.
1681 2007-02-20  Mike Stump  <mrs@apple.com>
1683         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
1684         * configure: Regenerate.
1686 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1688         Change the defaults of some parameters and options.
1689         * config/spu/spu-protos.h (spu_optimization_options): Declare.
1690         * config/spu/spu.c (spu_optimization_options): Add.
1691         (spu_override_options): Change params in spu_optimization_options.
1692         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
1694         Register 127 is only 16 byte aligned when used as a frame pointer.
1695         * config/spu/spu-protos.h (spu_init_expanders): Declare.
1696         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
1697         HARD_FRAME_POINTER_REGNUM.
1698         (spu_legitimate_address):  Use regno_aligned_for_reload.
1699         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
1700         aligned when frame_pointer_needed is true.
1701         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
1702         to 8 bits.
1703         * config/spu/spu.h (INIT_EXPANDERS): Define.
1705         Make sure shift and rotate instructions have valid immediate operands.
1706         * config/spu/predicates.md (spu_shift_operand): Remove.
1707         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
1708         * config/spu/constraints.md (W, O): Extend range.
1709         * config/spu/spu.md (umask, nmask): Define.
1710         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
1711         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
1712         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
1713         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
1714         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
1715         (lshr<mode>3_reg):  Fix rtl description.
1717         Make sure mulhisi immediate operands are valid.
1718         * config/spu/predicates.md (imm_K_operand): Add.
1719         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
1721         Generate constants using fsmbi and andi.
1722         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
1723         (print_operand, spu_split_immediate, classify_immediate,
1724         fsmbi_const_p): Handle IC_FSMBI2.
1726         Correctly handle a CONST_VECTOR containing symbols.
1727         * config/spu/spu.c (print_operand): Handle HIGH correctly.
1728         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
1729         (immediate_load_p): Allow symbols that use 2 instructions to create.
1730         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
1731         with symbols when flag_pic is set.
1732         (const_vector_immediate_p): New.
1733         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
1734         accept a CONST_VECTOR with symbols.
1735         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
1736         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
1737         correctly.
1738         * config/spu/spu.md (high, low): Delete.
1739         (low_<mode>): Define.
1741         Remove INTRmode and INTR_REGNUM, which didn't work.
1742         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
1743         of INTR_REGNUM.
1744         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
1745         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
1746         peephole2 pattern): Don't use INTR or 131.
1747         (movintrcc): Delete.
1748         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
1749         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
1750         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
1751         (UNSPEC_SET_INTR): Add.
1752         * config/spu/spu-modes.def (INTR): Remove.
1754         More accurate warnings about run-time relocations.
1755         * config/spu/spu.c (reloc_diagnostic): Test in_section.
1757         Correctly warn about immediate arguments to specific intrinsics.
1758         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
1759         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
1760         the instruction predicate.
1762         Fix tree check errors with latest update.
1763         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
1764         CALL_EXPR_ARG.
1765         (spu_expand_builtin): Use CALL_EXPR_FN.
1767         Add missing specific intrinsics.
1768         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
1769         si_bislede.
1770         * config/spu/spu_internals.h: Ditto.
1772         Fix incorrect operand modifiers.
1773         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
1774         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
1776         Optimize one case of zero_extend of a vec_select.
1777         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
1779         Accept any immediate for hbr.
1780         * config/spu/spu.md (hbr):  Change s constraints to i.
1782 2007-02-21  Paul Brook  <paul@codesourcery.com>
1784         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
1785         condexec_count when skipping USE and CLOBBER.
1787 2007-02-21  Nick Clifton  <nickc@redhat.com>
1789         * common.opt (Warray-bounds): Add Warning attribute.
1790         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
1791         Likewise.
1792         (fsized-zeroes): Add Optimization attribute.
1793         (fsplit-wide-types, ftree-scev-cprop): Likewise.
1794         * c.opt (Wc++0x-compat): Add Warning attribute.
1796 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
1798         PR middle-end/30761
1799         * reload1.c (eliminate_regs_in_insn): In the single_set special
1800         case, attempt to re-recognize the insn before falling back to
1801         having reload fix it up.
1803 2007-02-20  Eric Christopher  <echristo@gmail.com>
1805         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
1806         Rewrite accordingly.
1807         (frv_read_iacc_argument): Ditto.
1808         (frv_expand_set_builtin): Take a call instead of arglist, update for
1809         above changes.
1810         (frv_expand_unop_builtin): Ditto.
1811         (frv_expand_binop_builtin): Ditto.
1812         (frv_expand_cut_builtin): Ditto.
1813         (frv_expand_binopimm_builtin): Ditto.
1814         (frv_expand_voidbinop_builtin): Ditto.
1815         (frv_expand_int_void2arg): Ditto.
1816         (frv_expand_prefetches): Ditto.
1817         (frv_expand_voidtriop_builtin): Ditto.
1818         (frv_expand_voidaccop_builtin): Ditto.
1819         (frv_expand_load_builtin): Ditto.
1820         (frv_expand_store_builtin): Ditto.
1821         (frv_expand_mdpackh_builtin): Ditto.
1822         (frv_expand_mclracc_builtin): Ditto.
1823         (frv_expand_mrdacc_builtin): Ditto.
1824         (frv_expand_mwtacc_builtin): Ditto.
1825         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
1826         calls for above.
1828 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
1830         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
1831         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
1832         cmpb instruction.
1833         (HAVE_GAS_DFP): Check for assembler support of decimal floating
1834         point instructions.
1835         * configure: Regenerate.
1836         * config.in: Regenerate.
1837         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
1838         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
1839         masks to power6 and power6x and to POWERPC_MASKS.
1840         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1841         _ARCH_PWR6.
1842         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
1843         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
1844         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1845         Access PROTOTYPE as variable, not mask.
1847 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
1849         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
1850         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
1851         * combine.c (adjust_for_new_dest): Use it.
1852         * postreload.c (reload_combine): Likewise.
1854 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
1856         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
1857         notes on an insn with multiple sets, even if single_set returns
1858         non-NULL for that insn.
1860 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1862         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
1863         scalbn and scalbln.
1865 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
1867         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
1868         if user didn't pass it.
1869         * config/i386/darwin.h (CC1_SPEC): Likewise.
1870         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
1871         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
1872         -mmacosx-version-min.
1874 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1875             Uros Bizjak  <ubizjak@gmail.com>
1877         * optabs.h (enum optab_index): Add new OTI_scalb.
1878         (scalb_optab): Define corresponding macro.
1879         * optabs.c (init_optabs): Initialize scalb_optab.
1880         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
1881         patterns.
1882         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
1883         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
1884         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
1885         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
1886         flag_unsafe_math_optimizations is set.
1888         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
1889         to implement scalbf, scalb and scalbl built-ins as inline x87
1890         intrinsics.
1892 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1893             DJ Delorie <dj@redhat.com>
1895         PR other/30824
1896         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
1897         (diagnostic_report_diagnostic): ... here, and turn them into real
1898         errors. If warnings are inhibited, no need to do anything.
1900 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
1902         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
1903         better code generation.
1905 2007-02-20  Ben Elliston  <bje@au.ibm.com>
1907         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
1909 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
1911         * config/alpha/alpha.c, config/alpha/alpha.md,
1912         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
1913         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
1914         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
1915         config/arm/lib1funcs.asm: Follow spelling conventions.
1917         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
1918         config/fr30/fr30.md, config/i386/i386.h,
1919         config/iq2000/iq2000.h, config/iq2000/predicates.md,
1920         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
1921         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1922         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
1923         config/rs6000/altivec.md, config/rs6000/rs6000.c,
1924         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
1925         config/sparc/sparc.c, config/sparc/sparc.h,
1926         config/sparc/sparc.md, config/spu/constraints.md,
1927         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
1928         conventions.
1930 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
1932         PR target/29943
1933         * varasm.c (use_blocks_for_decl_p): Return false for decls with
1934         alias attribute.
1936 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
1938         * doc/invoke.texi (-ftree-lrs): Remove.
1940 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
1942         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
1943         NULL.
1945 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
1947         * config/ia64/ia64.c (ia64_expand_builtin): Use the
1948         new CALL_EXPR_FN macro for retrieving the function
1949         declaration of the input expression.
1951 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1953         * c.opt (Waddress): New.
1954         * common.opt (Walways-true): Delete.
1955         (Wstring-literal-comparison): Delete.
1956         * doc/invoke.texi (Warning Options): Delete -Walways-true and
1957         -Wstring-literal-comparison. Add -Waddress.
1958         (Waddress): New.
1959         (Walways-true): Delete.
1960         (Wstring-literal-comparison): Delete.
1961         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
1962         consistently instead of -Walways-true in example.
1963         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
1964         * c-typeck.c (parser_build_binary_op): Replace
1965         -Wstring-literal-comparison and -Walways-true with -Waddress.
1966         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
1967         with -Waddress.
1969 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
1971         * tree-cfg.c (dump_function_to_file): Be prepared for functions
1972         without DECL_STRUCT_FUNCTION initialized.
1974 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
1976         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
1977         due to calls to functions taking pointers as parameters.
1979 2007-02-19  Richard Henderson  <rth@redhat.com>
1981         PR debug/29558
1982         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
1983         in memory.
1985 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1987         * config/s390/s390.c (s390_call_saved_register_used,
1988         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
1989         accessed to the new scheme.
1991 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1993         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
1994         (cris_print_index, cris_print_operand, cris_print_operand_address)
1995         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
1996         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
1997         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
1998         GET_CODE () == xxx.
1999         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2000         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2001         GO_IF_LEGITIMATE_ADDRESS): Ditto.
2002         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2003         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2004         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2005         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2006         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2007         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2008         (uminsi3, call, call_value): Ditto.
2009         (define_split: indir_to_reg_split, unnamed): Ditto.
2011 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
2013         PR tree-optimization/30975
2014         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2015         wrong assert.
2017 2007-02-18  Eric Christopher  <echristo@gmail.com>
2019         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2020         Remove use of arglist.
2021         (mips_expand_builtin): Remove use of arglist, pass in expr.
2022         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2023         (mips_expand_builtin_movtf): Ditto.
2024         (mips_expand_builtin_compare): Ditto.
2026 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2028         * tree-sra.c (sra_build_assignment): Replace assertion
2029         checking with a comment explaining why it can't be done.
2031 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2033         PR middle-end/30833
2034         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2035         during CALL_EXPR representation conversion.
2036         * tree-ssa-propagate.c (set_rhs): Likewise.
2038 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2040         * tree-sra.c (sra_build_assignment): Disable assertion checking
2041         for now.
2043 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2045         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2046         instead of calling build2 with a GIMPLE_MODIFY_STMT.
2047         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2048         Likewise.
2049         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2050         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
2051         gimplify_init_ctor_eval_range, gimple_push_cleanup,
2052         gimplify_omp_for, gimplify_omp_atomic_pipeline,
2053         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2054         force_gimple_operand): Likewise.
2055         * ipa-cp.c (constant_val_insert): Likewise.
2056         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2057         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2058         perfect_nestify): Likewise.
2059         * langhooks.c (lhd_omp_assignment): Likewise.
2060         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2061         lower_copyprivate_clauses, lower_send_clauses,
2062         lower_send_shared_vars, expand_parallel_call,
2063         expand_omp_for_generic, expand_omp_for_static_nochunk,
2064         expand_omp_for_static_chunk, expand_omp_sections,
2065         lower_omp_single_copy, lower_omp_for_lastprivate,
2066         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2067         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2068         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2069         Likewise.
2071 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
2073         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2074         config/sh/sh.md: Follow spelling conventions.
2076         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2077         config/frv/predicates.md: Follow spelling conventions.
2079         * config/m68k/linux-unwind.h: Fix a comment typo.
2080         * target.h: Follow spelling conventions.
2082 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2084         PR rtl-optimization/28173
2085         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
2086         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2087         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2088         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2089         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2091 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2093         * builtins.c (fold_builtin_load_exponent): New.
2094         (fold_builtin_2): Use it.
2096 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
2098         PR rtl-optimization/30773
2099         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2100         if we fail to attach a REG_EQUIV note.
2102 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
2103             Roger Sayle  <roger@eyesopen.com>
2105         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2107 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2109         * calls.c (initialize_argument_information): Pass original EXP
2110         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
2111         code to split complex arguments here, as part of initializing the
2112         ARGS array.
2113         (expand_call): Remove code that builds a list of arguments and
2114         inserts implicit arguments into it.  Instead, just count how many
2115         implicit arguments there will be so we can determine the size of
2116         the ARGS array, and let initialize_argument_information do the work.
2117         (split_complex_values): Delete unused function.
2119 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2121         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2123 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2125         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2126         for arg pointer based indexed addressing.
2128 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2130         * config/ia64/ia64.h, config/ia64/ia64.md,
2131         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2132         spelling conventions.
2134 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2136         * config/m68k/m68k.c (split_di): New.
2137         * config/m68k/m68k-protos.h: Declare split_di.
2138         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2139           Improve predicate handling and split constant shifts.
2141 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2143         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2144         parameter for register bitfield operations, general predicates
2145         cleanup
2147 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2149         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2150         * config/m68k/linux-unwind.h: New file.
2152 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2154         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2155         config/i386/athlon.md, config/ia64/ia64.md,
2156         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2157         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2158         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2159         tree-ssa-loop-niter.c, tree-vect-analyze.c,
2160         tree-vect-transform.c: Fix comment typos.
2162 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
2164         * sched-deps.c (find_insn_list): Remove.
2165         * sched-int.h: Remove the prototype for find_insn_list.
2167 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
2169         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2170         to linker.
2171         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2172         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2173         darwin_rs6000_override_options.
2174         (C_COMMON_OVERRIDE_OPTIONS): Expect
2175         darwin_macosx_version_min to be non-NULL always.
2176         (TARGET_C99_FUNCTIONS): Likewise.
2177         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2178         (DARWIN_MINVERSION_SPEC): New.
2179         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2180         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2181         to cc1*.
2182         (DARWIN_MINVERSION_SPEC): New.
2183         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2184         value.
2185         * config/darwin-c.c (darwin_cpp_builtins): Expect
2186         darwin_macosx_version_min to be non-NULL always.
2188         * config/rs6000/rs6000.c: Clean up trailing whitespace.
2190 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
2192         * config/i386/i386.h (x86_use_xchgb): New.
2193         (TARGET_USE_XCHGB): New macro.
2194         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2195         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2196         Split after reload into bswaphi for shifts of 8.
2197         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2198         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2199         or when optimizing for size.
2201 2007-02-16  Richard Guenther  <rguenther@suse.de>
2202             Christian Bruel  <christian.bruel@st.com>
2204         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2205         DECLs but prefer SSA_NAMEs over DECLs.
2207 2007-02-16  Richard Guenther  <rguenther@suse.de>
2209         * tree-flow-inline.h (single_imm_use_p): Remove.
2210         (zero_imm_uses_p): Likewise.
2211         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2212         instead of single_imm_use_p.
2213         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2214         zero_imm_uses_p.
2216 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2218         PR other/27843
2219         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2220         nested double- and backquotes.
2222 2007-02-15  Roger Sayle  <roger@eyesopen.com>
2224         PR middle-end/30391
2225         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
2226         should be unreachable.
2227         (build2_stat): Allow construction of MODIFY_EXPR at any time.
2228         For the time being redirect GIMPLE_MODIFY_STMT to the new
2229         (renamed) build_gimple_modify_stmt_stat.
2230         (build2_gimple_stat): Rename to...
2231         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2232         Always build a GIMPLE_MODIFY_STMT node.
2233         * tree.h (build2_gimple, build2_gimple_stat): Delete.
2234         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2235         declarations.
2237         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2238         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2239         * tree-complex.c (set_component_ssa_name, expand_complex_move,
2240         expand_complex_div_wide): Likewise.
2241         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2242         * tree-ssa-loop-im.c (schedule_sm): Likewise.
2243         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2244         * tree-ssa-loop-manip.c (create_iv): Likewise.
2245         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2246         abs_replacement): Likewise.
2247         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2248         realify_fake_stores): Likewise.
2250         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2251         node rather than a GIMPLE_MODIFY_STMT node.
2252         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2253         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2254         Likewise.
2255         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2256         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2257         GIMPLE_MODIFY_STMT.
2259 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2261         PR middle-end/30433
2262         * fold-const.c (fold_comparison): Add back the
2263         folding of constant complex comparisions.
2265 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2267         PR middle-end/30729
2268         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2269         effects unknown to this function, return early.
2271 2007-02-15  Ian Lance Taylor  <iant@google.com>
2273         * lower-subreg.c (move_eh_region_note): New static function.
2274         (resolve_simple_move): Call it.
2275         (decompose_multiword_subregs): Track blocks for which we resolve a
2276         simple move which is also a control flow insn.  Pass them to
2277         find_many_sub_basic_blocks.
2278         (pass_lower_subreg): Add TODO_verify_flow.
2279         (pass_lower_subreg2): Likewise.
2281 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2282             Brooks Moses  <brooks.moses@codesourcery.com>
2283             Lee Millward  <lee.millward@codesourcery.com>
2285         * tree.h (enum tree_code_class): Add tcc_vl_exp.
2286         (VL_EXP_CLASS_P): New.
2287         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2288         TREE_CODE_LENGTH.
2289         (TREE_OPERAND_CHECK_CODE): Likewise.
2290         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2291         (TREE_RTL_OPERAND_CHECK): Likewise.
2292         (tree_operand_check_failed): Make second parameter the whole tree
2293         instead of its code.  Fixed callers.
2294         (VL_EXP_CHECK): New.
2295         (TREE_OPERAND_LENGTH): New.
2296         (VL_EXP_OPERAND_LENGTH): New.
2297         (CALL_EXPR_FN): New.
2298         (CALL_EXPR_STATIC_CHAIN): New.
2299         (CALL_EXPR_ARGS): New.
2300         (CALL_EXPR_ARG): New.
2301         (call_expr_nargs): New.
2302         (CALL_EXPR_ARGP): New.
2303         (build_nt_call_list): Declare.
2304         (build_vl_exp_stat): Declare.
2305         (build_vl_exp): New.
2306         (build_call_list): Declare.
2307         (build_call_nary): Declare.
2308         (build_call_valist): Declare.
2309         (build_call_array): Declare.
2310         (call_expr_arg): Declare.
2311         (call_expr_argp): Declare.
2312         (call_expr_arglist): Declare.
2313         (fold_build_call_list): Declare.
2314         (fold_build_call_list_initializer): Declare.
2315         (fold_call_expr): Declare to replace fold_builtin.
2316         (fold_builtin_fputs): Update to agree with modified definition.
2317         (fold_builtin_strcpy): Likewise.
2318         (fold_builtin_strncpy): Likewise.
2319         (fold_builtin_memory_chk): Likewise.
2320         (fold_builtin_stxcpy_chk): Likewise.
2321         (fold_builtin_strncpy_chk): Likewise.
2322         (fold_builtin_next_arg): Likewise.
2323         (fold_build_call_expr): Declare.
2324         (fold_builtin_call_list): Declare.
2325         (fold_builtin_call_valist): Declare.
2326         (build_call_expr): Declare.
2327         (validate_arglist): Update to agree with modified definition.
2328         (tree_operand_length): New.
2329         (call_expr_arg_iterator): New.
2330         (init_call_expr_arg_iterator): New.
2331         (next_call_expr_arg): New.
2332         (first_call_expr_arg): New.
2333         (more_call_expr_args_p): New.
2334         (FOR_EACH_CALL_EXPR_ARG): New.
2336         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2337         and tcc_gimple_stmt.
2338         (tree_code_size): Update documentation.  Use sizeof (tree) rather
2339         than sizeof (char *).
2340         (tree_size): Likewise.  Add case for tcc_vl_exp.
2341         (tree_node_structure): Add case for tcc_vl_exp.
2342         (contains_placeholder_p): Likewise.
2343         (substitute_in_expr): Likewise.
2344         (substitute_placeholder_in_expr): Likewise.
2345         (stabilize_reference_1): Likewise.
2346         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
2347         to diagnose breakage of this interface for constructing CALL_EXPRs.
2348         (build_nt): Add similar assertion here.
2349         (build_nt_call_list): New.
2350         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2351         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2352         TREE_CODE_LENGTH.
2353         (get_callee_fndecl): Use new CALL_EXPR accessors.
2354         (tree_operand_check_failed): Change parameters to pass entire node
2355         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2356         (process_call_operands): New.
2357         (build_vl_exp_stat): New.
2358         (build_call_list): New.
2359         (build_call_nary): New.
2360         (build_call_valist): New.
2361         (build_call_array): New.
2362         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2363         (call_expr_arglist): New.
2365         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2366         tcc_vl_exp instead of a fixed-size tcc_expression.
2368         * doc/c-tree.texi (CALL_EXPR): Document new representation and
2369         accessors for CALL_EXPRs.
2370         (AGGR_INIT_EXPR): Likewise.
2372 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2373             Brooks Moses  <brooks.moses@codesourcery.com>
2374             Lee Millward  <lee.millward@codesourcery.com>
2376         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2377         (expand_builtin_nonlocal_goto): Change parameter to be entire
2378         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
2379         (expand_builtin_prefetch): Likewise.
2380         (expand_builtin_classify_type): Likewise.
2381         (mathfn_built_in): Return NULL_TREE instead of 0.
2382         (expand_errno_check): Use new CALL_EXPR accessors.
2383         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2384         Return NULL_RTX instead of 0.
2385         (expand_builtin_mathfn_2): Likewise.
2386         (expand_builtin_mathfn_3): Likewise.
2387         (expand_builtin_interclass_mathfn): Likewise.
2388         (expand_builtin_sincos): Likewise.
2389         (expand_builtin_cexpi): Likewise.
2390         (expand_builtin_int_roundingfn): Likewise.
2391         (expand_builtin_int_roundingfn_2): Likewise.
2392         (expand_builtin_pow): Likewise.
2393         (expand_builtin_powi): Likewise.
2394         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2395         of arglist, fixing callers appropriately.  Use new CALL_EXPR
2396         accessors and constructors.  Return NULL_RTX instead of 0.
2397         (expand_builtin_strstr): Likewise.
2398         (expand_builtin_strchr): Likewise.
2399         (expand_builtin_strrchr): Likewise.
2400         (expand_builtin_strpbrk): Likewise.
2401         (expand_builtin_memcpy): Likewise.
2402         (expand_builtin_mempcpy): Likewise.
2403         (expand_builtin_mempcpy_args): New.
2404         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2405         (expand_builtin_memmove_args): New.
2406         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2407         (expand_movstr): Likewise.
2408         (expand_builtin_strcpy): Likewise.
2409         (expand_builtin_strcpy_args): New.
2410         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2411         (expand_builtin_strncpy): Likewise.
2412         (expand_builtin_memset): Likewise.
2413         (expand_builtin_memset_args): New.
2414         (expand_builtin_bzero): Similarly to expand_builtin_memset.
2415         (expand_builtin_memcmp): Likewise.
2416         (expand_builtin_strcmp): Likewise.
2417         (expand_builtin_strncmp): Likewise.
2418         (expand_builtin_strcat): Likewise.
2419         (expand_builtin_strncat): Likewise.
2420         (expand_builtin_strspn): Likewise.
2421         (expand_builtin_strcspn): Likewise.
2422         (expand_builtin_args_info): Likewise.
2423         (expand_builtin_va_start): Likewise.
2424         (gimplify_va_arg_expr): Likewise.
2425         (expand_builtin_va_end): Likewise.
2426         (expand_builtin_va_copy): Likewise.
2427         (expand_builtin_frame_address): Likewise.
2428         (expand_builtin_alloca): Likewise.
2429         (expand_builtin_bswap): Likewise.
2430         (expand_builtin_unop): Likewise.
2431         (expand_builtin_fputs): Likewise.
2432         (expand_builtin_expect): Likewise.
2433         (expand_builtin_fabs): Likewise.
2434         (expand_builtin_copysign): Likewise.
2435         (expand_builtin_printf): Likewise.
2436         (expand_builtin_fprintf): Likewise.
2437         (expand_builtin_sprintf): Likewise.
2438         (expand_builtin_init_trampoline): Likewise.
2439         (expand_builtin_signbit): Likewise.
2440         (expand_builtin_fork_or_exec): Likewise.
2441         (expand_builtin_sync_operation): Likewise.
2442         (expand_builtin_compare_and_swap): Likewise.
2443         (expand_builtin_lock_test_and_set): Likewise.
2444         (expand_builtin_lock_release): Likewise.
2445         (expand_builtin): Likewise.
2446         (builtin_mathfn_code): Likewise.
2448         (fold_builtin_constant_p): Pass call arguments individually instead
2449         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2450         accessors and constructors.  Return NULL_TREE instead of 0.
2451         (fold_builtin_expect): Likewise.
2452         (fold_builtin_classify_type): Likewise.
2453         (fold_builtin_strlen): Likewise.
2454         (fold_builtin_nan): Likewise.
2455         (integer_valued_real_p): Likewise.
2456         (fold_trunc_transparent_mathfn): Likewise.
2457         (fold_fixed_mathfn): Likewise.
2458         (fold_builtin_cabs): Likewise.
2459         (fold_builtin_sqrt): Likewise.
2460         (fold_builtin_cbrt): Likewise.
2461         (fold_builtin_cos): Likewise.
2462         (fold_builtin_cosh): Likewise.
2463         (fold_builtin_tan): Likewise.
2464         (fold_builtin_sincos): Likewise.
2465         (fold_builtin_cexp): Likewise.
2466         (fold_builtin_trunc): Likewise.
2467         (fold_builtin_floor): Likewise.
2468         (fold_builtin_ceil): Likewise.
2469         (fold_builtin_round): Likewise.
2470         (fold_builtin_int_roundingfn): Likewise.
2471         (fold_builtin_bitop): Likewise.
2472         (fold_builtin_bswap): Likewise.
2473         (fold_builtin_logarithm): Likewise.
2474         (fold_builtin_hypot): Likewise.
2475         (fold_builtin_pow): Likewise.
2476         (fold_builtin_powi): Likewise.
2477         (fold_builtin_exponent): Likewise.
2478         (fold_builtin_memset): Likewise.
2479         (fold_builtin_bzero): Likewise.
2480         (fold_builtin_memory_op): Likewise.
2481         (fold_builtin_bcopy): Deleted; call site changed to invoke
2482         fold_builtin_memory_op directly.
2483         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2484         (fold_builtin_strncpy): Likewise.
2485         (fold_builtin_memcmp): Likewise.
2486         (fold_builtin_strcmp): Likewise.
2487         (fold_builtin_strncmp): Likewise.
2488         (fold_builtin_signbit): Likewise.
2489         (fold_builtin_copysign): Likewise.
2490         (fold_builtin_isascii): Likewise.
2491         (fold_builtin_toascii): Likewise.
2492         (fold_builtin_isdigit): Likewise.
2493         (fold_builtin_fabs): Likewise.
2494         (fold_builtin_abs): Likewise.
2495         (fold_builtin_fmin_fmax): Likewise.
2496         (fold_builtin_carg): Likewise.
2497         (fold_builtin_classify): Likewise.
2498         (fold_builtin_unordered_cmp): Likewise.
2500         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
2501         New functions split out from fold_builtin_1.
2502         (fold_builtin_n): New.
2503         (fold_builtin_varargs): New.
2504         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
2505         instead.
2506         (fold_call_expr): New.
2507         (build_function_call_expr): Rewrite to use new helper function.
2508         (fold_builtin_call_list): New.
2509         (build_call_expr): New.
2510         (fold_builtin_call_valist): New.
2511         (rewrite_call_expr): New.
2512         (validate_arg): New.
2513         (validate_arglist): Change parameter to be entire CALL_EXPR instead
2514         of an arglist.  Change return type to bool.  Use new CALL_EXPR
2515         accessors.
2517         (fold_builtin_strstr):  Pass call arguments individually instead
2518         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2519         accessors and constructors.  Return NULL_TREE instead of 0.
2520         (fold_builtin_strchr): Likewise.
2521         (fold_builtin_strrchr): Likewise.
2522         (fold_builtin_strpbrk): Likewise.
2523         (fold_builtin_strcat): Likewise.
2524         (fold_builtin_strncat): Likewise.
2525         (fold_builtin_strspn): Likewise.
2526         (fold_builtin_strcspn): Likewise.
2527         (fold_builtin_fputs): Likewise.
2528         (fold_builtin_next_arg): Likewise.
2529         (fold_builtin_sprintf): Likewise.
2531         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
2532         NULL_RTX instead of 0.
2533         (expand_builtin_memory_chk): Likewise.
2534         (maybe_emit_chk_warning): Likewise.
2535         (maybe_emit_sprintf_chk_warning): Likewise.
2537         (fold_builtin_object_size): Pass call arguments individually instead
2538         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2539         accessors and constructors.  Return NULL_TREE instead of 0.
2540         (fold_builtin_memory_chk): Likewise.
2541         (fold_builtin_stxcpy_chk): Likewise.
2542         (fold_builtin_strncpy_chk): Likewise.
2543         (fold_builtin_strcat_chk): Likewise.
2544         (fold_builtin_strcat_chk): Likewise.
2545         (fold_builtin_strncat_chk): Likewise.
2546         (fold_builtin_sprintf_chk): Likewise.
2547         (fold_builtin_snprintf_chk): Likewise.
2548         (fold_builtin_printf): Likewise.
2549         (fold_builtin_vprintf): Likewise.
2551         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
2552         constructors.
2553         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
2554         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2555         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
2556         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
2557         (fold_unary): Likewise.
2558         (fold_binary): Likewise.
2559         (fold_ternary): Remove CALL_EXPR case, since they are no longer
2560         ternary expressions.
2561         (fold): Add logic for tcc_vl_exp.
2562         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
2563         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2564         (fold_build3_stat): Add assertion to flag broken interface for
2565         constructing CALL_EXPRs.
2566         (fold_build_call_list): New.
2567         (fold_build_call_list_initializer): New.
2568         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
2569         constructors.
2570         (fold_strip_sign_ops): Likewise.
2572 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2573             Brooks Moses  <brooks.moses@codesourcery.com>
2574             Lee Millward  <lee.millward@codesourcery.com>
2576         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
2577         accessors and dump arguments explicitly.
2579         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
2580         TREE_CODE_LENGTH.
2581         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
2582         explicitly.
2583         (print_call_name): Use new CALL_EXPR accessors.
2585         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
2586         CALL_EXPR arguments explicitly instead of as a list.  Use
2587         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2589         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
2590         (vrp_visit_stmt): Likewise.
2592         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
2593         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
2594         TREE_CODE_LENGTH.
2595         (force_move_till_expr): Likewise.
2597         * targhooks.c (default_external_stack_protect_fail): Use
2598         build_call_expr instead of build_function_call_expr.
2599         (default_hidden_stack_protect_fail): Likewise.
2601         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
2602         build the call.
2604         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
2605         and walk arguments explicitly.
2607         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
2608         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2609         (expand_simple_operations): Likewise.
2610         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
2612         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
2613         of TREE_CODE_LENGTH.
2614         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
2616         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
2617         instead of TREE_CODE_LENGTH.
2619         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
2620         (tree_ic_transform): Likewise.
2621         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
2622         parameter instead of arglist.  Fix callers.
2623         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
2624         (tree_stringops_transform): Likewise.
2625         (tree_indirect_call_to_profile): Likewise.
2626         (tree_stringops_values_to_profile): Likewise.
2628         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
2629         (eliminate_tail_call): Likewise.
2631         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
2633         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2634         Use TREE_OPERAND_LENGTH and generalize to handle any number of
2635         operands.
2636         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
2638         * omp-low.c (build_omp_barrier): Use build_call_expr.
2639         (lower_rec_input_clauses): Likewise.
2640         (lower_reduction_clauses): Likewise.
2641         (expand_parallel_call): Likewise.
2642         (maybe_catch_exception): Likewise.
2643         (expand_omp_for_generic): Likewise.
2644         (expand_omp_for_static_nochunk): Likewise.
2645         (expand_omp_sections): Likewise.
2646         (lower_omp_single_simple): Likewise.
2647         (lower_omp_single_copy): Likewise.
2648         (lower_omp_master): Likewise.
2649         (lower_omp_ordered): Likewise.
2650         (lower_omp_critical): Likewise.
2652         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
2653         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
2655         * tree-gimple.c (is_gimple_call_addr): Fix doc.
2656         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
2657         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
2659         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
2660         and generalize to handle any number of operands.
2661         (chrec_contains_undetermined): Likewise.
2662         (tree_contains_chrecs): Likewise.
2663         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
2665         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
2667         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
2668         fold_call_expr instead of fold_builtin.
2669         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
2670         match declarations there.
2671         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
2672         updates.
2674         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
2675         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2677         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
2678         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
2680         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
2681         accessors.
2683         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
2684         (execute_cse_sincos): Use new CALL_EXPR accessors.
2686         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
2688         * gimple-low.c (lower_function_body): Use build_call_expr.
2689         (lower_builtin_setjmp): Likewise.
2691         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
2692         (set_storage_via_libcall): Likewise.
2693         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
2694         instead of TREE_CODE_LENGTH.
2695         (expand_expr_real_1): Use new CALL_EXPR accessors.
2697         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
2698         generalize to handle any number of operands.
2699         (TB_parent_eq): Likewise.
2701         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
2702         (strip_builtin_expect): Likewise.
2704         * function.c (gimplify_parameters): Use build_call_expr.
2706         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
2707         instead of TREE_CODE_LENGTH.
2709         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
2710         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
2712         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
2713         iterators.
2715         * gimplify.c (build_stack_save_restore): Use build_call_expr.
2716         (gimplify_decl_expr): Likewise.
2717         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
2718         Use new CALL_EXPR iterators.
2719         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
2720         (gimplify_modify_expr_to_memset): Likewise.
2721         (gimplify_variable_sized_compare): Likewise.
2722         (gimplify_omp_atomic_fetch_op): Likewise.
2723         (gimplify_omp_atomic_pipeline): Likewise.
2724         (gimplify_omp_atomic_mutex): Likewise.
2725         (gimplify_function_tree): Likewise.
2727         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
2728         (call_expr_flags): Likewise.
2729         (expand_call): Likewise.
2731         * except.c (expand_builtin_eh_return_data_regno): Pass entire
2732         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
2733         accessors.
2735         * coverage.c (create_coverage): Use build_call_expr.
2737         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
2738         (temp_call_expr_obstack): New.
2739         (pool_copy_list): Delete.
2740         (temp_copy_call_expr): New.
2741         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
2742         CALL_EXPR accessors.  Get rid of special goo for copying argument
2743         lists and use temp_copy_call_expr instead.
2744         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
2745         CALL_EXPR accessors.
2746         (create_expression_by_pieces): Likewise.  Use build_call_array
2747         to construct the result instead of fold_build3.
2748         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
2749         dealing with argument lists.
2750         (init_pre): Remove references to expression_node_pool and
2751         list_node_pool.  Init temp_call_expr_obstack instead.
2752         (fini_pre): Remove references to expression_node_pool and
2753         list_node_pool.
2755         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
2756         and walk arguments explicitly instead of as a list.
2758         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
2759         (mx_register_decls): Likewise.
2760         (mudflap_register_call): Likewise.
2761         (mudflap_finish_file): Likewise.
2763         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
2764         (ipa_callsite_compute_param): Likewise.
2766         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
2767         accessors and constructor.
2769         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
2770         accessors and constructor.
2771         (convert_tramp_reference): Likewise.
2772         (convert_call_expr): Likewise.
2773         (finalize_nesting_tree_1): Likewise.
2775         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
2776         accessors.
2778         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
2780         * tree-inline.c (initialize_inlined_parameters): Pass entire
2781         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
2782         accessors.
2783         (estimate_num_insns_1): Use new CALL_EXPR accessors.
2784         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
2786         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
2787         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2788         (vectorizable_reduction): Likewise.
2789         (vectorizable_call): Use new CALL_EXPR iterators.
2790         (vectorizable_conversion): Use build_call_expr.
2791         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
2792         (vect_gen_widened_results_half): Use build_call_expr.
2793         (vect_setup_realignment): Likewise.
2794         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
2796         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
2797         (pass_through_call): Likewise.
2798         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
2799         fold_builtin.
2801         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
2802         (tree_gen_pow2_profiler): Likewise.
2803         (tree_gen_one_value_profiler): Likewise.
2804         (tree_gen_ic_func_profiler): Likewise.
2805         (tree_gen_average_profiler): Likewise.
2806         (tree_gen_ior_profiler): Likewise.
2808         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
2809         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
2810         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2812         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
2813         of TREE_CODE_LENGTH.
2815         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
2816         of TREE_CODE_LENGTH.
2818         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
2819         constructor.
2820         (convert_to_integer): Likewise.
2822         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
2823         accessors.
2825 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2826             Brooks Moses  <brooks.moses@codesourcery.com>
2827             Lee Millward  <lee.millward@codesourcery.com>
2829         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
2830         accessors.
2831         * config/frv/frv.c (frv_expand_builtin): Likewise.
2832         * config/s390/s390.c (s390_expand_builtin): Likewise.
2834         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
2835         (sparc_expand_builtin): Use new CALL_EXPR accessors.
2837         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
2838         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
2839         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
2840         (ix86_expand_store_builtin): Likewise.
2841         (ix86_expand_unop_builtin): Likewise.
2842         (ix86_expand_unop1_builtin): Likewise.
2843         (ix86_expand_sse_compare): Likewise.
2844         (ix86_expand_sse_comi): Likewise.
2845         (ix86_expand_vec_init_builtin): Likewise.
2846         (ix86_expand_vec_ext_builtin): Likewise.
2847         (ix86_expand_vec_set_builtin): Likewise.
2848         (ix86_expand_builtin): Use new CALL_EXPR accessors.
2850         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
2851         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
2853         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
2854         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
2855         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
2857         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
2858         build_call_expr.
2859         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2860         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
2861         arglist.  Use new CALL_EXPR accessors.  Fix callers.
2862         (altivec_expand_abs_builtin): Likewise.
2863         (rs6000_expand_binop_builtin): Likewise.
2864         (altivec_expand_predicate_builtin): Likewise.
2865         (altivec_expand_lv_builtin): Likewise.
2866         (spe_expand_stv_builtin): Likewise.
2867         (altivec_expand_stv_builtin): Likewise.
2868         (rs6000_expand_ternop_builtin): Likewise.
2869         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
2870         (altivec_expand_st_builtin): Likewise.
2871         (altivec_expand_dst_builtin): Likewise.
2872         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
2873         arglist.  Use new CALL_EXPR accessors.  Fix callers.
2874         (altivec_expand_vec_set_builtin): Likewise.
2875         (altivec_expand_vec_ext_builtin): Likewise.
2876         (altivec_expand_builtin): Use new CALL_EXPR accessors.
2877         (spe_expand_builtin): Likewise.
2878         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
2879         arglist.  Use new CALL_EXPR accessors.  Fix callers.
2880         (spe_expand_evsel_builtin): Likewise.
2881         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
2882         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
2884         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
2885         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
2886         (arm_expand_unop_builtin): Likewise.
2887         (arm_expand_builtin): Use new CALL_EXPR accessors.
2889         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
2890         accessors.
2892         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
2893         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
2894         (bfin_expand_unop_builtin): Likewise.
2895         (bfin_expand_builtin): Use new CALL_EXPR accessors.
2897 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2898             Brooks Moses  <brooks.moses@codesourcery.com>
2899             Lee Millward  <lee.millward@codesourcery.com>
2901         * c-semantics.c (build_stmt): Add internal diagnostic check.
2903         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
2904         accessors.  Print arguments explicitly instead of as a list.
2906         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
2908         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
2909         (c_finish_omp_flish): Likewise.
2911         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
2912         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
2913         instead of TREE_CODE_LENGTH.
2914         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
2915         (c_warn_unused_result): Likewise.
2917 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2919         PR c/26494
2920         * doc/invoke.texi (Warning Options): Remove
2921         -Werror-implicit-function-declaration.
2922         (Wimplicit-function-declaration): Update description.
2923         * opts.c (common_handle_option): Move handling of -Werror=* to...
2924         (enable_warning_as_error): ...here.
2925         * opts.h (enable_warning_as_error): Declare.
2926         * c-decl.c (implicit_decl_warning): Unless
2927         -Wno-implicit-function-declaration is given, emit a pedwarn if
2928         -std=c99 or emit a warning if -Wimplicit-function-declaration.
2929         * c.opt (Wimplicit-function-declaration): Replace
2930         mesg_implicit_function_declaration with
2931         warn_implicit_function_declaration.
2932         * c-opts.c (c_common_handle_option):
2933         -Werror-implicit-function-declaration is exactly equal as
2934         -Werror=implicit-function-declaration.
2935         (set_Wimplicit): Replace mesg_implicit_function_declaration with
2936         warn_implicit_function_declaration.
2937         (c_common_post_options): -Wimplict-function-declaration is enabled
2938         by default by -std=c99, otherwise is disabled by default.
2939         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
2941 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2943         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
2944         DECL on the rhs to a DECL on the lhs for debug info purposes if the
2945         former is ignored but not the latter.
2947 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2949         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
2950         is made and the reference doesn't use the alias set of its type,
2951         do not create the temporary using that type.
2953 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
2955         * jump.c: Remove prototypes for delete_computation and
2956         delete_prior_computation.
2958 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
2960         * jump.c (get_label_after): Delete.
2961         (get_label_before, delete_computation, delete_jump,
2962         delete_prior_computation, follow_jumps): Move...
2963         * reorg.c (delete_computation, delete_prior_computation): ... here...
2964         (get_label_before, delete_jump): ... making these static ...
2965         (follow_jumps): ... and simplifying this since it only runs after
2966         reload.
2967         * rtl.h (get_label_after, get_label_before, delete_jump,
2968         follow_jumps): Delete prototypes.
2970 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
2972         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
2974 2007-02-15  Nick Clifton  <nickc@redhat.com>
2976         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
2977         order to prevent it from being munged by the target.
2979 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
2981         * config/i386/i386.md: Remove misleading comment.
2983 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
2985         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
2986         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
2987         invalid patterns.
2989 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
2991         * tree-sra.c (instantiate_missing_elements): Canonicalize
2992         bit-field types.
2993         (sra_build_assignment): New.
2994         (generate_copy_inout, generate_element_copy,
2995         generate_element_zero, generate_one_element_init): Use it.
2997 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
2999         * tree-sra.c (instantiate_missing_elements): Canonicalize
3000         bit-field types.
3001         (sra_build_assignment): New.
3002         (generate_copy_inout, generate_element_copy,
3003         generate_element_zero, generate_one_element_init): Use it.
3005 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3007         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3008         limbo die nodes.
3010 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
3012         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3013         types as aggregates not scalars.
3014         * function.c (assign_stack_temp_for_type): Likewise.
3016 2007-02-14  Roger Sayle  <roger@eyesopen.com>
3017             Zdenek Dvorak  <dvorakz@suse.cz>
3019         * tree-dump.c (dump_switch_p_1): Require exact match of the option
3020         name.
3022 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
3024         * passes.c (next_pass_1): Clear the next field of the copied
3025         pass structure.
3027 2007-02-14  Richard Henderson  <rth@redhat.com>
3029         * tree-sra.c (early_sra): New.
3030         (decl_can_be_decomposed_p): Deny va_list if early_sra.
3031         (tree_sra_early, pass_sra_early): New.
3032         * tree-pass.h (pass_sra_early): Declare.
3033         * passes.c (init_optimization_passes): Use it.
3035 2007-02-14  Richard Guenther  <rguenther@suse.de>
3037         * flags.h (issue_strict_overflow_warning): Convert to a macro.
3039 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
3041          PR tree-optimization/30771
3042         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3043         also phi nodes.
3044         (vect_analyze_operations): Induction phis can now be marked as
3045         used_in_loop.
3046         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3047         Update documentation accordingly.
3049 2007-02-14  Nick Clifton  <nickc@redhat.com>
3051         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3052         most 3 arguments are supported.
3053         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3055 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
3057         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3058         Ensure dst->current is valid.
3060 2007-02-13  Paul Brook  <paul@codesourcery.com>
3062         * config.gcc: Add arm*-*-uclinux-*eabi.
3063         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3064         (SUBTARGET_EXTRA_LINK_SPEC): Define.
3065         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3066         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3067         (LINK_SPEC): Define.
3068         (LIB_SPEC): Define.
3069         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3070         register.
3071         * config/arm/uclinux-eabi.h: New file.
3072         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3073         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3074         based targets.
3076 2007-02-13  Ian Lance Taylor  <iant@google.com>
3078         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3079         * flags.h (warn_strict_overflow): Declare.
3080         (enum warn_strict_overflow_code): Define.
3081         (issue_strict_overflow_warning): New static inline function.
3082         * opts.c (warn_strict_overflow): New variable.
3083         (common_handle_option): Handle OPT_Wstrict_overflow and
3084         OPT_Wstrict_overflow_.
3085         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3086         OPT_Wall.
3087         * fold-const.c: Include intl.h.
3088         (fold_deferring_overflow_warnings): New static variable.
3089         (fold_deferred_overflow_warning): New static variable.
3090         (fold_deferred_overflow_code): New static variable.
3091         (fold_defer_overflow_warnings): New function.
3092         (fold_undefer_overflow_warnings): New function.
3093         (fold_undefer_and_ignore_overflow_warnings): New function.
3094         (fold_deferring_overflow_warnings_p): New function.
3095         (fold_overflow_warning): New static function.
3096         (make_range): Add strict_overflow_p parameter.  Change all
3097         callers.
3098         (extract_muldiv, extract_muldiv_1): Likewise.
3099         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3100         tree_expr_nonnegative_p.
3101         (fold_negate_expr): Call fold_overflow_warning.
3102         (fold_range_test): Likewise.
3103         (fold_comparison): Likewise.
3104         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
3105         instead of tree_expr_nonnegative_p.
3106         (tree_expr_nonnegative_warnv_p): Rename from
3107         tree_expr_nonnegative_p, add strict_overflow_p parameter.
3108         (tree_expr_nonnegative_p): New function.
3109         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3110         strict_overflow_p parameter.
3111         (tree_expr_nonzero_p): New function.
3112         * passes.c (verify_interpass_invariants): New static function.
3113         (execute_one_pass): Call it.
3114         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3115         warnings.
3116         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3117         (estimate_numbers_of_iterations): Likewise.
3118         (scev_probably_wraps_p): Likewise.
3119         * tree-ssa-ccp.c: Include "toplev.h".
3120         (evaluate_stmt): Defer fold overflow warnings until we know we are
3121         going to optimize.
3122         (struct fold_stmt_r_data): Add stmt field.
3123         (fold_stmt_r): Defer fold overflow warnings until we know we
3124         optimized.
3125         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3126         (fold_stmt_inplace): Likewise.
3127         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3128         (cleanup_control_expr_graph): Defer fold overflow warnings until
3129         we know we are going to optimize.
3130         * tree-cfg.c (fold_cond_expr_cond): Likewise.
3131         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3132         Likewise.
3133         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3134         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3135         * tree-ssa-loop-manip.c (create_iv): Likewise.
3136         * c-typeck.c (build_conditional_expr): Likewise.
3137         (build_binary_op): Likewise.
3138         * tree-vrp.c (vrp_expr_computes_nonzero): Call
3139         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3140         (extract_range_from_unary_expr): Likewise.
3141         * simplify-rtx.c (simplify_const_relational_operation): Warn when
3142         assuming that signed overflow does not occur.
3143         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3144         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3145         (fold_defer_overflow_warnings): Declare.
3146         (fold_undefer_overflow_warnings): Declare.
3147         (fold_undefer_and_ignore_overflow_warnings): Declare.
3148         (fold_deferring_overflow_warnings_p): Declare.
3149         (tree_expr_nonzero_warnv_p): Declare.
3150         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3151         of warning options.
3152         (Warning Options): Document -Wstrict-overflow.
3153         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3154         (tree-ssa-ccp.o): Likewise.
3155         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3156         (fold-const.o): Depend on intl.h.
3158 2007-02-13  Ian Lance Taylor  <iant@google.com>
3160         PR middle-end/30751
3161         * lower-subreg.c (resolve_simple_move): Decompose subregs in
3162         addresses.
3164 2007-02-13  Stuart Hastings  <stuart@apple.com>
3166         * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3168 2007-02-13  Richard Henderson  <rth@redhat.com>
3170         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3171         handled_component_p before looking for the indirect_ref.
3173 2007-02-13  Richard Henderson  <rth@redhat.com>
3175         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3176         remove flags clobber.
3177         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3178         (bswaphi_lowpart): New.
3179         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3180         remove TARGET_BSWAP test.  Delete expander of the same name.
3182         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3183         (expand_unop): Use them.
3185 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
3187         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3188         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3189         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3190         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3191         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3192         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3193         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3194         assembler dialect choice from asm templates.
3196 2007-02-12  Richard Henderson  <rth@redhat.com>
3198         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3199         (fixuns_trunc<SSEMODEF>si2): Use it.
3200         * config/i386/sse.md (vec_setv4sf_0): Export.
3201         * config/i386/i386.c (ix86_build_const_vector): Export.
3202         (ix86_split_convert_uns_si_sse): Rename from
3203         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3204         * config/i386/i386-protos.h: Update.
3206 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3208         PR c/29521
3209         * c-typeck.c (c_finish_return): Improve warning message.
3211 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3213         * alias.c (find_symbolic_term): Delete unused function.
3215 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
3217         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3218         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3219         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3221 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3223         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3224         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3225         the function, temporarily point the debug interface to the null one.
3227 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3229         * dwarf2out.c (round_up_to_align): New static function.
3230         (field_byte_offset): Use it to round the offset.
3232 2007-02-12  Richard Henderson  <rth@redhat.com>
3234         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3235         (inswl_const): Export.
3237 2007-02-12  Richard Henderson  <rth@redhat.com>
3239         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3240         result mode of the libcall, convert back to outmode.
3242 2007-02-12  Roger Sayle  <roger@eyesopen.com>
3244         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3245         (bswapdi2): New define_expand to implement 32-bit implementation.
3247 2007-02-12  Nick Clifton  <nickc@redhat.com>
3249         * doc/invoke.texi (Overall Options): Document --help=.
3250         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3251         (cc1_options): Pass --help= on to cc1.
3252         (display_help): Add description of --help=.
3253         (process_command): Add code to handle --help=.  Allow translated
3254         --help and --target-help switches to be passed on to compiler
3255         sub-process.
3256         (main): Remove unused if statement.
3257         * opts.c (columns): Remove.
3258         (LEFT_COLUMN): Define.
3259         (wrap_help): Add columns argument.
3260         (print_filtered_help): Change parameters to be an include bitmask,
3261         an exclude bitmask, an any bitmask and the column width.  Move the
3262         code to display the params list here.  Add code to display the
3263         status of options rather than their descriptions if the quiet flag
3264         is not active.
3265         (print_specific_help): Change parameters to be an include bitmask,
3266         an exclude bitmask and an any bitmask.  Move code to look up the
3267         column width here.  Decide upon the title for an options listing.
3268         (common_handle_options): Add code to handle --help=.  Adapt code
3269         for --help and --target-help to use the revised form of the
3270         print_specific_help function.
3271         (print_help): Delete.
3272         (print_param_help): Delete.
3273         (print_switch): Delete.
3274         * opts.h (cl_lang_count): Add prototype.
3275         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3276         CL_MAX_OPTION_CLASS): New defines.
3277         * optc-gen.awk: Add construction of cl_lang_count.
3278         * c.opt: Add Warning attribute to warning options and Optimization
3279         attribute to optimization options.
3280         * common.opt: Likewise.
3281         Add --help=.
3282         Add -fhelp and -ftarget-help as aliases for the transformed --help
3283         and --target-help options.
3284         * opt-functions.awk: Add code to handle Warning and Optimization
3285         attributes.
3287 2007-02-12  Richard Henderson  <rth@redhat.com>
3289         * config/alpha/constraints.md: New file.
3290         * config/alpha/alpha.c: Include tm-constrs.h.
3291         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3292         alpha_extra_constraint): Remove.
3293         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3294         * config/alpha/alpha-protos.h: Update.
3295         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3296         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3297         (EXTRA_CONSTRAINT): Remove.
3298         * config/alpha/alpha.md: Include constraints.md.
3299         (adddi splitter): Use satisfies_constraint_*.
3300         * config/alpha/predicates.md (add_operand): Likewise.
3301         (sext_add_operand, addition_operation): Likewise.
3303 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
3305         PR tree-optimization/29145
3306         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3307         in our handling of restrict qualified pointers.
3309 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3311         PR middle-end/7651
3312         * doc/invoke.texi (Wunused-value): Update description.
3313         (Wextra): Delete item.
3314         * opts.c (set_Wextra): Don't use the value of Wextra to set the
3315         value of Wunused-value.
3316         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3317         (c_finish_stmt_expr): Don't check extra_warnings.
3318         (emit_side_effect_warnings): The caller is responsible to check
3319         warn_unused_value.
3321 2007-02-11  Roger Sayle  <roger@eyesopen.com>
3322             Matt Thomas  <matt@3am-software.com>
3324         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3326 2007-02-11  Roger Sayle  <roger@eyesopen.com>
3328         * simplify-rtx.c (simplify_relational_operation_1): Optimize
3329         comparisons of POPCOUNT against zero.
3330         (simplify_const_relational_operation): Likewise.
3332 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3334         * doc/invoke.texi (Wextra): Delete outdated paragraph.
3336 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3338         * dwarf2out.c (root_type): Delete unused function.
3340 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3342         * genattrtab.c (contained_in_p): Delete unused function.
3343         (write_expr_attr_cache): Likewise.
3345 2007-02-11  Jan Hubicka  <jh@suse.cz>
3347         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
3348         previous patch.
3350 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
3352         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
3353         to add the REG_EQ* note.
3354         * see.c (see_merge_one_use_extension): Likewise.
3355         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
3356         turn REG_EQUAL notes into REG_EQUIV notes if the target
3357         register may have more than one set.
3358         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
3359         * gcse.c (try_replace_reg): Likewise.
3360         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
3361         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
3362         more than one REG_EQUIV note.
3363         * reload1.c (gen_reload): Use set_unique_reg_note.
3365 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
3367         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
3368         (ix86_builtin_conversion): New function.
3370 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
3372         PR target/29487
3373         * tree.h (DECL_REPLACEABLE_P): New macro.
3374         * except.c (set_nothrow_function_flags): Likewise.
3376 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
3377             Ira Rosen  <irar@il.ibm.com>
3378             Dorit Nuzman  <dorit@il.ibm.com>
3380         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
3381         * targhooks.c (default_builtin_vectorized_conversion): New.
3382         * targhooks.h (default_builtin_vectorized_function): New declaration.
3383         * target.h (struct vectorize): Add builtin_conversion field.
3384         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
3385         stmt_vec_info_type value.
3386         (vectorizable_conversion): New declaration.
3387         * tree-vect-analyze.c (vect_analyze_operations): Add
3388         vectorizable_conversion call.
3389         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
3390         * tree-vect-transform.c (vectorizable_conversion): New function.
3391         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
3392         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
3393         mode.
3394         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
3395         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
3396         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
3397         or ALTIVEC_BUILTIN_VCFSX.
3399 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3401         PR target/30634
3402         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
3403         CONST_DOUBLE and operand 0 is a hard register.
3404         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
3405         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
3406         is a hard floating-point register.
3408 2007-02-10  Richard Henderson  <rth@redhat.com>
3409             Jakub Jelinek  <jakub@redhat.com>
3410             Alexandre Oliva  <aoliva@redhat.com>
3412         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
3413         * builtin-types.def (BT_WORD): Make unsigned.
3414         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
3415         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
3416         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
3417         * c-decl.c (grokdeclarator): Don't error if !have_tls.
3418         * c-parser.c (c_parser_omp_threadprivate): Likewise.
3419         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
3420         emulated tls.
3421         * expr.c (emutls_var_address): New.
3422         (expand_expr_real_1): Expand emulated tls.
3423         (expand_expr_addr_expr_1): Likewise.
3424         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
3425         * output.h (emutls_finish): Declare.
3426         * toplev.c (compile_file): Call it.
3427         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
3428         address before wrapping in CONST.
3429         * varasm.c (emutls_htab, emutls_object_type): New.
3430         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
3431         (get_emutls_object_name, get_emutls_object_type): New.
3432         (get_emutls_init_templ_addr, emutls_decl): New.
3433         (emutls_common_1, emutls_finish): New.
3434         (assemble_variable): When emulating tls, swap decls; generate
3435         constructor for the emutls objects.
3436         (do_assemble_alias): When emulating tls, swap decl and target name.
3437         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
3438         for emulated tls.
3439         * varpool.c (decide_is_variable_needed): Look at force_output.
3440         Recurse for emulated tls.
3441         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
3442         with decide_is_variable_needed.
3443         * emutls.c: New file.
3444         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
3445         tls_object for real tls.
3447 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3449         PR rtl-optimization/29599
3450         * reload1.c (eliminate_regs_in_insn): Take the destination
3451         mode into account when computing the offset.
3453 2007-02-09  Stuart Hastings  <stuart@apple.com>
3454             Richard Henderson  <rth@redhat.com>
3456         * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3457         * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3458         * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
3459         fixuns_truncdfhi2): New.
3460         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
3461         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
3462         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
3463         (floatunssidf2): Allow nonimmediate source.
3464         * gcc/config/i386/sse.md (movdi_to_sse): New.
3465         (vec_concatv2di): Drop '*'.
3466         * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
3467         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3468         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
3469         New.
3470         * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
3471         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3472         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
3473         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
3474         (ix86_build_signbit_mask): Fix decl of v, refactor to call
3475         ix86_build_const_vector.
3476         (x86_emit_floatuns): Rewrite.
3478 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3480         * genautomata.c (longest_path_length): Delete unused function.
3481         (struct state): Delete unused longest_path_length.
3482         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
3483         (get_free_state): Delete unused.
3485 2007-02-09  Jan Hubicka  <jh@suse.cz>
3487         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
3488         * doc/invoke.texi (inline-unit-growth): Update default value.
3490         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
3491         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
3492         (rebuild_cgraph_edges): Likewise.
3493         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
3494         (dump_cgraph_node): Dump frequencies.
3495         (cgraph_clone_edge): Add frequency scales.
3496         (cgraph_clone_node): Add freuqnecy.
3497         * cgraph.h (cgraph_edge): Add freuqnecy argument.
3498         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
3499         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
3500         * tree-pass.h (TODO_rebuild_frequencies): New constant.
3501         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
3502         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
3503         (save_inline_function_body): Likewise.
3504         * ipa-inline.c: inluce rtl.h
3505         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
3506         (cgraph_edge_badness): Use frequencies.
3507         (cgraph_decide_recursive_inlining): Update clonning.
3508         (cgraph_decide_inlining_of_small_function): Dump frequency.
3509         * predict.c (estimate_bb_frequencies): Export.
3510         * predict.h (estimate_bb_frequencies): Declare.
3511         * tree-inline.c (copy_bb): Watch overflows.
3512         (expand_call_inline): Update call of cgraph_create_edge.
3513         (optimize_inline_calls): Use TODO flags to update frequnecies.
3514         * passes.h: Include predict.h
3515         (init_optimization_passes): Move profile ahead.
3516         (execute_function_todo): Handle TODO_rebuild_frequencies.
3518 2007-02-09  Roger Sayle  <roger@eyesopen.com>
3520         * config/alpha/alpha.c (emit_insxl): Force the first operand of
3521         the insbl or inswl pattern into a register.
3523 2007-02-09  Roger Sayle  <roger@eyesopen.com>
3525         * config/ia64/ia64.md (bswapdi2): New define_insn.
3527 2007-02-09  Richard Henderson  <rth@redhat.com>
3529         * config/i386/constraints.md (Ym): New constraint.
3530         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
3531         (movdi_1_rex64): Split sse and xmm general register moves from
3532         memory move alternatives.  Use conditional register constraints.
3533         (movsf_1, movdf_integer): Likewise.
3534         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
3535         (movdf_integer_rex64): New.
3536         (pushsf_rex64): Fix output constraints.
3537         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
3538         (sse2_stored): Likewise.
3539         (sse2_storeq_rex64): New.
3540         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
3541         amd and not generic.
3542         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
3543         for optimize_size.  Remove SF/DFmode hack.
3545 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3547         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
3548         (bit_SSE4a): New.
3550 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
3551             Richard Sandiford  <richard@codesourcery.com>
3553         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
3554         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
3555         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
3556         m68k/t-mlib to tmake_file.
3557         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
3558         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
3559         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
3560         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
3561         variable is not empty, add t-$m68k_arch_family to tmake_file.
3562         Add t-mlibs to tmake_file.
3563         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
3564         * config/m68k/t-cf: New file.
3565         * config/m68k/t-m68k: Likewise.
3566         * config/m68k/t-mlibs: Likewise.
3567         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3568         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3569         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3570         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3571         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
3572         Delete.
3573         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
3574         (INSTALL_LIBGCC): Delete.
3575         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3576         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3577         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3578         (M68K_MLIB_CPU): Define.
3579         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3580         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3581         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
3583 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
3584             Richard Guenther  <rguenther@suse.de>
3586         PR middle-end/23361
3587         * fold-const.c (fold_comparison): Handle obfuscated comparisons
3588         against INT_MIN/INT_MAX.
3589         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
3590         file if a loop is removed.
3592 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
3594         * calls.c (store_one_arg): Pass correct alignment to
3595         emit_push_insn for non-BLKmode values.
3596         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
3597         unaligned stack slot via a suitably aligned slot.
3599 2007-02-08  DJ Delorie  <dj@redhat.com>
3601         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
3602         warnings.
3603         (legal_subregs): Use unsigned char, make const.
3604         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
3606 2007-02-08  Paul Brook  <paul@codesourcery.com>
3608         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
3609         special interworking needed.
3611 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
3613         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
3614         conditional to __SSE2__.
3615         (Entries below should have been added to first ChangeLog
3616         entry for amdfam10 dated 2007-02-05)
3617         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
3618         defined.
3619         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
3620         defined.
3621         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
3622         defined.
3624 2007-02-08  DJ Delorie  <dj@redhat.com>
3626         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
3627         * config/m32c/m32c.c (legal_subregs): New.
3628         (m32c_illegal_subreg_p): New.
3629         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
3630         unsupported subregs of hard regs.
3632 2007-02-08  Jan Hubicka  <jh@suse.cz>
3634         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
3635         the same one; always update histograms.
3637 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
3639         * passes.c (init_optimization_passes): Tidy comment.
3641 2007-02-08  Roger Sayle  <roger@eyesopen.com>
3643         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
3644         strip zero_extend, bswap and rotates from POCOUNT's argument.
3645         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
3646         zero_extend and rotates from PARITY's argument.
3647         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
3648         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
3649         of an integer constant at compile-time.
3651 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
3653         PR 30562
3654         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
3655         Update all users.
3656         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
3657         users.
3658         (init_alias_info):
3659         * tree-ssa-live.c (remove_unused_locals): Do not remove
3660         TREE_ADDRESSABLE variables.
3661         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
3662         * tree-ssa-operands.c (add_virtual_operand): Remove argument
3663         FOR_CLOBBER.  Update all users.
3664         If VAR has an associated alias set, add a virtual operand for
3665         it if no alias is found to conflict with the memory reference.
3667 2007-02-07  Jan Hubicka  <jh@suse.cz>
3668             Robert Kidd <rkidd@crhc.uiuc.edu>
3670         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
3672 2007-02-07  Ian Lance Taylor  <iant@google.com>
3674         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
3676 2007-02-07  Roger Sayle  <roger@eyesopen.com>
3678         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3679         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
3680         tablejumpdi, movsi_to_cr_one): Remove constraints from
3681         define_expand's match_operands.
3683 2007-02-07  Roger Sayle  <roger@eyesopen.com>
3685         * global.c (compute_regsets): Move declatation of "i" inside of
3686         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
3688 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3690         PR c++/30703
3691         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
3692         of INDIRECT_REF <RESULT_DECL>.
3694         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
3696 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
3697             Kaz Kojima  <kkojima@gcc.gnu.org>
3699         PR target/29746
3700         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
3701         properly.
3702         (sh_initialize_trampoline): Add parentheses to avoid a warning.
3704 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
3706         * doc/loop.texi: Document possibility not to perform disambiguation
3707         of loops with multiple latches.
3708         * cfgloopmanip.c (alp_enum_p): Removed.
3709         (add_loop): Handle subloops.  Use get_loop_body_with_size.
3710         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
3711         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
3712         the new forwarder block.
3713         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
3714         Handle the case latch is NULL.
3715         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
3716         when marking loop exits.
3717         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
3718         be modified.
3719         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
3720         disambiguate_loops_with_multiple_latches.
3721         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
3722         before fix_loop_structure.
3723         * cfgloop.c: Include pointer-set.h and output.h.
3724         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
3725         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
3726         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
3727         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
3728         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
3729         disambiguate_multiple_latches, get_loop_body_with_size,
3730         disambiguate_loops_with_multiple_latches): New functions.
3731         (flow_loop_dump): Dump multiple latch edges.
3732         (flow_loop_nodes_find): Handle loops with multiple latches.
3733         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
3734         (glb_enum_p): Modified.
3735         (get_loop_body): Use get_loop_body_with_size.
3736         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
3737         (AVOID_CFG_MODIFICATIONS): New constant.
3738         (disambiguate_loops_with_multiple_latches, add_loop,
3739         get_loop_body_with_size): Declare.
3740         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
3742 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
3744         PR inline-asm/28686
3745         * global.c (compute_regsets): New function.
3746         (global_alloc): Refactored ELIMINABLE_REGSET
3747         and NO_GLOBAL_ALLOC_REGS computation out.
3748         (rest_of_handle_global_alloc): Call compute_regsets()
3749         for non-optimizing case.
3751 2007-02-06  Richard Henderson  <rth@redhat.com>
3753         * config/i386/constraints.md (Y2): Rename from Y.
3754         (Yi): New constraint.
3755         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
3756         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
3757         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
3758         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
3759         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
3760         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
3761         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
3762         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
3763         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
3764         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
3765         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
3766         vec_extractv2si_1): Change Y constraints to Y2.
3767         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
3768         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
3769         Change Y constraints to Y2.
3770         (sse2_loadld): Change Y constraints to x.
3772 2007-02-06  Roger Sayle  <roger@eyesopen.com>
3774         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
3775         (parity<mode>2): New define_expand using rs6000_emit_parity.
3776         * config/rs6000/rs6000.c (rs6000_emit_popcount,
3777         rs6000_emit_parity): New functions.
3778         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
3779         rs6000_emit_parity): Prototype here.
3781 2007-02-06  Ian Lance Taylor  <iant@google.com>
3783         * lower-subreg.c (simple_move_operand): Reject CONST.
3784         (resolve_clobber): Call validate_change rather than directly
3785         assigning to XEXP (pat, 0).
3787 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
3789         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
3790         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
3791         (tree-cfg.o): Remove hashtab.h dependency.
3793         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
3794         (struct ivopts_data): Change niters to pointer_map_t.
3795         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
3796         (niter_for_exit): Create pointer_map on demand.  Change for
3797         pointer_map API.
3798         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
3799         (free_loop_data): Destroy data->niters if created and reset field.
3800         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
3801         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
3803         * tree-ssa-reassoc.c: Include pointer-set.h.
3804         (bb_rank): Change to long *.
3805         (operand_rank): Change to pointer_map_t.
3806         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
3807         (insert_operand_rank): Accept long.
3808         (operand_entry_hash, operand_entry_eq): Remove.
3809         (get_rank): Return long.  Adjust for changes above.
3810         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
3811         and operand_rank.
3812         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
3814         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
3815         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
3816         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
3817         is not NULL.
3818         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
3819         directly since it cannot be NULL.
3820         (get_vi_for_tree): Rewrite for pointer_map API.
3821         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
3822         (init_alias_vars): Create vi_for_tree as pointer_map.
3823         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
3825         * tree-cfg.c: Don't include hashtab.h.
3826         (edge_to_cases): Declare as pointer_map.
3827         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
3828         Delete.
3829         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
3830         (start_recording_case_labels): Create edge_to_cases as pointer_map.
3831         (end_recoding_case_labels): Cleanup edge_to_cases manually before
3832         destroying it.
3833         (record_switch_edge): Delete.
3834         (get_cases_for_edge): Adjust for pointer_map API, inline
3835         record_switch_edge (rewritten for new API), remove goto.
3837 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
3839         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
3840         * tree-nested.c: Include pointer-set.h.
3841         (var_map_elt, var_map_eq, var_map_hash): Delete.
3842         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
3843         to pointer_map_t's.
3844         (nesting_info_bitmap_obstack): New.
3845         (lookup_field_for_decl): Adjust for pointer_map API.
3846         (lookup_tramp_for_decl): Adjust for pointer_map API.
3847         (get_nonlocal_debug_decl): Adjust for pointer_map API.
3848         (get_local_debug_decl): Adjust for pointer_map API.
3849         (convert_nl_goto_reference): Adjust for pointer_map API.
3850         (convert_nl_goto_receiver): Adjust for pointer_map API.
3851         (create_nesting_tree): Create outside GGC space.  Create bitmap on
3852         the new obstack.  Create field_map and var_map as pointer_maps.
3853         (free_nesting_tree): Adjust for changes to create_nesting_tree.
3854         (root): Delete.
3855         (lower_nested_functions): Move root here, no need to NULL it.
3856         Initialize and release the obstack.
3858 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
3860         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
3861         Remove prototypes and make them non-static.
3862         (struct tree_int_map): Remove.
3863         * tree.h (struct tree_int_map): Move here, turning TO into an
3864         unsigned int.
3865         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
3867         * tree.h (TREE_COMPLEXITY): Remove.
3868         (struct tree_exp): Remove complexity field.
3869         * tree.c (build1_stat): Don't set it.
3871 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
3872             Victor Kaplansky  <victork@il.ibm.com>
3874         * tree-vectorizer.c (vect_is_simple_use): Support induction.
3875         (vect_is_simple_reduction): Support reduction with induction as
3876         one of the operands.
3877         (vect_is_simple_iv_evolution): Fix formatting.
3878         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
3879         formatting.  Don't mark induction phis for vectorization.
3880         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
3881         * tree-vect-transform.c (get_initial_def_for_induction): New function.
3882         (vect_get_vec_def_for_operand): Support induction.
3883         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
3884         induction case.
3885         (vectorizable_reduction): Support reduction with induction as one of
3886         the operands.
3887         (vectorizable_type_demotion): Use def-type of stmt argument rather
3888         than dummy def-type.
3890         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
3891         flag_tree_scev_cprop.
3892         * common.opt (tree-scev-cprop): New flag.
3894         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
3895         call to vect_get_new_vect_var.
3897 2007-02-06  Ira Rosen  <irar@il.ibm.com>
3899         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
3900         vectype is not NULL.
3901         (vect_pattern_recog_1): Likewise.
3903 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3905         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
3906         (fold_negate_expr): Likewise.
3908 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
3910         PR debug/30189
3911         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
3912         even if cv-qualification is the same.
3914 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
3916         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
3917         __enable_execute_stack on completion.
3919 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3921         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
3922         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
3923         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
3924         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
3925         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
3926         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
3927         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
3928         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
3930 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3932         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
3933         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
3934         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
3935         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
3936         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
3937         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
3938         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
3939         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
3940         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
3941         umuldi3_highpart_rex64, umulsi3_highpart_insn,
3942         umulsi3_highpart_zext, smuldi3_highpart_rex64,
3943         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
3944         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
3945         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
3946         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
3947         sqrtextenddfxf2_i387): Added amdfam10_decode.
3949         * config/i386/athlon.md (athlon_idirect_amdfam10,
3950         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
3951         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
3952         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
3953         athlon_ivector_store_amdfam10): New define_insn_reservation.
3954         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
3955         amdfam10.
3957 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3959         * config/i386/athlon.md (athlon_call_amdfam10,
3960         athlon_pop_amdfam10, athlon_lea_amdfam10): New
3961         define_insn_reservation.
3962         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
3963         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
3964         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
3966 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3968         * config/i386/athlon.md (athlon_sseld_amdfam10,
3969         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
3970         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
3972 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3974         * config/i386/athlon.md (athlon_sseins_amdfam10): New
3975         define_insn_reservation.
3976         * config/i386/i386.md (sseins): Added sseins to define_attr type
3977         and define_attr unit.
3978         * config/i386/sse.md: Set type attribute to sseins for insertq
3979         and insertqi.
3981 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3983         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
3984         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
3985         ssecomi_load_amdfam10, ssecomi_amdfam10,
3986         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
3987         define_insn_reservation.
3988         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
3990 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3992         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
3993         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
3994         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
3995         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
3996         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
3997         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
3998         define_insn_reservation.
4000         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
4001         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
4002         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
4003         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
4004         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
4006 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4008         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
4009         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
4010         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
4011         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
4012         athlon_ssemul_load_k8): Added amdfam10.
4014 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4016         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
4017         (x86_sse_unaligned_move_optimal): New variable.
4019         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
4020         m_AMDFAM10.
4021         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
4022         for unaligned vector SSE double/single precision loads for AMDFAM10.
4024 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4026         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
4027         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
4028         Define TARGET_CPU_DEFAULT_amdfam10.
4029         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
4030         (processor_type): Add PROCESSOR_AMDFAM10.
4032         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
4033         processor_type in config/i386/i386.h.
4034         Enable imul peepholes for TARGET_AMDFAM10.
4036         * config.gcc: Add support for --with-cpu option for amdfam10.
4038         * config/i386/i386.c (amdfam10_cost): New variable.
4039         (m_AMDFAM10): New macro.
4040         (m_ATHLON_K8_AMDFAM10): New macro.
4041         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
4042         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
4043         x86_promote_QImode, x86_integer_DFmode_moves,
4044         x86_partial_reg_dependency, x86_memory_mismatch_stall,
4045         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
4046         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
4047         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
4048         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
4049         Enable/disable for amdfam10.
4050         (override_options): Add amdfam10_cost to processor_target_table.
4051         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
4052         processor_alias_table.
4053         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
4054         (ix86_adjust_cost): Add code for amdfam10.
4056 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4058         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
4059         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
4060         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
4061         * config/i386/i386.h: Add builtin definition for SSE4A.
4062         * config/i386/i386.md: Add support for ABM instructions
4063         (popcnt and lzcnt).
4064         * config/i386/sse.md: Add support for SSE4A instructions
4065         (movntss, movntsd, extrq, insertq).
4066         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
4067         Add -march=amdfam10 flag.
4068         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
4069         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
4070         and amdfam10.
4071         * doc/extend.texi: Add documentation for SSE4A builtins.
4073 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
4075         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
4077 2007-02-05  Richard Guenther  <rguenther@suse.de>
4079         * tree-vectorizer.h (vectorizable_function): Add argument type
4080         argument, change return type.
4081         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
4082         * tree-vect-transform.c (vectorizable_function): Handle extra
4083         argument, return vectorized function decl.
4084         (build_vectorized_function_call): Remove.
4085         (vectorizable_call): Handle calls with result and argument types
4086         differing.  Handle loop vectorization factor correctly.
4087         * targhooks.c (default_builtin_vectorized_function): Adjust for
4088         extra argument.
4089         * targhooks.h (default_builtin_vectorized_function): Likewise.
4090         * target.h (builtin_vectorized_function): Add argument type
4091         argument.
4092         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
4093         extra argument, allow vectorizing of lrintf.
4094         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
4095         documentation of target hook.
4097 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
4099         PR target/30665
4100         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
4101         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
4102         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
4104 2007-02-05  Roger Sayle  <roger@eyesopen.com>
4106         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
4107         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
4108         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
4109         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
4110         before canonicalizing sincos to cexpi.
4111         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
4113 2007-02-05  Roger Sayle  <roger@eyesopen.com>
4115         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
4116         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
4117         (alpha_init_builtins): Use alpha_add_builtins to process tables.
4119 2007-02-05  Roger Sayle  <roger@eyesopen.com>
4121         * mips-tfile.c (initialize_init_file): Correct endianness test.
4123 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
4125         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
4126         the 'y' constraint.
4128 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
4130         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
4131         saves in a PARALLEL before the register assignments.
4133 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
4135         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
4136         DWARF_FRAME_RETURN_COLUMN to be a general register.
4137         * dwarf2out.c (init_return_column_size): New function, split from...
4138         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
4139         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
4140         to be nongeneral registers.
4141         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
4142         integer registers.
4143         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
4144         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
4146 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
4148         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
4150 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
4152         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
4153         (remove_path): Use can_remove_branch_p and remove_branch instead
4154         of loop_delete_branch_edge.
4155         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
4156         (tree_transform_and_unroll_loop): Remove dead branches immediately.
4157         Update profile using scale_dominated_blocks_in_loop.
4158         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
4159         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
4160         (can_remove_branch_p, remove_branch): Declare.
4161         * tree-cfg.c (tree_can_remove_branch_p): New function.
4162         (tree_cfg_hooks): Add tree_can_remove_branch_p.
4163         * cfgrtl.c (rtl_can_remove_branch_p): New function.
4164         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
4166 2007-02-05  Jan Hubicka  <jh@suse.cz>
4168         PR middle-end/30696
4169         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
4170         nodes in cgraph, don't remove offline copy of the function.
4172 2007-02-04  Jan Hubicka  <jh@suse.cz>
4174         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
4175         vectors might cause maybe_lookup_element_for_expr to be called
4176         on non-sra-candidate.
4178 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
4180         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
4181         config/bfin/bfin.md, config/bfin/predicates.md: Follow
4182         spelling conventions.
4184 2007-02-04  Richard Guenther  <rguenther@suse.de>
4186         PR middle-end/30636
4187         * fold-const.c (try_move_mult_to_index): Make sure to not
4188         overflow one dimension of a multi-dimensional array access.
4190 2007-02-04  Jan Hubicka  <jh@suse.cz>
4192         * passes.c (init_optimization_passes): Reindent.
4194 2007-02-04  Jan Hubicka  <jh@suse.cz>
4195             Eric Botcazou  <ebotcazou@adacore.com>
4197         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
4198         (execute_fixup_cfg): Break out the abnormal goto code.
4199         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
4200         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
4201         (optimize_inline_calls): Call make_nonlocal_label_edges.
4203 2007-02-04  Jan Hubicka  <jh@suse.cz>
4205         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
4206         true when something was changed.
4207         (rename_ssa_copies): When something was changed, do
4208         TODO_remove_unused_locals.
4209         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
4210         add TODO_remove_unused_locals when instruction was removed.
4212 2007-02-04  Jan Hubicka  <jh@suse.cz>
4214         * ipa-inline.c (try_inline): Improve debug output; work on already
4215         inline edges too.
4216         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
4217         call try_inline for already inlined edges too when flattening;
4218         inline also functions that make callee growth but overall unit size
4219         reduce.
4221 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
4223         * config/m32c/bitops.md, config/m32c/jump.md,
4224         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
4225         config/m32r/m32r.h, config/m32r/m32r.md,
4226         config/m32r/predicates.md, config/m68hc11/larith.asm,
4227         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4228         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
4229         config/mips/mips-protos.h, config/mips/mips.c,
4230         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
4231         config/mn10300/mn10300.h, config/mn10300/predicates.md,
4232         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
4233         spelling conventions.
4235         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
4236         Follow spelling conventions.
4238 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
4240         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
4241         warn about C++0x compatibility.
4243 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
4245         * config/h8300/h8300.c, config/h8300/h8300.h,
4246         config/h8300/h8300.md: Follow spelling conventions.
4248 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
4250         PR middle-end/30667
4251         * combine.c (try_combine): Do not substitute source operand
4252         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
4254 2007-02-03  Jan Hubicka  <jh@suse.cz>
4256         PR gcov-profile/30650
4257         * value-prof.c (stringop_block_profile): Fix handling of size counter;
4258         do not divide by zero for never executed counters.
4259         (tree_find_values_to_profile): Fix counters.
4260         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
4262 2007-02-03  Ian Lance Taylor  <iant@google.com>
4264         * lower-subreg.c (simple_move_operand): New static function,
4265         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
4266         operands.
4267         (simple_move): Call simple_move_operand.
4268         (find_decomposable_subregs): Add special handling of MEMs.
4269         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
4270         meaning of return value.  If we see a hard register, test whether
4271         it can store a word_mode value.  Change all callers.
4273 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4275         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
4276         ftrapv insns and expanders.
4277         (subdi3): Change define_expand operand 1 to arith11_operand, and
4278         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
4279         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
4280         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
4281         respectively.
4283         PR middle-end/30174
4284         * varasm.c (notice_global_symbol): Treat global objects as weak when
4285         flag_shlib is true.
4287 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4289         * emit-rtl.c (dconstpi): Delete.
4290         (dconstsqrt2): New.
4291         (init_emit_once): Delete dconstpi and init dconstsqrt2.
4292         * real.h (dconstpi): Delete.
4293         (dconstsqrt2): New.
4294         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
4295         (fold_builtin_hypot): Likewise.
4297 2007-02-03  Tom Tromey  <tromey@redhat.com>
4299         PR driver/30246
4300         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
4301         -gcoff3, -gxcoff3, -gvms3 implies -dD.
4303 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
4305         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
4306         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
4307         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
4308         config/rs6000/cell.md, config/rs6000/darwin.h,
4309         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
4310         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
4311         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
4312         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
4313         typos.  Follow spelling conventions.
4314         * doc/invoke.texi: Follow spelling conventions.
4316 2007-02-03  Roger Sayle  <roger@eyesopen.com>
4318         * simplify-rtx.c (simplify_relational_operation_1): Implement some
4319         canonicalization transformations that attempt to simplify integer
4320         constant comparisons to become comparisons against zero.
4322 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4324         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
4325         fabs(x)*sqrt(2).
4326         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
4327         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
4329 2007-02-02  Mike Stump  <mrs@apple.com>
4331         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
4332         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
4333         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
4334         generate a branch island.
4336 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
4338         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
4339         (xtensa_legitimate_address_p): New.
4340         (xtensa_legitimize_address): New.
4341         (xtensa_output_addr_const_extra): New.
4342         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
4343         (BASE_REG_P): New.
4344         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
4345         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
4346         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
4347         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
4348         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
4349         (xtensa_legitimize_address): New.
4350         (xtensa_output_addr_const_extra): New.
4352 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
4354         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
4356 2007-02-02  Ian Lance Taylor  <iant@google.com>
4358         * expmed.c (expand_divmod): Add comment.
4360 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
4362         * emit-rtl.c (renumber_insns): Remove.
4363         * flags.h: Remove the extern for flag_renumber_insns.
4364         * rtl.h: Remove the prototype for renumber_insns.
4365         * toplev.c (flag_renumber_insns): Remove.
4367 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
4369         Revert for x86 darwin:
4370         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
4372         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
4373         code before the following patch under TARGET_MACHO.
4374         (ix86_function_value_regno_p): Likewise.
4376 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4378         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
4379         COMPLEX_EXPR.
4381 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
4383         PR target/29682
4384         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
4385         general or fp registers.  Add comments.
4386         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
4388 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
4390         * pointer-set.c (insert_aux): Only return insertion slot.
4391         (pointer_set_insert): Adjust.
4392         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
4393         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
4394         pointer_map_traverse): New.
4395         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
4396         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
4397         pointer_map_contains, pointer_map_traverse): Declare.
4399 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
4401         PR middle-end/30473
4402         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
4403         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
4405 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
4407         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
4409         (struct _dep): New type.
4410         (dep_t): New typedef.
4411         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
4412         (DEP_STATUS): New access macro.  The macro with the same name was
4413         renamed to DEP_LINK_STATUS.
4414         (dep_init): Declare function
4416         (struct _dep_link): New type.
4417         (dep_link_t): New typedef.
4418         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
4419         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
4420         (DEP_LINK_STATUS): New macro.
4421         (debug_dep_links): New debug function.
4423         (struct _deps_list): New type.
4424         (deps_list_t): New typedef.
4425         (DEPS_LIST_FIRST): New access macro.
4426         (FOR_EACH_DEP_LINK): New cycle macro.
4427         (create_deps_list, free_deps_list, delete_deps_list): Declare
4428         functions.
4429         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
4430         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
4431         (copy_deps_list_change_con): Ditto.
4433         (move_dep_link): Declare function.
4435         (struct _dep_node): New type.
4436         (dep_node_t): New typedef.
4437         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
4439         (struct haifa_insn_data.back_deps): New field to hold backward
4440         dependencies of the insn.
4441         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
4442         to deps_list_t.
4443         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
4444         Change its type to deps_list_t.
4445         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
4446         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
4447         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
4449         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
4451         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
4453         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
4454         all callers.
4455         (dep_cost): Declare.
4457         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
4458         (ds_to_dk, dk_to_ds): New functions.
4460         (init_dep_1): New static function.
4461         (init_dep): New function.
4462         (copy_dep): New static function.
4464         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
4465         functions.
4466         (detach_dep_link): New static function.
4467         (move_dep_link): New function.
4469         (dep_links_consistent_p, dump_dep_links): New static functions.
4470         (debug_dep_links): New debugging function.
4472         (deps_obstack, dl_obstack, dn_obstack): New static variables.
4474         (alloc_deps_list, init_deps_list): New static functions.
4475         (create_deps_list): New function.
4476         (clear_deps_list): New static function.
4477         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
4478         (deps_list_consistent_p, dump_deps_list): New static functions.
4479         (debug_deps_list): New function.
4480         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
4481         functions.
4482         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
4484         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
4485         use new scheduler dependencies lists.
4486         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
4487         (sched_analyze): Ditto.  Initialize dependencies lists.
4488         (add_forw_dep, compute_forward_dependences): Update to use new
4489         scheduler dependencies lists.
4491         (init_dependency_caches): Init deps_obstack.
4492         (free_dependency_caches): Free deps_obstack.
4494         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
4495         new scheduler dependencies lists.
4496         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
4497         (add_back_forw_dep, delete_back_forw_dep): Ditto.
4499         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
4500         Update to use new scheduler dependencies lists.
4501         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
4502         (debug_dependencies): Ditto.
4503         (schedule_region): Update comments.
4505         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
4506         scheduler dependencies lists.
4507         (schedule_ebb): Update comments.
4509         * rtl.def (DEPS_LIST): Remove.
4511         * lists.c (unused_deps_list): Remove.
4512         (free_list): Update assertions.
4514         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
4515         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
4517         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
4518         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
4520         * haifa-sched.c (comments): Update.
4521         (insn_cost1): Remove.  Inline the code into insn_cost ().
4522         (insn_cost): Update to use new scheduler dependencies lists.  Move
4523         processing of the dependency cost to dep_cost ().
4524         (dep_cost): New function.  Use it instead of insn_cost () when
4525         evaluating cost of the dependency.  Use compatible interface to
4526         interact with the target.
4527         (priority): Update to use new scheduler dependencies lists.
4528         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
4529         with greater number of insns that depend on the insn.
4530         (schedule_insn): Update to use new scheduler dependencies lists.  Add
4531         code to free backward dependencies lists.  Inline and optimize code
4532         from resolve_dep () - see PR28071.
4533         (ok_for_early_queue_removal): Update to use new scheduler dependencies
4534         lists.  Update call to targetm.sched.is_costly_dependence hook.
4536         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
4537         scheduler dependencies lists.
4539         (resolve_dep): Remove.  Move the logic to schedule_insn ().
4540         (init_h_i_d): Initialize dependencies lists.
4542         (process_insn_depend_be_in_spec): Rename to
4543         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
4544         dependencies lists.
4545         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
4546         Update to use new scheduler dependencies lists.
4547         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
4549         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
4550         new scheduler dependencies lists.
4551         (build_intra_loop_deps): Ditto.
4553         * target.h (struct _dep): Declare to use in
4554         gcc_target.sched.is_costly_dependence.
4555         (struct gcc_target.sched.adjust_cost): Fix typo.
4556         (struct gcc_target.sched.is_costly_dependence): Change signature to use
4557         single dep_t parameter instead of an equivalent triad.
4558         (struct gcc_target.sched.adjust_cost_2): Remove.
4560         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
4562         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
4564         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
4565         documentation.
4566         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
4568         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
4569         (REG_DEP_TRUE): Document.
4571         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
4572         Change signature to correspond to the targetm.sched.adjust_cost hook.
4573         Update use in TARGET_SCHED_ADJUST_COST_2.
4574         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
4575         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
4576         new scheduler dependencies lists.
4577         (ia64_gen_check): Ditto.
4579         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
4580         dependencies lists.
4582         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
4583         signature to correspond to the targetm.sched.is_costly_dependence hook.
4584         (is_costly_group): Update to use new scheduler dependencies lists.
4586         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
4587         instead of INSN_COST () macro.
4589 2007-02-01  Ian Lance Taylor  <iant@google.com>
4591         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
4593 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
4595         * pa.md (tp_load): Correct mfctl instruction syntax.
4597 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
4599         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
4600         altivec_padding_size calculation on AIX.  Improve comment, add
4601         assert to verify that it's right.
4603         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
4604         64-bit.
4606 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
4608         PR inline-asm/28686
4609         * global.c (global_alloc): Add mising initialization of
4610         ELIMINABLE_REGSET.
4612 2007-02-01  Roger Sayle  <roger@eyesopen.com>
4614         * alias.c (init_alias_analysis): Correct whitespace.
4615         * bb-reorder.c (fix_edges_for_rarely_executed_code,
4616         partition_hot_cold_basic_blocks): Likewise.
4617         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
4618         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
4619         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
4620         fold_builtin_snprintf_chk, fold_builtin_printf,
4621         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
4622         do_mpfr_arg3, do_mpfr_sincos): Likewise.
4623         * cfgcleanup.c (cleanup_cfg): Likewise.
4624         * cfgexpand.c (tree_expand_cfg): Likewise.
4625         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
4626         * function.c (get_next_funcdef_no): Likewise.
4627         * gengtype.c (main): Likewise.
4628         * genmodes.c (main): Likewise.
4629         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
4630         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
4631         * ifcvt.c (noce_emit_move_insn): Likewise.
4632         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
4633         Likewise.
4634         * stor-layout.c (get_best_mode): Likewise.
4635         * tree-ssa-loop-niter.c (get_val_for): Likewise.
4636         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
4637         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
4638         perform_var_substitution, solve_graph): Likewise.
4639         * tree-vrp.c (vrp_finalize): Likewise.
4641 2007-02-01  Ian Lance Taylor  <iant@google.com>
4643         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
4644         high part of a paradoxical subreg, return a constant zero.
4646 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
4648         * toplev.c (lang_dependent_init): Call init_set_costs.
4649         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
4651 2007-02-01  Richard Guenther  <rguenther@suse.de>
4653         PR middle-end/30656
4654         * fold-const.c (fold_negate_expr): Allow negating a
4655         constant if overflow does not change.
4657 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4659         * doc/c-tree.texi (Expression trees): Improve markup.
4660         * doc/tm.texi (Register Classes, Addressing Modes)
4661         (Floating Point): Fix spacing after abbreviations.  Fix some
4662         typos.
4664 2007-02-01  Ben Elliston  <bje@au.ibm.com>
4666         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
4667         * doc/contrib.texi: Likewise.
4668         * doc/install.texi: Likewise.
4670 2007-01-31  Richard Henderson  <rth@redhat.com>
4671             Ian Lance Taylor  <iant@google.com>
4673         * lower-subreg.c: New file.
4674         * rtl.def (CONCATN): Define.
4675         * passes.c (init_optimization_passes): Add pass_lower_subreg and
4676         pass_lower_subreg2.
4677         * emit-rtl.c (update_reg_offset): New static function, broken out
4678         of gen_rtx_REG_offset.
4679         (gen_rtx_REG_offset): Call update_reg_offset.
4680         (gen_reg_rtx_offset): New function.
4681         * regclass.c: Revert patch of 2006-03-05, restoring
4682         reg_scan_update.
4683         (clear_reg_info_regno): New function.
4684         * dwarf2out.c (concatn_loc_descriptor): New static function.
4685         (loc_descriptor): Handle CONCATN.
4686         * common.opt (fsplit_wide_types): New option.
4687         * opts.c (decode_options): Set flag_split_wide_types when
4688         optimizing.
4689         * timevar.def (TV_LOWER_SUBREG): Define.
4690         * rtl.h (gen_reg_rtx_offset): Declare.
4691         (reg_scan_update): Declare.
4692         * regs.h (clear_reg_info_regno): Declare.
4693         * tree-pass.h (pass_lower_subreg): Declare.
4694         (pass_lower_subreg2): Declare.
4695         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
4696         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
4697         -fsplit-wide-types.
4698         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
4699         * Makefile.in (OBJS-common): Add lower-subreg.o.
4700         (lower-subreg.o): New target.
4702 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
4704         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
4706 2007-01-31  Anatoly Sokolov <aesok@post.ru>
4708         PR target/19087
4709         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
4711 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4713         PR middle-end/29335
4714         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
4716 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
4718         * cfgloop.h: Include vec-prim.h.
4719         (enum li_flags): Remove LI_ONLY_OLD.
4720         (loop_iterator): Changed.
4721         (fel_next, fel_init): Iterate over loop tree.
4722         (FOR_EACH_LOOP_BREAK): New macro.
4723         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
4724         FOR_EACH_LOOP.
4725         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
4726         * modulo-sched.c (sms_schedule): Ditto.
4727         * tree-vectorizer.c (vectorize_loops): Ditto.
4728         * doc/loop.texi: Update information on loop numbering and behavior of
4729         FOR_EACH_LOOP wrto new loops.
4730         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
4731         add_to_evolution_1): Test nestedness of loops instead of comparing
4732         their numbers.
4733         * tree-chrec.c (chrec_fold_plus_poly_poly,
4734         chrec_fold_multiply_poly_poly, chrec_evaluate,
4735         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
4736         reset_evolution_in_loop): Ditto.
4737         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
4739 2007-01-31  Dirk Mueller  <dmueller@suse.de>
4741         * c-common.c (warn_about_parentheses): Separate warning about
4742         un-parenthized sequence of comparison operators from the one
4743         which is supposed to warn about x <= y <= z.
4745 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
4747         * optabs.h (enum optab_index): Add new OTI_isinf.
4748         (isinf_optab): Define corresponding macro.
4749         * optabs.c (init_optabs): Initialize isinf_optab.
4750         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
4751         patterns.
4752         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
4753         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
4754         using isinf_optab.
4755         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
4756         expand_builtin_interclass_mathfn.
4757         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
4758         * config/i386/i386.md (UNSPEC_FXAM): New constant.
4759         (fxam<mode>2_i387): New insn pattern.
4760         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
4761         built-in functions as x87 inline asm.
4763 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
4765         * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
4767 2007-01-30  Eric Christopher  <echristo@apple.com>
4769         * config.gcc: Add geode.
4771 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
4773         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
4774         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
4775         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
4776         value-prof.c: Fix comment typos.
4778 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4780         PR c++/24745
4781         * doc/invoke.texi (Wpointer-arith): Document warning.
4783 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
4785         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
4786         the list of discrepancies from the draft TR.
4788 2007-01-30  Dirk Mueller  <dmueller@suse.de>
4790         PR c++/30601
4791         * doc/invoke.texi (-Wreturn-type): Update description to
4792         match new behavior.
4794 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
4796         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
4798 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
4800         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
4801         to handle optabs that operate on floating point input argument and
4802         output to integer output.
4803         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
4804         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
4805         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
4806         expand_builtin_interclass_mathfn ().
4807         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
4808         (ilogbsi2): Remove.
4809         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
4810         ilogbl built-in functions as x87 intrinsics.
4812 2007-01-30  Richard Guenther  <rguenther@suse.de>
4814         PR middle-end/27657
4815         * dwarf2out.c (reference_to_unused): Query varpool if the
4816         variable was output.
4818 2007-01-30  Richard Guenther  <rguenther@suse.de>
4820         PR middle-end/30313
4821         * passes.c (execute_one_pass): Reset in_gimple_form to not
4822         confuse non-unit-at-a-time mode.
4824 2007-01-29  Roger Sayle  <roger@eyesopen.com>
4825             Richard Guenther  <rguenther@suse.de>
4827         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
4828         avoid undefined behaviour on overflow.  Use force_fit_type_double
4829         to construct the constant with the specified TREE_OVERFLOW.
4831 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
4833         * config/dfp-bit.c: Add parameterized support for fp exceptions.
4834         * config/dfp-bit.h: Ditto.
4836 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4838         * c-decl.c (pop_scope): Replace warnings with call to
4839         warn_for_unused_label.
4840         * c-common.h (warn_for_unused_label): Declare.
4841         * c-common.c (warn_for_unused_label): Define.
4843 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4845         * tree-optimize.c (update_inlined_to_pointers): Delete unused
4846         function.
4848 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
4850         * Makefile.in (USER_H): Remove decfloat.h.
4851         * ginclude/decfloat.h: Delete, moving contents to ...
4852         * ginclude/float.h: Add support for decimal floating point,
4853         guarded by __STDC_WANT_DEC_FP__.
4855 2007-01-29  Mike Stump  <mrs@apple.com>
4857         * doc/gccint.texi (Top): Rename Loop Representation to Loop
4858         Analysis and Representation to resolve case insensitive conflict.
4859         * doc/loop.texi (Loop Analysis and Representation): Likewise.
4861 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
4863         * tree.h (struct tree_memory_tag): Add aliases member.
4864         (MTAG_ALIASES): New macro.
4865         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
4866         (add_may_alias): Remove pointer-set. Update for may_aliases being
4867         a bitmap.
4868         (mark_aliases_call_clobbered): Update for may_aliases being a
4869         bitmap.
4870         (compute_tag_properties): Ditto.
4871         (create_partition_for): Ditto.
4872         (compute_memory_partitions): Ditto.
4873         (dump_may_aliases_for): Ditto.
4874         (is_aliased_with): Ditto.
4875         (add_may_alias_for_new_tag): Ditto.
4876         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
4877         (compute_is_aliased): New function.
4878         (compute_may_aliases): Call compute_is_aliased).
4879         (init_alias_info): Initialize alias_bitmap_obstack.
4880         (union_alias_set_into): New function.
4881         (compute_flow_sensitive_aliasing): Use union_aliases_into.
4882         (have_common_aliases_p): Rewrite to take two bitmaps and use
4883         intersection.
4884         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
4885         Update for bitmaps.
4886         (finalize_ref_all_pointers): Update for add_may_alias changes.
4887         (new_type_alias): Ditto.
4888         * tree-flow-inline.h (may_aliases): Return a bitmap.
4889         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
4890         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
4891         may_aliases being a bitmap.
4892         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
4893         may_aliases now returns a bitmap.
4894         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
4895         being a bitmap.
4896         * tree-ssa-operands.c (add_virtual_operand): Update for
4897         may_aliases being a bitmap.
4899 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
4901         PR tree-optimization/30630
4902         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
4903         variable as changed.
4905 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
4907         PR c++/28266
4908         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
4909         expanded only once even if an error occurs.
4911 2007-01-29  Ben Elliston  <bje@au.ibm.com>
4913         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
4914         (__gcov_average_profiler): Likewise.
4915         (__gcov_ior_profiler): Likewise.
4916         (__gcov_merge_ior): Likewise.
4918 2007-01-28  Jan Hubicka  <jh@suse.cz>
4920         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
4921         * value-prof.c (stringop_block_profile): Likewise.
4923 2007-01-28  Jan Hubicka  <jh@suse.cz>
4925         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
4926         variant handling histograms; add wrapper.
4927         (clear_storage_via_libcall): Export.
4928         (emit_block_move_hints): Break out from ...; add histograms.
4929         (emit_block_move): ... this one.
4930         (clear_storage_hints): Break out from ...; add histograms.
4931         (clear_storage): ... this one.
4932         (set_storage_via_memset): Handle histogram.
4933         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
4934         (clear_storage_hints, clear_storage_via_libcall): Declare.
4935         (set_storage_via_setmem): Update prototype.
4936         * doc/md.texi (movmem, setmem): Document new arguments.
4938         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
4939         new histograms.
4940         (stringop_block_profile): New global function.
4941         (tree_stringops_values_to_profile): Profile block size and alignment.
4942         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
4943         HIST_TYPE_IOR.
4944         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
4945         (stringop_block_profile): Declare.
4946         * builtins.c: Include value-prof.h.
4947         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
4948         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
4949         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
4950         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
4951         * profile.c (instrument_values): Add new counters.
4952         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
4953         calls.
4954         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
4955         (tree_init_edge_profiler): Build new profilers.
4956         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
4957         (pass_tree_profile): Add dump.
4958         (tree_profile_hooks): Update.
4959         * Makefile.in (LIBGCOV): Add new constants.
4960         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
4961         __gcov_ior_profiler): New.
4962         * i386.md (movmem/setmem expanders): Add new optional arguments.
4964 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
4966         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
4968 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
4970         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
4971         (tree_unswitch_single_loop): Pass eni_size_weights to
4972         tree_num_loop_insns.
4973         * tree-ssa-loop-manip.c: Include tree-inline.h.
4974         (can_unroll_loop_p): Pass eni_size_weights to
4975         tree_num_loop_insns.
4976         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
4977         Pass eni_size_weights to estimate_num_insns.
4978         * tree.h (init_inline_once): Export.
4979         * toplev.c (backend_init): Call init_inline_once.
4980         * cgraphunit.c (cgraph_process_new_functions,
4981         cgraph_analyze_function): Pass eni_inlining_weights to
4982         estimate_num_insns.
4983         * ipa-inline.c (compute_inline_parameters): Ditto.
4984         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
4985         to estimate_num_insns.
4986         (try_unroll_loop_completely): Pass eni_size_weights to
4987         tree_num_loop_insns.
4988         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
4989         ot estimate_num_insns.
4990         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
4991         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
4992         * tree-inline.c (eni_inlining_weights, eni_size_weights,
4993         eni_time_weights): New variables.
4994         (init_inline_once): Initialize them.
4995         (struct eni_data): Mew.
4996         (estimate_num_insns_1, estimate_num_insns): Use weights.
4997         * tree-inline.h (struct eni_weights_d): New.
4998         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
4999         (estimate_num_insns): Declaration changed.
5000         * cfgloop.h (tree_num_loop_insns): Declaration changed.
5001         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
5002         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
5004 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
5006         * tree-data-ref.c (conflict_fn): Assert that the number of affine
5007         relations in the conflict function is valid.
5009 2007-01-27  Ian Lance Taylor  <iant@google.com>
5011         * common.opt: Add fstrict-overflow.
5012         * opts.c (decode_options): Set flag_strict_overflow if -O2.
5013         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
5014         (TYPE_OVERFLOW_UNDEFINED): Define.
5015         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
5016         Replace all uses.
5017         * tree.h (TYPE_TRAP_SIGNED): Don't define.
5018         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
5019         (fold_negate_expr): Likewise.
5020         (make_range): Likewise.
5021         (extract_muldiv_1): Likewise.
5022         (maybe_canonicalize_comparison): Likewise.
5023         (fold_comparison): Likewise.
5024         (fold_binary): Likewise.
5025         (tree_expr_nonnegative_p): Likewise.
5026         (tree_expr_nonzero_p): Likewise.
5027         * tree-vrp.c (compare_values): Likewise.
5028         (extract_range_from_binary_expr): Likewise.
5029         (extract_range_from_unary_expr): Likewise.
5030         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
5031         Likewise.
5032         (nowrap_type_p): Likewise.
5033         * tree-scalar-evolution.c (simple_iv): Likewise.
5034         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
5035         (build_range_check): Likewise.
5036         (extract_muldiv_1): Likewise.
5037         (fold_comparison): Likewise.
5038         * tree-vrp.c (vrp_int_const_binop): Likewise.
5039         (extract_range_from_unary_expr): Likewise.
5040         * convert.c (convert_to_integer): Likewise.
5041         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
5042         (fold_comparison): Likewise.
5043         (fold_binary): Likewise.
5044         * optabs.c (optab_for_tree_code): Likewise.
5045         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
5046         * simplify-rtx.c (simplify_const_relational_operation): Check
5047         flag_strict_overflow and flag_trapv.
5048         (simplify_const_relational_operation): Likewise.
5049         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
5050         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
5051         -fstrict-overflow.
5053 2007-01-27  Roger Sayle  <roger@eyesopen.com>
5055         * tree.c (tree_fold_gcd): Delete.
5056         * tree.h (tree_fold_gcd): Remove prototype.
5057         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
5058         test whether one constant integer is a multiple of another.  Instead
5059         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
5060         * fold-const.c (multiple_of_p):  We've determined both TOP and
5061         BOTTOM are integer constants so we can call int_const_binop directly
5062         instead of the more generic const_binop.
5064 2007-01-27  Roger Sayle  <roger@eyesopen.com>
5066         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
5067         1*X check that the constant hasn't overflowed, to preserve the
5068         TREE_OVERFLOW bit.
5069         (round_up): Provide an efficient implementation when rouding-up an
5070         INTEGER_CST to a power-of-two.
5072 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5074         * doc/sourcebuild.texi: Add comma for clarity.
5075         * doc/extend.texi: Fix some typos.
5076         * doc/passes.texi: Likewise.
5077         * doc/cppinternals.texi: Likewise.
5078         * doc/c-tree.texi: Likewise.
5079         * doc/tree-ssa.texi: Likewise.
5080         * doc/install.texi: Likewise.
5082 2007-01-27  Jan Hubicka  <jh@suse.cz>
5084         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
5085         (pass_sra): Do not require alias information.
5086         * passes.c (init_optimization_passes): Add SRA
5088 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
5090         * tracer.c (rest_of_handle_tracer): We already cleaned
5091         up the CFG in tracer() so don't do it here again.
5092         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
5093         cleanup_cfg here, either.  And don't call renumber_insns.
5095         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
5096         and BB_HEAD are in the insn stream here.  Instead make sure
5097         that BB_INSN is valid on all insns.  Also, do check here that
5098         there are no pending branch predictions...
5099         (rtl_verify_flow_info): ...instead of doing it here.  Checks
5100         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
5101         here.
5103 2007-01-26  Roger Sayle  <roger@eyesopen.com>
5105         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
5106         function to simplify/factorize operand order canonicalization.
5107         (ix86_fixup_binary_operands): Reorganize using the above function.
5108         (ix86_binary_operator_ok): Likewise.
5110 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
5112         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
5113         file scope from optimize_attrs.
5114         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
5115         up search.
5116         (optimize_attrs): Clear insn_code_values after freeing it.
5118 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
5120         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
5121         a parts.base assignment.
5123 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
5125         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
5126         (compute_subscript_distance, initialize_data_dependence_relation,
5127         finalize_ddr_dependent, analyze_ziv_subscript,
5128         analyze_siv_subscript_cst_affine,
5129         compute_overlap_steps_for_affine_univar,
5130         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5131         analyze_siv_subscript, analyze_miv_subscript,
5132         analyze_overlapping_iterations, subscript_dependence_tester_1,
5133         compute_self_dependence, free_dependence_relation): Work
5134         with affine_fn instead of chrecs.
5135         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
5136         common_affine_function, affine_function_base,
5137         affine_function_constant_p, affine_fn_op, affine_fn_plus,
5138         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
5139         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
5140         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
5141         (all_chrecs_equal_p): Removed.
5142         * tree-data-ref.h (affine_fn, conflict_function): New types.
5143         (struct subscript): Change type of conflicting_iterations_in_a
5144         and conflicting_iterations_in_b.
5146 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
5148         PR other/30182
5149         * config/pa/pa.h (TARGET_HPUX_11): New.
5150         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
5151         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
5153 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
5154         Richard Guenther  <rguenther@suse.de>
5156         * tree-ssa-structalias.c (solve_graph): Handle case
5157         we merged the variable to another.
5159 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5161         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
5162         functions.
5164         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
5165         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
5167 2007-01-25  DJ Delorie  <dj@redhat.com>
5169         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
5170         allow changes to modes which don't fit in those registers.
5172         * reload1.c (choose_reload_regs): Check for invalid subregs before
5173         computing their locations, not after.
5175 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
5177         PR 25127
5178         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
5179         save Altivec registers in an eh_return function.
5180         (compute_vrsave_mask): Likewise.
5181         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
5182         for saving Altivec registers.
5183         (rs6000_emit_prologue): Don't allocate stack twice in
5184         eh_return function.  Correct expected value of altivec_save_offset
5185         when using save_world.  Describe save of R0 to stack when using
5186         save_world.  Describe stack pointer adjustment when using
5187         save_world.  Remove duplicated eh_return parameter register saving.
5188         Update sp_offset variable after save_world.
5189         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
5190         darwin-world.asm.
5191         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
5192         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
5193         implies Altivec.
5195 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
5197         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
5199 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
5201         PR other/30182
5202         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
5203         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
5205 2007-01-25  Richard Guenther  <rguenther@suse.de>
5207         * doc/invoke.texi (-Wcoverage-mismatch): Document.
5208         * common.opt (-Wcoverage-mismatch): New warning option.
5209         * coverage.c (get_coverage_counts): Ignore coverage mismatch
5210         if -Wcoverage-mismatch is given.
5212 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
5214         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
5215         (ipcp_driver): Change to static definition.
5216         Add dumping of the ifunctions.
5217         (constant_val_insert): Remove unused parameter. Support for SSA.
5218         (ipcp_propagate_const): Support for SSA.
5219         (ipcp_profile_bb_print): Print only analyzed nodes.
5220         (ipcp_replace_map_create): Remove support for Fortran constant
5221         for now.
5222         * ipa-prop.c (ipa_method_modify_stmt,
5223         ipa_callsite_compute_param): Support for SSA.
5224         * ipa-prop.h (ipcp_driver): Remove declaration.
5225         (IS_VALID_TREE_MAP_INDEX): Add define.
5227 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
5229         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
5231 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5233         PR middle-end/30447
5234         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
5235         constant argument to cabs and do it without checking for
5236         -funsafe-math-optimizations.
5238 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
5240         * c-common.h (RID_FIRST_CXX0X): New.
5241         (RID_LAST_CXX0X): New.
5242         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
5243         by -Wall.
5244         * c.opt (Wc++0x-compat): New.
5245         * doc/invoke.texi (-Wc++0x-compat): Document.
5247 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5249         * builtins.c (fold_builtin_carg): New.
5250         (fold_builtin_1): Use it.
5252 2007-01-24  Jan Hubicka  <jh@suse.cz>
5254         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
5256         * ipa-inline.c (initial_insns, max_insns): Delete.
5257         (compute_max_insns): New function.
5258         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
5259         of insns as base for code growth.
5260         (cgraph_decide_inlining): Make initial_insns local; do not compute
5261         max_insns.
5262         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
5263         * doc/invoke.texi (inline-unit-growth): Update docs.
5265 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
5267         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
5268         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
5269         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
5270         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
5271         for CPUs that have PTA_CX16 set.
5273         PR middle-end/27416
5274         * gimplify.c (omp_check_private): New function.
5275         (gimplify_scan_omp_clauses): Use it for
5276         firstprivate/lastprivate/reduction.
5278         PR middle-end/30494
5279         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
5280         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
5282         PR middle-end/30421
5283         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
5284         If lower_lastprivate_clauses emits some statements, append them
5285         to dlist rather than body_p and to body_p append an initializer.
5286         (lower_omp_for): Adjust caller.
5288 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
5290         * target.h (globalize_decl_name): New.
5291         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
5292         * output.h (default_globalize_decl_name): New.
5293         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
5294         globalize_label.
5295         (globalize_decl): Ditto.
5296         (default_globalize_decl_name): New.
5297         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
5298         (ia64_handle_version_id_attribute): New.
5299         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
5300         (ia64_asm_output_external): Use globalize_decl_name instead
5301         of globalize_label.
5302         * doc/extend.texi (version_id): New pragma.
5303         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
5305 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
5307         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
5308         _uleb128_t and _Unwind_SWord with _sleb128_t.
5309         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
5310         uw_frame_state_for, uw_update_context_1): Likewise.
5311         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
5312         * unwind-pe.h (read_uleb128, read_sleb128,
5313         read_encoded_value_with_base): Likewise.
5314         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
5316 2007-01-24  Richard Guenther  <rguenther@suse.de>
5318         * builtins.c (expand_builtin_cexpi): Get the fndecl
5319         for cexp in the correct way.
5321 2007-01-24  Jan Hubicka  <jh@suse.cz>
5323         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
5325 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
5327         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
5328         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
5329         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
5330         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
5331         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
5332         __SIZEOF_PTRDIFF_T__.
5333         * doc/cpp.texi: Documentation for the new builtin macros added.
5335 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
5337         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
5338         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
5339         instead of operands[2] to avoid access past the end of array.
5341 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
5343         * reload1.c (emit_reload_insns): Pass the reload register
5344         for a non-spill output reload through forget_old_reloads_1.
5346 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
5348         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5349         _SOFT_DOUBLE if doubles use software floating-point.
5350         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
5351         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
5352         * config/rs6000/darwin-ldouble.c: Also compile functions for
5353         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
5354         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
5355         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
5356         commented-out long double override.
5357         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
5358         * config/rs6000/eabispe.h: Likewise.
5359         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
5360         long double for non-SPE.
5361         (rs6000_handle_option): Likewise.
5362         (invalid_e500_subreg): Disallow more subregs involding DImode,
5363         DFmode, TImode or TFmode.
5364         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
5365         E500 double.
5366         (legitimate_lo_sum_address_p): Also check for TFmode for E500
5367         double.
5368         (rs6000_legitimize_address): Also handle TFmode for E500 double.
5369         (rs6000_legitimize_reload_address): Also handle TFmode for E500
5370         double.
5371         (rs6000_legitimate_address): Also check for TFmode for E500
5372         double.
5373         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
5374         (spe_build_register_parallel): Handle TFmode and TCmode.
5375         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
5376         double.
5377         (function_arg): Handle TFmode and TCmode for E500 double.
5378         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
5379         in general.
5380         (print_operand): Handle TFmode and TImode for %y.
5381         (rs6000_generate_compare): Handle TFmode comparisons for E500
5382         double.
5383         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
5384         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
5385         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
5386         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
5387         TFmode for E500 double.
5388         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
5389         (floatsidf2): Enable for E500 double.
5390         (movtf_softfloat): Use rs6000_nonimmediate_operand.
5391         (extenddftf2): Change to extenddftf2_fprs.
5392         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
5393         depending on TARGET_E500_DOUBLE.
5394         (extendsftf2): Enable for E500 double.
5395         (trunctfdf2): Enable for E500 double.
5396         (trunctfsf2): Change to trunctfsf2_fprs.
5397         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
5398         depending on TARGET_E500_DOUBLE.
5399         (floatsitf2): Enable for E500 double.
5400         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
5401         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
5402         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
5403         (negtf2): Change to negtf2_internal.
5404         (negtf2): New expander.
5405         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
5406         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
5407         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
5408         (movdi_internal32): Use rs6000_nonimmediate_operand.
5409         (unnamed splitter): Likewise.
5410         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
5411         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
5412         (SPE64TF, DITI): New mode macros.
5413         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
5414         modes.
5415         (frob_tf_ti): New.
5416         (frob_<mode>_di_2): New.
5417         (frob_tf_di_8_2): New.
5418         (frob_di_df): Change to frob_di_<mode>; allow more modes.
5419         (frob_ti_tf): New.
5420         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
5421         more modes.
5422         (frob_ti_<mode>_8_2): New.
5423         (frob_ti_tf_2): New.
5424         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
5425         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
5426         TFmode.
5427         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
5428         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
5429         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
5430         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
5431         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
5432         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
5433         tsttflt_gp): New.
5435 2007-01-23  Ian Lance Taylor  <iant@google.com>
5437         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
5438         insn-*.o first.
5439         (OBJS-archive): Reformat, alphabetize.
5440         (OBJS): Change out_object_file to OBJS-md.
5442 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
5444         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
5445         JUMP_P and CALL_P predicates where applicable.
5446         * config/i386/i386.c: Ditto.
5447         * config/i386/i386.md: Ditto.
5448         * config/i386/mmx.md: Ditto.
5449         * config/i386/predicates.md: Ditto.
5451 2007-01-22  Andreas Schwab  <schwab@suse.de>
5453         * config/m68k/m68k.h: Fix comment.
5455 2007-01-22  Jan Hubicka  <jh@suse.cz>
5457         * passes.c (init_optimization_passes): Do not rerun
5458         pass_early_warn_uninitialized.
5460 2007-01-22  Richard Guenther  <rguenther@suse.de>
5462         PR tree-optimization/30038
5463         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
5464         function.
5465         (execute_cse_sincos_1): Likewise.
5466         (execute_cse_sincos): Likewise.
5467         (gate_cse_sincos): Likewise.
5468         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
5469         the cexpi() canonicalization of sincos().
5470         * tree-pass.h (pass_cse_sincos): Declare.
5471         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
5473 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
5475         PR rtl-optimization/29329
5476         * combine.c (replaced_rhs_insn): Rename to i2mod.
5477         (replaced_rhs_value): Rename to i2mod_new_rhs.
5478         (i2mod_old_rhs): New global variable.
5479         (combine_instructions): Adjust for above change.  Save a copy of
5480         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
5481         note are substituted in the second instruction.
5482         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
5483         ditch the note if it pertains to the second eliminated register
5484         and this register is mentioned in i2mod_old_rhs.
5486         Revert:
5487         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
5489         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
5490         the insn to which the note was originally attached.
5492 2007-01-21  Jan Hubicka  <jh@suse.cz>
5494         * ipa-inline.c (inlining_mode): Comment, move up.
5495         (cgraph_decide_inlining_incrementally): Do not perform inlining
5496         itself; fix handling of flattening of self recursive functions.
5497         (cgraph_find_cycles): Remove.
5498         (cgraph_flatten_node): Remove.
5499         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
5500         (try_inline): New function.
5501         (cgraph_early_inlining): Update call of
5502         cgraph_decide_inlining_incrementally.  Apply inlining here.
5503         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
5505 2007-01-21  Dirk Mueller  <dmueller@suse.de>
5507         PR bootstrap/30511
5508         * tree-vrp.c (check_array_bounds): do not warn
5509         about ADDR_EXPR's of ARRAY_REF's which are immediately
5510         used in binary expressions.
5512 2007-01-21  Ira Rosen  <irar@il.ibm.com>
5514         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
5515         read_write_dep and macros for its access.
5516         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
5517         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
5518         argument, call vect_check_interleaving for every independent pair of
5519         data-refs. Mark loads that access the same memory location as a store
5520         in the loop.
5521         (vect_check_dependences): Remove.
5522         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
5523         call, fix the call to vect_analyze_data_ref_dependence.
5524         (vect_analyze_data_ref_access): For statements that access the same
5525         data-ref, check that they are not stores; for loads, check that there
5526         is no store that access the same location.
5528 2007-01-20  Roger Sayle  <roger@eyesopen.com>
5529             Joseph Myers  <joseph@codesourcery.com>
5531         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
5532         (-fdump-rtl-stack): Likewise.
5533         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
5534         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
5535         (-mpt-fixed): Use @minus{} for minus sign.
5536         (Using Precompiled Headers): Fix under/overfull hbox.
5538 2007-01-20  Jan Hubicka  <jh@suse.cz>
5540         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
5541         place within annotation.
5543 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5545         * pa.c (output_move_double): Change array size of xoperands to 4.
5547 2007-01-20  Jan Hubicka  <jh@suse.cz>
5549         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
5550         as temporary.
5552 2007-01-19  Ian Lance Taylor  <iant@google.com>
5554         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
5555         constant to unsigned HOST_WIDE_INT before negating.
5557 2007-01-19  Ian Lance Taylor  <iant@google.com>
5559         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
5560         to unsigned.
5561         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
5562         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
5563         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
5564         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
5565         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
5566         (realloc_vdef, realloc_vuse): Change second parameter to
5567         unsigned.
5568         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
5569         fields to unsigned.
5570         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
5571         unsigned. Change x and lim locals to unsigned.
5572         (realloc_vdef, realloc_vuse): Change num_elem parameter to
5573         unsigned.
5574         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
5575         (copy_virtual_operands): Change i and n locals to unsigned.
5577 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5579         PR middle-end/29335
5580         * builtins.c (fold_builtin_1): Handle builtin fdim.
5582 2007-01-20  Jan Hubicka  <jh@suse.cz>
5584         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
5585         * tree-ssa-structalias.c (compute_points_to_sets): Do call
5586         init_alias_heapvars.
5587         (init_alias_heapvars): Initialize only when not already initialized.
5588         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
5590 2007-01-19  Roger Sayle  <roger@eyesopen.com>
5592         * common.opt (fsigned-zeros): New command line option.
5593         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
5594         of flag_unsafe_math_optimizations.
5595         * opts.c (set_fast_math_flags): The -ffast-math command line option
5596         implies -fno-signed-zeros.
5597         (fast_math_flags_set_p): Likewise.
5599         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
5600         the documentation of -ffast-math appropriately.  Wrap long lines.
5602 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
5604         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
5605         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
5607 2007-01-19  Tomas Bily  <tbily@suse.cz>
5609         * cgraphunit.c (cgraph_finalize_function): Updating of pid
5610         * tree-profile.c:
5611         (tree_init_ic_make_global_vars): New function
5612         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
5613         (tree_gen_ic_profiler): New function
5614         (tree_gen_ic_func_profiler): New function
5615         (tree_profiling): Added calling of tree_gen_ic_func_profiler
5616         (tree_profile_hooks): Added hook for indirec/virtual calls
5617         * value-prof.c (tree_find_values_to_profile): New case for
5618         indirect calls
5619         (tree_values_to_profile): Call for determining indirect/virtual
5620         counters
5621         (tree_indirect_call_to_profile): New function
5622         (tree_ic_transform): New function
5623         (tree_ic): New function
5624         (find_func_by_pid): New function
5625         (init_pid_map): New function
5626         (tree_value_profile_transformations): Added check for
5627         indirect/virtual call transformation
5628         * value-prof.h (enum hist_type): New counter type for
5629         indirect/virtual calls
5630         (profile_hooks): Added new hook for profiling indirect/virtual
5631         calls
5632         * profile.c (instrument_values): New case for indirect/virtual
5633         call added
5634         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
5635         (GCOV_COUNTER_V_INDIR): New counter type
5636         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
5637         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
5638         call added
5639         * cgraph.c: Definition of cgraph_max_pid
5640         (cgraph_create_node): Default init of pid attribute
5641         * cgraph.h: Declaration of cgraph_max_pid
5642         (struct cgraph_node): Added pid attribute
5643         * libgcov.c (__gcov_indirect_call_profiler): New function
5644         (__gcov_one_value_profiler_body): New function
5645         (__gcov_one_value_profiler): Body was moved to
5646         __gcov_one_value_profiler_body and calls it
5648 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
5650         * doc/gty.texi (Options): Document the mark_hook option to GTY.
5651         * gengtype.c (write_types_data, write_func_for_structure,
5652         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
5653         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
5654         (walk_type, write_func_for_structure): Generate the mark_hook if
5655         needed.
5657 2007-01-19  Jan Hubicka  <jh@suse.cz>
5659         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
5660         'early' argument take inlining mode argument specifying whether to
5661         inline for size/speeed or all functions; add support for flattening;
5662         improve dumpting.
5663         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
5665 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5667         PR c++/17947
5668         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
5669         the name of the declared identifier.
5671 2007-01-19  Dirk Mueller  <dmueller@suse.de>
5673         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
5674         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
5675         duplicate evaluation.
5677 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
5679         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
5680         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
5681         to XFMode, use acosxf2 and truncate result to requested mode.
5682         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
5683         (asin<mode>2): Similarly, with asin expanders.
5684         (*fscalexf4_i387): Rename from *fscalexf4.
5685         (expNcorexf3): New expander.
5686         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
5687         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
5688         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
5689         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
5690         patterns for SSE math.
5691         (exp10<mode>2): Similarly, with exp10 expanders.
5692         (exp2<mode>2): Similarly, with exp2 expanders.
5693         (expm1<mode>2): Similarly, with expm1 expanders.
5694         (ldexp<mode>3): Similarly, with ldexp expanders.
5695         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
5696         Use gen_truncxf<mode>2_i387_noop to truncate result.
5698 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5700         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
5701         for ColdFire targets.
5703 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
5704             Richard Sandiford  <richard@codesourcery.com>
5706         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
5707         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
5708         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
5709         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
5710         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
5711         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
5713 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5715         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
5716         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
5717         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
5718         (*adddi_dilshr32_cf): New pattern.
5719         (adddi3, subdi3): Remove first alternatives.
5721 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5723         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
5724         implemented using move.l, do not use its cc result for floating-point
5725         comparisons.
5727 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5729         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
5730         from accepting 's' constraints if flag_pic.
5732 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5734         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
5735         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
5736         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
5737         condition from TARGET_68881 to TARGET_HARD_FLOAT.
5739 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
5741         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
5742         ColdFire alternatives.
5743         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
5744         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
5745         architectures that support ff1 instruction.
5747 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5748             Julian Brown  <julian@codesourcery.com>
5750         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
5751         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
5752         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
5753         Add commentary.
5755 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
5757         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
5758         and return a bool.
5759         (output_move_const_into_data_reg, output_move_simode_const): Delete.
5760         * config/m68k/m68k.c (const_method, const_int_cost): Take a
5761         HOST_WIDE_INT instead of an rtx.
5762         (m68k_rtx_costs): Update call accordingly.
5763         (output_move_const_into_data_reg): Likewise.  Fix formatting.
5764         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
5765         Return a bool.
5766         (output_move_simode_const): Update calls after above changes.
5767         Rework to use automatic variables and predicates like MEM_P.
5768         * config/m68k/m68k.md (pushexthisi_const): Update call to
5769         valid_mov3q_const.
5771 2007-01-19  Dirk Mueller  <dmueller@suse.de>
5773         * tree-ssa-alias.c (perform_var_substitution): Fix typo
5774         in dump_flags test.
5776 2007-01-19  Richard Guenther  <rguenther@suse.de>
5778         * builtins.c (expand_builtin_cexpi): Fall back to expanding
5779         via cexp in case sincos is not available.
5781 2007-01-19  Richard Guenther  <rguenther@suse.de>
5783         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
5784         * defaults.h (TARGET_HAS_SINCOS): Default to off.
5785         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
5786         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
5787         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
5788         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
5789         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
5790         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
5792 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
5794         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
5795         New insn patterns.
5796         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
5797         (atan2xf3): Directly generate RTL pattern.
5798         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
5799         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
5800         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
5801         disable patterns for SSE math.
5802         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
5803         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
5804         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
5805         disable patterns for SSE math.
5807 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
5809         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
5811 2007-01-18  Roger Sayle  <roger@eyesopen.com>
5813         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
5814         VIEW_CONVERT_EXPR to the same type as it's operand.
5816 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
5818         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
5819         configured for long double 128.
5821 2007-01-18  Mike Stump  <mrs@apple.com>
5823         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
5824         error.
5826 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
5828         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
5829         type correct.
5831 2007-01-18  Jan Hubicka  <jh@suse.cz>
5833         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
5834         greater than NUM_VOP_FREE_BUCKETS.
5836 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
5838         * tree-ssa-structalias.c: Update comments.
5839         (ptabitmap_obstack): Removed.
5840         (pta_obstack): New.
5841         (oldpta_obstack): Ditto.
5842         (stats): Add a few members.
5843         (struct variable_info): Remove node, complex, address_taken, and
5844         indirect_target members. Add oldsolution member.
5845         (new_var_info): Do not initialize removed members.
5846         (constraint_expr_type): Remove INCLUDES.
5847         (constraint_graph): Add size, implicit_preds, rep,
5848         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
5849         (FIRST_REF_NODE): New macro.
5850         (LAST_REF_NODE): Ditto.
5851         (FIRST_ADDR_NODE): Ditto.
5852         (find): New function.
5853         (unite): Ditto.
5854         (dump_constraint): Do not handle INCLUDES.
5855         (insert_into_complex): Do not insert duplicate constraints.
5856         (condense_varmap_nodes): Renamed and rewritten into ...
5857         (merge_node_constraints): This. Also fix bug in handling of
5858         offseted copy constraints.
5859         (clear_edges_for_node): No longer need to deal with preds at all,
5860         or removing associated preds/succs.
5861         (merge_graph_nodes): Deal with indirect_cycles.
5862         Don't deal with predecessors.
5863         (add_implicit_graph_edge): New function.
5864         (add_pred_graph_edge): Ditto.
5865         (add_graph_edge): Don't deal with predecessors.
5866         (build_constraint_graph): Removed.
5867         (build_pred_graph): New function.
5868         (build_succ_graph): Ditto.
5869         (struct scc_info): Removed in_component. Added roots, dfs, and
5870         node_mapping. Remove visited_index, unification_queue.
5871         (scc_visit): Deal with union-find we do now.
5872         Deal with cycles with REF nodes.
5873         (collapse_nodes): Renamed and rewritten to ...
5874         (unify_nodes): This.
5875         (process_unification_queue): Removed.
5876         (topo_visit): Cleanup
5877         (do_da_constraint): Use find.
5878         (do_sd_constraint): Ditto.
5879         (do_ds_constraint): Ditto.
5880         (do_complex_constraint): Ditto.
5881         (init_scc_info): Update for removed and added members.
5882         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
5883         (find_indirect_cycles): This.
5884         (equivalence_class): New variable.
5885         (label_visit): New function.
5886         (perform_variable_substitution): Rewritten.
5887         (free_var_substitution_info): New function.
5888         (find_equivalent_node): Ditto.
5889         (move_complex_constraints): Ditto.
5890         (eliminate_indirect_cycles): Ditto.
5891         (solve_graph): Only propagate changed bits.
5892         Use indirect cycle elimination.
5893         Use find.
5894         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
5895         (tree_id_eq): Renamed to ...
5896         (tree_vi_eq): This. Update for member change
5897         (insert_id_for_tree): Renamed and rewritten to ...
5898         (insert_vi_for_tree): This.
5899         (lookup_id_for_tree): Renamed and rewritten to ...
5900         (lookup_vi_for_tree): This.
5901         (get_id_for_tree): Renamed and rewritten to ...
5902         (get_vi_for_tree): Ditto.
5903         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
5904         (process_constraint): Don't handle INCLUDES.
5905         Remove special ADDRESSOF case.
5906         (find_func_aliases): Rewrite to use vi functions instead of id
5907         ones.
5908         (create_function_info_for): Ditto.
5909         (create_variable_info_for): Ditto.
5910         (intra_create_variable_infos): Ditto.
5911         (merge_smts_into): Ditto.
5912         (find_what_p_points_to): Ditto.
5913         (init_base_vars): Ditto.
5914         (init_alias_vars): Ditto.
5915         (remove_preds_and_fake_succs): New function.
5916         (dump_sa_points_to_info): Dump new stats.
5917         (dump_solution_for_var): Use find.
5918         (set_used_smts): Fix formatting.
5919         (compute_points_to_sets): Updated for new functions.
5920         (ipa_pta_execute): Ditto.
5922 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
5923             Richard Sandiford  <richard@codesourcery.com>
5925         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
5926         parallels.
5927         * calls.c (expand_call): If the return value is a PARALLEL,
5928         extract its first member.
5929         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
5930         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
5931         use FUNCTION_EXTRA_EPILOGUE.
5932         (m68k_function_value): Return a PARALLEL if the return value
5933         is of a pointer type.
5934         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
5935         (FUNCTION_EXTRA_EPILOGUE): Remove.
5936         * config/m68k/m68k.md (D0_REG): New constant.
5938 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
5940         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
5941         output a NOP for empty epilogues.
5943 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
5945         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
5946         before function.  Extend register save check to include all
5947         registers, not just integer ones.
5949 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
5951         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
5952         (m68k_use_return_insn): ...this.
5953         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
5954         * config/m68k/m68k.c (use_return_insn): Rename to...
5955         (m68k_use_return_insn): ...this.
5956         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
5957         of USE_RETURN_INSN.
5959 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
5961         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
5962         nearest even, fix denormal rounding overflow.
5964 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
5966         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
5967         f%$smove and f%$move.
5968         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
5969         (extendsfdf2_cf): Use fdmove instead of f%&move.
5970         (truncdfsf2_cf): Use fsmove instead of f%$smove.
5971         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
5973 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
5975         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
5976         GPR<-GPR moves.
5978 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
5980         * real.h (real_format): Add a canonical_nan_lsbs_set field.
5981         (coldfire_single_format): Declare.
5982         (coldfire_double_format): Likewise.
5983         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
5984         of qnan_msb_set to determine the lower bits of a canonical
5985         NaN significand.
5986         (encode_ieee_double): Likewise.
5987         (encode_ieee_quad): Likewise.
5988         (ieee_single_format): Initialize canonical_nan_lsbs_set.
5989         (mips_single_format): Likewise.
5990         (ieee_double_format): Likewise.
5991         (mips_double_format): Likewise.
5992         (ieee_extended_motorola_format): Likewise.
5993         (ieee_extended_intel_96_format): Likewise.
5994         (ieee_extended_intel_128_format): Likewise.
5995         (ieee_extended_intel_96_round_53_format): Likewise.
5996         (ibm_extended_format): Likewise.
5997         (mips_extended_format): Likewise.
5998         (ieee_quad_format): Likewise.
5999         (mips_quad_format): Likewise.
6000         (vax_f_format): Likewise.
6001         (vax_d_format): Likewise.
6002         (vax_g_format): Likewise.
6003         (i370_single_format): Likewise.
6004         (i370_double_format): Likewise.
6005         (decimal_single_format): Likewise.
6006         (decimal_double_format): Likewise.
6007         (decimal_quad_format): Likewise.
6008         (c4x_single_format): Likewise.
6009         (c4x_extended_format): Likewise.
6010         (real_internal_format): Likewise.
6011         (coldfire_single_format): New real_format.
6012         (coldfire_double_format): Likewise.
6013         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
6014         canonical_nan_lsbs_set.
6015         (pdp11_d_format): Likewise.
6016         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
6017         if TARGET_COLDFIRE_CPU.
6019 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6021         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
6022         (output_call, m68k_legitimize_call_address): Declare.
6023         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
6024         parenthesees.  Add support for a 'W' constraint.
6025         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
6026         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
6027         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
6028         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
6029         variables.
6030         (override_options): Initialize them.  Do not set flag_no_function_cse
6031         for TARGET_ID_SHARED_LIBRARY.
6032         (m68k_output_pic_call): Delete.
6033         (m68k_legitimize_call_address): New function.
6034         (print_operand): Remove the %o prefix.  Handle the %p prefix.
6035         (output_call): New function.
6036         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
6037         target address from the GOT if symbolic jumps are not allowed.
6038         * config/m68k/m68k.md (call, general_operand): Do not set
6039         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
6040         Merge separate flag_pic and !flag_pic define_insns into...
6041         (*call, *call_value): ...these new patterns.  Match the address
6042         rather than the containing MEM and require it to be a call_operand.
6043         Use output_call to generate the asm template.
6044         * config/m68k/predicates.md (const_call_operand): New predicate.
6045         (call_operand): Likewise.
6047 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6049         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
6050         (STACK_GROWS_DOWNWARD): Define to 1.
6051         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
6052         comments, emphasizing that these values are only defaults.
6053         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
6054         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
6056 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6058         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
6060 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
6061             Richard Sandiford  <richard@codesourcery.com>
6063         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
6064         (FP_REGNO_P): New macros.
6065         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
6066         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
6067         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
6068         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
6070 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6072         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6073         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
6074         to $tmake_file.
6075         * config/m68k/t-floatlib: New file, extracting common code from...
6076         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
6077         * config/m68k/t-uclinux: Here.
6078         * config/m68k/fpgnulib.c: Do not compile extendeed precision
6079         routines on ColdFire targets.
6081 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6083         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6084         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
6085         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
6086         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
6087         explicitly set MOTOROLA to 1.
6088         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
6090 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6091             Nathan Sidwell  <nathan@codesourcery.com>
6093         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
6094         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
6095         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
6096         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
6097         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
6098         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
6099         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6100         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
6101         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
6102         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
6103         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
6104         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
6105         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
6106         (DBX_REGISTER_NUMBER): Delete.
6107         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
6108         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
6109         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
6111 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6113         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
6114         * config/flat.h: New file.
6115         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
6116         OBJECT_FORMAT_FLAT.
6117         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
6118         indirect references for -msep-data or -mid-shared-library.
6119         Do not use PC-relative code addresses either.
6120         * config/m68k/m68k.c (override_options): Restrict -fPIC error
6121         to -mpcrel.
6122         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
6123         for shared libraries and crt1.o for executables.  Use crti.o and
6124         crtbegin.o.
6125         (ENDFILE_SPEC): Use crtend.o and crtn.o.
6126         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
6127         Do not add -elf2flt or -shared-lib-id options here.
6128         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
6129         Pass -shared-lib-id if -mid-shared-library, taking the library
6130         identifier from -mshared-library-id if given, otherwise
6131         defaulting to 0.
6132         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
6133         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
6134         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
6135         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
6136         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
6137         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
6138         and crtend.o.
6139         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
6140         jump sequence for ISA A and ISA A+.
6141         (PICJUMP): Likewise.
6143 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6145         * config.gcc (m68k-*-uclinux*): Base the port on the common
6146         and m68k GNU/Linux files rather than on the generic ELF ones.
6147         * config/m68k/uclinux.h (TARGET_VERSION): Override.
6148         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
6150 2007-01-18  Julian Brown  <julian@codesourcery.com>
6151             Richard Sandiford  <richard@codesourcery.com>
6153         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
6154         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6155         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
6156         before redefining.
6157         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
6158         80 unconditionally.
6159         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6161 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6163         * doc/install.texi: Document m68k-uclinuxoldabi.
6164         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
6165         * config/m68k/uclinux-oldabi.h: New file, copied from
6166         config/m68k/uclinux.h.
6168 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6170         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
6171         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
6172         (m32r_compute_frame_size): Use unsigned for regno.
6173         (m32r_reload_lr): Use gen_frame_mem.
6174         (pop): New.
6175         (m32r_output_function_epilogue): Don't output the function epilogue
6176         textually here.
6177         (m32r_expand_epilogue): New.
6178         (direct_return): Return false if the function has the interrupt
6179         attribute.
6180         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
6181         * config/m32r/m32r.md (epilogue): New expander.
6182         (return_lr, return_rte): New insns.
6183         (return): Make it expander.
6184         (return_normal): New expander.
6186 2007-01-18  Josh Conner  <jconner@apple.com>
6188         PR target/30485
6189         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
6190         support for UNLE, UNLT, UNGE, and UNGT.
6192 2007-01-18  Jan Hubicka  <jh@suse.cz>
6194         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
6195         * tree-tailcall (add_virtual_phis): Likewise.
6196         (optimize_tail_call): Return TODOs.
6197         (execute_tail_calls): Return TODOs.
6198         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
6199         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
6200         changed.
6201         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
6202         Cleanup cfg using TODO.
6203         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
6204         * passes.c (execute_function_todo): When cleanup did something, remove
6205         unused locals.
6206         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
6207         (make_edges): Don't cleanup_cfg.
6209 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
6211         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
6212         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
6213         operate on the top of stack.
6214         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
6215         register handling of instructions that output to the second
6216         stack slot.
6217         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
6218         (move_for_stack_reg): Special-case check for dead destination
6219         stack slot for constant load of 1.0 inside UNSPEC_TAN.
6221         * config/i386/i386.md (UNSPEC_TAN): New constant.
6222         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
6223         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
6224         to correctly model move of constant 1.0 to top stack slot.
6225         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
6226         (unnamed peephole2 pattern): Remove corresponding peephole2
6227         pattern that optimizes tan insn and loading of constant 1.0.
6228         (tanxf2): Use fptanxf4_i387.
6229         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
6230         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
6231         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
6232         disable patterns for SSE math.
6233         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
6234         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
6236 2007-01-18  Dirk Mueller  <dmueller@suse.de>
6237             Richard Guenther <rguenther@suse.de>
6239         PR diagnostic/8268
6240         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
6241         * common.opt (Warray-bounds): Add new warning option.
6242         * c-opts.c (c_common_handle_option): Define -Warray-bounds
6243         if -Wall is given.
6244         * Makefile.in: make tree-vrp.o depend on toplev.h
6245         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
6246         is enabled.
6247         (check_array_refs, check_array_bounds, check_array_ref): New.
6249 2007-01-18  Jan Hubicka  <jh@suse.cz>
6251         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
6252         (execute_ssa_ccp): Return flags conditionally.
6253         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
6254         changed.
6255         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
6257 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
6259         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
6260         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
6262         * Makefile.c (GTFILES): Add cfglayout.h.
6263         * gengtype.c (open_base_files): Likewise.
6264         * cfglayout.c (cfg_layout_function_footer,
6265         cfg_layout_function_header) Reindent to make gengtype happy.
6266         * cfglayout.h (cfg_layout_function_footer,
6267         cfg_layout_function_header): Add GTY(()) marker.
6269         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
6271 2007-01-18  Ben Elliston  <bje@au.ibm.com>
6273         * genautomata.c (write_automata): Include xstrerror output in the
6274         error message if writing the DFA description file fails.
6276 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6278         * config/mips/mips-protos.h (mips_output_external): Make it
6279         return void.
6280         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
6281         * config/mips/mips.c (irix_output_external_libcall): Likewise.
6282         (extern_list): Likewise.
6283         (extern_head): Likewise.
6284         (TARGET_ASM_FILE_END): Likewise.
6285         (mips_file_end): Likewise.
6286         (mips_output_external): Rewritten.
6288 2007-01-18  Ben Elliston  <bje@au.ibm.com>
6290         * genpreds.c (write_insn_preds_c): Only write out the function
6291         body for regclass_for_constraint if we have register constraints.
6293 2007-01-17  Tom Tromey  <tromey@redhat.com>
6295         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
6296         * doc/install.texi (Testing): Use sourceware.org.
6297         (Binaries): Likewise.
6298         (Specific): Likewise.
6299         * doc/contrib.texi (Contributors): Use sourceware.org.
6301 2007-01-17  Anatoly Sokolov <aesok@post.ru>
6303         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
6304         (AVR_ENHANCED): Rename to ...
6305         (AVR_HAVE_MUL): ... new.
6306         (avr_enhanced_p): Rename to ...
6307         (avr_have_mul_p): ... new.
6308         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
6309         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
6310         * config/avr/avr.c (avr_enhanced_p): Rename to ...
6311         (avr_have_mul_p): ... new.
6312         (base_arch_s): Rename 'enhanced' to 'have_mul'.
6313         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
6314         'avr_enhanced_p' and 'enhanced'.
6315         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
6316         AVR_HAVE_MUL instead of AVR_ENHANCED.
6317         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
6318         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
6319         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
6320         instead of AVR_ENHANCED.
6321         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
6322         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
6323         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
6325 2007-01-17  Ian Lance Taylor  <iant@google.com>
6327         * vec.h (VEC_reserve_exact): Define.
6328         (vec_gc_p_reserve_exact): Declare.
6329         (vec_gc_o_reserve_exact): Declare.
6330         (vec_heap_p_reserve_exact): Declare.
6331         (vec_heap_o_reserve_exact): Declare.
6332         (VEC_OP (T,A,reserve_exact)): New static inline function, three
6333         versions.
6334         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
6335         negative parameter.
6336         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
6337         (VEC_OP (T,A,copy)) [all versions]: Likewise.
6338         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
6339         * vec.c (calculate_allocation): Add exact parameter.  Change all
6340         callers.
6341         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
6342         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
6343         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
6344         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
6345         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
6346         (vec_heap_p_reserve_exact): New function.
6347         (vec_heap_o_reserve_exact): New function.
6349 2007-01-17  Jan Hubicka  <jh@suse.cz>
6351         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
6353 2007-01-17  Eric Christopher  <echristo@apple.com>
6355         * config.gcc: Support core2 processor.
6357 2007-01-16  Jan Hubicka  <jh@suse.cz>
6359         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
6360         the names, just unlink the chain so we don't crash on dangling pointers
6361         to dead SSA names.
6363 2007-01-16  Jan Hubicka  <jh@suse.cz>
6365         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
6366         * tree-pass.h: Reorder to make IPA passes appear toegher.
6367         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
6368         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
6369         parameters, do not call early inliner.
6370         * ipa-inline.c: Update comments.  Include tree-flow.h
6371         (cgraph_decide_inlining): Do not compute inlining parameters.
6372         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
6373         be called with function context set up.
6374         (pass_ipa_inline): Remove unreachable functions before pass.
6375         (cgraph_early_inlining): Simplify assuming to be called from the
6376         PM as local pass.
6377         (pass_early_inline): New pass.
6378         (cgraph_gate_ipa_early_inlining): New gate.
6379         (pass_ipa_early_inline): Turn into simple wrapper.
6380         (compute_inline_parameters): New function.
6381         (gate_inline_passes): New gate.
6382         (pass_inline_parameters): New pass.
6383         (apply_inline): Move here from tree-optimize.c
6384         (pass_apply_inline): New pass.
6385         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
6386         transforming.
6387         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
6388         doing them by hand.
6389         (tree_function_versioning): Do not allocate dummy struct function.
6390         * tree-inline.h (optimize_inline_calls): Update prototype.
6391         * tree-optimize.c (execute_fixup_cfg): Export.
6392         (pass_fixup_cfg): Remove
6393         (tree_rest_of_compilation): Do not apply inlines.
6394         * tree-flow.h (execute_fixup_cfg): Declare.
6395         * Makefile.in (gt-passes.c): New.
6396         * passes.c: Include gt-passes.h
6397         (init_optimization_passes): New passes.
6398         (nnodes, order): New static vars.
6399         (do_per_function_toporder): New function.
6400         (execute_one_pass): Dump current pass here.
6401         (execute_ipa_pass_list): Don't dump current pass here.
6403 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
6405         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
6406         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
6408 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
6410         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
6411         (strong_alias): Define.
6412         (__gcc_qmul): Provide non-FMA for soft-float.
6413         (__gcc_qdiv): Same.
6414         (__gcc_qneg): New.
6415         (__gcc_qeq): New.
6416         (__gcc_qle): New.
6417         (__gcc_qge): New.
6418         (__gcc_qunord): New.
6419         (__gcc_stoq): New.
6420         (__gcc_dtoq): New.
6421         (__gcc_qtos): New.
6422         (__gcc_qtod): New.
6423         (__gcc_qtoi): New.
6424         (__gcc_qtou): New.
6425         (__gcc_itoq): New.
6426         (__gcc_utoq): New.
6427         (fmsub): New.
6428         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
6429         soft-float functions.
6430         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
6431         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
6432         about long double soft float.
6434 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
6435             Tehila Meyzels  <tehila@il.ibm.com>
6437         * tree-vectorizer.h (is_pattern_stmt_p): New.
6438         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
6439         formatting (tabs instead of spaces). Cleanup and clarify setting
6440         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
6441         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
6442         (vectorizable_type_demotion): Check that types are integral.
6443         (vectorizable_type_promotion): Likewise.
6444         (vectorizable_store): Fix typo.  Eliminate new-line at end of
6445         comments.
6447 2007-01-16  Jan Hubicka  <jh@suse.cz>
6449         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
6450         cgraph edges too.
6452 2007-01-15  Eric Christopher  <echristo@apple.com>
6454         * ifcvt.c: Include vec.h, vecprim.h.
6455         (check_cond_move_block): New argument regs.
6456         Reorganize. Add registers used to regs.
6457         (cond_move_process_if_block): Use regs set above as
6458         loop bounds.
6460 2007-01-15  Eric Christopher  <echristo@apple.com>
6462         * config/darwin.h: Update copyright.
6463         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
6464         (LINK_COMMAND_SPEC): Add -u.
6465         (LINK_SPEC): Fix umbrella for above.
6467 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
6469         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
6470         glibc CVS.
6472 2007-01-15  Tom Tromey  <tromey@redhat.com>
6474         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
6475         * doc/install.texi (Testing): Don't mention jacks.
6476         (Configuration): Document --enable-java-maintainer-mode.  Move
6477         --with-java-home to libgcj-specific section.  Document
6478         --with-ecj-jar.
6479         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
6481 2007-01-15  Jan Hubicka  <jh@suse.cz>
6483         * tree-ssa-dce.c (DCE_TODOs): New.
6484         (propagate_necessity): Return if something changed.
6485         (eliminate_unnecessary_stmts): Likewise.
6486         (perform_tree_ssa_dce): Return TODO flags when needed.
6487         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
6489 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
6491         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
6492         (fyl2x_extend<mode>xf3_i387): New insn pattern.
6493         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
6494         patterns using X87MODEF12 mode macro.  Extend operand 1
6495         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
6496         (log10<mode>2): Ditto.
6497         (log2<mode>2): Ditto.
6498         (log1p<mode>2): Ditto.
6499         (logb<mode>2): Ditto.
6500         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
6501         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
6502         (*fxtractxf3_i387): Rename from *fxtractxf3.
6503         (fxtract_extend<mode>xf3_i387): New insn pattern.
6504         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
6505         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
6506         and gen_fyl2xxf3_i387().
6508 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
6510         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
6511         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
6512         get_loop_exit_edges.  Changed return type to bool.
6513         * cfgloop.h (fix_loop_placement): Declaration removed.
6515 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
6517         * param.h (MIN_VECT_LOOP_BOUND): New.
6518         * params.def (MIN_VECT_LOOP_BOUND): New.
6519         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
6520         argument - minimum threshold for number of iterations.
6521         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
6522         argument to declaration.
6523         * tree-vect-analyze.c (vect_analyze_operations): Check value of
6524         MIN_VECT_LOOP_BOUND.
6525         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
6526         slpeel_tree_peel_loop_to_edge with additional argument.
6527         (vect_do_peeling_for_alignment): Likewise.
6528         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
6530 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
6532         PR target/30413
6533         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
6534         operands of size 1.
6536 2007-01-14  Jan Hubicka  <jh@suse.cz>
6538         * tree-dfa.c (remove_referenced_var): New function.
6539         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
6540         prune referenced vars list too.
6541         * tree-flow.h (remove_referenced_var): Declare.
6543 2007-01-14  Jan Hubicka  <jh@suse.cz>
6545         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
6546         separately.
6547         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
6548         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
6549         * except.h (verify_eh_throw_table_statements): Kill prototype.
6550         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
6551         into call exrepssions.
6552         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
6553         eh trhow verifier.
6554         * tree-cfg.c: Include pointer-set.h.
6555         (verify_node_sharing): Work on pointer set.
6556         (verify_eh_throw_stmt_node): New.
6557         (verify_stmts): Use pointers sets, verify throw_stmt.
6559 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
6561         * ipa-reference.c (analyze_function): Consider also addresses taken
6562         in phi nodes.
6564 2007-01-12  Roger Sayle  <roger@eyesopen.com>
6566         * c-typeck.c (null_pointer_constant_p): Replace use of
6567         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
6568         (build_c_cast): Likewise.
6570 2007-01-12  Roger Sayle  <roger@eyesopen.com>
6572         * tree.h (force_fit_type_double): Remove unused final argument.
6573         * c-common.c (constant_expression_warning): Replace use of
6574         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
6575         (convert_and_check): Likewise.
6576         (shorten_compare): Update call to force_fit_type_double.
6577         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
6578         * convert.c (convert_to_pointer): Update call to
6579         force_fit_type_double.
6580         * fold-const.c (force_fit_type_double): Remove overflowed_const
6581         argument.
6582         (int_const_binop, fold_convert_const_int_from_int,
6583         fold_convert_const_int_from_real, fold_div_compare,
6584         fold_sign_changed_comparison, fold_unary, fold_negate_const,
6585         fold_abs_const, fold_not_const): Remove the final argument from
6586         calls to force_fit_type_double.
6588 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6590         * configure.ac: Set insn to "nop" for spu-*-* also.
6591         * configure: Regenerate.
6593 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
6595         * builtins.def : Add BUILT_IN_FREE.
6597 2007-01-12  Jan Hubicka  <jh@suse.cz>
6599         PR tree-optimization/30443
6600         * tree-inline.c (tree_function_versioning): Do not optimize when
6601         cloning for inlining.
6603 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
6605         * doc/loop.texi: Document recording of loop exits.
6606         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
6607         (update_single_exits_after_duplication,
6608         update_single_exit_for_duplicated_loop,
6609         update_single_exit_for_duplicated_loops): Removed.
6610         (duplicate_loop_to_header_edge): Do not call
6611         update_single_exits_after_duplication and
6612         update_single_exit_for_duplicated_loops.
6613         (loop_version): Do not update single_exit information.
6614         (fix_loop_structure): Use record_loop_exits instead of
6615         mark_single_exit_loops.
6616         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
6617         the lists of loop exits.
6618         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
6619         split_edge, merge_blocks): Update the lists of loop exits.
6620         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
6621         loop_optimizer_init.
6622         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
6623         of mark_single_exit_loops.
6624         (loop_optimizer_finalize): Call release_recorded_exits.
6625         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
6626         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
6627         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
6628         update single exit information.
6629         * lambda-code.c (perfect_nestify): Ditto.
6630         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
6631         (mark_single_exit_loops): Removed.
6632         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
6633         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
6634         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
6635         functions.
6636         (get_loop_exit_edges, single_exit): Use recorded exit lists.
6637         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
6638         (verify_loop_structure): Verify consistency of the exit lists.
6639         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
6640         (set_single_exit): Removed.
6641         * cfgloop.h (struct loop_exit): New function.
6642         (struct loop): single_exit_ field replaced by exits field.
6643         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
6644         (struct loops): Added exits hash.
6645         (mark_single_exit_loops, set_single_exit): Declaration removed.
6646         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
6648 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6650         * doc/invoke.texi: Avoid use of @headitem.
6652 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6654         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
6656 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6658         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
6659         list of targets.
6661 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
6662             Richard Sandiford  <richard@codesourcery.com>
6664         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
6665         * config/m68k/m68k.opt: Resort options.
6666         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
6668 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
6669             Richard Sandiford  <richard@codesourcery.com>
6671         * doc/invoke.texi: Document the macros that are defined by
6672         m68k's -mtune and -mhard-float options.
6673         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
6674         (m68k_cpp_cpu_family): Likewise.
6675         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
6676         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
6677         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
6678         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
6679         (m68k_cpp_cpu_family): Likewise.
6681 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6683         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
6684         macros besides mc68000 as tuning macros.  Use a switch statement
6685         to set them and mcpu32.
6687 2007-01-12  Julian Brown  <julian@codesourcery.com>
6689         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
6690         (TARGET_68040_ONLY): Rename to...
6691         (TARGET_68040): ...this.
6692         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
6693         * config/m68k/m68k.md: Likewise.
6695 2007-01-12  Julian Brown  <julian@codesourcery.com>
6696             Nathan Sidwell  <nathan@codesourcery.com>
6697             Richard Sandiford  <richard@codesourcery.com>
6699         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
6700         the -mcpu= argument associated with the --with-cpu setting.
6701         Define M68K_DEFAULT_TUNE to the default -mtune= option,
6702         if different from the one implied by the -mcpu setting.
6703         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
6704         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
6705         * doc/invoke.texi: Mention ColdFire in the introduction to the
6706         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
6707         -mno-div and -mhard-float options.  Make -m68881 a synonym for
6708         -mhard-float.  Document the previously-undocumented -m5206e,
6709         -m528x, -m5307 and -m5407 options.  Tweak the existing option
6710         documentation for consistency.
6711         * doc/install.texi: Mention new --with-cpu arguments.
6712         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
6713         default CPU if neither -mcpu nor -march are specified.
6714         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
6715         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
6716         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
6717         using m68k_tune to decide between families that implement the
6718         same ISA.  Use m68k_tune to set __mcfv4e__.
6719         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
6720         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
6721         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
6722         (FL_ISA_C, FL_ISA_MMU): New macros.
6723         (MASK_COLDFIRE): Delete.
6724         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
6725         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
6726         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
6727         (TARGET_HARD_FLOAT): Do not define here.
6728         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
6729         (TUNE_68000): New macro.
6730         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
6731         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
6732         (TUNE_CFV2): Redefine in terms of m68k_tune.
6733         (uarch_type, target_device, fpu_type): New enums.
6734         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
6735         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
6736         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
6737         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
6738         (FL_FOR_isa_c): New macros.
6739         (m68k_isa): New enum.
6740         (m68k_target_selection): New structure.
6741         (all_devices, all_isas, all_microarchs): New tables.
6742         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
6743         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
6744         (MASK_ALL_CPU_BITS): Delete.
6745         (m68k_find_selection): New function.
6746         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
6747         Map the legacy target options to a combination of the new ones.
6748         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
6749         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
6750         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
6751         settings.
6752         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
6753         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
6754         properties.
6755         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
6756         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
6757         * config/m68k/m68k-devices.def: New file.
6759 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6760             Nathan Sidwell  <nathan@codesourcery.com>
6762         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
6763         (SUBTARGET_EXTRA_SPECS): New macros.
6764         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
6765         use %(asm_cpu_spec) instead.
6766         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
6767         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6768         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6769         (EXTRA_SPECS): Rename to...
6770         (SUBTARGET_EXTRA_SPECS): ...this.
6772 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
6773             Richard Sandiford  <richard@codesourcery.com>
6774             Julian Brown  <julian@codesourcery.com>
6776         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6777         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
6778         to the configuration's default CPU.
6779         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
6780         Remove default masks.
6781         (m680[012]0-*-*): Set the default with_cpu to the first part of
6782         the target name.
6783         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
6784         (m68k*-*-linux): Extend the --with-cpu handling to...
6785         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
6786         and m68010.  Don't set target_cpu_default2.
6787         * doc/install.texi: Document --with-cpu for m68k.
6788         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
6789         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
6790         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
6791         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
6792         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
6793         (ASM_SPEC): Remove use of %(asm_cpu_default).
6794         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
6795         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
6796         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
6797         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6798         __HAVE_FPU__ if TARGET_HARD_FLOAT.
6799         (TARGET_DEFAULT): Delete.
6800         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
6801         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
6802         (CPP_CPU_SPEC): Delete.
6803         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
6804         the appropriate string.
6805         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
6806         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
6807         (ASM_SPEC): Don't use %(asm_default_spec).
6808         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
6809         TARGET_DEFAULT and add MASK_68881.
6810         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
6812 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6814         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
6815         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
6816         MASK_68010 alongside MASK_68020.
6817         * doc/invoke.texi: Document -m68010.
6818         * config/m68k/m68k.opt (m68010): New.
6819         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
6820         if TUNE_68010.
6821         (TUNE_68010): New macro.
6822         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
6823         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
6824         (M68K_CPU_m68332): Add MASK_68010.
6825         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
6826         fallback definition.
6827         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
6828         defines.
6829         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
6830         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
6831         to all entries that use MASK_68020.
6832         (output_move_simode_const, output_move_himode, output_move_qimode)
6833         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
6834         instead of TARGET_68020 to select clr behavior.  Remove comment
6835         about there being no TARGET_68010.
6836         * config/m68k/m68k.md: Likewise throughout.
6838 2007-01-12  Julian Brown  <julian@codesourcery.com>
6840         * config/m68k/m68k.h (TARGET_ISAB): New macro.
6841         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
6842         * config/m68k/m68k.md: Likewise.
6844 2007-01-12  Julian Brown  <julian@codesourcery.com>
6846         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
6847         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
6849 2007-01-12  Julian Brown  <julian@codesourcery.com>
6851         * config/m68k/m68k.h (TUNE_68040_60): New macro.
6852         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
6853         * config/m68k/m68k.md: Likewise.
6855 2007-01-12  Julian Brown  <julian@codesourcery.com>
6856             Richard Sandiford  <richard@codesourcery.com>
6858         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
6859         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
6860         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
6861         TARGET_CPU32.
6862         (TARGET_CPU32): Rename to...
6863         (TUNE_CPU32): ...this.
6864         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
6865         (TUNE_CFV2): New macros.
6866         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
6867         remove conditions that are implied by TARGET_68020.
6868         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
6869         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
6870         (m68k_output_function_epilogue): Likewise.
6871         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
6872         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
6873         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
6874         non-68000 timings.  Refactor multiplication and division costs.
6875         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
6876         TUNE_CPU32 instead of TARGET_CPU32.
6877         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
6878         and TUNE_68060 instead of TARGET_68060.
6879         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
6880         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
6881         TARGET_CPU32.
6882         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
6883         && !TARGET_COLDFIRE" to choose between moveq and clr.
6884         Likewise in the unnamed movsf pattern.
6885         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
6886         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
6887         ashiftrt pattern.
6889 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
6891         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
6892         of tabbing before backslashes.
6894 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6896         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
6897         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
6898         (ASM_OUTPUT_INTERNAL_LABEL): Define.
6900 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
6902         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
6903         find_interesting_uses_cond.
6904         (find_interesting_uses_cond): Use extract_cond_operands.
6905         (rewrite_use_compare): Use extract_cond_operands and
6906         force_gimple_operand_bsi.  Do not call update_stmt.
6907         (determine_use_iv_cost_condition): Use extract_cond_operands.
6908         Return cheaper of using original bound and changing the exit bound.
6910 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
6912         PR tree-optimization/29516
6913         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
6914         most_expensive_mult_to_index, addr_to_parts,
6915         create_mem_ref, maybe_fold_tmr): Make the type of
6916         fields of TARGET_MEM_REF sizetype.
6917         (move_fixed_address_to_symbol, move_pointer_to_base):
6918         New functions.
6919         * tree.def (TARGET_MEM_REF): Add comment on types of
6920         the operands.
6922 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
6924         * c-common.c (vector_types_convertible_p): Treat opaque types as
6925         always convertible if they have the same size, but not otherwise.
6927 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
6929         * ifcvt.c (struct noce_if_info): Add comments to the fields.
6930         Remove the b_unconditional field.
6931         (noce_try_sign_mask): Do not look at b_unconditional.
6932         (noce_process_if_block): Do not use merge_if_blocks.  Update
6933         the CFG here.  Do not set b_unconditional.
6934         (cond_move_process_if_block): Likewise.
6935         (find_cond_trap): Likewise.
6936         (check_cond_move_block): Require simple jump insns at the end
6937         of the basic block.
6939 2007-01-11  Jan Hubicka  <jh@suse.cz>
6941         PR tree-optimization/1046
6942         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
6943         when alias info is not ready.
6944         (pass_tail_recursion): Do not require aliasing.
6945         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
6946         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
6947         * tree-ssa-copy.c (pass_copy_prop): Likewise.
6948         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
6949         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
6950         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
6951         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
6952         before inlining.
6953         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
6954         When aliasing is not build, mark statement as volatile.
6956 2007-01-11  Tom Tromey  <tromey@redhat.com>
6958         PR preprocessor/15185, PR preprocessor/20989:
6959         * doc/cppopts.texi <-MT>: Update description of algorithm for
6960         computing default target.
6961         <-M, -MD>: Reword "basename" text.
6963 2007-01-11  Roger Sayle  <roger@eyesopen.com>
6965         * builtins.c (expand_builtin_pow, expand_builtin_powi,
6966         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
6967         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
6968         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
6969         fold_builtin_bswap, real_constp, fold_builtin_pow,
6970         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
6971         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
6972         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
6973         * convert.c (convert_to_pointer): Likewise.
6974         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6975         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
6976         const_binop, fold_convert_const_int_from_int,
6977         fold_convert_const_int_from_real,
6978         fold_convert_const_real_from_real, sign_bit_p,
6979         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
6980         fold_sign_changed_comparison, fold_unary, fold_comparison,
6981         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
6982         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
6983         * print-tree.c (print_node_brief, print_node): Likewise.
6984         * stor-layout.c (place_field, layout_type): Likewise.
6985         * tree-chrec.c (keep_cast): Likewise.
6986         * tree.c (build_vector, build_real, build_real_from_int_cst,
6987         build_complex): Likewise.
6989 2007-01-11  Roger Sayle  <roger@eyesopen.com>
6991         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
6992         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
6994 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
6996         * configure.ac (strict1_warn): Rename to strict_warn.
6997         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
6998         cc_set_by_configure, quoted_cc_set_by_configure,
6999         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
7000         all_boot_languages, all_stagestuff): Remove.
7001         (target_list): Remove bootstrap targets.
7002         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
7003         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
7004         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
7005         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
7006         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
7007         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
7008         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
7009         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
7010         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
7011         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
7012         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
7013         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
7014         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
7015         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
7016         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
7017         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
7018         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
7019         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
7020         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
7021         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
7022         (mostlyclean): Adjust.
7023         (clean, distclean): Don't mention bootstrap stuff.
7024         * configure: Regenerate.
7025         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
7026         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
7027         treelang/config-lang.in (stagestuff): Remove.
7028         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
7029         stageprofile, stagefeedback, stagestuff): Remove mention.
7031 2007-01-11  Nick Clifton  <nickc@redhat.com>
7033         * config/mcore/predicates.md (mcore_general_movesrc_operand):
7034         Accept CONSTs.
7035         (mcore_general_movdst_operand): Do not accept CONST_INTs.
7036         (mcore_arith_K_S_operand): Run the test for the S constraint not
7037         the test for the M constraint.
7038         (mcore_addsub_operand): Do not accept integer values that are
7039         larger than 32 bits.
7040         * config/mcore/mcore.md: Remove unused constraints from split.
7041         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
7042         (addsi3): Likewise.
7043         (allocate_stack): Likewise.
7044         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
7045         operands to 32 bits.
7046         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
7047         INTVAL.
7048         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
7049         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
7050         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
7051         mcore_output_bclri, mcore_output_andn, output_inline_const,
7052         mcore_output_move, mcore_output_movedouble): Likewise.
7053         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
7054         (output_inline_const): Likewise.
7055         (output_inline_const): Fix format strings used in sprintf
7056         statements.
7057         * config/mcore/mcore-protos.h: Update prototypes for changed
7058         functions in mcore.c.
7059         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
7060         HOST_WIDE_INT and not int.
7061         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
7062         CONST_OK_FOR_N): Likewise.
7063         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
7064         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
7065         an INTVAL.
7067 2007-01-10  Jan Hubicka  <jh@suse.cz>
7069         * tree-vrp.c (remove_range_assertions): Release defs.
7070         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
7071         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
7073 2007-01-10  Paul Brook  <paul@codesourcery.com>
7075         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
7076         * config/arm/arm.md (mulsi3subsi): New insn.
7078 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
7080         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
7081         (tree_transform_and_unroll_loop): New.
7082         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
7083         Declare.
7085 2007-01-10  Robert Kennedy <jimbob@google.com>
7087         * fold-const.c (fold_comparison): Fold comparisons like (x *
7088         1000 < 0) to (x < 0).
7090 2007-01-10  Ian Lance Taylor  <iant@google.com>
7092         * tree-pretty-print.c (dump_generic_node): Print parentheses when
7093         operands have the same priority.
7095 2007-01-10  Tom Tromey  <tromey@redhat.com>
7097         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
7098         (fold_binary): Likewise.
7099         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
7100         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
7101         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
7102         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
7103         * langhooks.h (struct lang_hooks): Removed field
7104         'can_use_bit_fields_p'.
7106 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
7108         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
7110 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
7112         * function.c (get_last_funcdef_no): New function.
7113         * function.h (get_last_funcdef_no): Declare.
7114         * tree-inline.c (initialize_cfun): Add initialization.
7115         (tree_function_versioning): Cleanup.
7117 2007-01-10  Jan Hubicka  <jh@suse.cz>
7119         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
7120         PHIs.
7122 2007-01-10  Sa Liu  <saliu@de.ibm.com>
7123             Ben Elliston  <bje@au.ibm.com>
7125         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
7126         for SAVE_NONLOCAL and Pmode for any other save level.
7127         * spu-protos.h (spu_restore_stack_block): Declare.
7128         * spu.md (save_stack_block): Remove.
7129         (restore_stack_block): Call spu_restore_stack_block.
7130         * spu.c (spu_restore_stack_block): New function.
7131         (spu_expand_epilogue): Remove old comment.
7133 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
7135         PR tree-optimization/30322
7136         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
7137         (cand_value_at): Return the value as aff_tree.
7138         (may_eliminate_iv): Convert the bound from aff_tree to tree.
7139         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
7140         aff_combination_mult): New functions.
7141         (aff_combination_add): Use aff_combination_add_cst.
7142         (aff_combination_convert): Allow conversions to a wider type.
7143         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
7144         * tree-affine.h (aff_combination_mult): Declare.
7146 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
7148         * doc/tm.texi: Update documentation to reflect reality of exec
7149         and start file search behaviours. Update copyright year.
7150         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
7151         header file directories.
7153 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
7155         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
7156         (*cosxf2): Rename to cosxf2_i387.
7157         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
7158         using X87MODEF12 mode macro. Rename patterns to
7159         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
7160         for SSE math.
7161         (*cosdf2, *cossf2): Ditto.
7162         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
7163         to match extended input operands.
7164         (sincos<mode>3): New expander.
7165         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
7166         insn patterns and corresponding splitters.
7168 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7170         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
7171         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
7173 2007-01-09  Nicolas Pitre  <nico@cam.org>
7175         PR target/30173
7176         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
7178 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
7180         * target.h (struct gcc_target): New field library_rtti_comdat.
7181         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
7182         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
7183         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
7184         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
7186 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
7188         * doc/invoke.texi (Optimize Options): Correct description of -O0.
7190 2007-01-08  Richard Guenther  <rguenther@suse.de>
7192         * tree.h (force_fit_type_double): Export.
7193         (force_fit_type): Remove.
7194         * fold-const.c (force_fit_type_double): New function.
7195         (force_fit_type): Remove.
7196         (int_const_binop): Use it.
7197         (fold_convert_const_int_from_int): Likewise.
7198         (fold_convert_const_int_from_real): Likewise.
7199         (fold_div_compare): Likewise.
7200         (fold_sign_changed_comparison): Likewise.
7201         (fold_unary): Likewise.
7202         (fold_negate_const): Likewise.
7203         (fold_abs_const): Likewise.
7204         (fold_not_const): Likewise.
7205         * c-common.c (shorten_compare): Use force_fit_type_double.
7206         * convert.c (convert_to_pointer): Likewise.
7208 2007-01-08  Richard Guenther  <rguenther@suse.de>
7210         * tree.h (build_int_cst_wide_type): Export.
7211         * tree.c (build_int_cst_wide_type): New function.
7212         (build_int_cst_wide): Fix comment.
7213         * builtins.c (fold_builtin_object_size): Use build_int_cst
7214         to build -1 or 0 of the correct type.  Use fit_double_type
7215         to check for overflow.
7216         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
7217         to build the mask.
7218         (decode_field_reference): Likewise.
7219         (all_ones_mask_p): Likewise.
7220         (native_interpret_int): Use build_int_cst_wide_type.
7221         (fold_binary): Use build_int_cst_type to build an all-ones
7222         value.
7223         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
7225 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7227         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
7229 2007-01-09  Ben Elliston  <bje@au.ibm.com>
7231         * genautomata.c (STATS_OPTION): New option.
7232         (stats_flag): New flag.
7233         (gen_automata_option): Handle it.
7234         (initiate_automaton_gen): Ditto.
7235         (write_automata): Output statistics only if stats_flag is
7236         set. Likewise, output time statistics only if time_flag is set.
7237         * doc/md.texi (Processor pipeline description): Document new flag.
7239 2007-01-08  Richard Guenther  <rguenther@suse.de>
7241         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
7242         * tree.c (build_int_cst_type): Likewise.
7243         (size_in_bytes): Don't call force_fit_type on the result.
7244         (int_fits_type_p): Use fit_double_type.
7245         * fold-const.c (fit_double_type): New function.
7246         (force_fit_type): Use it.
7247         * tree.h (fit_double_type): Export.
7249 2007-01-08  Jan Hubicka  <jh@suse.cz>
7251         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
7252         * ipa.c (function_and_variable_visibility): Fix return type.
7254 2007-01-08  Richard Guenther  <rguenther@suse.de>
7256         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
7257         of offset to build the index.
7258         * tree-pretty-print.c (dump_generic_node): Don't build negated
7259         const just for printing.
7260         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7261         * builtins.c (fold_builtin_int_roundingfn): Check if result
7262         fits the type by using force_fit_type and comparing the result.
7263         * predict.c (predict_loops): Use compare_tree_int for comparison.
7264         * tree.c (build_int_cst): Fall back to integer_type_node for
7265         NULL_TREE type.
7266         (build_int_cst_wide): Assert type is non-null.
7268 2007-01-08  Roberto Costa  <roberto.costa@st.com>
7270         * tree-vrp.c (extract_range_from_cond_expr): New.
7271         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
7272         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
7273         as expressions.
7274         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
7275         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
7276         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
7277         used as expressions.
7278         * tree-object-size.c (cond_expr_object_size): New.
7279         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
7281 2007-01-08  Jan Hubicka  <jh@suse.cz>
7283         * tree-ssa-forwprop.c (forward_propagate_into_cond,
7284         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
7285         statement.
7287 2007-01-08  Richard Guenther  <rguenther@suse.de>
7289         PR tree-optimization/23603
7290         * tree-vrp.c (set_value_range_to_truthvalue): New function.
7291         (extract_range_from_binary): Fall back to truthvalue instead of
7292         varying for TRUTH_*_EXPR.
7293         (extract_range_from_comparison): Fall back to truthvalue instead of
7294         varying.
7295         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
7296         if all visited PHI values were constant.
7298 2007-01-08  Jan Hubicka  <jh@suse.cz>
7300         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
7301         (cgraph_analyze_function): break out from ...
7302         (cgraph_finalize_compilation_unit): ... here.
7303         (cgraph_expand_function): Remove forgoten commented out line.
7304         (cgraph_optimize): Analyze functions.
7306 2007-01-08  Jan Hubicka  <jh@suse.cz>
7308         * tree-pas.h (TODO_remove_function): New flag.
7309         (TODO_update*): Renumber.
7310         (pass_ipa_increase_alignment,
7311         pass_ipa_function_and_variable_visibility): New passes.
7312         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
7313         (cgraph_function_and_variable_visibility): Move to ipa.c
7314         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
7315         cgraph_increase_alignment.
7316         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
7317         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
7318         calling tree-inline.
7319         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
7320         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
7321         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
7322         (gate_increase_alignment): New function.
7323         (pass_ipa_increase_alignment): New pass.
7324         * ipa.c: Inline tree-pass.h and timevar.h
7325         (function_and_variable_visibility): Move here from cgraphunit.c
7326         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
7327         * passes.c (init_optimization_passes): Add the two new passes.
7328         (execute_todo): Handle cgraph_remove_functions.
7330 2007-01-08  Nick Clifton  <nickc@redhat.com>
7332         * config/frv/predicates.md (reg_or_0_operand): Accept
7333         CONST_DOUBLEs.
7335 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
7337         * config/bfin/rtems.h, config/bfin/t-rtems: New.
7338         * config.gcc: Add bfin*-rtems*.
7340 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
7342         * c.opt: Add -flax-vector-conversions.
7343         * c-typeck.c (convert_for_assignment): Pass flag to
7344         vector_types_convertible_p to allow emission of note.
7345         (digest_init): Likewise.
7346         * c-opts.c: Handle -flax-vector-conversions.
7347         * c-common.c (flag_lax_vector_conversions): New.
7348         (vector_types_convertible_p): Unless -flax-vector conversions
7349         has been passed, disallow conversions between vectors with
7350         differing numbers of subparts and/or element types.  If such
7351         a conversion is disallowed, possibly emit a note on the first
7352         occasion only to inform the user of -flax-vector-conversions.
7353         The new last argument specifies this.
7354         * c-common.h (flag_lax_vector_conversions): New.
7355         (vector_types_convertible_p): Add extra argument.
7356         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7357         char_type_node for V*QI type vectors.
7358         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
7359         Update to satisfy new typechecking rules.
7360         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
7361         C and C++ variants.
7362         * doc/invoke.texi (C Dialect Options): Document
7363         -flax-vector-conversions.
7365 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
7367         PR tree-optimization/29877
7368         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
7369         a register variable on the RHS to not be replaceable.
7371 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
7372         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
7373         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
7374         const_simm15, const_pow2, const_npow2): Added.
7375         * config/score/misc.md (insv, extv, extzv, movmemsi,
7376         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
7377         * config/score/score.c (score_address_cost, score_select_cc_mode):
7378         Added.
7379         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
7380         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
7381         Update score_print_operand.
7382         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
7383         Adjust register allocate order and update some macro define.
7384         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
7385         mdx_block_move_straight, mdx_block_move_loop_head,
7386         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
7387         mdx_block_move): Added.
7388         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
7389         mdp_limm): Updated and fix some bug and typo.
7390         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
7391         (movsf, movdf, doloop_end): Added.
7393 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
7395         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
7396         config/arm/thumb2.md: Fix comment typos.
7397         * doc/extend.texi: Fix a typo.
7399 2007-01-07  Eric Christopher  <echristo@apple.com>
7401         * configure.ac: Check for __stack_chk_fail for darwin.
7402         * configure: Regenerate.
7404 2007-01-07  Richard Guenther  <rguenther@suse.de>
7406         * tree-vrp.c (extract_range_from_assert): CSE calls to
7407         compare_values where possible.
7408         (extract_range_from_unary_expr): Likewise.
7410 2007-01-07  Anatoly Sokolov <aesok@post.ru>
7412         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
7413         * config/avr/avr.c (call_insn_operand): Delete function.
7414         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
7415         instead of register number. Use predicates.
7416         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
7417         call_insn_operand): Add.
7419 2007-01-06  Jan Hubicka  <jh@suse.cz>
7421         * tree-pass.h (pass_build_cgraph_edges): Declare.
7422         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
7423         (visited_nodes): Remove.
7424         (cgraph_create_edges): Move to cgraphbuild.c; rename to
7425         build_cgrpah_edges; make visited_nodes local.
7426         (cgraph_process_new_functions): DO not call initialize_inline_failed.
7427         (record_references_in_initializer): Move to cgraphbuild.c
7428         (initialize_inline_failed, rebuild_cgraph_edges,
7429         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
7430         (verify_cgraph_node): Make visited_nodes local.
7431         (cgraph_analyze_function): Do not call cgraph_create_edges and
7432         initialize_inline_failed.
7433         (cgraph_expand_function): Do not call cgraph_lower_function;
7434         assert that function is already lowered.
7435         * Makefile.in (cgraphbuild.o): New.
7436         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
7437         at the end of lowering passes.
7439 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
7441         * ifcvt.c (cond_move_convert_if_block): New function, code
7442         factored out from...
7443         (cond_move_process_if_block): ...here.  Call the new function
7444         on the THEN and ELSE blocks.
7445         (merge_if_block): Do not copy global_live_at_end, merge_blocks
7446         already takes care of this.
7448 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7450         PR c/19978
7451         * tree.h (TREE_OVERFLOW_P): New.
7452         * c-typeck.c (parser_build_unary_op): Warn only if result
7453         overflowed and operands did not.
7454         (parser_build_binary_op): Likewise.
7455         (convert_for_assignment): Remove redundant overflow_warning.
7456         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
7458 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7460         * c-typeck.c (store_init_value): Split over two lines to follow
7461         the GNU coding style.
7463 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
7465         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
7466         __GXX_EXPERIMENTAL_CXX0X__.
7467         * doc/cpp.texi: Same.
7469 2007-01-05  Richard Guenther  <rguenther@suse.de>
7471         PR middle-end/27826
7472         * tree.c (get_narrower): Do not construct COMPONENT_REFs
7473         with mismatched types.  Instead explicitly build a
7474         conversion NOP_EXPR.
7476 2007-01-05  Ian Lance Taylor  <iant@google.com>
7478         * c-common.c (decl_with_nonnull_addr_p): New function.
7479         (c_common_truthvalue_conversion): Call it.
7480         * c-typeck.c (build_binary_op): Likewise.
7481         * c-common.h (decl_with_nonnull_addr_p): Declare.
7483 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
7485         PR c/30360
7486         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
7487         denom against 0.0.
7489 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7491         * doc/install.texi (Final install): Document the fact that
7492         the GNAT runtime should not be stripped.
7494 2007-01-04  Jan Hubicka  <jh@suse.cz>
7496         * tree-inline.c (fold_marked_statements): Update operand caches
7497         and EH after folding
7499 2007-01-04  Ian Lance Taylor  <iant@google.com>
7501         * c-common.c (check_function_nonnull): Whitespace fix.
7503 2007-01-04  Jan Hubicka  <jh@suse.cz>
7505         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
7506         comitted older version of patch.
7507         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
7508         function, celanup cfg and collect garbage.
7510 2007-01-04  Mike Stump  <mrs@apple.com>
7512         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
7513         (clean): Likewise.
7515 2007-01-04  Eric Christopher  <echristo@apple.com>
7517         * libgcc2.c (__bswapsi2): Use SItype.
7518         (__bswapdi2): Use DItype.
7519         * libgcc2.h: Update for above.
7521 2007-01-04  Paul Brook  <paul@codesourcery.com>
7523         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
7524         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
7525         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
7526         umulsidi3, umulsidi3adddi, smulsi3_highpart,
7527         umulsi3_highpart): Make conditional on !arm_arch6.
7528         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
7529         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
7530         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
7531         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
7532         umulsi3_highpart_v6): New insns.
7534 2007-01-04  Roger Sayle  <roger@eyesopen.com>
7536         * fold-const.c (fold_convert): When casting an expression to void,
7537         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
7538         have a type.  Instead of attempting to build a NOP_EXPR, return
7539         these "special" trees directly.
7541 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
7543         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
7544         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
7545         rs6000_cost->fp not 0 as adjustment for outer NEG.
7547 2007-01-04  Jan Hubicka  <jh@suse.cz>
7549         * cgraph.c (cgraph_release_function_body): New function.
7550         (cgraph_remove_node): Use it.
7551         * cgraph.h (cgraph_release_function_body): Declare.
7552         * cgraphunit.c (cgraph_expand_function): Use it.
7553         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
7554         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
7555         is initialized and while compilation of other function is running.
7556         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
7557         statement CFG annotations from here to ...
7558         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
7560 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
7562         * cfgloop.h (enum li_flags): Make the constants powers of two.
7564 2007-01-04  Jan Hubicka  <jh@suse.cz>
7566         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
7567         set.
7568         (fold_marked_statements): New function.
7569         (optimize_inline_calls, tree_function_versioning): Fold new statements.
7570         * tree-inline.h (copy_body_data): Add statements_to_fold.
7572 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
7574         * config.gcc: Mention libgcc/config.host.
7575         * Makefile.in: Update comments mentioning libgcc.
7576         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
7577         (all.cross, start.encap, rest.encap, rest.cross): Update
7578         dependencies for libgcc move.
7579         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
7580         (clean-target, clean-target-libgcc): Delete.
7581         (srcdirify, GCC_EXTRA_PARTS): New macros.
7582         (libgcc-support, libgcc.mvars): New rules.
7583         (distclean): Remove mention of mklibgcc.
7584         (install): Don't reference INSTALL_LIBGCC.
7585         (install-common): Don't reference EXTRA_PARTS.
7586         (install-libgcc, install-multilib): Delete rules.
7587         * mklibgcc.in: Delete file.
7588         * doc/configfiles.texi: Don't mention mklibgcc.
7590         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
7591         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
7592         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
7593         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
7594         (mklibgcc, ldblspecs): Likewise.
7596         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
7597         (posixpre.def): Use $(T).
7598         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
7599         (SHLIB_SRC, SHLIB_INSTALL): Delete.
7600         (SHLIB_LINK): Make dummy.
7601         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
7603         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
7605         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
7606         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
7607         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
7608         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
7610         * configure.ac (all_outputs): Remove mklibgcc.
7611         * configure: Regenerated.
7613 2007-01-03  Josh Conner  <jconner@apple.com>
7615         PR middle-end/29683
7616         * calls.c (compute_argument_addresses): Set stack and stack_slot
7617         for partial args, too.
7618         (store_one_arg): Use locate.size.constant for the size when
7619         generating a save_area.
7621 2007-01-03  Robert Kennedy <jimbob@google.com>
7623         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
7624         whose definitions are deleted due to basic block merging.
7626 2007-01-03  Paul Brook  <paul@codesourcery.com>
7628         PR target/16634
7629         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
7630         functions.
7631         (use_return_insn): Return 0 for Thumb interrupt functions.
7632         (print_multi_reg): Add rfe argument for IRQ returns.
7633         (arm_output_epilogue): Pop interrupt return address directly into PC.
7634         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
7636 2007-01-03  Paul Brook  <paul@codesourcery.com>
7638         Merge from sourcerygxx-4_1.
7639         * config/arm/thumb2.md: New file.
7640         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
7641         Thumb-2.
7642         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
7643         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
7644         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
7645         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
7646         tables.
7647         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
7648         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
7649         comptibility.
7650         * config/arm/ieee754-sf.S: Ditto.
7651         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
7652         (thumb1_base_register_rtx_p): ... to this.
7653         (thumb_index_register_rtx_p): Rename...
7654         (thumb1_index_register_rtx_p): ... to this.
7655         (thumb_output_function_prologue): Rename...
7656         (thumb1_output_function_prologue): ... to this.
7657         (thumb_legitimate_address_p): Rename...
7658         (thumb1_legitimate_address_p): ... to this.
7659         (thumb_rtx_costs): Rename...
7660         (thumb1_rtx_costs): ... to this.
7661         (thumb_compute_save_reg_mask): Rename...
7662         (thumb1_compute_save_reg_mask): ... to this.
7663         (thumb_final_prescan_insn): Rename...
7664         (thumb1_final_prescan_insn): ... to this.
7665         (thumb_expand_epilogue): Rename...
7666         (thumb1_expand_epilogue): ... to this.
7667         (arm_unwind_emit_stm): Rename...
7668         (arm_unwind_emit_sequence): ... to this.
7669         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
7670         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
7671         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
7672         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
7673         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
7674         thumb2_output_casesi): New functions.
7675         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
7676         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
7677         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
7678         THUMB2_WORK_REGS): Define.
7679         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
7680         arm_condexec_mask, arm_condexec_masklen)): New variables.
7681         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
7682         (arm_override_options): Check new CPU capabilities.
7683         Set new architecture flag variables.
7684         (arm_isr_value): Handle v7m interrupt functions.
7685         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
7686         Thumb-2.
7687         (const_ok_for_arm): Handle Thumb-2 constants.
7688         (arm_gen_constant): Ditto.  Use movw when available.
7689         (arm_function_ok_for_sibcall): Return false for v7m interrupt
7690         functions.
7691         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
7692         (thumb_find_work_register, arm_load_pic_register,
7693         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
7694         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
7695         print_multi_reg, output_mov_long_double_fpa_from_arm,
7696         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
7697         output_mov_double_fpa_from_arm, output_move_double,
7698         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
7699         output_return_instruction, arm_output_function_prologue,
7700         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
7701         arm_output_mi_thunk, thumb_set_return_address): Ditto.
7702         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
7703         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
7704         (arithmetic_instr, shift_op): Use arm_shift_nmem.
7705         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
7706         '!' and 'L'.
7707         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
7708         (thumb_expand_prologue): Use thumb_set_frame_pointer.
7709         (arm_file_start): Output directive for unified syntax.
7710         (arm_unwind_emit_set): Handle stack alignment instruction.
7711         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
7712         Add v6t2, v7, v7a, v7r and v7m.
7713         (RETLDM): Add Thumb-2 code.
7714         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
7715         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
7716         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
7717         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
7718         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
7719         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
7720         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
7721         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
7722         ADJUST_INSN_LENGTH): Define.
7723         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
7724         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
7725         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
7726         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
7727         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
7728         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
7729         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
7730         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
7731         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
7732         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
7733         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
7734         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
7735         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
7736         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
7737         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
7738         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
7739         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
7740         cortex-m3.
7741         * config/arm/arm-tune.md: Regenerate.
7742         * config/arm/arm-protos.h: Update prototypes.
7743         * config/arm/vfp.md: Enable patterns for Thumb-2.
7744         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
7745         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
7746         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
7747         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
7748         * config/arm/libunwind.S: Add Thumb-2 code.
7749         * config/arm/constraints.md: Update include Thumb-2.
7750         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
7751         * config/arm/ieee754-df.S: Ditto.
7752         * config/arm/bpabi.S: Ditto.
7753         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
7754         * config/arm/predicates.md (low_register_operand,
7755         low_reg_or_int_operand, thumb_16bit_operator): New.
7756         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
7757         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
7758         * config/arm/t-arm-elf: Add armv7 multilib.
7759         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
7760         Include thumb2.md.
7761         (UNSPEC_STACK_ALIGN, ce_count): New.
7762         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
7763         arm_zero_extendsidi2, arm_zero_extendqidi2): New
7764         insns/expanders.
7765         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
7766         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
7767         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
7768         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
7769         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
7770         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
7771         insns.
7772         * doc/extend.texi: Document ARMv7-M interrupt functions.
7773         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
7775 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7777         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
7778         (struct _Unwind_Context): Rename args_size to flags, remove
7779         signal_frame field, add a new args_size field and version field.
7780         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
7781         _Unwind_IsExtendedContext): New inline functions.
7782         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
7783         Assume by_value array is only present if _Unwind_IsExtendedContext.
7784         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
7785         _Unwind_IsSignalFrame.
7786         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
7787         (uw_update_context_1): Use _Unwind_SetSignalFrame.
7788         (uw_init_context_1): Initialize context->flags to
7789         EXTENDED_CONTEXT_BIT.
7790         * config/rs6000/linux-unwind.h (frob_update_context): Use
7791         _Unwind_SetSignalFrame.
7793 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7795         PR middle-end/30353
7796         * gimplify.c (gimplify_modify_expr_complex_part): Move below
7797         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
7798         the value.
7800 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
7802         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
7803         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
7804         RET, AT_SP): Remove.
7805         * config/i386/i386.md (*sse_prologue_save_insn): Use return
7806         instead of RET.
7808         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
7809         * cfgbuild.c (find_basic_blocks): Likewise.
7810         * cfgrtl.c (rtl_create_basic_block): Likewise.
7811         * function.c (temp_slots_at_level): Likewise.
7812         * reg-stack.c (stack_regs_mentioned): Likewise.
7813         * regclass.c (allocate_reg_info): Likewise.
7814         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
7815         set_bb_for_stmt, move_block_to_fn): Likewise.
7816         * tree-complex.c (tree_lower_complex): Likewise.
7817         * vec.h (VEC_safe_grow_cleared): New.
7819         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
7821 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
7823         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
7824         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
7825         to loop_version.
7826         * cfgloopmanip.c (scale_loop_frequencies): Export.
7827         (loopify): Scale the frequencies by prescribed coefficients.
7828         (set_zero_probability): New function.
7829         (duplicate_loop_to_header_edge): Improve updating of frequencies.
7830         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
7831         and frequencies according to arguments.
7832         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
7833         correctly.
7834         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
7835         * modulo-sched.c (sms_schedule): Set probabilities for entering
7836         versioned loop correctly.
7837         * tree-vect-transform.c (vect_transform_loop): Ditto.
7838         * cfgloop.h (loopify, loop_version): Declaration changed.
7839         (scale_loop_frequencies): Declared.
7841 2007-01-02  Jan Hubicka  <jh@suse.cz>
7843         * cgraph.c: Include tree-flow.h
7844         (cgraph_add_new-function): Handle IPA_SSA mode; execute
7845         early_local_passes.
7846         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
7847         * tree-pass.h (pass_all_early_optimizations): Declare.
7848         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
7849         early_local_passes.
7850         (cgraph_analyze_function): Do early_local_passes.
7851         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
7852         Do not add referenced vars.
7853         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
7854         SSA form.
7855         (gate_all_early_local_passes): New gate.
7856         (pass_early_local_passes): Use new gate.
7857         (execute_early_local_optimizations): New functions.
7858         (gate_all_early_optimizations): New gate.
7859         (pass_all_early_optimizations): New pass.
7860         (execute_free_datastructures): Free SSA only when initialized.
7861         (gate_init_datastructures): Init only when optimizing.
7862         (tree_lowering_passes): Do early local passes when called late.
7863         * tree-profile.c (do_tree_profiling): Don't profile functions added
7864         late.
7865         (do_early_tree_profiling, pass_early_tree_profile): Kill.
7866         * tree-cfg.c (update_modified_stmts): Do not update when operands are
7867         not active.
7868         * passes.c (init_optimizations_passes): Reorder so we go into SSA
7869         during early_local_passes.
7870         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
7873 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
7875         * Makefile.in: Update copyright year.
7877 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
7879         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
7880         in $(lang_checks) and check-consistency targets.
7882 2007-01-02  Jan Hubicka  <jh@suse.cz>
7884         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
7885         Do not add referenced vars.
7886         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
7887         are not active.
7888         * passes.c (init_optimization_passes): Put mudflap_2 after
7889         free_datastructures.
7891 2007-01-02  Jan Hubicka  <jh@suse.cz>
7893         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
7894         Set NOTHROW flag on call statements proved to be nothrow.
7895         Update statement of local calls so new pure/const functions are
7896         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
7897         goto receivers.
7898         (tree_rest_of_compilation): Register hooks and initialize bitmap
7899         early. Do not set after_inlining flag.
7901 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
7903         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
7904         HOST_BITS_PER_LONGLONG
7906 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7908         PR c/19977
7909         * c-typeck.c (store_init_value): Don't emit pedantic overflow
7910         warning for non-static initializers.
7912 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
7914         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
7915         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
7916         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
7917         Always use set_unique_reg_note to add REG_EQUAL notes.
7919 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
7921         Revert:
7922         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
7924         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
7925         * cfgbuild.c (find_basic_blocks): Likewise.
7926         * cfgrtl.c (rtl_create_basic_block): Likewise.
7927         * function.c (temp_slots_at_level): Likewise.
7928         * reg-stack.c (stack_regs_mentioned): Likewise.
7929         * regclass.c (allocate_reg_info): Likewise.
7930         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
7931         set_bb_for_stmt, move_block_to_fn): Likewise.
7932         * tree-complex.c (tree_lower_complex): Likewise.
7933         * vec.h (VEC_safe_grow_cleared): New.
7935 2007-01-02  Ian Lance Taylor  <iant@google.com>
7937         * c-common.c (c_common_truthvalue_conversion): When warning about
7938         using an assignment as a truth value, set TREE_NO_WARNING.
7940 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7942         PR middle-end/7651
7943         * c.opt (Wold-style-declaration): New.
7944         * doc/invoke.texi (C-only Warning Options): New.
7945         (Wold-style-declaration): Document it.
7946         (Wextra): Enabled by -Wextra.
7947         * c-opts.c (c_common_post_options): Enabled by -Wextra.
7948         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
7949         -Wold-style-declaration.
7951 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
7953         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
7954         * cfgbuild.c (find_basic_blocks): Likewise.
7955         * cfgrtl.c (rtl_create_basic_block): Likewise.
7956         * function.c (temp_slots_at_level): Likewise.
7957         * reg-stack.c (stack_regs_mentioned): Likewise.
7958         * regclass.c (allocate_reg_info): Likewise.
7959         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
7960         set_bb_for_stmt, move_block_to_fn): Likewise.
7961         * tree-complex.c (tree_lower_complex): Likewise.
7962         * vec.h (VEC_safe_grow_cleared): New.
7964 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
7966         * c-common.c (c_common_nodes_and_builtins): Since variants of
7967         void_type_node get built before it is given a name, we need to
7968         give those variants the name, too.
7969         (complete_array_type): We need to work with the canonical main
7970         type of the array, from which we will build the qualified version.
7971         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
7972         * print-tree.c (print_node): Display canonical type information
7973         for each type.
7974         * stor-layout.c (layout_type): When we don't know the
7975         alignment of a type for which we're building an array, we end up
7976         guessing wrong, so make the type require structural equality.
7977         * tree.c (make_node_stat): When we build a new type, it is its
7978         own canonical type.
7979         (build_type_attribute_qual_variant): When building an attribute
7980         variant, its canonical type is the non-attribute variant. However,
7981         if the attributes are target-dependent and they differ, we need to
7982         use structural equality checks for this type.
7983         (build_qualified_type): A qualified type is not equivalent to its
7984         unqualified variant; set the canonical type appropriately.
7985         (build_distinct_type_copy): When building a distinct type from
7986         another type, the new type is its own canonical type.
7987         (build_variant_type_copy): When building a new type variant, we
7988         assume that it is equivalent to the original type.
7989         (build_pointer_type_for_mode): When building a pointer type, also
7990         build a canonical type pointer.
7991         (build_reference_type_for_mode): When building a reference type,
7992         also build a canonical type reference.
7993         (build_index_type): When we can't hash an index type (e.g.,
7994         because its maximum value is negative), the index type requires
7995         structural equality tests.
7996         (build_array_type): Build the canonical form of an array type.
7997         (build_function_type): Function types require structural equality,
7998         because they contain default arguments, attributes, etc.
7999         (build_method_type_directly): Ditto for method types.
8000         (build_offset_type): Build the canonical offset type.
8001         (build_complex_type): Build the canonical vector type.
8002         (make_vector_type): Build the canonical vector type.
8003         * tree.h (TYPE_CANONICAL): New.
8004         (TYPE_STRUCTURAL_EQUALITY_P): New.
8005         (SET_TYPE_STRUCTURAL_EQUALITY): New.
8006         (struct tree_type): Added "canonical" field.
8007         * params.h (VERIFY_CANONICAL_TYPES): New.
8008         * doc/c-tree.texi (TYPE_CANONICAL): Document.
8009         (TYPE_STRUCTURAL_EQUALITY_P): Document.
8010         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
8011         * doc/invoke.texi (verify-canonical-types): Document --param
8012         parameter for verifying canonical types.
8014 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
8016         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
8017         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
8018         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
8019         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
8020         tm_file.
8021         * config/rs6000/e500.h: New.
8022         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
8023         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
8024         Remove.
8025         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
8026         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
8027         TARGET_E500_DOUBLE): Remove.
8028         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
8029         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
8030         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
8031         * config/rs6000/rs6000.c (rs6000_override_options): Use
8032         CHECK_E500_OPTIONS.
8034 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
8036         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
8037         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
8038         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
8039         rs6000_emit_cmove): Don't check TARGET_E500.
8040         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
8041         sordered): Don't check TARGET_E500.
8043 2007-01-01  Eric Christopher  <echristo@apple.com>
8045         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
8046         HARD_REGISTER_NUM_P.
8048 2007-01-01  Roger Sayle  <roger@eyesopen.com>
8050         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
8051         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
8052         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
8053         eq/ne Y".
8055 2007-01-01  Mike Stump  <mrs@apple.com>
8057         * configure.ac: Remove support for building with Apple's gcc-3.1.
8059 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
8061         PR middle-end/30311
8062         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
8063         REG is a hard register.  Do not modify REG before calling
8064         subreg_nregs.
8065         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
8066         multiple of the size of YMODE for certain lowpart cases.
8068 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
8070         PR middle-end/30253
8071         * gimplify (voidify_wrapper_expr): Update for
8072         GIMPLE_MODIFY_STMT.
8074 2007-01-01  Andreas Schwab  <schwab@suse.de>
8076         PR target/29166
8077         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
8078         save of BR0 in extra_spill_size instead of spill_size.
8079         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
8080         area.
8081         (ia64_expand_epilogue): Restore BR0 from its new location.
8083 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
8085         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
8086         Use a temporary variable if the left hand side is not a gimple
8087         register.
8089 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
8091         * gimplify.c (gimplify_return_expr): Make the temporary variable
8092         for the return expression, a gimple register variable.
8094 2007-01-01  Jan Hubicka  <jh@suse.cz>
8096         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
8097         INSN_LIST.
8099 2007-01-01  Mike Stump  <mrs@apple.com>
8101         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
8102         .literal16.
8103         * config/darwin.c (machopic_select_rtx_section): Use
8104         HAVE_GAS_LITERAL16.
8105         (darwin_mergeable_constant_section): Likewise.
8106         * configure: Regenerate.
8107         * config.in: Regenerate.
8109 2007-01-01  Jan Hubicka  <jh@suse.cz>
8110             Andrew Pinski  <pinskia@gmail.com>
8112         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
8113         before starting IPA passes.