OSDN Git Service

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