OSDN Git Service

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