OSDN Git Service

fbe584fb22ed2ad9bd646f470ac11971118b91af
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
2
3         PR c++/30924
4         * tree.c (walk_type_fields): Recurse into the element type of
5         ARRAY_TYPEs if there is a pointer set.
6
7 2007-03-10  Dirk Mueller  <dmueller@suse.de>
8
9         * c-common.c (warn_logical_operator): Fix condition.
10
11 2007-03-10  Tobias Schl├╝ter  <tobi@gcc.gnu.org>
12
13         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
14         quotation mark.
15         * config/darwin.c (machopic_select_section): Remove superfluous
16         argument in call to categorize_decl_for_section.  Remove unused
17         variable shlib.
18
19 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
20
21         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
22         defined.
23         * configure: Regenerate.
24
25 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
26
27         PR target/31101
28         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
29         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
30         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
31         Add LABEL_NUSES to emmitted label.
32         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
33         branch probability value to emmitted jump insn.
34         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
35         Do not check life information and do not re-arrange input operands
36         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
37
38 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
39
40         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
41         the change of decode_asm_operands.
42
43 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
44
45         * mode-switching.c (create_pre_exit): Skip blockage insn.
46
47 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
48
49         * tree-pass.h (TODO_update_smt_usage): Remove.
50         Update all users.
51         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
52         argument SOME.
53         Update all users.
54
55 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
56
57         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
58         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
59         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
60         SOM target.
61
62 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
63
64         * gcc.c: Document %{, in big comment at top.
65         (input_suffix_matches): Remove special handling for .s and
66         .S.
67         (input_spec_matches): New.
68         (handle_braces): Handle %{,.
69         (validate_switches): ',' indicates a value which is not a switch.
70         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
71         to detect assembler input.
72         * config/i386/sol2.h (CPP_SPEC): Likewise.
73         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
74         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
75         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
76         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
77         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
78         -m64 causes deployment target to default to 10.5.
79         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
80
81 2007-03-09  Richard Henderson  <rth@redhat.com>
82
83         PR target/26090
84         * target.h (targetm.asm.out.reloc_rw_mask): New.
85         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
86         (TARGET_ASM_OUT): Use it.
87         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
88         * varasm.c (categorize_decl_for_section): Remove shlib argument;
89         use the new reloc_rw_mask target hook instead.
90         (default_section_type_flags_1): Merge into...
91         (default_section_type_flags): ... here.
92         (decl_readonly_section_1): Merge into...
93         (decl_readonly_section): ... here.
94         (default_elf_select_section_1): Merge into...
95         (default_elf_select_section): ... here.
96         (default_unique_section_1): Merge into...
97         (default_unique_section): ... here.
98         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
99         (default_select_rtx_section): Use it.
100         (default_elf_select_rtx_section): Likewise.
101         * output.h: Update to match.
102         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
103         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
104         (TARGET_ASM_RELOC_RW_MASK): New.
105         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
106         to categorize_decl_for_section.
107         (x86_64_elf_unique_section): Likewise.
108         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
109         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
110         (TARGET_ASM_RELOC_RW_MASK): New.
111         * config/ia64/ia64.c (ia64_rwreloc_select_section,
112         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
113         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
114         (TARGET_RWRELOC): Remove.
115         (ia64_section_type_flags): Adjust call to default_section_type_flags.
116         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
117         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
118         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
119         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
120         (rs6000_xcoff_select_section): Use decl_readonly_section.
121         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
122         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
123         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
124         (TARGET_SECTION_TYPE_FLAGS): Remove.
125         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
126
127 2007-03-09  Roger Sayle  <roger@eyesopen.com>
128
129         * fold-const.c (fold_comparison): Remove compile-time evaluation of
130         complex constant equality/inequality comparisons for here.
131         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
132         known at compile-time or can be simplified to a scalar comparison.
133         (fold_relational_const): Move compile-time evaluation of complex
134         constant equality/inequality comparisons to here.
135
136 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
137
138         PR rtl-optimization/30643
139         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
140         dest_addr_elt.
141         (fold_rtx): Recurse, like before 2006-11-03.
142
143 2007-03-09  DJ Delorie  <dj@redhat.com>
144
145         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
146         m32c-pragma.o.
147
148 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
149
150         PR tree-optimization/30375
151         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
152         LHS of statements is not the same.
153         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
154
155 2007-03-09  Chao-ying Fu  <fu@mips.com>
156
157         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
158         REV 2.
159         * doc/invoke.texi (-mdspr2): Document new option.
160         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
161         New unspec for DSP REV 2.
162         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
163         these instructions are extended in DSP REV 2.
164         (mips-dspr2.md): Include.
165         * config/mips/mips.opt (mdspr2): New option.
166         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
167         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
168         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
169         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
170         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
171         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
172         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
173         and 2 builtins.
174         (bdesc_map): Add one field of unsupported_target_flags.
175         (bdesc_arrays):  Update entries to have extra fields.  Add
176         dsp_32only_bdesc.
177         (mips_init_builtins): Initialize new function types.
178         Check unsupported_target_fileds to filter out builtins.
179         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
180         TARGET_DSPR2.
181         (ASM_SPEC): Pass mdspr2 to the assembler.
182         * config/mips/mips-dspr2.md: New file.
183
184 2007-03-09  Sa Liu  <saliu@de.ibm.com>
185
186         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
187
188 2007-03-09  Ian Lance Taylor  <iant@google.com>
189
190         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
191         argument) like -Wstrict-overflow=2.
192         * doc/invoke.texi (Warning Options): Update documentation.
193
194 2007-03-09  Dirk Mueller  <dmueller@suse.de>
195
196         PR c++/17946
197         * doc/invoke.texi (-Wlogical-op): Document.
198         * common.opt (-Wlogical-op): New.
199         * c-common.h (warn_logical_operator): Declare.
200         * c-common.c (warn_logical_operator): Define.
201         * c-typeck.c (parser_build_binary_op): Call
202         warn_logical_operator.
203
204 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
205
206         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
207         * final.c (final_scan_insn): Test for non-"" file name.
208
209 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
210
211         * doc/loop.texi: Document the Omega linear constraints solver.
212         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
213         omega-max-geqs, omega-max-eqs, omega-max-wild-cards, 
214         omega-hash-table-size, omega-max-keys, and 
215         omega-eliminate-redundant-constraints.
216         * tree-pass.h (pass_check_data_deps): Declared.
217         * omega.c: New.
218         * omega.h: New.
219         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
220         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps, 
221         pass_check_data_deps): New.
222         * tree-data-ref.c (init_data_ref): Remove declaration.
223         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
224         (analyze_array): Renamed init_array_ref, move up initializations.
225         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
226         Removed arguments that are set to NULL.
227         (analyze_indirect_ref): Correct indentation, correct call to 
228         init_pointer_ref.
229         (object_analysis): Call init_array_ref instead of analyze_array.
230         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
231         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
232         of DR_ACCESS_FNS_ADDR.
233         (init_omega_eq_with_af, omega_extract_distance_vectors, 
234         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
235         ddr_consistent_p): New.
236         (compute_affine_dependence): Check consistency of ddrs when 
237         flag_check_data_deps is passed.
238         (analyze_all_data_dependences): Uncomment.
239         (tree_check_data_deps): New.
240         * tree-data-ref.h: Include omega.h.
241         (DR_ACCESS_FNS_ADDR): Removed.
242         (data_dependence_relation): Add inner_loop.
243         (DDR_INNER_LOOP): New.
244         * common.opt (fcheck-data-deps): New.
245         * tree-flow.h (tree_check_data_deps): Declare.
246         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
247         (OBJS-common): Depend on omega.o.
248         (omega.o): Define.
249         * passes.c (pass_check_data_deps): Scheduled.
250         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS, 
251         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
252         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
253         PARAM_VECT_MAX_VERSION_CHECKS,
254         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
255
256 2007-03-09  Richard Guenther  <rguenther@suse.de>
257
258         PR tree-optimization/30904
259         PR middle-end/31058
260         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
261         the same way as *_DIV_EXPR.
262
263 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
264
265         * recog.c (decode_asm_operands): No mixed declarations and code.
266
267 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
268
269         * rtl.def (ASM_INPUT): Add location.
270         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
271         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
272         (decode_asm_operands): Add loc operand.
273         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
274         * stmt.c (expand_asm): Rename to...
275         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
276         gen_rtx_ASM_INPUT_loc.
277         (expand_asm_expr): Adjust.
278         * recog.c (decode_asm_operands): Add loc operand.
279         (check_asm_operands, extract_insn): Adjust.
280         * reload1.c (maybe_fix_stack_asms): Likewise.
281         * final.c (asm_insn_count): Likewise.
282         (final_scan_insn): Output # line before and after asm.
283
284 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
285
286         * tree-ssa-structalias.c (variable_info): Remove
287         finished_solution.
288         (new_var_info): Ditto.
289         (shared_bitmap_info_t): New structure.
290         (shared_bitmap_table): New variable.
291         (shared_bitmap_hash): New function.
292         (shared_bitmap_eq): Ditto
293         (shared_bitmap_lookup): Ditto.
294         (shared_bitmap_add): Ditto.
295         (merge_smts_into): Change to take bitmap directly.
296         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
297         (init_alias_vars): Init shared bitmap hashtable.
298         (delete_points_to_sets): Delete shared bitmap hashtable.
299         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
300         is_aliased removal as a change that was still necessary was
301         deleted.
302
303 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
304
305         * config/i386/i386.h (override_options): Conditionally disable
306         x86_sahf for 64bit targets only.
307
308 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
309
310         PR C/31072
311         * c-decl.c (merge_decls): Don't call make_var_volatile.
312         * varasm.c (make_var_volatile): Remove.
313         * output.h (make_var_volatile): Remove.
314
315 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
316
317         PR tree-optimization/31085
318         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
319
320 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
321
322         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
323         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
324         ATTR_CONST_NOTHROW_LIST.
325         
326         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
327         FIX_TRUNC_EXPR.
328
329 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
330
331         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
332
333 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
334
335         PR 31013
336         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
337         is declared.
338         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
339         passed, use shared libgcc.
340
341 2007-03-08  Roger Sayle  <roger@eyesopen.com>
342
343         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
344         instead of calling build2 with a GIMPLE_MODIFY_STMT.
345         (honor_protect_cleanup_actions, lower_try_finally_switch):
346         Likewise.
347         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
348         ifc_temp_var): Likewise.
349         * tree-inline.c (setup_one_parameter): Likewise.
350         * tree-mudflap.c (mf_decl_cache_locals,
351         mf_build_check_statement_for): Likewise.
352         * tree-nested.c (init_tmp_var, save_tmp_var,
353         finalize_nesting_tree_1): Likewise.
354         * tree-outof-ssa.c (insert_copy_on_edge,
355         insert_backedge_copies): Likewise.
356         * tree-profile.c (tree_gen_edge_profiler,
357         tree_gen_ic_profiler): Likewise.
358         * tree-scalar-evolution.c (scev_const_prop): Likewise.
359         * tree-sra.c (sra_build_assignment): Likewise.
360         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
361         * tree-ssa-math-opts.c (insert_reciprocals,
362         execute_cse_sincos_1): Likewise.
363         * tree-tailcall.c (adjust_accumulator_values,
364         adjust_return_value): Likewise.
365         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
366         * tree-vect-transform.c (vect_create_data_ref_ptr,
367         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
368         vect_create_epilog_for_reduction, vectorizable_reduction,
369         vectorizable_call, vectorizable_conversion,
370         vectorizable_assignment, vectorizable_operation,
371         vectorizable_type_demotion, vect_gen_widened_results_half,
372         vect_permute_store_chain, vectorizable_store,
373         vect_setup_realignment, vect_permute_load_chain,
374         vectorizable_load, vectorizable_condition,
375         vect_create_cond_for_align_checks): Likewise.
376         * tree-vrp.c (build_assert_expr_for): Likewise.
377
378 2007-03-08  Ian Lance Taylor  <iant@google.com>
379
380         * tree-vrp.c: Include "intl.h".
381         (usable_range_p): New static function.
382         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
383         overflowed values, juts set *strict_overflow_p.
384         (compare_values): Only return -2 if one of the operands is not a
385         constant.
386         (compare_ranges): Call usable_range_p.
387         (compare_range_with_value): Likewise.
388         (vrp_evaluate_conditional_warnv): Rename from
389         vrp_evaluate_conditional.  Make static.  Change all callers.
390         (vrp_evaluate_conditional): New function.
391         (simplify_div_or_mod_using_ranges): Issue warning about reliance
392         on signed overflow.
393         (simplify_abs_using_ranges): Likewise.
394         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
395         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
396         within_stmt parameter.
397         * tree-ssa-propagate.c (fold_predicate_in): Update call to
398         vrp_evaluate_conditional.
399         * tree-ssa-threadedge.c
400         (record_temporary_equivalences_from_stmts_at_dest): Change
401         simplify parameter to take a second tree parameter.
402         (simplify_control_stmt_condition): Likewise.
403         (thread_across_edge): Likewise.
404         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
405         (thread_across_edge): Likewise.
406         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
407
408 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
409
410         * config/i386/i386.h (TARGET_SAHF): New define.
411         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
412         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
413         (x86_sahf): New global variable.
414         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
415         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
416         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
417         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
418         for 64-bit.
419         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
420         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
421         when expanding fcomi/sahf based tests.
422         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
423         expanding sahf based alternative. Emit sahf based sequence when
424         optimizing for code size.
425         * config/i386/i386.md (x86_sahf_1): Do not disable for
426         TARGET_64BIT, enable for TARGET_SAHF. 
427
428 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
429
430         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
431         spurious whitespace from error message.
432
433 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
434
435         PR c++/30852
436         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
437
438 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
439
440         * c-decl.c (grokdeclarator): Disable warnings for anonymous
441         bitfields.
442         * tree-sra.c (instantiate_element): Propagate disabled warnings
443         from the element itself to the created variable.
444
445 2007-03-07  Richard Henderson  <rth@redhat.com>
446
447         PR target/30848
448         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
449         silently fix up the stack in the case of a missing register.
450
451 2007-03-07  Paul Brook  <paul@codesourcery.com>
452
453         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
454
455 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
456
457         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
458         New.
459         (phase1_vrs): Use them.
460         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
461         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
462         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
463         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
464         __gnu_Unwind_Restore_WMMXC if required.
465         (_Unwind_VRS_Pop): Implement iWMMXt support.
466         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
467         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
468         gnu_Unwind_Save_WMMXC): Define.
469
470 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
471
472         * config/vxworks.h (vxworks_override_options): Declare.
473         (VXWORKS_OVERRIDE_OPTIONS): Use it.
474         * config/vxworks.c: Include target.h and toplev.h.
475         (vxworks_override_options): New function.
476         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
477
478 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
479
480         * config/s390/s390.c (override_options): Don't emit an error when
481         -mstack-size is used without providing -mstack-guard.
482         (s390_emit_prologue): Choose stack_guard value automatically if not
483         provided via command line.
484         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
485
486 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
487
488         * config/i386/i386.c (output_set_got): Add a GOT initialization
489         sequence for VxWorks PIC.
490         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
491         around labels as well as symbols.  Use gotoff_operand instead
492         of local_symbolic_operand.
493         (legitimize_pic_address): Use gotoff_operand instead of
494         local_symbolic_operand.  Use @GOT accesses for labels as
495         well as symbols.
496         (ix86_output_addr_diff_elt): Use PC-relative rather than
497         GP-relative offsets for VxWorks PIC.
498         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
499         no_new_pseudos.  Check whether the returned register is op0.
500         * config/i386/i386.md (tablejump): Use PC-relative rather than
501         GP-relative offsets for VxWorks PIC.
502         * config/i386/predicates.md (gotoff_operand): New predicate.
503
504 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
505
506         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
507         before defining.
508         * config/vxworks-dummy.h: New file.
509         * config/i386/i386.h: Include it.
510
511 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
512
513         * dwarf2out.c (is_inlined_entry_point): New
514         (add_high_low_attributes): Emit DW_AT_entry_pc along with
515         DW_AT_ranges if the first subblock is the entry point.
516
517 2007-03-06  David Daney  <ddaney@avtrex.com>
518
519         * doc/install.texi (mips-*-*): Change recommended binutils
520         version.
521
522 2007-03-06  Anatoly Sokolov <aesok@post.ru>
523
524         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
525         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162 
526         devices.
527         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
528         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
529
530 2007-03-06  Jan Hubicka  <jh@suse.cz>
531
532         * errors.h (warning, error, fatal, internal_error): Mark as cold.
533         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
534         are hot.
535         (probably_cold_bb_p): Cold functions are cold.
536         (probably_never_executed_bb_p): Cold functions are cold.
537         (tree_bb_level_predictions): Predict calls to cold functions as not
538         taken.
539         (compute_function_frequency): Check hot/cold attributes.
540         * function.h (function_frequency): Update comments.
541         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
542         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
543         (c_common_att): Add cold and hot.
544
545         * doc/extend.texi (hot,cold attributes): Document.
546
547 2007-03-06  Andrew Haley  <aph@redhat.com>
548
549         * function.c (expand_function_end): Move blockage to just after we
550         emit the label for the naked return from the function.
551
552 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
553
554         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
555         before redefining.
556
557 2007-03-06  Jan Hubicka  <jh@suse.cz>
558
559         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
560         loaded for constant large models.  Non-large 64bit PIC can do.
561         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
562         * cmodel.h: Add LARGE PIC.
563         * i386.md (UNSPEC_PLTOFF): New.
564         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
565         needed.
566         (*call_1_rex64): Disable for large models.
567         (*call_1_rex64_large): New.
568         (*call_value_1_rex64): Disable for large models.
569         (*call_value_1_rex64_large): New.
570         (set_rip_rex4): New.
571         (set_got_offset_rex64): New.
572         * predicates.md (constant_call_address_operand): For large model
573         constant calls are not possible.
574         * i386-protos.h (construct_plt_address): Declare.
575         * i386.c (override_options): Accept large models.
576         (ix86_expand_prologue): Expand large PIC GOT pointer load.
577         (legitimate_constant_p): Add new UNSPECs.
578         (legitimate_pic_operand_p): Likewise.
579         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
580         (legitimize_pic_address): Do easy RIP relative way for TLS only for
581         non-large model.
582         (output_pic_addr_const): Add PLTOFF.
583         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
584         (ix86_expand_move): Legitimize pic address when in PIC mode.
585         (construct_plt_address): New function.
586         (ix86_expand_call): Offload the address to register and use GOT pointer
587         for large model.
588         * invoke.texi (mcmodel=large): Update documentation.
589
590 2007-03-06  Richard Henderson  <rth@redhat.com>
591
592         * config/i386/i386.c (x86_use_leave, x86_push_memory,
593         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
594         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
595         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
596         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
597         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
598         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix, 
599         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
600         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
601         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves, 
602         x86_partial_reg_dependency, x86_memory_mismatch_stall, 
603         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
604         x86_sse_partial_reg_dependency, x86_sse_split_regs, 
605         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
606         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
607         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
608         x86_schedule, x86_use_bt, x86_pad_returns): Merge into ...
609         (ix86_tune_features): ... here.  New array.
610         (x86_cmove, x86_use_xchgb, x86_cmpxchg, x86_cmpxchg8b,  
611         x86_xadd, x86_bswap): Merge into ...
612         (ix86_arch_features): ... here.  New array.
613         (x86_3dnow_a): Remove.
614         (x86_accumulate_outgoing_args): Make static.
615         (x86_arch_always_fancy_math_387): Make static.
616         (ix86_tune_mask, ix86_arch_mask): Move ...
617         (override_options): ... to local variables here.  Apply the
618         appropriate mask to each element of ix86_arch_features and
619         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
620         as were done in the old macros.
621         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
622         * config/i386/i386.h (x86_use_leave, x86_push_memory,
623         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
624         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
625         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
626         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
627         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
628         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
629         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
630         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
631         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
632         x86_partial_reg_dependency, x86_memory_mismatch_stall,
633         x86_accumulate_outgoing_args, x86_prologue_using_move,
634         x86_epilogue_using_move, x86_decompose_lea,
635         x86_arch_always_fancy_math_387, x86_shift1,
636         x86_sse_partial_reg_dependency, x86_sse_split_regs,
637         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,        
638         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
639         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
640         x86_use_incdec, x86_pad_returns, x86_bswap,
641         x86_partial_flag_reg_stall): Remove.
642         (enum ix86_tune_indices): New.
643         (ix86_tune_features): New.
644         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
645         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
646         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
647         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
648         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
649         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
650         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
651         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
652         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
653         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
654         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
655         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
656         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
657         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
658         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
659         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
660         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
661         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
662         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
663         TARGET_EXT_80387_CONSTANTS): Use it.
664         (enum ix86_arch_indices): New.
665         (ix86_arch_features): New.
666         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
667         TARGET_BSWAP): Use it.
668         (ix86_tune_mask, ix86_arch_mask): Remove.
669
670 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
671
672         PR bootstrap/31020
673         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
674         Define using $${sysroot_headers_suffix}.
675         * configure: Regenerate.
676         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
677         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
678         defined.
679         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
680         * gcc.c (print_sysroot_headers_suffix): New.
681         (option_map): Include --print-sysroot-headers-suffix.
682         (display_help): Mention -print-sysroot-headers-suffix.
683         (process_command): Handle -print-sysroot-headers-suffix.
684         (do_spec_1): Append multilib directory to include-fixed path if
685         sysroot suffixes in use.
686         (main): Handle -print-sysroot-headers-suffix.
687         * Makefile.in (start.encap): Don't depend on xlimits.h
688         (xlimits.h): Remove.
689         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
690         limits.h for each multilib in fixinc_list.
691         (fixinc_list, s-fixinc_list): New.
692         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
693         generate them for each multilib in fixinc_list.
694         (stmp-fixproto): Use include-fixed.  Run fixproto for each
695         multilib in fixinc_list.
696         (mostlyclean): Don't remove xlimits.h.
697         (clean): Remove include-fixed.
698         (real-install-headers-tar, real-install-headers-cpio,
699         real-install-headers-cp): Don't copy include, only include-fixed.
700         (install-mkheaders): Depend on fixinc_list.  Don't depend on
701         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
702         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
703         SYSTEM_HEADER_DIR setting in mkheaders.conf.
704
705 2007-03-06  Jan Hubicka  <jh@suse.cz>
706
707         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
708         NANs easilly.
709
710 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
711
712         * configure.ac: Allow tm_file to contain build-directory files.
713         * configure: Regenerate.
714         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
715         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
716         * config/m68k/print-sysroot-suffix.sh: New file.
717
718 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
719
720         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
721         of pic_offset_table_rtx if reload_completed.
722         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
723         PIC_OFFSET_TABLE_REGNUM.
724         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
725         return true.
726         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
727         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
728
729 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
730
731         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
732         functions that call eh_return.
733
734 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
735
736         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
737         functions that need a constant pool.
738
739 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
740
741         PR target/28181
742         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
743         (m68k_preferred_reload_class): Likewise.
744         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
745         (SECONDARY_RELOAD_CLASS): Define.
746         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
747         (LIMIT_RELOAD_CLASS): Delete.
748         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
749         registers from storing bytes.
750         (m68k_secondary_reload_class): New function.
751         (m68k_preferred_reload_class): Likewise.
752
753 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
754
755         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
756         leaf functions.
757         (m68k_expand_prologue): Likewise.
758
759 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
760
761         * config/m68k/m68k-protos.h (output_sibcall): Declare.
762         (mips_expand_epilogue): Add a bool parameter.
763         (m68k_legitimize_sibcall_address): Declare.
764         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
765         (m68k_expand_epilogue): Add a parameter to select between sibling
766         and normal epilogues.  Only generate a return for the latter.
767         (m68k_ok_for_sibcall_p): New function.
768         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
769         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
770         (sibcall_value, *sibcall_value): Likewise.
771         (*call, *call_value): Require !SIBLING_CALL_P.
772         (epilogue): Update call to m68k_expand_epilogue.
773         (sibcall_epilogue): New pattern.
774         * config/m68k/predicates.md (const_call_operand): Say that this
775         predicate applies to sibling calls too.
776         (sibcall_operand): New predicate.
777
778 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
779
780         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
781         alternatives as movsi_cf.
782         (movsf_cf_hard): Add commentary.
783
784 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
785             Richard Sandiford  <richard@codesourcery.com>
786
787         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
788         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
789         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
790         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
791         as being live on exit from an interrupt function.
792         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
793         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
794         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
795         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
796         (m68k_interrupt_function_p): Globalize.
797         (m68k_compute_frame_layout): Remove reverse mask code.
798         (m68k_emit_movem, m68k_set_frame_related): New functions.
799         (m68k_output_function_prologue): Delete in favor of...
800         (m68k_expand_prologue): ...this new function.
801         (m68k_output_function_epilogue): Delete in favor of...
802         (m68k_expand_epilogue): ...this new function.
803         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
804         functions.
805         (print_operand): Handle %?.
806         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
807         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
808         (prologue, epilogue): New patterns.
809         (return): Turn into a define_expand.
810         (*return): New pattern, derived from old "return" pattern.  Use rte
811         rather than rts for interrupt functions.  Only use rtd if the pop
812         count is nonzero.
813         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
814         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
815         (link, *link, unlink, *unlink, load_got): Likewise.
816
817 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
818
819         PR target/23482
820         PR target/17114
821         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
822         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
823         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
824         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
825         and m68k_matches_u_p.
826         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
827         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
828         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
829         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
830         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
831         (REG_STRICT_P): New macro.
832         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
833         PCREL_GENERAL_OPERAND_OK.
834         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
835         m68k_legitimate_base_reg_p.
836         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
837         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
838         (PIC_CASE_VECTOR_ADDRESS): Update comment.
839         * config/m68k/m68k.c (m68k_address): New structure.
840         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
841         (m68k_decompose_index, m68k_legitimate_constant_address_p)
842         (m68k_jump_table_ref_p, m68k_decompose_address)
843         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
844         (m68k_matches_u_p): New functions.
845         (print_operand_address): Rewrite to use m68k_decompose_index.
846
847 2007-03-05  David Taylor  <dtaylor@emc.com>
848
849         * gcc.c: Correct copyright date in --version output.
850
851 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
852
853         * pa.md: In unamed move patterns, disparge copies between general
854         and floating point registers using '?' modifier.  Don't include 'f'
855         constraint for register preferences in DImode, SImode, HImode and
856         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
857         Remove constraints for copies between general and floating registers
858         in soft-float DFmode pattern.
859         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
860         floating register.
861         (movsf): Likewise. 
862
863 2007-03-05  Mike Stump  <mrs@apple.com>
864
865         * c-common.c (targetcm): Add.   
866         * c-opts.c (c_common_handle_option): Handle language specific
867         target options.
868         * opts.c (handle_option): Verify language for target options, if
869         any are given.
870         * opth-gen.awk: Add CL_LANG_ALL.
871         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
872         (TARGETCM_INITIALIZER): Add.
873         * target.h (struct gcc_targetcm): Add.
874         (targetcm): Add.
875         * targhooks.c (default_handle_c_option): Add.
876         * targhooks.h (default_handle_c_option): Add.
877         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
878
879         * config/darwin.opt (iframework): Add.
880         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
881         * config/darwin-c.c (handle_c_option): Add.
882         (TARGET_HANDLE_C_OPTION): Add.
883         (targetcm): Add.
884         * doc/invoke.texi (Darwin Options): Add -iframework.
885
886 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
887
888         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
889         conversion.
890
891 2007-03-05  Ian Lance Taylor  <iant@google.com>
892
893         * c.opt (fgnu89-inline): New option.
894         * c-opts.c (c_common_post_options): Set default value for
895         flag_gnu89_inline.
896         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
897         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
898         inline functions.
899         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
900         (grokdeclarator, start_function): Likewise.
901         * c-cppbuiltin.c (c_cpp_builtins): Define either
902         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
903         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
904         (C Dialect Options): Document -fgnu89-inline.
905         * doc/extend.texi (Function Attributes): Explain what the
906         gnu_inline attribute does.
907         * doc/cpp.texi (Common Predefined Macros): Document
908         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
909
910 2007-03-05  Ian Lance Taylor  <iant@google.com>
911
912         PR tree-optimization/31034
913         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
914         half-range if the other side is an overflow infinity.
915
916 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
917
918         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
919         (bfin*-linux-uclibc*): New configuration.
920         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
921         defining.
922         * config/bfin/linux.h: New file.
923         * config/bfin/libgcc-bfin.ver: New file.
924         * config/bfin/t-bfin-uclinux: New file.
925         * config/bfin/t-bfin-linux: New file.
926         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
927         (TARGET_OS_CPP_BUILTINS): New macro.
928
929 2007-03-05  Richard Guenther  <rguenther@suse.de>
930
931         * fold-const.c (fold_binary): Remove duplicate folding
932         of comparison of non-null ADDR_EXPR against null.
933
934 2007-03-05  Richard Guenther  <rguenther@suse.de>
935             Dorit Nuzman  <dorit@il.ibm.com>
936
937         PR tree-optimization/26420
938         * tree-vectorizer.c (vectorize_loops): Bail out early if there
939         are no loops in the function.  Only print the number of
940         vectorized loops if it is greater than zero or we are supposed
941         to print information about unvectorized loops.
942
943 2007-03-05  Revital Eres  <eres@il.ibm.com>
944
945         * gcc.dg/var-expand1.c: New test.
946         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
947         when an accumulator is expanded.
948
949 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
950
951         PR other/30465
952         * c-common.c (convert_and_check): Don't give warnings for
953         conversion if 'expr' already overflowed.
954         
955 2007-03-04  Roger Sayle  <roger@eyesopen.com>
956
957         PR middle-end/30744
958         * fold-const.c (fold_comparison): Enforce type consistency when
959         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
960
961 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
962
963         * tree-ssa-address.c (create_mem_ref): Do not put an expression
964         containing a cast to the base of TARGET_MEM_REF.
965
966 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
967
968         * tree.c (tree_contains_struct_check_failed): Remove spurious
969         whitespace from error message.
970
971 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
972
973         PR target/30406
974         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
975         instead of precision.
976
977 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
978             Nathan Sidwell  <nathan@codesourcery.com>
979
980         * emit-rtl.c (find_auto_inc): New.
981         (try_split): recreate REG_INC notes,
982         Use regular for loops rather than whiles.
983
984 2007-03-03  Andreas Schwab  <schwab@suse.de>
985
986         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
987         * configure: Regenerate.
988
989 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
990
991         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
992         flag_rounding_math, not flag_unsafe_math_optimizations.
993
994         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
995         fold_build2.
996         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
997         alpha_fold_vector_minmax): Likewise.
998         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
999         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1000
1001 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1002
1003         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1004         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1005         if the lhs has side-effects.
1006         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1007
1008 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1009
1010         * config/i386/i386.h (TUNEMASK): Remove define.
1011         (ARCHMASK): Remove define.
1012         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1013          Use ix86_arch_mask variable instead of ARCHMASK.
1014         * config/i386/i386.c (override_options): Ditto.
1015         (standard_80387_constant_p): Ditto.
1016
1017 2007-03-02  Ian Lance Taylor  <iant@google.com>
1018
1019         Used signed infinities in VRP.
1020         * tree-vrp.c (uses_overflow_infinity): New static function.
1021         (supports_overflow_infinity): New static function.
1022         (make_overflow_infinity): New static function.
1023         (negative_overflow_infinity): New static function.
1024         (positive_overflow_infinity): New static function.
1025         (is_negative_overflow_infinity): New static function.
1026         (is_positive_overflow_infinity): New static function.
1027         (is_overflow_infinity): New static function.
1028         (overflow_infinity_range_p): New static function.
1029         (compare_values_warnv): New function split out of compare_values.
1030         (compare_value): Call it.
1031         (set_value_range_to_nonnegative): Add overflow_infinity
1032         parameter.  Change caller.
1033         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1034         Change callers.
1035         (vrp_expr_computes_nonzero): Likewise.
1036         (compare_ranges, compare_range_with_value): Likewise.
1037         (compare_name_with_value, compare_names): Likewise.
1038         (vrp_evaluate_conditional): Likewise.
1039         (set_value_range): Handle infinity
1040         (vrp_operand_equal_p, operand_less_p): Likewise.
1041         (extract_range_from_assert): Likewise.
1042         (vrp_int_const_binop): Likewise.
1043         (extract_range_from_binary_expr): Likewise.
1044         (extract_range_from_unary_expr): Likewise.
1045         (extract_range_from_comparison): Likewise.
1046         (extract_range_from_expr): Likewise.
1047         (dump_value_range): Likewise.
1048         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1049         (test_for_singularity): Likewise.
1050         (vrp_int_const_binop): Remove inline qualifier.
1051         (adjust_range_with_scev): Add comment.
1052         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1053
1054 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
1055
1056         * tree-ssa-structalias.c (could_have_pointers): Tidy.
1057         (get_constraint_for): Likewise.
1058         (do_structure_copy): Likewise.
1059         (find_func_aliases): Fix references to MODIFY_EXPR.
1060         (intra_create_variable_infos): Tidy.
1061         * tree-ssa-operands.c (add_virtual_operand): Add argument
1062         IS_CALL_SITE.
1063         When adding members of alias sets, if IS_CALL_SITE is true and
1064         the symbol is not call-clobbered, skip it.
1065         Adjust all callers.
1066
1067 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1068
1069         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1070         entry by means of emit_insn_at_entry.
1071
1072 2007-03-02  Richard Henderson  <rth@redhat.com>
1073
1074         * expr.h (promoted_input_arg): Remove decl.
1075         * function.c (promoted_input_arg): Merge into ...
1076         * combine.c (setup_incoming_promotions): ... only caller.
1077         Rearrange to avoid double loop.
1078
1079 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1080             Peter Bergner  <bergner@vnet.ibm.com>
1081             Janis Johnson  <janis187@us.ibm.com>
1082
1083         * config/rs6000/dfp.md: New file.
1084         * config/rs6000/rs6000.md: Include dfp.md.
1085         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1086         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1087         and TDmode decimal float modes in FP registers.
1088         (num_insns_constant): Likewise.
1089         (rs6000_legitimate_offset_address_p): Likewise.
1090         (rs6000_legitimize_address): Likewise.
1091         (rs6000_legitimize_reload_address): Likewise.
1092         (rs6000_legitimate_address): Likewise.
1093         (rs6000_emit_move): Likewise.
1094         (function_arg_boundary): Likewise.
1095         (function_arg_advance): Likewise.
1096         (rs6000_darwin64_record_arg_recurse): Likewise.
1097         (function_arg): Likewise.
1098         (rs6000_gimplify_va_arg): Likewise.
1099         (rs6000_split_multireg_move): Likewise.
1100         (rs6000_output_function_epilogue): Likewise.
1101         (rs6000_output_function_epilogue): Likewise.
1102         (rs6000_register_move_cost): Likewise.
1103         (rs6000_function_value): Likewise.
1104         (rs6000_libcall_value): Likewise.
1105
1106 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1107
1108         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1109
1110 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1111
1112         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1113         Use $MULTIDIR to choose between the kernel and RTP headers,
1114         and use $WIND_BASE and $WIND_USR to locate them.
1115
1116 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1117
1118         * config/i386/i386.c (override_options): Put initialization of
1119         ix86_tune_mask and ix86_arch_mask to the correct place.
1120
1121 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1122             Michael Meissner  <michael.meissner@amd.com>
1123
1124         PR target/31019
1125         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1126         (ARCHMASK): Define.
1127         (TARGET_CMOVE): Use ARCHMASK.
1128         (TARGET_CMPXCHG): Ditto.
1129         (TARGET_CMPXCHG8B): Ditto.
1130         (TARGET_XADD): Ditto.
1131         (TARGET_BSWAP): Ditto.
1132         * config/i386/i386.c (ix86_tune_mask): New global variable.
1133         (ix86_arch_mask): Ditto.
1134         (override_options): Initialize ix86_tune_mask and
1135         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1136         target_flags.
1137
1138 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1139
1140         PR 30992
1141         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1142
1143 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
1144
1145         * target.h (init_dwarf_reg_sizes_extra): New target hook.
1146         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1147         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1148         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1149         hook.
1150         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1151         rs6000_init_dwarf_reg_sizes_extra): New.
1152         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1153         SPE register high parts.
1154
1155 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1156
1157         * Makefile.in: Add install-pdf target as
1158         copied from automake v1.10 rules.
1159         * configure.ac: Add install-pdf to target list.
1160         * configure: Regenerate.
1161
1162 2007-03-01  Paul Brook  <paul@codesourcery.com>
1163
1164         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1165         modes to LDRD for DImode.
1166         (output_move_double): Fixup out of range ldrd/strd.
1167         (vfp_secondary_reload_class): Rename...
1168         (coproc_secondary_reload_class): ... to this.  Add wb argument.
1169         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1170         coproc_secondary_reload_class for CLASS_IWMMXT.
1171         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1172         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1173
1174 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
1175
1176         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
1177         factor by the estimated number of iterations.
1178         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1179         prefetch latency.
1180
1181         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1182         decode_caches_intel, detect_caches_intel): New functions.
1183         (host_detect_local_cpu): Use detect_caches_amd and
1184         detect_caches_intel.
1185
1186 2007-03-01  Richard Henderson  <rth@redhat.com>
1187
1188         * expr.c (emit_move_complex_push): Export.
1189         (emit_move_complex_parts): Split out from ...
1190         (emit_move_complex): ... here.
1191         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1192         * config/i386/i386.md (movcdi): New.
1193
1194 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
1195
1196         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1197         size of mode1 to check for tieable modes in MMX case.
1198
1199 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
1200
1201         * Makefile.in (rtlanal.o): Depend on tree.h.
1202         * rtl.h (offset_within_section_p, split_const): Declare.
1203         * rtlanal.c: Include tree.h.
1204         (offset_within_block_p): New function, taken from
1205         mips_offset_within_object_p.
1206         (split_const): New function, taken from mips_split_const.
1207         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1208         Declare.
1209         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1210         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1211         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1212         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1213         (m68k_illegitimate_symbolic_constant_p): New function.
1214         * config/m68k/m68k.md (movsi): Remove misleading predicates.
1215         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1216         symbolic constant that might be outside the symbol's section,
1217         move the symbol first and then add the offset.
1218         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1219         Override.
1220         * config/mips/mips.c (mips_split_const): Delete.
1221         (mips_offset_within_object_p): Delete.
1222         (mips_symbolic_constant_p): Use offset_within_section_p and
1223         split_const instead of mips_offset_within_object_p and
1224         mips_split_const.
1225         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1226         (mips_legitimize_const_move, print_operand_reloc)
1227         (mips_dangerous_for_la25_p): Use split_const instead of
1228         mips_split_const.
1229
1230 2007-02-28  Eric Christopher  <echristo@apple.com>
1231
1232         * Makefile.in (install-include-dir): Don't rm -rf include.
1233
1234 2007-02-28  Richard Guenther  <rguenther@suse.de>
1235
1236         PR middle-end/30364
1237         * fold-const.c (fold_binary): Do not associate expressions
1238         with more than one variable for integer types that do not wrap.
1239
1240 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
1241
1242         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1243         Delete, and replace with...
1244         (fold_builtin_call_array): This.  Update callers to use it.
1245         * fold-const.c (fold_build_call_list): Delete, and replace with...
1246         (fold_build_call_array): This.
1247         (fold_build_call_list_initializer): Delete, and replace with...
1248         (fold_build_call_array_initializer): This.
1249         * tree.h: Update declarations to reflect above changes.
1250
1251         * c-typeck.c (build_function_call): Store converted arguments
1252         in a stack-allocated array instead of building a list.
1253         (convert_arguments): Store arguments in the array passed in as an
1254         argument, and return the actual number of arguments.
1255         * c-format.c: (check_function_format): Pass arguments in an
1256         array instead of a list.
1257         * c-common.c (check_function_nonnull): Likewise.
1258         (check_function_sentinel): Likewise.
1259         (check_function_arguments): Likewise.
1260         * c-common.h: Update declarations to reflect above changes.
1261
1262 2007-02-28  Jan Hubicka  <jh@suse.cz>
1263
1264         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1265         PRED_NEGATIVE_RETURN): Update outcomes.
1266
1267 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1268
1269         * calls.c (emit_library_call_value_1): Handle partial registers
1270         correctly when building up CALL_INSN_FUNCTION_USAGE.
1271
1272 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1273
1274         * pa/predicates.md (move_src_operand): Allow zero for mode.
1275         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1276         move pattern.
1277
1278 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
1279
1280         PR target/30970
1281         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1282         *movv2df_internal): Enable pattern only for valid operand
1283         combinations.
1284         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1285         tie only 128bit modes. For MMX registers, tie only 64bit modes.
1286
1287 2007-02-27  Mike Stump  <mrs@apple.com>
1288
1289         * config/darwin-crt3.c: Avoid compilation when compiling for a
1290         kext multilib.
1291
1292 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
1293
1294         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1295         FIXED_INCLUDE_DIR.
1296         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1297         for fixed headers and limits.h.
1298         (install-include-dir, install-headers-tar, install-headers-cpio,
1299         install-headers-cp, real-install-headers-tar,
1300         real-install-headers-cpio, real-install-headers-cp): Handle
1301         include-fixed as well as include.
1302         (install-mkheaders): Don't install files that go only in include
1303         not include-fixed.
1304         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1305         from GCC_INCLUDE_DIR.
1306         * gcc.c (process_command): Remove special -BstageN/ handling.
1307         (do_spec_1): Add include-fixed directories.
1308
1309 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1310
1311         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1312         _smulsi3_highpart.
1313         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1314         New functions.
1315         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1316         patterns.
1317
1318 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
1319
1320         * c-common.c (get_priority): Add check for
1321         SUPPORTS_INIT_PRIORITY.
1322
1323 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1324
1325         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1326
1327         * config/bfin/bfin.c: Include "cfglayout.h".
1328         (MAX_LSETUP_DISTANCE): New macro.
1329         (struct loop_info): New members incoming, incoming_src and
1330         incoming_dest.  Delete member predecessor.
1331         (length_for_loop): New function.
1332         (bfin_optimize_loop): Handle more different loop structures.
1333         (bfin_discover_loop): Rework detection of predecessor blocks by
1334         examining incoming edges.
1335         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1336         bfin_reorg_loops.
1337         (bfin_reorder_loops): New function.
1338         (bfin_reorg_loops): Use these three new functions.
1339
1340         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1341         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1342         (CONSTRAINT_LEN): Add entry for 'q'.
1343         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1344         Add 'q' constraints.
1345         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1346         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1347
1348         * config/bfin/bfin.md (add_with_carry): New pattern.
1349         (s_or_u, su_optab, su_modifier): New code macros/attrs.
1350         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1351         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1352         support unsigned multiplies too.  Removed incorrect commutativity from
1353         operand 1 constraint where appropriate.
1354         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1355         patterns.
1356         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1357         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1358         New patterns.
1359         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1360         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1361         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1362         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1363         usmulhisi_hh_huh): New patterns.
1364
1365         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1366         lshifthi3): Fix output template to use half reg for operand 2.
1367
1368         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1369         instead of R2.
1370
1371         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1372
1373 2007-02-27  Andreas Schwab  <schwab@suse.de>
1374
1375         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1376
1377 2007-02-27  Jan Hubicka  <jh@suse.cz>
1378
1379         * predict.c (last_basic_block_p): Remove.
1380         (tree_estimate_probability): Update return heuristic for commonized
1381         return blocks.
1382
1383 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1384
1385         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1386
1387 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1388
1389         * doc/include/gcc-common.texi (versionsubtitle): New macro.
1390         * doc/cpp.texi: Standardize title page.
1391         * doc/cppinternals.texi: Likewise.
1392         * doc/gcc.texi: Standardize title page, remove version number
1393         from copyright page.
1394         * doc/gccint.texi: Likewise.
1395         * doc/install.texi: Standardize title page, add table of
1396         contents.
1397
1398 2007-02-26  Jan Hubicka  <jh@suse.cz>
1399
1400         * predict.def: Set outcomes according to more recent results.
1401         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1402         Remove dead predictors.
1403         * predict.c (return_prediction): Fix pasto.
1404
1405 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1406
1407         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1408         change; avoid a memory leak when returning early.
1409
1410 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
1411
1412         * c-decl.c (static_ctors): Move to c-common.c.
1413         (static_dtors): Likewise.
1414         (finish_function): Use c_record_cdtor_fn.
1415         (build_cdtor): Move to c-common.c.
1416         (c_write_global_declarations): Use c_build_cdtor_fns.
1417         * c-common.h (static_ctors): Declare.
1418         (static_dtors): Likewise.
1419         (c_record_cdtor_fn): Likewise.
1420         (c_build_cdtor_fns): Likewise.
1421         * c-common.c (static_ctors): New variable.
1422         (static_dtors): Likewise.
1423         (c_record_cdtor_fn): New function.
1424         (build_cdtor): Move from c-decl.c
1425         (c_build_cdtor_fns): New function.
1426
1427         * output.h (assemble_addr_to_section): Declare.
1428         (get_cdtor_priority_section): Likewise.
1429         * varasm.c (assemble_addr_to_section): New function.
1430         (get_cdtor_priority_section): Likewise.
1431         (default_named_section_asm_out_destructor): Use them.
1432         (destor_dtor_section_asm_out_destructor): Likewise.
1433         (default_named_section_asm_out_constructor): Likewise.
1434         (default_ctor_section_asm_out_constructor): Likewise.
1435         * config.gcc (*-*-vxworks*): Include vxworks.o.
1436         * config/t-vxworks (vxworks.o): New target.
1437         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1438         (TARGET_ASM_CONSTRUCTOR): Define.
1439         (TARGET_ASM_DESTRUCTOR): Likewise.
1440         (vxworks_asm_out_constructor): Declare.
1441         (vxworks_asm_out_destructor): Likewise.
1442
1443         * c-common.c (get_priority): Check that we have not just an
1444         INTEGER_CST, but an integer constant with integeral type.
1445
1446 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
1447
1448         PR tree-optimization/30938
1449         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1450         use &dt[nargs-1] instead of &dt[nargs] in the call to
1451         vect_is_simple_use().
1452
1453 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
1454
1455         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1456         from register elimination as PRE_MODIFY / POST_MODIFY increments.
1457         Do not attempt to handle MEM inside auto-inc expressions.
1458         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1459         of a register modified by an auto-inc expression.  However, do handle
1460         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1461         (elimination_effects): Prohibit elimination of a register modified
1462         by an auto-inc expression.  Disable register elimination rules whose
1463         target register is modified by an auto-inc expression with variable
1464         increment.
1465
1466 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
1467
1468         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1469         off-by-one error.
1470         (array_at_struct_end_p): New function.
1471         (idx_infer_loop_bounds): Use it.
1472         (estimate_numbers_of_iterations_loop): Export.
1473         * predict.c (predict_loops): Use estimated_loop_iterations_int.
1474         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1475         (tree_estimate_probability): Call record_loop_exits.
1476         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1477         (estimated_loop_iterations, estimated_loop_iterations_int,
1478         estimated_loop_iterations_tree): New functions.
1479         (analyze_siv_subscript_cst_affine,
1480         compute_overlap_steps_for_affine_1_2,
1481         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1482         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1483         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1484         (PRED_LOOP_ITERATIONS_GUESSED): New.
1485         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1486         * cfgloop.h (estimate_numbers_of_iterations_loop,
1487         estimated_loop_iterations_int): Declare.
1488
1489 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
1490
1491         * doc/extend.texi: Document optional priority argument to
1492         constructors and destructors.
1493         * tree.c (init_priority_for_decl): Adjust GTY markers.
1494         (init_ttree): Use priority-info hash functions for
1495         init_priority_for_decl.
1496         (tree_map_eq): Rename to ...
1497         (tree_map_base_eq): ... this.
1498         (tree_map_marked_p): Rename to ...
1499         (tree_map_base_marked_p): ... this.
1500         (tree_map_base_hash): New function.
1501         (decl_init_priority_lookup): Rework.
1502         (decl_fini_priority_lookup): New function.
1503         (decl_priority_info): New function.
1504         (decl_init_priority_insert): Use it.
1505         (decl_fini_priority_insert): Likewise.
1506         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1507         hierarchy.
1508         (decl_restrict_base_insert): Likewise.
1509         (decl_debug_expr_insert): Likewise.
1510         (decl_value_expr_lookup): Likewise.
1511         (decl_value_expr_insert): Likewise.
1512         * tree.h (priority_type): New type.
1513         (decl_init_priority_lookup): Use priority_type.
1514         (decl_fini_priority_lookup): New function.
1515         (decl_init_priority_insert): Use priority_type.
1516         (decl_fini_priority_insert): New function.
1517         (DECL_HAS_INIT_PRIORITY): Tweak comments.
1518         (DECL_INIT_PRIORITY): Likewise.
1519         (SET_DECL_INIT_PRIORITY): Add comment.
1520         (DECL_FINI_PRIORITY): New macro.
1521         (SET_DECL_FINI_PRIORITY): Likewise.
1522         (DEFAULT_INIT_PRIORITY): Document.
1523         (MAX_INIT_PRIORITY): Likewise.
1524         (MAX_RESERVED_INIT_PRIORITY): Likewise.
1525         (tree_map_base): New type.
1526         (tree_map_base_eq): New function.
1527         (tree_map_base_hash): Likewise.
1528         (tree_map_base_marked_p): Likewise.
1529         (tree_map): Inherit from tree_map_base.
1530         (tree_map_eq): Make it a macro.
1531         (tree_map_marked_p): Likewise.
1532         (tree_int_map): Inherit from tree_map_base.
1533         (tree_int_map_eq): Make it a macro.
1534         (tree_int_map_hash): Likewise.
1535         (tree_int_map_marked_p): Likewise.
1536         (tree_priority_map): New type.
1537         (tree_priority_map_eq): New macro.
1538         (tree_priority_map_hash): Likewise.
1539         (tree_priority_map_marked_p): Likewise.
1540         * varasm.c (emults_decl): Adjust for refactoring of tree_map
1541         hierarchy.
1542         (emutls_common_1): Likewise.
1543         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1544         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
1545         of tree_map hierarchy.
1546         * tree-cfg.c (move_stmt_r): Likewise.
1547         (new_label_mapper): Likewise.
1548         * c-tree.h (c_expand_body): Move to ...
1549         * c-common.h (c_expand_body): ... here.
1550         * c-decl.c (c_expand_body): Move to ...
1551         * c-common.c (c_expand_body): ... here.
1552         (c_common_attribute_table): Allow 1 argument for the constructor
1553         and destructor attributes.
1554         (get_priority): New function.
1555         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
1556         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
1557
1558 2007-02-24  Jan Hubicka  <jh@suse.cz>
1559
1560         PR middle-end/30509
1561         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
1562
1563 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
1564             Jan Hubicka  <jh@suse.cz>
1565
1566         PR target/30778
1567         * i386.c (counter_mode): New function.
1568         (expand_set_or_movmem_via_loop): Use it.
1569         (expand_movmem_epilogue): Likewise; fix pasto.
1570         (ix86_expand_movmem): Do emit guard even for constant counts.
1571         (ix86_expand_setmem): Likewise.
1572
1573 2007-02-25  Nick Clifton  <nickc@redhat.com>
1574
1575         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
1576         (JUMP_TABLES_IN_TEXT_SECTION): Define.
1577
1578 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
1579
1580         PR target/30770
1581         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
1582         count argument with 0x10, not with 0x16.
1583         (expand_setmem_epilogue): Ditto.
1584
1585 2007-02-24  Mike Stump  <mrs@apple.com>
1586
1587         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
1588         symbols.
1589
1590 2007-02-24  Richard Guenther  <rguenther@suse.de>
1591
1592         PR middle-end/30951
1593         * fold-const.c (fold_binary): Fold x +- CST op x for
1594         EQ_EXPR and NE_EXPR.
1595
1596 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1597
1598         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
1599
1600 2007-02-24  Jan Hubicka  <jh@suse.cz>
1601
1602         * cgraphunit.c (decide_is_function_needed): Honor
1603         -fkeep-inline-functions.
1604
1605 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1606
1607         * builtins.c (fold_builtin_modf): New.
1608         (fold_builtin_2): Use it.
1609
1610 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1611
1612         * loop-iv.c (implies_p): Detect additional cases where A implies B.
1613         (determine_max_iter): Take additional LOOP arg; all callers changed.
1614         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
1615         one using simplifications.
1616         (simplify_using_initial_values): Return if the expression becomes
1617         invalid due to altered regs.
1618
1619 2007-02-23  DJ Delorie  <dj@redhat.com>
1620
1621         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
1622
1623 2007-02-23  Mike Stump  <mrs@apple.com>
1624
1625         * tlink.c (scan_linker_output): Parse linker messages from
1626         darwin9's linker better.
1627
1628 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
1629
1630         PR debug/29614
1631         * varpool.c (varpool_assemble_pending_decls):  Set
1632         varpool_last_needed_node to null.
1633
1634 2007-02-23  DJ Delorie  <dj@redhat.com>
1635
1636         * config/i386/i386.c (ix86_data_alignment): Don't specify an
1637         alignment bigger than the object file can handle.
1638
1639 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
1640
1641         PR target/30825
1642         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
1643         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
1644         (*movsf_1): Penalize MMX moves.
1645
1646 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
1647
1648         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
1649         2^32-1 or more times unless flag_unsafe_loop_optimizations.
1650
1651         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
1652
1653 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1654
1655         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
1656         (fold_builtin_1): Use them.
1657         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1658         BUILT_IN_SIGNIFICAND.
1659
1660 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1661
1662         * config/i386/i386.c (bdesc_1arg): Initialize
1663         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
1664         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
1665         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
1666         and IX86_BUILTIN_MOVSLDUP.
1667
1668 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
1669
1670         PR rtl-optimization/30841
1671         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
1672
1673 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1674
1675         * builtins.c (fold_builtin_frexp): New.
1676         (fold_builtin_2): Use it.
1677
1678 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
1679
1680         * doc/invoke.texi (Spec Files): Document getenv spec function.
1681
1682         * gcc.c (getenv_spec_function): New function.
1683         (static_spec_functions): Add it.
1684         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
1685         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
1686         header files.
1687
1688 2007-02-22  Michael Matz  <matz@suse.de
1689
1690         PR c++/29433
1691         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
1692         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
1693
1694 2007-02-22  Ian Lance Taylor  <iant@google.com>
1695
1696         PR debug/30898
1697         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
1698         (mem_loc_descriptor): Call it.
1699
1700 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
1701             Ira Rosen  <irar@il.ibm.com>
1702
1703         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
1704
1705 2007-02-22  Ira Rosen  <irar@il.ibm.com>
1706
1707         PR tree-optimization/30843
1708         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
1709         stores only after all the group is vectorized.
1710
1711 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
1712
1713         PR tree-optimization/30858
1714         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
1715         in the reduction cycle have a single use in the loop.
1716         * tree-vectorizer.h (relevant): Add documentation.
1717
1718 2007-02-20  Mike Stump  <mrs@apple.com>
1719
1720         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
1721         * configure: Regenerate.
1722
1723 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1724
1725         Change the defaults of some parameters and options.
1726         * config/spu/spu-protos.h (spu_optimization_options): Declare.
1727         * config/spu/spu.c (spu_optimization_options): Add.
1728         (spu_override_options): Change params in spu_optimization_options.
1729         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
1730
1731         Register 127 is only 16 byte aligned when used as a frame pointer.
1732         * config/spu/spu-protos.h (spu_init_expanders): Declare.
1733         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
1734         HARD_FRAME_POINTER_REGNUM.
1735         (spu_legitimate_address):  Use regno_aligned_for_reload.
1736         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
1737         aligned when frame_pointer_needed is true.
1738         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
1739         to 8 bits.
1740         * config/spu/spu.h (INIT_EXPANDERS): Define.
1741
1742         Make sure shift and rotate instructions have valid immediate operands.
1743         * config/spu/predicates.md (spu_shift_operand): Remove.
1744         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
1745         * config/spu/constraints.md (W, O): Extend range.
1746         * config/spu/spu.md (umask, nmask): Define.
1747         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
1748         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
1749         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
1750         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
1751         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
1752         (lshr<mode>3_reg):  Fix rtl description.
1753
1754         Make sure mulhisi immediate operands are valid.
1755         * config/spu/predicates.md (imm_K_operand): Add.
1756         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
1757
1758         Generate constants using fsmbi and andi.
1759         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
1760         (print_operand, spu_split_immediate, classify_immediate,
1761         fsmbi_const_p): Handle IC_FSMBI2.
1762
1763         Correctly handle a CONST_VECTOR containing symbols.
1764         * config/spu/spu.c (print_operand): Handle HIGH correctly.
1765         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
1766         (immediate_load_p): Allow symbols that use 2 instructions to create.
1767         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
1768         with symbols when flag_pic is set.
1769         (const_vector_immediate_p): New.
1770         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
1771         accept a CONST_VECTOR with symbols.
1772         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
1773         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
1774         correctly.
1775         * config/spu/spu.md (high, low): Delete.
1776         (low_<mode>): Define.
1777
1778         Remove INTRmode and INTR_REGNUM, which didn't work.
1779         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
1780         of INTR_REGNUM.
1781         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
1782         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
1783         peephole2 pattern): Don't use INTR or 131.
1784         (movintrcc): Delete.
1785         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
1786         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
1787         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
1788         (UNSPEC_SET_INTR): Add.
1789         * config/spu/spu-modes.def (INTR): Remove.
1790
1791         More accurate warnings about run-time relocations.
1792         * config/spu/spu.c (reloc_diagnostic): Test in_section.
1793
1794         Correctly warn about immediate arguments to specific intrinsics.
1795         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
1796         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
1797         the instruction predicate.
1798
1799         Fix tree check errors with latest update.
1800         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
1801         CALL_EXPR_ARG.
1802         (spu_expand_builtin): Use CALL_EXPR_FN.
1803
1804         Add missing specific intrinsics.
1805         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
1806         si_bislede.
1807         * config/spu/spu_internals.h: Ditto.
1808
1809         Fix incorrect operand modifiers.
1810         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
1811         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
1812
1813         Optimize one case of zero_extend of a vec_select.
1814         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
1815
1816         Accept any immediate for hbr.
1817         * config/spu/spu.md (hbr):  Change s constraints to i.
1818
1819 2007-02-21  Paul Brook  <paul@codesourcery.com>
1820
1821         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
1822         condexec_count when skipping USE and CLOBBER.
1823
1824 2007-02-21  Nick Clifton  <nickc@redhat.com>
1825
1826         * common.opt (Warray-bounds): Add Warning attribute.
1827         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
1828         Likewise.
1829         (fsized-zeroes): Add Optimization attribute.
1830         (fsplit-wide-types, ftree-scev-cprop): Likewise.
1831         * c.opt (Wc++0x-compat): Add Warning attribute.
1832
1833 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
1834
1835         PR middle-end/30761
1836         * reload1.c (eliminate_regs_in_insn): In the single_set special
1837         case, attempt to re-recognize the insn before falling back to
1838         having reload fix it up.
1839
1840 2007-02-20  Eric Christopher  <echristo@gmail.com>
1841
1842         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
1843         Rewrite accordingly.
1844         (frv_read_iacc_argument): Ditto.
1845         (frv_expand_set_builtin): Take a call instead of arglist, update for
1846         above changes.
1847         (frv_expand_unop_builtin): Ditto.
1848         (frv_expand_binop_builtin): Ditto.
1849         (frv_expand_cut_builtin): Ditto.
1850         (frv_expand_binopimm_builtin): Ditto.
1851         (frv_expand_voidbinop_builtin): Ditto.
1852         (frv_expand_int_void2arg): Ditto.
1853         (frv_expand_prefetches): Ditto.
1854         (frv_expand_voidtriop_builtin): Ditto.
1855         (frv_expand_voidaccop_builtin): Ditto.
1856         (frv_expand_load_builtin): Ditto.
1857         (frv_expand_store_builtin): Ditto.
1858         (frv_expand_mdpackh_builtin): Ditto.
1859         (frv_expand_mclracc_builtin): Ditto.
1860         (frv_expand_mrdacc_builtin): Ditto.
1861         (frv_expand_mwtacc_builtin): Ditto.
1862         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
1863         calls for above.
1864
1865 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
1866
1867         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
1868         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
1869         cmpb instruction.
1870         (HAVE_GAS_DFP): Check for assembler support of decimal floating
1871         point instructions.
1872         * configure: Regenerate.
1873         * config.in: Regenerate.
1874         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
1875         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
1876         masks to power6 and power6x and to POWERPC_MASKS.
1877         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1878         _ARCH_PWR6.
1879         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
1880         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
1881         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1882         Access PROTOTYPE as variable, not mask.
1883
1884 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
1885
1886         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
1887         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
1888         * combine.c (adjust_for_new_dest): Use it.
1889         * postreload.c (reload_combine): Likewise.
1890
1891 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
1892
1893         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
1894         notes on an insn with multiple sets, even if single_set returns
1895         non-NULL for that insn.
1896
1897 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1898
1899         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
1900         scalbn and scalbln.
1901
1902 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
1903
1904         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
1905         if user didn't pass it.
1906         * config/i386/darwin.h (CC1_SPEC): Likewise.
1907         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
1908         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
1909         -mmacosx-version-min.
1910
1911 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1912             Uros Bizjak  <ubizjak@gmail.com>
1913
1914         * optabs.h (enum optab_index): Add new OTI_scalb.
1915         (scalb_optab): Define corresponding macro.
1916         * optabs.c (init_optabs): Initialize scalb_optab.
1917         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
1918         patterns.
1919         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
1920         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
1921         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
1922         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
1923         flag_unsafe_math_optimizations is set.
1924
1925         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
1926         to implement scalbf, scalb and scalbl built-ins as inline x87
1927         intrinsics.
1928
1929 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1930             DJ Delorie <dj@redhat.com>
1931
1932         PR other/30824
1933         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
1934         (diagnostic_report_diagnostic): ... here, and turn them into real
1935         errors. If warnings are inhibited, no need to do anything.
1936
1937 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
1938
1939         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
1940         better code generation.
1941
1942 2007-02-20  Ben Elliston  <bje@au.ibm.com>
1943
1944         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
1945
1946 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
1947
1948         * config/alpha/alpha.c, config/alpha/alpha.md,
1949         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
1950         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
1951         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
1952         config/arm/lib1funcs.asm: Follow spelling conventions.
1953
1954         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
1955         config/fr30/fr30.md, config/i386/i386.h,
1956         config/iq2000/iq2000.h, config/iq2000/predicates.md,
1957         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
1958         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1959         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
1960         config/rs6000/altivec.md, config/rs6000/rs6000.c,
1961         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
1962         config/sparc/sparc.c, config/sparc/sparc.h,
1963         config/sparc/sparc.md, config/spu/constraints.md,
1964         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
1965         conventions.
1966
1967 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
1968
1969         PR target/29943
1970         * varasm.c (use_blocks_for_decl_p): Return false for decls with
1971         alias attribute.
1972
1973 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
1974
1975         * doc/invoke.texi (-ftree-lrs): Remove.
1976
1977 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
1978
1979         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
1980         NULL.
1981
1982 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
1983
1984         * config/ia64/ia64.c (ia64_expand_builtin): Use the
1985         new CALL_EXPR_FN macro for retrieving the function
1986         declaration of the input expression.
1987
1988 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1989
1990         * c.opt (Waddress): New.
1991         * common.opt (Walways-true): Delete.
1992         (Wstring-literal-comparison): Delete.
1993         * doc/invoke.texi (Warning Options): Delete -Walways-true and
1994         -Wstring-literal-comparison. Add -Waddress.
1995         (Waddress): New.
1996         (Walways-true): Delete.
1997         (Wstring-literal-comparison): Delete.
1998         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
1999         consistently instead of -Walways-true in example.
2000         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2001         * c-typeck.c (parser_build_binary_op): Replace
2002         -Wstring-literal-comparison and -Walways-true with -Waddress.
2003         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2004         with -Waddress.
2005
2006 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
2007
2008         * tree-cfg.c (dump_function_to_file): Be prepared for functions
2009         without DECL_STRUCT_FUNCTION initialized.
2010
2011 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
2012
2013         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2014         due to calls to functions taking pointers as parameters.
2015
2016 2007-02-19  Richard Henderson  <rth@redhat.com>
2017
2018         PR debug/29558
2019         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2020         in memory.
2021
2022 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2023
2024         * config/s390/s390.c (s390_call_saved_register_used,
2025         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2026         accessed to the new scheme.
2027
2028 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2029
2030         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2031         (cris_print_index, cris_print_operand, cris_print_operand_address)
2032         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2033         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2034         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2035         GET_CODE () == xxx.
2036         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2037         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2038         GO_IF_LEGITIMATE_ADDRESS): Ditto.
2039         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2040         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2041         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2042         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2043         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2044         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2045         (uminsi3, call, call_value): Ditto.
2046         (define_split: indir_to_reg_split, unnamed): Ditto.
2047
2048 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
2049
2050         PR tree-optimization/30975
2051         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2052         wrong assert.
2053
2054 2007-02-18  Eric Christopher  <echristo@gmail.com>
2055
2056         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2057         Remove use of arglist.
2058         (mips_expand_builtin): Remove use of arglist, pass in expr.
2059         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2060         (mips_expand_builtin_movtf): Ditto.
2061         (mips_expand_builtin_compare): Ditto.
2062
2063 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2064
2065         * tree-sra.c (sra_build_assignment): Replace assertion
2066         checking with a comment explaining why it can't be done.
2067
2068 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2069
2070         PR middle-end/30833
2071         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2072         during CALL_EXPR representation conversion.
2073         * tree-ssa-propagate.c (set_rhs): Likewise.
2074
2075 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2076
2077         * tree-sra.c (sra_build_assignment): Disable assertion checking
2078         for now.
2079
2080 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2081
2082         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2083         instead of calling build2 with a GIMPLE_MODIFY_STMT.
2084         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2085         Likewise.
2086         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2087         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
2088         gimplify_init_ctor_eval_range, gimple_push_cleanup,
2089         gimplify_omp_for, gimplify_omp_atomic_pipeline,
2090         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2091         force_gimple_operand): Likewise.
2092         * ipa-cp.c (constant_val_insert): Likewise.
2093         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2094         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2095         perfect_nestify): Likewise.
2096         * langhooks.c (lhd_omp_assignment): Likewise.
2097         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2098         lower_copyprivate_clauses, lower_send_clauses,
2099         lower_send_shared_vars, expand_parallel_call,
2100         expand_omp_for_generic, expand_omp_for_static_nochunk,
2101         expand_omp_for_static_chunk, expand_omp_sections,
2102         lower_omp_single_copy, lower_omp_for_lastprivate,
2103         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2104         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2105         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2106         Likewise.
2107
2108 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
2109
2110         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2111         config/sh/sh.md: Follow spelling conventions.
2112
2113         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2114         config/frv/predicates.md: Follow spelling conventions.
2115
2116         * config/m68k/linux-unwind.h: Fix a comment typo.
2117         * target.h: Follow spelling conventions.
2118
2119 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2120
2121         PR rtl-optimization/28173
2122         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
2123         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2124         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2125         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2126         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2127
2128 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2129
2130         * builtins.c (fold_builtin_load_exponent): New.
2131         (fold_builtin_2): Use it.
2132
2133 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
2134
2135         PR rtl-optimization/30773
2136         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2137         if we fail to attach a REG_EQUIV note.
2138
2139 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
2140             Roger Sayle  <roger@eyesopen.com>
2141
2142         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2143
2144 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2145
2146         * calls.c (initialize_argument_information): Pass original EXP
2147         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
2148         code to split complex arguments here, as part of initializing the
2149         ARGS array.
2150         (expand_call): Remove code that builds a list of arguments and
2151         inserts implicit arguments into it.  Instead, just count how many
2152         implicit arguments there will be so we can determine the size of
2153         the ARGS array, and let initialize_argument_information do the work.
2154         (split_complex_values): Delete unused function.
2155
2156 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2157
2158         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2159
2160 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2161
2162         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2163         for arg pointer based indexed addressing.
2164
2165 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2166
2167         * config/ia64/ia64.h, config/ia64/ia64.md,
2168         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2169         spelling conventions.
2170
2171 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2172
2173         * config/m68k/m68k.c (split_di): New.
2174         * config/m68k/m68k-protos.h: Declare split_di.
2175         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2176           Improve predicate handling and split constant shifts.
2177
2178 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2179
2180         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2181         parameter for register bitfield operations, general predicates
2182         cleanup
2183
2184 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2185
2186         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2187         * config/m68k/linux-unwind.h: New file.
2188
2189 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2190
2191         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2192         config/i386/athlon.md, config/ia64/ia64.md,
2193         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2194         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2195         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2196         tree-ssa-loop-niter.c, tree-vect-analyze.c,
2197         tree-vect-transform.c: Fix comment typos.
2198
2199 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
2200
2201         * sched-deps.c (find_insn_list): Remove.
2202         * sched-int.h: Remove the prototype for find_insn_list.
2203
2204 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
2205
2206         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2207         to linker.
2208         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2209         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2210         darwin_rs6000_override_options.
2211         (C_COMMON_OVERRIDE_OPTIONS): Expect
2212         darwin_macosx_version_min to be non-NULL always.
2213         (TARGET_C99_FUNCTIONS): Likewise.
2214         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2215         (DARWIN_MINVERSION_SPEC): New.
2216         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2217         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2218         to cc1*.
2219         (DARWIN_MINVERSION_SPEC): New.
2220         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2221         value.
2222         * config/darwin-c.c (darwin_cpp_builtins): Expect
2223         darwin_macosx_version_min to be non-NULL always.
2224
2225         * config/rs6000/rs6000.c: Clean up trailing whitespace.
2226
2227 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
2228
2229         * config/i386/i386.h (x86_use_xchgb): New.
2230         (TARGET_USE_XCHGB): New macro.
2231         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2232         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2233         Split after reload into bswaphi for shifts of 8.
2234         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2235         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2236         or when optimizing for size.
2237
2238 2007-02-16  Richard Guenther  <rguenther@suse.de>
2239             Christian Bruel  <christian.bruel@st.com>
2240
2241         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2242         DECLs but prefer SSA_NAMEs over DECLs.
2243
2244 2007-02-16  Richard Guenther  <rguenther@suse.de>
2245
2246         * tree-flow-inline.h (single_imm_use_p): Remove.
2247         (zero_imm_uses_p): Likewise.
2248         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2249         instead of single_imm_use_p.
2250         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2251         zero_imm_uses_p.
2252
2253 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2254
2255         PR other/27843
2256         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2257         nested double- and backquotes.
2258
2259 2007-02-15  Roger Sayle  <roger@eyesopen.com>
2260
2261         PR middle-end/30391
2262         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
2263         should be unreachable.
2264         (build2_stat): Allow construction of MODIFY_EXPR at any time.
2265         For the time being redirect GIMPLE_MODIFY_STMT to the new
2266         (renamed) build_gimple_modify_stmt_stat.
2267         (build2_gimple_stat): Rename to...
2268         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2269         Always build a GIMPLE_MODIFY_STMT node.
2270         * tree.h (build2_gimple, build2_gimple_stat): Delete.
2271         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2272         declarations.
2273
2274         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2275         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2276         * tree-complex.c (set_component_ssa_name, expand_complex_move,
2277         expand_complex_div_wide): Likewise.
2278         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2279         * tree-ssa-loop-im.c (schedule_sm): Likewise.
2280         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2281         * tree-ssa-loop-manip.c (create_iv): Likewise.
2282         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2283         abs_replacement): Likewise.
2284         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2285         realify_fake_stores): Likewise.
2286
2287         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2288         node rather than a GIMPLE_MODIFY_STMT node.
2289         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2290         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2291         Likewise.
2292         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2293         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2294         GIMPLE_MODIFY_STMT.
2295
2296 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2297
2298         PR middle-end/30433
2299         * fold-const.c (fold_comparison): Add back the
2300         folding of constant complex comparisions.
2301
2302 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2303
2304         PR middle-end/30729
2305         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2306         effects unknown to this function, return early.
2307
2308 2007-02-15  Ian Lance Taylor  <iant@google.com>
2309
2310         * lower-subreg.c (move_eh_region_note): New static function.
2311         (resolve_simple_move): Call it.
2312         (decompose_multiword_subregs): Track blocks for which we resolve a
2313         simple move which is also a control flow insn.  Pass them to
2314         find_many_sub_basic_blocks.
2315         (pass_lower_subreg): Add TODO_verify_flow.
2316         (pass_lower_subreg2): Likewise.
2317
2318 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2319             Brooks Moses  <brooks.moses@codesourcery.com>
2320             Lee Millward  <lee.millward@codesourcery.com>
2321
2322         * tree.h (enum tree_code_class): Add tcc_vl_exp.
2323         (VL_EXP_CLASS_P): New.
2324         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2325         TREE_CODE_LENGTH.
2326         (TREE_OPERAND_CHECK_CODE): Likewise.
2327         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2328         (TREE_RTL_OPERAND_CHECK): Likewise.
2329         (tree_operand_check_failed): Make second parameter the whole tree
2330         instead of its code.  Fixed callers.
2331         (VL_EXP_CHECK): New.
2332         (TREE_OPERAND_LENGTH): New.
2333         (VL_EXP_OPERAND_LENGTH): New.
2334         (CALL_EXPR_FN): New.
2335         (CALL_EXPR_STATIC_CHAIN): New.
2336         (CALL_EXPR_ARGS): New.
2337         (CALL_EXPR_ARG): New.
2338         (call_expr_nargs): New.
2339         (CALL_EXPR_ARGP): New.
2340         (build_nt_call_list): Declare.
2341         (build_vl_exp_stat): Declare.
2342         (build_vl_exp): New.
2343         (build_call_list): Declare.
2344         (build_call_nary): Declare.
2345         (build_call_valist): Declare.
2346         (build_call_array): Declare.
2347         (call_expr_arg): Declare.
2348         (call_expr_argp): Declare.
2349         (call_expr_arglist): Declare.
2350         (fold_build_call_list): Declare.
2351         (fold_build_call_list_initializer): Declare.
2352         (fold_call_expr): Declare to replace fold_builtin.
2353         (fold_builtin_fputs): Update to agree with modified definition.
2354         (fold_builtin_strcpy): Likewise.
2355         (fold_builtin_strncpy): Likewise.
2356         (fold_builtin_memory_chk): Likewise.
2357         (fold_builtin_stxcpy_chk): Likewise.
2358         (fold_builtin_strncpy_chk): Likewise.
2359         (fold_builtin_next_arg): Likewise.
2360         (fold_build_call_expr): Declare.
2361         (fold_builtin_call_list): Declare.
2362         (fold_builtin_call_valist): Declare.
2363         (build_call_expr): Declare.
2364         (validate_arglist): Update to agree with modified definition.
2365         (tree_operand_length): New.
2366         (call_expr_arg_iterator): New.
2367         (init_call_expr_arg_iterator): New.
2368         (next_call_expr_arg): New.
2369         (first_call_expr_arg): New.
2370         (more_call_expr_args_p): New.
2371         (FOR_EACH_CALL_EXPR_ARG): New.
2372
2373         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2374         and tcc_gimple_stmt.
2375         (tree_code_size): Update documentation.  Use sizeof (tree) rather
2376         than sizeof (char *).
2377         (tree_size): Likewise.  Add case for tcc_vl_exp.
2378         (tree_node_structure): Add case for tcc_vl_exp.
2379         (contains_placeholder_p): Likewise.
2380         (substitute_in_expr): Likewise.
2381         (substitute_placeholder_in_expr): Likewise.
2382         (stabilize_reference_1): Likewise.
2383         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
2384         to diagnose breakage of this interface for constructing CALL_EXPRs.
2385         (build_nt): Add similar assertion here.
2386         (build_nt_call_list): New.
2387         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2388         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2389         TREE_CODE_LENGTH.
2390         (get_callee_fndecl): Use new CALL_EXPR accessors.
2391         (tree_operand_check_failed): Change parameters to pass entire node
2392         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2393         (process_call_operands): New.
2394         (build_vl_exp_stat): New.
2395         (build_call_list): New.
2396         (build_call_nary): New.
2397         (build_call_valist): New.
2398         (build_call_array): New.
2399         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2400         (call_expr_arglist): New.
2401
2402         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2403         tcc_vl_exp instead of a fixed-size tcc_expression.
2404
2405         * doc/c-tree.texi (CALL_EXPR): Document new representation and
2406         accessors for CALL_EXPRs.
2407         (AGGR_INIT_EXPR): Likewise.
2408
2409 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2410             Brooks Moses  <brooks.moses@codesourcery.com>
2411             Lee Millward  <lee.millward@codesourcery.com>
2412
2413         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2414         (expand_builtin_nonlocal_goto): Change parameter to be entire
2415         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
2416         (expand_builtin_prefetch): Likewise.
2417         (expand_builtin_classify_type): Likewise.
2418         (mathfn_built_in): Return NULL_TREE instead of 0.
2419         (expand_errno_check): Use new CALL_EXPR accessors.
2420         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2421         Return NULL_RTX instead of 0.
2422         (expand_builtin_mathfn_2): Likewise.
2423         (expand_builtin_mathfn_3): Likewise.
2424         (expand_builtin_interclass_mathfn): Likewise.
2425         (expand_builtin_sincos): Likewise.
2426         (expand_builtin_cexpi): Likewise.
2427         (expand_builtin_int_roundingfn): Likewise.
2428         (expand_builtin_int_roundingfn_2): Likewise.
2429         (expand_builtin_pow): Likewise.
2430         (expand_builtin_powi): Likewise.
2431         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2432         of arglist, fixing callers appropriately.  Use new CALL_EXPR
2433         accessors and constructors.  Return NULL_RTX instead of 0.
2434         (expand_builtin_strstr): Likewise.
2435         (expand_builtin_strchr): Likewise.
2436         (expand_builtin_strrchr): Likewise.
2437         (expand_builtin_strpbrk): Likewise.
2438         (expand_builtin_memcpy): Likewise.
2439         (expand_builtin_mempcpy): Likewise.
2440         (expand_builtin_mempcpy_args): New.
2441         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2442         (expand_builtin_memmove_args): New.
2443         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2444         (expand_movstr): Likewise.
2445         (expand_builtin_strcpy): Likewise.
2446         (expand_builtin_strcpy_args): New.
2447         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2448         (expand_builtin_strncpy): Likewise.
2449         (expand_builtin_memset): Likewise.
2450         (expand_builtin_memset_args): New.
2451         (expand_builtin_bzero): Similarly to expand_builtin_memset.
2452         (expand_builtin_memcmp): Likewise.
2453         (expand_builtin_strcmp): Likewise.
2454         (expand_builtin_strncmp): Likewise.
2455         (expand_builtin_strcat): Likewise.
2456         (expand_builtin_strncat): Likewise.
2457         (expand_builtin_strspn): Likewise.
2458         (expand_builtin_strcspn): Likewise.
2459         (expand_builtin_args_info): Likewise.
2460         (expand_builtin_va_start): Likewise.
2461         (gimplify_va_arg_expr): Likewise.
2462         (expand_builtin_va_end): Likewise.
2463         (expand_builtin_va_copy): Likewise.
2464         (expand_builtin_frame_address): Likewise.
2465         (expand_builtin_alloca): Likewise.
2466         (expand_builtin_bswap): Likewise.
2467         (expand_builtin_unop): Likewise.
2468         (expand_builtin_fputs): Likewise.
2469         (expand_builtin_expect): Likewise.
2470         (expand_builtin_fabs): Likewise.
2471         (expand_builtin_copysign): Likewise.
2472         (expand_builtin_printf): Likewise.
2473         (expand_builtin_fprintf): Likewise.
2474         (expand_builtin_sprintf): Likewise.
2475         (expand_builtin_init_trampoline): Likewise.
2476         (expand_builtin_signbit): Likewise.
2477         (expand_builtin_fork_or_exec): Likewise.
2478         (expand_builtin_sync_operation): Likewise.
2479         (expand_builtin_compare_and_swap): Likewise.
2480         (expand_builtin_lock_test_and_set): Likewise.
2481         (expand_builtin_lock_release): Likewise.
2482         (expand_builtin): Likewise.
2483         (builtin_mathfn_code): Likewise.
2484
2485         (fold_builtin_constant_p): Pass call arguments individually instead
2486         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2487         accessors and constructors.  Return NULL_TREE instead of 0.
2488         (fold_builtin_expect): Likewise.
2489         (fold_builtin_classify_type): Likewise.
2490         (fold_builtin_strlen): Likewise.
2491         (fold_builtin_nan): Likewise.
2492         (integer_valued_real_p): Likewise.
2493         (fold_trunc_transparent_mathfn): Likewise.
2494         (fold_fixed_mathfn): Likewise.
2495         (fold_builtin_cabs): Likewise.
2496         (fold_builtin_sqrt): Likewise.
2497         (fold_builtin_cbrt): Likewise.
2498         (fold_builtin_cos): Likewise.
2499         (fold_builtin_cosh): Likewise.
2500         (fold_builtin_tan): Likewise.
2501         (fold_builtin_sincos): Likewise.
2502         (fold_builtin_cexp): Likewise.
2503         (fold_builtin_trunc): Likewise.
2504         (fold_builtin_floor): Likewise.
2505         (fold_builtin_ceil): Likewise.
2506         (fold_builtin_round): Likewise.
2507         (fold_builtin_int_roundingfn): Likewise.
2508         (fold_builtin_bitop): Likewise.
2509         (fold_builtin_bswap): Likewise.
2510         (fold_builtin_logarithm): Likewise.
2511         (fold_builtin_hypot): Likewise.
2512         (fold_builtin_pow): Likewise.
2513         (fold_builtin_powi): Likewise.
2514         (fold_builtin_exponent): Likewise.
2515         (fold_builtin_memset): Likewise.
2516         (fold_builtin_bzero): Likewise.
2517         (fold_builtin_memory_op): Likewise.
2518         (fold_builtin_bcopy): Deleted; call site changed to invoke
2519         fold_builtin_memory_op directly.
2520         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2521         (fold_builtin_strncpy): Likewise.
2522         (fold_builtin_memcmp): Likewise.
2523         (fold_builtin_strcmp): Likewise.
2524         (fold_builtin_strncmp): Likewise.
2525         (fold_builtin_signbit): Likewise.
2526         (fold_builtin_copysign): Likewise.
2527         (fold_builtin_isascii): Likewise.
2528         (fold_builtin_toascii): Likewise.
2529         (fold_builtin_isdigit): Likewise.
2530         (fold_builtin_fabs): Likewise.
2531         (fold_builtin_abs): Likewise.
2532         (fold_builtin_fmin_fmax): Likewise.
2533         (fold_builtin_carg): Likewise.
2534         (fold_builtin_classify): Likewise.
2535         (fold_builtin_unordered_cmp): Likewise.
2536
2537         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
2538         New functions split out from fold_builtin_1.
2539         (fold_builtin_n): New.
2540         (fold_builtin_varargs): New.
2541         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
2542         instead.
2543         (fold_call_expr): New.
2544         (build_function_call_expr): Rewrite to use new helper function.
2545         (fold_builtin_call_list): New.
2546         (build_call_expr): New.
2547         (fold_builtin_call_valist): New.
2548         (rewrite_call_expr): New.
2549         (validate_arg): New.
2550         (validate_arglist): Change parameter to be entire CALL_EXPR instead
2551         of an arglist.  Change return type to bool.  Use new CALL_EXPR
2552         accessors.
2553
2554         (fold_builtin_strstr):  Pass call arguments individually instead
2555         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2556         accessors and constructors.  Return NULL_TREE instead of 0.
2557         (fold_builtin_strchr): Likewise.
2558         (fold_builtin_strrchr): Likewise.
2559         (fold_builtin_strpbrk): Likewise.
2560         (fold_builtin_strcat): Likewise.
2561         (fold_builtin_strncat): Likewise.
2562         (fold_builtin_strspn): Likewise.
2563         (fold_builtin_strcspn): Likewise.
2564         (fold_builtin_fputs): Likewise.
2565         (fold_builtin_next_arg): Likewise.
2566         (fold_builtin_sprintf): Likewise.
2567
2568         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
2569         NULL_RTX instead of 0.
2570         (expand_builtin_memory_chk): Likewise.
2571         (maybe_emit_chk_warning): Likewise.
2572         (maybe_emit_sprintf_chk_warning): Likewise.
2573
2574         (fold_builtin_object_size): Pass call arguments individually instead
2575         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2576         accessors and constructors.  Return NULL_TREE instead of 0.
2577         (fold_builtin_memory_chk): Likewise.
2578         (fold_builtin_stxcpy_chk): Likewise.
2579         (fold_builtin_strncpy_chk): Likewise.
2580         (fold_builtin_strcat_chk): Likewise.
2581         (fold_builtin_strcat_chk): Likewise.
2582         (fold_builtin_strncat_chk): Likewise.
2583         (fold_builtin_sprintf_chk): Likewise.
2584         (fold_builtin_snprintf_chk): Likewise.
2585         (fold_builtin_printf): Likewise.
2586         (fold_builtin_vprintf): Likewise.
2587
2588         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
2589         constructors.
2590         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
2591         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2592         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
2593         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
2594         (fold_unary): Likewise.
2595         (fold_binary): Likewise.
2596         (fold_ternary): Remove CALL_EXPR case, since they are no longer
2597         ternary expressions.
2598         (fold): Add logic for tcc_vl_exp.
2599         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
2600         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2601         (fold_build3_stat): Add assertion to flag broken interface for
2602         constructing CALL_EXPRs.
2603         (fold_build_call_list): New.
2604         (fold_build_call_list_initializer): New.
2605         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
2606         constructors.
2607         (fold_strip_sign_ops): Likewise.
2608
2609 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2610             Brooks Moses  <brooks.moses@codesourcery.com>
2611             Lee Millward  <lee.millward@codesourcery.com>
2612
2613         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
2614         accessors and dump arguments explicitly.
2615
2616         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
2617         TREE_CODE_LENGTH.
2618         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
2619         explicitly.
2620         (print_call_name): Use new CALL_EXPR accessors.
2621
2622         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
2623         CALL_EXPR arguments explicitly instead of as a list.  Use
2624         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2625
2626         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
2627         (vrp_visit_stmt): Likewise.
2628
2629         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
2630         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
2631         TREE_CODE_LENGTH.
2632         (force_move_till_expr): Likewise.
2633
2634         * targhooks.c (default_external_stack_protect_fail): Use
2635         build_call_expr instead of build_function_call_expr.
2636         (default_hidden_stack_protect_fail): Likewise.
2637
2638         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
2639         build the call.
2640
2641         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
2642         and walk arguments explicitly.
2643
2644         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
2645         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2646         (expand_simple_operations): Likewise.
2647         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
2648
2649         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
2650         of TREE_CODE_LENGTH.
2651         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
2652
2653         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
2654         instead of TREE_CODE_LENGTH.
2655
2656         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
2657         (tree_ic_transform): Likewise.
2658         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
2659         parameter instead of arglist.  Fix callers.
2660         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
2661         (tree_stringops_transform): Likewise.
2662         (tree_indirect_call_to_profile): Likewise.
2663         (tree_stringops_values_to_profile): Likewise.
2664
2665         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
2666         (eliminate_tail_call): Likewise.
2667
2668         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
2669
2670         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2671         Use TREE_OPERAND_LENGTH and generalize to handle any number of
2672         operands.
2673         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
2674
2675         * omp-low.c (build_omp_barrier): Use build_call_expr.
2676         (lower_rec_input_clauses): Likewise.
2677         (lower_reduction_clauses): Likewise.
2678         (expand_parallel_call): Likewise.
2679         (maybe_catch_exception): Likewise.
2680         (expand_omp_for_generic): Likewise.
2681         (expand_omp_for_static_nochunk): Likewise.
2682         (expand_omp_sections): Likewise.
2683         (lower_omp_single_simple): Likewise.
2684         (lower_omp_single_copy): Likewise.
2685         (lower_omp_master): Likewise.
2686         (lower_omp_ordered): Likewise.
2687         (lower_omp_critical): Likewise.
2688
2689         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
2690         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
2691
2692         * tree-gimple.c (is_gimple_call_addr): Fix doc.
2693         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
2694         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
2695
2696         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
2697         and generalize to handle any number of operands.
2698         (chrec_contains_undetermined): Likewise.
2699         (tree_contains_chrecs): Likewise.
2700         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
2701
2702         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
2703
2704         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
2705         fold_call_expr instead of fold_builtin.
2706         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
2707         match declarations there.
2708         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
2709         updates.
2710
2711         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
2712         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2713
2714         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
2715         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
2716
2717         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
2718         accessors.
2719
2720         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
2721         (execute_cse_sincos): Use new CALL_EXPR accessors.
2722
2723         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
2724
2725         * gimple-low.c (lower_function_body): Use build_call_expr.
2726         (lower_builtin_setjmp): Likewise.
2727
2728         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
2729         (set_storage_via_libcall): Likewise.
2730         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
2731         instead of TREE_CODE_LENGTH.
2732         (expand_expr_real_1): Use new CALL_EXPR accessors.
2733
2734         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
2735         generalize to handle any number of operands.
2736         (TB_parent_eq): Likewise.
2737
2738         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
2739         (strip_builtin_expect): Likewise.
2740
2741         * function.c (gimplify_parameters): Use build_call_expr.
2742
2743         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
2744         instead of TREE_CODE_LENGTH.
2745
2746         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
2747         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
2748
2749         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
2750         iterators.
2751
2752         * gimplify.c (build_stack_save_restore): Use build_call_expr.
2753         (gimplify_decl_expr): Likewise.
2754         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
2755         Use new CALL_EXPR iterators.
2756         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
2757         (gimplify_modify_expr_to_memset): Likewise.
2758         (gimplify_variable_sized_compare): Likewise.
2759         (gimplify_omp_atomic_fetch_op): Likewise.
2760         (gimplify_omp_atomic_pipeline): Likewise.
2761         (gimplify_omp_atomic_mutex): Likewise.
2762         (gimplify_function_tree): Likewise.
2763
2764         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
2765         (call_expr_flags): Likewise.
2766         (expand_call): Likewise.
2767
2768         * except.c (expand_builtin_eh_return_data_regno): Pass entire
2769         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
2770         accessors.
2771
2772         * coverage.c (create_coverage): Use build_call_expr.
2773
2774         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
2775         (temp_call_expr_obstack): New.
2776         (pool_copy_list): Delete.
2777         (temp_copy_call_expr): New.
2778         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
2779         CALL_EXPR accessors.  Get rid of special goo for copying argument
2780         lists and use temp_copy_call_expr instead.
2781         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
2782         CALL_EXPR accessors.
2783         (create_expression_by_pieces): Likewise.  Use build_call_array
2784         to construct the result instead of fold_build3.
2785         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
2786         dealing with argument lists.
2787         (init_pre): Remove references to expression_node_pool and
2788         list_node_pool.  Init temp_call_expr_obstack instead.
2789         (fini_pre): Remove references to expression_node_pool and
2790         list_node_pool.
2791
2792         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
2793         and walk arguments explicitly instead of as a list.
2794
2795         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
2796         (mx_register_decls): Likewise.
2797         (mudflap_register_call): Likewise.
2798         (mudflap_finish_file): Likewise.
2799
2800         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
2801         (ipa_callsite_compute_param): Likewise.
2802
2803         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
2804         accessors and constructor.
2805
2806         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
2807         accessors and constructor.
2808         (convert_tramp_reference): Likewise.
2809         (convert_call_expr): Likewise.
2810         (finalize_nesting_tree_1): Likewise.
2811
2812         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
2813         accessors.
2814
2815         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
2816
2817         * tree-inline.c (initialize_inlined_parameters): Pass entire
2818         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
2819         accessors.
2820         (estimate_num_insns_1): Use new CALL_EXPR accessors.
2821         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
2822
2823         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
2824         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2825         (vectorizable_reduction): Likewise.
2826         (vectorizable_call): Use new CALL_EXPR iterators.
2827         (vectorizable_conversion): Use build_call_expr.
2828         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
2829         (vect_gen_widened_results_half): Use build_call_expr.
2830         (vect_setup_realignment): Likewise.
2831         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
2832
2833         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
2834         (pass_through_call): Likewise.
2835         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
2836         fold_builtin.
2837
2838         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
2839         (tree_gen_pow2_profiler): Likewise.
2840         (tree_gen_one_value_profiler): Likewise.
2841         (tree_gen_ic_func_profiler): Likewise.
2842         (tree_gen_average_profiler): Likewise.
2843         (tree_gen_ior_profiler): Likewise.
2844
2845         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
2846         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
2847         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2848
2849         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
2850         of TREE_CODE_LENGTH.
2851
2852         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
2853         of TREE_CODE_LENGTH.
2854
2855         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
2856         constructor.
2857         (convert_to_integer): Likewise.
2858
2859         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
2860         accessors.
2861
2862 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2863             Brooks Moses  <brooks.moses@codesourcery.com>
2864             Lee Millward  <lee.millward@codesourcery.com>
2865
2866         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
2867         accessors.
2868         * config/frv/frv.c (frv_expand_builtin): Likewise.
2869         * config/s390/s390.c (s390_expand_builtin): Likewise.
2870
2871         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
2872         (sparc_expand_builtin): Use new CALL_EXPR accessors.
2873
2874         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
2875         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
2876         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
2877         (ix86_expand_store_builtin): Likewise.
2878         (ix86_expand_unop_builtin): Likewise.
2879         (ix86_expand_unop1_builtin): Likewise.
2880         (ix86_expand_sse_compare): Likewise.
2881         (ix86_expand_sse_comi): Likewise.
2882         (ix86_expand_vec_init_builtin): Likewise.
2883         (ix86_expand_vec_ext_builtin): Likewise.
2884         (ix86_expand_vec_set_builtin): Likewise.
2885         (ix86_expand_builtin): Use new CALL_EXPR accessors.
2886
2887         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
2888         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
2889
2890         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
2891         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
2892         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
2893
2894         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
2895         build_call_expr.
2896         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2897         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
2898         arglist.  Use new CALL_EXPR accessors.  Fix callers.
2899         (altivec_expand_abs_builtin): Likewise.
2900         (rs6000_expand_binop_builtin): Likewise.
2901         (altivec_expand_predicate_builtin): Likewise.
2902         (altivec_expand_lv_builtin): Likewise.
2903         (spe_expand_stv_builtin): Likewise.
2904         (altivec_expand_stv_builtin): Likewise.
2905         (rs6000_expand_ternop_builtin): Likewise.
2906         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
2907         (altivec_expand_st_builtin): Likewise.
2908         (altivec_expand_dst_builtin): Likewise.
2909         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
2910         arglist.  Use new CALL_EXPR accessors.  Fix callers.
2911         (altivec_expand_vec_set_builtin): Likewise.
2912         (altivec_expand_vec_ext_builtin): Likewise.
2913         (altivec_expand_builtin): Use new CALL_EXPR accessors.
2914         (spe_expand_builtin): Likewise.
2915         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
2916         arglist.  Use new CALL_EXPR accessors.  Fix callers.
2917         (spe_expand_evsel_builtin): Likewise.
2918         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
2919         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
2920
2921         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
2922         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
2923         (arm_expand_unop_builtin): Likewise.
2924         (arm_expand_builtin): Use new CALL_EXPR accessors.
2925
2926         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
2927         accessors.
2928
2929         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
2930         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
2931         (bfin_expand_unop_builtin): Likewise.
2932         (bfin_expand_builtin): Use new CALL_EXPR accessors.
2933
2934 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2935             Brooks Moses  <brooks.moses@codesourcery.com>
2936             Lee Millward  <lee.millward@codesourcery.com>
2937
2938         * c-semantics.c (build_stmt): Add internal diagnostic check.
2939
2940         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
2941         accessors.  Print arguments explicitly instead of as a list.
2942
2943         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
2944
2945         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
2946         (c_finish_omp_flish): Likewise.
2947
2948         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
2949         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
2950         instead of TREE_CODE_LENGTH.
2951         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
2952         (c_warn_unused_result): Likewise.
2953
2954 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2955
2956         PR c/26494
2957         * doc/invoke.texi (Warning Options): Remove
2958         -Werror-implicit-function-declaration.
2959         (Wimplicit-function-declaration): Update description.
2960         * opts.c (common_handle_option): Move handling of -Werror=* to...
2961         (enable_warning_as_error): ...here.
2962         * opts.h (enable_warning_as_error): Declare.
2963         * c-decl.c (implicit_decl_warning): Unless
2964         -Wno-implicit-function-declaration is given, emit a pedwarn if
2965         -std=c99 or emit a warning if -Wimplicit-function-declaration.
2966         * c.opt (Wimplicit-function-declaration): Replace
2967         mesg_implicit_function_declaration with
2968         warn_implicit_function_declaration.
2969         * c-opts.c (c_common_handle_option):
2970         -Werror-implicit-function-declaration is exactly equal as
2971         -Werror=implicit-function-declaration.
2972         (set_Wimplicit): Replace mesg_implicit_function_declaration with
2973         warn_implicit_function_declaration.
2974         (c_common_post_options): -Wimplict-function-declaration is enabled
2975         by default by -std=c99, otherwise is disabled by default.
2976         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
2977
2978 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2979
2980         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
2981         DECL on the rhs to a DECL on the lhs for debug info purposes if the
2982         former is ignored but not the latter.
2983
2984 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
2985
2986         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
2987         is made and the reference doesn't use the alias set of its type,
2988         do not create the temporary using that type.
2989
2990 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
2991
2992         * jump.c: Remove prototypes for delete_computation and
2993         delete_prior_computation.
2994
2995 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
2996
2997         * jump.c (get_label_after): Delete.
2998         (get_label_before, delete_computation, delete_jump,
2999         delete_prior_computation, follow_jumps): Move...
3000         * reorg.c (delete_computation, delete_prior_computation): ... here...
3001         (get_label_before, delete_jump): ... making these static ...
3002         (follow_jumps): ... and simplifying this since it only runs after
3003         reload.
3004         * rtl.h (get_label_after, get_label_before, delete_jump,
3005         follow_jumps): Delete prototypes.
3006
3007 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
3008
3009         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
3010
3011 2007-02-15  Nick Clifton  <nickc@redhat.com>
3012
3013         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
3014         order to prevent it from being munged by the target.
3015
3016 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
3017
3018         * config/i386/i386.md: Remove misleading comment.
3019
3020 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3021
3022         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
3023         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
3024         invalid patterns.
3025
3026 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3027
3028         * tree-sra.c (instantiate_missing_elements): Canonicalize
3029         bit-field types.
3030         (sra_build_assignment): New.
3031         (generate_copy_inout, generate_element_copy,
3032         generate_element_zero, generate_one_element_init): Use it.
3033
3034 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3035
3036         * tree-sra.c (instantiate_missing_elements): Canonicalize
3037         bit-field types.
3038         (sra_build_assignment): New.
3039         (generate_copy_inout, generate_element_copy,
3040         generate_element_zero, generate_one_element_init): Use it.
3041
3042 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3043
3044         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3045         limbo die nodes.
3046
3047 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
3048
3049         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3050         types as aggregates not scalars.
3051         * function.c (assign_stack_temp_for_type): Likewise.
3052
3053 2007-02-14  Roger Sayle  <roger@eyesopen.com>
3054             Zdenek Dvorak  <dvorakz@suse.cz>
3055
3056         * tree-dump.c (dump_switch_p_1): Require exact match of the option
3057         name.
3058
3059 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
3060
3061         * passes.c (next_pass_1): Clear the next field of the copied
3062         pass structure.
3063
3064 2007-02-14  Richard Henderson  <rth@redhat.com>
3065
3066         * tree-sra.c (early_sra): New.
3067         (decl_can_be_decomposed_p): Deny va_list if early_sra.
3068         (tree_sra_early, pass_sra_early): New.
3069         * tree-pass.h (pass_sra_early): Declare.
3070         * passes.c (init_optimization_passes): Use it.
3071
3072 2007-02-14  Richard Guenther  <rguenther@suse.de>
3073
3074         * flags.h (issue_strict_overflow_warning): Convert to a macro.
3075
3076 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
3077
3078          PR tree-optimization/30771
3079         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3080         also phi nodes.
3081         (vect_analyze_operations): Induction phis can now be marked as
3082         used_in_loop.
3083         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3084         Update documentation accordingly.
3085
3086 2007-02-14  Nick Clifton  <nickc@redhat.com>
3087
3088         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3089         most 3 arguments are supported.
3090         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3091
3092 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
3093
3094         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3095         Ensure dst->current is valid.
3096
3097 2007-02-13  Paul Brook  <paul@codesourcery.com>
3098
3099         * config.gcc: Add arm*-*-uclinux-*eabi.
3100         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3101         (SUBTARGET_EXTRA_LINK_SPEC): Define.
3102         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3103         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3104         (LINK_SPEC): Define.
3105         (LIB_SPEC): Define.
3106         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3107         register.
3108         * config/arm/uclinux-eabi.h: New file.
3109         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3110         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3111         based targets.
3112
3113 2007-02-13  Ian Lance Taylor  <iant@google.com>
3114
3115         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3116         * flags.h (warn_strict_overflow): Declare.
3117         (enum warn_strict_overflow_code): Define.
3118         (issue_strict_overflow_warning): New static inline function.
3119         * opts.c (warn_strict_overflow): New variable.
3120         (common_handle_option): Handle OPT_Wstrict_overflow and
3121         OPT_Wstrict_overflow_.
3122         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3123         OPT_Wall.
3124         * fold-const.c: Include intl.h.
3125         (fold_deferring_overflow_warnings): New static variable.
3126         (fold_deferred_overflow_warning): New static variable.
3127         (fold_deferred_overflow_code): New static variable.
3128         (fold_defer_overflow_warnings): New function.
3129         (fold_undefer_overflow_warnings): New function.
3130         (fold_undefer_and_ignore_overflow_warnings): New function.
3131         (fold_deferring_overflow_warnings_p): New function.
3132         (fold_overflow_warning): New static function.
3133         (make_range): Add strict_overflow_p parameter.  Change all
3134         callers.
3135         (extract_muldiv, extract_muldiv_1): Likewise.
3136         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3137         tree_expr_nonnegative_p.
3138         (fold_negate_expr): Call fold_overflow_warning.
3139         (fold_range_test): Likewise.
3140         (fold_comparison): Likewise.
3141         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
3142         instead of tree_expr_nonnegative_p.
3143         (tree_expr_nonnegative_warnv_p): Rename from
3144         tree_expr_nonnegative_p, add strict_overflow_p parameter.
3145         (tree_expr_nonnegative_p): New function.
3146         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3147         strict_overflow_p parameter.
3148         (tree_expr_nonzero_p): New function.
3149         * passes.c (verify_interpass_invariants): New static function.
3150         (execute_one_pass): Call it.
3151         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3152         warnings.
3153         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3154         (estimate_numbers_of_iterations): Likewise.
3155         (scev_probably_wraps_p): Likewise.
3156         * tree-ssa-ccp.c: Include "toplev.h".
3157         (evaluate_stmt): Defer fold overflow warnings until we know we are
3158         going to optimize.
3159         (struct fold_stmt_r_data): Add stmt field.
3160         (fold_stmt_r): Defer fold overflow warnings until we know we
3161         optimized.
3162         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3163         (fold_stmt_inplace): Likewise.
3164         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3165         (cleanup_control_expr_graph): Defer fold overflow warnings until
3166         we know we are going to optimize.
3167         * tree-cfg.c (fold_cond_expr_cond): Likewise.
3168         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3169         Likewise.
3170         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3171         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3172         * tree-ssa-loop-manip.c (create_iv): Likewise.
3173         * c-typeck.c (build_conditional_expr): Likewise.
3174         (build_binary_op): Likewise.
3175         * tree-vrp.c (vrp_expr_computes_nonzero): Call
3176         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3177         (extract_range_from_unary_expr): Likewise.
3178         * simplify-rtx.c (simplify_const_relational_operation): Warn when
3179         assuming that signed overflow does not occur.
3180         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3181         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3182         (fold_defer_overflow_warnings): Declare.
3183         (fold_undefer_overflow_warnings): Declare.
3184         (fold_undefer_and_ignore_overflow_warnings): Declare.
3185         (fold_deferring_overflow_warnings_p): Declare.
3186         (tree_expr_nonzero_warnv_p): Declare.
3187         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3188         of warning options.
3189         (Warning Options): Document -Wstrict-overflow.
3190         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3191         (tree-ssa-ccp.o): Likewise.
3192         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3193         (fold-const.o): Depend on intl.h.
3194
3195 2007-02-13  Ian Lance Taylor  <iant@google.com>
3196
3197         PR middle-end/30751
3198         * lower-subreg.c (resolve_simple_move): Decompose subregs in
3199         addresses.
3200
3201 2007-02-13  Stuart Hastings  <stuart@apple.com>
3202
3203         * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3204
3205 2007-02-13  Richard Henderson  <rth@redhat.com>
3206
3207         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3208         handled_component_p before looking for the indirect_ref.
3209
3210 2007-02-13  Richard Henderson  <rth@redhat.com>
3211
3212         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3213         remove flags clobber.
3214         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3215         (bswaphi_lowpart): New.
3216         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3217         remove TARGET_BSWAP test.  Delete expander of the same name.
3218
3219         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3220         (expand_unop): Use them.
3221
3222 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
3223
3224         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3225         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3226         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3227         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3228         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3229         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3230         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3231         assembler dialect choice from asm templates.
3232
3233 2007-02-12  Richard Henderson  <rth@redhat.com>
3234
3235         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3236         (fixuns_trunc<SSEMODEF>si2): Use it.
3237         * config/i386/sse.md (vec_setv4sf_0): Export.
3238         * config/i386/i386.c (ix86_build_const_vector): Export.
3239         (ix86_split_convert_uns_si_sse): Rename from
3240         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3241         * config/i386/i386-protos.h: Update.
3242
3243 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3244
3245         PR c/29521
3246         * c-typeck.c (c_finish_return): Improve warning message.
3247
3248 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3249
3250         * alias.c (find_symbolic_term): Delete unused function.
3251
3252 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
3253
3254         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3255         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3256         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3257
3258 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3259
3260         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3261         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3262         the function, temporarily point the debug interface to the null one.
3263
3264 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3265
3266         * dwarf2out.c (round_up_to_align): New static function.
3267         (field_byte_offset): Use it to round the offset.
3268
3269 2007-02-12  Richard Henderson  <rth@redhat.com>
3270
3271         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3272         (inswl_const): Export.
3273
3274 2007-02-12  Richard Henderson  <rth@redhat.com>
3275
3276         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3277         result mode of the libcall, convert back to outmode.
3278
3279 2007-02-12  Roger Sayle  <roger@eyesopen.com>
3280
3281         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3282         (bswapdi2): New define_expand to implement 32-bit implementation.
3283
3284 2007-02-12  Nick Clifton  <nickc@redhat.com>
3285
3286         * doc/invoke.texi (Overall Options): Document --help=.
3287         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3288         (cc1_options): Pass --help= on to cc1.
3289         (display_help): Add description of --help=.
3290         (process_command): Add code to handle --help=.  Allow translated
3291         --help and --target-help switches to be passed on to compiler
3292         sub-process.
3293         (main): Remove unused if statement.
3294         * opts.c (columns): Remove.
3295         (LEFT_COLUMN): Define.
3296         (wrap_help): Add columns argument.
3297         (print_filtered_help): Change parameters to be an include bitmask,
3298         an exclude bitmask, an any bitmask and the column width.  Move the
3299         code to display the params list here.  Add code to display the
3300         status of options rather than their descriptions if the quiet flag
3301         is not active.
3302         (print_specific_help): Change parameters to be an include bitmask,
3303         an exclude bitmask and an any bitmask.  Move code to look up the
3304         column width here.  Decide upon the title for an options listing.
3305         (common_handle_options): Add code to handle --help=.  Adapt code
3306         for --help and --target-help to use the revised form of the
3307         print_specific_help function.
3308         (print_help): Delete.
3309         (print_param_help): Delete.
3310         (print_switch): Delete.
3311         * opts.h (cl_lang_count): Add prototype.
3312         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3313         CL_MAX_OPTION_CLASS): New defines.
3314         * optc-gen.awk: Add construction of cl_lang_count.
3315         * c.opt: Add Warning attribute to warning options and Optimization
3316         attribute to optimization options.
3317         * common.opt: Likewise.
3318         Add --help=.
3319         Add -fhelp and -ftarget-help as aliases for the transformed --help
3320         and --target-help options.
3321         * opt-functions.awk: Add code to handle Warning and Optimization
3322         attributes.
3323
3324 2007-02-12  Richard Henderson  <rth@redhat.com>
3325
3326         * config/alpha/constraints.md: New file.
3327         * config/alpha/alpha.c: Include tm-constrs.h.
3328         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3329         alpha_extra_constraint): Remove.
3330         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3331         * config/alpha/alpha-protos.h: Update.
3332         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3333         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3334         (EXTRA_CONSTRAINT): Remove.
3335         * config/alpha/alpha.md: Include constraints.md.
3336         (adddi splitter): Use satisfies_constraint_*.
3337         * config/alpha/predicates.md (add_operand): Likewise.
3338         (sext_add_operand, addition_operation): Likewise.
3339
3340 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
3341
3342         PR tree-optimization/29145
3343         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3344         in our handling of restrict qualified pointers.
3345
3346 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3347
3348         PR middle-end/7651
3349         * doc/invoke.texi (Wunused-value): Update description.
3350         (Wextra): Delete item.
3351         * opts.c (set_Wextra): Don't use the value of Wextra to set the
3352         value of Wunused-value.
3353         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3354         (c_finish_stmt_expr): Don't check extra_warnings.
3355         (emit_side_effect_warnings): The caller is responsible to check
3356         warn_unused_value.
3357
3358 2007-02-11  Roger Sayle  <roger@eyesopen.com>
3359             Matt Thomas  <matt@3am-software.com>
3360
3361         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3362
3363 2007-02-11  Roger Sayle  <roger@eyesopen.com>
3364
3365         * simplify-rtx.c (simplify_relational_operation_1): Optimize
3366         comparisons of POPCOUNT against zero.
3367         (simplify_const_relational_operation): Likewise.
3368
3369 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3370
3371         * doc/invoke.texi (Wextra): Delete outdated paragraph.
3372
3373 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3374
3375         * dwarf2out.c (root_type): Delete unused function.
3376
3377 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3378
3379         * genattrtab.c (contained_in_p): Delete unused function.
3380         (write_expr_attr_cache): Likewise.
3381
3382 2007-02-11  Jan Hubicka  <jh@suse.cz>
3383
3384         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
3385         previous patch.
3386
3387 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
3388
3389         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
3390         to add the REG_EQ* note.
3391         * see.c (see_merge_one_use_extension): Likewise.
3392         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
3393         turn REG_EQUAL notes into REG_EQUIV notes if the target
3394         register may have more than one set.
3395         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
3396         * gcse.c (try_replace_reg): Likewise.
3397         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
3398         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
3399         more than one REG_EQUIV note.
3400         * reload1.c (gen_reload): Use set_unique_reg_note.
3401
3402 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
3403
3404         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
3405         (ix86_builtin_conversion): New function.
3406
3407 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
3408
3409         PR target/29487
3410         * tree.h (DECL_REPLACEABLE_P): New macro.
3411         * except.c (set_nothrow_function_flags): Likewise.
3412
3413 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
3414             Ira Rosen  <irar@il.ibm.com>
3415             Dorit Nuzman  <dorit@il.ibm.com>
3416
3417         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
3418         * targhooks.c (default_builtin_vectorized_conversion): New.
3419         * targhooks.h (default_builtin_vectorized_function): New declaration.
3420         * target.h (struct vectorize): Add builtin_conversion field.
3421         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
3422         stmt_vec_info_type value.
3423         (vectorizable_conversion): New declaration.
3424         * tree-vect-analyze.c (vect_analyze_operations): Add
3425         vectorizable_conversion call.
3426         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
3427         * tree-vect-transform.c (vectorizable_conversion): New function.
3428         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
3429         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
3430         mode.
3431         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
3432         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
3433         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
3434         or ALTIVEC_BUILTIN_VCFSX.
3435
3436 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3437
3438         PR target/30634
3439         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
3440         CONST_DOUBLE and operand 0 is a hard register.
3441         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
3442         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
3443         is a hard floating-point register.
3444
3445 2007-02-10  Richard Henderson  <rth@redhat.com>
3446             Jakub Jelinek  <jakub@redhat.com>
3447             Alexandre Oliva  <aoliva@redhat.com>
3448
3449         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
3450         * builtin-types.def (BT_WORD): Make unsigned.
3451         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
3452         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
3453         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
3454         * c-decl.c (grokdeclarator): Don't error if !have_tls.
3455         * c-parser.c (c_parser_omp_threadprivate): Likewise.
3456         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
3457         emulated tls.
3458         * expr.c (emutls_var_address): New.
3459         (expand_expr_real_1): Expand emulated tls.
3460         (expand_expr_addr_expr_1): Likewise.
3461         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
3462         * output.h (emutls_finish): Declare.
3463         * toplev.c (compile_file): Call it.
3464         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
3465         address before wrapping in CONST.
3466         * varasm.c (emutls_htab, emutls_object_type): New.
3467         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
3468         (get_emutls_object_name, get_emutls_object_type): New.
3469         (get_emutls_init_templ_addr, emutls_decl): New.
3470         (emutls_common_1, emutls_finish): New.
3471         (assemble_variable): When emulating tls, swap decls; generate
3472         constructor for the emutls objects.
3473         (do_assemble_alias): When emulating tls, swap decl and target name.
3474         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
3475         for emulated tls.
3476         * varpool.c (decide_is_variable_needed): Look at force_output.
3477         Recurse for emulated tls.
3478         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
3479         with decide_is_variable_needed.
3480         * emutls.c: New file.
3481         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
3482         tls_object for real tls.
3483
3484 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3485
3486         PR rtl-optimization/29599
3487         * reload1.c (eliminate_regs_in_insn): Take the destination
3488         mode into account when computing the offset.
3489
3490 2007-02-09  Stuart Hastings  <stuart@apple.com>
3491             Richard Henderson  <rth@redhat.com>
3492
3493         * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3494         * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3495         * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
3496         fixuns_truncdfhi2): New.
3497         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
3498         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
3499         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
3500         (floatunssidf2): Allow nonimmediate source.
3501         * gcc/config/i386/sse.md (movdi_to_sse): New.
3502         (vec_concatv2di): Drop '*'.
3503         * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
3504         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3505         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
3506         New.
3507         * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
3508         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3509         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
3510         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
3511         (ix86_build_signbit_mask): Fix decl of v, refactor to call
3512         ix86_build_const_vector.
3513         (x86_emit_floatuns): Rewrite.
3514
3515 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3516
3517         * genautomata.c (longest_path_length): Delete unused function.
3518         (struct state): Delete unused longest_path_length.
3519         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
3520         (get_free_state): Delete unused.
3521
3522 2007-02-09  Jan Hubicka  <jh@suse.cz>
3523
3524         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
3525         * doc/invoke.texi (inline-unit-growth): Update default value.
3526
3527         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
3528         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
3529         (rebuild_cgraph_edges): Likewise.
3530         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
3531         (dump_cgraph_node): Dump frequencies.
3532         (cgraph_clone_edge): Add frequency scales.
3533         (cgraph_clone_node): Add freuqnecy.
3534         * cgraph.h (cgraph_edge): Add freuqnecy argument.
3535         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
3536         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
3537         * tree-pass.h (TODO_rebuild_frequencies): New constant.
3538         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
3539         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
3540         (save_inline_function_body): Likewise.
3541         * ipa-inline.c: inluce rtl.h
3542         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
3543         (cgraph_edge_badness): Use frequencies.
3544         (cgraph_decide_recursive_inlining): Update clonning.
3545         (cgraph_decide_inlining_of_small_function): Dump frequency.
3546         * predict.c (estimate_bb_frequencies): Export.
3547         * predict.h (estimate_bb_frequencies): Declare.
3548         * tree-inline.c (copy_bb): Watch overflows.
3549         (expand_call_inline): Update call of cgraph_create_edge.
3550         (optimize_inline_calls): Use TODO flags to update frequnecies.
3551         * passes.h: Include predict.h
3552         (init_optimization_passes): Move profile ahead.
3553         (execute_function_todo): Handle TODO_rebuild_frequencies.
3554
3555 2007-02-09  Roger Sayle  <roger@eyesopen.com>
3556
3557         * config/alpha/alpha.c (emit_insxl): Force the first operand of
3558         the insbl or inswl pattern into a register.
3559
3560 2007-02-09  Roger Sayle  <roger@eyesopen.com>
3561
3562         * config/ia64/ia64.md (bswapdi2): New define_insn.
3563
3564 2007-02-09  Richard Henderson  <rth@redhat.com>
3565
3566         * config/i386/constraints.md (Ym): New constraint.
3567         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
3568         (movdi_1_rex64): Split sse and xmm general register moves from
3569         memory move alternatives.  Use conditional register constraints.
3570         (movsf_1, movdf_integer): Likewise.
3571         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
3572         (movdf_integer_rex64): New.
3573         (pushsf_rex64): Fix output constraints.
3574         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
3575         (sse2_stored): Likewise.
3576         (sse2_storeq_rex64): New.
3577         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
3578         amd and not generic.
3579         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
3580         for optimize_size.  Remove SF/DFmode hack.
3581
3582 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3583
3584         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
3585         (bit_SSE4a): New.
3586
3587 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
3588             Richard Sandiford  <richard@codesourcery.com>
3589
3590         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
3591         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
3592         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
3593         m68k/t-mlib to tmake_file.
3594         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
3595         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
3596         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
3597         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
3598         variable is not empty, add t-$m68k_arch_family to tmake_file.
3599         Add t-mlibs to tmake_file.
3600         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
3601         * config/m68k/t-cf: New file.
3602         * config/m68k/t-m68k: Likewise.
3603         * config/m68k/t-mlibs: Likewise.
3604         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3605         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3606         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3607         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3608         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
3609         Delete.
3610         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
3611         (INSTALL_LIBGCC): Delete.
3612         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3613         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3614         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3615         (M68K_MLIB_CPU): Define.
3616         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3617         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3618         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
3619
3620 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
3621             Richard Guenther  <rguenther@suse.de>
3622
3623         PR middle-end/23361
3624         * fold-const.c (fold_comparison): Handle obfuscated comparisons
3625         against INT_MIN/INT_MAX.
3626         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
3627         file if a loop is removed.
3628
3629 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
3630
3631         * calls.c (store_one_arg): Pass correct alignment to
3632         emit_push_insn for non-BLKmode values.
3633         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
3634         unaligned stack slot via a suitably aligned slot.
3635
3636 2007-02-08  DJ Delorie  <dj@redhat.com>
3637
3638         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
3639         warnings.
3640         (legal_subregs): Use unsigned char, make const.
3641         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
3642
3643 2007-02-08  Paul Brook  <paul@codesourcery.com>
3644
3645         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
3646         special interworking needed.
3647
3648 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
3649
3650         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
3651         conditional to __SSE2__.
3652         (Entries below should have been added to first ChangeLog
3653         entry for amdfam10 dated 2007-02-05)
3654         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
3655         defined.
3656         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
3657         defined.
3658         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
3659         defined.
3660
3661 2007-02-08  DJ Delorie  <dj@redhat.com>
3662
3663         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
3664         * config/m32c/m32c.c (legal_subregs): New.
3665         (m32c_illegal_subreg_p): New.
3666         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
3667         unsupported subregs of hard regs.
3668
3669 2007-02-08  Jan Hubicka  <jh@suse.cz>
3670
3671         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
3672         the same one; always update histograms.
3673
3674 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
3675
3676         * passes.c (init_optimization_passes): Tidy comment.
3677
3678 2007-02-08  Roger Sayle  <roger@eyesopen.com>
3679
3680         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
3681         strip zero_extend, bswap and rotates from POCOUNT's argument.
3682         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
3683         zero_extend and rotates from PARITY's argument.
3684         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
3685         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
3686         of an integer constant at compile-time.
3687
3688 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
3689
3690         PR 30562
3691         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
3692         Update all users.
3693         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
3694         users.
3695         (init_alias_info):
3696         * tree-ssa-live.c (remove_unused_locals): Do not remove
3697         TREE_ADDRESSABLE variables.
3698         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
3699         * tree-ssa-operands.c (add_virtual_operand): Remove argument
3700         FOR_CLOBBER.  Update all users.
3701         If VAR has an associated alias set, add a virtual operand for
3702         it if no alias is found to conflict with the memory reference.
3703
3704 2007-02-07  Jan Hubicka  <jh@suse.cz>
3705             Robert Kidd <rkidd@crhc.uiuc.edu>
3706
3707         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
3708
3709 2007-02-07  Ian Lance Taylor  <iant@google.com>
3710
3711         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
3712
3713 2007-02-07  Roger Sayle  <roger@eyesopen.com>
3714
3715         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3716         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
3717         tablejumpdi, movsi_to_cr_one): Remove constraints from
3718         define_expand's match_operands.
3719
3720 2007-02-07  Roger Sayle  <roger@eyesopen.com>
3721
3722         * global.c (compute_regsets): Move declatation of "i" inside of
3723         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
3724
3725 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3726
3727         PR c++/30703
3728         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
3729         of INDIRECT_REF <RESULT_DECL>.
3730
3731         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
3732
3733 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
3734             Kaz Kojima  <kkojima@gcc.gnu.org>
3735
3736         PR target/29746
3737         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
3738         properly.
3739         (sh_initialize_trampoline): Add parentheses to avoid a warning.
3740
3741 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
3742
3743         * doc/loop.texi: Document possibility not to perform disambiguation
3744         of loops with multiple latches.
3745         * cfgloopmanip.c (alp_enum_p): Removed.
3746         (add_loop): Handle subloops.  Use get_loop_body_with_size.
3747         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
3748         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
3749         the new forwarder block.
3750         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
3751         Handle the case latch is NULL.
3752         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
3753         when marking loop exits.
3754         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
3755         be modified.
3756         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
3757         disambiguate_loops_with_multiple_latches.
3758         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
3759         before fix_loop_structure.
3760         * cfgloop.c: Include pointer-set.h and output.h.
3761         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
3762         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
3763         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
3764         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
3765         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
3766         disambiguate_multiple_latches, get_loop_body_with_size,
3767         disambiguate_loops_with_multiple_latches): New functions.
3768         (flow_loop_dump): Dump multiple latch edges.
3769         (flow_loop_nodes_find): Handle loops with multiple latches.
3770         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
3771         (glb_enum_p): Modified.
3772         (get_loop_body): Use get_loop_body_with_size.
3773         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
3774         (AVOID_CFG_MODIFICATIONS): New constant.
3775         (disambiguate_loops_with_multiple_latches, add_loop,
3776         get_loop_body_with_size): Declare.
3777         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
3778
3779 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
3780
3781         PR inline-asm/28686
3782         * global.c (compute_regsets): New function.
3783         (global_alloc): Refactored ELIMINABLE_REGSET
3784         and NO_GLOBAL_ALLOC_REGS computation out.
3785         (rest_of_handle_global_alloc): Call compute_regsets()
3786         for non-optimizing case.
3787
3788 2007-02-06  Richard Henderson  <rth@redhat.com>
3789
3790         * config/i386/constraints.md (Y2): Rename from Y.
3791         (Yi): New constraint.
3792         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
3793         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
3794         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
3795         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
3796         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
3797         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
3798         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
3799         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
3800         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
3801         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
3802         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
3803         vec_extractv2si_1): Change Y constraints to Y2.
3804         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
3805         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
3806         Change Y constraints to Y2.
3807         (sse2_loadld): Change Y constraints to x.
3808
3809 2007-02-06  Roger Sayle  <roger@eyesopen.com>
3810
3811         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
3812         (parity<mode>2): New define_expand using rs6000_emit_parity.
3813         * config/rs6000/rs6000.c (rs6000_emit_popcount,
3814         rs6000_emit_parity): New functions.
3815         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
3816         rs6000_emit_parity): Prototype here.
3817
3818 2007-02-06  Ian Lance Taylor  <iant@google.com>
3819
3820         * lower-subreg.c (simple_move_operand): Reject CONST.
3821         (resolve_clobber): Call validate_change rather than directly
3822         assigning to XEXP (pat, 0).
3823
3824 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
3825
3826         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
3827         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
3828         (tree-cfg.o): Remove hashtab.h dependency.
3829
3830         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
3831         (struct ivopts_data): Change niters to pointer_map_t.
3832         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
3833         (niter_for_exit): Create pointer_map on demand.  Change for
3834         pointer_map API.
3835         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
3836         (free_loop_data): Destroy data->niters if created and reset field.
3837         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
3838         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
3839
3840         * tree-ssa-reassoc.c: Include pointer-set.h.
3841         (bb_rank): Change to long *.
3842         (operand_rank): Change to pointer_map_t.
3843         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
3844         (insert_operand_rank): Accept long.
3845         (operand_entry_hash, operand_entry_eq): Remove.
3846         (get_rank): Return long.  Adjust for changes above.
3847         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
3848         and operand_rank.
3849         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
3850
3851         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
3852         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
3853         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
3854         is not NULL.
3855         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
3856         directly since it cannot be NULL.
3857         (get_vi_for_tree): Rewrite for pointer_map API.
3858         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
3859         (init_alias_vars): Create vi_for_tree as pointer_map.
3860         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
3861
3862         * tree-cfg.c: Don't include hashtab.h.
3863         (edge_to_cases): Declare as pointer_map.
3864         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
3865         Delete.
3866         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
3867         (start_recording_case_labels): Create edge_to_cases as pointer_map.
3868         (end_recoding_case_labels): Cleanup edge_to_cases manually before
3869         destroying it.
3870         (record_switch_edge): Delete.
3871         (get_cases_for_edge): Adjust for pointer_map API, inline
3872         record_switch_edge (rewritten for new API), remove goto.
3873
3874 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
3875
3876         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
3877         * tree-nested.c: Include pointer-set.h.
3878         (var_map_elt, var_map_eq, var_map_hash): Delete.
3879         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
3880         to pointer_map_t's.
3881         (nesting_info_bitmap_obstack): New.
3882         (lookup_field_for_decl): Adjust for pointer_map API.
3883         (lookup_tramp_for_decl): Adjust for pointer_map API.
3884         (get_nonlocal_debug_decl): Adjust for pointer_map API.
3885         (get_local_debug_decl): Adjust for pointer_map API.
3886         (convert_nl_goto_reference): Adjust for pointer_map API.
3887         (convert_nl_goto_receiver): Adjust for pointer_map API.
3888         (create_nesting_tree): Create outside GGC space.  Create bitmap on
3889         the new obstack.  Create field_map and var_map as pointer_maps.
3890         (free_nesting_tree): Adjust for changes to create_nesting_tree.
3891         (root): Delete.
3892         (lower_nested_functions): Move root here, no need to NULL it.
3893         Initialize and release the obstack.
3894
3895 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
3896
3897         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
3898         Remove prototypes and make them non-static.
3899         (struct tree_int_map): Remove.
3900         * tree.h (struct tree_int_map): Move here, turning TO into an
3901         unsigned int.
3902         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
3903
3904         * tree.h (TREE_COMPLEXITY): Remove.
3905         (struct tree_exp): Remove complexity field.
3906         * tree.c (build1_stat): Don't set it.
3907
3908 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
3909             Victor Kaplansky  <victork@il.ibm.com>
3910
3911         * tree-vectorizer.c (vect_is_simple_use): Support induction.
3912         (vect_is_simple_reduction): Support reduction with induction as
3913         one of the operands.
3914         (vect_is_simple_iv_evolution): Fix formatting.
3915         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
3916         formatting.  Don't mark induction phis for vectorization.
3917         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
3918         * tree-vect-transform.c (get_initial_def_for_induction): New function.
3919         (vect_get_vec_def_for_operand): Support induction.
3920         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
3921         induction case.
3922         (vectorizable_reduction): Support reduction with induction as one of
3923         the operands.
3924         (vectorizable_type_demotion): Use def-type of stmt argument rather
3925         than dummy def-type.
3926
3927         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
3928         flag_tree_scev_cprop.
3929         * common.opt (tree-scev-cprop): New flag.
3930
3931         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
3932         call to vect_get_new_vect_var.
3933
3934 2007-02-06  Ira Rosen  <irar@il.ibm.com>
3935
3936         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
3937         vectype is not NULL.
3938         (vect_pattern_recog_1): Likewise.
3939
3940 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3941
3942         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
3943         (fold_negate_expr): Likewise.
3944
3945 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
3946
3947         PR debug/30189
3948         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
3949         even if cv-qualification is the same.
3950
3951 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
3952
3953         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
3954         __enable_execute_stack on completion.
3955
3956 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3957
3958         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
3959         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
3960         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
3961         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
3962         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
3963         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
3964         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
3965         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
3966
3967 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
3968
3969         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
3970         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
3971         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
3972         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
3973         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
3974         floatdisf2_sse, floatsidf2_mi