OSDN Git Service

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