OSDN Git Service

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