OSDN Git Service

2007-07-03 Eric Christopher <echristo@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-07-03  Eric Christopher  <echristo@apple.com>
2
3         * doc/cppopts.texi: Add conflicting option note to -dM.
4         * doc/invoke.texi: Add note about possible conflicts with
5         -E for -dCHARS and note that -dM will not produce
6         any results if there is no machine dependent reorg.
7         
8 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
9
10         * tree.h (DECL_ALIGN): Back out previous change.
11
12 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
13
14         * configure.ac: Test for .dtprelword support on MIPS.
15         * configure, config.in: Regenerate.
16         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
17         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18
19 2007-07-03  Julian Brown  <julian@codesourcery.com>
20
21         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
22         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
23         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
24         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
25         capability.
26         (all_fpus): Add FPUTYPE_VFP3.
27         (fp_model_for_fpu): Add VFPv3 field.
28         (arm_rtx_costs_1): Give cost to VFPv3 constants.
29         (vfp3_const_double_index): New function. Return integer index of
30         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
31         isn't suitable.
32         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
33         and argument represents a valid RTX for a VFPv3 constant.
34         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
35         two instructions.
36         (vfp_emit_fstmd): Similar, for fstmd.
37         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
38         constants, represented as integer indices.
39         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
40         VFP_REGNO_OK_FOR_DOUBLE macros.
41         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
42         (arm_file_start): Set float-abi attribute for VFPv3, and output
43         correct ".fpu" assembler directive.
44         (arm_dbx_register_numbering): Add FIXME.
45         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
46         (fputype): Add FPUTYPE_VFP3.
47         (FIXED_REGISTERS): Add 32 registers for D16-D31.
48         (CALL_USED_REGISTERS): Likewise.
49         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
50         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
51         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
52         (D7_VFP_REGNUM): New.
53         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
54         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
55         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
56         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
57         (REG_ALLOC_ORDER): Adjust for VFPv3.
58         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
59         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
60         VFP_LO_REGS, VFP_HI_REGS.
61         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
62         (IS_VFP_CLASS): Define macro.
63         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
64         IS_VFP_CLASS.
65         (REGISTER_MOVE_COST): Likewise.
66         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
67         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
68         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
69         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
70         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
71         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
72         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
73         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
74         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
75         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
76         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
77         where appropriate for single-word registers.
78         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
79         As above. Fix type attributes.
80         * config/arm/constraints.md (register_contraint "t"): Define.
81         (register_constraint "w"): Change to D0-D15, or D0-D31 for
82         VFPv3/NEON.
83         (register_constraint "x"): Define.
84         (constraint "Dv"): Define.
85
86 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
87
88         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
89
90 2007-07-03  Tom Tromey  <tromey@redhat.com>
91
92         * c-parser.c (objc_pq_context): Removed.
93         (objc_need_raw_identifier): Likewise.
94         (c_parser) <objc_pq_context>: New field.
95         <objc_need_raw_identifier>: Likewise.
96         (OBJC_NEED_RAW_IDENTIFIER): Removed.
97         (c_lex_one_token): Update.
98         (c_parser_objc_protocol_definition): Update.
99         (c_parser_objc_method_definition): Update.
100         (c_parser_objc_methodproto): Update.
101         (c_parser_declspecs): Update.
102
103 2007-07-03  David Ung  <davidu@mips.com>
104
105         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
106
107 2007-07-03  David Ung  <davidu@mips.com>
108             Richard Sandiford  <richard@codesourcery.com>
109
110         * doc/invoke.texi: Document -march=74kf3_2.
111         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
112         (TUNE_74K): Check for it.
113         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
114         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
115         * config/mips/mips.md (cpu): Add 74kf3_2.
116         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
117         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
118         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
119         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
120         74kf3_2 to the CPU list.
121         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
122         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
123         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
124         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
125         (r74kf3_2_fxfer_from_c1): New insn reservations.
126
127 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
128             David Ung  <davidu@mips.com>
129
130         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
131         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
132         and 74k[fx].  Document aliases for the new options.
133         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
134         (PROCESSOR_24KF2_1): ...this.
135         (PROCESSOR_24KX): Rename to...
136         (PROCESSOR_24KF1_1): ...this.
137         (PROCESSOR_74KF): Rename to...
138         (PROCESSOR_74KF2_1): ...this.
139         (PROCESSOR_74KX): Rename to...
140         (PROCESSOR_74KF1_1): ...this.
141         (TUNE_74K): Update PROCESSOR_* names.
142         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
143         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
144         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
145         (mips_rtx_cost_data): Update processor names in comments.
146         (mips_issue_rate): Update PROCESSOR_* names.
147         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
148         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
149         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
150         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
151         Update cpu attribute names.
152         (r24k_fpu_iss): Rename this reservation to...
153         (r24kf2_1_fpu_iss): ...this and update all uses.
154         (r24kx_fpu_iss): Rename this reservation to...
155         (r24kf1_1_fpu_iss): ...this and update all uses.
156         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
157         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
158         Update cpu attribute names.
159
160 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
161
162         * config/m32r/constraints.md: New file.
163         * config/m32r/m32r.c: Include tm-constrs.h.
164         (small_data_operand): Use satisfies_constraint_* instead of macro.
165         (addr24_operand, gen_compare): Likewise.
166         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
167         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
168         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
169         EXTRA_CONSTRAINT): Likewise.
170         * config/m32r/m32r.md: Include constraints.md.
171         (*movsi_insn): Use satisfies_constraint_* instead of macro.
172         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
173         * config/m32r/predicates.md (conditional_move_operand): Likewise.
174         (two_insn_const_operand, int8_operand, uint16_operand,
175         reg_or_int16_operand, reg_or_uint16_operand,
176         reg_or_cmp_int16_operand, cmp_int16_operand,
177         seth_add3_operand): Likewise.
178
179 2007-07-03  Eric Christopher  <echristo@gmail.com>
180
181         * libgcc2.h: Conditionally declare __bswapsi2 and
182         __bswapdi2.
183         
184 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
185
186         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
187         defined.
188
189 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
190
191         PR target/28307
192         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
193         (__gthrw_pragma): Provide default definition.
194         (__gthrw2): Use it.
195         * gthr-posix.c (__gthrw_pragma): Define.
196
197 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
198
199         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
200         before declaring inequality.
201
202 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
203
204         * combine.c (recog_for_combine): Log the success or failure of
205           matching new insn patterns against the machine description in
206           detailed dumps.
207
208 2007-07-03  Revital Eres  <eres@il.ibm.com>
209
210         * ddg.c (print_sccs): New function.
211         (check_sccs): New function.
212         (create_ddg_all_sccs): Use it.
213         * ddg.h (print_sccs): Declare.
214         * modulo-sched.c (sms_order_nodes): Call print_sccs.
215
216 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
217
218         * targhooks.h (default_mode_for_suffix): New function declaration.
219         * targhooks.c (default_mode_for_suffix): New default target hook.
220         * target.h (struct c): New structure in the targetm struct.
221         (mode_for_suffix): New target hook as part of struct c.
222         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
223         default_mode_for_suffix.
224         (TARGET_C): New define.
225         * c-lex.c: Include "target.h".
226         (interpret_float): Use targetm.c.mode_for_suffix to determine
227         the mode for a given non-standard suffix.
228         Makefile.in (c-lex.o): Depend on $(TARGET_H).
229
230         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
231         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
232
233         * doc/extend.texi (Floating Types): New node.  Document __float80 and
234         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
235
236 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
237
238         PR target/32506
239         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
240         predicate instead of target_operand.
241         (divsi3_i1_media, divsi3_media_2): Likewise.
242
243 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
244
245         * tree.h (alias_sets_might_conflict_p): Rename into
246         alias_sets_must_conflict_p.
247         * alias.c (alias_sets_might_conflict_p): Likewise.
248         (alias_sets_conflict_p): Use it.
249         (objects_must_conflict_p): Likewise.
250         * c-common.c (strict_aliasing_warning): Adjust.
251
252 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
253
254         * rtlhooks.c (gen_lowpart_if_possible): Check for
255         invalid subreg before calling gen_lowpart_SUBREG.
256
257 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
258
259         * config/darwin9.h: Add copyright notice.
260         (LINK_COMMAND_SPEC): Add comment.
261         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
262         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
263         DARWIN_LIBSYSTEM_HAS_UNWIND.
264
265 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
266
267         PR libgomp/32468
268         * omp-low.c (check_combined_parallel): New function.
269         (lower_omp_parallel): Call it via walk_stmts, set
270         OMP_PARALLEL_COMBINED if appropriate.
271         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
272         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
273         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
274         don't consider it as combined parallel.
275
276 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
277
278         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
279         (gcc_tooldir): Likewise.
280         * configure: Regenerate.
281         * Makefile.in (libsubdir_to_prefix): New variable, based on the
282         old configure.ac gcc_tooldir setting.
283         (prefix_to_exec_prefix): New variable.
284         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
285         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
286
287 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
288
289         Fix PR tree-optimization/32583
290         Fix PR tree-optimization/32584
291         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
292         (phi_translate_set): Use phi_translate directly now.
293         (make_values_for_stmt): Don't value number RHS if we already know
294         it is constant.
295
296 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
297             Jim Wilson <wilson@specifix.com>
298
299         PR target/31684
300         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
301         copy_insn.
302
303 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
304             Richard Sandiford  <richard@codesourcery.com>
305             Nigel Stephens  <nigel@mips.com>
306
307         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
308         (mips16e_output_save_restore): Declare.
309         (mips16e_save_restore_pattern_p): Likewise.
310         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
311         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
312         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
313         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
314         (BITSET_P): New global macro, extracted from...
315         (mips_for_each_saved_reg): ...here.
316         (mips16e_save_restore_info): New struct.
317         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
318         (mips16e_save_restore_regs): New variable.
319         (mips_split_plus, mips16e_find_first_register): New functions.
320         (mips16e_mask_registers): New function.
321         (compute_frame_size): Expand the commentary before the function.
322         Enforce the MIPS16e save and restore register range restrictions.
323         Pad the general register save area at the low end.
324         (mips16e_save_restore_reg, mips16e_build_save_restore)
325         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
326         (mips16e_output_save_restore, mips16e_collect_propagate_value)
327         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
328         New functions.
329         (mips_expand_prologue, mips_expand_epilogue): Handle
330         GENERATE_MIPS16E_SAVE_RESTORE.
331         * config/mips/mips.md (*mips16e_save_restore): New pattern.
332
333 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
334
335         PR tree-optimization/31966
336         PR tree-optimization/32533
337         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
338         "basic_block" description as its third argument.  Update function
339         calls to get destination bb from "edge" argument.  Save "cond" into
340         aux field of the edge.  Update prototype for changed arguments.
341         (if_convertible_loop_p): Clear aux field of incoming edges if bb
342         contains phi node.
343         (find_phi_replacement_condition): Operate on incoming edges, not
344         on predecessor blocks.  If there is a condition saved in the
345         incoming edge aux field, AND it with incoming bb predicate.
346         Return source bb of the first edge.
347         (clean_predicate_lists): Clean aux field of outgoing node edges.
348         (tree_if_conversion): Do not initialize cond variable. Move
349         variable declaration into the loop.
350         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
351         initializations of new_stmt, arg0 and arg1 variables.
352
353 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
354
355         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
356         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
357
358 2007-07-02  Richard Guenther  <rguenther@suse.de>
359
360         * tree-ssa.c (useless_type_conversion_p): Document
361         future intent as defining the middle-end type system.
362         Re-structure to call langhook last, group by type class,
363         mark questionable parts.
364
365 2007-07-02  Richard Guenther  <rguenther@suse.de>
366
367         * tree-flow.h (types_compatible_p): Declare.
368         * tree-ssa.c (types_compatible_p): New function.
369         * ipa-type-escape.c (discover_unique_type): Use
370         types_compatible_p instead of lang_hooks.types_compatible_p.
371         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
372         * tree-vn.c (expressions_equal_p): Likewise.
373         * tree.c (fields_compatible_p): Likewise.
374         * tree-ssa-dom.c (avail_expr_eq): Likewise.
375         (cprop_operand): Use useless_type_conversion_p instead of
376         lang_hooks.types_compatible_p.
377         * tree-inline.c (setup_one_parameter): Likewise.
378         (declare_return_variable): Likewise.
379         * tree-nrv.c (tree_nrv): Likewise.
380         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
381         (maybe_fold_offset_to_component_ref): Likewise.
382         (maybe_fold_offset_to_reference): Likewise.
383         * tree-ssa-copy.c (may_propagate_copy): Likewise.
384         (merge_alias_info): Likewise.
385         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
386         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
387         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
388         * tree-tailcall.c (find_tail_calls): Likewise.
389         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
390         * gimplify.c (canonicalize_addr_expr): Likewise.
391         (fold_indirect_ref_rhs): Likewise.
392         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
393         (cpt_same_type): Likewise.
394         (check_pointer_types_r): Swap parameters to cpt_same_type
395         where appropriate.
396         * fold-const.c (fold_convert): Revert fix for PR15988.
397         * tree-inline.c (setup_one_parameter): Instead fix it here by
398         using fold_build1 instead of fold_convert and checking for
399         error_mark_node.  Convert only if the conversion is necessary.
400
401 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
402
403         * configure.ac: Check for .gnu_attribute on Power.
404         * configure: Regenerate.
405         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
406         attribute for floating-point ABI.
407
408 2007-07-02  Ira Rosen  <irar@il.ibm.com>
409
410         PR tree-optimization/32230
411         PR tree-optimization/32477
412         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
413         address is a constant.
414
415 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
416
417         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
418         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
419         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
420         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
421         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
422         64-bit targets.  Add support for *-elfoabi*.
423         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
424         different settings if $(tm_defines) does not select the EABI.
425         (MULTILIB_EXCLUSIONS): Define in those circumstances.
426         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
427         (MIPS_ARCH_OPTION_SPEC): Likewise.
428         (MIPS_ISA_LEVEL_SPEC): Likewise.
429         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
430         * config/mips/elfoabi.h: New file.
431
432 2007-07-02  Richard Guenther  <rguenther@suse.de>
433
434         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
435         (useless_type_conversion_p): ... this.
436         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
437         (useless_type_conversion_p): ... this.
438         * builtins.c (fold_builtin_memory_op): Rename
439         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
440         * tree-cfg.c (verify_expr): Likewise.
441         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
442         * tree-ssa-ccp.c (ccp_fold): Likewise.
443         * tree-ssa-copy.c (may_propagate_copy): Likewise.
444         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
445         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
446         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
447         * tree-ssa-pre.c (eliminate): Likewise.
448         * tree-ssa.c (delete_tree_ssa): Likewise.
449         (tree_ssa_useless_type_conversion): Likewise.
450         * tree.c (build2_stat): Likewise.
451
452 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
453
454         Fix PR tree-optimization/32571
455         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
456         simplifying them.
457
458 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
459
460         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
461         and other expected operations explicitly, change default to
462         gcc_unreachable. 
463
464 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
465
466         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
467         PARALLEL.
468         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
469         (tls_load_dot_plus_eight): Move the label number into the unspec.
470         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
471
472 2007-07-01  Andreas Schwab  <schwab@suse.de>
473
474         * dwarf2out.c (initial_return_save): Define only if used.
475
476 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
477
478         Unreverting Richard's Revert of:
479
480         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
481
482         * dce.c (deletable_insn_p_1): New function, split out from...
483         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
484         specially, not those inside PARALLELs.  Remove BODY argument
485         and adjust recursive call accordingly.
486         (prescan_insns_for_dce): Update call to delete_insn_p.
487
488 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
489             Revital Eres  <eres@il.ibm.com>
490
491         * ddg.c (create_ddg_all_sccs): Fix missed
492         initialization of scc_nodes.
493
494 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
495
496         PR middle-end/32559
497         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
498         X + ~X to 1 only for INTEGRAL_TYPE_P type.
499
500 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
501
502         * configure.ac: Check for .gnu_attribute on MIPS.
503         * configure, config.in: Regenerate.
504         * config/mips/mips.c (mips_file_start): If supported, output
505         attribute for floating-point ABI.
506
507 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
508
509         PR target/32433
510         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
511         (ffs_cmove): New expander to expand using ctz pattern.
512         (*ffs_cmove): Remove pattern.
513         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
514         (ffsdi2): Expand using ctz pattern.
515         (*ffs_rex64): Remove pattern.
516
517 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
518
519         PR rtl-optimization/32296
520         * pa.md (return): Delete pattern.
521         (return_internal): Remove "(const_int 1)" from pattern.
522         (epilogue): Use return_internal pattern for trivial returns.
523         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
524         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
525
526 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
527
528         * tree-ssa-pre.c (is_exception_related): New function
529         (can_value_number_operation): Use it.
530
531 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
532         
533         Fix PR tree-optimization/32540
534         Fix PR tree-optimization/31651
535
536         * tree-ssa-sccvn.c: New file.
537
538         * tree-ssa-sccvn.h: Ditto.
539         
540         * tree-vn.c: Include tree-ssa-sccvn.h
541         (val_expr_paid_d): Removed.
542         (value_table): Ditto.
543         (vn_compute): Ditto.
544         (val_expr_pair_hash): Ditto.
545         (val_expr_pair_expr_eq): Ditto.
546         (copy_vuses_from_stmt): Ditto.
547         (vn_delete): Ditto.
548         (vn_init): Ditto.
549         (shared_vuses_from_stmt): Ditto.
550         (print_creation_to_file): Moved up.
551         (sort_vuses): Ditto.
552         (sort_vuses_heap): Ditto.
553         (set_value_handle): Make non-static.
554         (make_value_handle): Ditto.
555         (vn_add): Rewritten to use sccvn lookups.
556         (vn_add_with_vuses): Ditto.
557         (vn_lookup): Ditto (and second argument removed).
558         (vn_lookup_with_vuses): Ditto.
559         (vn_lookup_or_add): Ditto (and second argument removed);
560         (vn_lookup_or_add_with_vuses): Ditto.
561         (vn_lookup_with_stmt): New.
562         (vn_lookup_or_add_with_stmt): Ditto.
563         (create_value_handle_for_expr): Ditto.
564
565         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
566         (seen_during_translate): New function.
567         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
568         (phi_trans_add): Ditto.
569         (constant_expr_p): FIELD_DECL is always constant.
570         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
571         Use constant_expr_p.
572         Avoid infinite recursion on mutually valued expressions.
573         Change callers of vn_lookup_or_add.
574         (phi_translate): New function.
575         (compute_antic_safe): Allow phi nodes.
576         (create_component_ref_by_pieces): Update for FIELD_DECL change.
577         (find_or_generate_expression): Rewrite slightly.
578         (create_expression_by_pieces): Updated for vn_lookup_or_add
579         change.
580         Update VN_INFO for new names.
581         (insert_into_preds_of_block): Update for new names.
582         (add_to_exp_gen): New function.
583         (add_to_sets): Use vn_lookup_or_add_with_stmt.
584         (find_existing_value_expr): Rewrite to changed vn_lookup.
585         (create_value_expr_from): Ditto, and use add_to_exp_gen.
586         (try_look_through_load): Removed.
587         (try_combine_conversion): Ditto.
588         (get_sccvn_value): New function.
589         (make_values_for_phi): Ditto.
590         (make_values_for_stmt): Ditto.
591         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
592         SCCVN.
593         (init_pre): Update for SCCVN changes.
594         (fini_pre): Ditto.
595         (execute_pre): Ditto.
596
597         * tree-flow.h (make_value_handle): Declare.
598         (set_value_handle): Ditto.
599         (sort_vuses_heap): Ditto.
600         (vn_lookup_or_add_with_stmt): Ditto.
601         (vn_lookup_with_stmt): Ditto.
602         (vn_compute): Remove.
603         (vn_init): Ditto.
604         (vn_delete): Ditto.
605         (vn_lookup): Update arguments.
606
607         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
608         (tree-vn.o): Ditto.
609         (tree-ssa-sccvn.o): New.
610         (OBJS-common): Add tree-ssa-sccvn.o
611         
612 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
613
614         PR c/4076
615         * c-typeck.c (build_external_ref): Don't mark as used if called
616         from itself.
617         * calls.c (rtx_for_function_call): Likewise.
618         
619 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
620
621         Revert:
622
623         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
624
625         * dce.c (deletable_insn_p_1): New function, split out from...
626         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
627         specially, not those inside PARALLELs.  Remove BODY argument
628         and adjust recursive call accordingly.
629         (prescan_insns_for_dce): Update call to delete_insn_p.
630
631 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
632
633         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
634         (try_combine): Move potential calls to undo_all() so they happen
635         before we commit to using the combined insns.
636
637 2006-06-30  Jan Hubicka  <jh@suse.cz>
638
639         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
640         code.
641
642 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
643
644         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
645         (cgraph_remove_unreachable_nodes): Likewise.
646         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
647         * ipa-inline.c (update_caller_keys): Cast according to the coding
648         conventions.
649         (cgraph_decide_recursive_inlining): Likewise.
650         (cgraph_decide_inlining_of_small_function): Likewise.
651         (try_inline): Likewise.
652         (cgraph_decide_inlining_incrementally): Likewise.
653         * ipa-pure-const.c (get_function_state): Likewise.
654         (scan_function): Likewise.
655         (analyze_function): Likewise.
656         (static_execute): Likewise.
657         * gcc/ipa-reference.c (scan_for_static_refs): Likewise.
658         (merge_callee_local_info): Likewise.
659         (analyze_function): Use type safe memory macros.
660         (static_execute): Likewise. Cast according to the coding conventions.
661         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
662         conventions.
663         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
664         names.
665         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
666         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
667         variable names.
668
669 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
670
671         PR middle-end/30024
672         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
673         for complex modes (both int and real).
674
675 2007-06-29  Jan Hubicka  <jh@suse.cz>
676
677         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
678
679 2007-06-29  Jan Hubicka  <jh@suse.cz>
680
681         PR middle-end/32372
682         * cse.c (cse_insn): Avoid invalid sharing in between register note and
683         the insn pattern.
684
685 2007-06-29  Anatoly Sokolov <aesok@post.ru>
686
687         PR target/32335
688         * config/avr/avr.c: Include dataflow header file.
689         (expand_prologue): Adjust for prologue insn change.
690         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
691         inside a insn.
692
693 2007-06-29  Richard Guenther  <rguenther@suse.de>
694
695         PR middle-end/32493
696         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
697         during type verification.
698
699 2007-06-29  Jan Hubicka  <jh@suse.cz>
700
701         * recog.c (validate_change_rtx_1): Unshare TO argument.
702
703 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
704
705         PR tree-optimization/24659
706         * tree-vect-transform.c (vectorizable_call): Handle
707         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
708
709         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
710         * config/i386/i386.c (enum ix86_builtins)
711         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
712         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
713         description.
714         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
715         const using def_builtin_const.
716         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
717         input operands in the same modes as the result.
718         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
719
720 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
721
722         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
723         (df_set_dead_notes_for_mw): Likewise.
724
725 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
726
727         * c-common.c (pointer_int_sum): Do the negation in sizetype.
728
729 2007-06-28  DJ Delorie  <dj@redhat.com>
730
731         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
732
733 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
734
735         * doc/invoke.texi (C++ Dialect Options): Document
736         fvisibility-ms-compat.
737         * c.opt (fvisibility-ms-compat): New.
738
739 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
740
741         PR tree-opt/32417
742         * tree-affine.c (aff_combination_add_elt): Handle
743         pointer addition specially.
744
745 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
746
747         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
748         decl is non-external for AIX ABI.
749
750 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
751
752         * config/rs6000/predicates.md (current_file_function_operand):
753         Ensure the symbol is non-external for AIX ABI.
754
755 2007-06-28  Nick Clifton  <nickc@redhat.com>
756
757         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
758         (fdce, fdse, fpredictive-commoning): Likewise.
759
760 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
761
762         PR other/31400
763         * gcc.c (process_command): Recognize the new -static-libgfortran
764         option.
765
766 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
767
768         PR target/32418
769         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
770         Use a call clobbered hard reg instead of a pseudo reg.
771
772 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
773
774         * config/sh/sh.md (load_gbr): Use correct operand constraint.
775
776 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
777
778         PR target/32479
779         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
780         REG_LIBCALL and REG_RETVAL notes.
781         (divsi3, mulsi3): Likewise.
782         (mulhisi3): Likewise.  Use emit_libcall_block.
783         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
784
785 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
786
787         PR rtl-optimization/32481
788         * combine.c (adjust_for_new_dest): Rescan the changed insn.
789
790 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
791
792         * dce.c (deletable_insn_p_1): New function, split out from...
793         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
794         specially, not those inside PARALLELs.  Remove BODY argument
795         and adjust recursive call accordingly.
796         (prescan_insns_for_dce): Update call to delete_insn_p.
797
798 2007-06-27  Richard Guenther  <rguenther@suse.de>
799
800         PR middle-end/32492
801         * tree.h (fold_convertible_p): Declare.
802         * fold-const.c (fold_convertible_p): New function.
803         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
804         instead of lang_hooks.types_compatible_p.
805
806 2007-06-26  Jan Hubicka  <jh@suse.cz>
807
808         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
809         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
810         early use validate_unshare_change.
811         (reload_combine): Likewise.
812         * recog.c (change_t): New field unshare.
813         (validate_change_1): Rename from validate_change; add argument unshare.
814         (validate_change): Turn into wrapper of validate_change_1; update
815         prototype for bools.
816         (validate_unshare_change): New.
817         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
818         calls of df_insn_rescan.
819         * recog.h (validate_change): Replace ints by bools.
820         (validate_unshare_change): Declare.
821
822 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
823
824         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
825         
826 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
827
828         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
829
830 2007-06-25  Jan Hubicka  <jh@suse.cz>
831
832         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
833         uninlinable call.
834         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
835         cgraph_decide_inlining_incrementally): Move uninlinability checks to
836         places other call site specific checks are performed.
837
838 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
839
840         PR tree-opt/32421
841         * tree-vect-transform.c (vectorizable_operation): Convert
842         POINTER_PLUS_EXPR over to PLUS_EXPR.
843
844 2007-06-25  Chao-ying Fu  <fu@mips.com>
845
846         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
847         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
848         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
849         Document GET_MODE_IBIT, and GET_MODE_FBIT.
850
851         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
852         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
853         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
854         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
855         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
856         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
857         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
858         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
859         ALL_FIXED_POINT_MODE_P): New define.
860         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
861         MODE_UACCUM.
862         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
863
864         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
865         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
866         MODE_VECTOR_UACCUM): New mode classes.
867
868         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
869         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
870         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
871         USA, UDA, and UTA.
872
873         * genmodes.c (struct mode_data): Add ibit and fbit fields.
874         (blank_mode): Initialize ibit and fbit.
875         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
876         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
877         (new_adjust): Change required_class to required_class_from and
878         required_class_to for testing within a range.
879         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
880         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
881         MODE_VECTOR_UACCUM.
882         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
883         (make_fixed_point_mode): New.
884         (_ADD_ADJUST): Change C to C1 and C2.
885         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
886         use a range for machine classes.
887         (ADJUST_IBIT, ADJUST_FBIT): New.
888         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
889         CONST_MODE_FBIT.
890         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
891         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
892         Emit adjustment for ibit and fbit.
893         (emit_mode_ibit, emit_mode_fbit): New.
894         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
895
896 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
897
898         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
899         as the source of the set.
900
901 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
902
903         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
904         FP_REGNO_P): Use IN_RANGE.
905         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
906         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
907         (DATA_REG_P): Use DATA_REGNO_P.
908         (FP_REG_P): Use FP_REGNO_P.
909         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
910         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
911         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
912
913 2007-06-24  Jan Hubicka  <jh@suse.cz>
914
915         PR middle-end/30563
916         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
917
918 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
919
920         PR middle-end/32461
921         * fold-const.c (fold_binary): Strip nops of operand 0
922         of BIT_NOT_EXPR before calling operand_equal_p.
923         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
924         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
925
926 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
927
928         * doc/extend.texi: Document that dllimport and dllexport imply
929         default visibility.
930         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
931         imported or exported declaration, including type declarations.
932         * c-common.c (handle_visibility_attribute): Check for conflicts
933         with dllimport/dllexport.
934         (c_determine_visibility): Handle dllimport/dllexport as an
935         explicit visibility atttribute.
936
937 2007-06-23  Richard Guenther  <rguenther@suse.de>
938
939         PR tree-optimization/16876
940         PR middle-end/29478
941         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
942         for CALL_EXPRs.
943         * tree-inline.c (initialize_inlined_parameters): Do not call
944         lang_hooks.tree_inlining.convert_parm_for_inlining.
945         * cgraphbuild.c (initialize_inline_failed): Set inline failed
946         reason for mismatched types.
947         * gimplify.c (gimplify_call_expr): Verify the call expression
948         arguments match the called function type signature.  Otherwise
949         mark the call expression to be not considered for inlining
950         using CALL_CANNOT_INLINE_P flag.
951         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
952         edges call expression.
953         (cgraph_decide_inlining_of_small_function): Likewise.
954         (cgraph_decide_inlining): Likewise.
955         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
956         Remove define.
957         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
958         * c-typeck.c (c_convert_parm_for_inlining): Remove.
959         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
960         Remove declaration.
961         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
962         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
963         Remove.
964         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
965         convert_parm_for_inlining member.
966
967 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
968
969         PR target/31152
970         * arm.md (negscc): Match the correct operand for optimized LT0 test.
971         Remove optimization for GT.
972
973 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
974
975         PR middle-end/32437
976         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
977         is a PARALLEL.
978         (prescan_insns_for_dce): Add extra parameter.
979         
980 2007-06-23  Jan Hubicka  <jh@suse.cz>
981
982         PR middle-end/31541
983         * gimplify.c (mark_addressable): New function.
984         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
985
986 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
987
988         PR middle-end/32374
989         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
990
991 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
992
993         PR target/32413
994         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
995         moves between MMX/SSE registers to at least 8 units to prevent
996         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
997
998 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
999
1000         * config/i386/i386.c (override_options): Correct x86_sahf
1001         setting condition.
1002
1003 2007-06-21  David Daney  <ddaney@avtrex.com>
1004
1005         PR target/32406
1006         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
1007         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
1008         (exception_receiver): Renamed to ...
1009         (nonlocal_goto_receiver): ... this.
1010
1011 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
1012
1013         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
1014         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
1015         partial register accesses.
1016
1017 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
1018
1019         * fold-const.c (debug_fold_checksum): Move it under
1020         ENABLE_FOLD_CHECKING.
1021
1022 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
1023
1024         PR middle-end/20623
1025         * tree.h (debug_fold_checksum): Declared.
1026         * fold-const.c (build_fold_addr_expr_with_type_1): New.
1027         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
1028         build_fold_addr_expr_with_type_1.
1029         (fold_addr_expr, debug_fold_checksum): New.
1030         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
1031         (fold_unary, fold_comparison, split_address_to_core_and_offset):
1032         Use fold_addr_expr.
1033         
1034 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
1035
1036         PR tree-optimization/19590
1037         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
1038         of scev is a constant.
1039         * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
1040
1041 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
1042
1043         * df-problems.c (df_note_bb_compute): Made computation of live
1044         info consistent with df_lr.
1045
1046 2007-06-21  Richard Guenther  <rguenther@suse.de>
1047
1048         PR tree-optimization/32453
1049         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
1050         for pointer anti-range.
1051
1052 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1053
1054         * config/i386/i386.c (processor_target_table): Increase maximum
1055         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
1056         default 64bit.
1057
1058         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
1059         byte alignment if > 8 byte alignment is preferred.
1060         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
1061
1062 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1063
1064         PR tree-optimization/31866
1065         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
1066         if ASM_EXPR's input is not a SSA_NAME.
1067
1068         PR middle-end/32362
1069         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
1070         but decl is a global var, instead return decl.
1071         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
1072         even for is_global_var decls, if they are private in some outer
1073         context.
1074
1075 2007-06-21  Richard Guenther  <rguenther@suse.de>
1076
1077         PR tree-optimization/32451
1078         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
1079
1080 2007-06-21  Christian Bruel  <christian.bruel@st.com>
1081
1082         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
1083         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
1084         (push_regs): Changed saving order or banked registers.
1085         (sh_expand_epilogue): Likewise.
1086         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
1087         (FIRST_BANKED_REG): Likewise.
1088         (LAST_BANKED_REG): Likewise.
1089         * config/sh/sh.md (banked) New attribute.
1090         (in_delay_slot): Check banked attribute.
1091         
1092 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
1093
1094         PR tree-optimization/32075
1095         * tree-data-ref.c (subscript_dependence_tester_1, 
1096         analyze_miv_subscript, analyze_overlapping_iterations,
1097         add_distance_for_zero_overlaps, build_classic_dist_vector,
1098         subscript_dependence_tester_1, analyze_overlapping_iterations,
1099         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
1100         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
1101         to evolution_function_is_affine_multivariate_p.
1102
1103 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
1104
1105         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
1106
1107 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1108
1109         PR target/32335
1110         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
1111         for TARGET_A16.
1112         * config/m32c/prologue.md (epilogue_exitd_16): New.
1113         (epilogue_reit_16): New.
1114         (epilogue_exitd): Rename to epilogue_exitd_24.
1115         (epilogue_reit): Rename to epilogue_reit_24.
1116
1117 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
1118             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1119
1120         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
1121         New counters.
1122         * haifa-sched.c (queue_to_ready): Don't requeue next insn
1123         if dbg_cnt (sched_insn) reaches the limit.
1124         (choose_ready): New parameter INSN_PTR and new return value.
1125         (schedule_block): Handle dbg_cnt (sched_insn). Handle
1126         the new return value from choose_ready.
1127         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
1128         (rest_of_handle_global_alloc): New global_alloc_at_func.
1129
1130 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
1131
1132         PR tree-optimization/25737
1133         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
1134         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
1135         * tree-flow.h (struct fieldoff): Add new field alias_set.
1136         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
1137         argument addressable_type.  Set alias_set of fieldoff.
1138         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
1139         (create_overlap_variables_for): Pass alias_set from fieldoff to
1140         create_sft.
1141         * alias.c (get_alias_set): Use alias_set from SFT if set.
1142
1143 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
1144
1145         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
1146         of a variable as an unsigned HOST_WIDE_INT integer.
1147
1148 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
1149
1150         PR rtl-optimization/32405
1151         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
1152
1153 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
1154
1155         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
1156
1157         PR middle-end/31959
1158         * builtins.c: Include diagnostic.h.
1159         (expand_builtin_expect): Make gcc_assert more permissive.
1160         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
1161
1162         PR inline-asm/32109
1163         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
1164         and !allows_mem.
1165
1166         PR middle-end/32285
1167         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
1168         if ACCUMULATE_OUTGOING_ARGS.
1169
1170 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1171
1172         * config/m68hc11/m68hc11.c: Include dataflow header file.
1173         (m68hc11_reorg): Port to dataflow.
1174
1175 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
1176
1177         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
1178         (struct df_problem.free_blocks_on_set_blocks): New field.
1179         (struct dataflow.optional_p): New field.
1180         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
1181         (df_live_set_all_dirty): New function.
1182         * df-scan.c (df_scan_alloc): Initialize optional_p.
1183         (problem_SCAN): Initialize free_blocks_on_set_blocks.
1184         * df-core.c (df_set_blocks): Removed use of
1185         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
1186         df_problem.free_blocks_on_set_blocks to determine which blocks are
1187         recycled.
1188         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
1189         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
1190         uses dataflow.optional_p to determine if problem should be
1191         deleted.
1192         (rest_of_handle_df_initialize): Only start live problem if 
1193         -02 or above.
1194         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
1195         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
1196         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
1197         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
1198         problem_NOTE):  Initialize free_blocks_on_set_blocks.
1199         (df_lr_bb_local_compute): Recompute luids if df_live problem is
1200         not active.
1201         (df_live_set_all_dirty, df_note_alloc): New function.
1202         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
1203         df_get_live_*.
1204         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
1205         * postreload.c (reload_combine): Ditto.
1206         * cse.c (cse_extended_basic_block): Ditto.
1207         * regmove.c (mark_flags_life_zones): Ditto.
1208         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
1209         erase_matching_seqs): Ditto.
1210         * bt-load.c (compute_defs_uses_and_gen): Ditto.
1211         * integrate (allocate_initial_values): Ditto.
1212         * combine.c (reg_dead_at_p): Ditto.
1213         * resource.c (mark_target_live_regs): Ditto.
1214         * sched-rgn.c (check_live_1, update_live_1): Ditto.
1215         * config/sh/sh.c (find_r0_life_regions): Ditto.
1216         * global.c (rest_of_handle_global_alloc): Only add back df_live
1217         for -O > 1.
1218         * local-alloc.c (rest_of_handle_local_alloc): Only remove
1219         df_live for -O > 1.
1220         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
1221         df_get_live_*.
1222         (if_convert): Make sure df_live is there at -O == 1.
1223         (pass_if_after_combine): Cleanup flags.
1224         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
1225         is there at -O == 1.
1226         
1227 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
1228
1229         * config/arm/arm.c (arm_get_frame_offsets): Set
1230         offsets->locals_base to avoid negative stack size.
1231         (thumb1_expand_prologue): Assert on negative stack size.
1232
1233 2007-04-19  Sebastian Pop  <sebpop@gmail.com>
1234
1235         PR tree-optimization/32367
1236         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
1237         of the chrec has no evolution in that loop.
1238         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
1239
1240 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
1241
1242         * config/xtensa/xtensa.c: Include "df.h".
1243         (xtensa_builtin_saveregs): Use adjust_address instead of change_address.
1244         (xtensa_va_start): Invoke make_tree with sizetype for
1245         expand_builtin_saveregs and then convert the result to a pointer.
1246         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
1247         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
1248         Subtract argument size from index value as integers and then use
1249         POINTER_PLUS_EXPR to add the result to the array address.
1250         
1251 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1252
1253         PR target/32335
1254         * config/m32c/m32c.c: Include dataflow header file.
1255         (m32c_emit_prologue): Adjust for prologue insn change.
1256         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
1257         once inside a PARALLEL. Assume frame size passed in operand 0
1258         includes space to save the fb register.
1259         (prologue_enter_24): Likewise.
1260         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
1261
1262 2007-06-19  David Daney  <ddaney@avtrex.com
1263
1264         PR target/32313
1265         * config/mips/mips.md (cprestore): Mark $gp as used.
1266
1267 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1268
1269         PR target/32369
1270         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
1271         (frv_ifcvt_modify_insn): Likewise.
1272
1273 2007-06-19  Richard Guenther  <rguenther@suse.de>
1274
1275         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
1276         only handle positive offsets that fit in a HOST_WIDE_INT.
1277
1278 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
1279
1280         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
1281         result of rsqrt insn for zero input argument to avoid NaN.
1282
1283 2007-06-19  Richard Guenther  <rguenther@suse.de>
1284
1285         PR middle-end/31950
1286         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
1287
1288 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
1289
1290         PR tree-optimization/32353
1291         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
1292
1293 2007-06-19  Nick Clifton  <nickc@redhat.com>
1294
1295         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
1296
1297 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
1298
1299         PR target/32389
1300         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
1301         * config/i386/i386.c (assign_386_stack_local): Assert that
1302         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
1303         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
1304         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
1305         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
1306
1307 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
1308
1309         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
1310
1311 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
1312
1313         PR rtl-optimization/32321
1314         * gcse.c (replace_store_insn): Update the note before
1315         calling emit_insn_after.
1316
1317 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
1318
1319         PR middle-end/32355
1320         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
1321         cse_main.
1322         * df-problems.c (df_note_bb_compute): Fix dumping info.
1323         
1324 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
1325
1326         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
1327         insn with emit_jump_insn.
1328
1329 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
1330
1331         PR tree-optimization/32383
1332         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
1333         * targhooks.h (default_builtin_reciprocal): Update prototype.
1334         * target.h (struct gcc_target): Update builtin_reciprocal.
1335         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
1336         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
1337         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
1338         when fndecl is in BUILT_IN_MD class.
1339         (execute_convert_to_rsqrt): Ditto.
1340
1341         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
1342         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
1343         Convert BUILT_IN_SQRTF code only  when md_fn is false.
1344
1345 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1346
1347         * bt-load.c (move_btr_def): Fix the order of arguments
1348         to validate_replace_rtx.
1349
1350 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
1351
1352         * config/m68k/m68k-devices.def: Add 54450..54455.
1353
1354 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
1355
1356         PR rtl-optimization/32366
1357         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
1358         FLOAT_EXTEND]: Prevent non-scalar modes from entering
1359         significand_size.
1360
1361 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
1362
1363         PR middle-end/32349
1364         * modulo-sched (generate_reg_moves): Added rescan parameter and if
1365         this is true, rescan insn being modified.
1366         (sms_schedule): Added rescan parameter.
1367         (rest_of_handle_sms): Moved freeing of dominance info to before
1368         getting out of cfg_layout.
1369         
1370 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
1371
1372         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
1373         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
1374         appropriate.
1375
1376         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
1377         FL_CF_EMAC from the entry for isac.
1378
1379         * config/m68k/predicates.md (const_call_operand): Adjust comment.
1380         (const_sibcall_operand): New.
1381         (sibcall_operand): Use it.
1382         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
1383         (m68k_isas): ISAC does not imply FPU or EMAC.
1384         (override_options): Add ISA_C logic for symbolic jump & call.
1385
1386 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1387
1388         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
1389         return mode from the builtin itself.
1390         (sparc_fold_builtin): Fix cast of zero constant.
1391
1392 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
1393
1394         * targhooks.c (default_builtin_reciprocal): New default target hook.
1395         * targhooks.h (default_builtin_reciprocal): Add prototype.
1396         * hooks.c (hook_tree_tree_bool_null): Remove hook.
1397         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
1398         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
1399         default_builtin_reciprocal.
1400
1401 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
1402
1403         PR middle-end/31723
1404         * hooks.c (hook_tree_tree_bool_null): New hook.
1405         * hooks.h (hook_tree_tree_bool_null): Add prototype.
1406         * tree-pass.h (pass_convert_to_rsqrt): Declare.
1407         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
1408         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
1409         and convert it to reciprocal a*rfunc(b).
1410         (execute_convert_to_rsqrt): New function.
1411         (gate_convert_to_rsqrt): New function.
1412         (pass_convert_to_rsqrt): New pass definition.
1413         * target.h (struct gcc_target): Add builtin_reciprocal.
1414         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
1415         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
1416         TARGET_BUILTIN_RECIPROCAL.
1417         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
1418
1419         * config/i386/i386.h (TARGET_RECIP): New define.
1420         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
1421         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1422         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1423         and not optimizing for size.
1424         (*rcpsf2_sse): New insn pattern.
1425         (*rsqrtsf2_sse): Ditto.
1426         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
1427         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1428         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1429         and not optimizing for size.
1430         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
1431         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1432         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1433         and not optimizing for size.
1434         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
1435         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1436         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1437         and not optimizing for size.
1438         (*sse_rsqrtv4sf2): Do not export.
1439         (sqrtv4sf2): Ditto.
1440         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
1441         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1442         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1443         and not optimizing for size.
1444         (sqrtv4sf2): Ditto.
1445         * config/i386/i386.opt (mrecip): New option.
1446         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
1447         (ix86_emit_swsqrtsf): Ditto.
1448         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
1449         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
1450         builtin definition.
1451         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
1452         ix86_expand_unop1_builtin.
1453         (ix86_emit_swdivsf): New function.
1454         (ix86_emit_swsqrtsf): Ditto.
1455         (ix86_builtin_reciprocal): New function.
1456         (TARGET_BUILTIN_RECIPROCAL): Use it.
1457         (ix86_vectorize_builtin_conversion): Rename from
1458         ix86_builtin_conversion.
1459         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
1460         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
1461         "i386 and x86_64 Options" section.
1462         (Intel 386 and AMD x86_64 Options): Document -mrecip.
1463
1464 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
1465             Zdenek Dvorak <dvorakz@suse.cz>
1466             Richard Guenther  <rguenther@suse.de>
1467             Kaz Kojima  <kkojima@gcc.gnu.org>
1468
1469         * tree-vrp.c (compare_values_warnv): Convert val2 to
1470         the type of val1.
1471         (extract_range_from_assert): Create
1472         POINTER_PLUS_EXPR for pointer types.
1473         (extract_range_from_binary_expr): Handle
1474         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
1475         for pointer types.
1476         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
1477         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
1478         POINTER_PLUS_EXPR as PLUS_EXPR.
1479         (number_of_iterations_lt_to_ne):
1480         For pointer types, use sizetype when
1481         creating MINUS_EXPR/PLUS_EXPRs.
1482         (assert_loop_rolls_lt): For pointer types, use sizetype when
1483         creating MINUS_EXPR/PLUS_EXPRs.
1484         (number_of_iterations_le): Likewise.
1485         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
1486         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
1487         like PLUS_EXPR and MINUS_EXPR.
1488         * tree-pretty-print.c (dump_generic_node): Handle
1489         POINTER_PLUS_EXPR.
1490         (op_prio): Likewise.
1491         (op_symbol_1): Likewise.
1492         * optabs.c (optab_for_tree_code): Likewise.
1493         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
1494         specially.
1495         * tree-tailcall.c (process_assignment): Mention
1496         POINTER_PLUS_EXPR in a TODO comment.
1497         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
1498         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
1499         not used with a pointer and an integer type.
1500         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
1501         increment using chrec_convert_rhs instead of chrec_convert.
1502         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
1503         PLUS_EXPR except for the right hand side's type will be
1504         sizetype.
1505         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
1506         (fold_used_pointer_cast): Kill.
1507         (pointer_offset_p): Kill.
1508         (fold_used_pointer): Kill.
1509         (pointer_used_p): Kill.
1510         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
1511         call fold_used_pointer.
1512         (instantiate_parameters_1): Convert the increment
1513         using chrec_convert_rhs instead of chrec_convert.
1514         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
1515         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
1516         instead of PLUS_EXPR.
1517         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
1518         PLUS_EXPR for pointers.
1519         (std_gimplify_va_arg_expr): Likewise.
1520         (fold_builtin_memory_op): Likewise.
1521         (fold_builtin_strstr): Likewise.
1522         (fold_builtin_strchr): Likewise.
1523         (fold_builtin_strrchr): Likewise.
1524         (fold_builtin_strpbrk): Likewise.
1525         (expand_builtin_memory_chk): Likewise.
1526         (fold_builtin_memory_chk): Likewise.
1527         (std_expand_builtin_va_start): Use
1528         sizetype for the call to make_tree and then convert
1529         to the pointer type.
1530         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
1531         instead of PLUS_EXPR for adding to a pointer.
1532         (std_gimplify_va_arg_expr): Use fold_build2 for
1533         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
1534         the operands to sizetype first and then cast the BIT_AND_EXPR
1535         back to the pointer type.
1536         * fold-const.c (build_range_check): Handle pointer types
1537         specially.
1538         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
1539         of PLUS_EXPR's. Make sure the offset is converted to
1540         sizetype.
1541         (try_move_mult_to_index): Strip the NOPs from the offset.
1542         Remove code argument and replace all uses with PLUS_EXPR.
1543         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
1544         specially. Don't use a pointer type for MINUS_EXPR.
1545         (fold_unary): Handle for (T1)(X op Y),
1546         only p+ as that is the only as that can be handled for
1547         binary operators now.
1548         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
1549         POINTER_PLUS_EXPR.
1550         <case PLUS_EXPR>: Add folding of PTR+INT into
1551         PTR p+ INT.
1552         Don't call try_move_mult_to_index.
1553         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
1554         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
1555         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
1556         Don't call try_move_mult_to_index.
1557         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
1558         (tree_expr_nonzero_p): Likewise.
1559         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
1560         of PLUS_EXPR for the complex expression folding.
1561         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
1562         first chrec is a pointer type, then the second should
1563         be sizetype and not the first's type.
1564         For POINTER_PLUS_EXPR, use a different right hand side type.
1565         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1566         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
1567         different right hand side type.
1568         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1569         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
1570         instead of PLUS_EXPR.
1571         When either operand is zero, convert the other operand.
1572         (chrec_apply): Use chrec_convert_rhs
1573         on the argument x instead of chrec_convert.
1574         (reset_evolution_in_loop): For pointer types, the new_evol
1575         should be sizetype.
1576         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
1577         different right hand side type.
1578         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1579         (chrec_convert_rhs): New function.
1580         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
1581         different right hand side type.
1582         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1583         * tree-chrec.h (chrec_convert_rhs): New prototype.
1584         (build_polynomial_chrec): For pointer types, the right hand
1585         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
1586         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
1587         Remove subtraction case as it is always addition now.
1588         Make sure the offset is converted to sizetype.
1589         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
1590         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
1591         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
1592         PLUS_EXPR in pointer type.
1593         Handle POINTER_PLUS_EXPR.
1594         (tree_to_aff_combination): Likewise.
1595         (force_expr_to_var_cost): Likewise.
1596         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
1597         instead of PLUS_EXPR for pointers.
1598         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
1599         instead of PLUS_EXPR of pointer types.
1600         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
1601         as PLUS_EXPR.
1602         (check_va_list_escapes): Likewise.
1603         (check_all_va_list_escapes): Likewise.
1604         * dwarf2out.c (loc_descriptor_from_tree_1):
1605         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
1606         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
1607         (string_constant): Likewise.
1608         * tree-ssa-address.c (tree_mem_ref_addr): When adding
1609         the offset to the base, use POINTER_PLUS_EXPR.
1610         (add_to_parts): Convert the index to sizetype.
1611         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
1612         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
1613         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
1614         Offset only holds something for PLUS_EXPR.
1615         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
1616         a PLUS_EXPR.
1617         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
1618         and not PLUS_EXPR.
1619         (analyze_accesses_for_modify_stmt): Likewise.
1620         Remove comment about the type being integral type as it is
1621         wrong now.
1622         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
1623         PLUS_EXPR.
1624         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
1625         and not PLUS_EXPR.
1626         Correct the type which the artimentic is done in (is now
1627         sizetype).
1628         Reindent one loop.
1629         * tree-data-ref.c (split_constant_offset): Handle
1630         POINTER_PLUS_EXPR
1631         * tree-affine.c (tree_to_aff_combination): Likewise.
1632         * c-typeck.c (build_unary_op): For pointers create the increment
1633         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
1634         for pointers.
1635         * gimplify.c (gimplify_self_mod_expr): Create a
1636         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1637         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
1638         * tree.def (POINTER_PLUS_EXPR): New tree code.
1639         * tree-predcom.c (ref_at_iteration): If we have a pointer
1640         type do the multiplication in sizetype.
1641         * tree-mudflap.c (mf_xform_derefs_1): Create a
1642         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1643         * tree-ssa-forwprop.c 
1644         (forward_propagate_addr_into_variable_array_index):
1645         Don't expect there to be a cast for the index as that
1646         does not exist anymore.
1647         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
1648         instead of PLUS_EXPR.
1649         Don't check for the first operand of the POINTER_PLUS_EXPR
1650         was the index as it cannot be.
1651         Call forward_propagate_addr_into_variable_array_index with
1652         the SSA_NAME instead of the statement.
1653         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
1654         (compare_constant): Likewise.
1655         (copy_constant): Likewise.
1656         (compute_reloc_for_constant): Likewise.
1657         (output_addressed_constants): Likewise.
1658         (initializer_constant_valid_p): Likewise.
1659         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
1660         Convert the MIN/MAX of the inner type to the outer
1661         type before comparing them.
1662         * tree-ssa-loop-prefetch.c (idx_analyze_ref):  Handle
1663         POINTER_PLUS_EXPR instead of PLUS_EXPR.
1664         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
1665         of PLUS_EXPR for pointers.
1666         * tree-inline.c (estimate_num_insns_1): Handle
1667         POINTER_PLUS_EXPR.
1668         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
1669         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1670         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
1671         instead of PLUS_EXPR for the pointer increment statement.
1672         (vect_update_ivs_after_vectorizer): For pointer types, create
1673         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
1674         MULT_EXPR in sizetype.
1675         (vect_gen_niters_for_prolog_loop): Add a cast when creating
1676         byte_misalign.
1677         * tree-object-size.c (plus_expr_object_size): Handle
1678         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
1679         code which is trying to figure out which side is a pointer and 
1680         is the index.
1681         (check_for_plus_in_loops_1): Likewise.
1682         (check_for_plus_in_loops): Likewise.
1683         * c-common.c (pointer_int_sum): Create a
1684         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1685         * tree-ssa-structalias.c (handle_ptr_arith): Handle
1686         only POINTER_PLUS_EXPR.  Removing all the extra
1687         code which is trying to figure out which side is a pointer and 
1688         is the index.
1689         * tree-cfg.c (verify_expr): Add extra checking for pointers and
1690         PLUS_EXPR and MINUS_EXPR.
1691         Also add checking to make sure the operands of POINTER_PLUS_EXPR
1692         are correct.
1693         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
1694         with make_tree, instead of a pointer type.
1695         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
1696         for pointers instead of PLUS_EXPR.
1697         (s390_gimplify_va_arg): Likewise.
1698         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
1699         instead of PLUS_EXPR when doing addition on pointer
1700         types.  Use sizetype for the second operand.
1701         (spu_gimplify_va_arg_expr): Likewise.
1702         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
1703         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
1704         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
1705         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
1706         for the pointer addition and also use size_int/sizetype
1707         for the offset.
1708         (ix86_gimplify_va_arg): Likewise.
1709         Perform BIT_AND_EXPR on sizetype arguments.
1710         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
1711         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
1712         for the pointer additions and also use size_int for the offsets.
1713         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
1714         additions and also use size_int for the offsets.  Perform
1715         BIT_AND_EXPR on sizetype arguments.
1716         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
1717         POINTER_PLUS_EXPR for pointers and create the
1718         BIT_AND_EXPR in sizetype.
1719         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
1720         instead of PLUS_EXPR for pointer addition.
1721         (rs6000_va_start): Likewise.
1722         Also use sizetype for the offset.
1723         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
1724         as PLUS_EXPR/MINUS_EXPR.
1725         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
1726         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
1727         Don't use BIT_AND_EXPR on a pointer type, convert the
1728         expression to sizetype first.
1729         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
1730         for pointers.
1731         (mips_gimplify_va_arg_expr): Likewise.
1732         Don't create BIT_AND_EXPR in a pointer type.
1733
1734 2007-06-15  Eric Christopher  <echristo@apple.com>
1735
1736         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
1737         (x86_64-*-darwin*): Ditto.
1738         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
1739         for above.
1740
1741 2007-06-15  Matthew Wilcox <matthew@wil.cx>
1742
1743         * doc/extend.texi: Document behavior of __attribute__((aligned))
1744         on typedefs.
1745
1746 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
1747
1748         * rtlanal.c (note_stores): Improve documentation.
1749
1750 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1751
1752         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
1753         LOCAL_LABEL_PREFIX): Delete.
1754         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
1755         (bfin_internal_label): Delete.
1756
1757 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
1758
1759         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
1760         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
1761         otherwise define to LIBGCC2_TF_CEXT.
1762         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
1763         (LIBGCC_TF_CEXT): Ditto.
1764         (TF_SIZE): Ditto.
1765
1766 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
1767
1768         PR rtl-optimization/32339
1769         * df-scan.c (df_uses_record): Don't modify flags but just add to
1770         it for df_ref_record.
1771
1772 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1773
1774         * tree-mudflap.c: Fix whitespace issues.
1775
1776 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
1777
1778         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
1779
1780 2007-06-14  Eric Christopher  <echristo@apple.com>
1781
1782         * config/i386/sse.md (movdi_to_sse): Rewrite body.
1783         (movv4sf): Use gcc_unreachable instead of abort.
1784
1785 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
1786
1787         PR target/32268
1788         * config/i386/sfp-machine.h (CMPtype): New define.
1789         (mach stubs): Use CMPtype instead of int as a return type.
1790
1791 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
1792
1793         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
1794         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
1795         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
1796         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
1797         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
1798         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
1799         config/soft-fp/soft-fp.h: Update from glibc CVS.
1800
1801 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
1802
1803         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
1804
1805 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1806
1807         PR target/32341
1808         * config/v850/v850.c: Include dataflow header file.
1809         (substitute_ep_register): Fix typo.
1810
1811 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
1812
1813         * configure.ac: Fix earlier checkin.
1814         * configure: Regenerated.
1815
1816 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
1817
1818         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
1819         * aclocal.m4: Regenerate.
1820         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
1821         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
1822         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
1823         * configure: Regenerate.
1824         * Makefile.in (LOOSE_WARN): Subst loose_warn.
1825
1826         * Makefile.in (quickstrap): Build libgcc too.
1827
1828 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
1829
1830         * configure.ac: Add --enable-checking=df.  Explicitly mention that
1831         the variables are initialized as for "release".
1832         * df-core.c: Use it.
1833         * configure: Regenerate.
1834         * config.in: Regenerate.
1835
1836 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
1837
1838         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
1839         validate_replace_rtx instead of replace_rtx.
1840         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
1841
1842 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
1843
1844         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
1845         (DWARF2_UNWIND_INFO): Override default if configured with
1846         SJLJ EH disabled.
1847         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
1848         (ENDFILE_SPEC): Add crtend.o.
1849         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
1850         (ENDFILE_SPEC): Add crtend.o.
1851         (TARGET_USE_JCR_SECTION): Define.
1852         (MD_UNWIND_SUPPORT): Define for 32-bit target.
1853
1854         * config/i386/cygming-crtbegin.c: New file.
1855         * config/i386/cygming-crtend.c: New file.
1856
1857 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
1858
1859         * config/i386/w32-unwind.h: New file.
1860
1861 2007-06-13  Eric Christopher  <echristo@apple.com>
1862
1863         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
1864         the user set a value below STACK_BOUNDARY.
1865
1866 2007-06-13  Thiemo Seufer  <ths@networkno.de>
1867
1868         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
1869         imply -lpthread for -pthread.
1870
1871 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
1872
1873         * basic-block.h: Remove the prototype for
1874         free_basic_block_vars.
1875         * cfglayout.h: Remove the prototype for
1876         insn_locators_initialize.
1877         * tree.h: Remove the prototype for emit_line_note.
1878
1879         * tree-ssa-pre.c (mergephitemp): Remove.
1880         (init_pre): Don't use mergephitemp.
1881
1882 2007-06-13  Eric Christopher  <echristo@apple.com>
1883
1884         * config/i386/i386.c (override_options): If we've specified
1885         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
1886
1887 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
1888
1889         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
1890         is defined.
1891
1892 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1893
1894         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
1895         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
1896         (eh_store_handler): New pattern.
1897         (eh_return): Emit it instead of a plain move.
1898
1899 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
1900
1901         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
1902         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
1903         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
1904         def_builtin_const.
1905
1906 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1907
1908         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
1909         (find_next_insn_start, find_load): New functions.
1910         (bfin_reorg): Use them to deal with the fact that parallel insns are
1911         no longer represented as a SEQUENCE.
1912
1913 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1914
1915         * config/sparc/sparc.c (sparc_override_options): Initialize
1916         fpu mask correctly.
1917
1918 2007-06-13  Dave Korn  <dave.korn@artimi.com>
1919
1920         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
1921         df_get_live_out.
1922
1923 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
1924
1925         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
1926         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
1927         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
1928         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
1929         tree-vect-transform.c: Fix comment typos.  Follow spelling
1930         conventions.
1931
1932 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
1933
1934        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
1935        to the exit block use set.
1936        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
1937        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
1938        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
1939
1940 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
1941
1942         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
1943         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
1944         to indicate an error.
1945         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters): New functions
1946         (dbg_cnt_process_opt): Print an error on a bad argument.
1947         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
1948         * common.opt (-fdbg-cnt-list): New.
1949         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
1950
1951 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1952
1953         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
1954         flag on ref-all pointers.
1955
1956 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1957
1958         PR middle-end/31579
1959         * expr.c (expand_expr_addr_expr_1): Call expand_expr
1960         for the offset with the modifier as EXPAND_INITIALIZER
1961         if the modifier is EXPAND_INITIALIZER.
1962         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
1963         a register if we had an overflow.
1964
1965 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1966
1967         * real.c (real_isfinite): New.
1968         (real_sqrt): Use it.
1969         * real.h (real_isfinite): New.
1970         * builtins.c: Use it.
1971
1972 2007-06-12  Ian Lance Taylor  <iant@google.com>
1973             Daniel Berlin  <dberlin@dberlin.org>
1974
1975         PR libstdc++/29286
1976         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
1977         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
1978         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
1979         (DECL_NO_TBAA_P): Define.
1980         (struct tree_decl_common): Add no_tbaa_flag field.
1981         * tree-ssa-structalias.c (struct variable_info): Add
1982         no_tbaa_pruning field.
1983         (new_var_info): Initialize no_tbaa_pruning field.
1984         (unify_nodes): Copy no_tbaa_pruning field.
1985         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
1986         (dump_solution_for_var): Print no_tbaa_pruning flag.
1987         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
1988         callers.
1989         (compute_tbaa_pruning): New static function.
1990         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
1991         Call compute_tbaa_pruning.
1992         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
1993         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
1994         * gimple-low.c (lower_stmt): Likewise.
1995         * tree-gimple.c (is_gimple_stmt): Likewise.
1996         * tree-ssa-operands.c (get_expr_operands): Likewise.
1997         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1998         * tree-inline.c (estimate_num_insns_1): Likewise.
1999         (copy_result_decl_to_var): Likewise.
2000         * expr.c (expand_expr_real_1): Likewise.
2001         * tree-pretty-print.c (dump_generic_node): Likewise.
2002         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
2003         * omp-low.c (omp_copy_decl_2): Likewise.
2004         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
2005         * doc/c-tree.texi (Expression trees): Document
2006         CHANGE_DYNAMIC_TYPE_EXPR.
2007
2008 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2009
2010         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
2011         with !HONOR_NANS and !HONOR_INFINITIES.
2012         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2013
2014 2007-06-12  Tristan Gingold  <gingold@adacore.com>
2015
2016         * gcov.c: Comments updated.
2017         (source_info): Add file_time field.
2018         (source_index): New variable.
2019         (mutiple_files): New variable.
2020         (generate_results): New function extracted from process_file.
2021         (process_file): Save and restore chain of functions, generate
2022         results and free structures only if not merging results.
2023         (release_structures): File names are now freed in create_file_names
2024         (create_file_names): Free previous file names.
2025         (find_source): File date is now read here and modifications in
2026         source files is checked here.
2027         (read_graph_file): Only reverse order of functions for the current
2028         object file.
2029         (make_gcov_file_name): Do not generate long names if input_name is
2030         NULL.
2031         (output_lines): If merging results do not display graph, data and
2032         runs informations.
2033         Checking source file modification is done in find_source.
2034
2035         * doc/gcov.texi: Append an s to sourcefile.
2036
2037 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2038
2039         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
2040         (forced_nop): New pattern.
2041         * config/bfin/bfin.c: Include "df.h".
2042         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
2043         (bfin_discover_loop): Use df_get_live_in instead of
2044         global_live_at_start.
2045         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
2046         df_analyze when done.
2047         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
2048         the insns.  Use QImode for the final insn in a bundle.  Call
2049         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
2050         gen_nop.
2051         (reorder_var_tracking_notes): New function.
2052         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
2053         update_life_info.  Call df_analyze after scheduling and bundle
2054         generation.  Call reorder_var_tracking_notes if generating these notes.
2055         Call df_finish_pass at the end.
2056
2057 2007-06-12  Dirk Mueller  <dmueller@suse.de>
2058
2059         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
2060         a comparison, not an assignment.
2061
2062 2007-06-12  Olivier Hainque  <hainque@adacore.com>
2063
2064         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
2065         Request walking the subtrees only, leaving the current is_lhs/val_only
2066         untouched.
2067         (convert_non_local_reference): Likewise.
2068
2069 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
2070
2071         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
2072
2073 2007-06-12  Richard Guenther  <rguenther@suse.de>
2074
2075         PR tree-optimization/15353
2076         PR tree-optimization/31657
2077         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
2078         * timevar.def: Add TV_TREE_IFCOMBINE.
2079         * tree-pass.h (pass_tree_ifcombine): Declare.
2080         * tree-ssa-ifcombine.c: New file.
2081         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
2082         * tree-flow.h (blocks_in_phiopt_order): Declare.
2083         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
2084         (tree-ssa-ifcombine.o): New dependencies.
2085
2086 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
2087
2088         PR rtl-optimization/32293
2089         * combine.c (simplify_if_then_else): Truncate return from
2090         nonzero_bits() to correct mode.
2091
2092 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
2093
2094         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
2095         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
2096
2097 2007-06-11  Diego Novillo  <dnovillo@google.com>
2098
2099         * Makefile.in (reload1.o-warn): Remove.
2100
2101 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
2102
2103         * combine.c (subst): Use reg_overlap_mentioned_p
2104         instead of comparing register numbers directly.
2105
2106 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
2107
2108         * reload1.c (mark_home_live_1): Use the mode parameter.
2109
2110 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
2111
2112         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
2113         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
2114         word "deferred".
2115         * df-core.c: Ditto.
2116
2117 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
2118
2119         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
2120
2121 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
2122
2123         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
2124         from integer registers.
2125         (FP mode splitters): Handle TFmode.
2126
2127 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2128
2129         * tree-ssa-structalias.c (find_what_p_points_to): Return false
2130         for ref-all pointers that point-to anything.
2131
2132 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
2133
2134         * config/arm/arm.c (arm_output_dwarf_dtprel,
2135         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
2136
2137 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2138
2139         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
2140         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
2141         to memory moves.
2142
2143 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
2144
2145         * gcc/tree.c (signed_or_unsigned_type_for): New.
2146         (unsigned_type_for): Use signed_or_unsigned_type_for.
2147         (signed_type_for): Use signed_or_unsigned_type_for.
2148         * gcc/tree.h (signed_or_unsigned_type_for): New.
2149         (get_signed_or_unsigned_type): Remove.
2150         * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
2151         lang_hooks.types.signed_type
2152         (size_diffop): Likewise.
2153         (all_ones_mask_p): Likewise.
2154         (build_range_check): Likewise.
2155         (fold_cond_expr_with_comparison): Likewise.
2156         (fold_cond_expr_with_comparison): Likewise.
2157         (unextend): Likewise.
2158         (extract_muldiv_1): Likewise.
2159         (fold_single_bit_test_into_sign_test): Likewise.
2160         (fold_binary): Likewise.
2161         (fold_ternary): Likewise.
2162         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
2163         instead of get_signed_or_unsigned_type.
2164         * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
2165         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2166         * gcc/expr.c (signed_or_unsigned_type_for): Use
2167         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
2168         * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
2169         (lhd_signed_or_unsigned_type): Remove.
2170         * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
2171         signed_or_unsigned_type.
2172         (lhd_signed_or_unsigned_type): Remove.
2173         * gcc/expmed.c (make_tree): Use signed_type_for instead of
2174         lang_hooks.types.signed_type.
2175         * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
2176         c_common_signed_type instead of lang_hooks.types.signed_type.
2177         (c_common_unsigned_type): New.
2178         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
2179         (shorten_compare): Use c_common_unsigned_type instead of
2180         c_common_signed_or_unsigned_type.
2181         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
2182         unsigned_type_for.
2183         * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
2184         lang_hooks.types.signed_type.
2185         * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2186         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
2187         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
2188         * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
2189         instead of unsigned_type_for.
2190         * gcc/c-decl.c (groakdeclarator): Likewise.
2191         * gcc/c-typeck.c (convert_for_assignment): Likewise.
2192         * gcc/c-common.h (c_common_unsigned_type): New.
2193
2194 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
2195
2196         PR target/32280
2197         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
2198         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
2199
2200 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
2201
2202         PR middle-end/32279
2203         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
2204         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
2205
2206 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
2207             Sebastian Pop  <sebpop@gmail.com>
2208
2209         * lambda-code.c (remove_iv): New.
2210         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
2211
2212 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
2213
2214         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
2215         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
2216         * tree-ssa-loop-prefetch.c: Include optabs.h.
2217         (FENCE_FOLLOWING_MOVNT): New macro.
2218         (struct mem_ref): Add independent_p and storent_p fields.
2219         (record_ref): Initalize the new fields.
2220         (gather_memory_references_ref): Return true if the reference
2221         could be analysed.
2222         (gather_memory_references): Check whether all memory accesses
2223         in loop were recorded.
2224         (should_issue_prefetch_p): Return false for nontemporal stores.
2225         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
2226         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
2227         (determine_loop_nest_reuse): Detect independent memory references.
2228         (loop_prefetch_arrays): Call mark_nontemporal_stores.
2229         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
2230         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
2231         * config/i386/i386.h (x86_mfence): Declare.
2232         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
2233         * config/i386/i386.c (x86_mfence): New variable.
2234         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
2235
2236         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
2237         * optabs.c (init_optabs): Initialize storent_optab.
2238         * optabs.h (enum optab_index): Add OTI_storent.
2239         (storent_optab): Declare.
2240         * genopinit.c (optabs): Add initialization for storent_optab.
2241         * tree.h (MOVE_NONTEMPORAL): New macro.
2242         * expr.c (expand_assignment, store_expr, store_constructor_field,
2243         store_constructor, store_field, expand_expr_real_1): Propagate
2244         nontemporality of the expanded store.
2245         (emit_storent_insn): New function.
2246         * expr.h (expand_assignment, store_expr): Declaration changed.
2247         * function.c (assign_parm_setup_reg): Pass false as nontemporality
2248         to expand_assignment.
2249         * stmt.c (expand_asm_expr): Ditto.
2250         * calls.c (initialize_argument_information): Pass false as
2251         nontemporality to store_expr.
2252         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
2253         storentsi): New.
2254
2255 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
2256
2257         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
2258         parameter, use it.
2259         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
2260
2261 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
2262
2263         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
2264         and allow DECL_P here.
2265
2266 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
2267
2268         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
2269         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
2270         track of the size of the expression.
2271         * cfghooks.c (merge_blocks): Remove block from loops structure only
2272         after call of the merge_blocks hook.
2273
2274 2007-06-09  Tom Tromey  <tromey@redhat.com>
2275
2276         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
2277         (deprecated_state): Removed.
2278         (start_decl): Update.
2279         (enum deprecated_states): Moved earlier.
2280         (groktypename): Update.
2281         (push_parm_decl): Likewise.
2282         (grokfield): Likewise.
2283         (start_function): Likewise.
2284
2285 2007-06-09  Ian Lance Taylor  <iant@google.com>
2286
2287         PR tree-optimization/32169
2288         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
2289         CONVERT_EXPR, check whether min and max both converted to an
2290         overflow infinity representation.
2291
2292 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
2293
2294         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
2295         not inserted on the edge.
2296
2297 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
2298
2299         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
2300         instructions if they are supported.
2301         (__divsi3, __umodsi3, __modsi3): Likewise.
2302         (__ashldi3, __ashrdi3, __lshrdi3): New.
2303         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
2304
2305 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
2306             Tony Linthicum <tony.linthicum@amd.com>
2307
2308         * doc/extend.texi: Add fvect-cost-model flag.
2309         * common.opt (fvect-cost-model): New flag.
2310         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
2311         cost fields in stmt_vec_info struct for STMT.
2312         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
2313         fields in stmt_vec_info struct and access functions for the same.
2314         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
2315         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
2316         load, store and vector to scalar operation.
2317         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
2318         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
2319         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
2320         (TARG_VEC_STORE_COST): Define cost of vector store.
2321         (vect_estimate_min_profitable_iters): Define new function.
2322         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
2323         check to evaluate if loop iterations are less than minimum profitable
2324         iterations determined by cost model or minimum vect loop bound defined
2325         by user, whichever is more conservative.
2326         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
2327         run-time check to evaluate if loop iterations are less than minimum
2328         profitable iterations determined by cost model or minimum vect loop
2329         bound defined by user, whichever is more conservative.
2330         (vect_estimate_min_profitable_iterations): New function to estimate
2331         mimimimum iterartions required for vector version of loop to be
2332         profitable over scalar version.
2333         (vect_model_reduction_cost): New function.
2334         (vect_model_induction_cost): New function.
2335         (vect_model_simple_cost): New function.
2336         (vect_cost_strided_group_size): New function.
2337         (vect_model_store_cost): New function.
2338         (vect_model_load_cost): New function.
2339         (vectorizable_reduction): Call vect_model_reduction_cost during
2340         analysis phase.
2341         (vectorizable_induction): Call vect_model_induction_cost during
2342         analysis phase.
2343         (vectorizable_load): Call vect_model_load_cost during analysis phase.
2344         (vectorizable_store): Call vect_model_store_cost during analysis phase.
2345         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
2346         vectorizable_promotion, vectorizable_demotion): Call
2347         vect_model_simple_cost during analysis phase.
2348
2349 2007-06-08  Simon Baldwin  <simonb@google.com>
2350
2351         * reg-stack.c (get_true_reg): Readability change.  Moved default case
2352         label into direct switch statement scope.
2353
2354 2007-06-08  Simon Baldwin  <simonb@google.com>
2355
2356         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
2357         in gcc_assert() with '==' comparison.
2358
2359 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2360
2361         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
2362         TARGET_ABM handling of x86_popcnt variable.
2363
2364 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2365
2366         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
2367         __builtin_copysignq and __builtin_infq built-in functions.
2368
2369 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2370
2371         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
2372         SSE4.2 section.  Correct built-in function names in SSE4A section.
2373
2374 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2375
2376         PR tree-optimization/32243
2377         * tree-vect-transform.c (vectorizable_type_promotion): Move check
2378         for ncopies after ratio check between nunits_out and nunits_in.
2379         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
2380
2381 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
2382
2383         PR tree-optimization/32224
2384         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
2385         vectorization upon a non GIMPLE_MODIFY_STMT.
2386
2387 2007-06-08  Christian Bruel  <christian.bruel@st.com>
2388
2389         PR target/29953
2390         * config/sh/sh.md (doloop_end): New pattern and splitter.
2391         * loop-iv.c (simple_rhs_p): Check for hardware registers.
2392
2393 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
2394
2395         PR middle-end/32209
2396         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
2397         functions.
2398         (verify_dominators): Do not change dominance tree.
2399
2400 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2401
2402         * config/sh/constraints.md: New file.
2403         * config/sh/sh.c: Include tm-constrs.h.
2404         (reg_class_from_letter): Remove.
2405         (prepare_cbranch_operands): Use satisfies_constraint_*
2406         function instead of macro.
2407         (andcosts, broken_move, sh_secondary_reload): Likewise.
2408         * config/sh/predicates.md (trapping_target_operand): Likewise.
2409         (and_operand, arith_operand, arith_reg_or_0_operand,
2410         cmp_operand, logical_operand, target_operand,
2411         ua_address_operand, ua_offset, xor_operand): Likewise.
2412         * config/sh/sh.md: Include constraints.md.
2413         (*movsicc_t_false): Use satisfies_constraint_* function
2414         instead of macro.
2415         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
2416         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
2417         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
2418         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
2419         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
2420         (REG_CLASS_FROM_CONSTRAINT): Remove.
2421         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
2422         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
2423         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
2424         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
2425         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2426         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
2427         function instead of macro.
2428         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2429         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
2430         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
2431         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
2432         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
2433         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
2434         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
2435         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
2436         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
2437         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
2438         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
2439         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
2440         EXTRA_CONSTRAINT_STR): Likewise.
2441         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
2442
2443 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
2444
2445         * config/i386/darwin.h (STACK_BOUNDARY): Define.
2446
2447 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
2448
2449         PR c++/30759
2450         * c-common.h (flag_cpp0x): Replaced by...
2451         (cxx_dialect): ... this new variable specifying the C++ dialect that
2452         is used.
2453         * c-common.c (flag_cpp0x): Removed.
2454         (cxx_dialect): Defined.
2455         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
2456         cxx_dialect.
2457         * c-opts.c (c_common_post_options): Likewise.
2458         (set_std_cxx98): Set cxx_dialect to cxx98.
2459         (set_std_cxx0x): Set cxx_dialect to cxx0x.
2460
2461 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
2462             Hui-May Chang <hm.chang@apple.com>
2463
2464         * doc/invoke.texi (Darwin Options): Update documentation for
2465         -mmacosx-version-min.
2466         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
2467         * config/darwin-driver.c: New file.
2468         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
2469         * config/t-darwin (darwin-driver.o): New rule.
2470
2471         * config/darwin-c.c (version_as_macro): Ignore low digit.
2472
2473 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
2474
2475         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
2476         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
2477         (CSGNMODE): New mode macro.
2478         (CSGNVMODE): New mode attribute.
2479         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
2480         expander using CSGNMODE mode macro.  Handle TFmode.
2481         (copysign<mode>3_const): Rename from copysignsf3_const and
2482         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
2483         Handle TFmode.
2484         (copysign<mode>3_var): Rename from copysignsf3_var and
2485         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
2486         Handle TFmode.
2487         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
2488         mode macro.  Handle TFmode.
2489         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
2490         (iortf3, *iortf3): Ditto.
2491         (xortf3, *xortf3): Ditto.
2492         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
2493         TFmode and TImode masks.
2494         (ix86_expand_copysign): Expand TFmode copysign insn.
2495         (IX86_BUILTIN_INFQ): New.
2496         (IX86_BUILTIN_FABSQ): Ditto.
2497         (IX86_BUILTIN_COPYSIGNQ): Ditto.
2498         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
2499         [__builtin_fabsq]: Ditto.
2500         [__builtin_copysignq]: Ditto.
2501         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
2502         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
2503         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
2504         ix86_expand_binop_builtin().
2505
2506 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
2507
2508         * config/xtensa/lib1funcs.asm: Clean up whitespace.
2509
2510 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
2511
2512         PR target/31850
2513         * rtl.h (push_to_sequence2): New.
2514         * emit-rtl.c (push_to_sequence2): New.
2515         * function.c (assign_parm_data_all): Add new fields.
2516         (assign_parm_setup_block): Call push_to_sequence2 instead of
2517         push_to_sequence.
2518         (assign_parm_setup_reg): Ditto.
2519         (assign_parm_setup_stack): Ditto.
2520         (assign_parms_unsplit_complex): Ditto.
2521         (assign_parms): Change field name.
2522
2523 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
2524
2525         PR tree-optimization/32220
2526         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
2527         phi node is reached before defining statement.
2528
2529 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2530
2531         PR tree-opt/32231
2532         * tree-vect-transform.c (vectorizable_call): Call update_stmt
2533         after changing the right hand side of the assignment.
2534
2535 2007-06-06  Eric Christopher  <echristo@apple.com>
2536
2537         * config.gcc (i?86-*-darwin*): Remove arch parameter.
2538         (x86_64-*-darwin*): Ditto.
2539         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
2540         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
2541
2542 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
2543
2544         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
2545         coding conventions.
2546         (add_key): Likewise.
2547         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
2548         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
2549         variable names.
2550         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory macros.
2551         (add_cost_one_coalesce): Likewise.
2552         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
2553         variable names. Rename orig to orig_name for consistency.
2554         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the coding
2555         conventions.
2556         (cprop_into_successor_phis): Avoid using C++ keywords as variable names.
2557         (record_equivalences_from_stmt): Likewise.
2558         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
2559         the coding conventions.
2560         (memory_ssa_name_same): Likewise.
2561         (dse_optimize_stmt): Likewise.
2562         (dse_record_phis): Likewise.
2563         (dse_finalize_block): Likewise.
2564         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
2565         keywords as variable names.
2566         (may_move_till): Cast according to the coding conventions.
2567         (force_move_till_expr): Avoid using C++ keywords as variable names.
2568         (force_move_till): Cast according to the coding conventions.
2569         (memref_hash): Likewise.
2570         (memref_eq): Likewise.
2571         (gather_mem_refs_stmt): Likewise.
2572         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid using C++
2573         keywords as variable names.
2574         (idx_find_step): Cast according to the coding conventions.
2575         (idx_record_use): Likewise.
2576         (find_depends): Likewise.
2577         (prepare_decl_rtl): Likewise.
2578         (mbc_entry_hash): Likewise.
2579         (mbc_entry_eq): Likewise.
2580         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
2581         (simplify_replace_tree): Avoid using C++ keywords as variable names.
2582         (idx_infer_loop_bounds): Cast according to the coding conventions.
2583         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2584         * tree-ssa-math-opts.c (occ_new ): Likwise.
2585         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
2586         macros.
2587         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as variable
2588         names.
2589         (add_use_op): Likewise.
2590         (add_vop): Likewise.
2591         (add_vuse_op): Likewise.
2592         (add_vdef_op): Likewise.
2593         (get_expr_operands): Likewise.
2594         (push_stmt_changes): Use type safe memory macros.
2595         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
2596         keywords as variable names.
2597         (conditional_replacement): Likewise.
2598         (minmax_replacement): Likewise.
2599         (abs_replacement): Likewise.
2600         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
2601         coding conventions.
2602         (insert_fake_stores): Avoid using C++ keywords as variable names.
2603         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
2604         conventions.
2605         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
2606         (heapvar_insert): Use type safe memory macros.
2607         (new_var_info): Cast according to the coding conventions.
2608         (new_constraint): Likewise.
2609         (remove_preds_and_fake_succs): Use type safe memory macros.
2610         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
2611         conventions.
2612         (thread_single_edge): Likewise.
2613         (thread_through_loop_header): Likewise.
2614
2615 2007-06-06  Eric Christopher  <echristo@apple.com>
2616
2617         * config/i386/i386.c (override_options): Move handling
2618         of TARGET_SUBTARGET* earlier.
2619
2620 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
2621
2622         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
2623         use %n on printf.
2624
2625 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
2626
2627         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
2628         emited outside of basic block.
2629         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
2630         the created blocks.
2631         * rtl.h (delete_insn_chain): Declaration changed.
2632         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
2633         non-removed insns.
2634         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
2635         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
2636         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
2637         to delete_insn_chain.
2638         (rtl_verify_flow_info_1): Verify that the insns in header and footer
2639         do not have bb field set.
2640         (rtl_verify_flow_info): Verify that insns between basic blocks do not
2641         have bb field set.
2642         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
2643         * cfgcleanup.c (try_optimize_cfg): Ditto.
2644
2645 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
2646
2647         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
2648         (lambda_body_vector_new): Use type safe memory macros.
2649         (lambda_linear_expression_new): Likewise.
2650         (lambda_loopnest_new): Likewise.
2651         (lambda_lattice_new): Likewise.
2652         (replace_uses_equiv_to_x_with_y): Cast according to the coding
2653         conventions. Use type safe memory macros.
2654         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
2655         (lambda_body_vector_s): Likewise.
2656         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
2657         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
2658
2659 2007-06-06  Richard Guenther  <rguenther@suse.de>
2660
2661         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
2662         if we need to schedule cfg_cleanup.
2663         (tree_ssa_forward_propagate_single_use_vars): Do so.
2664
2665 2007-06-06  Ian Lance Taylor  <iant@google.com>
2666
2667         * fold-const.c (merge_ranges): If range_successor or
2668         range_predecessor fail, just return 0.
2669
2670 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
2671
2672         PR tree-optimization/32216
2673         * tree-vectorizer.c (supportable_widening_operation): Determine
2674         signedness of FIX_TRUNC_EXPR from output operand.
2675         (supportable_narrowing_operation): Ditto.
2676         * tree-vect-generic.c (expand_vector_operations_1): Determine
2677         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
2678         from input operand.
2679
2680 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
2681
2682         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
2683         (struct pta): ...from here. Change flags to unsigned to avoid
2684         excessive casting (as it is used as a bit mask).
2685         (override_options): Add casts according to the coding convenventions.
2686         (x86_64_elf_unique_section): Likewise.
2687         (examine_argument): Avoid using C++ keywords as variable names.
2688         (construct_container): Likewise.
2689         (legitimize_pic_address): Likewise.
2690         (get_dllimport_decl): Cast according to the coding conventions. Use
2691         type safe memory macros.
2692         (legitimize_address): Cast according to the coding conventions.
2693         (emit_i387_cw_initialization): Corrected the type of slot to enum
2694         ix86_stack_slot.
2695         (ix86_init_machine_status): Use type safe memory macros.
2696         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
2697         (bdesc_pcmpistr): Likewise.
2698         (bdesc_crc32): Likewise.
2699         (bdesc_sse_3arg): Likewise.
2700         (bdesc_2arg): Likewise.
2701         (bdesc_1arg): Likewise.
2702         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
2703         (ix86_expand_sse_pcmpistr): Likewise.
2704         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
2705         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
2706         int to match the langhook definition.
2707         (ix86_builtin_conversion): Change the type of code to unsigned init to
2708         match the langhook definition.
2709         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
2710         names.
2711         (ix86_preferred_output_reload_class): Likewise.
2712         (ix86_cannot_change_mode_class): Likewise.
2713         (ix86_memory_move_cost): Likewise.
2714         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
2715         avoid excessive casting later on.
2716         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
2717
2718 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
2719
2720         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
2721         as flags setting insn.
2722         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
2723
2724 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
2725
2726         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
2727         (UNSPEC_ROUND): New.
2728         ("sse4_1_round<mode>2"): New insn pattern.
2729         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
2730         SSE4.1 targets.
2731         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
2732         expander using SSEMODEF mode macro.  Expand using
2733         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2734         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
2735         expander using SSEMODEF mode macro.  Expand using
2736         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2737         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
2738         expander using SSEMODEF mode macro.  Expand using
2739         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2740         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
2741         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
2742         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
2743         UNSPEC_ROUNDS.
2744
2745 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
2746             Sebastian Pop  <sebpop@gmail.com>
2747
2748         * lambda.h (build_linear_expr): New.
2749         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
2750         Use build_linear_expr, call fold and force_gimple_operand.
2751         (lambda_loopnest_to_gcc_loopnest): Check that there is
2752         something to insert.
2753         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
2754
2755 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
2756
2757         PR preprocessor/23479
2758         * doc/extend.texi: Document the 0b-prefixed binary integer
2759         constant extension.
2760
2761 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
2762
2763         PR tree-optimization/32215
2764         * tree-vectorizer.c (supportable_widening_operation): Return false
2765         for unsupported FIX_TRUNC_EXPR tree code.
2766         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
2767
2768 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
2769
2770         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
2771         register on SPE targets.  Change documentation to reflect
2772         reality.
2773         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2774         Change FIXED_SCRATCH to 14 and document why we're keeping r14
2775         out of the register allocation pool.
2776         (rs6000_reg_live_or_pic_offset_p): New function.
2777         (rs6000_emit_prologue): Move the actual saving of LR up to free
2778         r0 for holding r11.  Split saving of SPE 64-bit registers into
2779         its own case.  Ensure that offsets will always be in-range for
2780         'evstdd' by using r11 as a scratch register to point at the start
2781         of the SPE save area.  Save r11 if necessary, as it is the static
2782         chain register.
2783         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
2784         into its own case.  Ensure that offsets will always be in-range
2785         for 'evldd' by using r11 as a scratch register to point at the
2786         start of the SPE save area.  Also adjust r11 when restoring
2787         the stack pointer to compensate for pre-loading r11.
2788
2789 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
2790
2791         * cfg.c (init_flow): Use type safe memory macros.
2792         (alloc_block): Likewise.
2793         (unchecked_make_edge): Likewise.
2794         (dump_flow_info): Avoid using C++ keywords as variable names.
2795         (copy_original_table_clear): Cast according to the coding conventions.
2796         (copy_original_table_set): Likewise.
2797         * cfgexpand (label_rtx_for_bb): Likewise.
2798         (expand_gimple_basic_block): Likewise.
2799         * cfghooks.c (dump_bb): Likewise.
2800         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
2801         variable names.
2802         (lv_add_condition_to_bb): Likewise.
2803         * cfglayout (relink_block_chain): Cast according to the coding
2804         conventions.
2805         (fixup_reorder_chain): Likewise.
2806         (fixup_fallthru_exit_predecessor): Likewise.
2807         * cfgloop.c (glb_enum_p): Likewise.
2808         (get_exit_description): Likewise.
2809         (dump_recorded_exit): Likewise.
2810         * cfgloop.h (enum loop_estimation): Move out of struct scope...
2811         (struct loop): ... from here.
2812         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
2813         conventions.
2814         * cfgrtl.c (rtl_create_basic_block): Likewise.
2815         (rtl_split_block): Likewise.
2816         (rtl_dump_bb): Likewise.
2817         (cfg_layout_split_block): Likewise.
2818         (init_rtl_bb_info): Use typesafe memory macros.
2819
2820         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
2821         * graphds.h: Updated all usages of edge to graph_edge.
2822         * graphds.c: Likewise.
2823         * cfgloopanal.c: Likewise.
2824
2825 2007-06-05  Ian Lance Taylor  <iant@google.com>
2826
2827         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
2828         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
2829         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
2830         expression.
2831         (test_for_singularity): Likewise.
2832
2833 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
2834
2835         * config/i386/constraints.md ("Y2"): Replaced by ...
2836         ("Yt"): This.
2837         * config/i386/i386.md: Likewise.
2838         * config/i386/mmx.md: Likewise.
2839         * config/i386/sse.md: Likewise.
2840
2841 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
2842
2843         * config/i386/constraints.md ("z"): Replaced by ...
2844         ("Y0"): This.
2845         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
2846         (sse4_1_blendvps): Likewise.
2847         (sse4_1_pblendvb): Likewise.
2848         (sse4_2_pcmpestr): Likewise.
2849         (sse4_2_pcmpestrm): Likewise.
2850         (sse4_2_pcmpestr_cconly): Likewise.
2851         (sse4_2_pcmpistr): Likewise.
2852         (sse4_2_pcmpistrm): Likewise.
2853         (sse4_2_pcmpistr_cconly): Likewise.
2854
2855 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
2856
2857         * matrix-reorg.c (transform_access_sites): Fix computation.
2858         (transform_allocation_sites): Same.
2859
2860 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
2861
2862         * config/i386/i386.c (override_options): Use
2863         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
2864
2865 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
2866
2867         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
2868         (nonimm_not_xmm0_operand): Ditto.
2869         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
2870         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
2871         as operand[2] predicate.  Require "z" class XMM register for
2872         operand[3].  Adjust asm template.
2873         ("sse4_1_blendvpd"): Ditto.
2874         ("sse4_1_pblendvb"): Ditto.
2875         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
2876         force op2 into xmm0 register for variable blend instructions.
2877
2878 2007-06-04  Tom Tromey  <tromey@redhat.com>
2879
2880         * c-tree.h (start_enum): Update.
2881         (build_enumerator): Likewise.
2882         * c-decl.c (enum_next_value): Removed.
2883         (enum_overflow): Likewise.
2884         (start_enum): Add c_enum_contents argument.  Don't use globals.
2885         (build_enumerator): Likewise.
2886         * c-tree.h (struct c_enum_contents): New struct.
2887
2888 2007-06-04  Tom Tromey  <tromey@redhat.com>
2889
2890         * c-common.c (c_common_get_alias_set): Fix indentation.
2891
2892 2007-06-04  Ian Lance Taylor  <iant@google.com>
2893
2894         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
2895         to overflow, reduce overflow infinity to regular infinity.
2896         (vrp_var_may_overflow): New static function.
2897         (vrp_visit_phi_node): Check vrp_var_may_overflow.
2898
2899 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
2900
2901         * stor-layout.c (layout_type): Remove duplicate code.
2902
2903 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
2904
2905         PR c/32191
2906         * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
2907         before build_common_builtin_nodes ().
2908
2909 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
2910
2911         PR target/31733
2912         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
2913
2914 2007-06-04  Jan Hubicka  <jh@suse.cz>
2915
2916         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
2917         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
2918         instead of _stat version.
2919
2920 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
2921
2922         PR tree-optimization/32194
2923         * tree-predcom.c (determine_offset): Check that both references have
2924         the same type.
2925
2926 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
2927
2928         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
2929         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
2930         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
2931         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
2932         Add argument to iterate_fix_dominators call.
2933         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
2934         * gcse.c (hoist_code): Change domby to vector.
2935         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
2936         Add argument to iterate_fix_dominators call.
2937         * loop-doloop.c (doloop_modify): Changed recount_dominator to
2938         recompute_dominator.
2939         * lambda-code.c (perfect_nestify): Ditto.
2940         * cfgloopanal.c: Include graphds.h.
2941         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
2942         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
2943         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
2944         add_edge call.
2945         * graphds.c: New file.
2946         * graphds.h: New file.
2947         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
2948         (get_dominated_by, get_dominated_by_region): Change return type to
2949         vector.
2950         (verify_dominators): Recompute all dominators and compare the results.
2951         (recount_dominator): Renamed to ...
2952         (recompute_dominator): ... this.  Do not check that the block is
2953         dominated by entry.
2954         (iterate_fix_dominators): Reimplemented.
2955         (prune_bbs_to_update_dominators, root_of_dom_tree,
2956         determine_dominators_for_sons): New functions.
2957         * et-forest.c (et_root): New function.
2958         * et-forest.h (et_root): Declare.
2959         * Makefile.in (graphds.o): Add.
2960         (cfgloopanal.o): Add graphds.h dependency.
2961         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
2962         * basic-block.h (get_dominated_by, get_dominated_by_region,
2963         iterate_fix_dominators): Declaration changed.
2964         (recount_dominator): Renamed to ...
2965         (recompute_dominator): ... this.
2966         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
2967         (thread_through_all_blocks): Do not free dominance info.
2968
2969 2007-06-03  Andreas Schwab  <schwab@suse.de>
2970
2971         * config/m68k/m68k.c (override_options): Don't override
2972         REAL_MODE_FORMAT.
2973         * config/m68k/m68k-modes.def (SF, DF): Define to use
2974         motorola_single_format and motorola_double_format, resp.
2975         * real.c (motorola_single_format): Renamed from
2976         coldfire_single_format.
2977         (motorola_double_format): Renamed from coldfire_double_format.
2978         (encode_ieee_extended): Generate a proper canonical NaN image
2979         respecting canonical_nan_lsbs_set.
2980         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
2981         true.
2982         * real.h: Adjust declarations.
2983
2984 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2985
2986         PR target/32163
2987         * config/sh/sh.md (symGOT_load): Don't schedule insns when
2988         the symbol is generated with the stack protector.
2989
2990 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
2991
2992         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
2993         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
2994         "interrupt".
2995         * doc/extend.texi (interrupt): Mention m68k.
2996
2997 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
2998
2999         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
3000         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
3001         (ix86_expand_sse_pcmpestr): Do not check operands for
3002         "register_operand", when insn operand predicate is "register_operand".
3003         (ix86_expand_sse_pcmpistr): Ditto.
3004
3005 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3006             Uros Bizjak  <ubizjak@gmail.com>
3007
3008         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
3009         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
3010         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
3011         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
3012         * config/i386/constraints.md ("z"): New register constraint
3013         for members of SSE_FIRST_REG class.
3014         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
3015         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
3016         SSE_FIRST_REG class.
3017         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
3018         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
3019         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
3020         (IX86_BUILTIN_PCMPESTRM128): Likewise.
3021         (IX86_BUILTIN_PCMPESTRA128): Likewise.
3022         (IX86_BUILTIN_PCMPESTRC128): Likewise.
3023         (IX86_BUILTIN_PCMPESTRO128): Likewise.
3024         (IX86_BUILTIN_PCMPESTRS128): Likewise.
3025         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
3026         (IX86_BUILTIN_PCMPISTRI128): Likewise.
3027         (IX86_BUILTIN_PCMPISTRM128): Likewise.
3028         (IX86_BUILTIN_PCMPISTRA128): Likewise.
3029         (IX86_BUILTIN_PCMPISTRC128): Likewise.
3030         (IX86_BUILTIN_PCMPISTRO128): Likewise.
3031         (IX86_BUILTIN_PCMPISTRS128): Likewise.
3032         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
3033         (struct builtin_description): Change "flag" field to unsigned.
3034         (bdesc_pcmpestr): New builtin description table.
3035         (bdesc_pcmpistr): Likewise.
3036         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
3037         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
3038         Initialize pcmp[ei]str[im] insns for SSE4.2.
3039         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
3040         (ix86_expand_sse_pcmpistr): Likewise.
3041         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
3042         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
3043         (UNSPEC_PCMPISTR): Likewise.
3044         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
3045         (sse4_2_pcmpestri):New isns pattern.
3046         (sse4_2_pcmpestrm): Likewise.
3047         (sse4_2_pcmpestr_cconly): Likewise.
3048         (sse4_2_pcmpistr): New insn patern and splitter.
3049         (sse4_2_pcmpistri):New isns pattern.
3050         (sse4_2_pcmpistrm): Likewise.
3051         (sse4_2_pcmpistr_cconly): Likewise.
3052         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
3053         in SSE4.2.
3054
3055 2007-06-01  David Daney  <ddaney@avtrex.com>
3056
3057         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
3058         LOADGP_ABSOLUTE and not binds_local_p.
3059
3060 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
3061
3062         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
3063
3064 2007-06-01  Ian Lance Taylor  <iant@google.com>
3065
3066         * tree-vrp.c (compare_name_with_value): Always set
3067         used_strict_overflow if we get a result from the variable itself.
3068
3069 2007-06-01  Ian Lance Taylor  <iant@google.com>
3070
3071         PR rtl-optimization/31455
3072         * lower-subreg.c (find_decomposable_subregs): Don't decompose
3073         subregs which have a cast between modes which are not tieable.
3074
3075 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
3076
3077         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
3078         breaks after return statements.
3079
3080 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3081
3082         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
3083         only after no_new_pseudos.
3084
3085 2007-05-31  Eric Christopher  <echristo@apple.com>
3086
3087         * expr.c (convert_move): Assert that we don't have a BLKmode
3088         operand.
3089         (store_expr): Handle BLKmode moves by calling emit_block_move.
3090
3091 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
3092
3093         * c-typeck.c (build_indirect_ref): Include type in error message.
3094         (build_binary_op): Pass types to binary_op_error.
3095         * c-common.c (binary_op_error): Take two type arguments, print out
3096         types with error.
3097         * c-common.h (binary_op_error): Update prototype.
3098
3099 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3100
3101         * config/i386/i386.c: Correct coments on -mno-sse4.
3102
3103 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3104
3105         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
3106         (x86_64-*-*): Likewise.
3107         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
3108         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
3109         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
3110         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
3111         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
3112         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
3113         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
3114         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
3115         (OPTION_MASK_ISA_SSE4): Likewise.
3116         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
3117         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
3118         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
3119         (override_options): Support SSE4.2.
3120         (ix86_build_const_vector): Support SImode and DImode.
3121         (ix86_build_signbit_mask): Likewise.
3122         (ix86_expand_int_vcond): Support V2DImode.
3123         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
3124         (IX86_BUILTIN_CRC32HI): Likewise.
3125         (IX86_BUILTIN_CRC32SI): Likewise.
3126         (IX86_BUILTIN_CRC32DI): Likewise.
3127         (IX86_BUILTIN_PCMPGTQ): Likewise.
3128         (bdesc_crc32): Likewise.
3129         (bdesc_sse_3arg): Likewise.
3130         (ix86_expand_crc32): Likewise.
3131         (ix86_init_mmx_sse_builtins): Support SSE4.2.
3132         (ix86_expand_builtin): Likewise.
3133         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
3134         __SSE4_2__ for -msse4.2.
3135         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
3136         (CRC32MODE): Likewise.
3137         (crc32modesuffix): Likewise.
3138         (crc32modeconstraint): Likewise.
3139         (sse4_2_crc32<mode>): Likewise.
3140         (sse4_2_crc32di): Likewise.
3141         * config/i386/i386.opt (msse4.2): New for SSE4.2.
3142         (msse4): Likewise.
3143         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
3144         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
3145         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
3146         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
3147         (vcondu<mode>): Likewise.
3148         * doc/extend.texi: Document SSE4.2 built-in functions.
3149         * doc/invoke.texi: Document -msse4.2/-msse4.
3150
3151 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
3152
3153         PR tree-optimization/32160
3154         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
3155         variable as gimple reg.
3156         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
3157
3158 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
3159
3160         * gcc.c (main): Don't consider linker options when issuing the
3161         warning about a linker input file not being used.
3162
3163 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3164
3165         * tree-vrp.c (compare_names): Initialize sop.
3166
3167 2007-05-30  Dirk Mueller  <dmueller@suse.de>
3168
3169         * cgraphunit.c (cgraph_analyze_function): Remove
3170         computation of inline parameters.
3171
3172 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
3173
3174         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
3175
3176 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
3177
3178         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
3179         Add vx-common.h.  Include vxworks.h between vx-common.h and
3180         arm/vxworks.h.
3181         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
3182         redefining.
3183         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
3184         (TARGET_ASM_DESTRUCTOR): Likewise.
3185         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
3186         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
3187         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
3188         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
3189         (VXWORKS_ENDIAN_SPEC): Define.
3190         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
3191         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
3192         VXWORKS_* equivalents.
3193         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
3194         (ASM_FILE_START): Delete.
3195         (TARGET_VERSION): Reformat.
3196         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
3197         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
3198         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
3199         (FPBIT, DPBIT): Define.
3200         (fp-bit.c, dp-bit.c): New rules.
3201         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
3202         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
3203         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
3204         * config/arm/arm.h: Include vxworks-dummy.h.
3205         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
3206         Mark with ATTRIBUTE_UNUSED.
3207         (arm_override_options): Do not allow VxWorks RTP PIC to be used
3208         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
3209         make it incompatible with -msingle-pic-base.
3210         (arm_function_ok_for_sibcall): Return false for calls that might
3211         go through a VxWorks PIC PLT entry.
3212         (require_pic_register): New function, split out from...
3213         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
3214         for VxWorks RTPs.
3215         (arm_load_pic_register): Handle the VxWorks RTP initialization
3216         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
3217         (arm_emit_call_insn): New function.
3218         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
3219         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
3220         (pic_offset_arm): New pattern.
3221         (call, call_value): Use arm_emit_call_insn.
3222         (call_internal, call_value_internal): New expanders.
3223         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
3224         VxWorks unless __PIC__.
3225
3226 2007-05-30  Eric Christopher  <echristo@gmail.com>
3227
3228         * genrecog.c: Include regs.h in generated file.
3229         * genemit.c: Ditto. Fix up formatting.
3230         * config/mn10300/constraints.md: New.
3231         * config/mn10300/mn10300.md: Include.
3232         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
3233         Fix up for removed macro.
3234         * config/mn10300/predicates.md (call_address_operand):  Ditto.
3235         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
3236         (CONST_OK_FOR_I): Ditto.
3237         (CONST_OK_FOR_J): Ditto.
3238         (CONST_OK_FOR_K): Ditto.
3239         (CONST_OK_FOR_L): Ditto.
3240         (CONST_OK_FOR_M): Ditto.
3241         (CONST_OK_FOR_N): Ditto.
3242         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
3243         (OK_FOR_Q): Ditto.
3244         (OK_FOR_R): Ditto.
3245         (OK_FOR_T): Ditto.
3246         (EXTRA_CONSTRAINT): Ditto.
3247
3248 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3249
3250         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
3251         Remove defines.
3252         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
3253         OPTION_MASK_ISA_64BIT.
3254         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
3255
3256 2007-05-30  Richard Guenther  <rguenther@suse.de>
3257
3258         PR middle-end/32152
3259         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
3260         types for comparison.
3261         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
3262         with original typed arguments.
3263         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
3264
3265 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
3266
3267         PR tree-optimization/31769
3268         * except.c (duplicate_eh_regions): Clear prev_try if
3269         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
3270
3271 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
3272
3273         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
3274         * tree-ssa-sink.c (statement_sink_location): Return basic block and
3275         bsi of the location where statements should be inserted.
3276         (sink_code_in_bb): Take bsi from statement_sink_location.
3277         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
3278         instead of bsi_start.
3279         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
3280         bsi_insert_after.
3281         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
3282         (bsi_move_before): Document inconsistency with bsi_move_after.
3283         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
3284
3285 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3286
3287         * config/i386/i386.h (TARGET_ABM): New define.
3288         (TARGET_POPCNT): Ditto.
3289         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
3290         New temporary defines to redefine from OPTION_ISA_* defines.
3291         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
3292         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
3293         (ix86_isa_flags): New extern int declaration.
3294         (TARGET_SUBTARGET_DEFAULT): New define.
3295         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
3296         (TARGET_SUBTARGET32_DEFAULT): Ditto.
3297         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
3298         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
3299         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
3300         * config/i386/darwin.h: Change TARGET_64BIT define to
3301         OPTION_ISA_64BIT.
3302
3303         * config/i386/i386.opt (m3dnowa): Define as undocumented option
3304         using existing "ix86_isa_flags" varible.
3305         (m32, m64): Use existing "ix86_isa_flags" variable.
3306         (mmmx, m3dnow): Ditto.
3307         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
3308         (mabm): Define as non-negative option using "x86_abm" variable.
3309         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
3310
3311         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
3312         Rewrite feature test bitmap.
3313         (ix86_isa_flags): New initialized global int varible.
3314         (ix86_isa_flags_explicit): New static int variable.
3315         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
3316         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
3317         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
3318         target_flags_explicit.
3319         (override_options): Remove "target_enable" and "target_disable" fields
3320         from "struct ptt". Update processor_target_table accordingly. Remove
3321         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
3322         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
3323         "target_flags" and "ix86_isa_flags_explicit" instead of
3324         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
3325         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
3326         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
3327         to true when either of PTA_POPCNT or PTA_ABM is set in
3328         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
3329         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
3330         processor_alias_table flags entry.  Remove handling of
3331         "target_enable" and "target_disable" fields of processor_target_table.
3332         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
3333         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
3334         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
3335         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
3336         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
3337         "target_flags".
3338         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
3339
3340 2007-05-29  David Daney  <ddaney@avtrex.com>
3341
3342         PR gcc/31975
3343         * config/mips/mips.c (mips_output_mi_thunk): Emit
3344         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
3345
3346 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
3347         * config/i386/i386.c (ix86_function_regparm): Added checking of
3348         ix86_force_align_arg_pointer to determine the number of
3349         register parameters.
3350
3351 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
3352
3353         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
3354         (SET_DR_MISALIGNMENT): New.
3355         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
3356         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
3357         Use SET_DR_MISALIGNMENT.
3358         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
3359         pointer.
3360         * tree-data-ref.c (create_data_ref, compute_all_dependences,
3361         find_loop_nest): Export.
3362         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
3363         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
3364         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
3365         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
3366         New macros.
3367         (struct mem_ref): Add field reuse_distance.
3368         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
3369         Initialize reuse_distance field.
3370         (issue_prefetch_ref): Select temporality of prefetch according to
3371         reuse_distance.
3372         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
3373         self_reuse_distance, determine_loop_nest_reuse): New functions.
3374         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
3375         (tree_ssa_prefetch_arrays): Dump L2 cache size.
3376         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
3377         dependency.
3378
3379 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
3380
3381         * tree-ssa-alias.c: Add aliasing overview.
3382
3383 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
3384             Danny Smith  <dannysmith@users.sourceforge.net>
3385
3386         PR target/29498
3387         * config/i386/t-crtfm: Compile crtfastmath.o with
3388         -minline-all-stringops.
3389         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
3390         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
3391
3392 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3393
3394         * doc/md.texi: Document constraints on HP PA-RISC.
3395
3396         * pa/constraints.md: New file.
3397         * pa.md: Include constraints.md.
3398         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
3399         (integer_store_memory_operand, ldil_cint_p): New functions.
3400         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
3401         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3402         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
3403         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
3404         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
3405
3406 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
3407
3408         PR c/31339
3409         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
3410         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
3411         case POSTDECREMENT_EXPR>): Return the error_mark_node
3412         if either the real or imaginary parts would an
3413         error_mark_node.
3414
3415 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
3416
3417         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
3418         name when we remove it from a call.
3419
3420 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
3421
3422         * targhooks.c (default_narrow_bitfield): Remove.
3423         * targhooks.h: Remove the prototype for
3424         default_narrow_bitfield.
3425
3426         * langhooks-def.h: Remove the prototype for
3427         hook_get_alias_set_0.
3428         * langhooks.c (hook_get_alias_set_0): Remove.
3429
3430         * global.c (EXECUTE_IF_CONFLICT): Remove.
3431
3432 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3433
3434         PR tree-opt/32100
3435         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
3436         return true when truth_value_p is true and the type
3437         is of signed:1.
3438
3439 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
3440
3441         * doc/install.texi (Prerequisites): We no longer require Autoconf
3442         2.13 for the top-level.
3443
3444 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
3445
3446         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
3447         memory access via x86_expand_vector_move_misalign() only for
3448         TImode values on 32-bit targets.
3449
3450 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
3451
3452         * matrix-reorg.c: New file. Implement matrix flattening and
3453         transposing optimization.
3454         * tree-pass.h: Add matrix reorg pass.
3455         * common.opt: Add fipa-mreorg flag.
3456         * Makefile.in: Add matrix-reorg.c.
3457         * passes.c: Add matrix reorg pass.
3458         * varpool.c (add_new_static_var): New function.
3459         * cgraph.h (add_new_static_var): Declare.
3460
3461 2007-05-27  Eric Christopher  <echristo@apple.com>
3462
3463         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
3464         sp_offset depending on stack size. Save r12 depending
3465         on registers we're saving later.
3466         (rs6000_emit_epilogue): Update sp_offset depending only
3467         on stack size.
3468
3469 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
3470
3471         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
3472         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3473         * ifcvt.c (if_convert): Ditto.
3474         * tree-ssa-threadupdate.c (thread_block): Ditto.
3475         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
3476         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
3477         verify_loop_closed_ssa): Check number_of_loops instead of
3478         current_loops.
3479         * predict.c (tree_estimate_probability): Ditto.
3480         * tree-if-conv.c (main_tree_if_conversion): Ditto.
3481         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3482         * modulo-sched.c (sms_schedule): Ditto.
3483         * tree-scalar-evolution.c (scev_const_prop): Ditto.
3484         (scev_finalize): Do not do anything if scev analysis was not
3485         initialized.
3486         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
3487         current_loops == NULL.
3488         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
3489         * loop-init.c (loop_optimizer_init): Do not free current_loops when
3490         there are no loops.
3491         (loop_optimizer_finalize): Assert that loops were analyzed.
3492         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
3493         rtl_doloop): Check number_of_loops instead of current_loops.
3494         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
3495         current_loops == NULL.
3496         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
3497         gate_tree_vectorize tree_linear_transform, check_data_deps,
3498         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
3499         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
3500         Check number_of_loops instead of current_loops.
3501         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
3502         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
3503         free loops if available.
3504         (execute_pre): Do not pass do_fre to fini_pre.
3505
3506 2007-05-27  Tobias Burnus  <burnus@net-b.de>
3507
3508         PR middle-end/32083
3509         * real.c (mpfr_from_real): Fix sign of -Inf.
3510
3511 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3512
3513         * tree-vect-transform.c (vectorizable_conversion): Initialize
3514         tree_code variables to ERROR_MARK.
3515         (vectorizable_type_demotion): Likewise.
3516         (vectorizable_type_promotion): Likewise.
3517
3518 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
3519
3520         PR target/32065
3521         * config/i386/i386.md (movti): Handle push operands via
3522         ix86_expand_push().
3523
3524 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
3525
3526         * basic-block.h: Remove the prototype for merge_seq_blocks.
3527         * cfgcleanup.c (merge_seq_blocks): Remove.
3528
3529         * tree-flow.h: Remove the prototype for is_aliased_with.
3530         * tree-ssa-alias.c (is_aliased_with): Remove.
3531
3532 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
3533
3534         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
3535
3536         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
3537
3538         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
3539         ix86_expand_sse4_unpack if SSE4.1 is enabled.
3540         (vec_unpacks_hi_v16qi): Likewise.
3541         (vec_unpacku_lo_v16qi): Likewise.
3542         (vec_unpacks_lo_v16qi): Likewise.
3543         (vec_unpacku_hi_v8hi): Likewise.
3544         (vec_unpacks_hi_v8hi): Likewise.
3545         (vec_unpacku_lo_v8hi): Likewise.
3546         (vec_unpacks_lo_v8hi): Likewise.
3547         (vec_unpacku_hi_v4si): Likewise.
3548         (vec_unpacks_hi_v4si): Likewise.
3549         (vec_unpacku_lo_v4si): Likewise.
3550         (vec_unpacks_lo_v4si): Likewise.
3551
3552 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
3553
3554         * c-typeck.c, config/arm/arm.c, config/darwin.c,
3555         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
3556         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
3557         follow spelling conventions in various
3558         warning/error/diagnostic messages.
3559
3560         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
3561         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
3562         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
3563         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
3564         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
3565         * doc/tm.texi: Follow spelling conventions.
3566
3567 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3568
3569         PR tree-opt/32090
3570         * tree-ssa-forwprop.c
3571         (forward_propagate_addr_into_variable_array_index): Remove
3572         the lhs argument.  Use the type of def_rhs instead of lhs.
3573         (forward_propagate_addr_expr_1): Update use of
3574         forward_propagate_addr_into_variable_array_index.
3575
3576 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
3577             Nigel Stephens  <nigel@mips.com>
3578
3579         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
3580         function attributes, "far" being an alias for "long_call".
3581         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
3582         (mips_near_type_p, mips_far_type_p): New.
3583         (mips_comp_type_attributes): New function to check that attributes
3584         attached to a function type are compatible.
3585         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
3586         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
3587         to the target function of the thunk.
3588         (mips_encode_section_info): Check for "near" and "far" function
3589         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
3590
3591         * config/mips/predicates.md (const_call_insn_operand): Test only
3592         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
3593
3594         * doc/extend.texi (Function Attributes): Document MIPS "near" and
3595         "far" attributes.
3596
3597         * testsuite/gcc.target/mips/near-far-1.c:  New test case.
3598         * testsuite/gcc.target/mips/near-far-2.c:  New test case.
3599         * testsuite/gcc.target/mips/near-far-3.c:  New test case.
3600         * testsuite/gcc.target/mips/near-far-4.c:  New test case.
3601
3602 2007-05-25  Eric Christopher  <echristo@apple.com>
3603
3604         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
3605         to x86-darwin configurations.
3606         * config/i386/t-darwin: Add softfp support.
3607         * config/i386/t-darwin64: Ditto.
3608         * config/i386/sfp-machine.h: If mach then don't use
3609         aliasing, emit a stub to call.
3610
3611 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
3612
3613         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
3614         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
3615         tree-predcom.c, tree-ssa-alias-warnings.c,
3616         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
3617         comment typos.  Follow spelling conventions.
3618         * doc/cpp.texi, doc/invoke.texi: Fix typos.
3619
3620 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
3621
3622         PR target/32065
3623         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
3624         constants into memory.  Expand unaligned memory references for
3625         SSE modes via x86_expand_vector_move_misalign() function.
3626
3627 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
3628
3629         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
3630         "memory" attribute for "sseishft" type insn without operands[2].
3631
3632 2007-05-25  Dirk Mueller  <dmueller@suse.de>
3633             Marcus Meissner <meissner@suse.de>
3634
3635         * doc/extend.texi (alloc_size): New attribute.
3636         * c-common.c (handle_alloc_size_attribute): New.
3637         * tree-object-size.c (alloc_object_size): Use alloc_size
3638         attribute, if available.
3639
3640 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3641
3642         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
3643         with MASK_SSE2.
3644         (__builtin_ia32_vec_ext_v2di): Likewise.
3645         (__builtin_ia32_vec_ext_v4si): Likewise.
3646         (__builtin_ia32_vec_ext_v8hi): Likewise.
3647         (__builtin_ia32_vec_ext_v16qi): Likewise.
3648         (__builtin_ia32_vec_set_v8hi): Likewise.
3649
3650 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3651
3652         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
3653
3654 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
3655
3656         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
3657         (arm_is_longcall_p): Rename to...
3658         (arm_is_long_call_p): ...this.  Take a single tree argument and
3659         return a bool.
3660         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
3661         (CUMULATIVE_ARGS): Remove call_cookie.
3662         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
3663         (ENCODED_LONG_CALL_ATTR_P): Delete.
3664         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
3665         LONG_CALL_FLAG_CHAR cases.
3666         (ARM_DECLARE_FUNCTION_SIZE): Delete.
3667         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
3668         ARM_DECLARE_FUNCTION_SIZE.
3669         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
3670         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
3671         (arm_encode_call_attribute, current_file_function_operand): Delete.
3672         (arm_function_in_section_p): New function.
3673         (arm_is_longcall_p): Rename to...
3674         (arm_is_long_call_p): ...this.  Take the target function as a single
3675         argument and return a bool.  Do not rely on call cookies.  Check
3676         whether the target symbol is in the same section as the current
3677         function, not just the same compilation unit.
3678         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
3679         (arm_encode_section_info): Don't encode a call type.
3680         * config/arm/arm.md (call, call_value): Update calls to
3681         arm_is_long(_)call_p.  Simplify logic.
3682         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
3683         Update calls to arm_is_long(_)call_p.
3684
3685 2007-05-25  Richard Guenther  <rguenther@suse.de>
3686
3687         PR tree-optimization/31982
3688         * tree-ssa-forwprop.c
3689         (forward_propagate_addr_into_variable_array_index): Handle arrays
3690         with element size one.
3691
3692 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3693
3694         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
3695         (umulsi3_highpart): Likewise.
3696
3697 2007-05-24  Ian Lance Taylor  <iant@google.com>
3698
3699         PR rtl-optimization/32069
3700         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
3701         is NULL.
3702
3703 2007-05-24  Ollie Wild  <aaw@google.com>
3704
3705         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
3706         description.
3707
3708 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
3709
3710         * postreload-gcse.c (reg_changed_after_insn_p): New function.
3711         (oprs_unchanged_p): Use it to check all registers in a REG.
3712         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
3713         (reg_set_between_after_reload_p): Delete.
3714         (reg_used_between_after_reload_p): Likewise.
3715         (reg_set_or_used_since_bb_start): Likewise.
3716         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
3717         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
3718         Use reg_set_between_p instead of reg_set_between_after_reload_p.
3719         * rtlanal.c (reg_set_p): Check whether REG overlaps
3720         regs_invalidated_by_call, rather than just checking the
3721         membership of REGNO (REG).
3722
3723 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
3724
3725         * doc/passes.texi: Document predictive commoning.
3726         * doc/invoke.texi (-fpredictive-commoning): Document.
3727         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
3728         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
3729         adding indices to the generated name.
3730         (schedule_sm): Pass 0 to get_lsm_tmp_name.
3731         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
3732         * tree-pretty-print.c (op_symbol_1): Renamed to ...
3733         (op_symbol_code): ... and exported.
3734         (dump_omp_clause, op_symbol): Use op_symbol_code
3735         instead of op_symbol_1.
3736         * tree-pass.h (pass_predcom): Declare.
3737         * timevar.def (TV_PREDCOM): New timevar.
3738         * tree-ssa-loop.c (run_tree_predictive_commoning,
3739         gate_tree_predictive_commoning, pass_predcom): New.
3740         * tree-data-ref.c (find_data_references_in_loop): Find the
3741         references in dominance order.
3742         (canonicalize_base_object_address): Ensure that the result has
3743         pointer type.
3744         (dr_analyze_innermost): Export.
3745         (create_data_ref): Code to fail for references with invariant
3746         address moved ...
3747         (find_data_references_in_stmt): ... here.
3748         * tree-data-ref.h (dr_analyze_innermost): Declare.
3749         * tree-affine.c: Include tree-gimple.h and hashtab.h.
3750         (aff_combination_find_elt, name_expansion_hash,
3751         name_expansion_eq, tree_to_aff_combination_expand,
3752         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
3753         New functions.
3754         * tree-affine.h (aff_combination_constant_multiple_p,
3755         tree_to_aff_combination_expand): Declare.
3756         * tree-predcom.c: New file.
3757         * common.opt (fpredictive-commoning): New option.
3758         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
3759         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
3760         * Makefile.in (tree-predcom.o): Add.
3761         (tree-affine.o): Add TREE_GIMPLE_H dependency.
3762         * passes.c (init_optimization_passes):  Add dceloop after
3763         copy propagation in loop optimizer.  Add predictive commoning
3764         to loop optimizer passes.
3765
3766 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3767
3768         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
3769         default hook.
3770
3771 2007-05-24  Jan Hubicka  <jh@suse.cz>
3772
3773         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
3774         statistics.
3775         (genheader): Include statistics.h.
3776
3777         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
3778         notes are gone.
3779         * print-rtl.c (flag_dump_unnumbered): Update comments.
3780         (print_rtl): Fix my previous change.
3781         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
3782         specific data.
3783
3784 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
3785
3786         PR middle-end/32018
3787         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
3788         set_loop_copy.
3789         (thread_through_all_blocks): Call initialize_original_copy_tables
3790         and free_original_copy_tables.
3791         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
3792         Use set_loop_copy.
3793         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
3794         * cfghooks.c (duplicate_block): Use get_loop_copy.
3795         * cfg.c: Include cfgloop.h.
3796         (loop_copy): New hash table.
3797         (initialize_original_copy_tables): Initialize loop_copy table.
3798         (free_original_copy_tables): Free loop_copy table.
3799         (copy_original_table_clear, copy_original_table_set,
3800         set_loop_copy, get_loop_copy): New functions.
3801         (set_bb_original, set_bb_copy): Use copy_original_table_set.
3802         * cfgloop.h (struct loop): Remove copy field.
3803         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
3804         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
3805
3806 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3807
3808         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
3809         -msse/-msse2/-msse3.
3810
3811 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3812
3813         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
3814         __builtin_ia32_vec_set_v2di with MASK_64BIT.
3815
3816 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
3817
3818         PR target/27067
3819         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
3820         * targhooks.h (default_mangle_decl_assembler_name): Declare
3821         default hook.
3822         * targhooks.c (default_mangle_decl_assembler_name): Define
3823         default hook.
3824         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
3825         default hook.
3826         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
3827         * langhooks.c (lhd_set_decl_assembler_name): Call
3828         targetm.mangle_decl_assembler_name for names with global scope.
3829
3830         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
3831         default.
3832         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
3833         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
3834         Declare.
3835         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3836         New. Factored out of i386_pe_encode_section_info.
3837         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
3838         Move check for prior decoration of stdcall
3839         symbols to i386_pe_encode_section_info.
3840         (i386_pe_encode_section_info): Adjust call to
3841         gen_stdcall_or_fastcall_suffix.  Use
3842         i386_pe_maybe_mangle_decl_assembler_name, if needed.
3843         (i386_pe_mangle_decl_assembler_name): New. Wrap
3844         i386_pe_maybe_mangle_decl_assembler_name.
3845
3846 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
3847
3848         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
3849         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
3850         * langhooks.c (get_signed_or_unsigned_type): Don't check for
3851         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
3852         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
3853         TYPE_UNSIGNED.
3854
3855 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
3856             Nigel Stephens  <nigel@mips.com>
3857             Richard Sandiford  <richard@codesourcery.com>
3858
3859         Fix up MIPS16 hard float and add support for complex.
3860
3861         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
3862         (TARGET_SOFT_FLOAT_ABI): New.
3863         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
3864         __mips_soft_float to reflect the ABI in use, not whether the
3865         FPU is directly accessible (e.g., in MIPS16 mode).
3866         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
3867         (UNITS_PER_FPVALUE): Likewise.
3868
3869         * config/mips/mips.c (mips_expand_call): Remove redundant
3870         TARGET_MIPS16 check.
3871         (mips_arg_regno): New.
3872         (function_arg_advance): When setting bits in cum->fp_code for
3873         MIPS16, don't subtract 1 from cum->arg_number, since it is now
3874         zero-based.
3875         (function_arg): Use mips_arg_regno.
3876         (mips_return_mode_in_fpr_p): New.
3877         (mips16_call_stub_mode_suffix): New.
3878         (mips16_cfun_returns_in_fpr_p): New.
3879         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
3880         (mips_output_function_prologue): Test mips16_hard_float, not
3881         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
3882         (mips_expand_epilogue): Call MIPS16 helper routines to copy
3883         return value into a floating-point register.
3884         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
3885         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
3886         (mips16_fp_args): Handle MIPS32r2 ISA which supports
3887         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
3888         word of double arguments from or to the high bits of 64-bit
3889         floating point registers.
3890         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
3891         (mips16_fpret_double): New helper function.
3892         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
3893         support for complex modes.  Fill in DECL_RESULT for stubdecl.
3894         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
3895
3896         * config/mips/mips16.S
3897         (RET, ARG1, ARG2): New.
3898         (MERGE_GPRf, MERGE_GPRt): New.
3899         (DELAYt, DELAYf): New.
3900         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
3901         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
3902         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
3903         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
3904         (SFOP): Renamed to...
3905         (OPSF3): This, and macro-ified.  Updated all uses.
3906         (SFOP2): Renamed to...
3907         (OPSF2): This, and macro-ified.  Updated all uses.
3908         (SFCMP): Renamed to...
3909         (CMPSF): This, and macro-ified.  Updated all uses.
3910         (SFREVCMP): Renamed to...
3911         (REVCMPSF): This, and macro-ified.  Updated all uses.
3912         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
3913         (LDDBL1, LDDBL2, RETDBL): Deleted.
3914         (DFOP): Renamed to...
3915         (OPDF3): This, and macro-ified.  Updated all uses.
3916         (DFOP2): Renamed to...
3917         (OPDF2): This, and macro-ified.  Updated all uses.
3918         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
3919         (DFCMP): Renamed to...
3920         (CMPDF): This, and macro-ified.  Updated all uses.
3921         (DFREVCMP): Renamed to...
3922         (REVCMPDF): This, and macro-ified.  Updated all uses.
3923         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
3924         (RET_FUNCTION): New.
3925         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
3926         (__mips16_ret_sc, __mips16_ret_dc): New.
3927         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
3928         STUB_ARGS_6, STUB_ARGS_10): New.
3929         (CALL_STUB_NO_RET): New.
3930         (__mips16_call_stub_1): Macro-ified.
3931         (__mips16_call_stub_5): Macro-ified.
3932         (__mips16_call_stub_2): Macro-ified.
3933         (__mips16_call_stub_6): Macro-ified.
3934         (__mips16_call_stub_9): Macro-ified.
3935         (__mips16_call_stub_10): Macro-ified.
3936         (CALL_STUB_RET): New.
3937         (__mips16_call_stub_sf_0): Macro-ified.
3938         (__mips16_call_stub_sf_1): Macro-ified.
3939         (__mips16_call_stub_sf_5): Macro-ified.
3940         (__mips16_call_stub_sf_2): Macro-ified.
3941         (__mips16_call_stub_sf_6): Macro-ified.
3942         (__mips16_call_stub_sf_9): Macro-ified.
3943         (__mips16_call_stub_sf_10): Macro-ified.
3944         (__mips16_call_stub_df_0): Macro-ified.
3945         (__mips16_call_stub_df_1): Macro-ified.
3946         (__mips16_call_stub_df_5): Macro-ified.
3947         (__mips16_call_stub_df_2): Macro-ified.
3948         (__mips16_call_stub_df_6): Macro-ified.
3949         (__mips16_call_stub_df_9): Macro-ified.
3950         (__mips16_call_stub_df_10): Macro-ified.
3951         (__mips16_call_stub_sc_0): New.
3952         (__mips16_call_stub_sc_1): New.
3953         (__mips16_call_stub_sc_5): New.
3954         (__mips16_call_stub_sc_2): New.
3955         (__mips16_call_stub_sc_6): New.
3956         (__mips16_call_stub_sc_9): New.
3957         (__mips16_call_stub_sc_10): New.
3958         (__mips16_call_stub_dc_0): New.
3959         (__mips16_call_stub_dc_1): New.
3960         (__mips16_call_stub_dc_5): New.
3961         (__mips16_call_stub_dc_2): New.
3962         (__mips16_call_stub_dc_6): New.
3963         (__mips16_call_stub_dc_9): New.
3964         (__mips16_call_stub_dc_10): New.
3965
3966         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
3967         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
3968         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
3969
3970 2007-05-23  Ian Lance Taylor  <iant@google.com>
3971
3972         * doc/invoke.texi (Invoking GCC): Document that the order of the
3973         -l option matters.
3974
3975 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
3976
3977         PR target/30987
3978         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
3979         * config/score/predicate.md (const_pow2, const_npow2): Remove.
3980         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
3981         undef.
3982
3983         PR target/30474
3984         * config/score/score.c (score_print_operand): Make sure that only
3985         lower bits are used.
3986
3987 2007-05-22  Ian Lance Taylor  <iant@google.com>
3988
3989         * tree-vrp.c (avoid_overflow_infinity): New static function,
3990         broken out of set_value_range_to_value.
3991         (set_value_range_to_value): Call avoid_overflow_infinity.
3992         (extract_range_from_assert): Likewise.
3993
3994 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3995
3996         PR middle-end/31095
3997          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
3998         change the type before looking for a COMPOUND_EXPR.
3999
4000 2007-05-22  Ian Lance Taylor  <iant@google.com>
4001
4002         * lower-subreg.c (decompose_multiword_subregs): If we change an
4003         insn, call remove_retval_note on it.
4004
4005 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
4006
4007         * regs.h (end_hard_regno): New function.
4008         (END_HARD_REGNO, END_REGNO): New macros.
4009         (add_to_hard_reg_set): New function.
4010         (remove_from_hard_reg_set): Likewise.
4011         (in_hard_reg_set_p): Likewise.
4012         (overlaps_hard_reg_set_p): Likewise.
4013         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
4014         (note_btr_set): Use END_HARD_REGNO.
4015         * caller-save.c (setup_save_areas): Use end_hard_regno.
4016         (mark_set_regs): Use END_HARD_REGNO.
4017         (add_stored_regs): Use end_hard_regno.
4018         (mark_referenced_regs): Use add_to_hard_reg_set.
4019         * combine.c (update_table_tick): Use END_REGNO.
4020         (record_value_for_reg): Likewise.
4021         (record_dead_and_set_regs): Likewise.
4022         (get_last_value_validate): Likewise.
4023         (use_crosses_set_p): Likewise.
4024         (reg_dead_at_p_1): Likewise.
4025         (reg_dead_at_p): Likewise.
4026         (mark_used_regs_combine): Use add_to_hard_reg_set.
4027         (move_deaths): Use END_HARD_REGNO.
4028         (reg_bitfield_target_p): Use end_hard_regno.
4029         (distribute_notes): Use END_HARD_REGNO.
4030         * cse.c (mention_regs): Use END_REGNO.
4031         (insert): Use add_to_hard_reg_set.
4032         (invalidate): Use END_HARD_REGNO.
4033         (invalidate_for_call): Likewise.
4034         (exp_equiv_p): Use END_REGNO.
4035         (cse_insn): Likewise.
4036         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
4037         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
4038         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
4039         * function.c (keep_stack_depressed): Use end_hard_regno.
4040         * global.c (global_alloc): Use end_hard_regno.
4041         (global_conflicts): Use add_to_hard_reg_set instead of
4042         mark_reg_live_nc.
4043         (find_reg): Likewise.
4044         (mark_reg_store): Likewise.
4045         (mark_reg_conflicts): Likewise.
4046         (mark_reg_death): Use remove_from_hard_reg_set.
4047         (mark_reg_live_nc): Delete.
4048         (set_preference): Use end_hard_regno.
4049         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
4050         remove_from_hard_reg_set.
4051         (post_mark_life): Use add_to_hard_reg_set.
4052         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
4053         (reg_becomes_live): Use add_to_hard_reg_set.
4054         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
4055         (peep2_find_free_register): Use add_to_hard_reg_set.
4056         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
4057         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
4058         * regrename.c (note_sets): Use add_to_hard_reg_set.
4059         (clear_dead_regs): Use remove_from_hard_reg_set.
4060         (regrename_optimize): Use add_to_hard_reg_set.
4061         (find_oldest_value_reg): Use in_hard_reg_set_p.
4062         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
4063         (hard_reg_set_here_p): Use end_hard_regno.
4064         (decompose): Likewise.
4065         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
4066         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
4067         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
4068         (mark_home_live): Use end_hard_regno.
4069         (spill_hard_reg): Likewise.
4070         (clear_reload_reg_in_use): Likewise.
4071         * reorg.c (delete_prior_computation): Use END_REGNO.
4072         * resource.c (update_live_status): Use END_HARD_REGNO.
4073         (mark_referenced_resources): Use add_to_hard_reg_set.
4074         (mark_set_resources): Likewise.
4075         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
4076         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
4077         (reg_overlap_mentioned_p): Likewise.
4078         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
4079         (covers_regno_no_parallel_p): Use END_REGNO.
4080         (find_regno_note): Likewise.
4081         (find_reg_fusage): Use END_HARD_REGNO.
4082         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
4083         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
4084
4085 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
4086
4087         * mode-switching.c (reg_dies): Change type of second argument to
4088         "HARD_REG_SET *".
4089         (optimize_mode_switching): Update accordingly.
4090
4091 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
4092
4093         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
4094         in favor of...
4095         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
4096         (hard_reg_set_empty_p): ...these new functions.
4097         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
4098         GO_IF_HARD_REG_SUBSET.
4099         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
4100         instead of GO_IF_HARD_REG_EQUAL.
4101         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
4102         instead of GO_IF_HARD_REG_EQUAL.
4103         * global.c (find_reg): Use hard_reg_set_empty_p instead of
4104         GO_IF_HARD_REG_SUBSET.
4105         (modify_reg_pav): Use hard_reg_set_empty_p instead of
4106         GO_IF_HARD_REG_EQUAL.
4107         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
4108         of GO_IF_HARD_REG_SUBSET.
4109         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
4110         instead of GO_IF_HARD_REG_EQUAL.
4111         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
4112         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
4113         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
4114         of GO_IF_HARD_REG_SUBSET,
4115         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
4116         GO_IF_HARD_REG_SUBSET.
4117         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
4118         instead of GO_IF_HARD_REG_EQUAL.
4119         * config/sh/sh.c (push_regs, calc_live_regs): Use
4120         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
4121         (hard_regs_intersect_p): Delete.
4122
4123 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
4124
4125         * doc/sourcebuild.texi (Test Directives) Add dg-message.
4126
4127 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4128             Richard Henderson  <rth@redhat.com>
4129
4130         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
4131         extra_headers.
4132         (x86_64-*-*): Likewise.
4133
4134         * i386/i386-modes.def (V2QI): New.
4135
4136         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
4137         SSE4A.
4138         (override_options): Support SSE4.1.
4139         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
4140         (IX86_BUILTIN_BLENDPS): Likewise.
4141         (IX86_BUILTIN_BLENDVPD): Likewise.
4142         (IX86_BUILTIN_BLENDVPS): Likewise.
4143         (IX86_BUILTIN_PBLENDVB128): Likewise.
4144         (IX86_BUILTIN_PBLENDW128): Likewise.
4145         (IX86_BUILTIN_DPPD): Likewise.
4146         (IX86_BUILTIN_DPPS): Likewise.
4147         (IX86_BUILTIN_INSERTPS128): Likewise.
4148         (IX86_BUILTIN_MOVNTDQA): Likewise.
4149         (IX86_BUILTIN_MPSADBW128): Likewise.
4150         (IX86_BUILTIN_PACKUSDW128): Likewise.
4151         (IX86_BUILTIN_PCMPEQQ): Likewise.
4152         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
4153         (IX86_BUILTIN_PMAXSB128): Likewise.
4154         (IX86_BUILTIN_PMAXSD128): Likewise.
4155         (IX86_BUILTIN_PMAXUD128): Likewise.
4156         (IX86_BUILTIN_PMAXUW128): Likewise.
4157         (IX86_BUILTIN_PMINSB128): Likewise.
4158         (IX86_BUILTIN_PMINSD128): Likewise.
4159         (IX86_BUILTIN_PMINUD128): Likewise.
4160         (IX86_BUILTIN_PMINUW128): Likewise.
4161         (IX86_BUILTIN_PMOVSXBW128): Likewise.
4162         (IX86_BUILTIN_PMOVSXBD128): Likewise.
4163         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
4164         (IX86_BUILTIN_PMOVSXWD128): Likewise.
4165         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
4166         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
4167         (IX86_BUILTIN_PMOVZXBW128): Likewise.
4168         (IX86_BUILTIN_PMOVZXBD128): Likewise.
4169         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
4170         (IX86_BUILTIN_PMOVZXWD128): Likewise.
4171         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
4172         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
4173         (IX86_BUILTIN_PMULDQ128): Likewise.
4174         (IX86_BUILTIN_PMULLD128): Likewise.
4175         (IX86_BUILTIN_ROUNDPD): Likewise.
4176         (IX86_BUILTIN_ROUNDPS): Likewise.
4177         (IX86_BUILTIN_ROUNDSD): Likewise.
4178         (IX86_BUILTIN_ROUNDSS): Likewise.
4179         (IX86_BUILTIN_PTESTZ): Likewise.
4180         (IX86_BUILTIN_PTESTC): Likewise.
4181         (IX86_BUILTIN_PTESTNZC): Likewise.
4182         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
4183         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
4184         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
4185         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
4186         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
4187         (bdesc_ptest): New.
4188         (bdesc_sse_3arg): Likewise.
4189         (bdesc_2arg): Likewise.
4190         (bdesc_1arg): Likewise.
4191         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
4192         with 3 args.
4193         (ix86_expand_sse_4_operands_builtin): New.
4194         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
4195         smaller than 8 bits as the 2nd arg.
4196         (ix86_expand_sse_ptest): New.
4197         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
4198         (ix86_expand_vector_set): Support SSE4.1.
4199         (ix86_expand_vector_extract): Likewise.
4200
4201         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
4202         __SSE4_1__ for -msse4.1.
4203
4204         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
4205         (UNSPEC_INSERTPS): Likewise.
4206         (UNSPEC_DP): Likewise.
4207         (UNSPEC_MOVNTDQA): Likewise.
4208         (UNSPEC_MPSADBW): Likewise.
4209         (UNSPEC_PHMINPOSUW): Likewise.
4210         (UNSPEC_PTEST): Likewise.
4211         (UNSPEC_ROUNDP): Likewise.
4212         (UNSPEC_ROUNDS): Likewise.
4213
4214         * config/i386/i386.opt (msse4.1): New for SSE4.1.
4215
4216         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
4217         (const_pow2_1_to_32768_operand): Likewise.
4218
4219         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
4220         file.
4221
4222         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
4223         SSE4.1.
4224         (sse4_1_insertps): Likewise.
4225         (*sse4_1_extractps): Likewise.
4226         (sse4_1_ptest): Likewise.
4227         (sse4_1_mulv2siv2di3): Likewise.
4228         (*sse4_1_mulv4si3): Likewise.
4229         (*sse4_1_smax<mode>3): Likewise.
4230         (*sse4_1_umax<mode>3): Likewise.
4231         (*sse4_1_smin<mode>3): Likewise.
4232         (*sse4_1_umin<mode>3): Likewise.
4233         (sse4_1_eqv2di3): Likewise.
4234         (*sse4_1_pinsrb): Likewise.
4235         (*sse4_1_pinsrd): Likewise.
4236         (*sse4_1_pinsrq): Likewise.
4237         (*sse4_1_pextrb): Likewise.
4238         (*sse4_1_pextrb_memory): Likewise.
4239         (*sse4_1_pextrw_memory): Likewise.
4240         (*sse4_1_pextrq): Likewise.
4241         (sse4_1_blendpd): Likewise.
4242         (sse4_1_blendps): Likewise.
4243         (sse4_1_blendvpd): Likewise.
4244         (sse4_1_blendvps): Likewise.
4245         (sse4_1_dppd): Likewise.
4246         (sse4_1_dpps): Likewise.
4247         (sse4_1_movntdqa): Likewise.
4248         (sse4_1_mpsadbw): Likewise.
4249         (sse4_1_packusdw): Likewise.
4250         (sse4_1_pblendvb): Likewise.
4251         (sse4_1_pblendw): Likewise.
4252         (sse4_1_phminposuw): Likewise.
4253         (sse4_1_extendv8qiv8hi2): Likewise.
4254         (*sse4_1_extendv8qiv8hi2): Likewise.
4255         (sse4_1_extendv4qiv4si2): Likewise.
4256         (*sse4_1_extendv4qiv4si2): Likewise.
4257         (sse4_1_extendv2qiv2di2): Likewise.
4258         (*sse4_1_extendv2qiv2di2): Likewise.
4259         (sse4_1_extendv4hiv4si2): Likewise.
4260         (*sse4_1_extendv4hiv4si2): Likewise.
4261         (sse4_1_extendv2hiv2di2): Likewise.
4262         (*sse4_1_extendv2hiv2di2): Likewise.
4263         (sse4_1_extendv2siv2di2): Likewise.
4264         (*sse4_1_extendv2siv2di2): Likewise.
4265         (sse4_1_zero_extendv8qiv8hi2): Likewise.
4266         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
4267         (sse4_1_zero_extendv4qiv4si2): Likewise.
4268         (*sse4_1_zero_extendv4qiv4si2): Likewise.
4269         (sse4_1_zero_extendv2qiv2di2): Likewise.
4270         (*sse4_1_zero_extendv2qiv2di2): Likewise.
4271         (sse4_1_zero_extendv4hiv4si2): Likewise.
4272         (*sse4_1_zero_extendv4hiv4si2): Likewise.
4273         (sse4_1_zero_extendv2hiv2di2): Likewise.
4274         (*sse4_1_zero_extendv2hiv2di2): Likewise.
4275         (sse4_1_zero_extendv2siv2di2): Likewise.
4276         (*sse4_1_zero_extendv2siv2di2): Likewise.
4277         (sse4_1_roundpd): Likewise.
4278         (sse4_1_roundps): Likewise.
4279         (sse4_1_roundsd): Likewise.
4280         (sse4_1_roundss): Likewise.
4281         (mulv4si3): Don't expand for SSE4.1.
4282         (smax<mode>3): Likewise.
4283         (umaxv4si3): Likewise.
4284         (uminv16qi3): Likewise.
4285         (umin<mode>3): Likewise.
4286         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
4287
4288         * doc/extend.texi: Document SSE4.1 built-in functions.
4289
4290         * doc/invoke.texi: Document -msse4.1.
4291
4292 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
4293
4294         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
4295         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
4296         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
4297         (ASM_SPEC): Add asm_pcrel_spec.
4298         (EXTRA_SPECS): Add asm_pcrel_spec.
4299
4300 2007-05-21  David Daney  <ddaney@avtrex.com>
4301
4302         * doc/install.texi (Building a cross compiler): Add requirements
4303         for Java cross compiler.
4304
4305 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4306
4307         PR middle-end/31995
4308         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
4309         Add loopno argument.  Use evolution_function_is_invariant_rec_p
4310         instead of evolution_function_is_constant_p.
4311         Update calls to evolution_function_is_affine_multivariate_p.
4312         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
4313         Add loopno argument.
4314         * tree-scalar-evolution.c (gather_chrec_stats): Call
4315         evolution_function_is_affine_multivariate_p with a loop
4316         number of 0.
4317         * tree-data-ref.c (analyze_miv_subscript): Likewise.
4318         (analyze_overlapping_iterations): Likewise.
4319         (access_functions_are_affine_or_constant_p): Likewise.
4320         (build_classic_dist_vector_1): If the access functions
4321         are equal, don't do anything.
4322
4323 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
4324             Paolo Carlini  <pcarlini@suse.de>
4325             Uros Bizjak  <ubizjak@gmail.com>
4326
4327         * c-cppbuiltin.c (c_cpp_builtins): Define
4328         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
4329         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
4330         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
4331         * doc/cpp.texi ([Standard Predefined Macros]): Document.
4332
4333 2007-05-21  Mike Stump  <mrs@apple.com>
4334
4335         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
4336         handling as well.
4337         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
4338
4339 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
4340
4341         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
4342         implementation if __OPTIMIZE__ is not defined.
4343         (_mm_alignr_pi8): Ditto.
4344         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
4345         (_mm_inserti_si64): Ditto.
4346         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
4347         (_mm_slli_epi16): Ditto.
4348         (_mm_slli_epi32): Ditto.
4349         (_mm_slli_epi64): Ditto.
4350         (_mm_srai_epi16): Ditto.
4351         (_mm_srai_epi32): Ditto.
4352         (_mm_srli_si128): Ditto.
4353         (_mm_slli_si128): Ditto.
4354         (_mm_srli_epi16): Ditto.
4355         (_mm_srli_epi32): Ditto.
4356         (_mm_srli_epi64): Ditto.
4357         (_mm_extract_epi16): Ditto.
4358         (_mm_insert_epi16): Ditto.
4359         (_mm_shufflehi_epi16): Ditto.
4360         (_mm_shufflelo_epi16): Ditto.
4361         (_mm_shuffle_epi32): Ditto.
4362         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
4363         (_m_pextrw): Ditto.
4364         (_mm_insert_pi16): Ditto.
4365         (_m_pinsrw): Ditto.
4366         (_mm_shuffle_pi16): Ditto.
4367         (_m_pshufw): Ditto.
4368         (_mm_shufle_ps): Ditto.
4369         (_mm_prefetch): Ditto.
4370
4371 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4372
4373         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
4374         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
4375         * real.c (encode_i370_single, decode_i370_single,
4376         encode_i370_double, decode_i370_double): Functions removed.
4377         (i370_single_format, i370_double_format): Initializations removed.
4378         (real_maxval, round_for_format, exact_real_truncate, significand_size):
4379         Consider the log2_b field to always be one.
4380         (ieee_single_format, mips_single_format, coldfire_single_format,
4381         ieee_double_format, mips_double_format, coldfire_double_format,
4382         ieee_extended_motorola_format, ieee_extended_intel_96_format,
4383         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4384         ibm_extended_format, mips_extended_format, ieee_quad_format,
4385         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4386         decimal_single_format, decimal_double_format, decimal_quad_format,
4387         c4x_single_format, c4x_extended_format, real_internal_format): Remove
4388         initialization of log2_b.
4389         * real.h (i370_single_format, i370_double_format): Declarations removed.
4390         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
4391         field to always be one.
4392
4393 2007-05-21  Andreas Schwab  <schwab@suse.de>
4394
4395         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
4396         NOTE_INSN_BASIC_BLOCK_P.
4397         (process_for_unwind_directive): Likewise.
4398
4399 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
4400
4401         * builtins.c (expand_builtin_setjmp_setup): Update comment.
4402         * function.h (struct function): Move va_list_gpr_size,
4403         va_list_fpr_size, function_frequency to front of bitfields.  Add
4404         calls_unwind_init.
4405         (current_function_calls_unwind_init): New.
4406         * except.c (expand_builtin_unwind_init): Set
4407         current_function_calls_unwind_init not
4408         current_function_has_nonlocal_label.
4409         * reload1.c (has_nonexceptional_receiver): New.
4410         (reload): Use it and current_function_calls_unwind_init to
4411         determine whether call-saved regs must be saved.
4412
4413 2007-05-20  Jan Hubicka  <jh@suse.cz>
4414
4415         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
4416         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
4417         * ddg.c (create_ddg): LIkewise.
4418         * final.c (final): Remove hunk moving line numbernotes around since
4419         they are no longer present at this stage.
4420         (final_scan_insn): Use NOTE_KIND instead of
4421         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
4422         (output_asm_label): Likewise.
4423         * reorg.c (dbr_schedule): Likewise.
4424         * haifa-sched.c (unlink_other_notes): Likewise.
4425         * mode-switching.c (optimize_mode_switching): Likewise.
4426         * graph.c (start_bb): Likewise.
4427         * rtl.def (NOTE): Update description.
4428         * jump.c (squeeze_notes): Delete.
4429         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
4430         NOTE_INSN_BASIC_BLOCK_P when possible.
4431         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
4432         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
4433         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
4434         (dwarf2out_var_location): Likewise.
4435         * cfgbuild.c (make_edges): Likewise.
4436         (find_basic_blocks_1): Likewise.
4437         * function.c (reorder_blocks_1): Likewise.
4438         (epilogue_done): Likewise.
4439         (reposition_prologue_and_epilogue_notes): Likewise.
4440         * print-rtl.c (print_rtx): Likewise; drop code for printing line number
4441         notes.
4442         (print_rtl): Likewise.
4443         (print_rtl_single): Likewise.
4444         * gcse.c (insert_insn_start_bb): Likewise.
4445         * alias.c (init_alias_analysis): Likewise.
4446         * calls.c (fixup_tail_calls): Likewise.
4447         * except.c (sjlj_emit_function_enter): Likewise.
4448         * emit-rtl.c (add_insn_after): Likeiwse.
4449         (emit_label_before): Likewise.
4450         (emit_label_after): Likewise.
4451         (emit_note_before, emit_note_after, emit_note): Update
4452         parameter to be enum insn_note; do not deal with source
4453         files.
4454         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
4455         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
4456         when possible.
4457         (merge_blocks_move_successor_nojumps): Simplify now when
4458         we don't have BLOCK notes.
4459         (try_optimize_cfg): Likewise.
4460         * cfglayout.c (skip_insns_after_block): Likewise.
4461         (record_effective_endpoints): Likewise.
4462         (duplicate_insn_chain): Likewise.
4463         * varasm.c (output_constant_pool_1): Likewise.
4464         * sched-deps.c (sched_analyze): Likewise.
4465         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
4466         Exterminate.
4467         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
4468         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
4469         (SET_INSN_DELETED): Simplify.
4470         (NOTE_LINE_NUMBER): Exterminate.
4471         (NOTE_LINE_KIND): New.
4472         (NOTE_INSN_BASIC_BLOCK_P): Update.
4473         (enum insn_note): Simplify.
4474         (GET_NOTE_INSN_NAME) Simplify.
4475         (emit_note_before, emit_note_after, emit_note): Update prototype.
4476         (squeeze_notes): Remove.
4477         * sched-int.h (NOTE_NOT_BB_P): Update.
4478         * resource.c (mark_target_live_regs): Update.
4479         * sched-rgn.c (debug_dependencies): Update.
4480         * sched-vis.c (print_insn): Update.
4481         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
4482         * config/i386/i386.c (ix86_output_function_epilogue): Update.
4483         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
4484         (TARGET_ADJUST_UNROLL_MAX): Likewise.
4485         (split_branches): Update.
4486         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
4487         4.0.0.
4488         (sh_adjust_unroll_max): Exterminate.
4489         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
4490         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
4491         (m68hc11_reorg): Likewise.
4492         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
4493         (emit_predicate_relation_info): Update.
4494         (process_for_unwind_directive): Update.
4495         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
4496         (output_call): Update.
4497         * config/pa/pa.c (output_lbranch): Update.
4498         (output_millicode_call): Update.
4499         (output_call): Update.
4500         (pa_combine_instructions): Update.
4501         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
4502         * config/bfin/bfin.c (gen_one_bundle): Update.
4503         * cfgrtl.c (can_delete_note_p): Update.
4504         (delete_insn): Update.
4505         (rtl_merge_blocks): Update.
4506         (commit_one_edge_insertion): Update.
4507         (rtl_verify_flow_info): Update.
4508         * stmt.c (expand_case): Do not call squeeze_notes.
4509
4510 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4511
4512         PR middle-end/7651
4513         PR c++/11856
4514         PR c/12963
4515         PR c/23587
4516         PR other/29694
4517         * c.opt (Wtype-limits): New.
4518         * doc/invoke.texi (Wtype-limits): Document it.
4519         (Wextra): Enabled by -Wextra.
4520         * c-opts.c (c_common_post_options): Enabled by -Wextra.
4521         * c-common.c (shorten_compare): Warn with Wtype-limits.
4522
4523 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
4524
4525         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
4526         inlined function, not as a macro.
4527         (_mm_alignr_pi8): Ditto.
4528         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
4529         (_mm_inserti_si64): Ditto.
4530         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
4531         (_mm_extract_epi16): Ditto.
4532         (_mm_insert_epi16): Ditto.
4533         (_mm_shufflehi_epi16): Ditto.
4534         (_mm_shufflelo_epi16): Ditto.
4535         (_mm_shuffle_epi32): Ditto.
4536         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
4537         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
4538         all functions.
4539         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
4540         float constant.
4541         (_m_to_float): Use C89 compatible assignment.
4542
4543 2007-04-20  Martin Michlmayr  <tbm@cyrius.com>
4544
4545         PR target/32007
4546         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
4547
4548 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4549
4550         PR middle-end/7651
4551         * doc/invoke.texi (Wreturn-type): Complete description.
4552         (Wextra): Delete item about return-type warning.
4553         * c-decl.c: Delete redundant Wextra warning.
4554
4555 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
4556
4557         PR target/31585
4558         * config/i386/pmmintrin.h: Do not include xmmintrin.h
4559         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
4560         inlined function, not as a macro.
4561         (_mm_prefetch): Ditto.
4562         (_m_pextrw): Ditto.
4563         (_mm_insert_pi16): Ditto.
4564         (_m_pinsrw): Ditto.
4565         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
4566         (_m_pshufw): Ditto. Add const to __N argument.
4567         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
4568         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
4569         (_mm_slli_epi32): Ditto.
4570         (_mm_srli_si128): Implement as always inlined function, not as a macro.
4571         Add __inline to function declaration.
4572         (_mm_slli_si128): Ditto.
4573
4574 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
4575
4576         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
4577         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
4578         New constants.
4579         (struct fenv): New structure.
4580         (FP_HANDLE_EXCEPTIONS): New define.
4581         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
4582         (_FP_DECL_EXP): New define.
4583         (FP_INIT_ROUNDMODE): New define.
4584         (FP_ROUNDMODE): New define.
4585
4586 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4587
4588         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
4589         (Wconversion): Update description.
4590         (Wconversion-sign): New.
4591         * c.opt (Wconversion-sign): New.
4592         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
4593         means disabled for C++. Otherwise, take the status of Wconversion.
4594         * c-common.c (conversion_warning): Warn with either Wconversion or
4595         Wconversion-sign.
4596         (warnings_for_convert_and_check): Conditions are already checked by
4597         conversion_warning.
4598         (convert_and_check): Don't check warnings if the conversion failed.
4599
4600 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
4601            Anatoly Sokolov <aesok@dol.ru>
4602
4603         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
4604         avr_epilogue_uses) : Add declaration.
4605         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
4606         * config/avr/constraints.md (R): New constraint.
4607         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
4608         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
4609         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
4610         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
4611         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
4612         call_prologue_saves, epilogue_restores, return_from_epilogue,
4613         return_from_main_epilogue, return_from_interrupt_epilogue,
4614         return_from_naked_epilogue, prologue, epilogue): New patterns.
4615         (jump): Handle symbol reference.
4616         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
4617         avr_output_function_prologue, avr_output_function_epilogue): Remove
4618         functions.
4619         (avr_init_machine_status, expand_prologue, expand_epilogue,
4620         avr_asm_function_end_prologue, avr_epilogue_uses,
4621         avr_asm_function_begin_epilogue): New functions.
4622         (prologue_size, epilogue_size, jump_tables_size): Remove global
4623         variables.
4624         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4625         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
4626         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
4627         (avr_override_options): Initialise init_machine_status.
4628         (output_movhi): Handle all stack pointer loads.
4629         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
4630         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
4631         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
4632         (EPILOGUE_USES) Redefine.
4633         (machine_function) Declare.
4634
4635 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
4636
4637         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
4638         Use a single return statement.
4639
4640 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4641
4642         PR middle-end/30250
4643         * builtins.c (do_mpfr_lgamma_r): New.
4644         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
4645         * tree.h (CASE_FLT_FN_REENT): New.
4646
4647 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
4648
4649         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
4650         (output_die): Use 'unsigned long' with %x.
4651         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
4652         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
4653         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
4654
4655         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
4656
4657 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4658
4659         PR target/31989
4660         PR target/31681
4661         PR target/31666
4662         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
4663         true if function has no argument.
4664
4665 2007-05-18  DJ Delorie  <dj@redhat.com>
4666
4667         * config/mips/mips.c (mips_offset_within_alignment_p): New.
4668         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
4669
4670 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
4671
4672         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
4673         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
4674         count_trailing_zeros.
4675         (__i386__): Implement count_leading_zeros using __builtin_clz().
4676         Implement count_trailing_zeros usign __builtin_ctz().
4677
4678 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
4679
4680         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
4681
4682 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
4683
4684         PR middle-end/31344
4685         * expr.c (emit_move_change_mode): Change mode of push operands here.
4686
4687 2007-05-17  Ian Lance Taylor  <iant@google.com>
4688
4689         PR tree-optimization/31953
4690         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
4691         Change all callers.
4692         (set_value_range_to_null): Call set_value_range_to_value.
4693         (extract_range_from_comparison): Likewise.
4694
4695 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4696
4697         * toplev.c (print_version): Output GMP/MPFR version info.
4698
4699         * builtins.c (CASE_MATHFN_REENT): New macro.
4700         (mathfn_built_in): Use it.
4701         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
4702         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
4703         BUILT_IN_LGAMMAL_R): New.
4704         * doc/extend.texi: Document new builtins.
4705
4706         PR middle-end/31796
4707         * builtins.c (do_mpfr_remquo): New.
4708         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
4709         (fold_builtin_3): Handle BUILT_IN_REMQUO.
4710
4711         PR middle-end/30251
4712         * builtins.c (fold_builtin_1): Handle y0, y1.
4713         (fold_builtin_2): Handle yn.
4714
4715         PR middle-end/30251
4716         * builtins.c (do_mpfr_bessel_n): New.
4717         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
4718         (fold_builtin_2): Handle BUILT_IN_JN.
4719
4720 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
4721
4722         PR target/31965
4723         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
4724         TYPE_PRECISION (intmax_type_node).
4725
4726 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
4727
4728         PR target/31850
4729         * reload.c (subst_reloads): Remove checking.
4730
4731 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4732
4733         PR rtl-optimization/31691
4734         * combine.c (simplify_set): Build a new src pattern instead of
4735         substituting its operands in the COMPARE case.
4736
4737 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4738
4739         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
4740         (execute_vrp): Preserve loops through jump threading.
4741         * tree-ssa-threadupdate.c (thread_single_edge,
4742         dbds_continue_enumeration_p, determine_bb_domination_status,
4743         thread_through_loop_header): New functions.
4744         (create_edge_and_update_destination_phis,
4745         create_edge_and_update_destination_phis): Set loops for the new blocks.
4746         (prune_undesirable_thread_requests): Removed.
4747         (redirect_edges): Do not pretend that redirect_edge_and_branch can
4748         create new blocks.
4749         (thread_block): Do not call prune_undesirable_thread_requests.
4750         Update loops.
4751         (mark_threaded_blocks): Select edges to thread here.
4752         (thread_through_all_blocks): Take may_peel_loop_headers argument.
4753         Thread edges through loop headers independently.
4754         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
4755         * tree-pass.h (TODO_mark_first_instance): New.
4756         (first_pass_instance): Declare.
4757         * cfghooks.c (duplicate_block): Put the block to the original loop
4758         if copy is not specified.
4759         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
4760         jump threading.  Pass may_peel_loop_headers to
4761         thread_through_all_blocks according to first_pass_instance.
4762         * cfgloop.h (create_preheader): Declare.
4763         * tree-flow.h (thread_through_all_blocks): Declaration changed.
4764         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
4765         * passes.c (first_pass_instance): New variable.
4766         (next_pass_1): Set TODO_mark_first_instance.
4767         (execute_todo): Set first_pass_instance.
4768
4769 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
4770
4771         PR tree-optimization/24659
4772         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
4773         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
4774         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
4775         OTI_vec_pack_ufix_trunc.
4776         (vec_unpacks_float_hi_optab): Define new macro.
4777         (vec_unpacks_float_lo_optab): Ditto.
4778         (vec_unpacku_float_hi_optab): Ditto.
4779         (vec_unpacku_float_lo_optab): Ditto.
4780         (vec_pack_sfix_trunc_optab): Ditto.
4781         (vec_pack_ufix_trunc_optab): Ditto.
4782         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
4783         and vec_pack_[s|u]fix_trunc_optab using
4784         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
4785         * tree-vectorizer.c (supportable_widening_operation): Handle
4786         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
4787         (supportable_narrowing_operation): New function.
4788         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
4789         * tree-vect-transform.c (vectorizable_conversion): Handle
4790         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
4791         (vect_gen_widened_results_half): Move before vectorizable_conversion.
4792         (vectorizable_type_demotion): Call supportable_narrowing_operation()
4793         to check for target support.
4794         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
4795         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
4796         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
4797         for VEC_PACK_FIX_TRUNC_EXPR.
4798         (expand_binop): Special case mode of the result for
4799         vec_pack_[u|s]fix_trunc_optab.
4800         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
4801         vec_pack_[u|s]fix_trunc_optab.
4802
4803         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
4804         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
4805         * tree-pretty-print.c (dump_generic_node): Handle
4806         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
4807         VEC_PACK_FIX_TRUNC_EXPR.
4808         (op_prio): Ditto.
4809         * expr.c (expand_expr_real_1): Ditto.
4810         * tree-inline.c (estimate_num_insns_1): Ditto.
4811         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4812
4813         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
4814         (vec_unpacks_float_lo_v8hi): Ditto.
4815         (vec_unpacku_float_hi_v8hi): Ditto.
4816         (vec_unpacku_float_lo_v8hi): Ditto.
4817         (vec_unpacks_float_hi_v4si): Ditto.
4818         (vec_unpacks_float_lo_v4si): Ditto.
4819         (vec_pack_sfix_trunc_v2df): Ditto.
4820
4821         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
4822         Document.
4823         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
4824         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
4825         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
4826         [vec_pack_ufix_trunc]: Ditto.
4827         [vec_unpacks_float_hi]: Ditto.
4828         [vec_unpacks_float_lo]: Ditto.
4829         [vec_unpacku_float_hi]: Ditto.
4830         [vec_unpacku_float_lo]: Ditto.
4831
4832 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
4833
4834         * soft-fp/README: Update for new files.
4835         * soft-fp/floattisf.c: New file.
4836         * soft-fp/floattidf.c: New file.
4837         * soft-fp/floattitf.c: New file.
4838         * soft-fp/floatuntisf.c: New file.
4839         * soft-fp/floatuntidf.c: New file.
4840         * soft-fp/floatuntitf.c: New file.
4841         * soft-fp/fixsfti.c: New file.
4842         * soft-fp/fixdfti.c: New file.
4843         * soft-fp/fixtfti.c: New file.
4844         * soft-fp/fixunssfti.c: New file.
4845         * soft-fp/fixunsdfti.c: New file.
4846         * soft-fp/fixunstfti.c: New file.
4847         * soft-fp/extendxftf.c: New file.
4848         * soft-fp/trunctfxf.c: New file.
4849
4850         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
4851         (__trunctfxf2): Ditto.
4852
4853         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
4854         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
4855         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
4856         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
4857         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
4858         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
4859
4860         * config/i386/t-fprules-softfp64: New file.
4861         * config/i386/sfp-machine.h: New file.
4862         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
4863         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
4864         and soft-fp/t-softfp to tmake_file.
4865         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4866         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
4867
4868         * config/i386/t-linux64 (softfp_wrap_start): New.
4869         (softfp_wrap_end): New.
4870         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
4871         supported for TARGET_64BIT.
4872
4873 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
4874
4875         * c-common.c (c_common_signed_or_unsigned_type): Emulate
4876         c_common_unsigned_type behavior.
4877
4878 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
4879
4880         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
4881         calls as pure.
4882
4883 2007-05-16  Eric Christopher  <echristo@apple.com>
4884
4885         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
4886         saving after stack push. Set sp_offset whenever we push.
4887         (rs6000_emit_epilogue): Move altivec register restore before
4888         stack push.
4889
4890 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
4891
4892         * configure.ac: Allow sysroots to be relocated under $prefix as
4893         well as $exec_prefix.
4894         * configure: Regenerate.
4895
4896 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
4897
4898         Revert:
4899
4900         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
4901
4902         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
4903         (gcc_tooldir): Likewise.
4904         * configure: Regenerate.
4905         * Makefile.in (libsubdir_to_prefix): New variable, based on the
4906         old configure.ac gcc_tooldir setting.
4907         (prefix_to_exec_prefix): New variable.
4908         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
4909         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
4910
4911 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
4912
4913         * c-typeck.c (build_binary_op): Return early for error.
4914
4915 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
4916
4917         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
4918         struct nb_iter_bound.
4919         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
4920         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
4921         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
4922         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
4923         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
4924         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
4925         (del_scev_info): Use ggc_free.
4926         (scev_initialize): Allocate scalar_evolution_info in gc memory.
4927         * loop-init.c: Include ggc.h.
4928         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
4929         (loop_optimizer_finalize): Use ggc_free.
4930         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
4931         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
4932         pass_iv_optimize): Add TODO_ggc_collect.
4933         * function.h (struct function): Remove skip marker from x_current_loops.
4934         * cfgloop.c: Include ggc.h.
4935         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
4936         memory.
4937         (establish_preds): Vector superloops is gc allocated.
4938         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
4939         loop->exits list.
4940         (flow_loops_find): Vector larray is gc allocated.
4941         (loop_exit_free): Use ggc_free.
4942         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
4943         that head of exits list is now not a part of struct loop.
4944         (record_loop_exits): Allocate exits table in gc memory.
4945         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
4946         head of exits list is now not a part of struct loop.
4947         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
4948         struct loop_exit): Add GTY marker.
4949         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
4950         Add skip marker to aux field.  Make head of exits list a separate
4951         object.
4952         (struct loops): Add GTY marker.  Make larray vector gc allocated.
4953         Add param marker to exits table.
4954         (get_loops): Type changed.
4955         * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
4956         dependency.
4957         (cfgloop.o, loop-init.o): Add ggc.h dependency.
4958         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
4959         * basic-block.h (struct basic_block_def): Remove skip marker from
4960         loop_father field.
4961
4962 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
4963
4964         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
4965         of 0 in the call to expand_expr().
4966         (expand_builtin_mathfn_3): Ditto.
4967         (expand_builtin_interclass_mathfn): Ditto.
4968         (expand_builtin_cexpi): Ditto.
4969         (expand_builtin_int_roundingfn): Ditto.
4970         (expand_builtin_int_roundingfn_2): Ditto.
4971         (expand_builtin_pow): Ditto.
4972         (expand_builtin_powi): Ditto.
4973         (expand_builtin_bswap): Ditto.
4974         (expand_builtin_unop): Ditto.
4975         (expand_builtin_fabs): Ditto.
4976         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
4977         the call to expand_expr().
4978         (expand_builtin_sync_operation): Ditto.
4979         (expand_builtin_compare_and_swap): Ditto.
4980         (expand_builtin_lock_test_and_set): Ditto.
4981         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
4982         instead of 0 in the call to expand_expr().
4983         (expand_builtin_extract_return_addr): Ditto.
4984         (expand_builtin_eh_return): Ditto.
4985         (expand_eh_return): Ditto.
4986         * explow.c (expr_size): Ditto.
4987         * expr.c (optimize_bitfield_assignment_op): Ditto.
4988         (expand_assignement): Ditto.
4989         (store_expr): Ditto.
4990         (store_field): Ditto.
4991         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
4992         the call to expand_expr().
4993         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
4994         in the call to expand_expr().
4995         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
4996         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
4997         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
4998         of expand_expr().
4999         * optabs.c (expand_vec_shift_expr): Ditto.
5000         (expand_vec_cond_expr): Ditto.
5001         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
5002         call to expand_expr().
5003         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
5004         in the call to expand_expr().
5005
5006 2007-05-14  Dave Korn  <dave.korn@artimi.com>
5007
5008         * genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
5009
5010 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
5011
5012         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
5013         instead of c_common_unsigned_type.
5014         (c_common_unsigned_type): Remove.
5015         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
5016         c_common_unsigned_type.
5017         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
5018         c_common_unsigned_type.
5019         * c-common.h (c_common_unsigned_type): Remove.
5020         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
5021         c_common_unsigned_type.
5022         * c-format.c (check_format_types): Use unsigned_type_for instead of
5023         c_common_unsigned_type.
5024         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5025         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
5026         c_common_unsigned_type.
5027         * convert.c (convert_to_integer): Use unsigned_type_for instead of
5028         lang_hooks.types.unsigned_type.
5029         * expmed.c (make_tree): Use unsigned_type_for instead of
5030         lang_hooks.types.unsigned_type.
5031         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
5032         lang_hooks.types.unsigned_type.
5033         (build_range_check): Likewise.
5034         (fold_unary): Likewise.
5035         (fold_binary): Likewise.
5036         (fold_ternary): Likewise.
5037         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5038         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
5039         * tree.c (get_unsigned_type): New.
5040         (unsigned_type_for): Use get_unsigned_type instead of
5041         lang_hooks.types.unsigned_type.
5042
5043 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
5044
5045         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
5046         to m68k_get_function_kind.  Update its prototype.
5047         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
5048         interrupt_thread.
5049         (m68k_interrupt_function_p): Return enum m68k_function_type
5050         instead of bool.  Rename to m68k_get_function_kind.
5051         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
5052         target is not fido.
5053         (m68k_compute_frame_layout): Don't mark any register for save
5054         if an interrupt_thread attribute is specified.
5055         (m68k_hard_regno_rename_ok): Update a use of
5056         m68k_interrupt_function_p.
5057         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
5058         m68k_interrupt_function_p.
5059         (m68k_function_type): New.
5060         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
5061         for a function with an interrupt_thread attribute.
5062         * doc/extend.texi: Document the interrupt_thread attribute.
5063
5064 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
5065
5066         Fix PR tree-optimization/31911
5067         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
5068         if they didn't change the expression.
5069
5070 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
5071
5072         * tree-scalar-evolution.c (resolve_mixers): Exported.
5073         * tree-scalar-evolution.h (resolve_mixers): Declare.
5074         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
5075         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
5076         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
5077         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
5078         init_array_ref, init_pointer_ref, analyze_indirect_ref,
5079         strip_conversion, analyze_offset_expr, address_analysis,
5080         object_analysis, analyze_offset): Removed.
5081         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
5082         split_constant_offset, canonicalize_base_object_address,
5083         object_address_invariant_in_loop_p, disjoint_objects_p,
5084         dr_may_alias_p, dr_address_invariant_p): New functions.
5085         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
5086         and dr_analyze_alias.
5087         (initialize_data_dependence_relation): Use dr_may_alias_p
5088         and object_address_invariant_in_loop_p.
5089         (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
5090         is chrec_dont_know.
5091         (find_data_references_in_stmt): Restrict the analysis of data references
5092         to the given loop nest.
5093         (find_data_references_in_loop): Made static.  Pass loop nest to
5094         find_data_references_in_stmt.
5095         (compute_data_dependences_for_loop): Use DR_VOPS.
5096         (free_data_ref): Free DR_VOPS.
5097         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
5098         (struct innermost_loop_behavior): ... new.
5099         (struct base_object_info): Replaced by ...
5100         (struct indices): ... new.
5101         (struct dr_alias): New.
5102         (enum data_ref_type): Removed.
5103         (struct data_reference): Consist of struct innermost_loop_behavior,
5104         struct indices and struct dr_alias.
5105         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
5106         (DR_MEMTAG): Renamed to ...
5107         (DR_SYMBOL_TAG): ... this.
5108         (find_data_references_in_loop): Declaration removed.
5109         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
5110         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
5111         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
5112         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
5113
5114 2007-05-13  Revital Eres  <eres@il.ibm.com>
5115
5116         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
5117         which walks virtual def-use chains to find redundant stores.
5118         (dse_optimize_stmt): Call it.
5119
5120 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
5121
5122         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
5123         * passes.c (init_optimization_passes): Move pass_jump_bypass
5124         after loop2.
5125
5126         * basic-block.h (bb_has_eh_pred): Fix style issue.
5127
5128 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
5129
5130         PR rtl-optimization/31848
5131         * loop-invariant.c (move_invariant_reg): If we move an insn
5132         with a REG_EQUAL note, and that insn is not always executed,
5133         remove the REG_EQUAL note.
5134
5135 2007-05-12  Richard Guenther  <rguenther@suse.de>
5136
5137         PR tree-optimization/31797
5138         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
5139         propagate into a stmt that has volatile ops.
5140
5141 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
5142
5143         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
5144         (gcc_tooldir): Likewise.
5145         * configure: Regenerate.
5146         * Makefile.in (libsubdir_to_prefix): New variable, based on the
5147         old configure.ac gcc_tooldir setting.
5148         (prefix_to_exec_prefix): New variable.
5149         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
5150         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
5151
5152 2007-05-11  Silvius Rus  <rus@google.com>
5153
5154         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
5155         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
5156         * c-common.h (strict_aliasing_warning): Change return type.
5157         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
5158         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
5159         (build_c_cast): Condition call to strict_aliasing_warning.
5160         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
5161         * flags.h (set_Wstrict_aliasing): Declare.
5162         * opts.c (set_Wstrict_alising): Define, add call to.
5163         * tree-flow.h (strict_aliasing_warning_backend): Declare.
5164         * tree-ssa-alias-warnings.c: New file.
5165         * tree-ssa-alias.c (compute_may_aliases): Add call to
5166         strict_aliasing_warning_backend.
5167
5168 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
5169
5170         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
5171         Use loop_depth and loop_outer accessor functions.
5172         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
5173         determine_invariantness_stmt, move_computations_stmt): Ditto.
5174         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
5175         add_loop, loopify, unloop, fix_loop_structure): Ditto.
5176         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
5177         * tree-scalar-evolution.c (interpret_loop_phi,
5178         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
5179         instantiate_parameters_1, scev_const_prop): Ditto.
5180         * cfghooks.c (make_forwarder_block): Ditto.
5181         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
5182         * modulo-sched.c (loop_canon_p): Ditto.
5183         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
5184         slpeel_can_duplicate_loop_p): Ditto.
5185         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
5186         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
5187         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
5188         cancel_loop, verify_loop_structure): Ditto.
5189         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
5190         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
5191         superloops vector instead of "pred" array.
5192         (establish_preds): Take father loop as an argument.  Initialize the
5193         superloops vector.
5194         (flow_loop_tree_node_add): Pass father loop to establish_preds.  Do not
5195         initialize loop->outer.
5196         (flow_loop_tree_node_remove): Truncate the superloops vector.
5197         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
5198         "pred" merged to "superloops" vector.
5199         (loop_depth, loop_outer): New.
5200         (fel_init): Use loop_outer.
5201
5202 2007-05-11  Jan Hubicka  <jh@suse.cz>
5203
5204         * cgraphunit.c: Include gt-cgraphunit.h
5205         (static_ctors, static_dtors): New static vars.
5206         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
5207         based on implementation in c-common.c
5208         (cgraph_finalize_function): Call record_cdtor_fn.
5209         (cgraph_optimize): Call cgraph_build_cdtor_fns.
5210         * decl.c (finish_function): Do not call c_record_cdtor_fn.
5211         (c_write_global_declarations): Do not call c_build_cdtor_fns.
5212         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
5213         build_cdtor, c_build_cdtor_fns): Remove.
5214         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
5215         c_build_cdtor_fns): Remove prototype.
5216
5217 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
5218
5219         PR other/31852
5220         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
5221         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
5222         * builtins.c (fold_builtin_memchr): New.
5223         (expand_builtin_memchr): Call the latter.
5224         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
5225         * doc/extend.texi ([Other built-in functions provided by GCC]):
5226         Document memchr.
5227
5228 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
5229
5230         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
5231         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
5232         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
5233         PFPO_OP1_TYPE_SHIFT): Constants added.
5234         (DFP_ALL): Mode macro defined.
5235         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
5236         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
5237         Insn definitions added.
5238         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
5239         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
5240         Expanders added.
5241
5242 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
5243
5244         PR tree-optimization/31885
5245         * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
5246         to be undetermined.
5247         (automatically_generated_chrec_p): Return false for NULL.
5248
5249 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
5250
5251         * config/bfin/bfin.h (MOVE_RATIO): Define.
5252
5253 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
5254
5255         * config.gcc (sparc-wrs-vxworks): New target.
5256         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
5257         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
5258         * config/sparc/sparc.h: Include vxworks-dummy.h.
5259         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
5260         include LABEL_REFs too.
5261         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
5262         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
5263         VxWorks.
5264         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
5265         on VxWorks.
5266         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
5267         (sparc_emit_call_insn): New function.
5268         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
5269         functions when generating VxWorks PIC.
5270         * config/sparc/sparc.md (vxworks_load_got): New pattern.
5271         (call, call_value): Use sparc_emit_call_insn instead of
5272         emit_call_insn.
5273
5274 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
5275
5276         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
5277
5278 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
5279
5280         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
5281         for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
5282         instead of operand_subword.
5283
5284 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
5285
5286         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
5287         * config/bfin/bfin.c (bfin_local_alignment): New function.
5288         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
5289
5290 2007-05-08  Chao-ying Fu  <fu@mips.com>
5291
5292         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
5293         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
5294         (smsub_widen_optab, umsub_widen_optab): Define.
5295         * optabs.c (init_optabs): Initialize smsub_widen_optab and
5296         umsub_widen_optab.
5297         * genopinit.c (optabs): Fill in smsub_widen_optab and
5298         umsub_widen_optab.
5299         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
5300         and umsub_widen_optab to implement multiply-subtract sequences.
5301         * config/mips/mips.md (*msac<u>_di): Rename to...
5302         (<u>msubsidi4): ...this.  Extend condition to include
5303         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
5304         of operand 0 to "ka" and use the three-operand form of msub<u>
5305         for TARGET_DSPR2.
5306         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
5307         to define_expands.
5308
5309 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5310
5311         PR rtl-optimization/28011
5312         * reload.c (push_reload): Set dont_share if IN appears in OUT
5313         also when IN is a PLUS rtx.
5314         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
5315         are same PLUS rtx.
5316
5317 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
5318
5319         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
5320         call unshare_all_decls.
5321         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
5322         (unshare_all_decls): Remove.
5323
5324 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
5325
5326         PR 31847
5327         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
5328         dumps.
5329
5330 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5331             Nigel Stephens  <nigel@mips.com>
5332
5333         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
5334         Update comments and all uses.
5335         (MIN_FPRS_PER_FMT): Define.
5336         * config/mips/mips.c (function_arg): Fix to correctly handle
5337         the -mips32r2 -mfp64 -mabi=32 case.
5338         (override_options): Enable use of odd-numbered registers for
5339         SFmode values on MIPS32.
5340         (mips_save_reg_p): Save whole floating-point register pair if
5341         either half is used.
5342         (compute_frame_size): Fix comment.
5343
5344 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
5345
5346         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
5347         argument of type bool.
5348         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
5349         argument. Safely select temporary P register according to it.
5350         (do_link): Change call site of add_to_reg accordingly.
5351         (do_unlink): Add epilogue_p as a fourth argument and pass it
5352         to add_to_reg.
5353         (expand_interrupt_handler_epilogue): Change call of do_unlink
5354         accordingly.
5355         (bfin_expand_prologue): Add a third argument sibcall_p.
5356         * config/bfin/bfin.md (epilogue): Change call of
5357         bfin_expand_epilogue accordingly.
5358         (sibcall_epilogue): Likewise.
5359         (eh_return_internal): Likewise.
5360
5361         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
5362         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
5363         * config/bfin/bfin.c (bfin_handle_option): Handle
5364         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
5365         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
5366         Support bf534, bf536 and bf561.
5367         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
5368
5369 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
5370
5371         PR target/31854
5372         * config/i386/i386.c (ix86_function_regparm): Process local
5373         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
5374
5375 2007-05-07  Mike Stump  <mrs@apple.com>
5376
5377         * doc/invoke.texi (Warning Options): Document that -Wempty-body
5378         also checks for and while statements in C++.
5379
5380 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
5381
5382         * gcc.c (at_file_supplied): New variable.
5383         (main): Set it if we expanded argv.
5384         (do_spec_1): Pass an @-file to the linker if we were called with
5385         an @-file argument and HAVE_GNU_LD.
5386         * collect2.c (at_file_supplied): New variable.
5387         (response_file): New variable.
5388         (collect_exit): Unlink response_file if necessary.
5389         (handler): Likewise.
5390         (do_wait): Likewise.
5391         (main): Set at_file_supplied if we expanded argv.
5392         (collect_execute): Pass an @-file to subprocesses if we were called
5393         with an @-file argument.
5394         * configure.ac: Add define for HAVE_GNU_LD.
5395         * configure: Regenerate.
5396         * config.in: Regenerate.
5397
5398 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
5399
5400         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
5401         operand to HI mode.
5402         (mulsi3): New.
5403         (divsi3): New.
5404         (udivsi3): New.
5405
5406 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
5407
5408         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
5409         (TARGET_ENCODE_SECTION_INFO): Re-define.
5410         (m32c_encode_section_info): New
5411         (function_vector_handler): New
5412         (current_function_special_page_vector): New
5413         (m32c_special_page_vector_p): New.
5414         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
5415         Prototype.
5416         * config/m32c/jump.md: Added instruction JSRS for functions
5417         with attribute "function_vector".
5418         * doc/extend.texi (function_vector): Added description
5419         for M16C, M32C targets.
5420
5421 2007-05-07  DJ Delorie  <dj@redhat.com>
5422
5423         PR 31794
5424         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
5425         ashrpsi3, lshrpsi3): Update shift count constraint.
5426
5427 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
5428             Nathan Froyd  <froydnj@codesourcery.com>
5429
5430         PR 22133
5431         * c-incpath.c (add_path): Strip trailing path separators.
5432
5433 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
5434
5435         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
5436         Free dominance info before purging EH edges.
5437         (eliminate_degenerate_phis): Likewise.
5438         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
5439
5440 2007-05-07  Jan Hubicka  <jh@suse.cz>
5441
5442         * gimplify.c (gimplify_expr): Do not crash when folding
5443         (void *)(int)&a + 4.
5444
5445 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5446
5447         PR driver/31694
5448         * c-opts.c (lang_fortran): Make it non static.
5449         * c-common.h (lang_fortran): New prototype.
5450         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
5451         -lang-fortran option was passed by the driver.
5452
5453 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
5454
5455         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
5456         of ASSERT_CHECKING.  Tweak message.
5457
5458 2007-05-06  Revital Eres  <eres@il.ibm.com>
5459
5460         PR 30957
5461         * loop-unroll.c (insert_var_expansion_initialization):
5462         Initialize the expansions with -zero instead of +zero.
5463
5464 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
5465
5466         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
5467         into pic and non-pic versions. Mark r19 as used for
5468         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
5469         for tgd_load, tld_load and tie_load .
5470         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
5471         version of tgd_load, tld_load and tie_load depending on the
5472         value of flag_pic.
5473
5474 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
5475             Jakub Jelinek  <jakub@redhat.com>
5476
5477         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
5478         (__do_global_dtors_aux): Use more paranoid loop to run
5479         destructors if HIDDEN_DTOR_LIST_END.
5480         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
5481
5482 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
5483
5484         * varasm.c (align_variable): Don't increase alignment for
5485         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
5486         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
5487
5488 2007-05-04  Josh Conner  <jconner@apple.com>
5489
5490         * basic-block.h (cdi_direction): Assign values to all enumeration
5491         constants.
5492         (dom_computed): Remove.
5493         (dom_info_state): New.
5494         (set_dom_info_availability): New.
5495         * tree-ssa-loop-im.c (determine_invariantness): Initialize
5496         walk_data.dom_direction.
5497         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
5498         instead of dom_computed[].
5499         (split_edge): Likewise.
5500         (create_basic_block): Likewise.
5501         (merge_blocks): Likewise.
5502         * ifcvt.c (find_if_header): Likewise.
5503         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
5504         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
5505         * tree-ssa.c (verify_ssa): Likewise.
5506         * tree-cfg.c (tree_verify_flow_info): Likewise.
5507         (remove_edge_and_dominated_blocks): Likewise.
5508         * dominance.c (dom_computed): Make static.
5509         (calc_dfs_tree_nonrec): Change third param to a bool.
5510         (calc_dfs_tree): Change second param to a bool.
5511         (calc_idioms): Change second param to a bool.  Use
5512         dom_convert_dir_to_idx.
5513         (init_dom_info): Validate dir before using.
5514         (dom_convert_dir_to_idx): New.
5515         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
5516         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
5517         (free_dominance_info): Use dom_convert_dir_to_idx.
5518         (get_immediate_dominator): Likewise.
5519         (set_immediate_dominator): Likewise.
5520         (get_dominated_by): Likewise.
5521         (redirect_immediate_dominators): Likewise.
5522         (nearest_common_denominator): Likewise.
5523         (dominated_by_p): Likewise.
5524         (bb_dom_dfs_in): Likewise.
5525         (bb_dom_dfs_out): Likewise.
5526         (recount_dominator): Likewise.
5527         (iterate_fix_dominators): Likewise.
5528         (add_to_dominance_info): Likewise.
5529         (delete_from_dominance_info): Likewise.
5530         (first_dom_son): Likewise.
5531         (next_dom_son): Likewise.
5532         (dom_info_available_p): Likewise.
5533         (dom_info_state): New.
5534         (set_dom_info_availability): New.
5535
5536 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
5537
5538         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
5539         Expander removed.
5540         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
5541
5542 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
5543
5544         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
5545         (subdi3, subdi_carry): Delete.
5546
5547 2007-05-04  Jan Hubicka  <jh@suse.cz>
5548             Richard Guenther  <rguenther@suse.de>
5549
5550         * opts.c (decode_options): Do not fiddle with inlining
5551         parameters in case of optimizing for size.
5552         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
5553         for size do nothing.
5554         (cgraph_decide_inlining_of_small_function): When optimizing for
5555         size never inline functions increasing caller size.
5556         (cgraph_early_inlining): Inline for size when optimizing for size.
5557
5558 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
5559
5560         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
5561         logical operations piecewise.
5562         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
5563         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
5564         subdi_sesidi_di): Delete.
5565         (add_with_carry): Produce carry in CC instead of a DREG to shorten
5566         the generated sequence.  Allow three-reg add in constraints.  Rewrite
5567         the rtl expression for carry to avoid zero_extend of a constant.
5568         (sub_with_carry): New pattern.
5569         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
5570         different sequence not involving jumps.
5571         (notbi): Now a named pattern.
5572
5573 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
5574
5575         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
5576         Add the note about a significant loss of accuracy of some
5577         mathematical routines when these options are used.
5578
5579 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
5580
5581         * haifa-sched.c (rtx_vec_t): New typedef.
5582         (contributes_to_priority_p): Extract piece of priority () into new
5583         static function.
5584         (priority): Use the function.  Add assertion.
5585         (rank_for_schedule, set_priorities): Add assertion to check that
5586         insn's priority is initialized.
5587         (clear_priorities, calc_priorities): Change signature.  Make it update
5588         all relevant insns.  Update all callers ('add_to_speculative_block ()'
5589         and 'create_block_check_twin ()').
5590         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
5591         Add new field 'priority_status'.
5592         (INSN_PRIORITY_STATUS): New macro.
5593         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
5594
5595 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
5596
5597         * sched-ebb.c (debug_ebb_dependencies): New static function.
5598         (init_ready_list): Use it.
5599
5600         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
5601         with changed signature and 'debug_rgn_dependencies ()'.
5602         (debug_rgn_dependencies): New static function.
5603         (init_ready_list): Use it.
5604
5605         * sched-int.h (debug_dependencies): Declare.
5606
5607 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
5608
5609         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
5610
5611 2007-05-04  Dirk Mueller  <dmueller@suse.de>
5612
5613         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
5614
5615 2007-05-03  Jan Hubicka  <jh@suse.cz>
5616
5617         * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
5618         for pointer type in more cases than before.
5619
5620         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
5621
5622         * tree-object-size.c (plus_expr_object_size): When operand size is
5623         unknown, return unknown.
5624
5625 2007-05-03  Dirk Mueller  <dmueller@suse.de>
5626
5627         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
5628
5629         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
5630         options.
5631
5632         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
5633
5634 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
5635
5636         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
5637
5638 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
5639
5640         * config/soft-fp/double.h, config/soft-fp/extended.h,
5641         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
5642         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
5643         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
5644         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
5645         glibc CVS.
5646
5647 2007-05-03  Ian Lance Taylor  <iant@google.com>
5648
5649         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5650         MASK_PPC_GFXOPT for 8540 or 8548.
5651
5652 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
5653
5654         * tree-vect-transform.c (vect_update_inits_of_drs): Use
5655         vect_print_dump_info() to output debug information.
5656
5657 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
5658
5659         PR target/31768
5660         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
5661         operands of size 2 when operand is not MEM_P.
5662
5663 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
5664
5665         PR tree-optimization/30565
5666         * lambda-code.c (perfect_nestify): Fix updating of dominators.
5667
5668 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
5669
5670         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
5671         (umulsi3_highpart): Use them.
5672         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
5673         for final accumulator to D regisster tranfser.
5674
5675 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
5676
5677         PR tree-optimization/31699
5678         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
5679         code.
5680         (vect_enhance_data_refs_alignment): Compute peel amount using
5681         TYPE_VECTOR_SUBPARTS instead of vf.
5682         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
5683
5684 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
5685
5686         PR bootstrap/31776
5687         * system.h: Remove inclusion of double-int.h
5688         * tree.h: Include double-int.h
5689         * gengtype.c: Likewise
5690         * cfgloop.h: Likewise
5691         * Makefile.in: Adjust dependencies on double-int.h
5692
5693 2007-05-02  Eric Christopher  <echristo@apple.com>
5694
5695         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
5696         -shared to -Zdynamiclib.
5697
5698 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
5699
5700         PR c++/31663
5701         * c-common.c (strip_pointer_or_array_types): New function.
5702         * c-common.h (strip_pointer_or_array_types): New function declaration.
5703
5704 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
5705
5706         PR tree-optimization/31771
5707         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
5708
5709 2007-05-02  Paul Brook  <paul@codesourcery.com>
5710
5711         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
5712
5713 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5714
5715         PR middle-end/29715
5716         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
5717         transformation.
5718
5719 2007-05-02  Nick Clifton  <nickc@redhat.com>
5720
5721         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
5722
5723 2007-05-02  Richard Guenther  <rguenther@suse.de>
5724
5725         PR tree-optimization/31146
5726         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
5727         argument, single_use_p.  If we have a single use that is
5728         a conversion to the definition rhs type, propagate that rhs.
5729         (forward_propagate_addr_expr): Pass single_use_p argument
5730         to forward_propagate_addr_expr_1.
5731
5732 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
5733
5734         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
5735         variable.
5736
5737 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5738
5739         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
5740         'AMD Family 10 core'.
5741
5742 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5743
5744         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
5745         and athlon64-sse3 as improved versions of k8, opteron and athlon64
5746         with SSE3 instruction set support.
5747         * doc/invoke.texi: Likewise.
5748
5749 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5750
5751         * config/i386/i386.c (override_options): Tuning 32-byte loop
5752         alignment for amdfam10 architecture. Increasing the max loop
5753         alignment to 24 bytes.
5754
5755 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
5756
5757         * config/m68k/constraints.md: New.
5758         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
5759         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
5760         EXTRA_CONSTRAINT): Remove.
5761         * config/m68k/m68k.md: Include constraints.md.
5762         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
5763
5764 2007-05-01  Ian Lance Taylor  <iant@google.com>
5765
5766         PR tree-optimization/31739
5767         * tree-vrp.c (vrp_val_is_max): New static function.
5768         (vrp_val_is_min): New static function.
5769         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
5770         copying the node.
5771         (set_value_range): Use vrp_val_is_{max,min}.
5772         (extract_range_from_assert): Likewise.
5773         (extract_range_from_binary_expr): Likewise.
5774         (extract_range_from_unary_expr): Likewise.
5775         (dump_value_range, vrp_meet): Likewise.
5776         (vrp_visit_phi_node): Likewise.
5777         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
5778
5779 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
5780
5781         * config/i386/gmon-sol2.c (size_t): New type.
5782         (intptr_t): Likewise.
5783         (s_textsize): Declare as size_t.
5784         (sbrk): Declare.
5785         (monstartup): Use size_t for sizes.
5786         (_mcount): Save and restore registers.
5787         (internal_mcount): Pass 0 as the first argument to monstartup
5788         in 64-bit mode.
5789         (moncontrol): Convert pointer to appropriately sized integer
5790         before passing to profil.
5791
5792 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
5793
5794         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
5795         __NO_FPRS__, not just if _SOFT_DOUBLE.
5796         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
5797         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
5798         also for E500 double.
5799         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
5800         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
5801         && !TARGET_FPRS).
5802
5803 2007-05-01  Richard Guenther  <rguenther@suse.de>
5804
5805         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
5806         is NULL.
5807
5808 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
5811
5812 2007-05-01  Jan Hubicka  <jh@suse.cz>
5813
5814         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
5815         invariant.
5816
5817 2007-05-01  Jan Hubicka  <jh@suse.cz>
5818
5819         * tree.h (maybe_fold_offset_to_component_ref): Remove.
5820         (maybe_fold_offset_to_reference): Declare.
5821         * fold-const.c (fold_unary): Do not fold
5822         (type *)&A into &A->field_of_type_and_offset_0
5823         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
5824         size is unknown, give up.
5825         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
5826         offsets.
5827         (maybe_fold_offset_to_reference): New.
5828         (maybe_fold_stmt_indirect): Use it.
5829         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
5830         * gimplify.c (gimplify_conversion): Canonicalize conversions to
5831         field references.
5832         (gimplify_expr): Likewise for plus_expr.
5833
5834 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
5835
5836         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
5837         bsi_after_labels.  Always insert statements before bsi.
5838         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
5839         * predict.c (apply_return_prediction): Check for empty blocks.
5840         * cfgexpand.c (lab_rtx_for_bb): New variable.
5841         (label_rtx_for_bb): Do not create new tree labels.
5842         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
5843         (tree_expand_cfg): Initialize lab_rtx_for_bb.
5844         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
5845         creating edges.
5846         (label_for_bb): Add field used.
5847         (update_eh_label, main_block_label): Mark the label used.
5848         (cleanup_dead_labels): Remove unused labels.
5849
5850 2007-05-01  Richard Guenther  <rguenther@suse.de>
5851
5852         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
5853         if it is not about to be set.
5854         (get_value_range): Do not pre-allocate equiv bitmap.
5855         (update_value_range): No need to clear equiv field.
5856         (add_equivalence): Change prototype to get bitmap pointer.
5857         Allocate bitmap here if it is not already.
5858         (extract_range_from_assert): Do not allocate bitmap here.
5859         Update callers to add_equivalence.
5860         (extract_range_from_ssa_name): Likewise.
5861         (get_vr_for_comparison): New static helper.
5862         (compare_name_with_value): Handle NULL equiv bitmap by
5863         peeling the first iteration of the comparison loop.
5864         Use get_vr_for_comparison.
5865         (compare_names): Handle NULL equiv bitmaps by using fake
5866         ones.  Use get_vr_for_comparison.
5867
5868 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
5869
5870         * double-int.c (mpz_set_double_int): Moved from
5871         tree-ssa-loop-niter.c.
5872         (mpz_get_double_int): Likewise; also, add option to wrap
5873         out-of-range integers.
5874         * double-int.h: New prototypes for above.
5875         * tree.c (get_static_type_bounds): Moved from
5876         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
5877         TYPE_MAX_VALUE if they exist..
5878         * tree.h: New prototype for above.
5879         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
5880         get_type_bounds calls.
5881         (mpz_set_double_int): Move to double-int.c.
5882         (get_type_bounds): Move to tree.c, rename to
5883         get_static_type_bounds.
5884         (mpz_to_double_int): Move to double-int.c, rename to
5885         mpz_get_double_int.
5886
5887 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
5888
5889         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
5890         DIV0 exception can fall through to a normal return.
5891
5892 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
5893
5894         PR middle-end/22156
5895         Temporarily revert:
5896         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
5897         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
5898         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
5899         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
5900         initialize align to silence bogus warning.
5901         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
5902         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
5903         all_no_warning.
5904         (struct sra_walk_fns): Remove use_all parameter from use.
5905         (sra_hash_tree): Handle BIT_FIELD_REFs.
5906         (sra_elt_hash): Don't hash bitfld blocks.
5907         (sra_elt_eq): Skip them in parent compares as well.  Handle
5908         BIT_FIELD_REFs.
5909         (sra_walk_expr): Don't maintain or pass down use_all_p.
5910         (scan_use): Remove use_all parameter.
5911         (scalarize_use): Likewise.  Re-expand assignment to
5912         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
5913         output, and re-scalarize after output.  Don't mark anything
5914         for no warning.
5915         (scalarize_ldst): Adjust.
5916         (scalarize_walk_gimple_modify_statement): Likewise.
5917         (build_element_name_1): Handle BIT_FIELD_REFs.
5918         (instantiate_element): Don't warn for any element whose parent
5919         is used as a whole.
5920         (instantiate_missing_elements_1): Return the sra_elt.
5921         (canon_type_for_field): New.
5922         (try_instantiate_multiple_fields): New.
5923         (instantiate_missing_elemnts): Use them.
5924         (mark_no_warning): Removed.
5925         (generate_one_element_ref): Handle BIT_FIELD_REFs.
5926         (REPLDUP, sra_build_elt_assignment): New.
5927         (generate_copy_inout): Use them.
5928         (generate_element_copy): Likewise.  Handle bitfld differences.
5929         (generate_element_zero): Don't recurse for blocks.  Use
5930         sra_build_elt_assignment.
5931         (generate_one_element_int): Take elt instead of var.  Use
5932         sra_build_elt_assignment.
5933         (generate_element_init_1): Adjust.
5934         (scalarize_use, scalarize_copy): Use REPLDUP.
5935         (scalarize_ldst): Move assert before dereference.
5936         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
5937
5938 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5939
5940         PR C++/31721
5941         * tree.c (reconstruct_complex_type): Reconstruct a reference
5942         correctly.
5943         Also use the same mode for the pointer as the old pointer type.
5944
5945 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5946
5947         * doc/trouble.texi (Interoperation): Remove note about Ultrix
5948         Fortran compiler.
5949
5950 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
5951
5952         PR rtl-optimization/31676
5953         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
5954         (df_refs_record): Call it.
5955
5956 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
5957
5958         * rtl.def (SS_ABS): New code.
5959         * config/bfin/bfin.c (print_operand): New modifier 'v'.
5960         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
5961         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
5962         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
5963         (bfin_init_builtins): Define them.
5964         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
5965         (bfin_expand_builtin): ... and handle the others here.
5966         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
5967         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
5968         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
5969         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
5970         operand is only HImode.
5971
5972 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
5973
5974         * regclass.c (scan_one_insn): Remove splitting of
5975         two address insns.
5976
5977 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
5978             Nigel Stephens  <nigel@mips.com>
5979
5980         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
5981
5982 2007-04-28  Jan Hubicka  <jh@suse.cz>
5983
5984         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
5985         insn_locators_alloc instead of insn_locators_initialize;
5986         call reset_block_changes.
5987         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5988         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
5989         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
5990         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5991         * config/score/score.c (th_output_mi_thunk): Likewise.
5992         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5993         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
5994         tolerate uninitialized locator info.
5995
5996         Re-apply:
5997         * function.c (init_function_start): Don't init line number info.
5998         (expand_function_end): Update.
5999         (reset_block_changes, record_block_change, finalize_block_changes,
6000         check_block_change, free_block_changes): Kill.
6001         * function.h (reset_block_changes, record_block_change,
6002         finalize_block_changes, check_block_change, free_block_changes): Remove
6003         prototypes.
6004         (struct function): Remove ib_boundaries_block.
6005         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
6006         Use curr_insn_locator to initialize locator.
6007         (emit_line_note): Remove.
6008         * cfgexpand.c (expand_gimple_cond_expr): Update.
6009         (construct_exit_block): Likewise.
6010         (tree_expand_cfg): Initialize/finalize locators.
6011         * expr.c (expand_expr_real): Update.
6012         * cfglayout.c (line_locators_locs, line_locators_lines,
6013         file_locators_locs, file_locators_files): Remove.
6014         (set_block_levels): Move to cfgexpand.c.
6015         (insn_locators_initialize): Remove.
6016         (pass_insn_locators_initialize): Remove.
6017         (locations_locators_locs, locations_locators_vals): New static vars.
6018         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6019         Likewise.
6020         (insn_locators_alloc, insn_locators_finalize,
6021         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6022         New functions.
6023         (locator_location): New.
6024         (locator_line, locator_file): Rewrite.
6025         * rtl.h (emit_line_note): Kill.
6026         (insn_locators_alloc, insn_locators_finalize,
6027         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6028         Declare.
6029         * tree-inline.c (initialize_cfun): Do not initialize
6030         ib_boundaries_block.
6031         * passes.c (pass_insn_locators_initialize): Remove.
6032
6033 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
6034
6035         * tree-cfg.c (move_block_to_fn): Release bb from dominance
6036         info.  Update last_basic_block correctly.
6037
6038 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6039
6040         PR target/31701
6041         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
6042         register itself to hold the offset constant.  Tell flow the use
6043         of r4 and r5 when they are used.
6044
6045 2007-04-27  Richard Guenther  <rguenther@suse.de>
6046
6047         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
6048         if we simplified anything.
6049         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
6050         warnings until we did a simplification and the stmt was not
6051         marked as TREE_NO_WARNING.
6052
6053 2007-04-27  Mike Stump  <mrs@apple.com>
6054
6055         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
6056
6057 2007-04-27  Ian Lance Taylor  <iant@google.com>
6058
6059         PR middle-end/31710
6060         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
6061         TYPE_MAX_VALUE exist, convert them to the new type.
6062
6063 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6064
6065         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
6066         if it claims to be available.
6067         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
6068         edge is redirected.
6069         (perform_tree_ssa_dce): Always free postdominators.
6070
6071 2007-04-27  Richard Henderson  <rth@redhat.com>
6072
6073         * config/alpha/predicates.md (aligned_memory_operand): Mark
6074         as define_special_predicate.
6075         (unaligned_memory_operand, normal_memory_operand): Likewise.
6076         (reg_or_unaligned_mem_operand): Remove.
6077         (any_memory_operand): Match the documentation and check for
6078         non-renumbered pseudos during reload.
6079         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
6080         alpha_secondary_reload_class, update to new interface, make static.
6081         Handle CQImode like HImode.  Remove FP subreg check.
6082         (alpha_expand_mov): Use replace_equiv_address.
6083         (alpha_expand_mov_nobwx): Use any_memory_operand.
6084         (TARGET_SECONDARY_RELOAD): New.
6085         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
6086         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6087         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
6088         * config/alpha/alpha.md: ... here.
6089         (RELOAD12, reloadmode): New.
6090         (movcqi): New.
6091         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
6092         Don't handle the aligned case here.
6093         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
6094         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
6095         reload_inhi_help.  Don't expect a scratch register.
6096         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
6097         reload_outhi_help.
6098         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
6099
6100 2007-04-27  Richard Guenther  <rguenther@suse.de>
6101
6102         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
6103
6104 2007-04-27  Richard Guenther  <rguenther@suse.de>
6105
6106         PR tree-optimization/30965
6107         PR tree-optimization/30978
6108         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
6109         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
6110         (find_equivalent_equality_comparison): Likewise.
6111         (simplify_cond): Likewise.
6112         (get_prop_source_stmt): New helper.
6113         (get_prop_dest_stmt): Likewise.
6114         (can_propagate_from): Likewise.
6115         (remove_prop_source_from_use): Likewise.
6116         (combine_cond_expr_cond): Likewise.
6117         (forward_propagate_comparison): New function.
6118         (forward_propagate_into_cond): Rewrite to use fold for
6119         tree combining.
6120         (tree_ssa_forward_propagate_single_use_vars): Call
6121         forward_propagate_comparison to propagate comparisons.
6122
6123 2007-04-27  Richard Guenther  <rguenther@suse.de>
6124
6125         PR tree-optimization/31715
6126         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
6127         sure to do computation on the offset in an appropriate
6128         signed type.
6129
6130 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
6131
6132         * reload.h (elimination_target_reg_p): Declare.
6133         * reload.c (find_reloads): Don't apply the reg_rtx move
6134         optimization if the SET_DEST satisfies elimination_target_reg_p.
6135         * reload1.c (elimination_target_reg_p): New function.
6136         (gen_reload): In the move/add2 fallback, make sure that op0
6137         does not overlap the destination register.
6138
6139 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6140
6141         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
6142         transform only GIMPLE_MODIFY_STMTs.
6143         * tree-complex.c (expand_complex_operations_1): Ditto.
6144         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
6145         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
6146         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
6147         branches.
6148         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
6149         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
6150         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
6151         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
6152         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
6153         slpeel_add_loop_guard): Ditto.
6154         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
6155         * lambda-code.c (perfect_nestify): Ditto.
6156         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
6157         before the first statement.
6158         * tree-optimize.c (execute_free_datastructures): Fix comments.
6159         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
6160         * tree-flow.h (disband_implicit_edges): Declaration removed.
6161         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
6162         branches.
6163         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
6164         without gotos.
6165         (disband_implicit_edges, has_label_p): Removed.
6166         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
6167         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
6168         branches.
6169         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
6170         side effects.
6171         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
6172         also for COND_EXPRs.
6173         * cfgexpand.c (label_rtx_for_bb): New function.
6174         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
6175         Use label_rtx_for_bb to find the labels.
6176         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
6177         last block.  Detect fallthru edges.
6178
6179 2007-04-26  Ian Lance Taylor  <iant@google.com>
6180
6181         PR target/28675
6182         * reload.c (find_reloads_subreg_address): If the address was valid
6183         in the original mode but not in the new mode, reload the whole
6184         address.
6185
6186 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6187
6188         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
6189         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
6190         (cleanup_control_expr_graph): Do not invalidate dominance info.
6191         Record altered blocks.
6192         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
6193         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
6194         cleanup_tree_cfg_bb): New functions.
6195         (remove_forwarder_block): Do not maintain the worklist of blocks.
6196         Record altered blocks.
6197         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
6198         not over whole cfg.
6199         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
6200         delete_unreachable_blocks if dominators are not available.
6201         * tree-inline.c (optimize_inline_calls): Free dominance information
6202         earlier.
6203         * tree-flow.h (remove_edge_and_dominated_blocks,
6204         cfgcleanup_altered_bbs): Altered.
6205         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
6206         blocks.
6207         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
6208         functions.
6209         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
6210         do not invalidate dominators.
6211
6212 2007-04-26  Anatoly Sokolov <aesok@post.ru>
6213
6214         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
6215         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
6216         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6217         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6218
6219 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
6220
6221         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
6222
6223 2007-04-26  Richard Guenther  <rguenther@suse.de>
6224
6225         PR tree-optimization/31703
6226         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
6227         the right type for the target of the bittest.
6228
6229 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6230
6231         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
6232         ix86_sol10_return_in_memory.
6233
6234 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6235
6236         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
6237         variables.
6238
6239 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
6240
6241         PR c++/31598
6242         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
6243
6244         PR tree-optimization/30558
6245         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
6246         clear this_state.prev_try.
6247
6248 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6249             Mark Mitchell  <mark@codesourcery.com>
6250
6251         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
6252         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
6253         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
6254
6255 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6256
6257         PR driver/31107
6258         * doc/invoke.texi (%:print-asm-header): Document.
6259         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
6260         and -ftarget-help.
6261         (static_spec_functions): Add print-asm-header.
6262         (main): Print a banner before the --target-help linker options.
6263         (print_asm_header_spec_function): New function.
6264
6265 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6266
6267         PR target/31403
6268         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
6269         (movsf_ie): Likewise.
6270
6271 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
6272
6273         * doc/extend.texi ([Type Traits]): Adjust per N2255.
6274
6275 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
6276
6277         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
6278         for divide-by-zero.
6279         (__umodsi3, __modsi3): Likewise.
6280
6281 2007-04-25  Dirk Mueller  <dmueller@suse.de>
6282
6283         * c-typeck.c (build_compound_expr): Annotate warning()
6284         call with OPT_Wunused_value.
6285         * tree-ssa.c (warn_uninit): Annotate warning with
6286         OPT_Wunintialized.
6287         * c-common.c (handle_sentinel_attribute): Annotate warning
6288         call with OPT_Wattributes.
6289
6290 2007-04-25  Thiemo Seufer  <ths@mips.com>
6291
6292         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
6293         (mips16): Fix typo.
6294         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
6295         on to the assembler.  Improve handling of -mno-mips16.  Add handling
6296         of -mno-mips3d, -mno-dsp, -mno-dspr2.
6297         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
6298         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
6299         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
6300
6301 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
6302
6303         PR target/31680
6304         * config/i386/winnt.c (i386_pe_file_end): Strip only
6305         USER_LABEL_PREFIX when writing export name.
6306
6307 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
6308
6309         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
6310         sh/elf.h, vx-common.h and vxworks.h.
6311         * config/sh/sh.h: Include config/vxworks-dummy.h.
6312         (SUBTARGET_OVERRIDE_OPTIONS): Define.
6313         (OVERRIDE_OPTIONS): Use it.
6314         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
6315         (vxworks_picreg): New pattern.
6316         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
6317         VXWORKS_OS_CPP_BUILTINS.
6318         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
6319         to their VXWORKS_* equivalents.
6320         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
6321         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
6322         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
6323         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
6324         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
6325         -mrtp/-fPIC multilibs.
6326         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
6327         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
6328         (MULTILIB_OSDIRNAMES): Delete.
6329
6330 2007-04-25  Anatoly Sokolov <aesok@post.ru>
6331
6332         PR target/18989
6333         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
6334
6335 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
6336
6337         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
6338         rounding mode to be specified by the caller.
6339         (real_to_mpfr) Likewise.
6340         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
6341         include new arguments.
6342         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
6343
6344 2007-04-24  Ian Lance Taylor  <iant@google.com>
6345
6346         PR tree-optimization/31605
6347         * tree-vrp.c (set_value_range): Check that min and max are not
6348         both overflow infinities.
6349         (set_value_range_to_value): New static function.
6350         (extract_range_from_binary_expr): Call set_value_range_to_value.
6351         (extract_range_from_cond_expr): Likewise.
6352         (extract_range_from_expr): Likewise.
6353         (extract_range_from_unary_expr): Likewise.  Don't create a range
6354         which overflows on both sides.
6355         (vrp_meet): Check for a useless range.
6356         (vrp_visit_phi_node): If we see a constant which looks like an
6357         overflow infinity, turn off the TREE_OVERFLOW flag.
6358
6359 2007-04-24  Ian Lance Taylor  <iant@google.com>
6360
6361         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
6362
6363 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
6364
6365         PR diagnostic/25923
6366         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
6367         diagnostic message is being built.
6368         * tree-pretty-print.c (dump_generic_node): Only write the
6369         formatted text into BUFFER's stream if we are not building a
6370         diagnostic message.
6371         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
6372         dump_generic_node.
6373         * Makefile.in (toplev.o): Depend on tree-pass.h.
6374
6375 2007-04-24  Ian Lance Taylor  <iant@google.com>
6376
6377         PR tree-optimization/31602
6378         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
6379         conditionals in the copied loop header.
6380         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
6381         warnings if TREE_NO_WARNING is set.
6382         * doc/invoke.texi (Warning Options): Clarify that
6383         -Wstrict-overflow does not warn about loops.
6384
6385 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
6386
6387         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
6388         expand on the comment about _Decimal128 arguments and check the
6389         integer result of the modulus operation; for 64-bit ELF ABI, ensure
6390         that _Decimal128 argument uses even/odd register pair.
6391         (function_arg): Ditto.
6392
6393 2007-04-24  Hui-May Chang <hm.chang@apple.com>
6394
6395         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
6396         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
6397
6398 2007-04-24  Richard Guenther  <rguenther@suse.de>
6399             Olga Golovanevsky  <olga@il.ibm.com>
6400
6401         * fold-const.c (multiple_of_p): Check for bottom
6402         to be zero.
6403
6404 2007-04-24  Richard Henderson  <rth@redhat.com>
6405
6406         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
6407         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
6408         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
6409         looking for non-zero bits shifted out.  Avoid a recursive call
6410         when constructing the scalar.
6411         (__floatundisf): Likewise.
6412
6413 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
6414
6415         * dwarf2out.c (field_byte_offset): Move the existing logic
6416         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
6417         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
6418
6419 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6420
6421         PR target/31641
6422         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
6423         argument of 0 for memset.
6424         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
6425         unsigned shift instead of the signed variant.
6426
6427 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6428
6429         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
6430         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
6431         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
6432         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
6433         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
6434         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
6435         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
6436         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
6437         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
6438         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
6439         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
6440         "mul<mode>3", "div<mode>3"): Insn definitions added.
6441         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
6442         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
6443         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
6444         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
6445         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
6446         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
6447         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
6448         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
6449         TARGET_FLOAT_FORMAT): Macro definitions removed.
6450         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
6451         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
6452         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
6453         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
6454         (s390_gen_rtx_const_DI): Function removed.
6455         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
6456
6457 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
6458
6459         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
6460         over an external ffs function.
6461
6462 2007-04-24  Chao-ying Fu  <fu@mips.com>
6463             Richard Sandiford  <richard@nildram.co.uk>
6464
6465         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
6466         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
6467         (smadd_widen_optab, umadd_widen_optab): Define.
6468         * optabs.c (init_optabs): Initialize smadd_widen_optab and
6469         umadd_widen_optab.
6470         * genopinit.c (optabs): Fill in smadd_widen_optab and
6471         umadd_widen_optab.
6472         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
6473         and umadd_widen_optab to implement multiply-add sequences.
6474         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
6475         (<u>maddsidi4): ...this.  Extend condition to include
6476         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
6477         of operand 0 to "ka" and use the three-operand form of madd<u>
6478         for TARGET_DSPR2.
6479         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
6480         to define_expands.
6481         * config/mips/constraints.md (ka): New register constraint.
6482
6483 2007-04-24  Jan Hubicka  <j@suse.cz>
6484
6485         Revert:
6486
6487         2007-04-23  Jan Hubicka  <jh@suse.cz>
6488         * function.c (init_function_start): Don't init line number info.
6489         (expand_function_end): Update.
6490         (reset_block_changes, record_block_change, finalize_block_changes,
6491         check_block_change, free_block_changes): Kill.
6492         * function.h (reset_block_changes, record_block_change,
6493         finalize_block_changes, check_block_change, free_block_changes): Remove
6494         prototypes.
6495         (struct function): Remove ib_boundaries_block.
6496         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
6497         Use curr_insn_locator to initialize locator.
6498         (emit_line_note): Remove.
6499         * cfgexpand.c (expand_gimple_cond_expr): Update.
6500         (construct_exit_block): Likewise.
6501         (tree_expand_cfg): Initialize/finalize locators.
6502         * expr.c (expand_expr_real): Update.
6503         * cfglayout.c (line_locators_locs, line_locators_lines,
6504         file_locators_locs, file_locators_files): Remove.
6505         (set_block_levels): Move to cfgexpand.c.
6506         (insn_locators_initialize): Remove.
6507         (pass_insn_locators_initialize): Remove.
6508         (locations_locators_locs, locations_locators_vals): New static vars.
6509         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6510         Likewise.
6511         (insn_locators_alloc, insn_locators_finalize,
6512         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6513         New functions.
6514         (locator_location): New.
6515         (locator_line, locator_file): Rewrite.
6516         * rtl.h (emit_line_note): Kill.
6517         (insn_locators_alloc, insn_locators_finalize,
6518         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6519         Declare.
6520         * tree-inline.c (initialize_cfun): Do not initialize
6521         ib_boundaries_block.
6522         * passes.c (pass_insn_locators_initialize): Remove.
6523
6524 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
6525
6526         * doc/invoke.texi: Removed leading '-' from option index entries.
6527
6528 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
6529
6530         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
6531         Use phi_nodes_ptr.
6532         (create_phi_node): Use set_phi_nodes.
6533         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
6534         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
6535         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
6536         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
6537         (bsi_start, bsi_last): Use bb_stmt_list.
6538         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
6539         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
6540         Traverse the statements using tsi iterator.
6541         * basic-block.h (struct basic_block_def): Fields stmt_list
6542         and phi_nodes moved to ...
6543         (struct tree_bb_info): ... new structure.
6544         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
6545         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
6546         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
6547         (tree_verify_flow_info): Verify that il.tree is not set for
6548         entry and exit block.
6549         (tree_split_block): Use set_bb_stmt_list.
6550
6551 2007-04-23  Mike Stump  <mrs@apple.com>
6552
6553         * config/i386/i386.c (ix86_tune_features
6554         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
6555         nocona and core2.
6556
6557 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6558
6559         * config/i386/i386.md (prefix_extra): New attribute.
6560         (length): Add prefix_extra.
6561
6562         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
6563         (sse2_movntv2di): Likewise.
6564         (sse2_cvtps2dq): Likewise.
6565         (sse2_cvtpd2pi): Likewise.
6566         (sse2_cvttpd2pi): Likewise.
6567         (*sse2_cvtpd2ps): Likewise.
6568         (*add<mode>3): Likewise.
6569         (sse2_ssadd<mode>3): Likewise.
6570         (sse2_usadd<mode>3): Likewise.
6571         (*sub<mode>3): Likewise.
6572         (sse2_sssub<mode>3): Likewise.
6573         (sse2_ussub<mode>3): Likewise.
6574         (*mulv8hi3): Likewise.
6575         (*smulv8hi3_highpart): Likewise.
6576         (*umulv8hi3_highpart): Likewise.
6577         (sse2_umulv2siv2di3): Likewise.
6578         (sse2_pmaddwd): Likewise.
6579         (ashr<mode>3): Likewise.
6580         (lshr<mode>3): Likewise.
6581         (ashl<mode>3): Likewise.
6582         (sse2_ashlti3): Likewise.
6583         (sse2_lshrti3): Likewise.
6584         (*umaxv16qi3): Likewise.
6585         (*smaxv8hi3): Likewise.
6586         (*uminv16qi3): Likewise.
6587         (*sminv8hi3): Likewise.
6588         (sse2_eq<mode>3): Likewise.
6589         (sse2_gt<mode>3): Likewise.
6590         (*and<mode>3): Likewise.
6591         (sse2_nand<mode>3): Likewise.
6592         (*ior<mode>3): Likewise.
6593         (*xor<mode>3): Likewise.
6594         (sse2_packsswb): Likewise.
6595         (sse2_packssdw): Likewise.
6596         (sse2_packuswb): Likewise.
6597         (sse2_punpckhbw): Likewise.
6598         (sse2_punpcklbw): Likewise.
6599         (sse2_punpckhwd): Likewise.
6600         (sse2_punpcklwd): Likewise.
6601         (sse2_punpckhdq): Likewise.
6602         (sse2_punpckldq): Likewise.
6603         (sse2_punpckhqdq): Likewise.
6604         (sse2_punpcklqdq): Likewise.
6605         (*sse2_pinsrw): Likewise.
6606         (*sse2_pextrw): Likewise.
6607         (sse2_pshufd_1): Likewise.
6608         (sse2_uavgv16qi3): Likewise.
6609         (sse2_uavgv8hi3): Likewise.
6610         (sse2_psadbw): Likewise.
6611         (sse2_pmovmskb): Likewise.
6612         (*sse2_maskmovdqu): Likewise.
6613         (*sse2_maskmovdqu_rex64): Likewise.
6614         (sse4a_extrqi): Likewise.
6615         (sse4a_extrq): Likewise.
6616         (sse3_lddqu): Set prefix_rep.
6617         (sse3_addsubv4sf3): Likewise.
6618         (sse3_haddv4sf3): Likewise.
6619         (sse3_hsubv4sf3): Likewise.
6620         (sse_cvtss2si): Likewise.
6621         (sse_cvtss2si_2): Likewise.
6622         (sse_cvtss2siq): Likewise.
6623         (sse_cvtss2siq_2): Likewise.
6624         (sse_cvttss2si): Likewise.
6625         (sse_cvttss2siq): Likewise.
6626         (sse2_cvttps2dq): Likewise.
6627         (sse3_movshdup): Likewise.
6628         (sse3_movsldup): Likewise.
6629         (sse2_cvtsd2si): Likewise.
6630         (sse2_cvtsd2si_2): Likewise.
6631         (sse2_cvtsd2siq): Likewise.
6632         (sse2_cvtsd2siq_2): Likewise.
6633         (sse2_cvttsd2si): Likewise.
6634         (sse2_cvttsd2siq): Likewise.
6635         (*sse2_cvtpd2dq): Likewise.
6636         (*sse2_cvttpd2dq): Likewise.
6637         (sse2_pshuflw_1): Likewise.
6638         (sse2_pshufhw_1): Likewise.
6639         (sse4a_insertqi): Likewise.
6640         (sse4a_insertq): Likewise.
6641         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
6642         (ssse3_phadddv4si3): Likewise.
6643         (ssse3_phaddswv8hi3): Likewise.
6644         (ssse3_phsubwv8hi3): Likewise.
6645         (ssse3_phsubdv4si3): Likewise.
6646         (ssse3_phsubswv8hi3): Likewise.
6647         (ssse3_pmaddubswv8hi3): Likewise.
6648         (ssse3_pmulhrswv8hi3): Likewise.
6649         (ssse3_pshufbv16qi3): Likewise.
6650         (ssse3_psign<mode>3): Likewise.
6651         (ssse3_palignrti): Likewise.
6652         (abs<mode>2): Likewise.
6653         (ssse3_phaddwv4hi3): Set prefix_extra.
6654         (ssse3_phadddv2si3): Likewise.
6655         (ssse3_phaddswv4hi3): Likewise.
6656         (ssse3_phsubwv4hi3): Likewise.
6657         (ssse3_phsubdv2si3): Likewise.
6658         (ssse3_phsubswv4hi3): Likewise.
6659         (ssse3_pmaddubswv4hi3): Likewise.
6660         (ssse3_pmulhrswv4hi3): Likewise.
6661         (ssse3_pshufbv8qi3): Likewise.
6662         (ssse3_psign<mode>3): Likewise.
6663         (ssse3_palignrdi): Likewise.
6664         (abs<mode>2): Likewise.
6665         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
6666         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
6667         (sse2_pmovmskb): Set mode to SI instead of V2DF.
6668
6669 2007-04-23  Nick Clifton  <nickc@redhat.com>
6670
6671         * params.def: Fix formatting of emacs local variables.
6672
6673 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6674
6675         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
6676         move if inter-unit move isn't allowed.
6677         Don't split moving the first element of V2DI to DI to inter-unit
6678         move if inter-unit move isn't allowed.
6679
6680 2007-04-23  Richard Guenther  <rguenther@suse.de>
6681
6682         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
6683         and CDI_POST_DOMINATORS separately.
6684
6685 2007-04-23  Nick Clifton  <nickc@redhat.com>
6686
6687         * c.opt (Wformat-contains-nul): Add warning attribute.
6688
6689 2007-04-23  Jan Hubicka  <jh@suse.cz>
6690
6691         * function.c (init_function_start): Don't init line number info.
6692         (expand_function_end): Update.
6693         (reset_block_changes, record_block_change, finalize_block_changes,
6694         check_block_change, free_block_changes): Kill.
6695         * function.h (reset_block_changes, record_block_change,
6696         finalize_block_changes, check_block_change, free_block_changes): Remove
6697         prototypes.
6698         (struct function): Remove ib_boundaries_block.
6699         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
6700         Use curr_insn_locator to initialize locator.
6701         (emit_line_note): Remove.
6702         * cfgexpand.c (expand_gimple_cond_expr): Update.
6703         (construct_exit_block): Likewise.
6704         (tree_expand_cfg): Initialize/finalize locators.
6705         * expr.c (expand_expr_real): Update.
6706         * cfglayout.c (line_locators_locs, line_locators_lines,
6707         file_locators_locs, file_locators_files): Remove.
6708         (set_block_levels): Move to cfgexpand.c.
6709         (insn_locators_initialize): Remove.
6710         (pass_insn_locators_initialize): Remove.
6711         (locations_locators_locs, locations_locators_vals): New static vars.
6712         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6713         Likewise.
6714         (insn_locators_alloc, insn_locators_finalize,
6715         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6716         New functions.
6717         (locator_location): New.
6718         (locator_line, locator_file): Rewrite.
6719         * rtl.h (emit_line_note): Kill.
6720         (insn_locators_alloc, insn_locators_finalize,
6721         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6722         Declare.
6723         * tree-inline.c (initialize_cfun): Do not initialize
6724         ib_boundaries_block.
6725         * passes.c (pass_insn_locators_initialize): Remove.
6726
6727 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6728
6729         PR middle-end/31448
6730         * expr.c (reduce_to_bit_field_precision): Handle
6731         CONST_INT rtx's.
6732
6733 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
6734
6735         PR tree-optimization/24659
6736         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
6737         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
6738         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
6739         * genopinit.c (optabs): Rename vec_pack_mod_optab
6740         to vec_pack_trunc_optab.
6741         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
6742         early for scalar floating point operands for NOP_EXPR.
6743         (vectorizable_type_promotion): Ditto.
6744         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
6745         vec_pack_trunc_optab.
6746         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
6747
6748         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
6749         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
6750         Rename from VEC_PACK_MOD_EXPR.
6751         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
6752         * expr.c (expand_expr_real_1): Ditto.
6753         * tree-inline.c (estimate_num_insns_1): Ditto.
6754         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6755
6756         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
6757         (vec_unpacks_lo_v4sf): Ditto.
6758         (vec_pack_trunc_v2df): Ditto.
6759         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
6760         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
6761         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
6762
6763         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
6764         vec_pack_mod_v8hi.
6765         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
6766
6767         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
6768         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
6769         packing of floating point operands.
6770         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
6771         represent unpacking of floating point operands.
6772         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
6773         [vec_unpacks_hi]: Ditto.
6774         [vec_unpacks_lo]: Ditto.
6775
6776 2007-04-22  Jan Hubicka  <jh@suse.cz>
6777
6778         * final.c (rest_of_handle_final): Call
6779         targetm.asm_out.constructor/targetm.asm_out.destructor
6780         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
6781         proper priority via decl_*_priority_insert.
6782         * c-common.c (c_expand_body): Likewise.
6783
6784 2007-04-22  Richard Guenther  <rguenther@suse.de>
6785
6786         PR tree-optimization/29789
6787         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
6788         (rewrite_reciprocal): New helper split out from
6789         determine_invariantness_stmt.
6790         (rewrite_bittest): Likewise.
6791         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
6792         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
6793         is not.
6794
6795 2007-04-22  Revital Eres  <eres@il.ibm.com>
6796
6797         * loop-unroll.c (var_to_expand): New field to support also
6798         insns of the form x = something + x.
6799         (analyze_insn_to_expand_var): Use it.
6800         (expand_var_during_unrolling): Likewise.
6801
6802 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
6803
6804         * predict.c: Include pointer-set.h.
6805         (bb_predictions): New variable.
6806         (tree_predicted_by_p, tree_predict_edge,
6807         remove_predictions_associated_with_edge): Use bb_predictions map
6808         instead of bb->predictions.
6809         (clear_bb_predictions, assert_is_empty): New functions.
6810         (combine_predictions_for_bb): Use bb_predictions map.  Call
6811         clear_bb_predictions.
6812         (tree_estimate_probability): Create and free bb_predictions map.
6813         * Makefile.in (predict.o): Add pointer-set.h dependency.
6814         * basic-block.h (struct basic_block_def): Remove predictions
6815         field.
6816         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
6817
6818 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
6819
6820         PR target/31480
6821         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
6822         is null.
6823
6824 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6825
6826         * timevar.c (timevar_print): Change reference of --disable-checking to
6827         --enable-checking=release.  Also warn if assert checking is disabled.
6828
6829 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6830
6831         PR C/30265
6832         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
6833         decl as addressable if the compound literal was marked as
6834         addressable.
6835         Mark the decl as a gimple register if it is a complex or
6836         vector decl and does not live in memory.
6837
6838 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6839
6840         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
6841         (GENERIC_NEXT): New function macro.
6842         (PHI_CHAIN): Use phi_node's new chain variable.
6843         (tree_phi_node): Change tree_common to tree_base
6844         and add the chain field.
6845         * tree-phinodes.c (make_phi_node): Don't set
6846         TREE_TYPE on the new node.
6847         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
6848         instead of checking GIMPLE_TUPLE_P in chain_next.
6849         * tree-vect-transform.c
6850         (get_initial_def_for_induction): Look at
6851         PHI_RESULT_TREE for the type of the phi node.
6852         (update_vuses_to_preheader): Use PHI_CHAIN
6853         instead of TREE_CHAIN on the phi node.
6854         * tree-ssa-structalias.c (compute_points_to_sets):
6855         Likewise.
6856         (ipa_pta_execute): Likewise.
6857
6858 2007-04-21  Richard Guenther  <rguenther@suse.de>
6859
6860         PR middle-end/31136
6861         * fold-const.c (fold_unary): Call fold_convert_const on the
6862         original tree.
6863
6864 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
6865
6866         * gcse.c (store_killed_in_insn): Handle PARALLELs.
6867         (store_killed_in_pat): New.
6868
6869 2007-04-20  Richard Henderson  <rth@redhat.com>
6870
6871         PR target/31628
6872         * config/i386/i386.c (type_has_variadic_args_p): Look for any
6873         TREE_LIST with a void_type_node value, not void_list_node exactly.
6874
6875 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
6876
6877         * doc/standards.texi: Re-arrange into language-specific
6878         subsections. Add a C++ section, documenting which standards we
6879         support.
6880
6881 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
6882
6883         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
6884         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
6885
6886 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
6887
6888         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
6889         ecrti.o and crtbegin.o.
6890         (LIB_DEFAULT_SPEC): Include -lc.
6891         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
6892
6893 2007-04-20  Richard Henderson  <rth@redhat.com>
6894
6895         PR target/28623
6896         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
6897         argument; update all callers.
6898         (get_unaligned_offset): New.
6899         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
6900         get_unaligned_address, just pass on the address directly.
6901         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
6902         the subreg in the helper patterns.
6903         (unaligned_extendqidi_le): Use get_unaligned_offset.
6904         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
6905         (unaligned_extendhidi_be): Likewise.
6906         (unaligned_extendhidi): Tidy.
6907         * config/alpha/alpha-protos.h: Update.
6908
6909 2007-04-20  Richard Henderson  <rth@redhat.com>
6910
6911         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
6912         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6913         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
6914         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
6915         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
6916         (CPP_SPEC): Don't include %(cpp_subtarget).
6917         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
6918         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
6919         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
6920
6921 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
6922
6923         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
6924         for __builtin_ia32_cmpordss.
6925
6926         PR tree-optimization/31632
6927         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6928         and arg1 for optimizations of comparison against min/max values.
6929         Fold arg0 to arg1's type for optimizations of comparison against
6930         min+1 and max-1 values.
6931
6932 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
6933
6934         * reload.c (combine_reloads): When trying to use a dying register,
6935         check whether it's uninitialized and don't use if so.
6936
6937 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
6938
6939         * fold-const.c: Remove prototypes for native_encode_expr and
6940         native_interpret_expr.
6941         (native_encode_expr): Make non-static.
6942         (native_interpret_expr): Likewise.
6943         * tree.h: Add prototypes for the above.
6944
6945 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
6946
6947         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
6948         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
6949         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
6950         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
6951         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
6952         Add length attributes.
6953
6954 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
6955
6956         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
6957         not that it is 1.
6958
6959         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
6960         __STDC_WANT_DEC_FP__.
6961
6962 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
6963
6964         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
6965         for long double compatibility.
6966         * configure: Regenerate.
6967
6968 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
6969
6970         PR rtl-optimization/29841
6971         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
6972         trap instructions.
6973         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
6974         that may cause control flow transfer from being moved.
6975
6976 2007-04-18  Jan Hubicka  <jh@suse.cz>
6977
6978         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
6979         types.
6980
6981 2007-04-18  Eric Christopher  <echristo@apple.com>
6982
6983         * config/rs6000/darwin.md (load_macho_picbase): Use link register
6984         only. Update operands.
6985         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
6986         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
6987         link register to pic register.
6988
6989 2007-04-18  Dirk Mueller  <dmueller@suse.de>
6990
6991         PR diagnostic/31227
6992         * tree-vrp.c (search_for_addr_array): New.
6993         (check_array_bounds): Suppress warning about
6994         address taken of array refs if its not de-referenced.
6995
6996 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
6997
6998         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
6999         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
7000
7001         * tree-vectorizer.h (NITERS_KNOWN_P): New.
7002         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
7003         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
7004
7005         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
7006         dump print.
7007         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
7008         print message.
7009         (vect_analyze_scalar_cycles): Fix indentation.
7010         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
7011         (vect_mark_relevant): Include phis in relevance analysis.
7012
7013         * tree-vect-transform.c (vect_transform_loop): Add an assert.
7014
7015 2007-04-18  Anatoly Sokolov <aesok@post.ru>
7016
7017         * config/avr/avr.c (ptrreg_to_str): Replace error() with
7018         output_operand_lossage().
7019
7020 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
7021
7022         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
7023         the unused code for reduction without adjust-in-epilog to simplify the
7024         function.
7025
7026 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
7027
7028         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
7029         (S390_TDC_NEGATIVE_ZERO): New constant.
7030         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
7031         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
7032         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
7033         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
7034         (S390_TDC_POSITIVE_INFINITY): New constant.
7035         (S390_TDC_NEGATIVE_INFINITY): New constant.
7036         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
7037         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
7038         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
7039         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
7040         (S390_TDC_INFINITY): New constant.
7041         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
7042         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
7043         optimization for UNSPEC_CCZ_TO_INT.
7044         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
7045         ("*ccz_to_int"): New insn.
7046         ("isinf<mode>2"): New insn.
7047         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
7048         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
7049         (UNSPEC_CCZ_TO_INT): New constant.
7050
7051 2007-04-18  Richard Guenther  <rguenther@suse.de>
7052
7053         PR tree-optimization/19431
7054         PR tree-optimization/21463
7055         * tree-pass.h (pass_phiprop): Declare.
7056         * passes.c (init_optimization_passes): New phiprop pass.
7057         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
7058         (phivn_valid_p): New helper function.
7059         (phiprop_insert_phi): Likewise.
7060         (propagate_with_phi): Likewise.
7061         (tree_ssa_phiprop): New propagator propagating loads
7062         through phi nodes if profitable.
7063
7064 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
7065
7066         * tree-vect-analyze.c (process_use): New function.
7067         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
7068         Check phis in all bbs.
7069         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
7070         assert.
7071
7072 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
7073
7074         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
7075         we use REG_EQUAL.
7076
7077 2007-04-17  Anatoly Sokolov <aesok@post.ru>
7078
7079         PR target/30483
7080         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
7081         error().
7082
7083 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7084
7085         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
7086         on "0".
7087         (sse_vmmulv4sf3): Likewise.
7088         (sse2_vmaddv2df3): Likewise.
7089         (sse2_vmmulv2df3): Likewise.
7090
7091 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
7092
7093         PR rtl-optimization/31360
7094         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
7095         (target_reg_cost): New.
7096         (init_set_costs): Initialize target_reg_cost.  Add comments
7097         regarding the rationale of the costs.
7098         (global_cost_for_size): Renamed to...
7099         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
7100         of register pressure.
7101         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
7102         estimate_reg_pressure_cost.  Add number of ivs.
7103         (determine_set_costs): Dump target_reg_cost.
7104         * loop-invariant.c (gain_for_invariant):  Use
7105         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
7106         (best_gain_for_invariant, find_invariants_to_move): Remove
7107         n_inv_uses.
7108         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
7109         (target_reg_cost): Declare.
7110         (global_cost_for_size): Declaration removed.
7111         (estimate_reg_pressure_cost): Declare.
7112
7113 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
7114
7115         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
7116         regnos into even/odd register pairs.
7117         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
7118         TDmode similar to the other floating point modes.
7119         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
7120         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
7121         define_expand's.
7122         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
7123         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
7124         (movdd_hardfloat64): Use TARGET_MFPGPR.
7125
7126 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
7127
7128         * reload1.c (delete_output_reload): Don't count output in n_inherited.
7129
7130         Revert
7131         2005-01-05  Richard Henderson  <rth@redhat.com>
7132         PR rtl-opt/10692
7133         * reload1.c (do_input_reload): Restrict the optimization deleteing
7134         a previous output reload to RELOAD_FOR_INPUT.
7135
7136 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
7137
7138         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
7139         induc_vec_info_type.
7140         (vectorizable_induction): New function declaration.
7141         * tree-vect-transform.c (get_initial_def_for_induction): No need to
7142         check if already vectorized.  Find first place in BB where new stmts
7143         can be inserted.  Takes only one argument.
7144         (vectorizable_induction): New function.
7145         (vect_transform_stmt): Add case for induc_vec_info_type to call
7146         vectorizable_induction.
7147         (vect_transform_loop): Consider phis for vectorization.
7148         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
7149         condition.
7150         (analyze_operations): Call vectorizable_induction when analyzing phis.
7151         Fix comment.
7152         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
7153         (vect_mark_relevant): Include phis in relevance analysis.
7154         (vect_mark_stmts_to_be_vectorize): Likewise.
7155         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
7156
7157 2007-04-16  Lawrence Crowl  <crowl@google.com>
7158
7159         * doc/invoke.texi (Debugging Options): Add documentation for the
7160         -femit-struct-debug options -femit-struct-debug-baseonly,
7161         -femit-struct-debug-reduced, and
7162         -femit-struct-debug-detailed[=...].
7163
7164         * c-opts.c (c_common_handle_option): Add
7165         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
7166         and OPT_femit_struct_debug_detailed_.
7167         * c.opt: Add specifications for
7168         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
7169         and -femit-struct-debug-detailed[=...].
7170         * opts.c (set_struct_debug_option): Parse the
7171         -femit-struct-debug-... options.
7172         * opts.c (matches_main_base, main_input_basename,
7173         main_input_baselength, base_of_path, matches_main_base): Add
7174         variables and functions to compare header base name to compilation
7175         unit base name.
7176         * opts.c (should_emit_struct_debug): Add to determine to emit a
7177         structure based on the option.
7178         (dump_struct_debug) Also disabled function to debug this
7179         function.
7180         * opts.c (handle_options): Save the base name of the
7181         compilation unit.
7182
7183         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
7184         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
7185         This hook indicates if a type is generic.  Set it by default
7186         to "never generic".
7187         * langhooks.h (struct lang_hooks_for_types): Add a new hook
7188         to determine if a struct type is generic or not.
7189         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
7190         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
7191         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
7192         with live C++ hook.
7193
7194         * flags.h (enum debug_info_usage): Add an enumeration to describe
7195         a program's use of a structure type.
7196         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
7197         to indicate the program's usage of the type.  Filter structs based
7198         on the -femit-struct-debug-... specification.
7199         (gen_type_die): Split into two routines, gen_type_die and
7200         gen_type_die_with_usage.  gen_type_die is now a wrapper
7201         that assumes direct usage.
7202         (gen_type_die_with_usage): Replace calls to gen_type_die
7203         with gen_type_die_with_usage adding the program usage of
7204         the referenced type.
7205         (dwarf2out_imported_module_or_decl): Suppress struct debug
7206         information using should_emit_struct_debug when appropriate.
7207
7208 2007-04-16  Ian Lance Taylor  <iant@google.com>
7209
7210         PR tree-optimization/31522
7211         * tree-vrp.c (vr_phi_edge_counts): New static variable.
7212         (vrp_initialize): Allocate vr_phi_edge_counts.
7213         (vrp_visit_phi_node): Don't push to infinity if we saw a new
7214         executable edge.  Drop test for all constants.
7215         (vrp_finalize): Free vrp_phi_edge_counts.
7216
7217         * doc/cpp.texi (Common Predefined Macros): Clarify description of
7218         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
7219
7220         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
7221         predecessors at head rather than tail.
7222
7223 2007-04-16  Matthias Klose  <doko@debian.org>
7224
7225         * config/alpha/linux.h (CPP_SPEC): Define.
7226         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
7227
7228 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
7229
7230         * function.h: Remove sequence_stack extern declaration.
7231
7232 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
7233
7234         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
7235         TARGET_FIDOA.
7236         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
7237         defined.
7238
7239 2007-04-16  Anatoly Sokolov <aesok@post.ru>
7240
7241         * config/avr/avr.c (avr_arch_types): Rearranging  array.
7242         (enum avr_arch): Add.
7243         (avr_mcu_types): Use avr_arch enumeration constants instead of
7244         numbers.
7245         * config/avr/avr.h (LINK_SPEC): Simplify.
7246
7247 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
7248
7249         * config/m68k/m68k.c (m68k_libcall_value,
7250         m68k_function_value): Use macros for register names more.
7251
7252         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
7253         instead.
7254         (M68K_REGNAME): Use A6_REG.
7255         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
7256
7257 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7258
7259         PR middle-end/28071
7260         * sched-int.h (struct deps): Split field 'pending_lists_length' into
7261         'pending_read_list_length' and 'pending_write_list_length'.  Update
7262         comment.
7263         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
7264         to handle two length counters instead of one.  Update all uses.
7265         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
7266         two length counters instead of one.
7267         * sched-rgn.c (propagate_deps): Update to handle two length counters
7268         instead of one.
7269
7270 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
7271
7272         PR target/31582
7273         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
7274         copy of source, pass it to ix86_expand_vector_set and return
7275         it as target.
7276
7277 2007-04-16  David Ung  <davidu@mips.com>
7278             Joseph Myers  <joseph@codesourcery.com>
7279
7280         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
7281         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
7282         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
7283         Add 74K processor information.
7284         * config/mips/mips.md: Include 74k.md.
7285         (cpu): Add 74kc,74kf,74kx.
7286         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
7287         * config/mips/74k.md: New.
7288         * doc/invoke.texi (MIPS Options): Document 74K support.
7289
7290 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
7291
7292         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
7293         vectorizable_* functions.
7294         * tree-vect-transform.c (vectorizable_call): Add check for
7295         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
7296         (vectorizable_store): likewise.
7297         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
7298         Add comments.
7299         (vectorizable_operation, vectorizable_type_demotion): Likewise.
7300         (vectorizable_type_promotion, vectorizable_load): Likewise.
7301         (vectorizable_live_operation, vectorizable_condition): Likewise.
7302         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
7303         STMT_VINFO_LIVE_P.
7304         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
7305
7306 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
7307
7308         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
7309         register numbers more.
7310         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
7311         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
7312         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
7313         FUNCTION_VALUE_REGNO_P): Likewise.
7314         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
7315         STATIC_CHAIN_REGNUM): Likewise.
7316         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
7317         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
7318         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
7319         * config/m68k/m68k.md (FP_REG): New.
7320
7321 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
7322
7323         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
7324         alignment on fido.
7325
7326 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
7327
7328         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
7329         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
7330         comment typos.
7331
7332 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
7333
7334         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
7335         cold loops.
7336
7337 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7338
7339         PR c/31520
7340         * c-decl.c (finish_decl): Grab the type of the decl after the call
7341         to store_init_value.
7342
7343 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
7344
7345         * common.opt (fforward-propagate): Fix "Optimization" annotation.
7346
7347 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
7348
7349         PR c++/25874
7350         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
7351         post dominators and cleanup cfg before returning.
7352
7353 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
7354
7355         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
7356         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
7357
7358 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
7359
7360         * config.gcc: Recognize fido.
7361         * config/m68k/m68k-devices.def (fidoa): New.
7362         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
7363         __mfido__.
7364         (FL_FIDOA, TARGET_FIDOA): New.
7365         * config/m68k/m68k.opt (mfidoa): New.
7366
7367 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7368
7369         PR middle-end/31322
7370         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
7371         when a personality function is used.
7372
7373 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
7374
7375         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
7376
7377 2007-04-13  Mike Stump  <mrs@apple.com>
7378
7379         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
7380         we can...
7381         * config/darwin.opt (fapple-kext): Make C++ only.
7382         * config/darwin.c (darwin_override_options): Remove code to ensure
7383         -fapple-kext is given for C++ only.
7384
7385 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
7386
7387         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
7388         * config/mips/mips.c (override_options): Call
7389         SUBTARGET_OVERRIDE_OPTIONS, if defined.
7390
7391 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7392
7393         * config/i386/i386.opt (msvr3-shlib): Removed.
7394
7395         * doc/invoke.texi: Remove -msvr3-shlib.
7396
7397 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7398
7399         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
7400         with "popcnt" instruction.
7401
7402 2007-04-13  Richard Guenther  <rguenther@suse.de>
7403
7404         PR tree-optimization/21258
7405         * tree-vrp.c (compare_case_labels): New helper.
7406         (find_switch_asserts): New function.
7407         (find_assert_locations): Call it for SWITCH_EXPRs.
7408
7409 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
7410
7411         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
7412         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
7413         check is now implied in X87_FLOAT_MODE_P.
7414         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
7415         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
7416         (fix_trunc<mode>_i386_fisttp): Ditto.
7417         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
7418         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
7419         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
7420         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
7421         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
7422         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
7423         (unnamed_splitters): Ditto.
7424         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
7425         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
7426         FIRST_SSE_REG for local functions when SSE math is enabled or
7427         for functions with sseregparm attribute.
7428         (standard_80387_constant_p): Return -1 if mode is not
7429         X87_FLOAT_MODE_P.
7430         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
7431         (ix86_expand_compare): Ditto.
7432         (ix86_expand_carry_flag_compare): Ditto.
7433         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
7434         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
7435         DECIMAL_FLOAT_MODE_P.
7436         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
7437         of SCALAR_FLOAT_MODE_P.
7438         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
7439         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
7440         checks before FLOAT_MODE_P.
7441         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
7442         before FLOAT_MODE_P.
7443         [DIV]: Ditto.
7444         [NEG]: Ditto.
7445         [ABS]: Ditto.
7446         [SQRT]: Ditto.
7447         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
7448
7449 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
7450             Charles Wilson  <libtool@cwilson.fastmail.fm>
7451
7452         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
7453         (libgcc.mvars): Don't depend on them.
7454         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
7455         * exec-tool.in: New.
7456
7457 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
7458
7459         * doc/invoke.text (--help): Document --help=common.
7460
7461 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
7462
7463         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
7464
7465 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7466
7467         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
7468         * genemit.c (main): Emit #include "integrate.h".
7469         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
7470         (LOADGP_RTP): New mips_loadgp_style.
7471         * config/mips/mips.h: Include config/vxworks-dummy.h.
7472         (TARGET_RTP_PIC): New macro.
7473         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
7474         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
7475         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
7476         for TARGET_RTP_PIC.
7477         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
7478         -mvxworks-pic when using -mrtp and a PIC option.
7479         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
7480         for RTP PIC.
7481         (mips_symbolic_constant_p, mips_symbolic_address_p)
7482         (mips_symbol_insns): Handle SYMBOL_HALF.
7483         (override_options): Warn about -G and -mrtp being used together.
7484         Initialize mips_lo_relocs[SYMBOL_HALF].
7485         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
7486         (mips_emit_loadgp): Handle LOADGP_RTP.
7487         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
7488         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
7489         (tablejump): Handle function-relative case table entries if
7490         TARGET_RTP_PIC.
7491         * config/mips/predicates.md (symbol_ref_operand): New predicate.
7492
7493 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7494
7495         * config/mips/mips.md (load_call<mode>): Allow any general register.
7496         destination.
7497         (sibcall_value_internal, sibcall_value_multiple_internal)
7498         (call_value_internal, call_value_split, call_value_multiple_internal)
7499         (call_value_multiple_split): Remove constraints from operand 0.
7500
7501 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7502
7503         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
7504         rather than loadgp_noshared.
7505         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
7506         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
7507         gen_loadgp.
7508         * config/mips/mips.md (loadgp): Rename to...
7509         (loadgp_newabi): ...this.
7510         (loadgp_noshared): Rename to...
7511         (loadgp_absolute): ...this.
7512
7513 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7514
7515         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
7516         false for locally-binding symbols.
7517         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
7518
7519 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7520
7521         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
7522         (SYMBOL_GOT_PAGE_OFST): ...this.
7523         (SYMBOL_GOT_GLOBAL): Rename to...
7524         (SYMBOL_GOT_DISP): ...this.
7525         (SYMBOL_GOTOFF_GLOBAL): Rename to...
7526         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
7527         * config/mips/mips.c (mips_global_symbol_p): New function.
7528         (mips_symbol_binds_local_p): Likewise.
7529         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
7530         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
7531         and mips_symbol_binds_local_p.
7532         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
7533         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
7534         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
7535         SYMBOL_GOTOFF_DISP.
7536         (mips_ok_for_lazy_binding_p): New function.
7537         (mips_load_call_address, mips_expand_call): Use it.
7538         (mips_dangerous_for_la25_p): Likewise.
7539         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
7540         (*got_disp<mode>): Use got_disp_operand instead of
7541         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
7542         SYMBOL_GOTOFF_GLOBAL.
7543         (*got_page<mode>): Use got_page_ofst_operand instead of
7544         local_got_operand.
7545         * config/mips/predicates.md (const_call_insn_operand): Use
7546         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
7547         (global_got_operand): Rename to...
7548         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
7549         SYMBOL_GOT_GLOBAL.
7550         (local_got_operand): Rename to...
7551         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
7552         of SYMBOL_GOT_LOCAL.
7553
7554 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7555
7556         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
7557         TARGET_CALL_CLOBBERED_GP.
7558         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7559         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
7560         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
7561         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
7562         of TARGET_ABICALLS && !TARGET_NEWABI.
7563         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7564         * config/mips/mips.c (mips_load_call_address): Check
7565         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
7566         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7567         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
7568         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
7569         TARGET_ABICALLS && TARGET_NEWABI.
7570         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
7571         TARGET_ABICALLS.
7572         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
7573         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
7574         TARGET_ABICALLS && TARGET_NEWABI.
7575         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
7576         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
7577         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
7578         whether indirect calls must use $25.
7579         (mips_extra_live_on_entry): Check TARGET_GOT instead of
7580         TARGET_ABICALLS.
7581         * config/mips/mips.md (jal_macro): Check flag_pic and
7582         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
7583         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
7584         instead of TARGET_ABICALLS.
7585         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
7586         TARGET_ABICALLS && TARGET_OLDABI.
7587         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7588         (sibcall): In the comment above the define_insn, mention
7589         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
7590         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
7591         instead of TARGET_ABICALLS.
7592
7593 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
7594
7595         * doc/md.texi (Blackfin family constraints): Document PA and PB.
7596         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
7597         (MACFLAGS_MATCH_P): New macro.
7598         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
7599         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
7600         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
7601         the other MACFLAG constants.
7602         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
7603         (flag_machi): Tighten constraints.  Renumber some of the operands.
7604         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
7605         output template.
7606         (flag_machi_parts_acconly): New pattern.
7607         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
7608         used.
7609         (flag_macinit1hi): Tighten constraints.
7610         (flag_mul_macv2hi_parts_acconly): New pattern.
7611
7612         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
7613         Use a more efficient implementation.
7614         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
7615         inline sequences when not optimizing for size.
7616
7617         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
7618         movhi_high2low): Delete, merge functionality into...
7619         (packv2hi): ... this pattern.
7620
7621         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
7622         * config/bfin/bfin.opt (msim): New option.
7623         (mcpu=): New option.
7624         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
7625         (bfin_cpu_t): Typedef of enum bfin_cpu.
7626         (bfin_cpu_type): New declaration.
7627         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
7628         -msim and -mcpu= options.
7629         (LIB_SPEC): Likewise.
7630         * config/bfin/bfin.c (bfin_cpu_type): Define.
7631         (bfin_handle_option): Handle -mcpu= option.
7632         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
7633         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
7634         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
7635
7636 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7637
7638         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
7639         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
7640         (powerpc-wrs-vxworksae): Use ${tm_file}.
7641         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
7642         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
7643         * config/i386/vx-common.h: New file.
7644
7645 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7646
7647         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
7648         of crt0.o%s.
7649
7650 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7651
7652         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
7653         ldxtr.
7654
7655 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
7656
7657         PR c++/31078
7658         PR c++/31103
7659         * c-common.c (c_build_qualified_type): Set canonical type
7660         appropriately.
7661
7662 2007-04-12  Richard Guenther  <rguenther@suse.de>
7663
7664         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
7665         lower bound and element size if lower bound is not zero
7666         or either of the ARRAY_REF operands is set.
7667
7668 2007-04-12  Richard Guenther  <rguenther@suse.de>
7669
7670         PR tree-optimization/24689
7671         PR tree-optimization/31307
7672         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
7673         indices by value.
7674         * gimplify.c (canonicalize_addr_expr): To be consistent with
7675         gimplify_compound_lval only set operands two and three of
7676         ARRAY_REFs if they are not gimple_min_invariant.  This makes
7677         it never at this place.
7678         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
7679
7680 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7681
7682         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
7683         null before emitting a .nsubspa directive.
7684
7685 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
7686
7687         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
7688         need_to_partition_p if there are no memory statements in the
7689         function.
7690
7691 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
7692
7693         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
7694         (gcd_of_steps_may_divide_p): New function.
7695         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
7696
7697 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7698
7699         * reload.c (find_reloads_toplev, find_reloads_address,
7700         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
7701         not a pointer equality test, to decide if we need to call
7702         push_reg_equiv_alt_mem.
7703
7704 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
7705
7706         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
7707         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
7708         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
7709
7710 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
7711
7712         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
7713         vector to be positive.
7714
7715 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
7716
7717         PR 30735
7718         PR 31090
7719         * doc/invoke.texi: Document --params max-aliased-vops and
7720         avg-aliased-vops.
7721         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
7722         debug_memory_partitions): Move to tree-flow.h
7723         * params.h (AVG_ALIASED_VOPS): Define.
7724         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
7725         users.
7726         (mp_info_t): Likewise.
7727         (get_mem_sym_stats_for): New.
7728         (set_memory_partition): Move from tree-flow-inline.h.
7729         (mark_non_addressable): Only clear the set of symbols for the
7730         partition if it exists.
7731         (dump_memory_partitions): Move from tree-ssa-operands.c
7732         (debug_memory_partitions): Likewise.
7733         (need_to_partition_p): New.
7734         (dump_mem_ref_stats): New.
7735         (debug_mem_ref_stats): New.
7736         (dump_mem_sym_stats): New.
7737         (debug_mem_sym_stats): New.
7738         (update_mem_sym_stats_from_stmt): New.
7739         (compare_mp_info_entries): New.
7740         (mp_info_cmp): Call it.
7741         (sort_mp_info): Change argument to a list of mem_sym_stats_t
7742         objects.
7743         (get_mpt_for): Move from tree-ssa-operands.c.
7744         (find_partition_for): New.
7745         (create_partition_for): Remove.
7746         (estimate_vop_reduction): New.
7747         (update_reference_counts): New.
7748         (build_mp_info): New.
7749         (compute_memory_partitions): Refactor.
7750         Document new heuristic.
7751         Call build_mp_info, update_reference_counts,
7752         find_partition_for and estimate_vop_reduction.
7753         (compute_may_aliases): Populate virtual operands before
7754         calling debugging dumps.
7755         (delete_mem_sym_stats): New.
7756         (delete_mem_ref_stats): New.
7757         (init_mem_ref_stats): New.
7758         (init_alias_info): Call it.
7759         (maybe_create_global_var): Remove alias_info argument.
7760         Get number of call sites and number of pure/const call sites
7761         from gimple_mem_ref_stats().
7762         (dump_alias_info): Call dump_memory_partitions first.
7763         (dump_points_to_info_for): Show how many times a pointer has
7764         been dereferenced.
7765         * opts.c (decode_options): For -O2 set --param
7766         max-aliased-vops to 500.
7767         For -O3 set --param max-aliased-vops to 1000 and --param
7768         avg-aliased-vops to 3.
7769         * fortran/options.c (gfc_init_options): Remove assignment to
7770         MAX_ALIASED_VOPS.
7771         * tree-flow-inline.h (gimple_mem_ref_stats): New.
7772         * tree-dfa.c (dump_variable): Dump memory reference
7773         statistics.
7774         Dump NO_ALIAS* settings.
7775         (referenced_var_lookup): Tidy.
7776         (mem_sym_stats): New.
7777         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
7778         and ORIG are different SSA names for a memory partition.
7779         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
7780         * tree-flow.h (struct mem_sym_stats_d): Define.
7781         (mem_sym_stats_t): Define.
7782         (struct mem_ref_stats_d): Define.
7783         (struct gimple_df): Add field mem_ref_stats.
7784         (enum noalias_state): Define.
7785         (struct var_ann_d): Add bitfield noalias_state.
7786         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
7787         debug_mem_ref_stats, debug_memory_partitions,
7788         debug_mem_sym_stats): Declare.
7789         * tree-ssa-structalias.c (update_alias_info): Update call
7790         sites, pure/const call sites and asm sites in structure
7791         returned by gimple_mem_ref_stats.
7792         Remove local variable IS_POTENTIAL_DEREF.
7793         Increase NUM_DEREFS if the memory expression is a potential
7794         dereference.
7795         Call update_mem_sym_stats_from_stmt.
7796         If the memory references memory, call
7797         update_mem_sym_stats_from_stmt for all the direct memory
7798         symbol references found.
7799         (intra_create_variable_infos): Set noalias_state field for
7800         pointer arguments according to the value of
7801         flag_argument_noalias.
7802         * tree-ssa-structalias.h (struct alias_info): Remove fields
7803         num_calls_found and num_pure_const_calls_found.
7804         (update_mem_sym_stats_from_stmt): Declare.
7805         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
7806         Set default value to 100.
7807         (PARAM_AVG_ALIASED_VOPS): Define.
7808
7809 2007-04-11  Richard Guenther  <rguenther@suse.de>
7810
7811         PR middle-end/31530
7812         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
7813         a * -b + c as c - a * b if we honor sign dependent rounding.
7814
7815 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7816
7817         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
7818         bfin_expand_strmov.
7819         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
7820         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
7821         variables.
7822         (initialize_trampoline): Don't use old-style function definition.
7823         (bfin_secondary_reload): Mark IN_P argument as unused.
7824
7825 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
7826
7827         PR tree-optimization/31343
7828         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
7829         (build_polynomial_chrec): Return a scalar when the evolution is zero.
7830         * testsuite/gcc.dg/vect/pr31343.c: New.
7831
7832 2007-04-10  Eric Christopher  <echristo@apple.com>
7833
7834         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
7835         * config/i386/i386.md (*cmpfp0): Use.
7836         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
7837         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
7838         (fix_trunc<mode>_i386_fisttp): Ditto.
7839         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
7840         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
7841         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
7842         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
7843         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
7844         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
7845         (unnamed_splitters): Ditto.
7846         * config/i386/i386.c (output_fix_trunc): Assert that
7847         we're not being passed a TFmode operand.
7848
7849 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
7850
7851         PR tree-optimization/31526
7852         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
7853         n_basic_blocks to find newly added blocks.
7854
7855 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
7856
7857         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
7858         alternative.
7859         (fix_trunc<mode>si_sse): Ditto.
7860         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
7861         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
7862         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
7863         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
7864         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
7865         expander using SSEMODEF mode macro.
7866         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
7867         expander using SSEMODEF mode macro.
7868         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
7869         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
7870         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
7871         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
7872         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
7873         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
7874         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
7875         Macroize insn using X87MODEF mode macro.
7876
7877 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * config/i386/sse.md (sse2_pinsrw): Removed.
7880         (sse2_pextrw): Renamed to ...
7881         (*sse2_pextrw): This.
7882
7883 2007-04-09  Jan Hubicka  <jh@suse.cz>
7884
7885         PR target/27869
7886         * config/i386/sse.md
7887         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
7888         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
7889         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
7890         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
7891
7892 2007-04-09  Jan Hubicka  <jh@suse.cz>
7893
7894         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
7895         multiple fields of union.
7896
7897 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
7898
7899         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
7900         (create_preheaders): Check that loops are available.
7901         (fix_loop_structure): Clean up, improve comments.
7902         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
7903         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
7904         state flags.
7905         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
7906         * predict.c (tree_estimate_probability): Do not call
7907         calculate_dominance_info.  Call create_preheaders.
7908         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
7909         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
7910         flags.
7911         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
7912         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
7913         * tree-cfg.c (tree_split_edge): Make an assert more precise.
7914         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
7915         arguments.
7916
7917 2007-04-08  Jan Hubicka  <jh@suse.cz>
7918
7919         * tree.h (maybe_fold_offset_to_component_ref): Declare.
7920         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
7921         * fold-const.c (fold_unary): Use it.
7922
7923 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7924
7925         * varasm.c (assemble_variable): Remove call to
7926         lang_hooks.decls.prepare_assemble_variable.
7927         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
7928         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
7929         * langhooks.h (lang_hooks_for_decls): Remove
7930         prepare_assemble_variable.
7931
7932 2007-04-08  Mike Stump  <mrs@apple.com>
7933
7934         * config/i386/i386.c: Use inc/dec on Core2.
7935
7936 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7937
7938         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
7939         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
7940         lhd_tree_inlining_end_inlining): Remove.
7941         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
7942         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
7943         end_inlining hooks.
7944         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
7945         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
7946         lhd_tree_inlining_end_inlining): Remove prototypes.
7947         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
7948         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
7949         LANG_HOOKS_TREE_INLINING_START_INLINING,
7950         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
7951
7952         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
7953         not set it.
7954
7955 2007-04-08  Anatoly Sokolov <aesok@post.ru>
7956
7957         PR target/29932
7958         * config/avr/predicates.md (io_address_operand): Delete predicate.
7959         (low_io_address_operand): Don't use 'mode' argument.
7960         (higth_io_address_operand): Rename ...
7961         (high_io_address_operand): ... to this. Don't use 'mode' argument.
7962         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
7963         for above change.
7964
7965 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
7966
7967         Revert change removing staticp.
7968
7969 2007-04-07  Anatoly Sokolov <aesok@post.ru>
7970
7971         PR target/30289
7972         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
7973         earlyclobber.
7974
7975 2007-04-07  Bruce Korb  <bkorb@gnu.org>
7976
7977         * c.opt: Add -Wformat-contains-nul.
7978         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
7979           -Wformat setting.
7980         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
7981         the NUL byte warning.
7982
7983 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7984
7985         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
7986
7987 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
7988
7989         * tree.c (staticp): No longer use staticp langhook.
7990         * langhooks.c (lhd_staticp): Removed.
7991         * langhooks.h (struct lang_hooks): Remove staticp.
7992         * c-common.c (c_staticp): Remove.
7993         * c-common.h (c_staticp): Ditto.
7994         * langhooks-defs.h (lhd_staticp): Ditto.
7995         (LHD_HOOKS_STATICP): Ditto
7996         * tree.h (gcc_assert_lowered): New macro.
7997
7998 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
7999
8000         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
8001         argument "reliable".
8002         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
8003         Add argument "reliable".  Propagate it through calls.
8004         (infer_loop_bounds_from_undefined):  Derive number of iterations
8005         estimates from references in blocks that do not dominate loop latch.
8006         (gcov_type_to_double_int): New function.
8007         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
8008         and expected_loop_iterations_unbounded.
8009         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
8010         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
8011         * tree-data-ref.c (estimated_loop_iterations): Export.
8012         (get_references_in_stmt): Fix -- do not return addresses of local
8013         objects.
8014         * cfgloop.h (expected_loop_iterations_unbounded,
8015         estimated_loop_iterations): Declare.
8016
8017 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
8018
8019         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
8020
8021 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
8022
8023         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
8024         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
8025         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
8026         Use output_387_reg_move().
8027         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
8028         expander using X87MODEF12 mode macro.
8029         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
8030         choosing register preferences.  Use output_387_reg_move().
8031         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
8032         instead of "x".  Use output_387_reg_move().
8033         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
8034         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
8035         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
8036         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
8037         Use output_387_reg_move().
8038         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
8039         mode macro.
8040         (*truncxf?f_i387 splitter): Ditto.
8041
8042 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
8043
8044         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8045         LANG_HOOKS_SAFE_FROM_P.
8046         * expr.c (safe_from_p): Remove langhook call.
8047         * langhooks.h (lang_hooks): Remove safe_from_p.
8048         (lhd_safe_from_p): Remove prototype.
8049         * langhooks.c (lhd_safe_from_p): Remove.
8050
8051 2007-04-06  Jan Hubicka  <jh@suse.cz>
8052
8053         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
8054         functions.
8055
8056 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
8057
8058         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
8059         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
8060         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
8061         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
8062         alternative.
8063         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
8064         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
8065
8066 2007-04-05  Richard Henderson  <rth@redhat.com>
8067
8068         * config/alpha/alpha.c (print_operand) [+]: Remove.
8069         (alpha_end_function): Print nop if call at end of function.
8070         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
8071         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
8072         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
8073         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
8074         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
8075         the call pattern. Update peepholes to match.
8076
8077 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
8078
8079         * doc/extend.texi (Other Builtins): Add decimal float variants
8080         of signbit.
8081         * builtins.def: Ditto.
8082         * builtins.c (expand_builtin): Ditto.
8083
8084 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
8085             H.J. Lu  <hongjiu.lu@intel.com>
8086
8087         PR target/31478
8088         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
8089         of V8HImode when calling ix86_binary_operator_ok.
8090         (sse2_pmaddwd): Call ix86_binary_operator_ok.
8091         (sdot_prodv8hi): Operands 1 and 2 must be register.
8092
8093 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
8094
8095         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
8096         initialize align to silence bogus warning.
8097
8098 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
8099
8100         PR middle-end/22156
8101         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
8102         all_no_warning.
8103         (struct sra_walk_fns): Remove use_all parameter from use.
8104         (sra_hash_tree): Handle BIT_FIELD_REFs.
8105         (sra_elt_hash): Don't hash bitfld blocks.
8106         (sra_elt_eq): Skip them in parent compares as well.  Handle
8107         BIT_FIELD_REFs.
8108         (sra_walk_expr): Don't maintain or pass down use_all_p.
8109         (scan_use): Remove use_all parameter.
8110         (scalarize_use): Likewise.  Re-expand assignment to
8111         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
8112         output, and re-scalarize after output.  Don't mark anything
8113         for no warning.
8114         (scalarize_ldst): Adjust.
8115         (scalarize_walk_gimple_modify_statement): Likewise.
8116         (build_element_name_1): Handle BIT_FIELD_REFs.
8117         (instantiate_element): Don't warn for any element whose parent
8118         is used as a whole.
8119         (instantiate_missing_elements_1): Return the sra_elt.
8120         (canon_type_for_field): New.
8121         (try_instantiate_multiple_fields): New.
8122         (instantiate_missing_elemnts): Use them.
8123         (mark_no_warning): Removed.
8124         (generate_one_element_ref): Handle BIT_FIELD_REFs.
8125         (REPLDUP, sra_build_elt_assignment): New.
8126         (generate_copy_inout): Use them.
8127         (generate_element_copy): Likewise.  Handle bitfld differences.
8128         (generate_element_zero): Don't recurse for blocks.  Use
8129         sra_build_elt_assignment.
8130         (generate_one_element_int): Take elt instead of var.  Use
8131         sra_build_elt_assignment.
8132         (generate_element_init_1): Adjust.
8133         (scalarize_use, scalarize_copy): Use REPLDUP.
8134         (scalarize_ldst): Move assert before dereference.
8135         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
8136
8137 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8138
8139         * regmove.c: Fix unused variable warnings due to previous commit.
8140
8141 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8142
8143         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
8144         (regmove_bb_head): Remove.
8145         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
8146         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
8147         problems with fixup_match_1.
8148         Don't initialize/free regmove_bb_head.
8149
8150         (reg_is_remote_constant_p): If an insn is in the same basic block
8151         but not before INSN, consider it remote, too.
8152
8153 2007-04-05  Anatoly Sokolov <aesok@post.ru>
8154
8155         PR target/25448
8156         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
8157         DECL_ASSEMBLER_NAME, not the DECL_NAME.
8158
8159 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
8160
8161         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
8162         (CONDITIONAL_REGISTER_USAGE): Likewise.
8163
8164 2007-04-04  Richard Henderson  <rth@redhat.com>
8165
8166         * config/alpha/lib1funcs.asm: Remove unused file.
8167
8168 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
8169
8170         PR other/31356
8171         * opts.c (print_specific_help): Fix --help=<language>
8172         header line.
8173         (common_handle_option): Support --help=common.
8174
8175 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
8176
8177         PR other/31353
8178         * gcc.c (main): Do not run the linker if
8179         print_subprocess_help indicates that it shouldn't be
8180         run.
8181
8182 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
8183
8184         PR doc/31355
8185         * doc/invoke.texi (--help=): Document <languages> value, fix
8186         formatting in tables of values.
8187
8188 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
8189
8190         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
8191         dllimport attribute of virtual methods.
8192
8193 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
8194
8195         * config/score/crti.asm: Change _bss_start to __bss_start.
8196         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
8197         (OUTGOING_REG_PARM_STACK_SPACE) update.
8198         * config/score/score.opt: add options to make backend support
8199         score5, score5u, score7 and score7d.
8200         * config/score/score.md: Likewise.
8201         * config/score/misc.md: Likewise.
8202         * config/score/mac.md: Likewise.
8203         * doc/invoke.texi: Likewise.
8204         * doc/md.texi: update constraints define.
8205
8206 2007-04-03  Richard Henderson  <rth@redhat.com>
8207
8208         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
8209         an appropriate type, use the mode instead.
8210
8211 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
8212
8213         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
8214         Set the default --with-arch setting to mips2.
8215         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
8216         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
8217         (MULTILIB_OSDIRNAMES): Delete.
8218         (MULTILIB_DIRNAMES): Define.
8219         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
8220         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
8221         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
8222         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
8223         VXWORKS_OS_CPP_BUILTINS.
8224         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
8225         (MIPS_DEBUGGING_INFO): Undefine.
8226         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
8227
8228 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
8229
8230         PR middle-end/30704
8231         * fold-const.c (native_encode_real): Encode real.c provided longs
8232         as a series of 32-bit native integers.
8233         (native_interpret_real): Interpret buffer as a series of 32-bit
8234         native integers.
8235
8236 2007-04-03  Richard Guenther  <rguenther@suse.de>
8237
8238         * genpreds.c (write_insn_constraint_len): Write function
8239         optimized for CONSTRAINT_LEN implementation.
8240         (write_tm_preds_h): Output insn_constraint_len inline and
8241         use it for CONSTRAINT_LEN.
8242         (write_insn_preds_c): Don't output insn_constraint_len.
8243         * doc/md.texi (define_register_constraint): Document multi-letter
8244         constraints shall have the same length if they start with the same
8245         letter.
8246
8247 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
8248
8249         PR target/31175
8250         * config/i386/i386.md (isinf<mode>2): Expand only when
8251         TARGET_C99_FUNCTIONS is set.
8252
8253 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
8254
8255         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
8256         (x86_64-*-linux*): Ditto.
8257         * config/i386/i386.opt (mpc): New option.
8258         * config/i386/i386.c (overrride_options): Handle
8259         ix87_precision_string.
8260         * config/i386/crtprec.c: New file.
8261         * config/i386/t-crtpc: Ditto.
8262         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
8263         and -mpc80 options.
8264         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
8265         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
8266         crtprec32.o, crtprec64.o and crtprec80.o.
8267
8268         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
8269         and -mpc80 options.
8270         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
8271
8272 2007-04-02  Eric Christopher  <echristo@apple.com>
8273
8274         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
8275         limitations on darwin.
8276
8277 2007-04-02  Anatoly Sokolov <aesok@post.ru>
8278
8279         PR target/31137
8280         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
8281
8282 2007-04-02  Dave Korn  <dave.korn@artimi.com>
8283
8284         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
8285
8286 2007-04-02  Dave Korn  <dave.korn@artimi.com>
8287
8288         * libgcc2.h (exception_descriptor): Don't forward-declare.
8289         (__get_eh_table_language, __get_eh_table_version): Delete
8290         prototypes of long-dead functions.
8291
8292 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
8293
8294         * ebitmap.h: New file
8295         * ebitmap.c: New file
8296         * Makefile.in (ebitmap.o): New target.
8297
8298 2007-04-01  Jan Hubicka  <jh@suse.cz>
8299
8300         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
8301         before very first instruction.
8302
8303 2007-04-01  Jan Hubicka  <jh@suse.cz>
8304
8305         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
8306         waring on 64bit hosts.
8307         * bitmap.h: Fix typo in bitmap_head_def.
8308
8309 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
8310
8311         PR rtl-optimization/31391
8312         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
8313         into a DELETED_LABEL note, and the label is in an empty basic
8314         block, update BB_END as well as BB_HEAD.
8315
8316 2007-04-01  Richard Henderson  <rth@redhat.com>
8317
8318         PR tree-optimization/31169
8319         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
8320         to varying if the range is outside [0,  prec-1].
8321
8322 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
8323
8324         PR target/31388
8325         * config/mips/mips.md (load_const_gp): New insn.
8326         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
8327         the MIPS16 GP pseudo register if no_new_pseudos.
8328         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
8329
8330 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8331
8332         PR target/31364
8333         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
8334         secureplt.
8335         (call_value): Likewise.
8336
8337 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
8338             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8339
8340         PR 14737
8341         * doc/invoke.texi: (optimization options): Reword description
8342         of -ffast-math. Document its primary purpose.
8343
8344 2007-03-31  Richard Guenther  <rguenther@suse.de>
8345
8346         * omp-low.c (splay-tree.h): Include.
8347         (lookup_decl): Replace splay-tree usage by pointer-map.
8348         (maybe_lookup_decl): Likewise.
8349         (new_omp_context): Likewise.
8350         (delete_omp_context): Likewise.
8351         * gimplify.c (splay-tree.h): Include.
8352         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
8353         pointer-map.
8354         (remap_ssa_name): Likewise.
8355         (remap_decl): Likewise.
8356         (remap_type_1): Likewise.
8357         (remap_type): Likewise.
8358         (copy_body_r): Likewise.
8359         (expand_call_inline): Likewise.
8360         (clone_body): Likewise.
8361         (copy_tree_r): Likewise.
8362         (remap_save_expr): Likewise.
8363         (unsave_r): Likewise.
8364         (unsave_expr_now): Likewise.
8365         (tree_function_versioning): Likewise.
8366         (build_duplicate_type): Likewise.
8367         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
8368         (struct copy_body_data): Replace splay-tree by pointer-map.
8369         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
8370         not $(SPLAY_TREE_H).
8371         (gimplify.o): Depend on $(SPLAY_TREE_H).
8372         (omp-low.p): Likewise.
8373
8374 2007-03-31  Anatoly Sokolov <aesok@post.ru>
8375
8376         * config/avr/predicates.md (even_register_operand,
8377         odd_register_operand): New predicates.
8378         * config/avr/avr.md (movw peephole2): New.
8379         (movw_r peephole2): New.
8380
8381 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
8382
8383         * tree.h (get_signed_or_unsigned_type): New.
8384         * fold-const.c (operand_equal_for_comparison_p): Use
8385         get_signed_or_unsigned_type instead of
8386         lang_hooks.types.signed_or_unsigned_type.
8387         * expr.c (store_expr): Ditto.
8388         * langhooks.c (get_signed_or_unsigned_type): New.
8389         (lhd_signed_or_unsigned_type): New.
8390         * langhooks.h (lhd_signed_or_unsigned_type): New.
8391         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
8392
8393 2007-03-30  Richard Henderson  <rth@redhat.com>
8394
8395         * tree-ssa-loop-ivopts.c: Include target.h.
8396         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
8397         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
8398         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
8399         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
8400
8401 2007-03-30  Richard Henderson  <rth@redhat.com>
8402             Kai Tietz  <kai.tietz@onevision.com>
8403
8404         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
8405         default for 64-bit.
8406         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
8407         (TARGET_64BIT_MS_ABI): New.
8408         (DBX_REGISTER_NUMBER): Handle 64-bit.
8409         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
8410         (LONG_TYPE_SIZE): Force to 32.
8411         (REG_PARM_STACK_SPACE): New.
8412         (OUTGOING_REG_PARM_STACK_SPACE): New.
8413         (REGPARM_MAX, SSE_REGPARM_MAX): New.
8414         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
8415         (STACK_BOUNDARY): Use 128 for 64-bit.
8416         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
8417         Add 64-bit implementation.
8418         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
8419         argument unused.
8420         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
8421         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
8422         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
8423         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
8424         (ix86_handle_cconv_attribute): Don't warn when ignoring if
8425         TARGET_64BIT_MS_ABI.
8426         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
8427         (ix86_pass_by_reference): Likewise.
8428         (ix86_function_value_regno_p): Likewise.
8429         (ix86_build_builtin_va_list): Likewise.
8430         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
8431         (function_arg_advance_ms_64): New.
8432         (function_arg_advance): Call it.
8433         (function_arg_ms_64): New.
8434         (function_arg): Call it.
8435         (function_value_ms_64): New.
8436         (ix86_function_value_1): Call it.
8437         (return_in_memory_ms_64): New.
8438         (ix86_return_in_memory): Call it.
8439         (setup_incoming_varargs_ms_64): New.
8440         (ix86_setup_incoming_varargs): Call it.
8441         (ix86_expand_prologue): Handle 64-bit stack probing.
8442         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
8443         (output_pic_addr_const): Likewise.
8444         (x86_this_parameter): Likewise.
8445         (x86_output_mi_thunk): Likewise.
8446         (x86_function_profiler): Likewise.
8447         (TARGET_STRICT_ARGUMENT_NAMING): New.
8448         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
8449         (TARGET_64BIT_MS_ABI): New.
8450         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
8451         * config/i386/i386.md (allocate_stack_worker): Remove.
8452         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
8453         describe the clobber of eax without a match_scratch.
8454         (allocate_stack_worker_postreload): Remove.
8455         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
8456         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
8457         (allocate_stack_worker_rex64_postreload): Remove.
8458         (allocate_stack): Handle 64-bit.
8459         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
8460         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
8461         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
8462         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
8463         (STANDARD_STARTFILE_PREFIX_1): Likewise.
8464         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
8465         * config.build (x86_64-*-mingw*): New host.
8466         * config.host (x86_64-*-mingw*): New host.
8467         * config.gcc (x86_64-*-mingw*): New target.
8468         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
8469
8470 2007-03-30  Richard Henderson  <rth@redhat.com>
8471             Kai Tietz  <kai.tietz@onevision.com>
8472
8473         * c-pragma.c (struct def_pragma_macro_value): New.
8474         (struct def_pragma_macro): New.
8475         (pushed_macro_table): New.
8476         (dpm_hash, dpm_eq): New.
8477         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
8478         (init_pragma): Install them.
8479         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
8480
8481 2007-03-30  Anatoly Sokolov <aesok@post.ru>
8482
8483         * config/avr/avr.c (avr_override_options): Clear
8484         'flag_delete_null_pointer_checks'.
8485
8486 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
8487
8488         PR c++/26099
8489         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
8490         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
8491         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
8492         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
8493         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
8494         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
8495         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
8496         C++ extensions.
8497         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
8498
8499 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
8500
8501         * regmove.c: Move all of pass_stack_adjustments from here...
8502         * combine-stack-adj.c: ...to this new file.
8503         * Makefile.in: Add rules for combine-stack-adj.o.
8504
8505 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
8506
8507         PR tree-optimization/31383
8508         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
8509         to have the same length.
8510
8511 2007-03-30  Jan Hubicka  <jh@suse.cz>
8512
8513         PR middle-end/30700
8514         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
8515         availablility; add more sanity checking; ask varpool only about
8516         VAR_DECL.
8517
8518 2007-03-29  Richard Henderson  <rth@redhat.com>
8519
8520         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
8521         to decide, but __SIZEOF_LONG_LONG__.
8522
8523 2007-03-29  Richard Henderson  <rth@redhat.com>
8524
8525         * emutls.c (struct __emutls_array): New.
8526         (emutls_destroy): Use it instead of casting element 0 from void*.
8527         (__emutls_get_address): Likewise.
8528
8529 2007-03-29  Richard Henderson  <rth@redhat.com>
8530
8531         * varasm.c (initializer_constant_valid_p): Don't deny
8532         DECL_DLLIMPORT_P on functions.
8533
8534         * config/i386/cygming.h: Remove function declarations.
8535         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
8536         (ASM_OUTPUT_LABELREF): Remove.
8537         (COMMON_ASM_OP): Remove.
8538         (ASM_OUTPUT_COMMON): Remove.
8539         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8540         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
8541         (ASM_DECLARE_FUNCTION_NAME): Likewise.
8542         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
8543         Rename from TARGET_ENCODE_SECTION_INFO.
8544         * config/i386/netware.h: Likewise.
8545         * config/i386/i386-protos.h: Update.
8546         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
8547         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
8548         (legitimate_constant_p): Reject dllimports.
8549         (dllimport_map, get_dllimport_decl): New.
8550         (legitimize_dllimport_symbol): New.
8551         (legitimize_address, ix86_expand_move): Use it.
8552         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
8553         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
8554         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
8555         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
8556         * config/i386/predicates.md (constant_call_address_operand): Only
8557         accept symbols; reject dllimport_p symbols.
8558         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
8559         i386_pe_maybe_record_exported_symbol.
8560         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
8561         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
8562         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
8563         trust the setting of DECL_DLLIMPORT_P.
8564         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
8565         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
8566         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
8567         tidy the argument scanning loop.
8568         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
8569         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
8570         (i386_pe_strip_name_encoding): Remove.
8571         (i386_pe_binds_local_p): New.
8572         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
8573         (i386_pe_output_labelref): Remove.
8574         (i386_pe_asm_output_aligned_decl_common): New.
8575         (i386_pe_maybe_record_exported_symbol): Rename from
8576         i386_pe_record_exported_symbol; check for dllexported symbols.
8577
8578 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
8579
8580         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
8581         add comment explaining why vsnprintf cannot be used.
8582
8583 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
8584
8585         PR tree-optimization/30666
8586         * tree.c (build_complex_type): When creating type names for DWARF2
8587         debug info, create TYPE_DECLs for TYPE_NAME instead of
8588         IDENTIFIER_NODEs.
8589         (build_common_tree_nodes_2): Use build_complex_type when building
8590         predefined complex types, to preserve canonical types.
8591
8592 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
8593
8594         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
8595         (noce_get_alt_condition): Look at it to determine whether to
8596         reverse the condition or not.
8597         (noce_get_condition): Substitute the truth for lies.
8598         (noce_find_if_block): Set the then_else_reversed field.
8599
8600 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
8601
8602         * config/fr30/fr30.md (movdi): Do not accept immediates as the
8603         destination of this insn.
8604         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
8605         than calling gen_rtx_SET directly.  Use r0 to hold the value of
8606         'address + 4' rather than a stack based temporary which can be
8607         mis-optimized away.
8608
8609 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
8610
8611         * config/s390/s390.c (s390_secondary_input_reload_class,
8612         s390_secondary_output_reload_class): Functions removed.
8613         (s390_secondary_reload): New function.
8614         (TARGET_SECONDARY_RELOAD): Target macro defined.
8615         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
8616         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
8617         * config/s390/s390.md ("reload_outti", "reload_outdi",
8618         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
8619         "reload_out<mode>"): Expanders removed.
8620         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
8621         "reload<mode>_nonoffmem_out"): Expanders added.
8622
8623 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
8624
8625         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
8626         SRC->DEST replacement failed anyway.
8627
8628 2007-03-28  Mike Stump  <mrs@apple.com>
8629
8630         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
8631         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
8632         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
8633
8634 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8635
8636         * config.gcc: Accept barcelona as a variant of amdfam10.
8637         * config/i386/i386.c (override_options): Likewise.
8638         * doc/invoke.texi: Likewise.
8639
8640 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8641
8642         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
8643         offsets for BIT_FIELD_REF and COMPONENT_REF.
8644
8645 2007-03-28  Richard Guenther  <rguenther@suse.de>
8646
8647         * tree.c (is_global_var): Move ...
8648         * tree-flow-inline.h (is_global_var): ... here.
8649         * tree.h (is_global_var): Remove declaration.
8650
8651 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
8652
8653         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
8654         option.
8655         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
8656         * config/i386/i386.c (ix86_tune_features): Initialize new
8657         tuning option.
8658         * config/i386/predicates.md (promotable_binary_operator): Use
8659         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
8660
8661 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
8662
8663         PR target/31380
8664         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
8665
8666 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
8667
8668         * config/fr30/fr30.md (movsi_internal): Change destination
8669         constraint from m to V and add m to the end.
8670
8671 2007-03-28  Christian Bruel  <christian.bruel@st.com>
8672
8673         * config/sh/sh.md (movsi_i): Fix type attribute.
8674
8675 2007-03-28  Christian Bruel  <christian.bruel@st.com>
8676
8677         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
8678         (movsf_ie): Likewise.
8679
8680 2007-03-28  Christian Bruel  <christian.bruel@st.com>
8681
8682         * config.gcc: Add sh4-300 to multilib.
8683         * config/sh/t-mlib-sh4-300: New file.
8684
8685 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8686
8687         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
8688         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
8689         fix_trunc<mode>di2.
8690         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
8691         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
8692         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
8693         "fixuns_trunctddi2"): Whitespace fix.
8694
8695 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8696
8697         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
8698         the definition of struct sh_args.
8699         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
8700         CALL_COOKIE_INT_REG_GET): Likewise.
8701
8702 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8703
8704         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
8705         transformations are applied successfully.
8706
8707 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
8708
8709         * tree.c (tree_contains_struct): Permit 512 tree codes.
8710         * tree.h (tree_contains_struct): Ditto.
8711         (MAX_TREE_CODES): Ditto.
8712         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
8713         SPARE member to store remaining padding bits.
8714
8715 2007-03-27  Anatoly Sokolov <aesok@post.ru>
8716
8717         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
8718         architecture.
8719
8720 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
8721
8722         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
8723         * configure: Regenerate.
8724
8725         * configure: Regenerate using the correct version of autoconf.
8726
8727 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
8728
8729         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
8730         pointer regs.
8731         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
8732         regs to "__SP_L__" and "__SP_H__".
8733
8734 2007-03-27  Richard Guenther  <rguenther@suse.de>
8735
8736         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
8737         computations with it with a HOST_WIDE_INT variable.
8738
8739 2007-03-26  Mike Stump  <mrs@apple.com>
8740
8741         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
8742         objective-c-header, objective-c++-header and objc++-cpp-output
8743         support.
8744         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
8745
8746 2007-03-26  Richard Henderson  <rth@redhat.com>
8747
8748         PR target/31361
8749         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
8750         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
8751         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
8752         IX86_BUILTIN_PSRLQ128): New.
8753         (ix86_init_mmx_sse_builtins): Add them.
8754         (ix86_expand_builtin): Expand them.
8755         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
8756         operand 2 be TImode.
8757         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
8758         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8759         _mm_srli_epi64): Mark __B const.
8760         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
8761         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
8762         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
8763         new two-vector shift builtins.
8764
8765 2007-03-26  Ian Lance Taylor  <iant@google.com>
8766
8767         PR tree-optimization/31345
8768         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
8769         [+INF, +INF(OVF)] into VARYING.
8770
8771 2007-03-26  Zack Weinberg  <zackw@panix.com>
8772
8773         * gengtype-parse.c: New file.
8774         * gengtype-yacc.y: Delete.
8775         * gengtype-lex.l: Don't include gengtype-yacc.h.
8776         Define YY_DECL and yyterminate appropriately for recursive
8777         descent parser.  yylval is now a string out-parameter to yylex.
8778         (HWS, EOID): New shorthand.
8779         (IWORD): Add a couple more types.
8780         (yylex): Add a setup stanza.  Remove the complex rules for
8781         detecting GTY'ed types and typedefs; replace with simple
8782         keyword detectors.  Adjust everything for the changed
8783         definition of yylval.  Ignore all pp-directives, not just #define.
8784         (yyerror): Delete.
8785         (parse_file): Rename yybegin; do not call yyparse.
8786         (yyend): New.
8787         * gengtype.c (xasprintf): Export again.
8788         (this_file): New.  Use everywhere __FILE__ was being used.
8789         (get_lang_bitmap): Special case types defined in gengtype.c.
8790         (do_typedef, new_structure): Suppress definition of certain types.
8791         (new_structure): Improve diagnostics of duplicate definitions.
8792         Make sure location_s is associated with input.h.
8793         (nreverse_pairs, define_location_structures): New functions.
8794         (main): Improve tagging of kludge types.  Remove old kludges
8795         for input.h types; use define_location_structures.
8796         * gengtype.h: Update prototypes.  Define token codes here.
8797         * Makefile.in: Remove all references to gengtype-yacc.
8798         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
8799         and gengtype.
8800         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
8801         add GTY((skip)) to the field that's only conditionally there.
8802         * doc/install.texi: Document that Bison is no longer required
8803         unless building treelang.
8804
8805         * gengtype.c: Don't include gtyp-gen.h.
8806         (srcdir): Declare here.
8807         (base_files, lang_dir_names): Allocate dynamically.
8808         (gt_files, num_gt_files, num_lang_dirs): New globals.
8809         (measure_input_list, read_input_line, read_input_list)
8810         (set_lang_bitmap): New functions.
8811         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
8812         simplify, relying on read_input_list to set up the bitmaps.
8813         (main): Arguments are no longer unused.  Check for correct number
8814         of command line arguments, set srcdir and srcdir_len, then call
8815         read_input_list, before doing anything else.  No need to worry
8816         about duplicates in main loop.
8817         * configure.ac: Simplify the calculation of all_gtfiles.
8818         Put language tags in there.  Don't set or substitute
8819         all_gtfiles_files_langs or all_gtfiles_files_frags.
8820         * Makefile.in: Revamp the way gengtype is invoked, now that it
8821         takes a file on its command line with a much simpler format.
8822         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
8823         (GTFILES): Remove duplicates and C source files.
8824         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
8825         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
8826         * configure: Regenerate.
8827
8828         * gengtype.h: Remove all type definitions to gengtype.c; leave
8829         only definitions of options_p, type_p, and pair_p as opaque
8830         pointers.  Update prototypes.
8831         * gengtype.c: Many type definitions moved here from gengtype.h.
8832         Consolidate type definitions at the top of the file.
8833         (xvasprintf): Delete.
8834         (xasprintf): Make static.
8835         (create_nested_pointer_option): Add 'next' parameter.
8836         (create_field_all, create_field_at): New functions.
8837         (create_field): Now a thin wrapper around create_field_all.
8838         (create_optional_field): Rename create_optional_field_ and add
8839         line argument.  Original name is now a macro which supplies
8840         __LINE__.
8841         (oprintf): Use vsnprintf directly.
8842         (close_output_files): Use fatal rather than perror/exit.
8843         (note_def_vec, note_def_vec_alloc): Use create_field_at.
8844         (main): Set progname.  Don't use exit.
8845         * gengtype-yacc.y (struct_fields): Use create_field_at.
8846         (option, optionseqopt): Delete.
8847         (optionseq): Consolidate productions from option here so we
8848         can use the first argument to create_option.
8849
8850         * gengtype-lex.l: Distinguish unions from structures in the
8851         token type.  Don't call find_structure; return the tag as a string.
8852         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
8853         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
8854         Reorganize typedef_struct production accordingly.
8855         Use create_nested_ptr_option.
8856         * gengtype.c (create_nested_ptr_option): New function.
8857         * gengtype.h: Declare it.
8858
8859         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
8860         (string_type): Don't declare.
8861         (do_scalar_typedef): Declare.
8862         (create_scalar_type): Update prototype.
8863         * gengtype.c (string_type): Make static.
8864         (scalar_nonchar, scalar_char): New.
8865         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
8866         (resolve_typedef): Use scalar_nonchar for error recovery.
8867         (create_scalar_type): Remove name_len field.  Return scalar_char
8868         or scalar_nonchar as appropriate.
8869         (adjust_field_type): Look at scalar_is_char boolean to decide whether
8870         to use string_type.
8871         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
8872         whenever possible.
8873         (main): Initialize scalar_char and scalar_nonchar before calling
8874         gen_rtx_next.
8875         * gengtype-lex.l: Adjust for removal of second argument to
8876         create_scalar_type.  Use yylval.s instead of yylval.t when
8877         returning SCALAR.
8878         * gengtype-yacc.y: Type of SCALAR is string.  Call
8879         create_scalar_type from type:SCALAR rule.  Adjust for removal of
8880         second argument to create_scalar_type.
8881
8882         * vec.h: Remove all #if IN_GENGTYPE blocks.
8883         Add comment saying that changes may require adjustments to gengtype.
8884         * gengtype.c: Don't include coretypes.h or tm.h.
8885         Add comment to inclusion of errors.h.
8886         (note_def_vec, note_def_vec_alloc): New functions.
8887         * gengtype.h: Declare new functions.
8888         * gengtype-lex.l: Don't include coretypes.h.
8889         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
8890         Delete.
8891         (update_lineno): Remove unnecessary prototype.
8892         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
8893         (VEC rule): Just return VEC_TOKEN.
8894         * gengtype-yacc.y (VEC_TOKEN): New token type.
8895         (type): Add a production for VEC(a,b).
8896         * Makefile.in: Update dependencies.
8897
8898         * gengtype-lex.l: Remove rules for parsing pointer-to-function
8899         typedefs that use the old PARAMS macro.
8900
8901         * gengtype-lex.l: Remove all rules and states relating to yacc
8902         input files.
8903         * gengtype-yacc.y: Similarly.
8904         * gengtype.c (note_yacc_type): Delete function.
8905         * gengtype.h: Update prototypes.
8906
8907 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
8908
8909         * tree-pretty-print.c (dump_generic_node): Report precision of
8910         unnamed integer types.
8911
8912 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
8913
8914         * ifcvt.c (noce_try_store_flag_constants): Don't check
8915         no_new_pseudos here.
8916         (noce_try_store_flag_constants): Don't check no_new_pseudos.
8917         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
8918         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
8919         noce_try_sign_mask): Likewise.
8920         (if_convert): Check no_new_pseudos here.
8921
8922         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
8923         Remove prototypes.
8924         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
8925         (noce_get_condition): Handle new then_else_reversed argument.
8926         (noce_init_if_info): Remove, fold into noce_find_if_block.
8927         (noce_process_if_block): Take a struct noce_if_info as the
8928         argument.  Don't set up one based on ce_if_info.  Update pointer
8929         references accordingly.
8930         (cond_move_process_if_block): Likewise.
8931         (process_if_block): Removed.
8932         (find_if_block): Removed.  Move functionality two new functions,
8933         noce_find_if_block and cond_exec_find_if_block.
8934         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
8935         blocks and the symmetric IF-ELSE-JOIN case.
8936         (cond_exec_find_if_block): Also new function mostly based on old
8937         find_if_block and process_if_block.
8938         (find_if_header): Replace find_if_block call with separately
8939         guarded calls to noce_find_if_block and cond_exec_find_if_block.
8940         (find_cond_trap): Update noce_get_condition call.
8941         (dead_or_predicable): Likewise.
8942
8943 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8944
8945         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
8946         Remove.
8947         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
8948         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
8949         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
8950         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
8951         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
8952         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
8953         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
8954         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
8955         __builtin_ia32_psrad128 builtins.
8956
8957 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
8958
8959         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
8960         * config/i386/constraints.md
8961         (define_constraint "I"): Use IN_RANGE macro.
8962         (define_constraint "J"): Ditto.
8963         (define_constraint "K"): Ditto.
8964         (define_constraint "M"): Ditto.
8965         (define_constraint "N"): Ditto.
8966         (define_constraint "O"): Ditto.
8967         * config/i386/predicates.md
8968         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
8969         (define_predicate "const_0_to_3_operand"): Ditto.
8970         (define_predicate "const_0_to_7_operand"): Ditto.
8971         (define_predicate "const_0_to_15_operand"): Ditto.
8972         (define_predicate "const_0_to_63_operand"): Ditto.
8973         (define_predicate "const_0_to_255_operand"): Ditto.
8974         (define_predicate "const_1_to_31_operand"): Ditto.
8975         (define_predicate "const_2_to_3_operand"): Ditto.
8976         (define_predicate "const_4_to_7_operand"): Ditto.
8977
8978 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
8979
8980         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
8981         in SImode for save_world.
8982         * config/rs6000/altivec.md (save_world, restore_world): Convert to
8983         LR hard reg.
8984
8985 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
8986
8987         PR tree-optimization/30784
8988         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
8989         BIT_FIELD_REF.
8990
8991 2007-03-25  Revital Eres  <eres@il.ibm.com>
8992
8993         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
8994           Fold movement_possibility function into it.
8995
8996 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
8997
8998         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
8999         (load_macho_picbase_{si,di}): Convert to LR hard reg.
9000         (call_indirect_nonlocal_darwin64): Same.
9001         (call_nonlocal_darwin64): Same.
9002         (call_value_indirect_nonlocal_darwin64): Same.
9003         (call_value_nonlocal_darwin64): Same.
9004         (sibcall_nonlocal_darwin64): Same.
9005         (sibcall_value_nonlocal_darwin64): Same.
9006         (sibcall_symbolic_64): Same.
9007         (sibcall_value_symbolic_64): Same.
9008         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
9009         LR pseudo.
9010         (rs6000_emit_load_toc_table): Same.
9011         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
9012         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
9013         (mull_call): Same.
9014         (divss_call): Same.
9015         (divus_call): Same.
9016         (quoss_call): Same.
9017         (quous_call): Same.
9018         (load_toc_v4_pic_si): Same
9019         (load_toc_v4_PIC_1): Same.
9020         (load_toc_v4_PIC_1b): Same.
9021         (call_indirect_aix{32,64}): Same.
9022         (call_value_indirect_aix{32,64}): Same.
9023         (call): Same.
9024         (call_value): Same.
9025         (call_local{32,64}): Same.
9026         (call_value_local{32,64}): Same.
9027         (call_indirect_nonlocal_aix{32,64}): Same.
9028         (call_nonlocal_aix{32,64}): Same.
9029         (call_value_indirect_nonlocal_aix{32,64}): Same.
9030         (call_value_nonlocal_aix{32,64}): Same.
9031         (call_indirect_nonlocal_sysv<mode>): Same.
9032         (call_nonlocal_sysv<mode>): Same.
9033         (call_value_indirect_nonlocal_sysv<mode>): Same.
9034         (call_value_nonlocal_sysv<mode>): Same.
9035         (sibcall): Same.
9036         (sibcall_local{32,64}): Same.
9037         (sibcall_value_local{32,64}): Same.
9038         (sibcall_nonlocal_aix{32,64}): Same.
9039         (sibcall_value_nonlocal_aix{32,64}): Same.
9040         (sibcall_nonlocal_sysv<mode>): Same.
9041         (sibcall_value): Same.
9042         (sibcall_value_nonlocal_sysv<mode>): Same.
9043
9044 2007-03-24  Paul Brook  <paul@codesourcery.com>
9045
9046         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
9047         * config/arm/linux-eabi.h: Remove legacy syscall hack.
9048
9049 2007-03-24  Richard Henderson  <rth@redhat.com>
9050
9051         * config/ia64/constraints.md: New file.
9052         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
9053         satisfies_constraint_?.
9054         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
9055         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
9056         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
9057         ia64_output_mi_thunk): Likewise.
9058         (ia64_const_ok_for_letter_p): Remove.
9059         (ia64_const_double_ok_for_letter_p): Remove.
9060         (ia64_extra_constraint): Remove.
9061         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
9062         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
9063         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
9064         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
9065         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
9066         EXTRA_MEMORY_CONSTRAINT): Remove.
9067         * config/ia64/ia64.md: Include constriants.md.  Replace
9068         CONST_OK_FOR_? with satisfies_constraint_?.
9069
9070 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
9071             H.J. Lu  <hongjiu.lu@intel.com>
9072
9073         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
9074         DPD or BID name.
9075         (name macros): Use DPD_BID_NAME to convert names properly.
9076
9077         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
9078         decimal floating point format.
9079         (init_floating_libfuncs): Change decimal functions so that they
9080         have a "bid_" prefix if the decimal system uses the BID format,
9081         and "dpd_" prefix if the decimal system uses the DPD format.
9082         (init_interclass_conv_libfuncs): Ditto.
9083         (init_intraclass_conv_libfuncs): Ditto.
9084
9085         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
9086         using the BID format.
9087
9088         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
9089         whether we are using the BID decimal format.
9090         * configure: Regenerate.
9091
9092         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
9093         the compiler has decimal floating point enabled.  Define
9094         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
9095         instead of DPD.
9096
9097         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
9098         using the BID format.
9099
9100         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
9101         whether we are using the BID decimal format.
9102         * configure: Regenerate.
9103
9104         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
9105         the compiler has decimal floating point enabled.  Define
9106         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
9107         instead of DPD.
9108
9109         * doc/install.texi (--enable-decimal-float): Document BID and DPD
9110         options, and that it is enabled for i386/x86_64 systems.
9111
9112         * Makefile.in (enable_decimal_float): New.
9113         (DECNUMFMT): New.
9114         (DECNUMINC): Add  -I$(DECNUMFMT).
9115         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
9116         to $(DECNUMFMT) from $(DECNUM).
9117
9118         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
9119         Substitute enable_decimal_float.
9120         * configure: Regenerated.
9121
9122         PR other/30529
9123         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
9124         unsigned long.
9125
9126         * configure.ac: Enable decimal float for x86_64-*-linux*.
9127         * configure: Regenerated.
9128
9129         PR other/30530
9130         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
9131         decimal128ClearSign to flip and clear the sign bit in decimal128.
9132         (decimal_real_maxval): Set decimal128SetSign to set the sign
9133         bit in decimal128.
9134
9135 2007-03-23  Ian Lance Taylor  <iant@google.com>
9136
9137         * fold-const.c (fold_binary): Correct warning for X - c >= X.
9138
9139 2007-03-23  Ian Lance Taylor  <iant@google.com>
9140
9141         * tree-dump.c (dump_files): Correct comment.
9142
9143 2007-03-23  Ian Lance Taylor  <iant@google.com>
9144
9145         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
9146
9147 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9148
9149         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
9150         in cfglayout mode.  Don't go into and out of cfglayout mode.
9151         Link the blocks in the order of the constructed traces.
9152         (rest_of_handle_tracer): Adjust call to tracer.
9153         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
9154         Don't go into cfglayout mode.
9155         (rtl_loop_done): Don't go out of cfglayout mode.
9156         * cfglayout.c (relink_block_chain): New function, split out from...
9157         (fixup_reorder_chain): ...here.  Remove redundant checking.
9158         (cfg_layout_finalize): Don't clear the header, footer, and aux
9159         fields here, move the code to do so to relink_block_chain.  Likewise
9160         for free_original_copy_tables.
9161         * rtl.h (tracer): Update prototype.
9162         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
9163         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
9164         mode.  Use relink_block_chain to serialize the CFG according to the
9165         new basic block order.  Move targetm.cannot_modify_jumps_p check from
9166         here...
9167         (gate_handle_reorder_blocks): ...to here.
9168         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
9169         from here...
9170         (gate_duplicate_computed_gotos): ...to here.
9171         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
9172         something always changes when going into and out of cfglayout mode.
9173         Perform an expensive cfg cleanup while going into cfglayout mode.
9174         Always update liveness information on HAVE_conditional_execution
9175         targets.  Reserialize the basic blocks and go out of cfglayout mode.
9176         * reg-stack.c: Include cfglayout.h.
9177         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
9178         the call to reorder_basic_blocks.
9179         * basic-block.h (reorder_basic_blocks): Update prototype.
9180         (relink_block_chain): New prototype.
9181         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
9182
9183 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
9184
9185         * config/mips/mips.md (type, hazard, *movdi_32bit,
9186         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
9187         *movhi_internal, *movqi_internal, *movsf_hardfloat,
9188         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
9189         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
9190         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
9191         applicable.
9192         (movcc): Change first xfer to multi.
9193         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
9194         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
9195         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
9196         config/mips/generic.md: Change reservations using "xfer" to use
9197         "mfc,mtc".
9198         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
9199         using match_operand.
9200         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
9201         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
9202         examining mode.
9203         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
9204
9205 2007-03-22  Richard Henderson  <rth@redhat.com>
9206
9207         * config/i386/i386.c: Remove unnecessary function declarations.
9208         Move targetm definition, and all related macros, to the end of
9209         the file.  Resort some functions to put definitions before uses.
9210         (ix86_attribute_table): Make static.  Move to end of file.
9211         (ix86_gimplify_va_arg): Make static.
9212
9213 2007-03-22  Richard Henderson  <rth@redhat.com>
9214
9215         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
9216         don't increase local_regparm with force_align_arg_pointer check.
9217         (ix86_function_sseregparm): Assert 32-bit.
9218         (type_has_variadic_args_p): New.
9219         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
9220         type_has_variadic_args_p.
9221         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
9222         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
9223         use memset instead.  Do maybe_vaarg check first; skip attribute
9224         tests if true; skip attribute tests for 64-bit.
9225         (construct_container): Remove TARGET_DEBUG_ARG.
9226         (function_arg_advance_32, function_arg_advance_64): Split out ...
9227         (function_arg_advance): ... from here.
9228         (function_arg_32, function_arg_64): Split out ...
9229         (function_arg): ... from here.
9230         (ix86_pass_by_reference): Tidy.
9231         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
9232         (function_value_32): New, from parts of ix86_function_value
9233         and ix86_value_regno.
9234         (function_value_64): New, from parts of ix86_function_value
9235         and ix86_libcall_value.
9236         (ix86_function_value_1): New.
9237         (ix86_function_value, ix86_libcall_value): Use it.
9238         (return_in_memory_32, return_in_memory_64): Split out ...
9239         (ix86_return_in_memory): ... from here.
9240         (ix86_struct_value_rtx): Skip for 64-bit.
9241         (ix86_libcall_value, ix86_value_regno): Remove.
9242         (setup_incoming_varargs_64): Split out ...
9243         (ix86_setup_incoming_varargs): ... from here.
9244         (ix86_va_start): Remove TARGET_DEBUG_ARG.
9245         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
9246         * config/i386/i386-protos.h (ix86_function_value): Remove.
9247         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
9248
9249 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9250
9251         PR other/23572
9252         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
9253         infinities not supported, otherwise emit warning if -Woverflow. On
9254         underflow, emit warning if -Woverflow.
9255         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
9256         and 0 otherwise.
9257         * real.h (real_from_string): Update declaration
9258
9259 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
9260             Richard Henderson  <rth@redhat.com>
9261
9262         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
9263         * calls.c (compute_argument_block_size, expand_call,
9264         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
9265         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9266         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
9267         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
9268         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
9269         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
9270         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
9271         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
9272         Set to 1.
9273
9274 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
9275
9276         * c-incpath.c (add_sysroot_to_chain): New.
9277         (merge_include_chains): Add sysroot argument.  Call
9278         add_sysroot_to_chain if sysrooted.
9279         (register_include_chains): Update call to merge_include_chains.
9280         * doc/cppopts.texi: Document use of '=' in include directory
9281         arguments.
9282
9283 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
9284
9285         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
9286         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
9287         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
9288         insn pattern using X87MODEF12 mode macro.
9289
9290 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
9291
9292         * regmove.c (regmove_optimize): Use reg_mentioned_p
9293         instead of reg_overlap_mentioned_p for DST.
9294
9295 2007-03-21  Mike Stump  <mrs@apple.com>
9296
9297         * c.opt: Fixup for Objective-C/C++.
9298
9299 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
9300
9301         * explow.c (convert_memory_address): Fold memory reference when
9302         POINTERS_EXTEND_UNSIGNED < 0
9303
9304 2007-03-21  Richard Henderson  <rth@redhat.com>
9305
9306         PR target/31245
9307         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
9308         * config/i386/mmintrin.h (__m64): Likewise.
9309         * config/i386/xmmintrin.h (__m128): Likewise.
9310
9311 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
9312
9313         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
9314         (VXWORKS_OS_CPP_BUILTINS): Define.
9315         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
9316         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
9317
9318 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
9319
9320         * rtl.h (constant_pool_reference_p): Delete.
9321         (find_constant_src): Declare.
9322         * rtlanal.c (find_constant_src): New function.
9323         * simplify-rtx.c (constant_pool_reference_p): Delete.
9324         * config/i386/i386.md: Use find_constant_src instead of
9325         constant_pool_reference_p/avoid_constant_pool_reference pairs.
9326
9327 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
9328
9329         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
9330         * c-cppbuiltin.c (c_cpp_builtins): Define them.
9331
9332 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
9333
9334         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
9335         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
9336         (arm_elf_asm_constructor): Use it.
9337         (arm_elf_asm_destructor): New function.
9338
9339 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
9340
9341         * jump.c (mark_jump_label): Treat SEQUENCE specially.
9342
9343 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
9344
9345         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
9346
9347 2007-03-19  Andrew Haley  <aph@redhat.com>
9348
9349         PR tree-optimization/31264
9350         * tree-vrp.c (register_edge_assert_for_1): Don't look though
9351         VIEW_CONVERT_EXPRs.
9352
9353 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
9354
9355         PR rtl-optimization/30907
9356         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
9357         (fwprop_init): Always call loop_optimizer_initialize.
9358         (fwprop_done): Always call loop_optimizer_finalize.
9359         (fwprop): We always have loop info now.
9360         (gate_fwprop_addr): Remove.
9361         (pass_fwprop_addr): Use gate_fwprop as gate.
9362
9363         PR rtl-optimization/30841
9364         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
9365         df_chain_alloc): Call df_reorganize_refs unconditionally.
9366         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
9367         refs_organized to refs_organized_size.
9368         (df_ref_create_structure): Use refs_organized_size instead of
9369         bitmap_size if refs had been organized, and keep refs_organized_size
9370         up-to-date.
9371         * df.h (struct df_ref_info): Change refs_organized to
9372         refs_organized_size.
9373         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
9374         bitmap_size.
9375
9376 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
9377
9378         * except.c (output_function_exception_table): Do not reference the
9379         EH personality routine for functions that do not require an
9380         exception table.
9381
9382 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9383
9384         PR c/30762
9385         * c-typeck.c (convert_for_assignment): Call comptypes for
9386         RECORD_TYPE or UNION_TYPE.
9387
9388         PR inline-asm/30505
9389         * reload1.c (reload): Do invalid ASM checking after
9390         cleanup_subreg_operands.
9391
9392 2007-03-19  Jeff Law  <law@redhat.com>
9393
9394         * tree-cfg.c (find_taken_edge): Tighten conditions for
9395         optimizing computed gotos.
9396
9397 2007-03-19  Michael Matz  <matz@suse.de>
9398
9399         * builtins.c (expand_builtin_sync_operation,
9400         expand_builtin_compare_and_swap,
9401         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
9402         correctly.
9403
9404         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
9405         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
9406         for operand 3.
9407
9408 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9409
9410         * doc/tm.texi: Add brackets around the return type of
9411         TARGET_SECONDARY_RELOAD.
9412
9413 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9414         Richard Guenther  <rguenther@suse.de>
9415
9416         PR tree-optimization/31254
9417         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9418         Use handled_component_p () where appropriate.  Continue
9419         propagating into the rhs if we propagated into an INDIRECT_REF
9420         on the lhs.
9421
9422 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9423
9424         * config/s390/s390.md (op_type attribute): RRR instruction type added.
9425         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
9426         (xde, xdee): Mode attributes adjusted to support DFP modes.
9427         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
9428         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
9429         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
9430         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
9431         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
9432         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
9433         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
9434         numbers.
9435         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
9436         "movsf"): Insn definitions removed.
9437         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
9438         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
9439         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
9440         definitions added.
9441         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
9442         "reload_in<mode>", "reload_out<mode>"): Expander added.
9443         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
9444         Expander removed.
9445
9446 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9447
9448         * config/s390/s390.md: Only non-functional changes.  Renamed
9449         FPR mode macro to BFP all over the file.
9450
9451 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9452
9453         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
9454         (op_type attribute): RRF instruction type added.
9455         (fT0): New mode attribute.
9456         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
9457         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
9458         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
9459         no secondary memory is needed when moving DFmode values between GPRs
9460         and FPRs.
9461
9462 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9463
9464         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
9465         inverted and documentation adjusted.
9466         ("mhard-dfp", "msoft-dfp"): New options.
9467         * config/s390/s390.c (s390_handle_arch_option): New architecture
9468         switch: z9-ec.
9469         (override_options): Sanity checks for the new options added.
9470         * config.gcc: New architecture switch: z9-ec.
9471         * config/s390/s390.h (processor_flags): PF_DFP added.
9472         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
9473         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
9474         when the bit is NOT set so remove it from the defaults.
9475
9476 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9477
9478         * genemit.c (main): Print include statement for dfp.h.
9479         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
9480         is not available.
9481
9482 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
9483
9484         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
9485
9486 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9487
9488         PR target/31022
9489         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
9490         instead of PATTERN.
9491
9492 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9493
9494         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
9495         attr_length_call, output_call, output_indirect_call): Cleanup
9496         formatting of targetm calls.
9497
9498 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
9499
9500         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
9501
9502 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9503
9504         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
9505         reservation, bypass and anti-bypass descriptions for these instructions.
9506         Update move patterns.
9507         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
9508         TYPE_FPSTORE.
9509
9510 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
9511
9512         * tree-vect-transform.c (get_initial_def_for_induction): Replace
9513         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
9514         (get_initial_def_for_reduction): Likewise.
9515
9516 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
9517
9518         Fix PR tree-optimization/29922
9519         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
9520         (get_representative): Removed.
9521         (value_dies_in_block_x): Update for rvuse removal.
9522         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
9523         (compute_antic_aux): Handle when PHI nodes appear in
9524         non-single-successors.
9525         (dump_bitmap_of_names): Removed.
9526         (compute_antic_safe): Renamed and removed rvuse calculation.
9527         Calculate only antic safe.
9528         (insert_into_preds_of_block): Remove assert.
9529         (execute_pre): Update for renamed functions.
9530         (defer_or_phi_translate_block): New function.
9531
9532 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
9533
9534         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
9535         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
9536         typos.
9537         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
9538         Follow spelling conventions.
9539
9540         * tree-data-ref.h: Remove the prototype for analyze_array.
9541
9542 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
9543
9544         PR tree-optimization/31041
9545         * tree-vect-transform.c (get_initial_def_for_induction): Call
9546         force_gimple_operand.
9547
9548 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
9549
9550         * ipa-type-escape.c (look_for_casts) : Revert code to use
9551         handled_component_p due to ada test a-numaux.adb.
9552
9553 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
9554
9555         * final.c (final_scan_insn): Alter the condition of a
9556         conditional trap if we have nonstandard CC.
9557
9558 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
9559
9560         * configure.ac: Remove excess quoting from asm line 0 test.
9561         * configure: Rebuilt.
9562
9563 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9564
9565         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
9566         * c-common.c (convert_and_check): Move warning logic to...
9567         (warnings_for_convert_and_check): ...here. Define.
9568         * c-common.h (warnings_for_convert_and_check): Declare.
9569
9570 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9571
9572         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
9573         (output_call): Likewise.
9574
9575 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
9576
9577         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
9578
9579 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
9580
9581         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
9582
9583 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
9584
9585         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
9586         opteron, athlon-64 and athlon-fx processor_alias_table entries.
9587
9588 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
9589
9590         PR tree-optimization/31183
9591         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
9592         Use double_int instead of unsigned int for representing access_strides.
9593         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
9594
9595 2007-03-16  Richard Guenther  <rguenther@suse.de>
9596
9597         PR tree-optimization/31146
9598         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
9599         to allow recursion of forward_propagate_addr_expr.
9600         (forward_propagate_addr_into_variable_array_index): Likewise.
9601         (forward_propagate_addr_expr): Likewise.
9602         (tree_ssa_forward_propagate_single_use_vars): Likewise.
9603         (forward_propagate_addr_expr_1): Recurse on simple copies
9604         instead of propagating into them.  Do so for useless conversions
9605         as well.
9606         (forward_propagate_addr_expr): Clean up unused statements after
9607         recursion.
9608
9609 2007-03-16  Richard Guenther  <rguenther@suse.de>
9610
9611         * builtins.c (expand_builtin_cexpi): Use the right argument
9612         for the expansion via cexp.
9613
9614 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
9615
9616         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
9617         * configure: Rebuilt.
9618
9619 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
9620
9621         PR debug/29906
9622         * dwarf2out.c (force_type_die): Adjust comment.
9623         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
9624
9625 2007-03-15  DJ Delorie  <dj@redhat.com>
9626
9627         * config/frv/predicates.md (minmax_operator): Don't check operands
9628         here.
9629
9630 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
9631
9632         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
9633         Update constant estimates of number of iterations.
9634         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
9635         argument renamed to "realistic".
9636         (compute_estimated_nb_iterations): Removed.
9637         (record_niter_bound): New function.
9638         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
9639         call record_nonwrapping_iv with upper = false.
9640         (infer_loop_bounds_from_signedness): Pass upper argument to
9641         record_nonwrapping_iv.
9642         (estimate_numbers_of_iterations_loop): Do not call
9643         compute_estimated_nb_iterations.  Record estimate based on profile
9644         information.  Initialize the constant estimates of number of
9645         iterations.
9646         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
9647         estimates.
9648         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
9649         number of iterations is too small.
9650         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
9651         (EST_NOT_AVAILABLE): Removed.
9652         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
9653         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
9654         fields.
9655
9656 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
9657
9658         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
9659         Handle NE_EXPR guards.
9660
9661 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9662
9663         PR c++/24924
9664         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
9665         Set also -pedantic-errors by default for the  preprocessor unless
9666         -fpermissive is given.
9667
9668 2007-03-15  Richard Guenther  <rguenther@suse.de>
9669
9670         PR middle-end/29719
9671         PR middle-end/31161
9672         * builtins.c (expand_builtin_cexpi): As a fallback if we
9673         don't have builtins for sincos or cexp create a function
9674         declaration for cexp and expand to a call to that.
9675         (expand_builtin_int_roundingfn): Always fall
9676         back to floor/ceil and its variants even if they may be
9677         not available.
9678
9679 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
9680
9681         PR middle-end/31159
9682         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
9683         jump tables, move the call to delete_dead_jumptables from here...
9684         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
9685         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
9686         don't allow merging of blocks that try_redirect_by_replacing_jump
9687         also does not handle when not optimizing.
9688
9689 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
9690             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9691
9692         * config/i386/i386.md (x86_sahf_1): Correctly handle
9693         HAVE_AS_IX86_SAHF.
9694
9695 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
9696
9697         PR target/31167
9698         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
9699         x86_64_general_operand as operand[2] predicate.  Remove "iF"
9700         from operand constraints and use "e" constraint instead.
9701         (*subti3_1, *subti3_1 splitter): Ditto.
9702         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
9703         operand[1] predicate.
9704
9705 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
9706
9707         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
9708         arrays, multiply the access strides by the size of the sub-array.
9709         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
9710
9711 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
9712
9713         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
9714         the configured assembler supports the sahf mnemonic.
9715         * configure: Regenerate.
9716         * config.in: Regenerate.
9717
9718         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
9719         emit "sahf" or ".byte\t0x9e" as asm template.
9720
9721 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
9722
9723         PR 31018
9724         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
9725         option to replace hard coded TARGET_xxx in md file.
9726         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
9727         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
9728         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
9729         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
9730         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
9731         (X86_TUNE_NOT_VECTORMODE): Ditto.
9732         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
9733         (TUNE_AVOID_VECTOR_DECODE): Ditto.
9734         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
9735         (TUNE_SLOW_IMUL_IMM8): Ditto.
9736         (TUNE_MOVE_M1_VIA_OR): Ditto.
9737         (TUNE_NOT_UNPAIRABLE): Ditto.
9738         (TUNE_NOT_VECTORMODE): Ditto.
9739
9740         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
9741         options.
9742
9743         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
9744         tuning options instead of hard coded TARGET_xxx.
9745         (fix ssemode peephole2's): Ditto.
9746         (imul peephole2's): Ditto.
9747         (movsi_or): Ditto.
9748         (movdi_or_rex64): Ditto.
9749         (move peephole2): Ditto.
9750         (not peephole2's): Ditto.
9751
9752 2007-03-14  Dirk Mueller  <dmueller@suse.de>
9753
9754         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
9755         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
9756         * c-parser.c (c_parser_if_body): Always add an empty statement in case
9757         of empty body.
9758         * c-parser.c (c_parser_do_statement): Warn about empty body in
9759         do/while statement.
9760         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
9761         * doc/invoke.texi (-Wempty-body): Update documentation.
9762
9763 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9764
9765         PR c/21438
9766         * c-common.h (warn_for_div_by_zero): Declare.
9767         * c-common.c (warn_for_div_by_zero): Define.
9768         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
9769         warning.
9770
9771 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
9772
9773         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
9774         to PREFIX and STANDARD_PREFIX.
9775
9776 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
9777             Phil Edwards  <phil@codesourcery.com>
9778
9779         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
9780         (__gthread_once_t): Remove busy field for RTPs.
9781         (__GTHREAD_ONCE_INIT): Update accordingly.
9782
9783 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
9784
9785         * doc/invoke.texi: Document VxWorks options.
9786
9787 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
9788
9789         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
9790
9791 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
9792
9793         PR tree-optimization/30590
9794         * tree-nrv.c (tree_nrv): Check for the partial update of the
9795         return value.
9796
9797 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
9798
9799         * flags.h (flag_random_seed): Remove declaration, in favor of...
9800         * toplev.h (get_random_seed, set_random_seed): ... these.
9801         * tree.c (get_file_function_name): Use the former.
9802         * opts.c (common_handle_option): Use the latter.
9803         * toplev.c
9804
9805 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
9806
9807         PR middle-end/31127
9808         * cse.c (cse_find_path): Do not bail out if a basic block that
9809         we already visited now becomes part of a path that starts at a
9810         different basic block.  Just disallow this, to make sure we
9811         visit each basic block at most once.
9812
9813 2007-03-13  Jan Hubicka  <jh@suse.cz>
9814
9815         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
9816         when profile esitmate is present, calls with very low frequency are
9817         cold.
9818
9819 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
9820
9821         PR tree-optimization/30730
9822         PR tree-optimization/26900
9823         * tree-ssa-loop-niter.c: Include gmp.h.
9824         (bounds): New type.
9825         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
9826         split_to_var_and_offset, determine_value_range,
9827         bound_difference_of_offsetted_base, refine_bounds_using_guard,
9828         bound_difference, bounds_add, bounds_negate,
9829         number_of_iterations_ne_max, dump_affine_iv): New functions.
9830         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
9831         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
9832         difference of initial and final value of control iv to validate
9833         results.
9834         (number_of_iterations_cond): Add loop parameter.  Determine bounds
9835         on the difference of the extremes of the control iv.  Add dumps.
9836         (expand_simple_operations): Handle phi nodes.
9837         (simplify_using_initial_conditions): Do not record used conditions.
9838         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
9839         Do not set additional_info.
9840         (implies_nonnegative_p, implies_ge_p): Removed.
9841         (derive_constant_upper_bound): Do not use parameter `additional'.
9842         (record_estimate): Parameter `additional' removed.  Parameter
9843         `i_bound' added.  Do not call derive_constant_upper_bound.
9844         (record_nonwrapping_iv): Use derive_constant_upper_bound to
9845         bound the number of iterations estimate.
9846         (estimate_numbers_of_iterations_loop): Pass the estimate from
9847         the number of iterations analysis to record_estimate.
9848         * tree.h (multiple_of_p): Declare.
9849         * tree-scalar-evolution.c (expression_expensive_p): Removed.
9850         (scev_const_prop): Do not check expression_expensive_p.
9851         * fold-const.c (multiple_of_p): Exported.
9852         * double-int.c (double_int_mask): Exported.
9853         * double-int.h (double_int_mask): Declare.
9854         * tree-flow.h (struct tree_niter_desc): Removed additional_info
9855         field.  Added max field.
9856
9857 2007-03-13  David Taylor  <taylor@candd.org>
9858
9859         PR driver/12448:
9860         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
9861         default -MQ.
9862
9863 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9864
9865         PR target/31123
9866         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
9867         two unamed patterns.
9868
9869 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
9870
9871         * config/i386/i386.opt (mcx16, msahf): New options.
9872         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
9873         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
9874
9875         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
9876         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
9877         Output -mcx16 and -msahf options when corresponding bit is set.
9878
9879         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
9880         and -msahf options.
9881
9882 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
9883
9884         * configure.ac: Test for assembler tolerance to # 0 "".
9885         * configure, config.in: Rebuilt.
9886         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
9887
9888 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
9889
9890         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
9891
9892         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
9893         (handle_syscall): Handle direct system calls.
9894         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
9895
9896 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
9897
9898         * doc/invoke.texi: Fix cpp.info cross-reference.
9899         * doc/passes.texi: Fix gcc.info cross-reference.
9900
9901 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
9902
9903         PR tree-optimization/30835
9904         * lambda-code.c (can_convert_to_perfect_nest): Check whether
9905         bb_for_stmt is not NULL before accessing it.
9906
9907 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
9908
9909         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
9910         some multilibs.
9911
9912 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
9913
9914         PR 30635
9915         * doc/install.texi: Document --enable-stage1-languages
9916
9917 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
9918
9919         * tree-pass.h (pass_into_cfg_layout_mode,
9920         pass_outof_cfg_layout_mode): Declare.
9921         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
9922         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
9923         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
9924         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
9925
9926 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
9927
9928         * c-decl.c (warn_variable_length_array): New function.
9929         Refactored from grokdeclarator to handle warn_vla
9930         and handle unnamed array case.
9931         (grokdeclarator): Refactored VLA warning case.
9932         * c.opt (Wvla): New flag.
9933         * doc/invoke.texi (Wvla): New warning.
9934
9935 2007-03-12  Richard Henderson  <rth@redhat.com>
9936
9937         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
9938         (TARGET_SECTION_TYPE_FLAGS): New.
9939
9940 2007-03-12  Richard Henderson  <rth@redhat.com>
9941
9942         * config/darwin.c (machopic_reloc_rw_mask): New.
9943         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
9944         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
9945
9946 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
9947
9948         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
9949         * cppdefault.h (cpp_PREFIX): Document.
9950         (cpp_PREFIX_len): Likewise.
9951         (cpp_EXEC_PREFIX): New variable.
9952         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
9953         * c-incpath.c (add_standard_paths): Correct logic for relocating
9954         paths within prefix.
9955
9956 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
9957
9958         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
9959         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
9960         mode macro.
9961         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
9962         fix_truncdfdi_sse using SSEMODEF mode macro.
9963         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
9964         fix_truncdfsi_sse using SSEMODEF mode macro.
9965         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
9966         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
9967
9968 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
9969
9970         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
9971         elfos.h to tm_file.
9972
9973 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
9974
9975         * tree.h : Add multiple_of_p declaration.
9976         * fold-const.c (multiple_of_p): Make multiple_of_p public.
9977         * ipa-type-escape.c (results_of_malloc): Redundant.
9978         (visited_stmts): New. Visited stmt for walk_use_def_chains.
9979         (cast_type): Extended with new members.
9980         (check_cast): Returns cast_type.
9981         (cast): New structure for data of walk_use_def_chains.
9982         (is_malloc_result, is_cast_from_non_pointer_1,
9983         is_cast_from_non_pointer,
9984         is_array_access_through_pointer_and_index): New functions.
9985         (look_for_casts): Returns cast types.
9986         (check_call): Returns void.
9987         (okay_pointer_operation): Use support of pointer plus index,
9988         pointer plus constant and allow all multiplications.
9989
9990 2007-03-11  Richard Guenther  <rguenther@suse.de>
9991
9992         PR tree-optimization/31115
9993         * tree-vrp.c (extract_range_from_binary_expr): Make sure
9994         the shift count is positive and non-anti-range for RSHIFT_EXPR.
9995         A shift count of zero is not special as with *_DIV_EXPR.
9996         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
9997         direction.
9998
9999 2007-03-11  Ian Lance Taylor  <iant@google.com>
10000
10001         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
10002         the *_DIV_EXPR codes correctly with overflow infinities.
10003
10004 2007-03-11  Ira Rosen  <irar@il.ibm.com>
10005
10006         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
10007         indicate success/failure of the analysis. Add negation to subtrahend
10008         in case of subtraction. Fail if both operands contain constants.
10009         (create_data_ref): Fail if analyze_offset fails.
10010
10011 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
10012
10013         * config/i386/i386.md (frndintxf2): Rename to ...
10014         (rintxf2): ... this. Remove expander having same name.
10015         (rintsf2, rintdf2): Implement using SSEMODEF macro.
10016         (roundsf2, rounddf2): Ditto.
10017         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
10018         (lround<mode>di2, lround<mode>si2): Ditto.
10019
10020 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
10021
10022         * lower-subreg.c: Include except.h.
10023         (decompose_multiword_subregs): Verify that the only control flow
10024         insns we can split are loads to multi-words pseudos.
10025         Handle breaking such blocks after splitting, instead of calling
10026         find_many_sub_basic_blocks.
10027
10028         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
10029         on the new basic block.  Add a lengthy comment explaining why we
10030         thought this was necessary.
10031         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
10032
10033 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
10034
10035         PR c++/30924
10036         * tree.c (walk_type_fields): Recurse into the element type of
10037         ARRAY_TYPEs if there is a pointer set.
10038
10039 2007-03-10  Dirk Mueller  <dmueller@suse.de>
10040
10041         * c-common.c (warn_logical_operator): Fix condition.
10042
10043 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
10044
10045         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
10046         quotation mark.
10047         * config/darwin.c (machopic_select_section): Remove superfluous
10048         argument in call to categorize_decl_for_section.  Remove unused
10049         variable shlib.
10050
10051 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
10052
10053         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
10054         defined.
10055         * configure: Regenerate.
10056
10057 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
10058
10059         PR target/31101
10060         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
10061         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
10062         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
10063         Add LABEL_NUSES to emitted label.
10064         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
10065         branch probability value to emitted jump insn.
10066         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
10067         Do not check life information and do not re-arrange input operands
10068         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
10069
10070 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10071
10072         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
10073         the change of decode_asm_operands.
10074
10075 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10076
10077         * mode-switching.c (create_pre_exit): Skip blockage insn.
10078
10079 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
10080
10081         * tree-pass.h (TODO_update_smt_usage): Remove.
10082         Update all users.
10083         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10084         argument SOME.
10085         Update all users.
10086
10087 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10088
10089         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
10090         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
10091         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
10092         SOM target.
10093
10094 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
10095
10096         * gcc.c: Document %{, in big comment at top.
10097         (input_suffix_matches): Remove special handling for .s and
10098         .S.
10099         (input_spec_matches): New.
10100         (handle_braces): Handle %{,.
10101         (validate_switches): ',' indicates a value which is not a switch.
10102         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
10103         to detect assembler input.
10104         * config/i386/sol2.h (CPP_SPEC): Likewise.
10105         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
10106         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10107         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
10108         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10109         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
10110         -m64 causes deployment target to default to 10.5.
10111         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
10112
10113 2007-03-09  Richard Henderson  <rth@redhat.com>
10114
10115         PR target/26090
10116         * target.h (targetm.asm.out.reloc_rw_mask): New.
10117         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
10118         (TARGET_ASM_OUT): Use it.
10119         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
10120         * varasm.c (categorize_decl_for_section): Remove shlib argument;
10121         use the new reloc_rw_mask target hook instead.
10122         (default_section_type_flags_1): Merge into...
10123         (default_section_type_flags): ... here.
10124         (decl_readonly_section_1): Merge into...
10125         (decl_readonly_section): ... here.
10126         (default_elf_select_section_1): Merge into...
10127         (default_elf_select_section): ... here.
10128         (default_unique_section_1): Merge into...
10129         (default_unique_section): ... here.
10130         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
10131         (default_select_rtx_section): Use it.
10132         (default_elf_select_rtx_section): Likewise.
10133         * output.h: Update to match.
10134         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
10135         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
10136         (TARGET_ASM_RELOC_RW_MASK): New.
10137         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
10138         to categorize_decl_for_section.
10139         (x86_64_elf_unique_section): Likewise.
10140         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
10141         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
10142         (TARGET_ASM_RELOC_RW_MASK): New.
10143         * config/ia64/ia64.c (ia64_rwreloc_select_section,
10144         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
10145         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
10146         (TARGET_RWRELOC): Remove.
10147         (ia64_section_type_flags): Adjust call to default_section_type_flags.
10148         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
10149         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
10150         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
10151         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
10152         (rs6000_xcoff_select_section): Use decl_readonly_section.
10153         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
10154         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
10155         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
10156         (TARGET_SECTION_TYPE_FLAGS): Remove.
10157         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
10158
10159 2007-03-09  Roger Sayle  <roger@eyesopen.com>
10160
10161         * fold-const.c (fold_comparison): Remove compile-time evaluation of
10162         complex constant equality/inequality comparisons for here.
10163         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
10164         known at compile-time or can be simplified to a scalar comparison.
10165         (fold_relational_const): Move compile-time evaluation of complex
10166         constant equality/inequality comparisons to here.
10167
10168 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10169
10170         PR rtl-optimization/30643
10171         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
10172         dest_addr_elt.
10173         (fold_rtx): Recurse, like before 2006-11-03.
10174
10175 2007-03-09  DJ Delorie  <dj@redhat.com>
10176
10177         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
10178         m32c-pragma.o.
10179
10180 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
10181
10182         PR tree-optimization/30375
10183         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
10184         LHS of statements is not the same.
10185         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
10186
10187 2007-03-09  Chao-ying Fu  <fu@mips.com>
10188
10189         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
10190         REV 2.
10191         * doc/invoke.texi (-mdspr2): Document new option.
10192         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
10193         New unspec for DSP REV 2.
10194         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
10195         these instructions are extended in DSP REV 2.
10196         (mips-dspr2.md): Include.
10197         * config/mips/mips.opt (mdspr2): New option.
10198         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
10199         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
10200         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
10201         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
10202         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
10203         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
10204         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
10205         and 2 builtins.
10206         (bdesc_map): Add one field of unsupported_target_flags.
10207         (bdesc_arrays):  Update entries to have extra fields.  Add
10208         dsp_32only_bdesc.
10209         (mips_init_builtins): Initialize new function types.
10210         Check unsupported_target_fileds to filter out builtins.
10211         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
10212         TARGET_DSPR2.
10213         (ASM_SPEC): Pass mdspr2 to the assembler.
10214         * config/mips/mips-dspr2.md: New file.
10215
10216 2007-03-09  Sa Liu  <saliu@de.ibm.com>
10217
10218         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
10219
10220 2007-03-09  Ian Lance Taylor  <iant@google.com>
10221
10222         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
10223         argument) like -Wstrict-overflow=2.
10224         * doc/invoke.texi (Warning Options): Update documentation.
10225
10226 2007-03-09  Dirk Mueller  <dmueller@suse.de>
10227
10228         PR c++/17946
10229         * doc/invoke.texi (-Wlogical-op): Document.
10230         * common.opt (-Wlogical-op): New.
10231         * c-common.h (warn_logical_operator): Declare.
10232         * c-common.c (warn_logical_operator): Define.
10233         * c-typeck.c (parser_build_binary_op): Call
10234         warn_logical_operator.
10235
10236 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10237
10238         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
10239         * final.c (final_scan_insn): Test for non-"" file name.
10240
10241 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
10242
10243         * doc/loop.texi: Document the Omega linear constraints solver.
10244         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
10245         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
10246         omega-hash-table-size, omega-max-keys, and
10247         omega-eliminate-redundant-constraints.
10248         * tree-pass.h (pass_check_data_deps): Declared.
10249         * omega.c: New.
10250         * omega.h: New.
10251         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
10252         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
10253         pass_check_data_deps): New.
10254         * tree-data-ref.c (init_data_ref): Remove declaration.
10255         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
10256         (analyze_array): Renamed init_array_ref, move up initializations.
10257         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
10258         Removed arguments that are set to NULL.
10259         (analyze_indirect_ref): Correct indentation, correct call to
10260         init_pointer_ref.
10261         (object_analysis): Call init_array_ref instead of analyze_array.
10262         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
10263         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
10264         of DR_ACCESS_FNS_ADDR.
10265         (init_omega_eq_with_af, omega_extract_distance_vectors,
10266         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
10267         ddr_consistent_p): New.
10268         (compute_affine_dependence): Check consistency of ddrs when
10269         flag_check_data_deps is passed.
10270         (analyze_all_data_dependences): Uncomment.
10271         (tree_check_data_deps): New.
10272         * tree-data-ref.h: Include omega.h.
10273         (DR_ACCESS_FNS_ADDR): Removed.
10274         (data_dependence_relation): Add inner_loop.
10275         (DDR_INNER_LOOP): New.
10276         * common.opt (fcheck-data-deps): New.
10277         * tree-flow.h (tree_check_data_deps): Declare.
10278         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
10279         (OBJS-common): Depend on omega.o.
10280         (omega.o): Define.
10281         * passes.c (pass_check_data_deps): Scheduled.
10282         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10283         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10284         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
10285         PARAM_VECT_MAX_VERSION_CHECKS,
10286         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
10287
10288 2007-03-09  Richard Guenther  <rguenther@suse.de>
10289
10290         PR tree-optimization/30904
10291         PR middle-end/31058
10292         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
10293         the same way as *_DIV_EXPR.
10294
10295 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10296
10297         * recog.c (decode_asm_operands): No mixed declarations and code.
10298
10299 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10300
10301         * rtl.def (ASM_INPUT): Add location.
10302         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
10303         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
10304         (decode_asm_operands): Add loc operand.
10305         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
10306         * stmt.c (expand_asm): Rename to...
10307         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
10308         gen_rtx_ASM_INPUT_loc.
10309         (expand_asm_expr): Adjust.
10310         * recog.c (decode_asm_operands): Add loc operand.
10311         (check_asm_operands, extract_insn): Adjust.
10312         * reload1.c (maybe_fix_stack_asms): Likewise.
10313         * final.c (asm_insn_count): Likewise.
10314         (final_scan_insn): Output # line before and after asm.
10315
10316 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
10317
10318         * tree-ssa-structalias.c (variable_info): Remove
10319         finished_solution.
10320         (new_var_info): Ditto.
10321         (shared_bitmap_info_t): New structure.
10322         (shared_bitmap_table): New variable.
10323         (shared_bitmap_hash): New function.
10324         (shared_bitmap_eq): Ditto
10325         (shared_bitmap_lookup): Ditto.
10326         (shared_bitmap_add): Ditto.
10327         (merge_smts_into): Change to take bitmap directly.
10328         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
10329         (init_alias_vars): Init shared bitmap hashtable.
10330         (delete_points_to_sets): Delete shared bitmap hashtable.
10331         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
10332         is_aliased removal as a change that was still necessary was
10333         deleted.
10334
10335 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
10336
10337         * config/i386/i386.h (override_options): Conditionally disable
10338         x86_sahf for 64bit targets only.
10339
10340 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10341
10342         PR C/31072
10343         * c-decl.c (merge_decls): Don't call make_var_volatile.
10344         * varasm.c (make_var_volatile): Remove.
10345         * output.h (make_var_volatile): Remove.
10346
10347 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
10348
10349         PR tree-optimization/31085
10350         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
10351
10352 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10353
10354         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
10355         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
10356         ATTR_CONST_NOTHROW_LIST.
10357
10358         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
10359         FIX_TRUNC_EXPR.
10360
10361 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
10362
10363         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
10364
10365 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
10366
10367         PR 31013
10368         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
10369         is declared.
10370         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
10371         passed, use shared libgcc.
10372
10373 2007-03-08  Roger Sayle  <roger@eyesopen.com>
10374
10375         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
10376         instead of calling build2 with a GIMPLE_MODIFY_STMT.
10377         (honor_protect_cleanup_actions, lower_try_finally_switch):
10378         Likewise.
10379         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
10380         ifc_temp_var): Likewise.
10381         * tree-inline.c (setup_one_parameter): Likewise.
10382         * tree-mudflap.c (mf_decl_cache_locals,
10383         mf_build_check_statement_for): Likewise.
10384         * tree-nested.c (init_tmp_var, save_tmp_var,
10385         finalize_nesting_tree_1): Likewise.
10386         * tree-outof-ssa.c (insert_copy_on_edge,
10387         insert_backedge_copies): Likewise.
10388         * tree-profile.c (tree_gen_edge_profiler,
10389         tree_gen_ic_profiler): Likewise.
10390         * tree-scalar-evolution.c (scev_const_prop): Likewise.
10391         * tree-sra.c (sra_build_assignment): Likewise.
10392         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
10393         * tree-ssa-math-opts.c (insert_reciprocals,
10394         execute_cse_sincos_1): Likewise.
10395         * tree-tailcall.c (adjust_accumulator_values,
10396         adjust_return_value): Likewise.
10397         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
10398         * tree-vect-transform.c (vect_create_data_ref_ptr,
10399         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
10400         vect_create_epilog_for_reduction, vectorizable_reduction,
10401         vectorizable_call, vectorizable_conversion,
10402         vectorizable_assignment, vectorizable_operation,
10403         vectorizable_type_demotion, vect_gen_widened_results_half,
10404         vect_permute_store_chain, vectorizable_store,
10405         vect_setup_realignment, vect_permute_load_chain,
10406         vectorizable_load, vectorizable_condition,
10407         vect_create_cond_for_align_checks): Likewise.
10408         * tree-vrp.c (build_assert_expr_for): Likewise.
10409
10410 2007-03-08  Ian Lance Taylor  <iant@google.com>
10411
10412         * tree-vrp.c: Include "intl.h".
10413         (usable_range_p): New static function.
10414         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
10415         overflowed values, juts set *strict_overflow_p.
10416         (compare_values): Only return -2 if one of the operands is not a
10417         constant.
10418         (compare_ranges): Call usable_range_p.
10419         (compare_range_with_value): Likewise.
10420         (vrp_evaluate_conditional_warnv): Rename from
10421         vrp_evaluate_conditional.  Make static.  Change all callers.
10422         (vrp_evaluate_conditional): New function.
10423         (simplify_div_or_mod_using_ranges): Issue warning about reliance
10424         on signed overflow.
10425         (simplify_abs_using_ranges): Likewise.
10426         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
10427         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
10428         within_stmt parameter.
10429         * tree-ssa-propagate.c (fold_predicate_in): Update call to
10430         vrp_evaluate_conditional.
10431         * tree-ssa-threadedge.c
10432         (record_temporary_equivalences_from_stmts_at_dest): Change
10433         simplify parameter to take a second tree parameter.
10434         (simplify_control_stmt_condition): Likewise.
10435         (thread_across_edge): Likewise.
10436         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
10437         (thread_across_edge): Likewise.
10438         * Makefile.in (tree-vrp.o): Depend upon intl.h.
10439
10440 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
10441
10442         * config/i386/i386.h (TARGET_SAHF): New define.
10443         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
10444         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
10445         (x86_sahf): New global variable.
10446         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
10447         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
10448         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
10449         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
10450         for 64-bit.
10451         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
10452         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
10453         when expanding fcomi/sahf based tests.
10454         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
10455         expanding sahf based alternative. Emit sahf based sequence when
10456         optimizing for code size.
10457         * config/i386/i386.md (x86_sahf_1): Do not disable for
10458         TARGET_64BIT, enable for TARGET_SAHF.
10459
10460 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
10461
10462         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
10463         spurious whitespace from error message.
10464
10465 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
10466
10467         PR c++/30852
10468         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
10469
10470 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
10471
10472         * c-decl.c (grokdeclarator): Disable warnings for anonymous
10473         bitfields.
10474         * tree-sra.c (instantiate_element): Propagate disabled warnings
10475         from the element itself to the created variable.
10476
10477 2007-03-07  Richard Henderson  <rth@redhat.com>
10478
10479         PR target/30848
10480         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
10481         silently fix up the stack in the case of a missing register.
10482
10483 2007-03-07  Paul Brook  <paul@codesourcery.com>
10484
10485         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
10486
10487 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
10488
10489         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
10490         New.
10491         (phase1_vrs): Use them.
10492         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
10493         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
10494         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
10495         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
10496         __gnu_Unwind_Restore_WMMXC if required.
10497         (_Unwind_VRS_Pop): Implement iWMMXt support.
10498         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
10499         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
10500         gnu_Unwind_Save_WMMXC): Define.
10501
10502 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
10503
10504         * config/vxworks.h (vxworks_override_options): Declare.
10505         (VXWORKS_OVERRIDE_OPTIONS): Use it.
10506         * config/vxworks.c: Include target.h and toplev.h.
10507         (vxworks_override_options): New function.
10508         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
10509
10510 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10511
10512         * config/s390/s390.c (override_options): Don't emit an error when
10513         -mstack-size is used without providing -mstack-guard.
10514         (s390_emit_prologue): Choose stack_guard value automatically if not
10515         provided via command line.
10516         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
10517
10518 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
10519
10520         * config/i386/i386.c (output_set_got): Add a GOT initialization
10521         sequence for VxWorks PIC.
10522         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
10523         around labels as well as symbols.  Use gotoff_operand instead
10524         of local_symbolic_operand.
10525         (legitimize_pic_address): Use gotoff_operand instead of
10526         local_symbolic_operand.  Use @GOT accesses for labels as
10527         well as symbols.
10528         (ix86_output_addr_diff_elt): Use PC-relative rather than
10529         GP-relative offsets for VxWorks PIC.
10530         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
10531         no_new_pseudos.  Check whether the returned register is op0.
10532         * config/i386/i386.md (tablejump): Use PC-relative rather than
10533         GP-relative offsets for VxWorks PIC.
10534         * config/i386/predicates.md (gotoff_operand): New predicate.
10535
10536 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10537
10538         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
10539         before defining.
10540         * config/vxworks-dummy.h: New file.
10541         * config/i386/i386.h: Include it.
10542
10543 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
10544
10545         * dwarf2out.c (is_inlined_entry_point): New
10546         (add_high_low_attributes): Emit DW_AT_entry_pc along with
10547         DW_AT_ranges if the first subblock is the entry point.
10548
10549 2007-03-06  David Daney  <ddaney@avtrex.com>
10550
10551         * doc/install.texi (mips-*-*): Change recommended binutils
10552         version.
10553
10554 2007-03-06  Anatoly Sokolov <aesok@post.ru>
10555
10556         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
10557         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
10558         devices.
10559         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10560         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10561
10562 2007-03-06  Jan Hubicka  <jh@suse.cz>
10563
10564         * errors.h (warning, error, fatal, internal_error): Mark as cold.
10565         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
10566         are hot.
10567         (probably_cold_bb_p): Cold functions are cold.
10568         (probably_never_executed_bb_p): Cold functions are cold.
10569         (tree_bb_level_predictions): Predict calls to cold functions as not
10570         taken.
10571         (compute_function_frequency): Check hot/cold attributes.
10572         * function.h (function_frequency): Update comments.
10573         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
10574         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
10575         (c_common_att): Add cold and hot.
10576
10577         * doc/extend.texi (hot,cold attributes): Document.
10578
10579 2007-03-06  Andrew Haley  <aph@redhat.com>
10580
10581         * function.c (expand_function_end): Move blockage to just after we
10582         emit the label for the naked return from the function.
10583
10584 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10585
10586         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
10587         before redefining.
10588
10589 2007-03-06  Jan Hubicka  <jh@suse.cz>
10590
10591         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
10592         loaded for constant large models.  Non-large 64bit PIC can do.
10593         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
10594         * cmodel.h: Add LARGE PIC.
10595         * i386.md (UNSPEC_PLTOFF): New.
10596         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
10597         needed.
10598         (*call_1_rex64): Disable for large models.
10599         (*call_1_rex64_large): New.
10600         (*call_value_1_rex64): Disable for large models.
10601         (*call_value_1_rex64_large): New.
10602         (set_rip_rex4): New.
10603         (set_got_offset_rex64): New.
10604         * predicates.md (constant_call_address_operand): For large model
10605         constant calls are not possible.
10606         * i386-protos.h (construct_plt_address): Declare.
10607         * i386.c (override_options): Accept large models.
10608         (ix86_expand_prologue): Expand large PIC GOT pointer load.
10609         (legitimate_constant_p): Add new UNSPECs.
10610         (legitimate_pic_operand_p): Likewise.
10611         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
10612         (legitimize_pic_address): Do easy RIP relative way for TLS only for
10613         non-large model.
10614         (output_pic_addr_const): Add PLTOFF.
10615         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
10616         (ix86_expand_move): Legitimize pic address when in PIC mode.
10617         (construct_plt_address): New function.
10618         (ix86_expand_call): Offload the address to register and use GOT pointer
10619         for large model.
10620         * invoke.texi (mcmodel=large): Update documentation.
10621
10622 2007-03-06  Richard Henderson  <rth@redhat.com>
10623
10624         * config/i386/i386.c (x86_use_leave, x86_push_memory,
10625         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
10626         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
10627         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
10628         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
10629         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
10630         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
10631         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
10632         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
10633         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
10634         x86_partial_reg_dependency, x86_memory_mismatch_stall,
10635         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
10636         x86_sse_partial_reg_dependency, x86_sse_split_regs,
10637         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
10638         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
10639         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
10640         x86_schedule, x86_use_bt, x86_pad_returns,
10641         x86_use_xchgb): Merge into ...
10642         (ix86_tune_features): ... here.  New array.
10643         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
10644         x86_bswap): Merge into ...
10645         (ix86_arch_features): ... here.  New array.
10646         (x86_3dnow_a): Remove.
10647         (x86_accumulate_outgoing_args): Make static.
10648         (x86_arch_always_fancy_math_387): Make static.
10649         (ix86_tune_mask, ix86_arch_mask): Move ...
10650         (override_options): ... to local variables here.  Apply the
10651         appropriate mask to each element of ix86_arch_features and
10652         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
10653         as were done in the old macros.
10654         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
10655         * config/i386/i386.h (x86_use_leave, x86_push_memory,
10656         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
10657         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
10658         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
10659         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
10660         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
10661         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
10662         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
10663         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
10664         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
10665         x86_partial_reg_dependency, x86_memory_mismatch_stall,
10666         x86_accumulate_outgoing_args, x86_prologue_using_move,
10667         x86_epilogue_using_move, x86_decompose_lea,
10668         x86_arch_always_fancy_math_387, x86_shift1,
10669         x86_sse_partial_reg_dependency, x86_sse_split_regs,
10670         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
10671         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
10672         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
10673         x86_use_incdec, x86_pad_returns, x86_bswap,
10674         x86_partial_flag_reg_stall): Remove.
10675         (enum ix86_tune_indices): New.
10676         (ix86_tune_features): New.
10677         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
10678         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
10679         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
10680         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
10681         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
10682         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
10683         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
10684         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
10685         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
10686         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
10687         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
10688         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
10689         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
10690         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
10691         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
10692         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
10693         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
10694         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
10695         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
10696         TARGET_EXT_80387_CONSTANTS): Use it.
10697         (enum ix86_arch_indices): New.
10698         (ix86_arch_features): New.
10699         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
10700         TARGET_BSWAP): Use it.
10701         (ix86_tune_mask, ix86_arch_mask): Remove.
10702
10703 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
10704
10705         PR bootstrap/31020
10706         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
10707         Define using $${sysroot_headers_suffix}.
10708         * configure: Regenerate.
10709         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
10710         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
10711         defined.
10712         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
10713         * gcc.c (print_sysroot_headers_suffix): New.
10714         (option_map): Include --print-sysroot-headers-suffix.
10715         (display_help): Mention -print-sysroot-headers-suffix.
10716         (process_command): Handle -print-sysroot-headers-suffix.
10717         (do_spec_1): Append multilib directory to include-fixed path if
10718         sysroot suffixes in use.
10719         (main): Handle -print-sysroot-headers-suffix.
10720         * Makefile.in (start.encap): Don't depend on xlimits.h
10721         (xlimits.h): Remove.
10722         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
10723         limits.h for each multilib in fixinc_list.
10724         (fixinc_list, s-fixinc_list): New.
10725         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
10726         generate them for each multilib in fixinc_list.
10727         (stmp-fixproto): Use include-fixed.  Run fixproto for each
10728         multilib in fixinc_list.
10729         (mostlyclean): Don't remove xlimits.h.
10730         (clean): Remove include-fixed.
10731         (real-install-headers-tar, real-install-headers-cpio,
10732         real-install-headers-cp): Don't copy include, only include-fixed.
10733         (install-mkheaders): Depend on fixinc_list.  Don't depend on
10734         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
10735         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
10736         SYSTEM_HEADER_DIR setting in mkheaders.conf.
10737
10738 2007-03-06  Jan Hubicka  <jh@suse.cz>
10739
10740         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
10741         NANs easilly.
10742
10743 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10744
10745         * configure.ac: Allow tm_file to contain build-directory files.
10746         * configure: Regenerate.
10747         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
10748         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
10749         * config/m68k/print-sysroot-suffix.sh: New file.
10750
10751 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10752
10753         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
10754         of pic_offset_table_rtx if reload_completed.
10755         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
10756         PIC_OFFSET_TABLE_REGNUM.
10757         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
10758         return true.
10759         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
10760         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
10761
10762 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10763
10764         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
10765         functions that call eh_return.
10766
10767 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10768
10769         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
10770         functions that need a constant pool.
10771
10772 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10773
10774         PR target/28181
10775         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
10776         (m68k_preferred_reload_class): Likewise.
10777         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
10778         (SECONDARY_RELOAD_CLASS): Define.
10779         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
10780         (LIMIT_RELOAD_CLASS): Delete.
10781         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
10782         registers from storing bytes.
10783         (m68k_secondary_reload_class): New function.
10784         (m68k_preferred_reload_class): Likewise.
10785
10786 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10787
10788         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
10789         leaf functions.
10790         (m68k_expand_prologue): Likewise.
10791
10792 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10793
10794         * config/m68k/m68k-protos.h (output_sibcall): Declare.
10795         (mips_expand_epilogue): Add a bool parameter.
10796         (m68k_legitimize_sibcall_address): Declare.
10797         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
10798         (m68k_expand_epilogue): Add a parameter to select between sibling
10799         and normal epilogues.  Only generate a return for the latter.
10800         (m68k_ok_for_sibcall_p): New function.
10801         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
10802         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
10803         (sibcall_value, *sibcall_value): Likewise.
10804         (*call, *call_value): Require !SIBLING_CALL_P.
10805         (epilogue): Update call to m68k_expand_epilogue.
10806         (sibcall_epilogue): New pattern.
10807         * config/m68k/predicates.md (const_call_operand): Say that this
10808         predicate applies to sibling calls too.
10809         (sibcall_operand): New predicate.
10810
10811 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10812
10813         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
10814         alternatives as movsi_cf.
10815         (movsf_cf_hard): Add commentary.
10816
10817 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
10818             Richard Sandiford  <richard@codesourcery.com>
10819
10820         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
10821         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
10822         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
10823         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
10824         as being live on exit from an interrupt function.
10825         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
10826         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
10827         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
10828         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
10829         (m68k_interrupt_function_p): Globalize.
10830         (m68k_compute_frame_layout): Remove reverse mask code.
10831         (m68k_emit_movem, m68k_set_frame_related): New functions.
10832         (m68k_output_function_prologue): Delete in favor of...
10833         (m68k_expand_prologue): ...this new function.
10834         (m68k_output_function_epilogue): Delete in favor of...
10835         (m68k_expand_epilogue): ...this new function.
10836         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
10837         functions.
10838         (print_operand): Handle %?.
10839         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
10840         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
10841         (prologue, epilogue): New patterns.
10842         (return): Turn into a define_expand.
10843         (*return): New pattern, derived from old "return" pattern.  Use rte
10844         rather than rts for interrupt functions.  Only use rtd if the pop
10845         count is nonzero.
10846         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
10847         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
10848         (link, *link, unlink, *unlink, load_got): Likewise.
10849
10850 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10851
10852         PR target/23482
10853         PR target/17114
10854         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
10855         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
10856         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
10857         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
10858         and m68k_matches_u_p.
10859         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
10860         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
10861         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
10862         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
10863         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
10864         (REG_STRICT_P): New macro.
10865         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
10866         PCREL_GENERAL_OPERAND_OK.
10867         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
10868         m68k_legitimate_base_reg_p.
10869         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
10870         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
10871         (PIC_CASE_VECTOR_ADDRESS): Update comment.
10872         * config/m68k/m68k.c (m68k_address): New structure.
10873         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
10874         (m68k_decompose_index, m68k_legitimate_constant_address_p)
10875         (m68k_jump_table_ref_p, m68k_decompose_address)
10876         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
10877         (m68k_matches_u_p): New functions.
10878         (print_operand_address): Rewrite to use m68k_decompose_index.
10879
10880 2007-03-05  David Taylor  <dtaylor@emc.com>
10881
10882         * gcc.c: Correct copyright date in --version output.
10883
10884 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10885
10886         * pa.md: In unamed move patterns, disparge copies between general
10887         and floating point registers using '?' modifier.  Don't include 'f'
10888         constraint for register preferences in DImode, SImode, HImode and
10889         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
10890         Remove constraints for copies between general and floating registers
10891         in soft-float DFmode pattern.
10892         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
10893         floating register.
10894         (movsf): Likewise.
10895
10896 2007-03-05  Mike Stump  <mrs@apple.com>
10897
10898         * c-common.c (targetcm): Add.
10899         * c-opts.c (c_common_handle_option): Handle language specific
10900         target options.
10901         * opts.c (handle_option): Verify language for target options, if
10902         any are given.
10903         * opth-gen.awk: Add CL_LANG_ALL.
10904         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
10905         (TARGETCM_INITIALIZER): Add.
10906         * target.h (struct gcc_targetcm): Add.
10907         (targetcm): Add.
10908         * targhooks.c (default_handle_c_option): Add.
10909         * targhooks.h (default_handle_c_option): Add.
10910         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
10911
10912         * config/darwin.opt (iframework): Add.
10913         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
10914         * config/darwin-c.c (handle_c_option): Add.
10915         (TARGET_HANDLE_C_OPTION): Add.
10916         (targetcm): Add.
10917         * doc/invoke.texi (Darwin Options): Add -iframework.
10918
10919 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10920
10921         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
10922         conversion.
10923
10924 2007-03-05  Ian Lance Taylor  <iant@google.com>
10925
10926         * c.opt (fgnu89-inline): New option.
10927         * c-opts.c (c_common_post_options): Set default value for
10928         flag_gnu89_inline.
10929         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
10930         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
10931         inline functions.
10932         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
10933         (grokdeclarator, start_function): Likewise.
10934         * c-cppbuiltin.c (c_cpp_builtins): Define either
10935         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
10936         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
10937         (C Dialect Options): Document -fgnu89-inline.
10938         * doc/extend.texi (Function Attributes): Explain what the
10939         gnu_inline attribute does.
10940         * doc/cpp.texi (Common Predefined Macros): Document
10941         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
10942
10943 2007-03-05  Ian Lance Taylor  <iant@google.com>
10944
10945         PR tree-optimization/31034
10946         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
10947         half-range if the other side is an overflow infinity.
10948
10949 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
10950
10951         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
10952         (bfin*-linux-uclibc*): New configuration.
10953         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
10954         defining.
10955         * config/bfin/linux.h: New file.
10956         * config/bfin/libgcc-bfin.ver: New file.
10957         * config/bfin/t-bfin-uclinux: New file.
10958         * config/bfin/t-bfin-linux: New file.
10959         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
10960         (TARGET_OS_CPP_BUILTINS): New macro.
10961
10962 2007-03-05  Richard Guenther  <rguenther@suse.de>
10963
10964         * fold-const.c (fold_binary): Remove duplicate folding
10965         of comparison of non-null ADDR_EXPR against null.
10966
10967 2007-03-05  Richard Guenther  <rguenther@suse.de>
10968             Dorit Nuzman  <dorit@il.ibm.com>
10969
10970         PR tree-optimization/26420
10971         * tree-vectorizer.c (vectorize_loops): Bail out early if there
10972         are no loops in the function.  Only print the number of
10973         vectorized loops if it is greater than zero or we are supposed
10974         to print information about unvectorized loops.
10975
10976 2007-03-05  Revital Eres  <eres@il.ibm.com>
10977
10978         * gcc.dg/var-expand1.c: New test.
10979         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
10980         when an accumulator is expanded.
10981
10982 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10983
10984         PR other/30465
10985         * c-common.c (convert_and_check): Don't give warnings for
10986         conversion if 'expr' already overflowed.
10987
10988 2007-03-04  Roger Sayle  <roger@eyesopen.com>
10989
10990         PR middle-end/30744
10991         * fold-const.c (fold_comparison): Enforce type consistency when
10992         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
10993
10994 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
10995
10996         * tree-ssa-address.c (create_mem_ref): Do not put an expression
10997         containing a cast to the base of TARGET_MEM_REF.
10998
10999 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
11000
11001         * tree.c (tree_contains_struct_check_failed): Remove spurious
11002         whitespace from error message.
11003
11004 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
11005
11006         PR target/30406
11007         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
11008         instead of precision.
11009
11010 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
11011             Nathan Sidwell  <nathan@codesourcery.com>
11012
11013         * emit-rtl.c (find_auto_inc): New.
11014         (try_split): recreate REG_INC notes,
11015         Use regular for loops rather than whiles.
11016
11017 2007-03-03  Andreas Schwab  <schwab@suse.de>
11018
11019         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
11020         * configure: Regenerate.
11021
11022 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11023
11024         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
11025         flag_rounding_math, not flag_unsafe_math_optimizations.
11026
11027         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
11028         fold_build2.
11029         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
11030         alpha_fold_vector_minmax): Likewise.
11031         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11032         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11033
11034 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
11035
11036         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
11037         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
11038         if the lhs has side-effects.
11039         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
11040
11041 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
11042
11043         * config/i386/i386.h (TUNEMASK): Remove define.
11044         (ARCHMASK): Remove define.
11045         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
11046          Use ix86_arch_mask variable instead of ARCHMASK.
11047         * config/i386/i386.c (override_options): Ditto.
11048         (standard_80387_constant_p): Ditto.
11049
11050 2007-03-02  Ian Lance Taylor  <iant@google.com>
11051
11052         Used signed infinities in VRP.
11053         * tree-vrp.c (uses_overflow_infinity): New static function.
11054         (supports_overflow_infinity): New static function.
11055         (make_overflow_infinity): New static function.
11056         (negative_overflow_infinity): New static function.
11057         (positive_overflow_infinity): New static function.
11058         (is_negative_overflow_infinity): New static function.
11059         (is_positive_overflow_infinity): New static function.
11060         (is_overflow_infinity): New static function.
11061         (overflow_infinity_range_p): New static function.
11062         (compare_values_warnv): New function split out of compare_values.
11063         (compare_value): Call it.
11064         (set_value_range_to_nonnegative): Add overflow_infinity
11065         parameter.  Change caller.
11066         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
11067         Change callers.
11068         (vrp_expr_computes_nonzero): Likewise.
11069         (compare_ranges, compare_range_with_value): Likewise.
11070         (compare_name_with_value, compare_names): Likewise.
11071         (vrp_evaluate_conditional): Likewise.
11072         (set_value_range): Handle infinity
11073         (vrp_operand_equal_p, operand_less_p): Likewise.
11074         (extract_range_from_assert): Likewise.
11075         (vrp_int_const_binop): Likewise.
11076         (extract_range_from_binary_expr): Likewise.
11077         (extract_range_from_unary_expr): Likewise.
11078         (extract_range_from_comparison): Likewise.
11079         (extract_range_from_expr): Likewise.
11080         (dump_value_range): Likewise.
11081         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
11082         (test_for_singularity): Likewise.
11083         (vrp_int_const_binop): Remove inline qualifier.
11084         (adjust_range_with_scev): Add comment.
11085         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
11086
11087 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
11088
11089         * tree-ssa-structalias.c (could_have_pointers): Tidy.
11090         (get_constraint_for): Likewise.
11091         (do_structure_copy): Likewise.
11092         (find_func_aliases): Fix references to MODIFY_EXPR.
11093         (intra_create_variable_infos): Tidy.
11094         * tree-ssa-operands.c (add_virtual_operand): Add argument
11095         IS_CALL_SITE.
11096         When adding members of alias sets, if IS_CALL_SITE is true and
11097         the symbol is not call-clobbered, skip it.
11098         Adjust all callers.
11099
11100 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
11101
11102         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
11103         entry by means of emit_insn_at_entry.
11104
11105 2007-03-02  Richard Henderson  <rth@redhat.com>
11106
11107         * expr.h (promoted_input_arg): Remove decl.
11108         * function.c (promoted_input_arg): Merge into ...
11109         * combine.c (setup_incoming_promotions): ... only caller.
11110         Rearrange to avoid double loop.
11111
11112 2007-03-02  Ben Elliston  <bje@au.ibm.com>
11113             Peter Bergner  <bergner@vnet.ibm.com>
11114             Janis Johnson  <janis187@us.ibm.com>
11115
11116         * config/rs6000/dfp.md: New file.
11117         * config/rs6000/rs6000.md: Include dfp.md.
11118         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
11119         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
11120         and TDmode decimal float modes in FP registers.
11121         (num_insns_constant): Likewise.
11122         (rs6000_legitimate_offset_address_p): Likewise.
11123         (rs6000_legitimize_address): Likewise.
11124         (rs6000_legitimize_reload_address): Likewise.
11125         (rs6000_legitimate_address): Likewise.
11126         (rs6000_emit_move): Likewise.
11127         (function_arg_boundary): Likewise.
11128         (function_arg_advance): Likewise.
11129         (rs6000_darwin64_record_arg_recurse): Likewise.
11130         (function_arg): Likewise.
11131         (rs6000_gimplify_va_arg): Likewise.
11132         (rs6000_split_multireg_move): Likewise.
11133         (rs6000_output_function_epilogue): Likewise.
11134         (rs6000_output_function_epilogue): Likewise.
11135         (rs6000_register_move_cost): Likewise.
11136         (rs6000_function_value): Likewise.
11137         (rs6000_libcall_value): Likewise.
11138
11139 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
11140
11141         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
11142
11143 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
11144
11145         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
11146         Use $MULTIDIR to choose between the kernel and RTP headers,
11147         and use $WIND_BASE and $WIND_USR to locate them.
11148
11149 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
11150
11151         * config/i386/i386.c (override_options): Put initialization of
11152         ix86_tune_mask and ix86_arch_mask to the correct place.
11153
11154 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
11155             Michael Meissner  <michael.meissner@amd.com>
11156
11157         PR target/31019
11158         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
11159         (ARCHMASK): Define.
11160         (TARGET_CMOVE): Use ARCHMASK.
11161         (TARGET_CMPXCHG): Ditto.
11162         (TARGET_CMPXCHG8B): Ditto.
11163         (TARGET_XADD): Ditto.
11164         (TARGET_BSWAP): Ditto.
11165         * config/i386/i386.c (ix86_tune_mask): New global variable.
11166         (ix86_arch_mask): Ditto.
11167         (override_options): Initialize ix86_tune_mask and
11168         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
11169         target_flags.
11170
11171 2007-03-02  Ben Elliston  <bje@au.ibm.com>
11172
11173         PR 30992
11174         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
11175
11176 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
11177
11178         * target.h (init_dwarf_reg_sizes_extra): New target hook.
11179         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
11180         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
11181         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
11182         hook.
11183         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
11184         rs6000_init_dwarf_reg_sizes_extra): New.
11185         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
11186         SPE register high parts.
11187
11188 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
11189
11190         * Makefile.in: Add install-pdf target as
11191         copied from automake v1.10 rules.
11192         * configure.ac: Add install-pdf to target list.
11193         * configure: Regenerate.
11194
11195 2007-03-01  Paul Brook  <paul@codesourcery.com>
11196
11197         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
11198         modes to LDRD for DImode.
11199         (output_move_double): Fixup out of range ldrd/strd.
11200         (vfp_secondary_reload_class): Rename...
11201         (coproc_secondary_reload_class): ... to this.  Add wb argument.
11202         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
11203         coproc_secondary_reload_class for CLASS_IWMMXT.
11204         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
11205         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
11206
11207 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
11208
11209         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
11210         factor by the estimated number of iterations.
11211         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
11212         prefetch latency.
11213
11214         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
11215         decode_caches_intel, detect_caches_intel): New functions.
11216         (host_detect_local_cpu): Use detect_caches_amd and
11217         detect_caches_intel.
11218
11219 2007-03-01  Richard Henderson  <rth@redhat.com>
11220
11221         * expr.c (emit_move_complex_push): Export.
11222         (emit_move_complex_parts): Split out from ...
11223         (emit_move_complex): ... here.
11224         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
11225         * config/i386/i386.md (movcdi): New.
11226
11227 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
11228
11229         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
11230         size of mode1 to check for tieable modes in MMX case.
11231
11232 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
11233
11234         * Makefile.in (rtlanal.o): Depend on tree.h.
11235         * rtl.h (offset_within_section_p, split_const): Declare.
11236         * rtlanal.c: Include tree.h.
11237         (offset_within_block_p): New function, taken from
11238         mips_offset_within_object_p.
11239         (split_const): New function, taken from mips_split_const.
11240         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
11241         Declare.
11242         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
11243         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
11244         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
11245         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11246         (m68k_illegitimate_symbolic_constant_p): New function.
11247         * config/m68k/m68k.md (movsi): Remove misleading predicates.
11248         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
11249         symbolic constant that might be outside the symbol's section,
11250         move the symbol first and then add the offset.
11251         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
11252         Override.
11253         * config/mips/mips.c (mips_split_const): Delete.
11254         (mips_offset_within_object_p): Delete.
11255         (mips_symbolic_constant_p): Use offset_within_section_p and
11256         split_const instead of mips_offset_within_object_p and
11257         mips_split_const.
11258         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
11259         (mips_legitimize_const_move, print_operand_reloc)
11260         (mips_dangerous_for_la25_p): Use split_const instead of
11261         mips_split_const.
11262
11263 2007-02-28  Eric Christopher  <echristo@apple.com>
11264
11265         * Makefile.in (install-include-dir): Don't rm -rf include.
11266
11267 2007-02-28  Richard Guenther  <rguenther@suse.de>
11268
11269         PR middle-end/30364
11270         * fold-const.c (fold_binary): Do not associate expressions
11271         with more than one variable for integer types that do not wrap.
11272
11273 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
11274
11275         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
11276         Delete, and replace with...
11277         (fold_builtin_call_array): This.  Update callers to use it.
11278         * fold-const.c (fold_build_call_list): Delete, and replace with...
11279         (fold_build_call_array): This.
11280         (fold_build_call_list_initializer): Delete, and replace with...
11281         (fold_build_call_array_initializer): This.
11282         * tree.h: Update declarations to reflect above changes.
11283
11284         * c-typeck.c (build_function_call): Store converted arguments
11285         in a stack-allocated array instead of building a list.
11286         (convert_arguments): Store arguments in the array passed in as an
11287         argument, and return the actual number of arguments.
11288         * c-format.c: (check_function_format): Pass arguments in an
11289         array instead of a list.
11290         * c-common.c (check_function_nonnull): Likewise.
11291         (check_function_sentinel): Likewise.
11292         (check_function_arguments): Likewise.
11293         * c-common.h: Update declarations to reflect above changes.
11294
11295 2007-02-28  Jan Hubicka  <jh@suse.cz>
11296
11297         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
11298         PRED_NEGATIVE_RETURN): Update outcomes.
11299
11300 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
11301
11302         * calls.c (emit_library_call_value_1): Handle partial registers
11303         correctly when building up CALL_INSN_FUNCTION_USAGE.
11304
11305 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11306
11307         * pa/predicates.md (move_src_operand): Allow zero for mode.
11308         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
11309         move pattern.
11310
11311 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
11312
11313         PR target/30970
11314         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
11315         *movv2df_internal): Enable pattern only for valid operand
11316         combinations.
11317         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
11318         tie only 128bit modes. For MMX registers, tie only 64bit modes.
11319
11320 2007-02-27  Mike Stump  <mrs@apple.com>
11321
11322         * config/darwin-crt3.c: Avoid compilation when compiling for a
11323         kext multilib.
11324
11325 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
11326
11327         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
11328         FIXED_INCLUDE_DIR.
11329         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
11330         for fixed headers and limits.h.
11331         (install-include-dir, install-headers-tar, install-headers-cpio,
11332         install-headers-cp, real-install-headers-tar,
11333         real-install-headers-cpio, real-install-headers-cp): Handle
11334         include-fixed as well as include.
11335         (install-mkheaders): Don't install files that go only in include
11336         not include-fixed.
11337         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
11338         from GCC_INCLUDE_DIR.
11339         * gcc.c (process_command): Remove special -BstageN/ handling.
11340         (do_spec_1): Add include-fixed directories.
11341
11342 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
11343
11344         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
11345         _smulsi3_highpart.
11346         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
11347         New functions.
11348         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
11349         patterns.
11350
11351 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
11352
11353         * c-common.c (get_priority): Add check for
11354         SUPPORTS_INIT_PRIORITY.
11355
11356 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
11357
11358         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
11359
11360         * config/bfin/bfin.c: Include "cfglayout.h".
11361         (MAX_LSETUP_DISTANCE): New macro.
11362         (struct loop_info): New members incoming, incoming_src and
11363         incoming_dest.  Delete member predecessor.
11364         (length_for_loop): New function.
11365         (bfin_optimize_loop): Handle more different loop structures.
11366         (bfin_discover_loop): Rework detection of predecessor blocks by
11367         examining incoming edges.
11368         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
11369         bfin_reorg_loops.
11370         (bfin_reorder_loops): New function.
11371         (bfin_reorg_loops): Use these three new functions.
11372
11373         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
11374         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
11375         (CONSTRAINT_LEN): Add entry for 'q'.
11376         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
11377         Add 'q' constraints.
11378         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
11379         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
11380
11381         * config/bfin/bfin.md (add_with_carry): New pattern.
11382         (s_or_u, su_optab, su_modifier): New code macros/attrs.
11383         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
11384         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
11385         support unsigned multiplies too.  Removed incorrect commutativity from
11386         operand 1 constraint where appropriate.
11387         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
11388         patterns.
11389         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
11390         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
11391         New patterns.
11392         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
11393         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
11394         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
11395         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
11396         usmulhisi_hh_huh): New patterns.
11397
11398         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
11399         lshifthi3): Fix output template to use half reg for operand 2.
11400
11401         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
11402         instead of R2.
11403
11404         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
11405
11406 2007-02-27  Andreas Schwab  <schwab@suse.de>
11407
11408         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
11409
11410 2007-02-27  Jan Hubicka  <jh@suse.cz>
11411
11412         * predict.c (last_basic_block_p): Remove.
11413         (tree_estimate_probability): Update return heuristic for commonized
11414         return blocks.
11415
11416 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
11417
11418         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
11419
11420 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
11421
11422         * doc/include/gcc-common.texi (versionsubtitle): New macro.
11423         * doc/cpp.texi: Standardize title page.
11424         * doc/cppinternals.texi: Likewise.
11425         * doc/gcc.texi: Standardize title page, remove version number
11426         from copyright page.
11427         * doc/gccint.texi: Likewise.
11428         * doc/install.texi: Standardize title page, add table of
11429         contents.
11430
11431 2007-02-26  Jan Hubicka  <jh@suse.cz>
11432
11433         * predict.def: Set outcomes according to more recent results.
11434         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
11435         Remove dead predictors.
11436         * predict.c (return_prediction): Fix pasto.
11437
11438 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
11439
11440         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
11441         change; avoid a memory leak when returning early.
11442
11443 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
11444
11445         * c-decl.c (static_ctors): Move to c-common.c.
11446         (static_dtors): Likewise.
11447         (finish_function): Use c_record_cdtor_fn.
11448         (build_cdtor): Move to c-common.c.
11449         (c_write_global_declarations): Use c_build_cdtor_fns.
11450         * c-common.h (static_ctors): Declare.
11451         (static_dtors): Likewise.
11452         (c_record_cdtor_fn): Likewise.
11453         (c_build_cdtor_fns): Likewise.
11454         * c-common.c (static_ctors): New variable.
11455         (static_dtors): Likewise.
11456         (c_record_cdtor_fn): New function.
11457         (build_cdtor): Move from c-decl.c
11458         (c_build_cdtor_fns): New function.
11459
11460         * output.h (assemble_addr_to_section): Declare.
11461         (get_cdtor_priority_section): Likewise.
11462         * varasm.c (assemble_addr_to_section): New function.
11463         (get_cdtor_priority_section): Likewise.
11464         (default_named_section_asm_out_destructor): Use them.
11465         (destor_dtor_section_asm_out_destructor): Likewise.
11466         (default_named_section_asm_out_constructor): Likewise.
11467         (default_ctor_section_asm_out_constructor): Likewise.
11468         * config.gcc (*-*-vxworks*): Include vxworks.o.
11469         * config/t-vxworks (vxworks.o): New target.
11470         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
11471         (TARGET_ASM_CONSTRUCTOR): Define.
11472         (TARGET_ASM_DESTRUCTOR): Likewise.
11473         (vxworks_asm_out_constructor): Declare.
11474         (vxworks_asm_out_destructor): Likewise.
11475
11476         * c-common.c (get_priority): Check that we have not just an
11477         INTEGER_CST, but an integer constant with integeral type.
11478
11479 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
11480
11481         PR tree-optimization/30938
11482         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
11483         use &dt[nargs-1] instead of &dt[nargs] in the call to
11484         vect_is_simple_use().
11485
11486 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
11487
11488         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
11489         from register elimination as PRE_MODIFY / POST_MODIFY increments.
11490         Do not attempt to handle MEM inside auto-inc expressions.
11491         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
11492         of a register modified by an auto-inc expression.  However, do handle
11493         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
11494         (elimination_effects): Prohibit elimination of a register modified
11495         by an auto-inc expression.  Disable register elimination rules whose
11496         target register is modified by an auto-inc expression with variable
11497         increment.
11498
11499 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
11500
11501         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
11502         off-by-one error.
11503         (array_at_struct_end_p): New function.
11504         (idx_infer_loop_bounds): Use it.
11505         (estimate_numbers_of_iterations_loop): Export.
11506         * predict.c (predict_loops): Use estimated_loop_iterations_int.
11507         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
11508         (tree_estimate_probability): Call record_loop_exits.
11509         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
11510         (estimated_loop_iterations, estimated_loop_iterations_int,
11511         estimated_loop_iterations_tree): New functions.
11512         (analyze_siv_subscript_cst_affine,
11513         compute_overlap_steps_for_affine_1_2,
11514         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
11515         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
11516         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
11517         (PRED_LOOP_ITERATIONS_GUESSED): New.
11518         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
11519         * cfgloop.h (estimate_numbers_of_iterations_loop,
11520         estimated_loop_iterations_int): Declare.
11521
11522 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
11523
11524         * doc/extend.texi: Document optional priority argument to
11525         constructors and destructors.
11526         * tree.c (init_priority_for_decl): Adjust GTY markers.
11527         (init_ttree): Use priority-info hash functions for
11528         init_priority_for_decl.
11529         (tree_map_eq): Rename to ...
11530         (tree_map_base_eq): ... this.
11531         (tree_map_marked_p): Rename to ...
11532         (tree_map_base_marked_p): ... this.
11533         (tree_map_base_hash): New function.
11534         (decl_init_priority_lookup): Rework.
11535         (decl_fini_priority_lookup): New function.
11536         (decl_priority_info): New function.
11537         (decl_init_priority_insert): Use it.
11538         (decl_fini_priority_insert): Likewise.
11539         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
11540         hierarchy.
11541         (decl_restrict_base_insert): Likewise.
11542         (decl_debug_expr_insert): Likewise.
11543         (decl_value_expr_lookup): Likewise.
11544         (decl_value_expr_insert): Likewise.
11545         * tree.h (priority_type): New type.
11546         (decl_init_priority_lookup): Use priority_type.
11547         (decl_fini_priority_lookup): New function.
11548         (decl_init_priority_insert): Use priority_type.
11549         (decl_fini_priority_insert): New function.
11550         (DECL_HAS_INIT_PRIORITY): Tweak comments.
11551         (DECL_INIT_PRIORITY): Likewise.
11552         (SET_DECL_INIT_PRIORITY): Add comment.
11553         (DECL_FINI_PRIORITY): New macro.
11554         (SET_DECL_FINI_PRIORITY): Likewise.
11555         (DEFAULT_INIT_PRIORITY): Document.
11556         (MAX_INIT_PRIORITY): Likewise.
11557         (MAX_RESERVED_INIT_PRIORITY): Likewise.
11558         (tree_map_base): New type.
11559         (tree_map_base_eq): New function.
11560         (tree_map_base_hash): Likewise.
11561         (tree_map_base_marked_p): Likewise.
11562         (tree_map): Inherit from tree_map_base.
11563         (tree_map_eq): Make it a macro.
11564         (tree_map_marked_p): Likewise.
11565         (tree_int_map): Inherit from tree_map_base.
11566         (tree_int_map_eq): Make it a macro.
11567         (tree_int_map_hash): Likewise.
11568         (tree_int_map_marked_p): Likewise.
11569         (tree_priority_map): New type.
11570         (tree_priority_map_eq): New macro.
11571         (tree_priority_map_hash): Likewise.
11572         (tree_priority_map_marked_p): Likewise.
11573         * varasm.c (emults_decl): Adjust for refactoring of tree_map
11574         hierarchy.
11575         (emutls_common_1): Likewise.
11576         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
11577         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
11578         of tree_map hierarchy.
11579         * tree-cfg.c (move_stmt_r): Likewise.
11580         (new_label_mapper): Likewise.
11581         * c-tree.h (c_expand_body): Move to ...
11582         * c-common.h (c_expand_body): ... here.
11583         * c-decl.c (c_expand_body): Move to ...
11584         * c-common.c (c_expand_body): ... here.
11585         (c_common_attribute_table): Allow 1 argument for the constructor
11586         and destructor attributes.
11587         (get_priority): New function.
11588         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
11589         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
11590
11591 2007-02-24  Jan Hubicka  <jh@suse.cz>
11592
11593         PR middle-end/30509
11594         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
11595
11596 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
11597             Jan Hubicka  <jh@suse.cz>
11598
11599         PR target/30778
11600         * i386.c (counter_mode): New function.
11601         (expand_set_or_movmem_via_loop): Use it.
11602         (expand_movmem_epilogue): Likewise; fix pasto.
11603         (ix86_expand_movmem): Do emit guard even for constant counts.
11604         (ix86_expand_setmem): Likewise.
11605
11606 2007-02-25  Nick Clifton  <nickc@redhat.com>
11607
11608         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
11609         (JUMP_TABLES_IN_TEXT_SECTION): Define.
11610
11611 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
11612
11613         PR target/30770
11614         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
11615         count argument with 0x10, not with 0x16.
11616         (expand_setmem_epilogue): Ditto.
11617
11618 2007-02-24  Mike Stump  <mrs@apple.com>
11619
11620         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
11621         symbols.
11622
11623 2007-02-24  Richard Guenther  <rguenther@suse.de>
11624
11625         PR middle-end/30951
11626         * fold-const.c (fold_binary): Fold x +- CST op x for
11627         EQ_EXPR and NE_EXPR.
11628
11629 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11630
11631         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
11632
11633 2007-02-24  Jan Hubicka  <jh@suse.cz>
11634
11635         * cgraphunit.c (decide_is_function_needed): Honor
11636         -fkeep-inline-functions.
11637
11638 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11639
11640         * builtins.c (fold_builtin_modf): New.
11641         (fold_builtin_2): Use it.
11642
11643 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11644
11645         * loop-iv.c (implies_p): Detect additional cases where A implies B.
11646         (determine_max_iter): Take additional LOOP arg; all callers changed.
11647         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
11648         one using simplifications.
11649         (simplify_using_initial_values): Return if the expression becomes
11650         invalid due to altered regs.
11651
11652 2007-02-23  DJ Delorie  <dj@redhat.com>
11653
11654         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
11655
11656 2007-02-23  Mike Stump  <mrs@apple.com>
11657
11658         * tlink.c (scan_linker_output): Parse linker messages from
11659         darwin9's linker better.
11660
11661 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
11662
11663         PR debug/29614
11664         * varpool.c (varpool_assemble_pending_decls):  Set
11665         varpool_last_needed_node to null.
11666
11667 2007-02-23  DJ Delorie  <dj@redhat.com>
11668
11669         * config/i386/i386.c (ix86_data_alignment): Don't specify an
11670         alignment bigger than the object file can handle.
11671
11672 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
11673
11674         PR target/30825
11675         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
11676         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
11677         (*movsf_1): Penalize MMX moves.
11678
11679 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
11680
11681         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
11682         2^32-1 or more times unless flag_unsafe_loop_optimizations.
11683
11684         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
11685
11686 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11687
11688         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
11689         (fold_builtin_1): Use them.
11690         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
11691         BUILT_IN_SIGNIFICAND.
11692
11693 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
11694
11695         * config/i386/i386.c (bdesc_1arg): Initialize
11696         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
11697         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
11698         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
11699         and IX86_BUILTIN_MOVSLDUP.
11700
11701 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
11702
11703         PR rtl-optimization/30841
11704         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
11705
11706 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11707
11708         * builtins.c (fold_builtin_frexp): New.
11709         (fold_builtin_2): Use it.
11710
11711 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
11712
11713         * doc/invoke.texi (Spec Files): Document getenv spec function.
11714
11715         * gcc.c (getenv_spec_function): New function.
11716         (static_spec_functions): Add it.
11717         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
11718         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
11719         header files.
11720
11721 2007-02-22  Michael Matz  <matz@suse.de
11722
11723         PR c++/29433
11724         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
11725         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
11726
11727 2007-02-22  Ian Lance Taylor  <iant@google.com>
11728
11729         PR debug/30898
11730         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
11731         (mem_loc_descriptor): Call it.
11732
11733 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
11734             Ira Rosen  <irar@il.ibm.com>
11735
11736         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
11737
11738 2007-02-22  Ira Rosen  <irar@il.ibm.com>
11739
11740         PR tree-optimization/30843
11741         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
11742         stores only after all the group is vectorized.
11743
11744 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
11745
11746         PR tree-optimization/30858
11747         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
11748         in the reduction cycle have a single use in the loop.
11749         * tree-vectorizer.h (relevant): Add documentation.
11750
11751 2007-02-20  Mike Stump  <mrs@apple.com>
11752
11753         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
11754         * configure: Regenerate.
11755
11756 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11757
11758         Change the defaults of some parameters and options.
11759         * config/spu/spu-protos.h (spu_optimization_options): Declare.
11760         * config/spu/spu.c (spu_optimization_options): Add.
11761         (spu_override_options): Change params in spu_optimization_options.
11762         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
11763
11764         Register 127 is only 16 byte aligned when used as a frame pointer.
11765         * config/spu/spu-protos.h (spu_init_expanders): Declare.
11766         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
11767         HARD_FRAME_POINTER_REGNUM.
11768         (spu_legitimate_address):  Use regno_aligned_for_reload.
11769         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
11770         aligned when frame_pointer_needed is true.
11771         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
11772         to 8 bits.
11773         * config/spu/spu.h (INIT_EXPANDERS): Define.
11774
11775         Make sure shift and rotate instructions have valid immediate operands.
11776         * config/spu/predicates.md (spu_shift_operand): Remove.
11777         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
11778         * config/spu/constraints.md (W, O): Extend range.
11779         * config/spu/spu.md (umask, nmask): Define.
11780         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
11781         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
11782         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
11783         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
11784         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
11785         (lshr<mode>3_reg):  Fix rtl description.
11786
11787         Make sure mulhisi immediate operands are valid.
11788         * config/spu/predicates.md (imm_K_operand): Add.
11789         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
11790
11791         Generate constants using fsmbi and andi.
11792         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
11793         (print_operand, spu_split_immediate, classify_immediate,
11794         fsmbi_const_p): Handle IC_FSMBI2.
11795
11796         Correctly handle a CONST_VECTOR containing symbols.
11797         * config/spu/spu.c (print_operand): Handle HIGH correctly.
11798         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
11799         (immediate_load_p): Allow symbols that use 2 instructions to create.
11800         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
11801         with symbols when flag_pic is set.
11802         (const_vector_immediate_p): New.
11803         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
11804         accept a CONST_VECTOR with symbols.
11805         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
11806         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
11807         correctly.
11808         * config/spu/spu.md (high, low): Delete.
11809         (low_<mode>): Define.
11810
11811         Remove INTRmode and INTR_REGNUM, which didn't work.
11812         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
11813         of INTR_REGNUM.
11814         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
11815         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
11816         peephole2 pattern): Don't use INTR or 131.
11817         (movintrcc): Delete.
11818         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
11819         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
11820         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
11821         (UNSPEC_SET_INTR): Add.
11822         * config/spu/spu-modes.def (INTR): Remove.
11823
11824         More accurate warnings about run-time relocations.
11825         * config/spu/spu.c (reloc_diagnostic): Test in_section.
11826
11827         Correctly warn about immediate arguments to specific intrinsics.
11828         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
11829         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
11830         the instruction predicate.
11831
11832         Fix tree check errors with latest update.
11833         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
11834         CALL_EXPR_ARG.
11835         (spu_expand_builtin): Use CALL_EXPR_FN.
11836
11837         Add missing specific intrinsics.
11838         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
11839         si_bislede.
11840         * config/spu/spu_internals.h: Ditto.
11841
11842         Fix incorrect operand modifiers.
11843         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
11844         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
11845
11846         Optimize one case of zero_extend of a vec_select.
11847         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
11848
11849         Accept any immediate for hbr.
11850         * config/spu/spu.md (hbr):  Change s constraints to i.
11851
11852 2007-02-21  Paul Brook  <paul@codesourcery.com>
11853
11854         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
11855         condexec_count when skipping USE and CLOBBER.
11856
11857 2007-02-21  Nick Clifton  <nickc@redhat.com>
11858
11859         * common.opt (Warray-bounds): Add Warning attribute.
11860         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
11861         Likewise.
11862         (fsized-zeroes): Add Optimization attribute.
11863         (fsplit-wide-types, ftree-scev-cprop): Likewise.
11864         * c.opt (Wc++0x-compat): Add Warning attribute.
11865
11866 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
11867
11868         PR middle-end/30761
11869         * reload1.c (eliminate_regs_in_insn): In the single_set special
11870         case, attempt to re-recognize the insn before falling back to
11871         having reload fix it up.
11872
11873 2007-02-20  Eric Christopher  <echristo@gmail.com>
11874
11875         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
11876         Rewrite accordingly.
11877         (frv_read_iacc_argument): Ditto.
11878         (frv_expand_set_builtin): Take a call instead of arglist, update for
11879         above changes.
11880         (frv_expand_unop_builtin): Ditto.
11881         (frv_expand_binop_builtin): Ditto.
11882         (frv_expand_cut_builtin): Ditto.
11883         (frv_expand_binopimm_builtin): Ditto.
11884         (frv_expand_voidbinop_builtin): Ditto.
11885         (frv_expand_int_void2arg): Ditto.
11886         (frv_expand_prefetches): Ditto.
11887         (frv_expand_voidtriop_builtin): Ditto.
11888         (frv_expand_voidaccop_builtin): Ditto.
11889         (frv_expand_load_builtin): Ditto.
11890         (frv_expand_store_builtin): Ditto.
11891         (frv_expand_mdpackh_builtin): Ditto.
11892         (frv_expand_mclracc_builtin): Ditto.
11893         (frv_expand_mrdacc_builtin): Ditto.
11894         (frv_expand_mwtacc_builtin): Ditto.
11895         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
11896         calls for above.
11897
11898 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
11899
11900         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
11901         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
11902         cmpb instruction.
11903         (HAVE_GAS_DFP): Check for assembler support of decimal floating
11904         point instructions.
11905         * configure: Regenerate.
11906         * config.in: Regenerate.
11907         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
11908         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
11909         masks to power6 and power6x and to POWERPC_MASKS.
11910         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11911         _ARCH_PWR6.
11912         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
11913         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
11914         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11915         Access PROTOTYPE as variable, not mask.
11916
11917 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
11918
11919         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
11920         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
11921         * combine.c (adjust_for_new_dest): Use it.
11922         * postreload.c (reload_combine): Likewise.
11923
11924 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
11925
11926         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
11927         notes on an insn with multiple sets, even if single_set returns
11928         non-NULL for that insn.
11929
11930 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11931
11932         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
11933         scalbn and scalbln.
11934
11935 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
11936
11937         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
11938         if user didn't pass it.
11939         * config/i386/darwin.h (CC1_SPEC): Likewise.
11940         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
11941         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
11942         -mmacosx-version-min.
11943
11944 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11945             Uros Bizjak  <ubizjak@gmail.com>
11946
11947         * optabs.h (enum optab_index): Add new OTI_scalb.
11948         (scalb_optab): Define corresponding macro.
11949         * optabs.c (init_optabs): Initialize scalb_optab.
11950         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
11951         patterns.
11952         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
11953         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
11954         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
11955         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
11956         flag_unsafe_math_optimizations is set.
11957
11958         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
11959         to implement scalbf, scalb and scalbl built-ins as inline x87
11960         intrinsics.
11961
11962 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11963             DJ Delorie <dj@redhat.com>
11964
11965         PR other/30824
11966         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
11967         (diagnostic_report_diagnostic): ... here, and turn them into real
11968         errors. If warnings are inhibited, no need to do anything.
11969
11970 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
11971
11972         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
11973         better code generation.
11974
11975 2007-02-20  Ben Elliston  <bje@au.ibm.com>
11976
11977         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
11978
11979 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
11980
11981         * config/alpha/alpha.c, config/alpha/alpha.md,
11982         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
11983         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
11984         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
11985         config/arm/lib1funcs.asm: Follow spelling conventions.
11986
11987         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
11988         config/fr30/fr30.md, config/i386/i386.h,
11989         config/iq2000/iq2000.h, config/iq2000/predicates.md,
11990         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
11991         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
11992         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
11993         config/rs6000/altivec.md, config/rs6000/rs6000.c,
11994         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
11995         config/sparc/sparc.c, config/sparc/sparc.h,
11996         config/sparc/sparc.md, config/spu/constraints.md,
11997         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
11998         conventions.
11999
12000 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
12001
12002         PR target/29943
12003         * varasm.c (use_blocks_for_decl_p): Return false for decls with
12004         alias attribute.
12005
12006 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
12007
12008         * doc/invoke.texi (-ftree-lrs): Remove.
12009
12010 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
12011
12012         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
12013         NULL.
12014
12015 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
12016
12017         * config/ia64/ia64.c (ia64_expand_builtin): Use the
12018         new CALL_EXPR_FN macro for retrieving the function
12019         declaration of the input expression.
12020
12021 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12022
12023         * c.opt (Waddress): New.
12024         * common.opt (Walways-true): Delete.
12025         (Wstring-literal-comparison): Delete.
12026         * doc/invoke.texi (Warning Options): Delete -Walways-true and
12027         -Wstring-literal-comparison. Add -Waddress.
12028         (Waddress): New.
12029         (Walways-true): Delete.
12030         (Wstring-literal-comparison): Delete.
12031         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
12032         consistently instead of -Walways-true in example.
12033         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
12034         * c-typeck.c (parser_build_binary_op): Replace
12035         -Wstring-literal-comparison and -Walways-true with -Waddress.
12036         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
12037         with -Waddress.
12038
12039 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12040
12041         * tree-cfg.c (dump_function_to_file): Be prepared for functions
12042         without DECL_STRUCT_FUNCTION initialized.
12043
12044 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12045
12046         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
12047         due to calls to functions taking pointers as parameters.
12048
12049 2007-02-19  Richard Henderson  <rth@redhat.com>
12050
12051         PR debug/29558
12052         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
12053         in memory.
12054
12055 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
12056
12057         * config/s390/s390.c (s390_call_saved_register_used,
12058         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
12059         accessed to the new scheme.
12060
12061 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12062
12063         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
12064         (cris_print_index, cris_print_operand, cris_print_operand_address)
12065         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
12066         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
12067         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
12068         GET_CODE () == xxx.
12069         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
12070         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
12071         GO_IF_LEGITIMATE_ADDRESS): Ditto.
12072         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
12073         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
12074         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
12075         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
12076         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
12077         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
12078         (uminsi3, call, call_value): Ditto.
12079         (define_split: indir_to_reg_split, unnamed): Ditto.
12080
12081 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
12082
12083         PR tree-optimization/30975
12084         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
12085         wrong assert.
12086
12087 2007-02-18  Eric Christopher  <echristo@gmail.com>
12088
12089         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
12090         Remove use of arglist.
12091         (mips_expand_builtin): Remove use of arglist, pass in expr.
12092         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
12093         (mips_expand_builtin_movtf): Ditto.
12094         (mips_expand_builtin_compare): Ditto.
12095
12096 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
12097
12098         * tree-sra.c (sra_build_assignment): Replace assertion
12099         checking with a comment explaining why it can't be done.
12100
12101 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
12102
12103         PR middle-end/30833
12104         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
12105         during CALL_EXPR representation conversion.
12106         * tree-ssa-propagate.c (set_rhs): Likewise.
12107
12108 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
12109
12110         * tree-sra.c (sra_build_assignment): Disable assertion checking
12111         for now.
12112
12113 2007-02-18  Roger Sayle  <roger@eyesopen.com>
12114
12115         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
12116         instead of calling build2 with a GIMPLE_MODIFY_STMT.
12117         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
12118         Likewise.
12119         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
12120         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
12121         gimplify_init_ctor_eval_range, gimple_push_cleanup,
12122         gimplify_omp_for, gimplify_omp_atomic_pipeline,
12123         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
12124         force_gimple_operand): Likewise.
12125         * ipa-cp.c (constant_val_insert): Likewise.
12126         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
12127         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
12128         perfect_nestify): Likewise.
12129         * langhooks.c (lhd_omp_assignment): Likewise.
12130         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
12131         lower_copyprivate_clauses, lower_send_clauses,
12132         lower_send_shared_vars, expand_parallel_call,
12133         expand_omp_for_generic, expand_omp_for_static_nochunk,
12134         expand_omp_for_static_chunk, expand_omp_sections,
12135         lower_omp_single_copy, lower_omp_for_lastprivate,
12136         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
12137         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
12138         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
12139         Likewise.
12140
12141 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
12142
12143         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
12144         config/sh/sh.md: Follow spelling conventions.
12145
12146         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
12147         config/frv/predicates.md: Follow spelling conventions.
12148
12149         * config/m68k/linux-unwind.h: Fix a comment typo.
12150         * target.h: Follow spelling conventions.
12151
12152 2007-02-18  Roger Sayle  <roger@eyesopen.com>
12153
12154         PR rtl-optimization/28173
12155         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
12156         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
12157         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
12158         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
12159         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
12160
12161 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12162
12163         * builtins.c (fold_builtin_load_exponent): New.
12164         (fold_builtin_2): Use it.
12165
12166 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
12167
12168         PR rtl-optimization/30773
12169         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
12170         if we fail to attach a REG_EQUIV note.
12171
12172 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
12173             Roger Sayle  <roger@eyesopen.com>
12174
12175         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
12176
12177 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
12178
12179         * calls.c (initialize_argument_information): Pass original EXP
12180         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
12181         code to split complex arguments here, as part of initializing the
12182         ARGS array.
12183         (expand_call): Remove code that builds a list of arguments and
12184         inserts implicit arguments into it.  Instead, just count how many
12185         implicit arguments there will be so we can determine the size of
12186         the ARGS array, and let initialize_argument_information do the work.
12187         (split_complex_values): Delete unused function.
12188
12189 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
12190
12191         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
12192
12193 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
12194
12195         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
12196         for arg pointer based indexed addressing.
12197
12198 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
12199
12200         * config/ia64/ia64.h, config/ia64/ia64.md,
12201         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
12202         spelling conventions.
12203
12204 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
12205
12206         * config/m68k/m68k.c (split_di): New.
12207         * config/m68k/m68k-protos.h: Declare split_di.
12208         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
12209           Improve predicate handling and split constant shifts.
12210
12211 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
12212
12213         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
12214         parameter for register bitfield operations, general predicates
12215         cleanup
12216
12217 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
12218
12219         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
12220         * config/m68k/linux-unwind.h: New file.
12221
12222 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
12223
12224         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
12225         config/i386/athlon.md, config/ia64/ia64.md,
12226         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
12227         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
12228         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
12229         tree-ssa-loop-niter.c, tree-vect-analyze.c,
12230         tree-vect-transform.c: Fix comment typos.
12231
12232 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
12233
12234         * sched-deps.c (find_insn_list): Remove.
12235         * sched-int.h: Remove the prototype for find_insn_list.
12236
12237 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
12238
12239         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
12240         to linker.
12241         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
12242         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
12243         darwin_rs6000_override_options.
12244         (C_COMMON_OVERRIDE_OPTIONS): Expect
12245         darwin_macosx_version_min to be non-NULL always.
12246         (TARGET_C99_FUNCTIONS): Likewise.
12247         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
12248         (DARWIN_MINVERSION_SPEC): New.
12249         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
12250         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
12251         to cc1*.
12252         (DARWIN_MINVERSION_SPEC): New.
12253         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
12254         value.
12255         * config/darwin-c.c (darwin_cpp_builtins): Expect
12256         darwin_macosx_version_min to be non-NULL always.
12257
12258         * config/rs6000/rs6000.c: Clean up trailing whitespace.
12259
12260 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
12261
12262         * config/i386/i386.h (x86_use_xchgb): New.
12263         (TARGET_USE_XCHGB): New macro.
12264         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
12265         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
12266         Split after reload into bswaphi for shifts of 8.
12267         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
12268         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
12269         or when optimizing for size.
12270
12271 2007-02-16  Richard Guenther  <rguenther@suse.de>
12272             Christian Bruel  <christian.bruel@st.com>
12273
12274         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
12275         DECLs but prefer SSA_NAMEs over DECLs.
12276
12277 2007-02-16  Richard Guenther  <rguenther@suse.de>
12278
12279         * tree-flow-inline.h (single_imm_use_p): Remove.
12280         (zero_imm_uses_p): Likewise.
12281         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
12282         instead of single_imm_use_p.
12283         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
12284         zero_imm_uses_p.
12285
12286 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12287
12288         PR other/27843
12289         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
12290         nested double- and backquotes.
12291
12292 2007-02-15  Roger Sayle  <roger@eyesopen.com>
12293
12294         PR middle-end/30391
12295         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
12296         should be unreachable.
12297         (build2_stat): Allow construction of MODIFY_EXPR at any time.
12298         For the time being redirect GIMPLE_MODIFY_STMT to the new
12299         (renamed) build_gimple_modify_stmt_stat.
12300         (build2_gimple_stat): Rename to...
12301         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
12302         Always build a GIMPLE_MODIFY_STMT node.
12303         * tree.h (build2_gimple, build2_gimple_stat): Delete.
12304         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
12305         declarations.
12306
12307         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
12308         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
12309         * tree-complex.c (set_component_ssa_name, expand_complex_move,
12310         expand_complex_div_wide): Likewise.
12311         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
12312         * tree-ssa-loop-im.c (schedule_sm): Likewise.
12313         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
12314         * tree-ssa-loop-manip.c (create_iv): Likewise.
12315         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
12316         abs_replacement): Likewise.
12317         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
12318         realify_fake_stores): Likewise.
12319
12320         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
12321         node rather than a GIMPLE_MODIFY_STMT node.
12322         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
12323         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
12324         Likewise.
12325         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
12326         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
12327         GIMPLE_MODIFY_STMT.
12328
12329 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12330
12331         PR middle-end/30433
12332         * fold-const.c (fold_comparison): Add back the
12333         folding of constant complex comparisions.
12334
12335 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12336
12337         PR middle-end/30729
12338         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
12339         effects unknown to this function, return early.
12340
12341 2007-02-15  Ian Lance Taylor  <iant@google.com>
12342
12343         * lower-subreg.c (move_eh_region_note): New static function.
12344         (resolve_simple_move): Call it.
12345         (decompose_multiword_subregs): Track blocks for which we resolve a
12346         simple move which is also a control flow insn.  Pass them to
12347         find_many_sub_basic_blocks.
12348         (pass_lower_subreg): Add TODO_verify_flow.
12349         (pass_lower_subreg2): Likewise.
12350
12351 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12352             Brooks Moses  <brooks.moses@codesourcery.com>
12353             Lee Millward  <lee.millward@codesourcery.com>
12354
12355         * tree.h (enum tree_code_class): Add tcc_vl_exp.
12356         (VL_EXP_CLASS_P): New.
12357         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
12358         TREE_CODE_LENGTH.
12359         (TREE_OPERAND_CHECK_CODE): Likewise.
12360         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
12361         (TREE_RTL_OPERAND_CHECK): Likewise.
12362         (tree_operand_check_failed): Make second parameter the whole tree
12363         instead of its code.  Fixed callers.
12364         (VL_EXP_CHECK): New.
12365         (TREE_OPERAND_LENGTH): New.
12366         (VL_EXP_OPERAND_LENGTH): New.
12367         (CALL_EXPR_FN): New.
12368         (CALL_EXPR_STATIC_CHAIN): New.
12369         (CALL_EXPR_ARGS): New.
12370         (CALL_EXPR_ARG): New.
12371         (call_expr_nargs): New.
12372         (CALL_EXPR_ARGP): New.
12373         (build_nt_call_list): Declare.
12374         (build_vl_exp_stat): Declare.
12375         (build_vl_exp): New.
12376         (build_call_list): Declare.
12377         (build_call_nary): Declare.
12378         (build_call_valist): Declare.
12379         (build_call_array): Declare.
12380         (call_expr_arg): Declare.
12381         (call_expr_argp): Declare.
12382         (call_expr_arglist): Declare.
12383         (fold_build_call_list): Declare.
12384         (fold_build_call_list_initializer): Declare.
12385         (fold_call_expr): Declare to replace fold_builtin.
12386         (fold_builtin_fputs): Update to agree with modified definition.
12387         (fold_builtin_strcpy): Likewise.
12388         (fold_builtin_strncpy): Likewise.
12389         (fold_builtin_memory_chk): Likewise.
12390         (fold_builtin_stxcpy_chk): Likewise.
12391         (fold_builtin_strncpy_chk): Likewise.
12392         (fold_builtin_next_arg): Likewise.
12393         (fold_build_call_expr): Declare.
12394         (fold_builtin_call_list): Declare.
12395         (fold_builtin_call_valist): Declare.
12396         (build_call_expr): Declare.
12397         (validate_arglist): Update to agree with modified definition.
12398         (tree_operand_length): New.
12399         (call_expr_arg_iterator): New.
12400         (init_call_expr_arg_iterator): New.
12401         (next_call_expr_arg): New.
12402         (first_call_expr_arg): New.
12403         (more_call_expr_args_p): New.
12404         (FOR_EACH_CALL_EXPR_ARG): New.
12405
12406         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
12407         and tcc_gimple_stmt.
12408         (tree_code_size): Update documentation.  Use sizeof (tree) rather
12409         than sizeof (char *).
12410         (tree_size): Likewise.  Add case for tcc_vl_exp.
12411         (tree_node_structure): Add case for tcc_vl_exp.
12412         (contains_placeholder_p): Likewise.
12413         (substitute_in_expr): Likewise.
12414         (substitute_placeholder_in_expr): Likewise.
12415         (stabilize_reference_1): Likewise.
12416         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
12417         to diagnose breakage of this interface for constructing CALL_EXPRs.
12418         (build_nt): Add similar assertion here.
12419         (build_nt_call_list): New.
12420         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
12421         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
12422         TREE_CODE_LENGTH.
12423         (get_callee_fndecl): Use new CALL_EXPR accessors.
12424         (tree_operand_check_failed): Change parameters to pass entire node
12425         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
12426         (process_call_operands): New.
12427         (build_vl_exp_stat): New.
12428         (build_call_list): New.
12429         (build_call_nary): New.
12430         (build_call_valist): New.
12431         (build_call_array): New.
12432         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12433         (call_expr_arglist): New.
12434
12435         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
12436         tcc_vl_exp instead of a fixed-size tcc_expression.
12437
12438         * doc/c-tree.texi (CALL_EXPR): Document new representation and
12439         accessors for CALL_EXPRs.
12440         (AGGR_INIT_EXPR): Likewise.
12441
12442 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12443             Brooks Moses  <brooks.moses@codesourcery.com>
12444             Lee Millward  <lee.millward@codesourcery.com>
12445
12446         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
12447         (expand_builtin_nonlocal_goto): Change parameter to be entire
12448         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
12449         (expand_builtin_prefetch): Likewise.
12450         (expand_builtin_classify_type): Likewise.
12451         (mathfn_built_in): Return NULL_TREE instead of 0.
12452         (expand_errno_check): Use new CALL_EXPR accessors.
12453         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
12454         Return NULL_RTX instead of 0.
12455         (expand_builtin_mathfn_2): Likewise.
12456         (expand_builtin_mathfn_3): Likewise.
12457         (expand_builtin_interclass_mathfn): Likewise.
12458         (expand_builtin_sincos): Likewise.
12459         (expand_builtin_cexpi): Likewise.
12460         (expand_builtin_int_roundingfn): Likewise.
12461         (expand_builtin_int_roundingfn_2): Likewise.
12462         (expand_builtin_pow): Likewise.
12463         (expand_builtin_powi): Likewise.
12464         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
12465         of arglist, fixing callers appropriately.  Use new CALL_EXPR
12466         accessors and constructors.  Return NULL_RTX instead of 0.
12467         (expand_builtin_strstr): Likewise.
12468         (expand_builtin_strchr): Likewise.
12469         (expand_builtin_strrchr): Likewise.
12470         (expand_builtin_strpbrk): Likewise.
12471         (expand_builtin_memcpy): Likewise.
12472         (expand_builtin_mempcpy): Likewise.
12473         (expand_builtin_mempcpy_args): New.
12474         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
12475         (expand_builtin_memmove_args): New.
12476         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
12477         (expand_movstr): Likewise.
12478         (expand_builtin_strcpy): Likewise.
12479         (expand_builtin_strcpy_args): New.
12480         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
12481         (expand_builtin_strncpy): Likewise.
12482         (expand_builtin_memset): Likewise.
12483         (expand_builtin_memset_args): New.
12484         (expand_builtin_bzero): Similarly to expand_builtin_memset.
12485         (expand_builtin_memcmp): Likewise.
12486         (expand_builtin_strcmp): Likewise.
12487         (expand_builtin_strncmp): Likewise.
12488         (expand_builtin_strcat): Likewise.
12489         (expand_builtin_strncat): Likewise.
12490         (expand_builtin_strspn): Likewise.
12491         (expand_builtin_strcspn): Likewise.
12492         (expand_builtin_args_info): Likewise.
12493         (expand_builtin_va_start): Likewise.
12494         (gimplify_va_arg_expr): Likewise.
12495         (expand_builtin_va_end): Likewise.
12496         (expand_builtin_va_copy): Likewise.
12497         (expand_builtin_frame_address): Likewise.
12498         (expand_builtin_alloca): Likewise.
12499         (expand_builtin_bswap): Likewise.
12500         (expand_builtin_unop): Likewise.
12501         (expand_builtin_fputs): Likewise.
12502         (expand_builtin_expect): Likewise.
12503         (expand_builtin_fabs): Likewise.
12504         (expand_builtin_copysign): Likewise.
12505         (expand_builtin_printf): Likewise.
12506         (expand_builtin_fprintf): Likewise.
12507         (expand_builtin_sprintf): Likewise.
12508         (expand_builtin_init_trampoline): Likewise.
12509         (expand_builtin_signbit): Likewise.
12510         (expand_builtin_fork_or_exec): Likewise.
12511         (expand_builtin_sync_operation): Likewise.
12512         (expand_builtin_compare_and_swap): Likewise.
12513         (expand_builtin_lock_test_and_set): Likewise.
12514         (expand_builtin_lock_release): Likewise.
12515         (expand_builtin): Likewise.
12516         (builtin_mathfn_code): Likewise.
12517
12518         (fold_builtin_constant_p): Pass call arguments individually instead
12519         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
12520         accessors and constructors.  Return NULL_TREE instead of 0.
12521         (fold_builtin_expect): Likewise.
12522         (fold_builtin_classify_type): Likewise.
12523         (fold_builtin_strlen): Likewise.
12524         (fold_builtin_nan): Likewise.
12525         (integer_valued_real_p): Likewise.
12526         (fold_trunc_transparent_mathfn): Likewise.
12527         (fold_fixed_mathfn): Likewise.
12528         (fold_builtin_cabs): Likewise.
12529         (fold_builtin_sqrt): Likewise.
12530         (fold_builtin_cbrt): Likewise.
12531         (fold_builtin_cos): Likewise.
12532         (fold_builtin_cosh): Likewise.
12533         (fold_builtin_tan): Likewise.
12534         (fold_builtin_sincos): Likewise.
12535         (fold_builtin_cexp): Likewise.
12536         (fold_builtin_trunc): Likewise.
12537         (fold_builtin_floor): Likewise.
12538         (fold_builtin_ceil): Likewise.
12539         (fold_builtin_round): Likewise.
12540         (fold_builtin_int_roundingfn): Likewise.
12541         (fold_builtin_bitop): Likewise.
12542         (fold_builtin_bswap): Likewise.
12543         (fold_builtin_logarithm): Likewise.
12544         (fold_builtin_hypot): Likewise.
12545         (fold_builtin_pow): Likewise.
12546         (fold_builtin_powi): Likewise.
12547         (fold_builtin_exponent): Likewise.
12548         (fold_builtin_memset): Likewise.
12549         (fold_builtin_bzero): Likewise.
12550         (fold_builtin_memory_op): Likewise.
12551         (fold_builtin_bcopy): Deleted; call site changed to invoke
12552         fold_builtin_memory_op directly.
12553         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
12554         (fold_builtin_strncpy): Likewise.
12555         (fold_builtin_memcmp): Likewise.
12556         (fold_builtin_strcmp): Likewise.
12557         (fold_builtin_strncmp): Likewise.
12558         (fold_builtin_signbit): Likewise.
12559         (fold_builtin_copysign): Likewise.
12560         (fold_builtin_isascii): Likewise.
12561         (fold_builtin_toascii): Likewise.
12562         (fold_builtin_isdigit): Likewise.
12563         (fold_builtin_fabs): Likewise.
12564         (fold_builtin_abs): Likewise.
12565         (fold_builtin_fmin_fmax): Likewise.
12566         (fold_builtin_carg): Likewise.
12567         (fold_builtin_classify): Likewise.
12568         (fold_builtin_unordered_cmp): Likewise.
12569
12570         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
12571         New functions split out from fold_builtin_1.
12572         (fold_builtin_n): New.
12573         (fold_builtin_varargs): New.
12574         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
12575         instead.
12576         (fold_call_expr): New.
12577         (build_function_call_expr): Rewrite to use new helper function.
12578         (fold_builtin_call_list): New.
12579         (build_call_expr): New.
12580         (fold_builtin_call_valist): New.
12581         (rewrite_call_expr): New.
12582         (validate_arg): New.
12583         (validate_arglist): Change parameter to be entire CALL_EXPR instead
12584         of an arglist.  Change return type to bool.  Use new CALL_EXPR
12585         accessors.
12586
12587         (fold_builtin_strstr):  Pass call arguments individually instead
12588         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
12589         accessors and constructors.  Return NULL_TREE instead of 0.
12590         (fold_builtin_strchr): Likewise.
12591         (fold_builtin_strrchr): Likewise.
12592         (fold_builtin_strpbrk): Likewise.
12593         (fold_builtin_strcat): Likewise.
12594         (fold_builtin_strncat): Likewise.
12595         (fold_builtin_strspn): Likewise.
12596         (fold_builtin_strcspn): Likewise.
12597         (fold_builtin_fputs): Likewise.
12598         (fold_builtin_next_arg): Likewise.
12599         (fold_builtin_sprintf): Likewise.
12600
12601         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
12602         NULL_RTX instead of 0.
12603         (expand_builtin_memory_chk): Likewise.
12604         (maybe_emit_chk_warning): Likewise.
12605         (maybe_emit_sprintf_chk_warning): Likewise.
12606
12607         (fold_builtin_object_size): Pass call arguments individually instead
12608         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
12609         accessors and constructors.  Return NULL_TREE instead of 0.
12610         (fold_builtin_memory_chk): Likewise.
12611         (fold_builtin_stxcpy_chk): Likewise.
12612         (fold_builtin_strncpy_chk): Likewise.
12613         (fold_builtin_strcat_chk): Likewise.
12614         (fold_builtin_strcat_chk): Likewise.
12615         (fold_builtin_strncat_chk): Likewise.
12616         (fold_builtin_sprintf_chk): Likewise.
12617         (fold_builtin_snprintf_chk): Likewise.
12618         (fold_builtin_printf): Likewise.
12619         (fold_builtin_vprintf): Likewise.
12620
12621         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
12622         constructors.
12623         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
12624         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12625         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
12626         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
12627         (fold_unary): Likewise.
12628         (fold_binary): Likewise.
12629         (fold_ternary): Remove CALL_EXPR case, since they are no longer
12630         ternary expressions.
12631         (fold): Add logic for tcc_vl_exp.
12632         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
12633         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12634         (fold_build3_stat): Add assertion to flag broken interface for
12635         constructing CALL_EXPRs.
12636         (fold_build_call_list): New.
12637         (fold_build_call_list_initializer): New.
12638         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
12639         constructors.
12640         (fold_strip_sign_ops): Likewise.
12641
12642 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12643             Brooks Moses  <brooks.moses@codesourcery.com>
12644             Lee Millward  <lee.millward@codesourcery.com>
12645
12646         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
12647         accessors and dump arguments explicitly.
12648
12649         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
12650         TREE_CODE_LENGTH.
12651         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
12652         explicitly.
12653         (print_call_name): Use new CALL_EXPR accessors.
12654
12655         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
12656         CALL_EXPR arguments explicitly instead of as a list.  Use
12657         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12658
12659         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
12660         (vrp_visit_stmt): Likewise.
12661
12662         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
12663         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
12664         TREE_CODE_LENGTH.
12665         (force_move_till_expr): Likewise.
12666
12667         * targhooks.c (default_external_stack_protect_fail): Use
12668         build_call_expr instead of build_function_call_expr.
12669         (default_hidden_stack_protect_fail): Likewise.
12670
12671         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
12672         build the call.
12673
12674         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
12675         and walk arguments explicitly.
12676
12677         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
12678         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12679         (expand_simple_operations): Likewise.
12680         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
12681
12682         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
12683         of TREE_CODE_LENGTH.
12684         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
12685
12686         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
12687         instead of TREE_CODE_LENGTH.
12688
12689         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
12690         (tree_ic_transform): Likewise.
12691         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
12692         parameter instead of arglist.  Fix callers.
12693         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
12694         (tree_stringops_transform): Likewise.
12695         (tree_indirect_call_to_profile): Likewise.
12696         (tree_stringops_values_to_profile): Likewise.
12697
12698         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
12699         (eliminate_tail_call): Likewise.
12700
12701         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
12702
12703         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12704         Use TREE_OPERAND_LENGTH and generalize to handle any number of
12705         operands.
12706         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
12707
12708         * omp-low.c (build_omp_barrier): Use build_call_expr.
12709         (lower_rec_input_clauses): Likewise.
12710         (lower_reduction_clauses): Likewise.
12711         (expand_parallel_call): Likewise.
12712         (maybe_catch_exception): Likewise.
12713         (expand_omp_for_generic): Likewise.
12714         (expand_omp_for_static_nochunk): Likewise.
12715         (expand_omp_sections): Likewise.
12716         (lower_omp_single_simple): Likewise.
12717         (lower_omp_single_copy): Likewise.
12718         (lower_omp_master): Likewise.
12719         (lower_omp_ordered): Likewise.
12720         (lower_omp_critical): Likewise.
12721
12722         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
12723         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
12724
12725         * tree-gimple.c (is_gimple_call_addr): Fix doc.
12726         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
12727         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
12728
12729         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
12730         and generalize to handle any number of operands.
12731         (chrec_contains_undetermined): Likewise.
12732         (tree_contains_chrecs): Likewise.
12733         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
12734
12735         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
12736
12737         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
12738         fold_call_expr instead of fold_builtin.
12739         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
12740         match declarations there.
12741         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
12742         updates.
12743
12744         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
12745         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12746
12747         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
12748         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
12749
12750         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
12751         accessors.
12752
12753         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
12754         (execute_cse_sincos): Use new CALL_EXPR accessors.
12755
12756         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
12757
12758         * gimple-low.c (lower_function_body): Use build_call_expr.
12759         (lower_builtin_setjmp): Likewise.
12760
12761         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
12762         (set_storage_via_libcall): Likewise.
12763         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
12764         instead of TREE_CODE_LENGTH.
12765         (expand_expr_real_1): Use new CALL_EXPR accessors.
12766
12767         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
12768         generalize to handle any number of operands.
12769         (TB_parent_eq): Likewise.
12770
12771         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
12772         (strip_builtin_expect): Likewise.
12773
12774         * function.c (gimplify_parameters): Use build_call_expr.
12775
12776         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
12777         instead of TREE_CODE_LENGTH.
12778
12779         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
12780         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
12781
12782         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
12783         iterators.
12784
12785         * gimplify.c (build_stack_save_restore): Use build_call_expr.
12786         (gimplify_decl_expr): Likewise.
12787         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
12788         Use new CALL_EXPR iterators.
12789         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
12790         (gimplify_modify_expr_to_memset): Likewise.
12791         (gimplify_variable_sized_compare): Likewise.
12792         (gimplify_omp_atomic_fetch_op): Likewise.
12793         (gimplify_omp_atomic_pipeline): Likewise.
12794         (gimplify_omp_atomic_mutex): Likewise.
12795         (gimplify_function_tree): Likewise.
12796
12797         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
12798         (call_expr_flags): Likewise.
12799         (expand_call): Likewise.
12800
12801         * except.c (expand_builtin_eh_return_data_regno): Pass entire
12802         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
12803         accessors.
12804
12805         * coverage.c (create_coverage): Use build_call_expr.
12806
12807         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
12808         (temp_call_expr_obstack): New.
12809         (pool_copy_list): Delete.
12810         (temp_copy_call_expr): New.
12811         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
12812         CALL_EXPR accessors.  Get rid of special goo for copying argument
12813         lists and use temp_copy_call_expr instead.
12814         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
12815         CALL_EXPR accessors.
12816         (create_expression_by_pieces): Likewise.  Use build_call_array
12817         to construct the result instead of fold_build3.
12818         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
12819         dealing with argument lists.
12820         (init_pre): Remove references to expression_node_pool and
12821         list_node_pool.  Init temp_call_expr_obstack instead.
12822         (fini_pre): Remove references to expression_node_pool and
12823         list_node_pool.
12824
12825         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
12826         and walk arguments explicitly instead of as a list.
12827
12828         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
12829         (mx_register_decls): Likewise.
12830         (mudflap_register_call): Likewise.
12831         (mudflap_finish_file): Likewise.
12832
12833         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
12834         (ipa_callsite_compute_param): Likewise.
12835
12836         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
12837         accessors and constructor.
12838
12839         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
12840         accessors and constructor.
12841         (convert_tramp_reference): Likewise.
12842         (convert_call_expr): Likewise.
12843         (finalize_nesting_tree_1): Likewise.
12844
12845         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
12846         accessors.
12847
12848         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
12849
12850         * tree-inline.c (initialize_inlined_parameters): Pass entire
12851         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
12852         accessors.
12853         (estimate_num_insns_1): Use new CALL_EXPR accessors.
12854         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
12855
12856         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
12857         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12858         (vectorizable_reduction): Likewise.
12859         (vectorizable_call): Use new CALL_EXPR iterators.
12860         (vectorizable_conversion): Use build_call_expr.
12861         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
12862         (vect_gen_widened_results_half): Use build_call_expr.
12863         (vect_setup_realignment): Likewise.
12864         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
12865
12866         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
12867         (pass_through_call): Likewise.
12868         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
12869         fold_builtin.
12870
12871         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
12872         (tree_gen_pow2_profiler): Likewise.
12873         (tree_gen_one_value_profiler): Likewise.
12874         (tree_gen_ic_func_profiler): Likewise.
12875         (tree_gen_average_profiler): Likewise.
12876         (tree_gen_ior_profiler): Likewise.
12877
12878         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
12879         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
12880         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12881
12882         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
12883         of TREE_CODE_LENGTH.
12884
12885         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
12886         of TREE_CODE_LENGTH.
12887
12888         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
12889         constructor.
12890         (convert_to_integer): Likewise.
12891
12892         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
12893         accessors.
12894
12895 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12896             Brooks Moses  <brooks.moses@codesourcery.com>
12897             Lee Millward  <lee.millward@codesourcery.com>
12898
12899         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
12900         accessors.
12901         * config/frv/frv.c (frv_expand_builtin): Likewise.
12902         * config/s390/s390.c (s390_expand_builtin): Likewise.
12903
12904         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
12905         (sparc_expand_builtin): Use new CALL_EXPR accessors.
12906
12907         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
12908         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
12909         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
12910         (ix86_expand_store_builtin): Likewise.
12911         (ix86_expand_unop_builtin): Likewise.
12912         (ix86_expand_unop1_builtin): Likewise.
12913         (ix86_expand_sse_compare): Likewise.
12914         (ix86_expand_sse_comi): Likewise.
12915         (ix86_expand_vec_init_builtin): Likewise.
12916         (ix86_expand_vec_ext_builtin): Likewise.
12917         (ix86_expand_vec_set_builtin): Likewise.
12918         (ix86_expand_builtin): Use new CALL_EXPR accessors.
12919
12920         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
12921         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
12922
12923         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
12924         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
12925         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
12926
12927         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
12928         build_call_expr.
12929         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
12930         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
12931         arglist.  Use new CALL_EXPR accessors.  Fix callers.
12932         (altivec_expand_abs_builtin): Likewise.
12933         (rs6000_expand_binop_builtin): Likewise.
12934         (altivec_expand_predicate_builtin): Likewise.
12935         (altivec_expand_lv_builtin): Likewise.
12936         (spe_expand_stv_builtin): Likewise.
12937         (altivec_expand_stv_builtin): Likewise.
12938         (rs6000_expand_ternop_builtin): Likewise.
12939         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
12940         (altivec_expand_st_builtin): Likewise.
12941         (altivec_expand_dst_builtin): Likewise.
12942         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
12943         arglist.  Use new CALL_EXPR accessors.  Fix callers.
12944         (altivec_expand_vec_set_builtin): Likewise.
12945         (altivec_expand_vec_ext_builtin): Likewise.
12946         (altivec_expand_builtin): Use new CALL_EXPR accessors.
12947         (spe_expand_builtin): Likewise.
12948         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
12949         arglist.  Use new CALL_EXPR accessors.  Fix callers.
12950         (spe_expand_evsel_builtin): Likewise.
12951         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
12952         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
12953
12954         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
12955         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
12956         (arm_expand_unop_builtin): Likewise.
12957         (arm_expand_builtin): Use new CALL_EXPR accessors.
12958
12959         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
12960         accessors.
12961
12962         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
12963         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
12964         (bfin_expand_unop_builtin): Likewise.
12965         (bfin_expand_builtin): Use new CALL_EXPR accessors.
12966
12967 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12968             Brooks Moses  <brooks.moses@codesourcery.com>
12969             Lee Millward  <lee.millward@codesourcery.com>
12970
12971         * c-semantics.c (build_stmt): Add internal diagnostic check.
12972
12973         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
12974         accessors.  Print arguments explicitly instead of as a list.
12975
12976         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
12977
12978         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
12979         (c_finish_omp_flish): Likewise.
12980
12981         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
12982         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
12983         instead of TREE_CODE_LENGTH.
12984         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
12985         (c_warn_unused_result): Likewise.
12986
12987 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12988
12989         PR c/26494
12990         * doc/invoke.texi (Warning Options): Remove
12991         -Werror-implicit-function-declaration.
12992         (Wimplicit-function-declaration): Update description.
12993         * opts.c (common_handle_option): Move handling of -Werror=* to...
12994         (enable_warning_as_error): ...here.
12995         * opts.h (enable_warning_as_error): Declare.
12996         * c-decl.c (implicit_decl_warning): Unless
12997         -Wno-implicit-function-declaration is given, emit a pedwarn if
12998         -std=c99 or emit a warning if -Wimplicit-function-declaration.
12999         * c.opt (Wimplicit-function-declaration): Replace
13000         mesg_implicit_function_declaration with
13001         warn_implicit_function_declaration.
13002         * c-opts.c (c_common_handle_option):
13003         -Werror-implicit-function-declaration is exactly equal as
13004         -Werror=implicit-function-declaration.
13005         (set_Wimplicit): Replace mesg_implicit_function_declaration with
13006         warn_implicit_function_declaration.
13007         (c_common_post_options): -Wimplict-function-declaration is enabled
13008         by default by -std=c99, otherwise is disabled by default.
13009         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
13010
13011 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
13012
13013         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
13014         DECL on the rhs to a DECL on the lhs for debug info purposes if the
13015         former is ignored but not the latter.
13016
13017 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
13018
13019         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
13020         is made and the reference doesn't use the alias set of its type,
13021         do not create the temporary using that type.
13022
13023 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
13024
13025         * jump.c: Remove prototypes for delete_computation and
13026         delete_prior_computation.
13027
13028 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
13029
13030         * jump.c (get_label_after): Delete.
13031         (get_label_before, delete_computation, delete_jump,
13032         delete_prior_computation, follow_jumps): Move...
13033         * reorg.c (delete_computation, delete_prior_computation): ... here...
13034         (get_label_before, delete_jump): ... making these static ...
13035         (follow_jumps): ... and simplifying this since it only runs after
13036         reload.
13037         * rtl.h (get_label_after, get_label_before, delete_jump,
13038         follow_jumps): Delete prototypes.
13039
13040 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
13041
13042         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
13043
13044 2007-02-15  Nick Clifton  <nickc@redhat.com>
13045
13046         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
13047         order to prevent it from being munged by the target.
13048
13049 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
13050
13051         * config/i386/i386.md: Remove misleading comment.
13052
13053 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13054
13055         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
13056         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
13057         invalid patterns.
13058
13059 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13060
13061         * tree-sra.c (instantiate_missing_elements): Canonicalize
13062         bit-field types.
13063         (sra_build_assignment): New.
13064         (generate_copy_inout, generate_element_copy,
13065         generate_element_zero, generate_one_element_init): Use it.
13066
13067 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13068
13069         * tree-sra.c (instantiate_missing_elements): Canonicalize
13070         bit-field types.
13071         (sra_build_assignment): New.
13072         (generate_copy_inout, generate_element_copy,
13073         generate_element_zero, generate_one_element_init): Use it.
13074
13075 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13076
13077         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
13078         limbo die nodes.
13079
13080 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
13081
13082         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
13083         types as aggregates not scalars.
13084         * function.c (assign_stack_temp_for_type): Likewise.
13085
13086 2007-02-14  Roger Sayle  <roger@eyesopen.com>
13087             Zdenek Dvorak  <dvorakz@suse.cz>
13088
13089         * tree-dump.c (dump_switch_p_1): Require exact match of the option
13090         name.
13091
13092 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
13093
13094         * passes.c (next_pass_1): Clear the next field of the copied
13095         pass structure.
13096
13097 2007-02-14  Richard Henderson  <rth@redhat.com>
13098
13099         * tree-sra.c (early_sra): New.
13100         (decl_can_be_decomposed_p): Deny va_list if early_sra.
13101         (tree_sra_early, pass_sra_early): New.
13102         * tree-pass.h (pass_sra_early): Declare.
13103         * passes.c (init_optimization_passes): Use it.
13104
13105 2007-02-14  Richard Guenther  <rguenther@suse.de>
13106
13107         * flags.h (issue_strict_overflow_warning): Convert to a macro.
13108
13109 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
13110
13111          PR tree-optimization/30771
13112         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
13113         also phi nodes.
13114         (vect_analyze_operations): Induction phis can now be marked as
13115         used_in_loop.
13116         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
13117         Update documentation accordingly.
13118
13119 2007-02-14  Nick Clifton  <nickc@redhat.com>
13120
13121         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
13122         most 3 arguments are supported.
13123         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
13124
13125 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
13126
13127         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
13128         Ensure dst->current is valid.
13129
13130 2007-02-13  Paul Brook  <paul@codesourcery.com>
13131
13132         * config.gcc: Add arm*-*-uclinux-*eabi.
13133         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
13134         (SUBTARGET_EXTRA_LINK_SPEC): Define.
13135         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
13136         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
13137         (LINK_SPEC): Define.
13138         (LIB_SPEC): Define.
13139         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
13140         register.
13141         * config/arm/uclinux-eabi.h: New file.
13142         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
13143         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
13144         based targets.
13145
13146 2007-02-13  Ian Lance Taylor  <iant@google.com>
13147
13148         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
13149         * flags.h (warn_strict_overflow): Declare.
13150         (enum warn_strict_overflow_code): Define.
13151         (issue_strict_overflow_warning): New static inline function.
13152         * opts.c (warn_strict_overflow): New variable.
13153         (common_handle_option): Handle OPT_Wstrict_overflow and
13154         OPT_Wstrict_overflow_.
13155         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
13156         OPT_Wall.
13157         * fold-const.c: Include intl.h.
13158         (fold_deferring_overflow_warnings): New static variable.
13159         (fold_deferred_overflow_warning): New static variable.
13160         (fold_deferred_overflow_code): New static variable.
13161         (fold_defer_overflow_warnings): New function.
13162         (fold_undefer_overflow_warnings): New function.
13163         (fold_undefer_and_ignore_overflow_warnings): New function.
13164         (fold_deferring_overflow_warnings_p): New function.
13165         (fold_overflow_warning): New static function.
13166         (make_range): Add strict_overflow_p parameter.  Change all
13167         callers.
13168         (extract_muldiv, extract_muldiv_1): Likewise.
13169         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
13170         tree_expr_nonnegative_p.
13171         (fold_negate_expr): Call fold_overflow_warning.
13172         (fold_range_test): Likewise.
13173         (fold_comparison): Likewise.
13174         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
13175         instead of tree_expr_nonnegative_p.
13176         (tree_expr_nonnegative_warnv_p): Rename from
13177         tree_expr_nonnegative_p, add strict_overflow_p parameter.
13178         (tree_expr_nonnegative_p): New function.
13179         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
13180         strict_overflow_p parameter.
13181         (tree_expr_nonzero_p): New function.
13182         * passes.c (verify_interpass_invariants): New static function.
13183         (execute_one_pass): Call it.
13184         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
13185         warnings.
13186         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
13187         (estimate_numbers_of_iterations): Likewise.
13188         (scev_probably_wraps_p): Likewise.
13189         * tree-ssa-ccp.c: Include "toplev.h".
13190         (evaluate_stmt): Defer fold overflow warnings until we know we are
13191         going to optimize.
13192         (struct fold_stmt_r_data): Add stmt field.
13193         (fold_stmt_r): Defer fold overflow warnings until we know we
13194         optimized.
13195         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
13196         (fold_stmt_inplace): Likewise.
13197         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
13198         (cleanup_control_expr_graph): Defer fold overflow warnings until
13199         we know we are going to optimize.
13200         * tree-cfg.c (fold_cond_expr_cond): Likewise.
13201         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
13202         Likewise.
13203         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13204         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
13205         * tree-ssa-loop-manip.c (create_iv): Likewise.
13206         * c-typeck.c (build_conditional_expr): Likewise.
13207         (build_binary_op): Likewise.
13208         * tree-vrp.c (vrp_expr_computes_nonzero): Call
13209         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
13210         (extract_range_from_unary_expr): Likewise.
13211         * simplify-rtx.c (simplify_const_relational_operation): Warn when
13212         assuming that signed overflow does not occur.
13213         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
13214         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
13215         (fold_defer_overflow_warnings): Declare.
13216         (fold_undefer_overflow_warnings): Declare.
13217         (fold_undefer_and_ignore_overflow_warnings): Declare.
13218         (fold_deferring_overflow_warnings_p): Declare.
13219         (tree_expr_nonzero_warnv_p): Declare.
13220         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
13221         of warning options.
13222         (Warning Options): Document -Wstrict-overflow.
13223         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
13224         (tree-ssa-ccp.o): Likewise.
13225         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
13226         (fold-const.o): Depend on intl.h.
13227
13228 2007-02-13  Ian Lance Taylor  <iant@google.com>
13229
13230         PR middle-end/30751
13231         * lower-subreg.c (resolve_simple_move): Decompose subregs in
13232         addresses.
13233
13234 2007-02-13  Stuart Hastings  <stuart@apple.com>
13235
13236         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
13237
13238 2007-02-13  Richard Henderson  <rth@redhat.com>
13239
13240         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
13241         handled_component_p before looking for the indirect_ref.
13242
13243 2007-02-13  Richard Henderson  <rth@redhat.com>
13244
13245         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
13246         remove flags clobber.
13247         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
13248         (bswaphi_lowpart): New.
13249         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
13250         remove TARGET_BSWAP test.  Delete expander of the same name.
13251
13252         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
13253         (expand_unop): Use them.
13254
13255 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
13256
13257         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
13258         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
13259         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
13260         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
13261         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
13262         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
13263         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
13264         assembler dialect choice from asm templates.
13265
13266 2007-02-12  Richard Henderson  <rth@redhat.com>
13267
13268         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
13269         (fixuns_trunc<SSEMODEF>si2): Use it.
13270         * config/i386/sse.md (vec_setv4sf_0): Export.
13271         * config/i386/i386.c (ix86_build_const_vector): Export.
13272         (ix86_split_convert_uns_si_sse): Rename from
13273         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
13274         * config/i386/i386-protos.h: Update.
13275
13276 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13277
13278         PR c/29521
13279         * c-typeck.c (c_finish_return): Improve warning message.
13280
13281 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13282
13283         * alias.c (find_symbolic_term): Delete unused function.
13284
13285 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
13286
13287         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
13288         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
13289         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
13290
13291 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13292
13293         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
13294         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
13295         the function, temporarily point the debug interface to the null one.
13296
13297 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13298
13299         * dwarf2out.c (round_up_to_align): New static function.
13300         (field_byte_offset): Use it to round the offset.
13301
13302 2007-02-12  Richard Henderson  <rth@redhat.com>
13303
13304         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
13305         (inswl_const): Export.
13306
13307 2007-02-12  Richard Henderson  <rth@redhat.com>
13308
13309         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
13310         result mode of the libcall, convert back to outmode.
13311
13312 2007-02-12  Roger Sayle  <roger@eyesopen.com>
13313
13314         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
13315         (bswapdi2): New define_expand to implement 32-bit implementation.
13316
13317 2007-02-12  Nick Clifton  <nickc@redhat.com>
13318
13319         * doc/invoke.texi (Overall Options): Document --help=.
13320         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
13321         (cc1_options): Pass --help= on to cc1.
13322         (display_help): Add description of --help=.
13323         (process_command): Add code to handle --help=.  Allow translated
13324         --help and --target-help switches to be passed on to compiler
13325         sub-process.
13326         (main): Remove unused if statement.
13327         * opts.c (columns): Remove.
13328         (LEFT_COLUMN): Define.
13329         (wrap_help): Add columns argument.
13330         (print_filtered_help): Change parameters to be an include bitmask,
13331         an exclude bitmask, an any bitmask and the column width.  Move the
13332         code to display the params list here.  Add code to display the
13333         status of options rather than their descriptions if the quiet flag
13334         is not active.
13335         (print_specific_help): Change parameters to be an include bitmask,
13336         an exclude bitmask and an any bitmask.  Move code to look up the
13337         column width here.  Decide upon the title for an options listing.
13338         (common_handle_options): Add code to handle --help=.  Adapt code
13339         for --help and --target-help to use the revised form of the
13340         print_specific_help function.
13341         (print_help): Delete.
13342         (print_param_help): Delete.
13343         (print_switch): Delete.
13344         * opts.h (cl_lang_count): Add prototype.
13345         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
13346         CL_MAX_OPTION_CLASS): New defines.
13347         * optc-gen.awk: Add construction of cl_lang_count.
13348         * c.opt: Add Warning attribute to warning options and Optimization
13349         attribute to optimization options.
13350         * common.opt: Likewise.
13351         Add --help=.
13352         Add -fhelp and -ftarget-help as aliases for the transformed --help
13353         and --target-help options.
13354         * opt-functions.awk: Add code to handle Warning and Optimization
13355         attributes.
13356
13357 2007-02-12  Richard Henderson  <rth@redhat.com>
13358
13359         * config/alpha/constraints.md: New file.
13360         * config/alpha/alpha.c: Include tm-constrs.h.
13361         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
13362         alpha_extra_constraint): Remove.
13363         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
13364         * config/alpha/alpha-protos.h: Update.
13365         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
13366         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
13367         (EXTRA_CONSTRAINT): Remove.
13368         * config/alpha/alpha.md: Include constraints.md.
13369         (adddi splitter): Use satisfies_constraint_*.
13370         * config/alpha/predicates.md (add_operand): Likewise.
13371         (sext_add_operand, addition_operation): Likewise.
13372
13373 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
13374
13375         PR tree-optimization/29145
13376         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
13377         in our handling of restrict qualified pointers.
13378
13379 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13380
13381         PR middle-end/7651
13382         * doc/invoke.texi (Wunused-value): Update description.
13383         (Wextra): Delete item.
13384         * opts.c (set_Wextra): Don't use the value of Wextra to set the
13385         value of Wunused-value.
13386         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
13387         (c_finish_stmt_expr): Don't check extra_warnings.
13388         (emit_side_effect_warnings): The caller is responsible to check
13389         warn_unused_value.
13390
13391 2007-02-11  Roger Sayle  <roger@eyesopen.com>
13392             Matt Thomas  <matt@3am-software.com>
13393
13394         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
13395
13396 2007-02-11  Roger Sayle  <roger@eyesopen.com>
13397
13398         * simplify-rtx.c (simplify_relational_operation_1): Optimize
13399         comparisons of POPCOUNT against zero.
13400         (simplify_const_relational_operation): Likewise.
13401
13402 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13403
13404         * doc/invoke.texi (Wextra): Delete outdated paragraph.
13405
13406 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13407
13408         * dwarf2out.c (root_type): Delete unused function.
13409
13410 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13411
13412         * genattrtab.c (contained_in_p): Delete unused function.
13413         (write_expr_attr_cache): Likewise.
13414
13415 2007-02-11  Jan Hubicka  <jh@suse.cz>
13416
13417         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
13418         previous patch.
13419
13420 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
13421
13422         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
13423         to add the REG_EQ* note.
13424         * see.c (see_merge_one_use_extension): Likewise.
13425         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
13426         turn REG_EQUAL notes into REG_EQUIV notes if the target
13427         register may have more than one set.
13428         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
13429         * gcse.c (try_replace_reg): Likewise.
13430         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
13431         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
13432         more than one REG_EQUIV note.
13433         * reload1.c (gen_reload): Use set_unique_reg_note.
13434
13435 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
13436
13437         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
13438         (ix86_builtin_conversion): New function.
13439
13440 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
13441
13442         PR target/29487
13443         * tree.h (DECL_REPLACEABLE_P): New macro.
13444         * except.c (set_nothrow_function_flags): Likewise.
13445
13446 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
13447             Ira Rosen  <irar@il.ibm.com>
13448             Dorit Nuzman  <dorit@il.ibm.com>
13449
13450         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
13451         * targhooks.c (default_builtin_vectorized_conversion): New.
13452         * targhooks.h (default_builtin_vectorized_function): New declaration.
13453         * target.h (struct vectorize): Add builtin_conversion field.
13454         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
13455         stmt_vec_info_type value.
13456         (vectorizable_conversion): New declaration.
13457         * tree-vect-analyze.c (vect_analyze_operations): Add
13458         vectorizable_conversion call.
13459         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
13460         * tree-vect-transform.c (vectorizable_conversion): New function.
13461         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
13462         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
13463         mode.
13464         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
13465         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
13466         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
13467         or ALTIVEC_BUILTIN_VCFSX.
13468
13469 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13470
13471         PR target/30634
13472         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
13473         CONST_DOUBLE and operand 0 is a hard register.
13474         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
13475         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
13476         is a hard floating-point register.
13477
13478 2007-02-10  Richard Henderson  <rth@redhat.com>
13479             Jakub Jelinek  <jakub@redhat.com>
13480             Alexandre Oliva  <aoliva@redhat.com>
13481
13482         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
13483         * builtin-types.def (BT_WORD): Make unsigned.
13484         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
13485         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
13486         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
13487         * c-decl.c (grokdeclarator): Don't error if !have_tls.
13488         * c-parser.c (c_parser_omp_threadprivate): Likewise.
13489         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
13490         emulated tls.
13491         * expr.c (emutls_var_address): New.
13492         (expand_expr_real_1): Expand emulated tls.
13493         (expand_expr_addr_expr_1): Likewise.
13494         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
13495         * output.h (emutls_finish): Declare.
13496         * toplev.c (compile_file): Call it.
13497         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
13498         address before wrapping in CONST.
13499         * varasm.c (emutls_htab, emutls_object_type): New.
13500         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
13501         (get_emutls_object_name, get_emutls_object_type): New.
13502         (get_emutls_init_templ_addr, emutls_decl): New.
13503         (emutls_common_1, emutls_finish): New.
13504         (assemble_variable): When emulating tls, swap decls; generate
13505         constructor for the emutls objects.
13506         (do_assemble_alias): When emulating tls, swap decl and target name.
13507         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
13508         for emulated tls.
13509         * varpool.c (decide_is_variable_needed): Look at force_output.
13510         Recurse for emulated tls.
13511         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
13512         with decide_is_variable_needed.
13513         * emutls.c: New file.
13514         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
13515         tls_object for real tls.
13516
13517 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
13518
13519         PR rtl-optimization/29599
13520         * reload1.c (eliminate_regs_in_insn): Take the destination
13521         mode into account when computing the offset.
13522
13523 2007-02-09  Stuart Hastings  <stuart@apple.com>
13524             Richard Henderson  <rth@redhat.com>
13525
13526         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
13527         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
13528         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
13529         fixuns_truncdfhi2): New.
13530         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
13531         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
13532         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
13533         (floatunssidf2): Allow nonimmediate source.
13534         * config/i386/sse.md (movdi_to_sse): New.
13535         (vec_concatv2di): Drop '*'.
13536         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
13537         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
13538         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
13539         New.
13540         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
13541         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
13542         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
13543         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
13544         (ix86_build_signbit_mask): Fix decl of v, refactor to call
13545         ix86_build_const_vector.
13546         (x86_emit_floatuns): Rewrite.
13547
13548 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13549
13550         * genautomata.c (longest_path_length): Delete unused function.
13551         (struct state): Delete unused longest_path_length.
13552         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
13553         (get_free_state): Delete unused.
13554
13555 2007-02-09  Jan Hubicka  <jh@suse.cz>
13556
13557         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
13558         * doc/invoke.texi (inline-unit-growth): Update default value.
13559
13560         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
13561         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
13562         (rebuild_cgraph_edges): Likewise.
13563         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
13564         (dump_cgraph_node): Dump frequencies.
13565         (cgraph_clone_edge): Add frequency scales.
13566         (cgraph_clone_node): Add freuqnecy.
13567         * cgraph.h (cgraph_edge): Add freuqnecy argument.
13568         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
13569         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
13570         * tree-pass.h (TODO_rebuild_frequencies): New constant.
13571         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
13572         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
13573         (save_inline_function_body): Likewise.
13574         * ipa-inline.c: inluce rtl.h
13575         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
13576         (cgraph_edge_badness): Use frequencies.
13577         (cgraph_decide_recursive_inlining): Update clonning.
13578         (cgraph_decide_inlining_of_small_function): Dump frequency.
13579         * predict.c (estimate_bb_frequencies): Export.
13580         * predict.h (estimate_bb_frequencies): Declare.
13581         * tree-inline.c (copy_bb): Watch overflows.
13582         (expand_call_inline): Update call of cgraph_create_edge.
13583         (optimize_inline_calls): Use TODO flags to update frequnecies.
13584         * passes.h: Include predict.h
13585         (init_optimization_passes): Move profile ahead.
13586         (execute_function_todo): Handle TODO_rebuild_frequencies.
13587
13588 2007-02-09  Roger Sayle  <roger@eyesopen.com>
13589
13590         * config/alpha/alpha.c (emit_insxl): Force the first operand of
13591         the insbl or inswl pattern into a register.
13592
13593 2007-02-09  Roger Sayle  <roger@eyesopen.com>
13594
13595         * config/ia64/ia64.md (bswapdi2): New define_insn.
13596
13597 2007-02-09  Richard Henderson  <rth@redhat.com>
13598
13599         * config/i386/constraints.md (Ym): New constraint.
13600         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
13601         (movdi_1_rex64): Split sse and xmm general register moves from
13602         memory move alternatives.  Use conditional register constraints.
13603         (movsf_1, movdf_integer): Likewise.
13604         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
13605         (movdf_integer_rex64): New.
13606         (pushsf_rex64): Fix output constraints.
13607         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
13608         (sse2_stored): Likewise.
13609         (sse2_storeq_rex64): New.
13610         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
13611         amd and not generic.
13612         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
13613         for optimize_size.  Remove SF/DFmode hack.
13614
13615 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13616
13617         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
13618         (bit_SSE4a): New.
13619
13620 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
13621             Richard Sandiford  <richard@codesourcery.com>
13622
13623         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
13624         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
13625         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
13626         m68k/t-mlib to tmake_file.
13627         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
13628         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
13629         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
13630         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
13631         variable is not empty, add t-$m68k_arch_family to tmake_file.
13632         Add t-mlibs to tmake_file.
13633         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
13634         * config/m68k/t-cf: New file.
13635         * config/m68k/t-m68k: Likewise.
13636         * config/m68k/t-mlibs: Likewise.
13637         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13638         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
13639         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
13640         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13641         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
13642         Delete.
13643         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
13644         (INSTALL_LIBGCC): Delete.
13645         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
13646         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13647         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
13648         (M68K_MLIB_CPU): Define.
13649         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13650         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
13651         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
13652
13653 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
13654             Richard Guenther  <rguenther@suse.de>
13655
13656         PR middle-end/23361
13657         * fold-const.c (fold_comparison): Handle obfuscated comparisons
13658         against INT_MIN/INT_MAX.
13659         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
13660         file if a loop is removed.
13661
13662 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
13663
13664         * calls.c (store_one_arg): Pass correct alignment to
13665         emit_push_insn for non-BLKmode values.
13666         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
13667         unaligned stack slot via a suitably aligned slot.
13668
13669 2007-02-08  DJ Delorie  <dj@redhat.com>
13670
13671         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
13672         warnings.
13673         (legal_subregs): Use unsigned char, make const.
13674         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
13675
13676 2007-02-08  Paul Brook  <paul@codesourcery.com>
13677
13678         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
13679         special interworking needed.
13680
13681 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
13682
13683         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
13684         conditional to __SSE2__.
13685         (Entries below should have been added to first ChangeLog
13686         entry for amdfam10 dated 2007-02-05)
13687         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
13688         defined.
13689         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
13690         defined.
13691         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
13692         defined.
13693
13694 2007-02-08  DJ Delorie  <dj@redhat.com>
13695
13696         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
13697         * config/m32c/m32c.c (legal_subregs): New.
13698         (m32c_illegal_subreg_p): New.
13699         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
13700         unsupported subregs of hard regs.
13701
13702 2007-02-08  Jan Hubicka  <jh@suse.cz>
13703
13704         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
13705         the same one; always update histograms.
13706
13707 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
13708
13709         * passes.c (init_optimization_passes): Tidy comment.
13710
13711 2007-02-08  Roger Sayle  <roger@eyesopen.com>
13712
13713         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
13714         strip zero_extend, bswap and rotates from POCOUNT's argument.
13715         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
13716         zero_extend and rotates from PARITY's argument.
13717         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
13718         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
13719         of an integer constant at compile-time.
13720
13721 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
13722
13723         PR 30562
13724         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
13725         Update all users.
13726         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
13727         users.
13728         (init_alias_info):
13729         * tree-ssa-live.c (remove_unused_locals): Do not remove
13730         TREE_ADDRESSABLE variables.
13731         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
13732         * tree-ssa-operands.c (add_virtual_operand): Remove argument
13733         FOR_CLOBBER.  Update all users.
13734         If VAR has an associated alias set, add a virtual operand for
13735         it if no alias is found to conflict with the memory reference.
13736
13737 2007-02-07  Jan Hubicka  <jh@suse.cz>
13738             Robert Kidd <rkidd@crhc.uiuc.edu>
13739
13740         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
13741
13742 2007-02-07  Ian Lance Taylor  <iant@google.com>
13743
13744         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
13745
13746 2007-02-07  Roger Sayle  <roger@eyesopen.com>
13747
13748         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
13749         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
13750         tablejumpdi, movsi_to_cr_one): Remove constraints from
13751         define_expand's match_operands.
13752
13753 2007-02-07  Roger Sayle  <roger@eyesopen.com>
13754
13755         * global.c (compute_regsets): Move declatation of "i" inside of
13756         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
13757
13758 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
13759
13760         PR c++/30703
13761         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
13762         of INDIRECT_REF <RESULT_DECL>.
13763
13764         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
13765
13766 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
13767             Kaz Kojima  <kkojima@gcc.gnu.org>
13768
13769         PR target/29746
13770         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
13771         properly.
13772         (sh_initialize_trampoline): Add parentheses to avoid a warning.
13773
13774 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
13775
13776         * doc/loop.texi: Document possibility not to perform disambiguation
13777         of loops with multiple latches.
13778         * cfgloopmanip.c (alp_enum_p): Removed.
13779         (add_loop): Handle subloops.  Use get_loop_body_with_size.
13780         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
13781         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
13782         the new forwarder block.
13783         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
13784         Handle the case latch is NULL.
13785         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
13786         when marking loop exits.
13787         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
13788         be modified.
13789         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
13790         disambiguate_loops_with_multiple_latches.
13791         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
13792         before fix_loop_structure.
13793         * cfgloop.c: Include pointer-set.h and output.h.
13794         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
13795         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
13796         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
13797         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
13798         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
13799         disambiguate_multiple_latches, get_loop_body_with_size,
13800         disambiguate_loops_with_multiple_latches): New functions.
13801         (flow_loop_dump): Dump multiple latch edges.
13802         (flow_loop_nodes_find): Handle loops with multiple latches.
13803         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
13804         (glb_enum_p): Modified.
13805         (get_loop_body): Use get_loop_body_with_size.
13806         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
13807         (AVOID_CFG_MODIFICATIONS): New constant.
13808         (disambiguate_loops_with_multiple_latches, add_loop,
13809         get_loop_body_with_size): Declare.
13810         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
13811
13812 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
13813
13814         PR inline-asm/28686
13815         * global.c (compute_regsets): New function.
13816         (global_alloc): Refactored ELIMINABLE_REGSET
13817         and NO_GLOBAL_ALLOC_REGS computation out.
13818         (rest_of_handle_global_alloc): Call compute_regsets()
13819         for non-optimizing case.
13820
13821 2007-02-06  Richard Henderson  <rth@redhat.com>
13822
13823         * config/i386/constraints.md (Y2): Rename from Y.
13824         (Yi): New constraint.
13825         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
13826         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
13827         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
13828         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
13829         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
13830         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
13831         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
13832         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
13833         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
13834         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
13835         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
13836         vec_extractv2si_1): Change Y constraints to Y2.
13837         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
13838         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
13839         Change Y constraints to Y2.
13840         (sse2_loadld): Change Y constraints to x.
13841
13842 2007-02-06  Roger Sayle  <roger@eyesopen.com>
13843
13844         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
13845         (parity<mode>2): New define_expand using rs6000_emit_parity.
13846         * config/rs6000/rs6000.c (rs6000_emit_popcount,
13847         rs6000_emit_parity): New functions.
13848         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
13849         rs6000_emit_parity): Prototype here.
13850
13851 2007-02-06  Ian Lance Taylor  <iant@google.com>
13852
13853         * lower-subreg.c (simple_move_operand): Reject CONST.
13854         (resolve_clobber): Call validate_change rather than directly
13855         assigning to XEXP (pat, 0).
13856
13857 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
13858
13859         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
13860         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
13861         (tree-cfg.o): Remove hashtab.h dependency.
13862
13863         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
13864         (struct ivopts_data): Change niters to pointer_map_t.
13865         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
13866         (niter_for_exit): Create pointer_map on demand.  Change for
13867         pointer_map API.
13868         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
13869         (free_loop_data): Destroy data->niters if created and reset field.
13870         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
13871         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
13872
13873         * tree-ssa-reassoc.c: Include pointer-set.h.
13874         (bb_rank): Change to long *.
13875         (operand_rank): Change to pointer_map_t.
13876         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
13877         (insert_operand_rank): Accept long.
13878         (operand_entry_hash, operand_entry_eq): Remove.
13879         (get_rank): Return long.  Adjust for changes above.
13880         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
13881         and operand_rank.
13882         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
13883
13884         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
13885         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
13886         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
13887         is not NULL.
13888         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
13889         directly since it cannot be NULL.
13890         (get_vi_for_tree): Rewrite for pointer_map API.
13891         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
13892         (init_alias_vars): Create vi_for_tree as pointer_map.
13893         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
13894
13895         * tree-cfg.c: Don't include hashtab.h.
13896         (edge_to_cases): Declare as pointer_map.
13897         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
13898         Delete.
13899         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
13900         (start_recording_case_labels): Create edge_to_cases as pointer_map.
13901         (end_recoding_case_labels): Cleanup edge_to_cases manually before
13902         destroying it.
13903         (record_switch_edge): Delete.
13904         (get_cases_for_edge): Adjust for pointer_map API, inline
13905         record_switch_edge (rewritten for new API), remove goto.
13906
13907 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
13908
13909         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
13910         * tree-nested.c: Include pointer-set.h.
13911         (var_map_elt, var_map_eq, var_map_hash): Delete.
13912         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
13913         to pointer_map_t's.
13914         (nesting_info_bitmap_obstack): New.
13915         (lookup_field_for_decl): Adjust for pointer_map API.
13916         (lookup_tramp_for_decl): Adjust for pointer_map API.
13917         (get_nonlocal_debug_decl): Adjust for pointer_map API.
13918         (get_local_debug_decl): Adjust for pointer_map API.
13919         (convert_nl_goto_reference): Adjust for pointer_map API.
13920         (convert_nl_goto_receiver): Adjust for pointer_map API.
13921         (create_nesting_tree): Create outside GGC space.  Create bitmap on
13922         the new obstack.  Create field_map and var_map as pointer_maps.
13923         (free_nesting_tree): Adjust for changes to create_nesting_tree.
13924         (root): Delete.
13925         (lower_nested_functions): Move root here, no need to NULL it.
13926         Initialize and release the obstack.
13927
13928 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
13929
13930         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
13931         Remove prototypes and make them non-static.
13932         (struct tree_int_map): Remove.
13933         * tree.h (struct tree_int_map): Move here, turning TO into an
13934         unsigned int.
13935         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
13936
13937         * tree.h (TREE_COMPLEXITY): Remove.
13938         (struct tree_exp): Remove complexity field.
13939         * tree.c (build1_stat): Don't set it.
13940
13941 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
13942             Victor Kaplansky  <victork@il.ibm.com>
13943
13944         * tree-vectorizer.c (vect_is_simple_use): Support induction.
13945         (vect_is_simple_reduction): Support reduction with induction as
13946         one of the operands.
13947         (vect_is_simple_iv_evolution): Fix formatting.
13948         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
13949         formatting.  Don't mark induction phis for vectorization.
13950         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
13951         * tree-vect-transform.c (get_initial_def_for_induction): New function.
13952         (vect_get_vec_def_for_operand): Support induction.
13953         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
13954         induction case.
13955         (vectorizable_reduction): Support reduction with induction as one of
13956         the operands.
13957         (vectorizable_type_demotion): Use def-type of stmt argument rather
13958         than dummy def-type.
13959
13960         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
13961         flag_tree_scev_cprop.
13962         * common.opt (tree-scev-cprop): New flag.
13963
13964         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
13965         call to vect_get_new_vect_var.
13966
13967 2007-02-06  Ira Rosen  <irar@il.ibm.com>
13968
13969         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
13970         vectype is not NULL.
13971         (vect_pattern_recog_1): Likewise.
13972
13973 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13974
13975         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
13976         (fold_negate_expr): Likewise.
13977
13978 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
13979
13980         PR debug/30189
13981         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
13982         even if cv-qualification is the same.
13983
13984 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
13985
13986         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
13987         __enable_execute_stack on completion.
13988
13989 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
13990
13991         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
13992         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
13993         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
13994         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
13995         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
13996         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
13997         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
13998         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
13999
14000 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14001
14002         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
14003         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
14004         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
14005         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
14006         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
14007         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
14008         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
14009         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
14010         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
14011         umuldi3_highpart_rex64, umulsi3_highpart_insn,
14012         umulsi3_highpart_zext, smuldi3_highpart_rex64,
14013         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
14014         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
14015         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
14016         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
14017         sqrtextenddfxf2_i387): Added amdfam10_decode.
14018
14019         * config/i386/athlon.md (athlon_idirect_amdfam10,
14020         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
14021         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
14022         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
14023         athlon_ivector_store_amdfam10): New define_insn_reservation.
14024         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
14025         amdfam10.
14026
14027 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14028
14029         * config/i386/athlon.md (athlon_call_amdfam10,
14030         athlon_pop_amdfam10, athlon_lea_amdfam10): New
14031         define_insn_reservation.
14032         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
14033         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
14034         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
14035
14036 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14037
14038         * config/i386/athlon.md (athlon_sseld_amdfam10,
14039         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
14040         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
14041
14042 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14043
14044         * config/i386/athlon.md (athlon_sseins_amdfam10): New
14045         define_insn_reservation.
14046         * config/i386/i386.md (sseins): Added sseins to define_attr type
14047         and define_attr unit.
14048         * config/i386/sse.md: Set type attribute to sseins for insertq
14049         and insertqi.
14050
14051 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14052
14053         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
14054         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
14055         ssecomi_load_amdfam10, ssecomi_amdfam10,
14056         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
14057         define_insn_reservation.
14058         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
14059
14060 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14061
14062         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
14063         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
14064         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
14065         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
14066         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
14067         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
14068         define_insn_reservation.
14069
14070         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
14071         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
14072         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
14073         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
14074         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
14075
14076 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14077
14078         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
14079         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
14080         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
14081         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
14082         athlon_ssemul_load_k8): Added amdfam10.
14083
14084 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14085
14086         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
14087         (x86_sse_unaligned_move_optimal): New variable.
14088
14089         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
14090         m_AMDFAM10.
14091         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
14092         for unaligned vector SSE double/single precision loads for AMDFAM10.
14093
14094 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14095
14096         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
14097         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
14098         Define TARGET_CPU_DEFAULT_amdfam10.
14099         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
14100         (processor_type): Add PROCESSOR_AMDFAM10.
14101
14102         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
14103         processor_type in config/i386/i386.h.
14104         Enable imul peepholes for TARGET_AMDFAM10.
14105
14106         * config.gcc: Add support for --with-cpu option for amdfam10.
14107
14108         * config/i386/i386.c (amdfam10_cost): New variable.
14109         (m_AMDFAM10): New macro.
14110         (m_ATHLON_K8_AMDFAM10): New macro.
14111         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
14112         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
14113         x86_promote_QImode, x86_integer_DFmode_moves,
14114         x86_partial_reg_dependency, x86_memory_mismatch_stall,
14115         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
14116         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
14117         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
14118         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
14119         Enable/disable for amdfam10.
14120         (override_options): Add amdfam10_cost to processor_target_table.
14121         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
14122         processor_alias_table.
14123         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
14124         (ix86_adjust_cost): Add code for amdfam10.
14125
14126 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14127
14128         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
14129         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
14130         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
14131         * config/i386/i386.h: Add builtin definition for SSE4A.
14132         * config/i386/i386.md: Add support for ABM instructions
14133         (popcnt and lzcnt).
14134         * config/i386/sse.md: Add support for SSE4A instructions
14135         (movntss, movntsd, extrq, insertq).
14136         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
14137         Add -march=amdfam10 flag.
14138         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
14139         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
14140         and amdfam10.
14141         * doc/extend.texi: Add documentation for SSE4A builtins.
14142
14143 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
14144
14145         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
14146
14147 2007-02-05  Richard Guenther  <rguenther@suse.de>
14148
14149         * tree-vectorizer.h (vectorizable_function): Add argument type
14150         argument, change return type.
14151         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
14152         * tree-vect-transform.c (vectorizable_function): Handle extra
14153         argument, return vectorized function decl.
14154         (build_vectorized_function_call): Remove.
14155         (vectorizable_call): Handle calls with result and argument types
14156         differing.  Handle loop vectorization factor correctly.
14157         * targhooks.c (default_builtin_vectorized_function): Adjust for
14158         extra argument.
14159         * targhooks.h (default_builtin_vectorized_function): Likewise.
14160         * target.h (builtin_vectorized_function): Add argument type
14161         argument.
14162         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
14163         extra argument, allow vectorizing of lrintf.
14164         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
14165         documentation of target hook.
14166
14167 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
14168
14169         PR target/30665
14170         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
14171         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
14172         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
14173
14174 2007-02-05  Roger Sayle  <roger@eyesopen.com>
14175
14176         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
14177         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
14178         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
14179         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
14180         before canonicalizing sincos to cexpi.
14181         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
14182
14183 2007-02-05  Roger Sayle  <roger@eyesopen.com>
14184
14185         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
14186         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
14187         (alpha_init_builtins): Use alpha_add_builtins to process tables.
14188
14189 2007-02-05  Roger Sayle  <roger@eyesopen.com>
14190
14191         * mips-tfile.c (initialize_init_file): Correct endianness test.
14192
14193 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
14194
14195         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
14196         the 'y' constraint.
14197
14198 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
14199
14200         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
14201         saves in a PARALLEL before the register assignments.
14202
14203 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
14204
14205         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
14206         DWARF_FRAME_RETURN_COLUMN to be a general register.
14207         * dwarf2out.c (init_return_column_size): New function, split from...
14208         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
14209         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
14210         to be nongeneral registers.
14211         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
14212         integer registers.
14213         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
14214         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
14215
14216 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
14217
14218         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
14219
14220 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
14221
14222         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
14223         (remove_path): Use can_remove_branch_p and remove_branch instead
14224         of loop_delete_branch_edge.
14225         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
14226         (tree_transform_and_unroll_loop): Remove dead branches immediately.
14227         Update profile using scale_dominated_blocks_in_loop.
14228         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
14229         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
14230         (can_remove_branch_p, remove_branch): Declare.
14231         * tree-cfg.c (tree_can_remove_branch_p): New function.
14232         (tree_cfg_hooks): Add tree_can_remove_branch_p.
14233         * cfgrtl.c (rtl_can_remove_branch_p): New function.
14234         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
14235
14236 2007-02-05  Jan Hubicka  <jh@suse.cz>
14237
14238         PR middle-end/30696
14239         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
14240         nodes in cgraph, don't remove offline copy of the function.
14241
14242 2007-02-04  Jan Hubicka  <jh@suse.cz>
14243
14244         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
14245         vectors might cause maybe_lookup_element_for_expr to be called
14246         on non-sra-candidate.
14247
14248 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
14249
14250         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
14251         config/bfin/bfin.md, config/bfin/predicates.md: Follow
14252         spelling conventions.
14253
14254 2007-02-04  Richard Guenther  <rguenther@suse.de>
14255
14256         PR middle-end/30636
14257         * fold-const.c (try_move_mult_to_index): Make sure to not
14258         overflow one dimension of a multi-dimensional array access.
14259
14260 2007-02-04  Jan Hubicka  <jh@suse.cz>
14261
14262         * passes.c (init_optimization_passes): Reindent.
14263
14264 2007-02-04  Jan Hubicka  <jh@suse.cz>
14265             Eric Botcazou  <ebotcazou@adacore.com>
14266
14267         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
14268         (execute_fixup_cfg): Break out the abnormal goto code.
14269         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
14270         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
14271         (optimize_inline_calls): Call make_nonlocal_label_edges.
14272
14273 2007-02-04  Jan Hubicka  <jh@suse.cz>
14274
14275         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
14276         true when something was changed.
14277         (rename_ssa_copies): When something was changed, do
14278         TODO_remove_unused_locals.
14279         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
14280         add TODO_remove_unused_locals when instruction was removed.
14281
14282 2007-02-04  Jan Hubicka  <jh@suse.cz>
14283
14284         * ipa-inline.c (try_inline): Improve debug output; work on already
14285         inline edges too.
14286         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
14287         call try_inline for already inlined edges too when flattening;
14288         inline also functions that make callee growth but overall unit size
14289         reduce.
14290
14291 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
14292
14293         * config/m32c/bitops.md, config/m32c/jump.md,
14294         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
14295         config/m32r/m32r.h, config/m32r/m32r.md,
14296         config/m32r/predicates.md, config/m68hc11/larith.asm,
14297         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
14298         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
14299         config/mips/mips-protos.h, config/mips/mips.c,
14300         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
14301         config/mn10300/mn10300.h, config/mn10300/predicates.md,
14302         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
14303         spelling conventions.
14304
14305         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14306         Follow spelling conventions.
14307
14308 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
14309
14310         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
14311         warn about C++0x compatibility.
14312
14313 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
14314
14315         * config/h8300/h8300.c, config/h8300/h8300.h,
14316         config/h8300/h8300.md: Follow spelling conventions.
14317
14318 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
14319
14320         PR middle-end/30667
14321         * combine.c (try_combine): Do not substitute source operand
14322         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
14323
14324 2007-02-03  Jan Hubicka  <jh@suse.cz>
14325
14326         PR gcov-profile/30650
14327         * value-prof.c (stringop_block_profile): Fix handling of size counter;
14328         do not divide by zero for never executed counters.
14329         (tree_find_values_to_profile): Fix counters.
14330         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
14331
14332 2007-02-03  Ian Lance Taylor  <iant@google.com>
14333
14334         * lower-subreg.c (simple_move_operand): New static function,
14335         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
14336         operands.
14337         (simple_move): Call simple_move_operand.
14338         (find_decomposable_subregs): Add special handling of MEMs.
14339         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
14340         meaning of return value.  If we see a hard register, test whether
14341         it can store a word_mode value.  Change all callers.
14342
14343 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14344
14345         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
14346         ftrapv insns and expanders.
14347         (subdi3): Change define_expand operand 1 to arith11_operand, and
14348         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
14349         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
14350         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
14351         respectively.
14352
14353         PR middle-end/30174
14354         * varasm.c (notice_global_symbol): Treat global objects as weak when
14355         flag_shlib is true.
14356
14357 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14358
14359         * emit-rtl.c (dconstpi): Delete.
14360         (dconstsqrt2): New.
14361         (init_emit_once): Delete dconstpi and init dconstsqrt2.
14362         * real.h (dconstpi): Delete.
14363         (dconstsqrt2): New.
14364         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
14365         (fold_builtin_hypot): Likewise.
14366
14367 2007-02-03  Tom Tromey  <tromey@redhat.com>
14368
14369         PR driver/30246
14370         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
14371         -gcoff3, -gxcoff3, -gvms3 implies -dD.
14372
14373 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
14374
14375         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
14376         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
14377         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
14378         config/rs6000/cell.md, config/rs6000/darwin.h,
14379         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
14380         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
14381         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
14382         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
14383         typos.  Follow spelling conventions.
14384         * doc/invoke.texi: Follow spelling conventions.
14385
14386 2007-02-03  Roger Sayle  <roger@eyesopen.com>
14387
14388         * simplify-rtx.c (simplify_relational_operation_1): Implement some
14389         canonicalization transformations that attempt to simplify integer
14390         constant comparisons to become comparisons against zero.
14391
14392 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14393
14394         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
14395         fabs(x)*sqrt(2).
14396         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
14397         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
14398
14399 2007-02-02  Mike Stump  <mrs@apple.com>
14400
14401         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
14402         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
14403         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
14404         generate a branch island.
14405
14406 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
14407
14408         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
14409         (xtensa_legitimate_address_p): New.
14410         (xtensa_legitimize_address): New.
14411         (xtensa_output_addr_const_extra): New.
14412         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
14413         (BASE_REG_P): New.
14414         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
14415         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
14416         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
14417         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
14418         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
14419         (xtensa_legitimize_address): New.
14420         (xtensa_output_addr_const_extra): New.
14421
14422 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
14423
14424         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
14425
14426 2007-02-02  Ian Lance Taylor  <iant@google.com>
14427
14428         * expmed.c (expand_divmod): Add comment.
14429
14430 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
14431
14432         * emit-rtl.c (renumber_insns): Remove.
14433         * flags.h: Remove the extern for flag_renumber_insns.
14434         * rtl.h: Remove the prototype for renumber_insns.
14435         * toplev.c (flag_renumber_insns): Remove.
14436
14437 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
14438
14439         Revert for x86 darwin:
14440         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14441
14442         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
14443         code before the following patch under TARGET_MACHO.
14444         (ix86_function_value_regno_p): Likewise.
14445
14446 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14447
14448         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
14449         COMPLEX_EXPR.
14450
14451 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14452
14453         PR target/29682
14454         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
14455         general or fp registers.  Add comments.
14456         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
14457
14458 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
14459
14460         * pointer-set.c (insert_aux): Only return insertion slot.
14461         (pointer_set_insert): Adjust.
14462         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
14463         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
14464         pointer_map_traverse): New.
14465         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
14466         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
14467         pointer_map_contains, pointer_map_traverse): Declare.
14468
14469 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
14470
14471         PR middle-end/30473
14472         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
14473         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
14474
14475 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14476
14477         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
14478
14479         (struct _dep): New type.
14480         (dep_t): New typedef.
14481         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
14482         (DEP_STATUS): New access macro.  The macro with the same name was
14483         renamed to DEP_LINK_STATUS.
14484         (dep_init): Declare function
14485
14486         (struct _dep_link): New type.
14487         (dep_link_t): New typedef.
14488         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
14489         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
14490         (DEP_LINK_STATUS): New macro.
14491         (debug_dep_links): New debug function.
14492
14493         (struct _deps_list): New type.
14494         (deps_list_t): New typedef.
14495         (DEPS_LIST_FIRST): New access macro.
14496         (FOR_EACH_DEP_LINK): New cycle macro.
14497         (create_deps_list, free_deps_list, delete_deps_list): Declare
14498         functions.
14499         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
14500         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
14501         (copy_deps_list_change_con): Ditto.
14502
14503         (move_dep_link): Declare function.
14504
14505         (struct _dep_node): New type.
14506         (dep_node_t): New typedef.
14507         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
14508
14509         (struct haifa_insn_data.back_deps): New field to hold backward
14510         dependencies of the insn.
14511         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
14512         to deps_list_t.
14513         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
14514         Change its type to deps_list_t.
14515         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
14516         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
14517         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
14518
14519         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
14520
14521         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
14522
14523         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
14524         all callers.
14525         (dep_cost): Declare.
14526
14527         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
14528         (ds_to_dk, dk_to_ds): New functions.
14529
14530         (init_dep_1): New static function.
14531         (init_dep): New function.
14532         (copy_dep): New static function.
14533
14534         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
14535         functions.
14536         (detach_dep_link): New static function.
14537         (move_dep_link): New function.
14538
14539         (dep_links_consistent_p, dump_dep_links): New static functions.
14540         (debug_dep_links): New debugging function.
14541
14542         (deps_obstack, dl_obstack, dn_obstack): New static variables.
14543
14544         (alloc_deps_list, init_deps_list): New static functions.
14545         (create_deps_list): New function.
14546         (clear_deps_list): New static function.
14547         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
14548         (deps_list_consistent_p, dump_deps_list): New static functions.
14549         (debug_deps_list): New function.
14550         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
14551         functions.
14552         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
14553
14554         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
14555         use new scheduler dependencies lists.
14556         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
14557         (sched_analyze): Ditto.  Initialize dependencies lists.
14558         (add_forw_dep, compute_forward_dependences): Update to use new
14559         scheduler dependencies lists.
14560
14561         (init_dependency_caches): Init deps_obstack.
14562         (free_dependency_caches): Free deps_obstack.
14563
14564         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
14565         new scheduler dependencies lists.
14566         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
14567         (add_back_forw_dep, delete_back_forw_dep): Ditto.
14568
14569         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
14570         Update to use new scheduler dependencies lists.
14571         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
14572         (debug_dependencies): Ditto.
14573         (schedule_region): Update comments.
14574
14575         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
14576         scheduler dependencies lists.
14577         (schedule_ebb): Update comments.
14578
14579         * rtl.def (DEPS_LIST): Remove.
14580
14581         * lists.c (unused_deps_list): Remove.
14582         (free_list): Update assertions.
14583
14584         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
14585         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
14586
14587         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
14588         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
14589
14590         * haifa-sched.c (comments): Update.
14591         (insn_cost1): Remove.  Inline the code into insn_cost ().
14592         (insn_cost): Update to use new scheduler dependencies lists.  Move
14593         processing of the dependency cost to dep_cost ().
14594         (dep_cost): New function.  Use it instead of insn_cost () when
14595         evaluating cost of the dependency.  Use compatible interface to
14596         interact with the target.
14597         (priority): Update to use new scheduler dependencies lists.
14598         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
14599         with greater number of insns that depend on the insn.
14600         (schedule_insn): Update to use new scheduler dependencies lists.  Add
14601         code to free backward dependencies lists.  Inline and optimize code
14602         from resolve_dep () - see PR28071.
14603         (ok_for_early_queue_removal): Update to use new scheduler dependencies
14604         lists.  Update call to targetm.sched.is_costly_dependence hook.
14605
14606         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
14607         scheduler dependencies lists.
14608
14609         (resolve_dep): Remove.  Move the logic to schedule_insn ().
14610         (init_h_i_d): Initialize dependencies lists.
14611
14612         (process_insn_depend_be_in_spec): Rename to
14613         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
14614         dependencies lists.
14615         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
14616         Update to use new scheduler dependencies lists.
14617         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
14618
14619         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
14620         new scheduler dependencies lists.
14621         (build_intra_loop_deps): Ditto.
14622
14623         * target.h (struct _dep): Declare to use in
14624         gcc_target.sched.is_costly_dependence.
14625         (struct gcc_target.sched.adjust_cost): Fix typo.
14626         (struct gcc_target.sched.is_costly_dependence): Change signature to use
14627         single dep_t parameter instead of an equivalent triad.
14628         (struct gcc_target.sched.adjust_cost_2): Remove.
14629
14630         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
14631
14632         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
14633
14634         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
14635         documentation.
14636         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
14637
14638         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
14639         (REG_DEP_TRUE): Document.
14640
14641         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
14642         Change signature to correspond to the targetm.sched.adjust_cost hook.
14643         Update use in TARGET_SCHED_ADJUST_COST_2.
14644         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
14645         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
14646         new scheduler dependencies lists.
14647         (ia64_gen_check): Ditto.
14648
14649         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
14650         dependencies lists.
14651
14652         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
14653         signature to correspond to the targetm.sched.is_costly_dependence hook.
14654         (is_costly_group): Update to use new scheduler dependencies lists.
14655
14656         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
14657         instead of INSN_COST () macro.
14658
14659 2007-02-01  Ian Lance Taylor  <iant@google.com>
14660
14661         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
14662
14663 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
14664
14665         * pa.md (tp_load): Correct mfctl instruction syntax.
14666
14667 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
14668
14669         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
14670         altivec_padding_size calculation on AIX.  Improve comment, add
14671         assert to verify that it's right.
14672
14673         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
14674         64-bit.
14675
14676 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
14677
14678         PR inline-asm/28686
14679         * global.c (global_alloc): Add mising initialization of
14680         ELIMINABLE_REGSET.
14681
14682 2007-02-01  Roger Sayle  <roger@eyesopen.com>
14683
14684         * alias.c (init_alias_analysis): Correct whitespace.
14685         * bb-reorder.c (fix_edges_for_rarely_executed_code,
14686         partition_hot_cold_basic_blocks): Likewise.
14687         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
14688         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
14689         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
14690         fold_builtin_snprintf_chk, fold_builtin_printf,
14691         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
14692         do_mpfr_arg3, do_mpfr_sincos): Likewise.
14693         * cfgcleanup.c (cleanup_cfg): Likewise.
14694         * cfgexpand.c (tree_expand_cfg): Likewise.
14695         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
14696         * function.c (get_next_funcdef_no): Likewise.
14697         * gengtype.c (main): Likewise.
14698         * genmodes.c (main): Likewise.
14699         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
14700         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
14701         * ifcvt.c (noce_emit_move_insn): Likewise.
14702         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
14703         Likewise.
14704         * stor-layout.c (get_best_mode): Likewise.
14705         * tree-ssa-loop-niter.c (get_val_for): Likewise.
14706         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
14707         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
14708         perform_var_substitution, solve_graph): Likewise.
14709         * tree-vrp.c (vrp_finalize): Likewise.
14710
14711 2007-02-01  Ian Lance Taylor  <iant@google.com>
14712
14713         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
14714         high part of a paradoxical subreg, return a constant zero.
14715
14716 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
14717
14718         * toplev.c (lang_dependent_init): Call init_set_costs.
14719         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
14720
14721 2007-02-01  Richard Guenther  <rguenther@suse.de>
14722
14723         PR middle-end/30656
14724         * fold-const.c (fold_negate_expr): Allow negating a
14725         constant if overflow does not change.
14726
14727 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14728
14729         * doc/c-tree.texi (Expression trees): Improve markup.
14730         * doc/tm.texi (Register Classes, Addressing Modes)
14731         (Floating Point): Fix spacing after abbreviations.  Fix some
14732         typos.
14733
14734 2007-02-01  Ben Elliston  <bje@au.ibm.com>
14735
14736         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
14737         * doc/contrib.texi: Likewise.
14738         * doc/install.texi: Likewise.
14739
14740 2007-01-31  Richard Henderson  <rth@redhat.com>
14741             Ian Lance Taylor  <iant@google.com>
14742
14743         * lower-subreg.c: New file.
14744         * rtl.def (CONCATN): Define.
14745         * passes.c (init_optimization_passes): Add pass_lower_subreg and
14746         pass_lower_subreg2.
14747         * emit-rtl.c (update_reg_offset): New static function, broken out
14748         of gen_rtx_REG_offset.
14749         (gen_rtx_REG_offset): Call update_reg_offset.
14750         (gen_reg_rtx_offset): New function.
14751         * regclass.c: Revert patch of 2006-03-05, restoring
14752         reg_scan_update.
14753         (clear_reg_info_regno): New function.
14754         * dwarf2out.c (concatn_loc_descriptor): New static function.
14755         (loc_descriptor): Handle CONCATN.
14756         * common.opt (fsplit_wide_types): New option.
14757         * opts.c (decode_options): Set flag_split_wide_types when
14758         optimizing.
14759         * timevar.def (TV_LOWER_SUBREG): Define.
14760         * rtl.h (gen_reg_rtx_offset): Declare.
14761         (reg_scan_update): Declare.
14762         * regs.h (clear_reg_info_regno): Declare.
14763         * tree-pass.h (pass_lower_subreg): Declare.
14764         (pass_lower_subreg2): Declare.
14765         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
14766         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
14767         -fsplit-wide-types.
14768         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
14769         * Makefile.in (OBJS-common): Add lower-subreg.o.
14770         (lower-subreg.o): New target.
14771
14772 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
14773
14774         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
14775
14776 2007-01-31  Anatoly Sokolov <aesok@post.ru>
14777
14778         PR target/19087
14779         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
14780
14781 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14782
14783         PR middle-end/29335
14784         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
14785
14786 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
14787
14788         * cfgloop.h: Include vec-prim.h.
14789         (enum li_flags): Remove LI_ONLY_OLD.
14790         (loop_iterator): Changed.
14791         (fel_next, fel_init): Iterate over loop tree.
14792         (FOR_EACH_LOOP_BREAK): New macro.
14793         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
14794         FOR_EACH_LOOP.
14795         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
14796         * modulo-sched.c (sms_schedule): Ditto.
14797         * tree-vectorizer.c (vectorize_loops): Ditto.
14798         * doc/loop.texi: Update information on loop numbering and behavior of
14799         FOR_EACH_LOOP wrto new loops.
14800         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
14801         add_to_evolution_1): Test nestedness of loops instead of comparing
14802         their numbers.
14803         * tree-chrec.c (chrec_fold_plus_poly_poly,
14804         chrec_fold_multiply_poly_poly, chrec_evaluate,
14805         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
14806         reset_evolution_in_loop): Ditto.
14807         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
14808
14809 2007-01-31  Dirk Mueller  <dmueller@suse.de>
14810
14811         * c-common.c (warn_about_parentheses): Separate warning about
14812         un-parenthized sequence of comparison operators from the one
14813         which is supposed to warn about x <= y <= z.
14814
14815 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
14816
14817         * optabs.h (enum optab_index): Add new OTI_isinf.
14818         (isinf_optab): Define corresponding macro.
14819         * optabs.c (init_optabs): Initialize isinf_optab.
14820         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
14821         patterns.
14822         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
14823         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
14824         using isinf_optab.
14825         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
14826         expand_builtin_interclass_mathfn.
14827         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
14828         * config/i386/i386.md (UNSPEC_FXAM): New constant.
14829         (fxam<mode>2_i387): New insn pattern.
14830         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
14831         built-in functions as x87 inline asm.
14832
14833 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
14834
14835         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
14836
14837 2007-01-30  Eric Christopher  <echristo@apple.com>
14838
14839         * config.gcc: Add geode.
14840
14841 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
14842
14843         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
14844         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
14845         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
14846         value-prof.c: Fix comment typos.
14847
14848 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14849
14850         PR c++/24745
14851         * doc/invoke.texi (Wpointer-arith): Document warning.
14852
14853 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
14854
14855         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
14856         the list of discrepancies from the draft TR.
14857
14858 2007-01-30  Dirk Mueller  <dmueller@suse.de>
14859
14860         PR c++/30601
14861         * doc/invoke.texi (-Wreturn-type): Update description to
14862         match new behavior.
14863
14864 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
14865
14866         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
14867
14868 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
14869
14870         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
14871         to handle optabs that operate on floating point input argument and
14872         output to integer output.
14873         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
14874         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
14875         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
14876         expand_builtin_interclass_mathfn ().
14877         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
14878         (ilogbsi2): Remove.
14879         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
14880         ilogbl built-in functions as x87 intrinsics.
14881
14882 2007-01-30  Richard Guenther  <rguenther@suse.de>
14883
14884         PR middle-end/27657
14885         * dwarf2out.c (reference_to_unused): Query varpool if the
14886         variable was output.
14887
14888 2007-01-30  Richard Guenther  <rguenther@suse.de>
14889
14890         PR middle-end/30313
14891         * passes.c (execute_one_pass): Reset in_gimple_form to not
14892         confuse non-unit-at-a-time mode.
14893
14894 2007-01-29  Roger Sayle  <roger@eyesopen.com>
14895             Richard Guenther  <rguenther@suse.de>
14896
14897         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
14898         avoid undefined behaviour on overflow.  Use force_fit_type_double
14899         to construct the constant with the specified TREE_OVERFLOW.
14900
14901 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
14902
14903         * config/dfp-bit.c: Add parameterized support for fp exceptions.
14904         * config/dfp-bit.h: Ditto.
14905
14906 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14907
14908         * c-decl.c (pop_scope): Replace warnings with call to
14909         warn_for_unused_label.
14910         * c-common.h (warn_for_unused_label): Declare.
14911         * c-common.c (warn_for_unused_label): Define.
14912
14913 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14914
14915         * tree-optimize.c (update_inlined_to_pointers): Delete unused
14916         function.
14917
14918 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
14919
14920         * Makefile.in (USER_H): Remove decfloat.h.
14921         * ginclude/decfloat.h: Delete, moving contents to ...
14922         * ginclude/float.h: Add support for decimal floating point,
14923         guarded by __STDC_WANT_DEC_FP__.
14924
14925 2007-01-29  Mike Stump  <mrs@apple.com>
14926
14927         * doc/gccint.texi (Top): Rename Loop Representation to Loop
14928         Analysis and Representation to resolve case insensitive conflict.
14929         * doc/loop.texi (Loop Analysis and Representation): Likewise.
14930
14931 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
14932
14933         * tree.h (struct tree_memory_tag): Add aliases member.
14934         (MTAG_ALIASES): New macro.
14935         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
14936         (add_may_alias): Remove pointer-set. Update for may_aliases being
14937         a bitmap.
14938         (mark_aliases_call_clobbered): Update for may_aliases being a
14939         bitmap.
14940         (compute_tag_properties): Ditto.
14941         (create_partition_for): Ditto.
14942         (compute_memory_partitions): Ditto.
14943         (dump_may_aliases_for): Ditto.
14944         (is_aliased_with): Ditto.
14945         (add_may_alias_for_new_tag): Ditto.
14946         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
14947         (compute_is_aliased): New function.
14948         (compute_may_aliases): Call compute_is_aliased).
14949         (init_alias_info): Initialize alias_bitmap_obstack.
14950         (union_alias_set_into): New function.
14951         (compute_flow_sensitive_aliasing): Use union_aliases_into.
14952         (have_common_aliases_p): Rewrite to take two bitmaps and use
14953         intersection.
14954         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
14955         Update for bitmaps.
14956         (finalize_ref_all_pointers): Update for add_may_alias changes.
14957         (new_type_alias): Ditto.
14958         * tree-flow-inline.h (may_aliases): Return a bitmap.
14959         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
14960         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
14961         may_aliases being a bitmap.
14962         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
14963         may_aliases now returns a bitmap.
14964         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
14965         being a bitmap.
14966         * tree-ssa-operands.c (add_virtual_operand): Update for
14967         may_aliases being a bitmap.
14968
14969 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
14970
14971         PR tree-optimization/30630
14972         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
14973         variable as changed.
14974
14975 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
14976
14977         PR c++/28266
14978         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
14979         expanded only once even if an error occurs.
14980
14981 2007-01-29  Ben Elliston  <bje@au.ibm.com>
14982
14983         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
14984         (__gcov_average_profiler): Likewise.
14985         (__gcov_ior_profiler): Likewise.
14986         (__gcov_merge_ior): Likewise.
14987
14988 2007-01-28  Jan Hubicka  <jh@suse.cz>
14989
14990         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
14991         * value-prof.c (stringop_block_profile): Likewise.
14992
14993 2007-01-28  Jan Hubicka  <jh@suse.cz>
14994
14995         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
14996         variant handling histograms; add wrapper.
14997         (clear_storage_via_libcall): Export.
14998         (emit_block_move_hints): Break out from ...; add histograms.
14999         (emit_block_move): ... this one.
15000         (clear_storage_hints): Break out from ...; add histograms.
15001         (clear_storage): ... this one.
15002         (set_storage_via_memset): Handle histogram.
15003         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
15004         (clear_storage_hints, clear_storage_via_libcall): Declare.
15005         (set_storage_via_setmem): Update prototype.
15006         * doc/md.texi (movmem, setmem): Document new arguments.
15007
15008         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
15009         new histograms.
15010         (stringop_block_profile): New global function.
15011         (tree_stringops_values_to_profile): Profile block size and alignment.
15012         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
15013         HIST_TYPE_IOR.
15014         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
15015         (stringop_block_profile): Declare.
15016         * builtins.c: Include value-prof.h.
15017         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
15018         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
15019         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
15020         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
15021         * profile.c (instrument_values): Add new counters.
15022         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
15023         calls.
15024         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
15025         (tree_init_edge_profiler): Build new profilers.
15026         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
15027         (pass_tree_profile): Add dump.
15028         (tree_profile_hooks): Update.
15029         * Makefile.in (LIBGCOV): Add new constants.
15030         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
15031         __gcov_ior_profiler): New.
15032         * i386.md (movmem/setmem expanders): Add new optional arguments.
15033
15034 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
15035
15036         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
15037
15038 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
15039
15040         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
15041         (tree_unswitch_single_loop): Pass eni_size_weights to
15042         tree_num_loop_insns.
15043         * tree-ssa-loop-manip.c: Include tree-inline.h.
15044         (can_unroll_loop_p): Pass eni_size_weights to
15045         tree_num_loop_insns.
15046         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
15047         Pass eni_size_weights to estimate_num_insns.
15048         * tree.h (init_inline_once): Export.
15049         * toplev.c (backend_init): Call init_inline_once.
15050         * cgraphunit.c (cgraph_process_new_functions,
15051         cgraph_analyze_function): Pass eni_inlining_weights to
15052         estimate_num_insns.
15053         * ipa-inline.c (compute_inline_parameters): Ditto.
15054         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
15055         to estimate_num_insns.
15056         (try_unroll_loop_completely): Pass eni_size_weights to
15057         tree_num_loop_insns.
15058         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
15059         ot estimate_num_insns.
15060         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
15061         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
15062         * tree-inline.c (eni_inlining_weights, eni_size_weights,
15063         eni_time_weights): New variables.
15064         (init_inline_once): Initialize them.
15065         (struct eni_data): Mew.
15066         (estimate_num_insns_1, estimate_num_insns): Use weights.
15067         * tree-inline.h (struct eni_weights_d): New.
15068         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
15069         (estimate_num_insns): Declaration changed.
15070         * cfgloop.h (tree_num_loop_insns): Declaration changed.
15071         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
15072         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
15073
15074 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
15075
15076         * tree-data-ref.c (conflict_fn): Assert that the number of affine
15077         relations in the conflict function is valid.
15078
15079 2007-01-27  Ian Lance Taylor  <iant@google.com>
15080
15081         * common.opt: Add fstrict-overflow.
15082         * opts.c (decode_options): Set flag_strict_overflow if -O2.
15083         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
15084         (TYPE_OVERFLOW_UNDEFINED): Define.
15085         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
15086         Replace all uses.
15087         * tree.h (TYPE_TRAP_SIGNED): Don't define.
15088         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
15089         (fold_negate_expr): Likewise.
15090         (make_range): Likewise.
15091         (extract_muldiv_1): Likewise.
15092         (maybe_canonicalize_comparison): Likewise.
15093         (fold_comparison): Likewise.
15094         (fold_binary): Likewise.
15095         (tree_expr_nonnegative_p): Likewise.
15096         (tree_expr_nonzero_p): Likewise.
15097         * tree-vrp.c (compare_values): Likewise.
15098         (extract_range_from_binary_expr): Likewise.
15099         (extract_range_from_unary_expr): Likewise.
15100         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
15101         Likewise.
15102         (nowrap_type_p): Likewise.
15103         * tree-scalar-evolution.c (simple_iv): Likewise.
15104         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
15105         (build_range_check): Likewise.
15106         (extract_muldiv_1): Likewise.
15107         (fold_comparison): Likewise.
15108         * tree-vrp.c (vrp_int_const_binop): Likewise.
15109         (extract_range_from_unary_expr): Likewise.
15110         * convert.c (convert_to_integer): Likewise.
15111         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
15112         (fold_comparison): Likewise.
15113         (fold_binary): Likewise.
15114         * optabs.c (optab_for_tree_code): Likewise.
15115         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
15116         * simplify-rtx.c (simplify_const_relational_operation): Check
15117         flag_strict_overflow and flag_trapv.
15118         (simplify_const_relational_operation): Likewise.
15119         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
15120         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
15121         -fstrict-overflow.
15122
15123 2007-01-27  Roger Sayle  <roger@eyesopen.com>
15124
15125         * tree.c (tree_fold_gcd): Delete.
15126         * tree.h (tree_fold_gcd): Remove prototype.
15127         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
15128         test whether one constant integer is a multiple of another.  Instead
15129         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
15130         * fold-const.c (multiple_of_p):  We've determined both TOP and
15131         BOTTOM are integer constants so we can call int_const_binop directly
15132         instead of the more generic const_binop.
15133
15134 2007-01-27  Roger Sayle  <roger@eyesopen.com>
15135
15136         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
15137         1*X check that the constant hasn't overflowed, to preserve the
15138         TREE_OVERFLOW bit.
15139         (round_up): Provide an efficient implementation when rouding-up an
15140         INTEGER_CST to a power-of-two.
15141
15142 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15143
15144         * doc/sourcebuild.texi: Add comma for clarity.
15145         * doc/extend.texi: Fix some typos.
15146         * doc/passes.texi: Likewise.
15147         * doc/cppinternals.texi: Likewise.
15148         * doc/c-tree.texi: Likewise.
15149         * doc/tree-ssa.texi: Likewise.
15150         * doc/install.texi: Likewise.
15151
15152 2007-01-27  Jan Hubicka  <jh@suse.cz>
15153
15154         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
15155         (pass_sra): Do not require alias information.
15156         * passes.c (init_optimization_passes): Add SRA
15157
15158 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
15159
15160         * tracer.c (rest_of_handle_tracer): We already cleaned
15161         up the CFG in tracer() so don't do it here again.
15162         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
15163         cleanup_cfg here, either.  And don't call renumber_insns.
15164
15165         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
15166         and BB_HEAD are in the insn stream here.  Instead make sure
15167         that BB_INSN is valid on all insns.  Also, do check here that
15168         there are no pending branch predictions...
15169         (rtl_verify_flow_info): ...instead of doing it here.  Checks
15170         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
15171         here.
15172
15173 2007-01-26  Roger Sayle  <roger@eyesopen.com>
15174
15175         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
15176         function to simplify/factorize operand order canonicalization.
15177         (ix86_fixup_binary_operands): Reorganize using the above function.
15178         (ix86_binary_operator_ok): Likewise.
15179
15180 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
15181
15182         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
15183         file scope from optimize_attrs.
15184         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
15185         up search.
15186         (optimize_attrs): Clear insn_code_values after freeing it.
15187
15188 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
15189
15190         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
15191         a parts.base assignment.
15192
15193 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
15194
15195         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
15196         (compute_subscript_distance, initialize_data_dependence_relation,
15197         finalize_ddr_dependent, analyze_ziv_subscript,
15198         analyze_siv_subscript_cst_affine,
15199         compute_overlap_steps_for_affine_univar,
15200         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
15201         analyze_siv_subscript, analyze_miv_subscript,
15202         analyze_overlapping_iterations, subscript_dependence_tester_1,
15203         compute_self_dependence, free_dependence_relation): Work
15204         with affine_fn instead of chrecs.
15205         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
15206         common_affine_function, affine_function_base,
15207         affine_function_constant_p, affine_fn_op, affine_fn_plus,
15208         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
15209         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
15210         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
15211         (all_chrecs_equal_p): Removed.
15212         * tree-data-ref.h (affine_fn, conflict_function): New types.
15213         (struct subscript): Change type of conflicting_iterations_in_a
15214         and conflicting_iterations_in_b.
15215
15216 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
15217
15218         PR other/30182
15219         * config/pa/pa.h (TARGET_HPUX_11): New.
15220         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
15221         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
15222
15223 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
15224         Richard Guenther  <rguenther@suse.de>
15225
15226         * tree-ssa-structalias.c (solve_graph): Handle case
15227         we merged the variable to another.
15228
15229 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15230
15231         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
15232         functions.
15233
15234         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
15235         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
15236
15237 2007-01-25  DJ Delorie  <dj@redhat.com>
15238
15239         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
15240         allow changes to modes which don't fit in those registers.
15241
15242         * reload1.c (choose_reload_regs): Check for invalid subregs before
15243         computing their locations, not after.
15244
15245 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
15246
15247         PR 25127
15248         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
15249         save Altivec registers in an eh_return function.
15250         (compute_vrsave_mask): Likewise.
15251         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
15252         for saving Altivec registers.
15253         (rs6000_emit_prologue): Don't allocate stack twice in
15254         eh_return function.  Correct expected value of altivec_save_offset
15255         when using save_world.  Describe save of R0 to stack when using
15256         save_world.  Describe stack pointer adjustment when using
15257         save_world.  Remove duplicated eh_return parameter register saving.
15258         Update sp_offset variable after save_world.
15259         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
15260         darwin-world.asm.
15261         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
15262         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
15263         implies Altivec.
15264
15265 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
15266
15267         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
15268
15269 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
15270
15271         PR other/30182
15272         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
15273         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
15274
15275 2007-01-25  Richard Guenther  <rguenther@suse.de>
15276
15277         * doc/invoke.texi (-Wcoverage-mismatch): Document.
15278         * common.opt (-Wcoverage-mismatch): New warning option.
15279         * coverage.c (get_coverage_counts): Ignore coverage mismatch
15280         if -Wcoverage-mismatch is given.
15281
15282 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
15283
15284         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
15285         (ipcp_driver): Change to static definition.
15286         Add dumping of the ifunctions.
15287         (constant_val_insert): Remove unused parameter. Support for SSA.
15288         (ipcp_propagate_const): Support for SSA.
15289         (ipcp_profile_bb_print): Print only analyzed nodes.
15290         (ipcp_replace_map_create): Remove support for Fortran constant
15291         for now.
15292         * ipa-prop.c (ipa_method_modify_stmt,
15293         ipa_callsite_compute_param): Support for SSA.
15294         * ipa-prop.h (ipcp_driver): Remove declaration.
15295         (IS_VALID_TREE_MAP_INDEX): Add define.
15296
15297 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
15298
15299         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
15300
15301 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15302
15303         PR middle-end/30447
15304         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
15305         constant argument to cabs and do it without checking for
15306         -funsafe-math-optimizations.
15307
15308 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
15309
15310         * c-common.h (RID_FIRST_CXX0X): New.
15311         (RID_LAST_CXX0X): New.
15312         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
15313         by -Wall.
15314         * c.opt (Wc++0x-compat): New.
15315         * doc/invoke.texi (-Wc++0x-compat): Document.
15316
15317 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15318
15319         * builtins.c (fold_builtin_carg): New.
15320         (fold_builtin_1): Use it.
15321
15322 2007-01-24  Jan Hubicka  <jh@suse.cz>
15323
15324         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
15325
15326         * ipa-inline.c (initial_insns, max_insns): Delete.
15327         (compute_max_insns): New function.
15328         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
15329         of insns as base for code growth.
15330         (cgraph_decide_inlining): Make initial_insns local; do not compute
15331         max_insns.
15332         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
15333         * doc/invoke.texi (inline-unit-growth): Update docs.
15334
15335 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
15336
15337         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
15338         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
15339         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
15340         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
15341         for CPUs that have PTA_CX16 set.
15342
15343         PR middle-end/27416
15344         * gimplify.c (omp_check_private): New function.
15345         (gimplify_scan_omp_clauses): Use it for
15346         firstprivate/lastprivate/reduction.
15347
15348         PR middle-end/30494
15349         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
15350         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
15351
15352         PR middle-end/30421
15353         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
15354         If lower_lastprivate_clauses emits some statements, append them
15355         to dlist rather than body_p and to body_p append an initializer.
15356         (lower_omp_for): Adjust caller.
15357
15358 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
15359
15360         * target.h (globalize_decl_name): New.
15361         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
15362         * output.h (default_globalize_decl_name): New.
15363         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
15364         globalize_label.
15365         (globalize_decl): Ditto.
15366         (default_globalize_decl_name): New.
15367         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
15368         (ia64_handle_version_id_attribute): New.
15369         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
15370         (ia64_asm_output_external): Use globalize_decl_name instead
15371         of globalize_label.
15372         * doc/extend.texi (version_id): New pragma.
15373         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
15374
15375 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15376
15377         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
15378         _uleb128_t and _Unwind_SWord with _sleb128_t.
15379         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
15380         uw_frame_state_for, uw_update_context_1): Likewise.
15381         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
15382         * unwind-pe.h (read_uleb128, read_sleb128,
15383         read_encoded_value_with_base): Likewise.
15384         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
15385
15386 2007-01-24  Richard Guenther  <rguenther@suse.de>
15387
15388         * builtins.c (expand_builtin_cexpi): Get the fndecl
15389         for cexp in the correct way.
15390
15391 2007-01-24  Jan Hubicka  <jh@suse.cz>
15392
15393         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
15394
15395 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15396
15397         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
15398         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
15399         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
15400         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
15401         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
15402         __SIZEOF_PTRDIFF_T__.
15403         * doc/cpp.texi: Documentation for the new builtin macros added.
15404
15405 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
15406
15407         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
15408         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
15409         instead of operands[2] to avoid access past the end of array.
15410
15411 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
15412
15413         * reload1.c (emit_reload_insns): Pass the reload register
15414         for a non-spill output reload through forget_old_reloads_1.
15415
15416 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
15417
15418         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15419         _SOFT_DOUBLE if doubles use software floating-point.
15420         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
15421         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
15422         * config/rs6000/darwin-ldouble.c: Also compile functions for
15423         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
15424         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
15425         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
15426         commented-out long double override.
15427         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
15428         * config/rs6000/eabispe.h: Likewise.
15429         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
15430         long double for non-SPE.
15431         (rs6000_handle_option): Likewise.
15432         (invalid_e500_subreg): Disallow more subregs involding DImode,
15433         DFmode, TImode or TFmode.
15434         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
15435         E500 double.
15436         (legitimate_lo_sum_address_p): Also check for TFmode for E500
15437         double.
15438         (rs6000_legitimize_address): Also handle TFmode for E500 double.
15439         (rs6000_legitimize_reload_address): Also handle TFmode for E500
15440         double.
15441         (rs6000_legitimate_address): Also check for TFmode for E500
15442         double.
15443         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
15444         (spe_build_register_parallel): Handle TFmode and TCmode.
15445         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
15446         double.
15447         (function_arg): Handle TFmode and TCmode for E500 double.
15448         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
15449         in general.
15450         (print_operand): Handle TFmode and TImode for %y.
15451         (rs6000_generate_compare): Handle TFmode comparisons for E500
15452         double.
15453         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
15454         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
15455         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
15456         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
15457         TFmode for E500 double.
15458         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
15459         (floatsidf2): Enable for E500 double.
15460         (movtf_softfloat): Use rs6000_nonimmediate_operand.
15461         (extenddftf2): Change to extenddftf2_fprs.
15462         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
15463         depending on TARGET_E500_DOUBLE.
15464         (extendsftf2): Enable for E500 double.
15465         (trunctfdf2): Enable for E500 double.
15466         (trunctfsf2): Change to trunctfsf2_fprs.
15467         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
15468         depending on TARGET_E500_DOUBLE.
15469         (floatsitf2): Enable for E500 double.
15470         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
15471         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
15472         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
15473         (negtf2): Change to negtf2_internal.
15474         (negtf2): New expander.
15475         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
15476         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
15477         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
15478         (movdi_internal32): Use rs6000_nonimmediate_operand.
15479         (unnamed splitter): Likewise.
15480         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
15481         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
15482         (SPE64TF, DITI): New mode macros.
15483         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
15484         modes.
15485         (frob_tf_ti): New.
15486         (frob_<mode>_di_2): New.
15487         (frob_tf_di_8_2): New.
15488         (frob_di_df): Change to frob_di_<mode>; allow more modes.
15489         (frob_ti_tf): New.
15490         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
15491         more modes.
15492         (frob_ti_<mode>_8_2): New.
15493         (frob_ti_tf_2): New.
15494         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
15495         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
15496         TFmode.
15497         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
15498         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
15499         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
15500         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
15501         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
15502         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
15503         tsttflt_gp): New.
15504
15505 2007-01-23  Ian Lance Taylor  <iant@google.com>
15506
15507         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
15508         insn-*.o first.
15509         (OBJS-archive): Reformat, alphabetize.
15510         (OBJS): Change out_object_file to OBJS-md.
15511
15512 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
15513
15514         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
15515         JUMP_P and CALL_P predicates where applicable.
15516         * config/i386/i386.c: Ditto.
15517         * config/i386/i386.md: Ditto.
15518         * config/i386/mmx.md: Ditto.
15519         * config/i386/predicates.md: Ditto.
15520
15521 2007-01-22  Andreas Schwab  <schwab@suse.de>
15522
15523         * config/m68k/m68k.h: Fix comment.
15524
15525 2007-01-22  Jan Hubicka  <jh@suse.cz>
15526
15527         * passes.c (init_optimization_passes): Do not rerun
15528         pass_early_warn_uninitialized.
15529
15530 2007-01-22  Richard Guenther  <rguenther@suse.de>
15531
15532         PR tree-optimization/30038
15533         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
15534         function.
15535         (execute_cse_sincos_1): Likewise.
15536         (execute_cse_sincos): Likewise.
15537         (gate_cse_sincos): Likewise.
15538         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
15539         the cexpi() canonicalization of sincos().
15540         * tree-pass.h (pass_cse_sincos): Declare.
15541         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
15542
15543 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
15544
15545         PR rtl-optimization/29329
15546         * combine.c (replaced_rhs_insn): Rename to i2mod.
15547         (replaced_rhs_value): Rename to i2mod_new_rhs.
15548         (i2mod_old_rhs): New global variable.
15549         (combine_instructions): Adjust for above change.  Save a copy of
15550         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
15551         note are substituted in the second instruction.
15552         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
15553         ditch the note if it pertains to the second eliminated register
15554         and this register is mentioned in i2mod_old_rhs.
15555
15556         Revert:
15557         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15558
15559         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
15560         the insn to which the note was originally attached.
15561
15562 2007-01-21  Jan Hubicka  <jh@suse.cz>
15563
15564         * ipa-inline.c (inlining_mode): Comment, move up.
15565         (cgraph_decide_inlining_incrementally): Do not perform inlining
15566         itself; fix handling of flattening of self recursive functions.
15567         (cgraph_find_cycles): Remove.
15568         (cgraph_flatten_node): Remove.
15569         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
15570         (try_inline): New function.
15571         (cgraph_early_inlining): Update call of
15572         cgraph_decide_inlining_incrementally.  Apply inlining here.
15573         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
15574
15575 2007-01-21  Dirk Mueller  <dmueller@suse.de>
15576
15577         PR bootstrap/30511
15578         * tree-vrp.c (check_array_bounds): do not warn
15579         about ADDR_EXPR's of ARRAY_REF's which are immediately
15580         used in binary expressions.
15581
15582 2007-01-21  Ira Rosen  <irar@il.ibm.com>
15583
15584         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
15585         read_write_dep and macros for its access.
15586         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
15587         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
15588         argument, call vect_check_interleaving for every independent pair of
15589         data-refs. Mark loads that access the same memory location as a store
15590         in the loop.
15591         (vect_check_dependences): Remove.
15592         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
15593         call, fix the call to vect_analyze_data_ref_dependence.
15594         (vect_analyze_data_ref_access): For statements that access the same
15595         data-ref, check that they are not stores; for loads, check that there
15596         is no store that access the same location.
15597
15598 2007-01-20  Roger Sayle  <roger@eyesopen.com>
15599             Joseph Myers  <joseph@codesourcery.com>
15600
15601         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
15602         (-fdump-rtl-stack): Likewise.
15603         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
15604         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
15605         (-mpt-fixed): Use @minus{} for minus sign.
15606         (Using Precompiled Headers): Fix under/overfull hbox.
15607
15608 2007-01-20  Jan Hubicka  <jh@suse.cz>
15609
15610         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
15611         place within annotation.
15612
15613 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15614
15615         * pa.c (output_move_double): Change array size of xoperands to 4.
15616
15617 2007-01-20  Jan Hubicka  <jh@suse.cz>
15618
15619         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
15620         as temporary.
15621
15622 2007-01-19  Ian Lance Taylor  <iant@google.com>
15623
15624         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
15625         constant to unsigned HOST_WIDE_INT before negating.
15626
15627 2007-01-19  Ian Lance Taylor  <iant@google.com>
15628
15629         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
15630         to unsigned.
15631         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
15632         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
15633         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
15634         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
15635         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
15636         (realloc_vdef, realloc_vuse): Change second parameter to
15637         unsigned.
15638         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
15639         fields to unsigned.
15640         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
15641         unsigned. Change x and lim locals to unsigned.
15642         (realloc_vdef, realloc_vuse): Change num_elem parameter to
15643         unsigned.
15644         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
15645         (copy_virtual_operands): Change i and n locals to unsigned.
15646
15647 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15648
15649         PR middle-end/29335
15650         * builtins.c (fold_builtin_1): Handle builtin fdim.
15651
15652 2007-01-20  Jan Hubicka  <jh@suse.cz>
15653
15654         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
15655         * tree-ssa-structalias.c (compute_points_to_sets): Do call
15656         init_alias_heapvars.
15657         (init_alias_heapvars): Initialize only when not already initialized.
15658         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
15659
15660 2007-01-19  Roger Sayle  <roger@eyesopen.com>
15661
15662         * common.opt (fsigned-zeros): New command line option.
15663         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
15664         of flag_unsafe_math_optimizations.
15665         * opts.c (set_fast_math_flags): The -ffast-math command line option
15666         implies -fno-signed-zeros.
15667         (fast_math_flags_set_p): Likewise.
15668
15669         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
15670         the documentation of -ffast-math appropriately.  Wrap long lines.
15671
15672 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
15673
15674         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
15675         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
15676
15677 2007-01-19  Tomas Bily  <tbily@suse.cz>
15678
15679         * cgraphunit.c (cgraph_finalize_function): Updating of pid
15680         * tree-profile.c:
15681         (tree_init_ic_make_global_vars): New function
15682         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
15683         (tree_gen_ic_profiler): New function
15684         (tree_gen_ic_func_profiler): New function
15685         (tree_profiling): Added calling of tree_gen_ic_func_profiler
15686         (tree_profile_hooks): Added hook for indirec/virtual calls
15687         * value-prof.c (tree_find_values_to_profile): New case for
15688         indirect calls
15689         (tree_values_to_profile): Call for determining indirect/virtual
15690         counters
15691         (tree_indirect_call_to_profile): New function
15692         (tree_ic_transform): New function
15693         (tree_ic): New function
15694         (find_func_by_pid): New function
15695         (init_pid_map): New function
15696         (tree_value_profile_transformations): Added check for
15697         indirect/virtual call transformation
15698         * value-prof.h (enum hist_type): New counter type for
15699         indirect/virtual calls
15700         (profile_hooks): Added new hook for profiling indirect/virtual
15701         calls
15702         * profile.c (instrument_values): New case for indirect/virtual
15703         call added
15704         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
15705         (GCOV_COUNTER_V_INDIR): New counter type
15706         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
15707         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
15708         call added
15709         * cgraph.c: Definition of cgraph_max_pid
15710         (cgraph_create_node): Default init of pid attribute
15711         * cgraph.h: Declaration of cgraph_max_pid
15712         (struct cgraph_node): Added pid attribute
15713         * libgcov.c (__gcov_indirect_call_profiler): New function
15714         (__gcov_one_value_profiler_body): New function
15715         (__gcov_one_value_profiler): Body was moved to
15716         __gcov_one_value_profiler_body and calls it
15717
15718 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
15719
15720         * doc/gty.texi (Options): Document the mark_hook option to GTY.
15721         * gengtype.c (write_types_data, write_func_for_structure,
15722         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
15723         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
15724         (walk_type, write_func_for_structure): Generate the mark_hook if
15725         needed.
15726
15727 2007-01-19  Jan Hubicka  <jh@suse.cz>
15728
15729         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
15730         'early' argument take inlining mode argument specifying whether to
15731         inline for size/speeed or all functions; add support for flattening;
15732         improve dumpting.
15733         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
15734
15735 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15736
15737         PR c++/17947
15738         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
15739         the name of the declared identifier.
15740
15741 2007-01-19  Dirk Mueller  <dmueller@suse.de>
15742
15743         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
15744         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
15745         duplicate evaluation.
15746
15747 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
15748
15749         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
15750         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
15751         to XFMode, use acosxf2 and truncate result to requested mode.
15752         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
15753         (asin<mode>2): Similarly, with asin expanders.
15754         (*fscalexf4_i387): Rename from *fscalexf4.
15755         (expNcorexf3): New expander.
15756         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
15757         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
15758         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
15759         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
15760         patterns for SSE math.
15761         (exp10<mode>2): Similarly, with exp10 expanders.
15762         (exp2<mode>2): Similarly, with exp2 expanders.
15763         (expm1<mode>2): Similarly, with expm1 expanders.
15764         (ldexp<mode>3): Similarly, with ldexp expanders.
15765         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
15766         Use gen_truncxf<mode>2_i387_noop to truncate result.
15767
15768 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15769
15770         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
15771         for ColdFire targets.
15772
15773 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
15774             Richard Sandiford  <richard@codesourcery.com>
15775
15776         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
15777         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
15778         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
15779         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
15780         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
15781         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
15782
15783 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15784
15785         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
15786         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
15787         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
15788         (*adddi_dilshr32_cf): New pattern.
15789         (adddi3, subdi3): Remove first alternatives.
15790
15791 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15792
15793         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
15794         implemented using move.l, do not use its cc result for floating-point
15795         comparisons.
15796
15797 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15798
15799         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
15800         from accepting 's' constraints if flag_pic.
15801
15802 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15803
15804         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
15805         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
15806         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
15807         condition from TARGET_68881 to TARGET_HARD_FLOAT.
15808
15809 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
15810
15811         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
15812         ColdFire alternatives.
15813         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
15814         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
15815         architectures that support ff1 instruction.
15816
15817 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15818             Julian Brown  <julian@codesourcery.com>
15819
15820         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
15821         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
15822         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
15823         Add commentary.
15824
15825 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15826
15827         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
15828         and return a bool.
15829         (output_move_const_into_data_reg, output_move_simode_const): Delete.
15830         * config/m68k/m68k.c (const_method, const_int_cost): Take a
15831         HOST_WIDE_INT instead of an rtx.
15832         (m68k_rtx_costs): Update call accordingly.
15833         (output_move_const_into_data_reg): Likewise.  Fix formatting.
15834         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
15835         Return a bool.
15836         (output_move_simode_const): Update calls after above changes.
15837         Rework to use automatic variables and predicates like MEM_P.
15838         * config/m68k/m68k.md (pushexthisi_const): Update call to
15839         valid_mov3q_const.
15840
15841 2007-01-19  Dirk Mueller  <dmueller@suse.de>
15842
15843         * tree-ssa-alias.c (perform_var_substitution): Fix typo
15844         in dump_flags test.
15845
15846 2007-01-19  Richard Guenther  <rguenther@suse.de>
15847
15848         * builtins.c (expand_builtin_cexpi): Fall back to expanding
15849         via cexp in case sincos is not available.
15850
15851 2007-01-19  Richard Guenther  <rguenther@suse.de>
15852
15853         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
15854         * defaults.h (TARGET_HAS_SINCOS): Default to off.
15855         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
15856         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
15857         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
15858         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
15859         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
15860         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
15861
15862 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
15863
15864         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
15865         New insn patterns.
15866         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
15867         (atan2xf3): Directly generate RTL pattern.
15868         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
15869         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
15870         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
15871         disable patterns for SSE math.
15872         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
15873         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
15874         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
15875         disable patterns for SSE math.
15876
15877 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
15878
15879         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
15880
15881 2007-01-18  Roger Sayle  <roger@eyesopen.com>
15882
15883         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
15884         VIEW_CONVERT_EXPR to the same type as it's operand.
15885
15886 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
15887
15888         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
15889         configured for long double 128.
15890
15891 2007-01-18  Mike Stump  <mrs@apple.com>
15892
15893         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
15894         error.
15895
15896 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
15897
15898         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
15899         type correct.
15900
15901 2007-01-18  Jan Hubicka  <jh@suse.cz>
15902
15903         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
15904         greater than NUM_VOP_FREE_BUCKETS.
15905
15906 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
15907
15908         * tree-ssa-structalias.c: Update comments.
15909         (ptabitmap_obstack): Removed.
15910         (pta_obstack): New.
15911         (oldpta_obstack): Ditto.
15912         (stats): Add a few members.
15913         (struct variable_info): Remove node, complex, address_taken, and
15914         indirect_target members. Add oldsolution member.
15915         (new_var_info): Do not initialize removed members.
15916         (constraint_expr_type): Remove INCLUDES.
15917         (constraint_graph): Add size, implicit_preds, rep,
15918         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
15919         (FIRST_REF_NODE): New macro.
15920         (LAST_REF_NODE): Ditto.
15921         (FIRST_ADDR_NODE): Ditto.
15922         (find): New function.
15923         (unite): Ditto.
15924         (dump_constraint): Do not handle INCLUDES.
15925         (insert_into_complex): Do not insert duplicate constraints.
15926         (condense_varmap_nodes): Renamed and rewritten into ...
15927         (merge_node_constraints): This. Also fix bug in handling of
15928         offseted copy constraints.
15929         (clear_edges_for_node): No longer need to deal with preds at all,
15930         or removing associated preds/succs.
15931         (merge_graph_nodes): Deal with indirect_cycles.
15932         Don't deal with predecessors.
15933         (add_implicit_graph_edge): New function.
15934         (add_pred_graph_edge): Ditto.
15935         (add_graph_edge): Don't deal with predecessors.
15936         (build_constraint_graph): Removed.
15937         (build_pred_graph): New function.
15938         (build_succ_graph): Ditto.
15939         (struct scc_info): Removed in_component. Added roots, dfs, and
15940         node_mapping. Remove visited_index, unification_queue.
15941         (scc_visit): Deal with union-find we do now.
15942         Deal with cycles with REF nodes.
15943         (collapse_nodes): Renamed and rewritten to ...
15944         (unify_nodes): This.
15945         (process_unification_queue): Removed.
15946         (topo_visit): Cleanup
15947         (do_da_constraint): Use find.
15948         (do_sd_constraint): Ditto.
15949         (do_ds_constraint): Ditto.
15950         (do_complex_constraint): Ditto.
15951         (init_scc_info): Update for removed and added members.
15952         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
15953         (find_indirect_cycles): This.
15954         (equivalence_class): New variable.
15955         (label_visit): New function.
15956         (perform_variable_substitution): Rewritten.
15957         (free_var_substitution_info): New function.
15958         (find_equivalent_node): Ditto.
15959         (move_complex_constraints): Ditto.
15960         (eliminate_indirect_cycles): Ditto.
15961         (solve_graph): Only propagate changed bits.
15962         Use indirect cycle elimination.
15963         Use find.
15964         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
15965         (tree_id_eq): Renamed to ...
15966         (tree_vi_eq): This. Update for member change
15967         (insert_id_for_tree): Renamed and rewritten to ...
15968         (insert_vi_for_tree): This.
15969         (lookup_id_for_tree): Renamed and rewritten to ...
15970         (lookup_vi_for_tree): This.
15971         (get_id_for_tree): Renamed and rewritten to ...
15972         (get_vi_for_tree): Ditto.
15973         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
15974         (process_constraint): Don't handle INCLUDES.
15975         Remove special ADDRESSOF case.
15976         (find_func_aliases): Rewrite to use vi functions instead of id
15977         ones.
15978         (create_function_info_for): Ditto.
15979         (create_variable_info_for): Ditto.
15980         (intra_create_variable_infos): Ditto.
15981         (merge_smts_into): Ditto.
15982         (find_what_p_points_to): Ditto.
15983         (init_base_vars): Ditto.
15984         (init_alias_vars): Ditto.
15985         (remove_preds_and_fake_succs): New function.
15986         (dump_sa_points_to_info): Dump new stats.
15987         (dump_solution_for_var): Use find.
15988         (set_used_smts): Fix formatting.
15989         (compute_points_to_sets): Updated for new functions.
15990         (ipa_pta_execute): Ditto.
15991
15992 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
15993             Richard Sandiford  <richard@codesourcery.com>
15994
15995         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
15996         parallels.
15997         * calls.c (expand_call): If the return value is a PARALLEL,
15998         extract its first member.
15999         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
16000         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
16001         use FUNCTION_EXTRA_EPILOGUE.
16002         (m68k_function_value): Return a PARALLEL if the return value
16003         is of a pointer type.
16004         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
16005         (FUNCTION_EXTRA_EPILOGUE): Remove.
16006         * config/m68k/m68k.md (D0_REG): New constant.
16007
16008 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16009
16010         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
16011         output a NOP for empty epilogues.
16012
16013 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16014
16015         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
16016         before function.  Extend register save check to include all
16017         registers, not just integer ones.
16018
16019 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16020
16021         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
16022         (m68k_use_return_insn): ...this.
16023         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
16024         * config/m68k/m68k.c (use_return_insn): Rename to...
16025         (m68k_use_return_insn): ...this.
16026         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
16027         of USE_RETURN_INSN.
16028
16029 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16030
16031         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
16032         nearest even, fix denormal rounding overflow.
16033
16034 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16035
16036         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
16037         f%$smove and f%$move.
16038         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
16039         (extendsfdf2_cf): Use fdmove instead of f%&move.
16040         (truncdfsf2_cf): Use fsmove instead of f%$smove.
16041         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
16042
16043 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16044
16045         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
16046         GPR<-GPR moves.
16047
16048 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16049
16050         * real.h (real_format): Add a canonical_nan_lsbs_set field.
16051         (coldfire_single_format): Declare.
16052         (coldfire_double_format): Likewise.
16053         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
16054         of qnan_msb_set to determine the lower bits of a canonical
16055         NaN significand.
16056         (encode_ieee_double): Likewise.
16057         (encode_ieee_quad): Likewise.
16058         (ieee_single_format): Initialize canonical_nan_lsbs_set.
16059         (mips_single_format): Likewise.
16060         (ieee_double_format): Likewise.
16061         (mips_double_format): Likewise.
16062         (ieee_extended_motorola_format): Likewise.
16063         (ieee_extended_intel_96_format): Likewise.
16064         (ieee_extended_intel_128_format): Likewise.
16065         (ieee_extended_intel_96_round_53_format): Likewise.
16066         (ibm_extended_format): Likewise.
16067         (mips_extended_format): Likewise.
16068         (ieee_quad_format): Likewise.
16069         (mips_quad_format): Likewise.
16070         (vax_f_format): Likewise.
16071         (vax_d_format): Likewise.
16072         (vax_g_format): Likewise.
16073         (i370_single_format): Likewise.
16074         (i370_double_format): Likewise.
16075         (decimal_single_format): Likewise.
16076         (decimal_double_format): Likewise.
16077         (decimal_quad_format): Likewise.
16078         (c4x_single_format): Likewise.
16079         (c4x_extended_format): Likewise.
16080         (real_internal_format): Likewise.
16081         (coldfire_single_format): New real_format.
16082         (coldfire_double_format): Likewise.
16083         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
16084         canonical_nan_lsbs_set.
16085         (pdp11_d_format): Likewise.
16086         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
16087         if TARGET_COLDFIRE_CPU.
16088
16089 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16090
16091         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
16092         (output_call, m68k_legitimize_call_address): Declare.
16093         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
16094         parenthesees.  Add support for a 'W' constraint.
16095         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
16096         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
16097         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
16098         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
16099         variables.
16100         (override_options): Initialize them.  Do not set flag_no_function_cse
16101         for TARGET_ID_SHARED_LIBRARY.
16102         (m68k_output_pic_call): Delete.
16103         (m68k_legitimize_call_address): New function.
16104         (print_operand): Remove the %o prefix.  Handle the %p prefix.
16105         (output_call): New function.
16106         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
16107         target address from the GOT if symbolic jumps are not allowed.
16108         * config/m68k/m68k.md (call, general_operand): Do not set
16109         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
16110         Merge separate flag_pic and !flag_pic define_insns into...
16111         (*call, *call_value): ...these new patterns.  Match the address
16112         rather than the containing MEM and require it to be a call_operand.
16113         Use output_call to generate the asm template.
16114         * config/m68k/predicates.md (const_call_operand): New predicate.
16115         (call_operand): Likewise.
16116
16117 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16118
16119         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
16120         (STACK_GROWS_DOWNWARD): Define to 1.
16121         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
16122         comments, emphasizing that these values are only defaults.
16123         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
16124         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
16125
16126 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16127
16128         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
16129
16130 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16131             Richard Sandiford  <richard@codesourcery.com>
16132
16133         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
16134         (FP_REGNO_P): New macros.
16135         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
16136         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
16137         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
16138         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
16139
16140 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16141
16142         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
16143         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
16144         to $tmake_file.
16145         * config/m68k/t-floatlib: New file, extracting common code from...
16146         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
16147         * config/m68k/t-uclinux: Here.
16148         * config/m68k/fpgnulib.c: Do not compile extendeed precision
16149         routines on ColdFire targets.
16150
16151 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16152
16153         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
16154         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
16155         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
16156         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
16157         explicitly set MOTOROLA to 1.
16158         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
16159
16160 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16161             Nathan Sidwell  <nathan@codesourcery.com>
16162
16163         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
16164         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
16165         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
16166         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
16167         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
16168         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
16169         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
16170         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
16171         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
16172         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
16173         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
16174         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
16175         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
16176         (DBX_REGISTER_NUMBER): Delete.
16177         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
16178         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
16179         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
16180
16181 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16182
16183         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
16184         * config/flat.h: New file.
16185         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
16186         OBJECT_FORMAT_FLAT.
16187         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
16188         indirect references for -msep-data or -mid-shared-library.
16189         Do not use PC-relative code addresses either.
16190         * config/m68k/m68k.c (override_options): Restrict -fPIC error
16191         to -mpcrel.
16192         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
16193         for shared libraries and crt1.o for executables.  Use crti.o and
16194         crtbegin.o.
16195         (ENDFILE_SPEC): Use crtend.o and crtn.o.
16196         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
16197         Do not add -elf2flt or -shared-lib-id options here.
16198         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
16199         Pass -shared-lib-id if -mid-shared-library, taking the library
16200         identifier from -mshared-library-id if given, otherwise
16201         defaulting to 0.
16202         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
16203         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
16204         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
16205         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
16206         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
16207         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
16208         and crtend.o.
16209         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
16210         jump sequence for ISA A and ISA A+.
16211         (PICJUMP): Likewise.
16212
16213 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16214
16215         * config.gcc (m68k-*-uclinux*): Base the port on the common
16216         and m68k GNU/Linux files rather than on the generic ELF ones.
16217         * config/m68k/uclinux.h (TARGET_VERSION): Override.
16218         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
16219
16220 2007-01-18  Julian Brown  <julian@codesourcery.com>
16221             Richard Sandiford  <richard@codesourcery.com>
16222
16223         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
16224         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
16225         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
16226         before redefining.
16227         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
16228         80 unconditionally.
16229         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
16230
16231 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16232
16233         * doc/install.texi: Document m68k-uclinuxoldabi.
16234         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
16235         * config/m68k/uclinux-oldabi.h: New file, copied from
16236         config/m68k/uclinux.h.
16237
16238 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16239
16240         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
16241         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
16242         (m32r_compute_frame_size): Use unsigned for regno.
16243         (m32r_reload_lr): Use gen_frame_mem.
16244         (pop): New.
16245         (m32r_output_function_epilogue): Don't output the function epilogue
16246         textually here.
16247         (m32r_expand_epilogue): New.
16248         (direct_return): Return false if the function has the interrupt
16249         attribute.
16250         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
16251         * config/m32r/m32r.md (epilogue): New expander.
16252         (return_lr, return_rte): New insns.
16253         (return): Make it expander.
16254         (return_normal): New expander.
16255
16256 2007-01-18  Josh Conner  <jconner@apple.com>
16257
16258         PR target/30485
16259         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
16260         support for UNLE, UNLT, UNGE, and UNGT.
16261
16262 2007-01-18  Jan Hubicka  <jh@suse.cz>
16263
16264         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
16265         * tree-tailcall (add_virtual_phis): Likewise.
16266         (optimize_tail_call): Return TODOs.
16267         (execute_tail_calls): Return TODOs.
16268         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
16269         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
16270         changed.
16271         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
16272         Cleanup cfg using TODO.
16273         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
16274         * passes.c (execute_function_todo): When cleanup did something, remove
16275         unused locals.
16276         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
16277         (make_edges): Don't cleanup_cfg.
16278
16279 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
16280
16281         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
16282         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
16283         operate on the top of stack.
16284         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
16285         register handling of instructions that output to the second
16286         stack slot.
16287         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
16288         (move_for_stack_reg): Special-case check for dead destination
16289         stack slot for constant load of 1.0 inside UNSPEC_TAN.
16290
16291         * config/i386/i386.md (UNSPEC_TAN): New constant.
16292         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
16293         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
16294         to correctly model move of constant 1.0 to top stack slot.
16295         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
16296         (unnamed peephole2 pattern): Remove corresponding peephole2
16297         pattern that optimizes tan insn and loading of constant 1.0.
16298         (tanxf2): Use fptanxf4_i387.
16299         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
16300         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
16301         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
16302         disable patterns for SSE math.
16303         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
16304         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
16305
16306 2007-01-18  Dirk Mueller  <dmueller@suse.de>
16307             Richard Guenther <rguenther@suse.de>
16308
16309         PR diagnostic/8268
16310         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
16311         * common.opt (Warray-bounds): Add new warning option.
16312         * c-opts.c (c_common_handle_option): Define -Warray-bounds
16313         if -Wall is given.
16314         * Makefile.in: make tree-vrp.o depend on toplev.h
16315         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
16316         is enabled.
16317         (check_array_refs, check_array_bounds, check_array_ref): New.
16318
16319 2007-01-18  Jan Hubicka  <jh@suse.cz>
16320
16321         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
16322         (execute_ssa_ccp): Return flags conditionally.
16323         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
16324         changed.
16325         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
16326
16327 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
16328
16329         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
16330         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
16331
16332         * Makefile.c (GTFILES): Add cfglayout.h.
16333         * gengtype.c (open_base_files): Likewise.
16334         * cfglayout.c (cfg_layout_function_footer,
16335         cfg_layout_function_header) Reindent to make gengtype happy.
16336         * cfglayout.h (cfg_layout_function_footer,
16337         cfg_layout_function_header): Add GTY(()) marker.
16338
16339         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
16340
16341 2007-01-18  Ben Elliston  <bje@au.ibm.com>
16342
16343         * genautomata.c (write_automata): Include xstrerror output in the
16344         error message if writing the DFA description file fails.
16345
16346 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16347
16348         * config/mips/mips-protos.h (mips_output_external): Make it
16349         return void.
16350         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
16351         * config/mips/mips.c (irix_output_external_libcall): Likewise.
16352         (extern_list): Likewise.
16353         (extern_head): Likewise.
16354         (TARGET_ASM_FILE_END): Likewise.
16355         (mips_file_end): Likewise.
16356         (mips_output_external): Rewritten.
16357
16358 2007-01-18  Ben Elliston  <bje@au.ibm.com>
16359
16360         * genpreds.c (write_insn_preds_c): Only write out the function
16361         body for regclass_for_constraint if we have register constraints.
16362
16363 2007-01-17  Tom Tromey  <tromey@redhat.com>
16364
16365         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
16366         * doc/install.texi (Testing): Use sourceware.org.
16367         (Binaries): Likewise.
16368         (Specific): Likewise.
16369         * doc/contrib.texi (Contributors): Use sourceware.org.
16370
16371 2007-01-17  Anatoly Sokolov <aesok@post.ru>
16372
16373         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
16374         (AVR_ENHANCED): Rename to ...
16375         (AVR_HAVE_MUL): ... new.
16376         (avr_enhanced_p): Rename to ...
16377         (avr_have_mul_p): ... new.
16378         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
16379         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
16380         * config/avr/avr.c (avr_enhanced_p): Rename to ...
16381         (avr_have_mul_p): ... new.
16382         (base_arch_s): Rename 'enhanced' to 'have_mul'.
16383         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
16384         'avr_enhanced_p' and 'enhanced'.
16385         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
16386         AVR_HAVE_MUL instead of AVR_ENHANCED.
16387         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
16388         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
16389         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
16390         instead of AVR_ENHANCED.
16391         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
16392         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
16393         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
16394
16395 2007-01-17  Ian Lance Taylor  <iant@google.com>
16396
16397         * vec.h (VEC_reserve_exact): Define.
16398         (vec_gc_p_reserve_exact): Declare.
16399         (vec_gc_o_reserve_exact): Declare.
16400         (vec_heap_p_reserve_exact): Declare.
16401         (vec_heap_o_reserve_exact): Declare.
16402         (VEC_OP (T,A,reserve_exact)): New static inline function, three
16403         versions.
16404         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
16405         negative parameter.
16406         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
16407         (VEC_OP (T,A,copy)) [all versions]: Likewise.
16408         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
16409         * vec.c (calculate_allocation): Add exact parameter.  Change all
16410         callers.
16411         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
16412         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
16413         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
16414         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
16415         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
16416         (vec_heap_p_reserve_exact): New function.
16417         (vec_heap_o_reserve_exact): New function.
16418
16419 2007-01-17  Jan Hubicka  <jh@suse.cz>
16420
16421         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
16422
16423 2007-01-17  Eric Christopher  <echristo@apple.com>
16424
16425         * config.gcc: Support core2 processor.
16426
16427 2007-01-16  Jan Hubicka  <jh@suse.cz>
16428
16429         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
16430         the names, just unlink the chain so we don't crash on dangling pointers
16431         to dead SSA names.
16432
16433 2007-01-16  Jan Hubicka  <jh@suse.cz>
16434
16435         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
16436         * tree-pass.h: Reorder to make IPA passes appear toegher.
16437         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
16438         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
16439         parameters, do not call early inliner.
16440         * ipa-inline.c: Update comments.  Include tree-flow.h
16441         (cgraph_decide_inlining): Do not compute inlining parameters.
16442         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
16443         be called with function context set up.
16444         (pass_ipa_inline): Remove unreachable functions before pass.
16445         (cgraph_early_inlining): Simplify assuming to be called from the
16446         PM as local pass.
16447         (pass_early_inline): New pass.
16448         (cgraph_gate_ipa_early_inlining): New gate.
16449         (pass_ipa_early_inline): Turn into simple wrapper.
16450         (compute_inline_parameters): New function.
16451         (gate_inline_passes): New gate.
16452         (pass_inline_parameters): New pass.
16453         (apply_inline): Move here from tree-optimize.c
16454         (pass_apply_inline): New pass.
16455         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
16456         transforming.
16457         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
16458         doing them by hand.
16459         (tree_function_versioning): Do not allocate dummy struct function.
16460         * tree-inline.h (optimize_inline_calls): Update prototype.
16461         * tree-optimize.c (execute_fixup_cfg): Export.
16462         (pass_fixup_cfg): Remove
16463         (tree_rest_of_compilation): Do not apply inlines.
16464         * tree-flow.h (execute_fixup_cfg): Declare.
16465         * Makefile.in (gt-passes.c): New.
16466         * passes.c: Include gt-passes.h
16467         (init_optimization_passes): New passes.
16468         (nnodes, order): New static vars.
16469         (do_per_function_toporder): New function.
16470         (execute_one_pass): Dump current pass here.
16471         (execute_ipa_pass_list): Don't dump current pass here.
16472
16473 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
16474
16475         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
16476         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
16477
16478 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
16479
16480         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
16481         (strong_alias): Define.
16482         (__gcc_qmul): Provide non-FMA for soft-float.
16483         (__gcc_qdiv): Same.
16484         (__gcc_qneg): New.
16485         (__gcc_qeq): New.
16486         (__gcc_qle): New.
16487         (__gcc_qge): New.
16488         (__gcc_qunord): New.
16489         (__gcc_stoq): New.
16490         (__gcc_dtoq): New.
16491         (__gcc_qtos): New.
16492         (__gcc_qtod): New.
16493         (__gcc_qtoi): New.
16494         (__gcc_qtou): New.
16495         (__gcc_itoq): New.
16496         (__gcc_utoq): New.
16497         (fmsub): New.
16498         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
16499         soft-float functions.
16500         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
16501         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
16502         about long double soft float.
16503
16504 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
16505             Tehila Meyzels  <tehila@il.ibm.com>
16506
16507         * tree-vectorizer.h (is_pattern_stmt_p): New.
16508         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
16509         formatting (tabs instead of spaces). Cleanup and clarify setting
16510         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
16511         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
16512         (vectorizable_type_demotion): Check that types are integral.
16513         (vectorizable_type_promotion): Likewise.
16514         (vectorizable_store): Fix typo.  Eliminate new-line at end of
16515         comments.
16516
16517 2007-01-16  Jan Hubicka  <jh@suse.cz>
16518
16519         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
16520         cgraph edges too.
16521
16522 2007-01-15  Eric Christopher  <echristo@apple.com>
16523
16524         * ifcvt.c: Include vec.h, vecprim.h.
16525         (check_cond_move_block): New argument regs.
16526         Reorganize. Add registers used to regs.
16527         (cond_move_process_if_block): Use regs set above as
16528         loop bounds.
16529
16530 2007-01-15  Eric Christopher  <echristo@apple.com>
16531
16532         * config/darwin.h: Update copyright.
16533         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
16534         (LINK_COMMAND_SPEC): Add -u.
16535         (LINK_SPEC): Fix umbrella for above.
16536
16537 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
16538
16539         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
16540         glibc CVS.
16541
16542 2007-01-15  Tom Tromey  <tromey@redhat.com>
16543
16544         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
16545         * doc/install.texi (Testing): Don't mention jacks.
16546         (Configuration): Document --enable-java-maintainer-mode.  Move
16547         --with-java-home to libgcj-specific section.  Document
16548         --with-ecj-jar.
16549         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
16550
16551 2007-01-15  Jan Hubicka  <jh@suse.cz>
16552
16553         * tree-ssa-dce.c (DCE_TODOs): New.
16554         (propagate_necessity): Return if something changed.
16555         (eliminate_unnecessary_stmts): Likewise.
16556         (perform_tree_ssa_dce): Return TODO flags when needed.
16557         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
16558
16559 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
16560
16561         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
16562         (fyl2x_extend<mode>xf3_i387): New insn pattern.
16563         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
16564         patterns using X87MODEF12 mode macro.  Extend operand 1
16565         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
16566         (log10<mode>2): Ditto.
16567         (log2<mode>2): Ditto.
16568         (log1p<mode>2): Ditto.
16569         (logb<mode>2): Ditto.
16570         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
16571         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
16572         (*fxtractxf3_i387): Rename from *fxtractxf3.
16573         (fxtract_extend<mode>xf3_i387): New insn pattern.
16574         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
16575         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
16576         and gen_fyl2xxf3_i387().
16577
16578 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
16579
16580         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
16581         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
16582         get_loop_exit_edges.  Changed return type to bool.
16583         * cfgloop.h (fix_loop_placement): Declaration removed.
16584
16585 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
16586
16587         * param.h (MIN_VECT_LOOP_BOUND): New.
16588         * params.def (MIN_VECT_LOOP_BOUND): New.
16589         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
16590         argument - minimum threshold for number of iterations.
16591         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
16592         argument to declaration.
16593         * tree-vect-analyze.c (vect_analyze_operations): Check value of
16594         MIN_VECT_LOOP_BOUND.
16595         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
16596         slpeel_tree_peel_loop_to_edge with additional argument.
16597         (vect_do_peeling_for_alignment): Likewise.
16598         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
16599
16600 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
16601
16602         PR target/30413
16603         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
16604         operands of size 1.
16605
16606 2007-01-14  Jan Hubicka  <jh@suse.cz>
16607
16608         * tree-dfa.c (remove_referenced_var): New function.
16609         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
16610         prune referenced vars list too.
16611         * tree-flow.h (remove_referenced_var): Declare.
16612
16613 2007-01-14  Jan Hubicka  <jh@suse.cz>
16614
16615         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
16616         separately.
16617         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
16618         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
16619         * except.h (verify_eh_throw_table_statements): Kill prototype.
16620         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
16621         into call exrepssions.
16622         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
16623         eh trhow verifier.
16624         * tree-cfg.c: Include pointer-set.h.
16625         (verify_node_sharing): Work on pointer set.
16626         (verify_eh_throw_stmt_node): New.
16627         (verify_stmts): Use pointers sets, verify throw_stmt.
16628
16629 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
16630
16631         * ipa-reference.c (analyze_function): Consider also addresses taken
16632         in phi nodes.
16633
16634 2007-01-12  Roger Sayle  <roger@eyesopen.com>
16635
16636         * c-typeck.c (null_pointer_constant_p): Replace use of
16637         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
16638         (build_c_cast): Likewise.
16639
16640 2007-01-12  Roger Sayle  <roger@eyesopen.com>
16641
16642         * tree.h (force_fit_type_double): Remove unused final argument.
16643         * c-common.c (constant_expression_warning): Replace use of
16644         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
16645         (convert_and_check): Likewise.
16646         (shorten_compare): Update call to force_fit_type_double.
16647         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
16648         * convert.c (convert_to_pointer): Update call to
16649         force_fit_type_double.
16650         * fold-const.c (force_fit_type_double): Remove overflowed_const
16651         argument.
16652         (int_const_binop, fold_convert_const_int_from_int,
16653         fold_convert_const_int_from_real, fold_div_compare,
16654         fold_sign_changed_comparison, fold_unary, fold_negate_const,
16655         fold_abs_const, fold_not_const): Remove the final argument from
16656         calls to force_fit_type_double.
16657
16658 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16659
16660         * configure.ac: Set insn to "nop" for spu-*-* also.
16661         * configure: Regenerate.
16662
16663 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
16664
16665         * builtins.def : Add BUILT_IN_FREE.
16666
16667 2007-01-12  Jan Hubicka  <jh@suse.cz>
16668
16669         PR tree-optimization/30443
16670         * tree-inline.c (tree_function_versioning): Do not optimize when
16671         cloning for inlining.
16672
16673 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
16674
16675         * doc/loop.texi: Document recording of loop exits.
16676         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
16677         (update_single_exits_after_duplication,
16678         update_single_exit_for_duplicated_loop,
16679         update_single_exit_for_duplicated_loops): Removed.
16680         (duplicate_loop_to_header_edge): Do not call
16681         update_single_exits_after_duplication and
16682         update_single_exit_for_duplicated_loops.
16683         (loop_version): Do not update single_exit information.
16684         (fix_loop_structure): Use record_loop_exits instead of
16685         mark_single_exit_loops.
16686         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
16687         the lists of loop exits.
16688         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
16689         split_edge, merge_blocks): Update the lists of loop exits.
16690         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
16691         loop_optimizer_init.
16692         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
16693         of mark_single_exit_loops.
16694         (loop_optimizer_finalize): Call release_recorded_exits.
16695         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
16696         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
16697         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
16698         update single exit information.
16699         * lambda-code.c (perfect_nestify): Ditto.
16700         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
16701         (mark_single_exit_loops): Removed.
16702         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
16703         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
16704         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
16705         functions.
16706         (get_loop_exit_edges, single_exit): Use recorded exit lists.
16707         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
16708         (verify_loop_structure): Verify consistency of the exit lists.
16709         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
16710         (set_single_exit): Removed.
16711         * cfgloop.h (struct loop_exit): New function.
16712         (struct loop): single_exit_ field replaced by exits field.
16713         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
16714         (struct loops): Added exits hash.
16715         (mark_single_exit_loops, set_single_exit): Declaration removed.
16716         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
16717
16718 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16719
16720         * doc/invoke.texi: Avoid use of @headitem.
16721
16722 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16723
16724         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
16725
16726 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16727
16728         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
16729         list of targets.
16730
16731 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
16732             Richard Sandiford  <richard@codesourcery.com>
16733
16734         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
16735         * config/m68k/m68k.opt: Resort options.
16736         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
16737
16738 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
16739             Richard Sandiford  <richard@codesourcery.com>
16740
16741         * doc/invoke.texi: Document the macros that are defined by
16742         m68k's -mtune and -mhard-float options.
16743         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
16744         (m68k_cpp_cpu_family): Likewise.
16745         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
16746         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
16747         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
16748         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
16749         (m68k_cpp_cpu_family): Likewise.
16750
16751 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16752
16753         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
16754         macros besides mc68000 as tuning macros.  Use a switch statement
16755         to set them and mcpu32.
16756
16757 2007-01-12  Julian Brown  <julian@codesourcery.com>
16758
16759         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
16760         (TARGET_68040_ONLY): Rename to...
16761         (TARGET_68040): ...this.
16762         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
16763         * config/m68k/m68k.md: Likewise.
16764
16765 2007-01-12  Julian Brown  <julian@codesourcery.com>
16766             Nathan Sidwell  <nathan@codesourcery.com>
16767             Richard Sandiford  <richard@codesourcery.com>
16768
16769         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
16770         the -mcpu= argument associated with the --with-cpu setting.
16771         Define M68K_DEFAULT_TUNE to the default -mtune= option,
16772         if different from the one implied by the -mcpu setting.
16773         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
16774         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
16775         * doc/invoke.texi: Mention ColdFire in the introduction to the
16776         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
16777         -mno-div and -mhard-float options.  Make -m68881 a synonym for
16778         -mhard-float.  Document the previously-undocumented -m5206e,
16779         -m528x, -m5307 and -m5407 options.  Tweak the existing option
16780         documentation for consistency.
16781         * doc/install.texi: Mention new --with-cpu arguments.
16782         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
16783         default CPU if neither -mcpu nor -march are specified.
16784         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
16785         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
16786         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
16787         using m68k_tune to decide between families that implement the
16788         same ISA.  Use m68k_tune to set __mcfv4e__.
16789         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
16790         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
16791         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
16792         (FL_ISA_C, FL_ISA_MMU): New macros.
16793         (MASK_COLDFIRE): Delete.
16794         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
16795         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
16796         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
16797         (TARGET_HARD_FLOAT): Do not define here.
16798         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
16799         (TUNE_68000): New macro.
16800         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
16801         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
16802         (TUNE_CFV2): Redefine in terms of m68k_tune.
16803         (uarch_type, target_device, fpu_type): New enums.
16804         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
16805         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
16806         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
16807         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
16808         (FL_FOR_isa_c): New macros.
16809         (m68k_isa): New enum.
16810         (m68k_target_selection): New structure.
16811         (all_devices, all_isas, all_microarchs): New tables.
16812         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
16813         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
16814         (MASK_ALL_CPU_BITS): Delete.
16815         (m68k_find_selection): New function.
16816         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
16817         Map the legacy target options to a combination of the new ones.
16818         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
16819         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
16820         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
16821         settings.
16822         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
16823         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
16824         properties.
16825         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
16826         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
16827         * config/m68k/m68k-devices.def: New file.
16828
16829 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16830             Nathan Sidwell  <nathan@codesourcery.com>
16831
16832         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
16833         (SUBTARGET_EXTRA_SPECS): New macros.
16834         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
16835         use %(asm_cpu_spec) instead.
16836         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
16837         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16838         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16839         (EXTRA_SPECS): Rename to...
16840         (SUBTARGET_EXTRA_SPECS): ...this.
16841
16842 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
16843             Richard Sandiford  <richard@codesourcery.com>
16844             Julian Brown  <julian@codesourcery.com>
16845
16846         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
16847         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
16848         to the configuration's default CPU.
16849         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
16850         Remove default masks.
16851         (m680[012]0-*-*): Set the default with_cpu to the first part of
16852         the target name.
16853         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
16854         (m68k*-*-linux): Extend the --with-cpu handling to...
16855         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
16856         and m68010.  Don't set target_cpu_default2.
16857         * doc/install.texi: Document --with-cpu for m68k.
16858         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
16859         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
16860         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
16861         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
16862         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
16863         (ASM_SPEC): Remove use of %(asm_cpu_default).
16864         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
16865         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
16866         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
16867         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
16868         __HAVE_FPU__ if TARGET_HARD_FLOAT.
16869         (TARGET_DEFAULT): Delete.
16870         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
16871         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
16872         (CPP_CPU_SPEC): Delete.
16873         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
16874         the appropriate string.
16875         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
16876         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
16877         (ASM_SPEC): Don't use %(asm_default_spec).
16878         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
16879         TARGET_DEFAULT and add MASK_68881.
16880         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
16881
16882 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16883
16884         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
16885         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
16886         MASK_68010 alongside MASK_68020.
16887         * doc/invoke.texi: Document -m68010.
16888         * config/m68k/m68k.opt (m68010): New.
16889         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
16890         if TUNE_68010.
16891         (TUNE_68010): New macro.
16892         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
16893         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
16894         (M68K_CPU_m68332): Add MASK_68010.
16895         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
16896         fallback definition.
16897         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
16898         defines.
16899         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
16900         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
16901         to all entries that use MASK_68020.
16902         (output_move_simode_const, output_move_himode, output_move_qimode)
16903         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
16904         instead of TARGET_68020 to select clr behavior.  Remove comment
16905         about there being no TARGET_68010.
16906         * config/m68k/m68k.md: Likewise throughout.
16907
16908 2007-01-12  Julian Brown  <julian@codesourcery.com>
16909
16910         * config/m68k/m68k.h (TARGET_ISAB): New macro.
16911         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
16912         * config/m68k/m68k.md: Likewise.
16913
16914 2007-01-12  Julian Brown  <julian@codesourcery.com>
16915
16916         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
16917         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
16918
16919 2007-01-12  Julian Brown  <julian@codesourcery.com>
16920
16921         * config/m68k/m68k.h (TUNE_68040_60): New macro.
16922         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
16923         * config/m68k/m68k.md: Likewise.
16924
16925 2007-01-12  Julian Brown  <julian@codesourcery.com>
16926             Richard Sandiford  <richard@codesourcery.com>
16927
16928         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
16929         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
16930         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
16931         TARGET_CPU32.
16932         (TARGET_CPU32): Rename to...
16933         (TUNE_CPU32): ...this.
16934         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
16935         (TUNE_CFV2): New macros.
16936         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
16937         remove conditions that are implied by TARGET_68020.
16938         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
16939         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
16940         (m68k_output_function_epilogue): Likewise.
16941         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
16942         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
16943         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
16944         non-68000 timings.  Refactor multiplication and division costs.
16945         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
16946         TUNE_CPU32 instead of TARGET_CPU32.
16947         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
16948         and TUNE_68060 instead of TARGET_68060.
16949         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
16950         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
16951         TARGET_CPU32.
16952         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
16953         && !TARGET_COLDFIRE" to choose between moveq and clr.
16954         Likewise in the unnamed movsf pattern.
16955         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
16956         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
16957         ashiftrt pattern.
16958
16959 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16960
16961         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
16962         of tabbing before backslashes.
16963
16964 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16965
16966         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
16967         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
16968         (ASM_OUTPUT_INTERNAL_LABEL): Define.
16969
16970 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
16971
16972         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
16973         find_interesting_uses_cond.
16974         (find_interesting_uses_cond): Use extract_cond_operands.
16975         (rewrite_use_compare): Use extract_cond_operands and
16976         force_gimple_operand_bsi.  Do not call update_stmt.
16977         (determine_use_iv_cost_condition): Use extract_cond_operands.
16978         Return cheaper of using original bound and changing the exit bound.
16979
16980 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
16981
16982         PR tree-optimization/29516
16983         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
16984         most_expensive_mult_to_index, addr_to_parts,
16985         create_mem_ref, maybe_fold_tmr): Make the type of
16986         fields of TARGET_MEM_REF sizetype.
16987         (move_fixed_address_to_symbol, move_pointer_to_base):
16988         New functions.
16989         * tree.def (TARGET_MEM_REF): Add comment on types of
16990         the operands.
16991
16992 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
16993
16994         * c-common.c (vector_types_convertible_p): Treat opaque types as
16995         always convertible if they have the same size, but not otherwise.
16996
16997 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
16998
16999         * ifcvt.c (struct noce_if_info): Add comments to the fields.
17000         Remove the b_unconditional field.
17001         (noce_try_sign_mask): Do not look at b_unconditional.
17002         (noce_process_if_block): Do not use merge_if_blocks.  Update
17003         the CFG here.  Do not set b_unconditional.
17004         (cond_move_process_if_block): Likewise.
17005         (find_cond_trap): Likewise.
17006         (check_cond_move_block): Require simple jump insns at the end
17007         of the basic block.
17008
17009 2007-01-11  Jan Hubicka  <jh@suse.cz>
17010
17011         PR tree-optimization/1046
17012         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
17013         when alias info is not ready.
17014         (pass_tail_recursion): Do not require aliasing.
17015         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
17016         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
17017         * tree-ssa-copy.c (pass_copy_prop): Likewise.
17018         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
17019         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
17020         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
17021         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
17022         before inlining.
17023         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
17024         When aliasing is not build, mark statement as volatile.
17025
17026 2007-01-11  Tom Tromey  <tromey@redhat.com>
17027
17028         PR preprocessor/15185, PR preprocessor/20989:
17029         * doc/cppopts.texi <-MT>: Update description of algorithm for
17030         computing default target.
17031         <-M, -MD>: Reword "basename" text.
17032
17033 2007-01-11  Roger Sayle  <roger@eyesopen.com>
17034
17035         * builtins.c (expand_builtin_pow, expand_builtin_powi,
17036         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
17037         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
17038         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
17039         fold_builtin_bswap, real_constp, fold_builtin_pow,
17040         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
17041         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
17042         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
17043         * convert.c (convert_to_pointer): Likewise.
17044         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
17045         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
17046         const_binop, fold_convert_const_int_from_int,
17047         fold_convert_const_int_from_real,
17048         fold_convert_const_real_from_real, sign_bit_p,
17049         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
17050         fold_sign_changed_comparison, fold_unary, fold_comparison,
17051         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
17052         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17053         * print-tree.c (print_node_brief, print_node): Likewise.
17054         * stor-layout.c (place_field, layout_type): Likewise.
17055         * tree-chrec.c (keep_cast): Likewise.
17056         * tree.c (build_vector, build_real, build_real_from_int_cst,
17057         build_complex): Likewise.
17058
17059 2007-01-11  Roger Sayle  <roger@eyesopen.com>
17060
17061         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
17062         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
17063
17064 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
17065
17066         * configure.ac (strict1_warn): Rename to strict_warn.
17067         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
17068         cc_set_by_configure, quoted_cc_set_by_configure,
17069         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
17070         all_boot_languages, all_stagestuff): Remove.
17071         (target_list): Remove bootstrap targets.
17072         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
17073         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
17074         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
17075         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
17076         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
17077         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
17078         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
17079         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
17080         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
17081         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
17082         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
17083         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
17084         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
17085         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
17086         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
17087         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
17088         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
17089         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
17090         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
17091         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
17092         (mostlyclean): Adjust.
17093         (clean, distclean): Don't mention bootstrap stuff.
17094         * configure: Regenerate.
17095         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
17096         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
17097         treelang/config-lang.in (stagestuff): Remove.
17098         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
17099         stageprofile, stagefeedback, stagestuff): Remove mention.
17100
17101 2007-01-11  Nick Clifton  <nickc@redhat.com>
17102
17103         * config/mcore/predicates.md (mcore_general_movesrc_operand):
17104         Accept CONSTs.
17105         (mcore_general_movdst_operand): Do not accept CONST_INTs.
17106         (mcore_arith_K_S_operand): Run the test for the S constraint not
17107         the test for the M constraint.
17108         (mcore_addsub_operand): Do not accept integer values that are
17109         larger than 32 bits.
17110         * config/mcore/mcore.md: Remove unused constraints from split.
17111         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
17112         (addsi3): Likewise.
17113         (allocate_stack): Likewise.
17114         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
17115         operands to 32 bits.
17116         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
17117         INTVAL.
17118         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
17119         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
17120         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
17121         mcore_output_bclri, mcore_output_andn, output_inline_const,
17122         mcore_output_move, mcore_output_movedouble): Likewise.
17123         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
17124         (output_inline_const): Likewise.
17125         (output_inline_const): Fix format strings used in sprintf
17126         statements.
17127         * config/mcore/mcore-protos.h: Update prototypes for changed
17128         functions in mcore.c.
17129         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
17130         HOST_WIDE_INT and not int.
17131         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
17132         CONST_OK_FOR_N): Likewise.
17133         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
17134         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
17135         an INTVAL.
17136
17137 2007-01-10  Jan Hubicka  <jh@suse.cz>
17138
17139         * tree-vrp.c (remove_range_assertions): Release defs.
17140         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
17141         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
17142
17143 2007-01-10  Paul Brook  <paul@codesourcery.com>
17144
17145         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
17146         * config/arm/arm.md (mulsi3subsi): New insn.
17147
17148 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
17149
17150         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
17151         (tree_transform_and_unroll_loop): New.
17152         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
17153         Declare.
17154
17155 2007-01-10  Robert Kennedy <jimbob@google.com>
17156
17157         * fold-const.c (fold_comparison): Fold comparisons like (x *
17158         1000 < 0) to (x < 0).
17159
17160 2007-01-10  Ian Lance Taylor  <iant@google.com>
17161
17162         * tree-pretty-print.c (dump_generic_node): Print parentheses when
17163         operands have the same priority.
17164
17165 2007-01-10  Tom Tromey  <tromey@redhat.com>
17166
17167         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
17168         (fold_binary): Likewise.
17169         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
17170         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
17171         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
17172         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
17173         * langhooks.h (struct lang_hooks): Removed field
17174         'can_use_bit_fields_p'.
17175
17176 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
17177
17178         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
17179
17180 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
17181
17182         * function.c (get_last_funcdef_no): New function.
17183         * function.h (get_last_funcdef_no): Declare.
17184         * tree-inline.c (initialize_cfun): Add initialization.
17185         (tree_function_versioning): Cleanup.
17186
17187 2007-01-10  Jan Hubicka  <jh@suse.cz>
17188
17189         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
17190         PHIs.
17191
17192 2007-01-10  Sa Liu  <saliu@de.ibm.com>
17193             Ben Elliston  <bje@au.ibm.com>
17194
17195         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
17196         for SAVE_NONLOCAL and Pmode for any other save level.
17197         * spu-protos.h (spu_restore_stack_block): Declare.
17198         * spu.md (save_stack_block): Remove.
17199         (restore_stack_block): Call spu_restore_stack_block.
17200         * spu.c (spu_restore_stack_block): New function.
17201         (spu_expand_epilogue): Remove old comment.
17202
17203 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
17204
17205         PR tree-optimization/30322
17206         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
17207         (cand_value_at): Return the value as aff_tree.
17208         (may_eliminate_iv): Convert the bound from aff_tree to tree.
17209         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
17210         aff_combination_mult): New functions.
17211         (aff_combination_add): Use aff_combination_add_cst.
17212         (aff_combination_convert): Allow conversions to a wider type.
17213         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
17214         * tree-affine.h (aff_combination_mult): Declare.
17215
17216 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
17217
17218         * doc/tm.texi: Update documentation to reflect reality of exec
17219         and start file search behaviours. Update copyright year.
17220         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
17221         header file directories.
17222
17223 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
17224
17225         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
17226         (*cosxf2): Rename to cosxf2_i387.
17227         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
17228         using X87MODEF12 mode macro. Rename patterns to
17229         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
17230         for SSE math.
17231         (*cosdf2, *cossf2): Ditto.
17232         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
17233         to match extended input operands.
17234         (sincos<mode>3): New expander.
17235         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
17236         insn patterns and corresponding splitters.
17237
17238 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
17239
17240         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
17241         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
17242
17243 2007-01-09  Nicolas Pitre  <nico@cam.org>
17244
17245         PR target/30173
17246         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
17247
17248 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
17249
17250         * target.h (struct gcc_target): New field library_rtti_comdat.
17251         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
17252         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
17253         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
17254         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
17255
17256 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
17257
17258         * doc/invoke.texi (Optimize Options): Correct description of -O0.
17259
17260 2007-01-08  Richard Guenther  <rguenther@suse.de>
17261
17262         * tree.h (force_fit_type_double): Export.
17263         (force_fit_type): Remove.
17264         * fold-const.c (force_fit_type_double): New function.
17265         (force_fit_type): Remove.
17266         (int_const_binop): Use it.
17267         (fold_convert_const_int_from_int): Likewise.
17268         (fold_convert_const_int_from_real): Likewise.
17269         (fold_div_compare): Likewise.
17270         (fold_sign_changed_comparison): Likewise.
17271         (fold_unary): Likewise.
17272         (fold_negate_const): Likewise.
17273         (fold_abs_const): Likewise.
17274         (fold_not_const): Likewise.
17275         * c-common.c (shorten_compare): Use force_fit_type_double.
17276         * convert.c (convert_to_pointer): Likewise.
17277
17278 2007-01-08  Richard Guenther  <rguenther@suse.de>
17279
17280         * tree.h (build_int_cst_wide_type): Export.
17281         * tree.c (build_int_cst_wide_type): New function.
17282         (build_int_cst_wide): Fix comment.
17283         * builtins.c (fold_builtin_object_size): Use build_int_cst
17284         to build -1 or 0 of the correct type.  Use fit_double_type
17285         to check for overflow.
17286         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
17287         to build the mask.
17288         (decode_field_reference): Likewise.
17289         (all_ones_mask_p): Likewise.
17290         (native_interpret_int): Use build_int_cst_wide_type.
17291         (fold_binary): Use build_int_cst_type to build an all-ones
17292         value.
17293         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
17294
17295 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
17296
17297         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
17298
17299 2007-01-09  Ben Elliston  <bje@au.ibm.com>
17300
17301         * genautomata.c (STATS_OPTION): New option.
17302         (stats_flag): New flag.
17303         (gen_automata_option): Handle it.
17304         (initiate_automaton_gen): Ditto.
17305         (write_automata): Output statistics only if stats_flag is
17306         set. Likewise, output time statistics only if time_flag is set.
17307         * doc/md.texi (Processor pipeline description): Document new flag.
17308
17309 2007-01-08  Richard Guenther  <rguenther@suse.de>
17310
17311         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
17312         * tree.c (build_int_cst_type): Likewise.
17313         (size_in_bytes): Don't call force_fit_type on the result.
17314         (int_fits_type_p): Use fit_double_type.
17315         * fold-const.c (fit_double_type): New function.
17316         (force_fit_type): Use it.
17317         * tree.h (fit_double_type): Export.
17318
17319 2007-01-08  Jan Hubicka  <jh@suse.cz>
17320
17321         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
17322         * ipa.c (function_and_variable_visibility): Fix return type.
17323
17324 2007-01-08  Richard Guenther  <rguenther@suse.de>
17325
17326         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
17327         of offset to build the index.
17328         * tree-pretty-print.c (dump_generic_node): Don't build negated
17329         const just for printing.
17330         * c-pretty-print.c (pp_c_integer_constant): Likewise.
17331         * builtins.c (fold_builtin_int_roundingfn): Check if result
17332         fits the type by using force_fit_type and comparing the result.
17333         * predict.c (predict_loops): Use compare_tree_int for comparison.
17334         * tree.c (build_int_cst): Fall back to integer_type_node for
17335         NULL_TREE type.
17336         (build_int_cst_wide): Assert type is non-null.
17337
17338 2007-01-08  Roberto Costa  <roberto.costa@st.com>
17339
17340         * tree-vrp.c (extract_range_from_cond_expr): New.
17341         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
17342         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
17343         as expressions.
17344         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
17345         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
17346         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
17347         used as expressions.
17348         * tree-object-size.c (cond_expr_object_size): New.
17349         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
17350
17351 2007-01-08  Jan Hubicka  <jh@suse.cz>
17352
17353         * tree-ssa-forwprop.c (forward_propagate_into_cond,
17354         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
17355         statement.
17356
17357 2007-01-08  Richard Guenther  <rguenther@suse.de>
17358
17359         PR tree-optimization/23603
17360         * tree-vrp.c (set_value_range_to_truthvalue): New function.
17361         (extract_range_from_binary): Fall back to truthvalue instead of
17362         varying for TRUTH_*_EXPR.
17363         (extract_range_from_comparison): Fall back to truthvalue instead of
17364         varying.
17365         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
17366         if all visited PHI values were constant.
17367
17368 2007-01-08  Jan Hubicka  <jh@suse.cz>
17369
17370         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
17371         (cgraph_analyze_function): break out from ...
17372         (cgraph_finalize_compilation_unit): ... here.
17373         (cgraph_expand_function): Remove forgoten commented out line.
17374         (cgraph_optimize): Analyze functions.
17375
17376 2007-01-08  Jan Hubicka  <jh@suse.cz>
17377
17378         * tree-pas.h (TODO_remove_function): New flag.
17379         (TODO_update*): Renumber.
17380         (pass_ipa_increase_alignment,
17381         pass_ipa_function_and_variable_visibility): New passes.
17382         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
17383         (cgraph_function_and_variable_visibility): Move to ipa.c
17384         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
17385         cgraph_increase_alignment.
17386         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
17387         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
17388         calling tree-inline.
17389         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
17390         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
17391         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
17392         (gate_increase_alignment): New function.
17393         (pass_ipa_increase_alignment): New pass.
17394         * ipa.c: Inline tree-pass.h and timevar.h
17395         (function_and_variable_visibility): Move here from cgraphunit.c
17396         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
17397         * passes.c (init_optimization_passes): Add the two new passes.
17398         (execute_todo): Handle cgraph_remove_functions.
17399
17400 2007-01-08  Nick Clifton  <nickc@redhat.com>
17401
17402         * config/frv/predicates.md (reg_or_0_operand): Accept
17403         CONST_DOUBLEs.
17404
17405 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
17406
17407         * config/bfin/rtems.h, config/bfin/t-rtems: New.
17408         * config.gcc: Add bfin*-rtems*.
17409
17410 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
17411
17412         * c.opt: Add -flax-vector-conversions.
17413         * c-typeck.c (convert_for_assignment): Pass flag to
17414         vector_types_convertible_p to allow emission of note.
17415         (digest_init): Likewise.
17416         * c-opts.c: Handle -flax-vector-conversions.
17417         * c-common.c (flag_lax_vector_conversions): New.
17418         (vector_types_convertible_p): Unless -flax-vector conversions
17419         has been passed, disallow conversions between vectors with
17420         differing numbers of subparts and/or element types.  If such
17421         a conversion is disallowed, possibly emit a note on the first
17422         occasion only to inform the user of -flax-vector-conversions.
17423         The new last argument specifies this.
17424         * c-common.h (flag_lax_vector_conversions): New.
17425         (vector_types_convertible_p): Add extra argument.
17426         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
17427         char_type_node for V*QI type vectors.
17428         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
17429         Update to satisfy new typechecking rules.
17430         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
17431         C and C++ variants.
17432         * doc/invoke.texi (C Dialect Options): Document
17433         -flax-vector-conversions.
17434
17435 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
17436
17437         PR tree-optimization/29877
17438         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
17439         a register variable on the RHS to not be replaceable.
17440
17441 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
17442         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
17443         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
17444         const_simm15, const_pow2, const_npow2): Added.
17445         * config/score/misc.md (insv, extv, extzv, movmemsi,
17446         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
17447         * config/score/score.c (score_address_cost, score_select_cc_mode):
17448         Added.
17449         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
17450         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
17451         Update score_print_operand.
17452         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
17453         Adjust register allocate order and update some macro define.
17454         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
17455         mdx_block_move_straight, mdx_block_move_loop_head,
17456         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
17457         mdx_block_move): Added.
17458         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
17459         mdp_limm): Updated and fix some bug and typo.
17460         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
17461         (movsf, movdf, doloop_end): Added.
17462
17463 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
17464
17465         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
17466         config/arm/thumb2.md: Fix comment typos.
17467         * doc/extend.texi: Fix a typo.
17468
17469 2007-01-07  Eric Christopher  <echristo@apple.com>
17470
17471         * configure.ac: Check for __stack_chk_fail for darwin.
17472         * configure: Regenerate.
17473
17474 2007-01-07  Richard Guenther  <rguenther@suse.de>
17475
17476         * tree-vrp.c (extract_range_from_assert): CSE calls to
17477         compare_values where possible.
17478         (extract_range_from_unary_expr): Likewise.
17479
17480 2007-01-07  Anatoly Sokolov <aesok@post.ru>
17481
17482         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
17483         * config/avr/avr.c (call_insn_operand): Delete function.
17484         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
17485         instead of register number. Use predicates.
17486         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
17487         call_insn_operand): Add.
17488
17489 2007-01-06  Jan Hubicka  <jh@suse.cz>
17490
17491         * tree-pass.h (pass_build_cgraph_edges): Declare.
17492         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
17493         (visited_nodes): Remove.
17494         (cgraph_create_edges): Move to cgraphbuild.c; rename to
17495         build_cgrpah_edges; make visited_nodes local.
17496         (cgraph_process_new_functions): DO not call initialize_inline_failed.
17497         (record_references_in_initializer): Move to cgraphbuild.c
17498         (initialize_inline_failed, rebuild_cgraph_edges,
17499         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
17500         (verify_cgraph_node): Make visited_nodes local.
17501         (cgraph_analyze_function): Do not call cgraph_create_edges and
17502         initialize_inline_failed.
17503         (cgraph_expand_function): Do not call cgraph_lower_function;
17504         assert that function is already lowered.
17505         * Makefile.in (cgraphbuild.o): New.
17506         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
17507         at the end of lowering passes.
17508
17509 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
17510
17511         * ifcvt.c (cond_move_convert_if_block): New function, code
17512         factored out from...
17513         (cond_move_process_if_block): ...here.  Call the new function
17514         on the THEN and ELSE blocks.
17515         (merge_if_block): Do not copy global_live_at_end, merge_blocks
17516         already takes care of this.
17517
17518 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17519
17520         PR c/19978
17521         * tree.h (TREE_OVERFLOW_P): New.
17522         * c-typeck.c (parser_build_unary_op): Warn only if result
17523         overflowed and operands did not.
17524         (parser_build_binary_op): Likewise.
17525         (convert_for_assignment): Remove redundant overflow_warning.
17526         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
17527
17528 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17529
17530         * c-typeck.c (store_init_value): Split over two lines to follow
17531         the GNU coding style.
17532
17533 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
17534
17535         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
17536         __GXX_EXPERIMENTAL_CXX0X__.
17537         * doc/cpp.texi: Same.
17538
17539 2007-01-05  Richard Guenther  <rguenther@suse.de>
17540
17541         PR middle-end/27826
17542         * tree.c (get_narrower): Do not construct COMPONENT_REFs
17543         with mismatched types.  Instead explicitly build a
17544         conversion NOP_EXPR.
17545
17546 2007-01-05  Ian Lance Taylor  <iant@google.com>
17547
17548         * c-common.c (decl_with_nonnull_addr_p): New function.
17549         (c_common_truthvalue_conversion): Call it.
17550         * c-typeck.c (build_binary_op): Likewise.
17551         * c-common.h (decl_with_nonnull_addr_p): Declare.
17552
17553 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
17554
17555         PR c/30360
17556         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
17557         denom against 0.0.
17558
17559 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
17560
17561         * doc/install.texi (Final install): Document the fact that
17562         the GNAT runtime should not be stripped.
17563
17564 2007-01-04  Jan Hubicka  <jh@suse.cz>
17565
17566         * tree-inline.c (fold_marked_statements): Update operand caches
17567         and EH after folding
17568
17569 2007-01-04  Ian Lance Taylor  <iant@google.com>
17570
17571         * c-common.c (check_function_nonnull): Whitespace fix.
17572
17573 2007-01-04  Jan Hubicka  <jh@suse.cz>
17574
17575         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
17576         comitted older version of patch.
17577         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
17578         function, celanup cfg and collect garbage.
17579
17580 2007-01-04  Mike Stump  <mrs@apple.com>
17581
17582         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
17583         (clean): Likewise.
17584
17585 2007-01-04  Eric Christopher  <echristo@apple.com>
17586
17587         * libgcc2.c (__bswapsi2): Use SItype.
17588         (__bswapdi2): Use DItype.
17589         * libgcc2.h: Update for above.
17590
17591 2007-01-04  Paul Brook  <paul@codesourcery.com>
17592
17593         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
17594         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
17595         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
17596         umulsidi3, umulsidi3adddi, smulsi3_highpart,
17597         umulsi3_highpart): Make conditional on !arm_arch6.
17598         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
17599         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
17600         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
17601         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
17602         umulsi3_highpart_v6): New insns.
17603
17604 2007-01-04  Roger Sayle  <roger@eyesopen.com>
17605
17606         * fold-const.c (fold_convert): When casting an expression to void,
17607         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
17608         have a type.  Instead of attempting to build a NOP_EXPR, return
17609         these "special" trees directly.
17610
17611 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
17612
17613         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
17614         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
17615         rs6000_cost->fp not 0 as adjustment for outer NEG.
17616
17617 2007-01-04  Jan Hubicka  <jh@suse.cz>
17618
17619         * cgraph.c (cgraph_release_function_body): New function.
17620         (cgraph_remove_node): Use it.
17621         * cgraph.h (cgraph_release_function_body): Declare.
17622         * cgraphunit.c (cgraph_expand_function): Use it.
17623         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
17624         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
17625         is initialized and while compilation of other function is running.
17626         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
17627         statement CFG annotations from here to ...
17628         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
17629
17630 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
17631
17632         * cfgloop.h (enum li_flags): Make the constants powers of two.
17633
17634 2007-01-04  Jan Hubicka  <jh@suse.cz>
17635
17636         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
17637         set.
17638         (fold_marked_statements): New function.
17639         (optimize_inline_calls, tree_function_versioning): Fold new statements.
17640         * tree-inline.h (copy_body_data): Add statements_to_fold.
17641
17642 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
17643
17644         * config.gcc: Mention libgcc/config.host.
17645         * Makefile.in: Update comments mentioning libgcc.
17646         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
17647         (all.cross, start.encap, rest.encap, rest.cross): Update
17648         dependencies for libgcc move.
17649         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
17650         (clean-target, clean-target-libgcc): Delete.
17651         (srcdirify, GCC_EXTRA_PARTS): New macros.
17652         (libgcc-support, libgcc.mvars): New rules.
17653         (distclean): Remove mention of mklibgcc.
17654         (install): Don't reference INSTALL_LIBGCC.
17655         (install-common): Don't reference EXTRA_PARTS.
17656         (install-libgcc, install-multilib): Delete rules.
17657         * mklibgcc.in: Delete file.
17658         * doc/configfiles.texi: Don't mention mklibgcc.
17659
17660         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
17661         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
17662         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
17663         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
17664         (mklibgcc, ldblspecs): Likewise.
17665
17666         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
17667         (posixpre.def): Use $(T).
17668         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
17669         (SHLIB_SRC, SHLIB_INSTALL): Delete.
17670         (SHLIB_LINK): Make dummy.
17671         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
17672
17673         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
17674
17675         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
17676         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
17677         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
17678         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
17679
17680         * configure.ac (all_outputs): Remove mklibgcc.
17681         * configure: Regenerated.
17682
17683 2007-01-03  Josh Conner  <jconner@apple.com>
17684
17685         PR middle-end/29683
17686         * calls.c (compute_argument_addresses): Set stack and stack_slot
17687         for partial args, too.
17688         (store_one_arg): Use locate.size.constant for the size when
17689         generating a save_area.
17690
17691 2007-01-03  Robert Kennedy <jimbob@google.com>
17692
17693         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
17694         whose definitions are deleted due to basic block merging.
17695
17696 2007-01-03  Paul Brook  <paul@codesourcery.com>
17697
17698         PR target/16634
17699         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
17700         functions.
17701         (use_return_insn): Return 0 for Thumb interrupt functions.
17702         (print_multi_reg): Add rfe argument for IRQ returns.
17703         (arm_output_epilogue): Pop interrupt return address directly into PC.
17704         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
17705
17706 2007-01-03  Paul Brook  <paul@codesourcery.com>
17707
17708         Merge from sourcerygxx-4_1.
17709         * config/arm/thumb2.md: New file.
17710         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
17711         Thumb-2.
17712         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
17713         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
17714         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
17715         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
17716         tables.
17717         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
17718         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
17719         comptibility.
17720         * config/arm/ieee754-sf.S: Ditto.
17721         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
17722         (thumb1_base_register_rtx_p): ... to this.
17723         (thumb_index_register_rtx_p): Rename...
17724         (thumb1_index_register_rtx_p): ... to this.
17725         (thumb_output_function_prologue): Rename...
17726         (thumb1_output_function_prologue): ... to this.
17727         (thumb_legitimate_address_p): Rename...
17728         (thumb1_legitimate_address_p): ... to this.
17729         (thumb_rtx_costs): Rename...
17730         (thumb1_rtx_costs): ... to this.
17731         (thumb_compute_save_reg_mask): Rename...
17732         (thumb1_compute_save_reg_mask): ... to this.
17733         (thumb_final_prescan_insn): Rename...
17734         (thumb1_final_prescan_insn): ... to this.
17735         (thumb_expand_epilogue): Rename...
17736         (thumb1_expand_epilogue): ... to this.
17737         (arm_unwind_emit_stm): Rename...
17738         (arm_unwind_emit_sequence): ... to this.
17739         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
17740         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
17741         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
17742         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
17743         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
17744         thumb2_output_casesi): New functions.
17745         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
17746         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
17747         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
17748         THUMB2_WORK_REGS): Define.
17749         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
17750         arm_condexec_mask, arm_condexec_masklen)): New variables.
17751         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
17752         (arm_override_options): Check new CPU capabilities.
17753         Set new architecture flag variables.
17754         (arm_isr_value): Handle v7m interrupt functions.
17755         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
17756         Thumb-2.
17757         (const_ok_for_arm): Handle Thumb-2 constants.
17758         (arm_gen_constant): Ditto.  Use movw when available.
17759         (arm_function_ok_for_sibcall): Return false for v7m interrupt
17760         functions.
17761         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
17762         (thumb_find_work_register, arm_load_pic_register,
17763         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
17764         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
17765         print_multi_reg, output_mov_long_double_fpa_from_arm,
17766         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
17767         output_mov_double_fpa_from_arm, output_move_double,
17768         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
17769         output_return_instruction, arm_output_function_prologue,
17770         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
17771         arm_output_mi_thunk, thumb_set_return_address): Ditto.
17772         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
17773         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
17774         (arithmetic_instr, shift_op): Use arm_shift_nmem.
17775         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
17776         '!' and 'L'.
17777         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
17778         (thumb_expand_prologue): Use thumb_set_frame_pointer.
17779         (arm_file_start): Output directive for unified syntax.
17780         (arm_unwind_emit_set): Handle stack alignment instruction.
17781         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
17782         Add v6t2, v7, v7a, v7r and v7m.
17783         (RETLDM): Add Thumb-2 code.
17784         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
17785         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
17786         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
17787         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
17788         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
17789         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
17790         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
17791         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
17792         ADJUST_INSN_LENGTH): Define.
17793         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
17794         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
17795         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
17796         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
17797         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
17798         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
17799         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
17800         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
17801         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
17802         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
17803         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
17804         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
17805         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
17806         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
17807         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
17808         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
17809         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
17810         cortex-m3.
17811         * config/arm/arm-tune.md: Regenerate.
17812         * config/arm/arm-protos.h: Update prototypes.
17813         * config/arm/vfp.md: Enable patterns for Thumb-2.
17814         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
17815         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
17816         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
17817         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
17818         * config/arm/libunwind.S: Add Thumb-2 code.
17819         * config/arm/constraints.md: Update include Thumb-2.
17820         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
17821         * config/arm/ieee754-df.S: Ditto.
17822         * config/arm/bpabi.S: Ditto.
17823         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
17824         * config/arm/predicates.md (low_register_operand,
17825         low_reg_or_int_operand, thumb_16bit_operator): New.
17826         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
17827         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
17828         * config/arm/t-arm-elf: Add armv7 multilib.
17829         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
17830         Include thumb2.md.
17831         (UNSPEC_STACK_ALIGN, ce_count): New.
17832         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
17833         arm_zero_extendsidi2, arm_zero_extendqidi2): New
17834         insns/expanders.
17835         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
17836         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
17837         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
17838         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
17839         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
17840         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
17841         insns.
17842         * doc/extend.texi: Document ARMv7-M interrupt functions.
17843         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
17844
17845 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
17846
17847         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
17848         (struct _Unwind_Context): Rename args_size to flags, remove
17849         signal_frame field, add a new args_size field and version field.
17850         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
17851         _Unwind_IsExtendedContext): New inline functions.
17852         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
17853         Assume by_value array is only present if _Unwind_IsExtendedContext.
17854         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
17855         _Unwind_IsSignalFrame.
17856         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
17857         (uw_update_context_1): Use _Unwind_SetSignalFrame.
17858         (uw_init_context_1): Initialize context->flags to
17859         EXTENDED_CONTEXT_BIT.
17860         * config/rs6000/linux-unwind.h (frob_update_context): Use
17861         _Unwind_SetSignalFrame.
17862
17863 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17864
17865         PR middle-end/30353
17866         * gimplify.c (gimplify_modify_expr_complex_part): Move below
17867         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
17868         the value.
17869
17870 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
17871
17872         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
17873         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
17874         RET, AT_SP): Remove.
17875         * config/i386/i386.md (*sse_prologue_save_insn): Use return
17876         instead of RET.
17877
17878         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
17879         * cfgbuild.c (find_basic_blocks): Likewise.
17880         * cfgrtl.c (rtl_create_basic_block): Likewise.
17881         * function.c (temp_slots_at_level): Likewise.
17882         * reg-stack.c (stack_regs_mentioned): Likewise.
17883         * regclass.c (allocate_reg_info): Likewise.
17884         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
17885         set_bb_for_stmt, move_block_to_fn): Likewise.
17886         * tree-complex.c (tree_lower_complex): Likewise.
17887         * vec.h (VEC_safe_grow_cleared): New.
17888
17889         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
17890
17891 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
17892
17893         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
17894         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
17895         to loop_version.
17896         * cfgloopmanip.c (scale_loop_frequencies): Export.
17897         (loopify): Scale the frequencies by prescribed coefficients.
17898         (set_zero_probability): New function.
17899         (duplicate_loop_to_header_edge): Improve updating of frequencies.
17900         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
17901         and frequencies according to arguments.
17902         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
17903         correctly.
17904         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
17905         * modulo-sched.c (sms_schedule): Set probabilities for entering
17906         versioned loop correctly.
17907         * tree-vect-transform.c (vect_transform_loop): Ditto.
17908         * cfgloop.h (loopify, loop_version): Declaration changed.
17909         (scale_loop_frequencies): Declared.
17910
17911 2007-01-02  Jan Hubicka  <jh@suse.cz>
17912
17913         * cgraph.c: Include tree-flow.h
17914         (cgraph_add_new-function): Handle IPA_SSA mode; execute
17915         early_local_passes.
17916         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
17917         * tree-pass.h (pass_all_early_optimizations): Declare.
17918         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
17919         early_local_passes.
17920         (cgraph_analyze_function): Do early_local_passes.
17921         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
17922         Do not add referenced vars.
17923         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
17924         SSA form.
17925         (gate_all_early_local_passes): New gate.
17926         (pass_early_local_passes): Use new gate.
17927         (execute_early_local_optimizations): New functions.
17928         (gate_all_early_optimizations): New gate.
17929         (pass_all_early_optimizations): New pass.
17930         (execute_free_datastructures): Free SSA only when initialized.
17931         (gate_init_datastructures): Init only when optimizing.
17932         (tree_lowering_passes): Do early local passes when called late.
17933         * tree-profile.c (do_tree_profiling): Don't profile functions added
17934         late.
17935         (do_early_tree_profiling, pass_early_tree_profile): Kill.
17936         * tree-cfg.c (update_modified_stmts): Do not update when operands are
17937         not active.
17938         * passes.c (init_optimizations_passes): Reorder so we go into SSA
17939         during early_local_passes.
17940         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
17941
17942
17943 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
17944
17945         * Makefile.in: Update copyright year.
17946
17947 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
17948
17949         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
17950         in $(lang_checks) and check-consistency targets.
17951
17952 2007-01-02  Jan Hubicka  <jh@suse.cz>
17953
17954         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
17955         Do not add referenced vars.
17956         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
17957         are not active.
17958         * passes.c (init_optimization_passes): Put mudflap_2 after
17959         free_datastructures.
17960
17961 2007-01-02  Jan Hubicka  <jh@suse.cz>
17962
17963         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
17964         Set NOTHROW flag on call statements proved to be nothrow.
17965         Update statement of local calls so new pure/const functions are
17966         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
17967         goto receivers.
17968         (tree_rest_of_compilation): Register hooks and initialize bitmap
17969         early. Do not set after_inlining flag.
17970
17971 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
17972
17973         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
17974         HOST_BITS_PER_LONGLONG
17975
17976 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17977
17978         PR c/19977
17979         * c-typeck.c (store_init_value): Don't emit pedantic overflow
17980         warning for non-static initializers.
17981
17982 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
17983
17984         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
17985         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
17986         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
17987         Always use set_unique_reg_note to add REG_EQUAL notes.
17988
17989 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
17990
17991         Revert:
17992         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
17993
17994         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
17995         * cfgbuild.c (find_basic_blocks): Likewise.
17996         * cfgrtl.c (rtl_create_basic_block): Likewise.
17997         * function.c (temp_slots_at_level): Likewise.
17998         * reg-stack.c (stack_regs_mentioned): Likewise.
17999         * regclass.c (allocate_reg_info): Likewise.
18000         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
18001         set_bb_for_stmt, move_block_to_fn): Likewise.
18002         * tree-complex.c (tree_lower_complex): Likewise.
18003         * vec.h (VEC_safe_grow_cleared): New.
18004
18005 2007-01-02  Ian Lance Taylor  <iant@google.com>
18006
18007         * c-common.c (c_common_truthvalue_conversion): When warning about
18008         using an assignment as a truth value, set TREE_NO_WARNING.
18009
18010 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18011
18012         PR middle-end/7651
18013         * c.opt (Wold-style-declaration): New.
18014         * doc/invoke.texi (C-only Warning Options): New.
18015         (Wold-style-declaration): Document it.
18016         (Wextra): Enabled by -Wextra.
18017         * c-opts.c (c_common_post_options): Enabled by -Wextra.
18018         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
18019         -Wold-style-declaration.
18020
18021 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
18022
18023         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
18024         * cfgbuild.c (find_basic_blocks): Likewise.
18025         * cfgrtl.c (rtl_create_basic_block): Likewise.
18026         * function.c (temp_slots_at_level): Likewise.
18027         * reg-stack.c (stack_regs_mentioned): Likewise.
18028         * regclass.c (allocate_reg_info): Likewise.
18029         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
18030         set_bb_for_stmt, move_block_to_fn): Likewise.
18031         * tree-complex.c (tree_lower_complex): Likewise.
18032         * vec.h (VEC_safe_grow_cleared): New.
18033
18034 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
18035
18036         * c-common.c (c_common_nodes_and_builtins): Since variants of
18037         void_type_node get built before it is given a name, we need to
18038         give those variants the name, too.
18039         (complete_array_type): We need to work with the canonical main
18040         type of the array, from which we will build the qualified version.
18041         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
18042         * print-tree.c (print_node): Display canonical type information
18043         for each type.
18044         * stor-layout.c (layout_type): When we don't know the
18045         alignment of a type for which we're building an array, we end up
18046         guessing wrong, so make the type require structural equality.
18047         * tree.c (make_node_stat): When we build a new type, it is its
18048         own canonical type.
18049         (build_type_attribute_qual_variant): When building an attribute
18050         variant, its canonical type is the non-attribute variant. However,
18051         if the attributes are target-dependent and they differ, we need to
18052         use structural equality checks for this type.
18053         (build_qualified_type): A qualified type is not equivalent to its
18054         unqualified variant; set the canonical type appropriately.
18055         (build_distinct_type_copy): When building a distinct type from
18056         another type, the new type is its own canonical type.
18057         (build_variant_type_copy): When building a new type variant, we
18058         assume that it is equivalent to the original type.
18059         (build_pointer_type_for_mode): When building a pointer type, also
18060         build a canonical type pointer.
18061         (build_reference_type_for_mode): When building a reference type,
18062         also build a canonical type reference.
18063         (build_index_type): When we can't hash an index type (e.g.,
18064         because its maximum value is negative), the index type requires
18065         structural equality tests.
18066         (build_array_type): Build the canonical form of an array type.
18067         (build_function_type): Function types require structural equality,
18068         because they contain default arguments, attributes, etc.
18069         (build_method_type_directly): Ditto for method types.
18070         (build_offset_type): Build the canonical offset type.
18071         (build_complex_type): Build the canonical vector type.
18072         (make_vector_type): Build the canonical vector type.
18073         * tree.h (TYPE_CANONICAL): New.
18074         (TYPE_STRUCTURAL_EQUALITY_P): New.
18075         (SET_TYPE_STRUCTURAL_EQUALITY): New.
18076         (struct tree_type): Added "canonical" field.
18077         * params.h (VERIFY_CANONICAL_TYPES): New.
18078         * doc/c-tree.texi (TYPE_CANONICAL): Document.
18079         (TYPE_STRUCTURAL_EQUALITY_P): Document.
18080         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
18081         * doc/invoke.texi (verify-canonical-types): Document --param
18082         parameter for verifying canonical types.
18083
18084 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
18085
18086         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
18087         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
18088         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
18089         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
18090         tm_file.
18091         * config/rs6000/e500.h: New.
18092         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
18093         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
18094         Remove.
18095         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
18096         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
18097         TARGET_E500_DOUBLE): Remove.
18098         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
18099         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
18100         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
18101         * config/rs6000/rs6000.c (rs6000_override_options): Use
18102         CHECK_E500_OPTIONS.
18103
18104 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
18105
18106         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
18107         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
18108         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
18109         rs6000_emit_cmove): Don't check TARGET_E500.
18110         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
18111         sordered): Don't check TARGET_E500.
18112
18113 2007-01-01  Eric Christopher  <echristo@apple.com>
18114
18115         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
18116         HARD_REGISTER_NUM_P.
18117
18118 2007-01-01  Roger Sayle  <roger@eyesopen.com>
18119
18120         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
18121         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
18122         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
18123         eq/ne Y".
18124
18125 2007-01-01  Mike Stump  <mrs@apple.com>
18126
18127         * configure.ac: Remove support for building with Apple's gcc-3.1.
18128
18129 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
18130
18131         PR middle-end/30311
18132         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
18133         REG is a hard register.  Do not modify REG before calling
18134         subreg_nregs.
18135         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
18136         multiple of the size of YMODE for certain lowpart cases.
18137
18138 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
18139
18140         PR middle-end/30253
18141         * gimplify (voidify_wrapper_expr): Update for
18142         GIMPLE_MODIFY_STMT.
18143
18144 2007-01-01  Andreas Schwab  <schwab@suse.de>
18145
18146         PR target/29166
18147         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
18148         save of BR0 in extra_spill_size instead of spill_size.
18149         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
18150         area.
18151         (ia64_expand_epilogue): Restore BR0 from its new location.
18152
18153 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
18154
18155         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
18156         Use a temporary variable if the left hand side is not a gimple
18157         register.
18158
18159 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
18160
18161         * gimplify.c (gimplify_return_expr): Make the temporary variable
18162         for the return expression, a gimple register variable.
18163
18164 2007-01-01  Jan Hubicka  <jh@suse.cz>
18165
18166         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
18167         INSN_LIST.
18168
18169 2007-01-01  Mike Stump  <mrs@apple.com>
18170
18171         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
18172         .literal16.
18173         * config/darwin.c (machopic_select_rtx_section): Use
18174         HAVE_GAS_LITERAL16.
18175         (darwin_mergeable_constant_section): Likewise.
18176         * configure: Regenerate.
18177         * config.in: Regenerate.
18178
18179 2007-01-01  Jan Hubicka  <jh@suse.cz>
18180             Andrew Pinski  <pinskia@gmail.com>
18181
18182         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
18183         before starting IPA passes.