OSDN Git Service

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