OSDN Git Service

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