OSDN Git Service

fd5d70380269cc551e5e99dabae74ec8cea30fe7
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
2
3         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
4
5 2007-07-04  Ben Elliston  <bje@au.ibm.com>
6
7         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
8         of this file.
9
10         * c-objc-common.c (c_types_compatible_p): Fix indentation.
11
12         * doc/tm.texi (Run-time Target): Capitalise "CPU".
13         (Exception Handling): Likewise.
14
15 2007-07-03  Jan Hubicka  <jh@suse.cz>
16
17         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
18
19 2007-07-03  Eric Christopher  <echristo@apple.com>
20
21         * doc/cppopts.texi: Add conflicting option note to -dM.
22         * doc/invoke.texi: Add note about possible conflicts with
23         -E for -dCHARS and note that -dM will not produce
24         any results if there is no machine dependent reorg.
25         
26 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
27
28         * tree.h (DECL_ALIGN): Back out previous change.
29
30 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
31
32         * configure.ac: Test for .dtprelword support on MIPS.
33         * configure, config.in: Regenerate.
34         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
35         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
36
37 2007-07-03  Julian Brown  <julian@codesourcery.com>
38
39         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
40         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
41         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
42         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
43         capability.
44         (all_fpus): Add FPUTYPE_VFP3.
45         (fp_model_for_fpu): Add VFPv3 field.
46         (arm_rtx_costs_1): Give cost to VFPv3 constants.
47         (vfp3_const_double_index): New function. Return integer index of
48         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
49         isn't suitable.
50         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
51         and argument represents a valid RTX for a VFPv3 constant.
52         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
53         two instructions.
54         (vfp_emit_fstmd): Similar, for fstmd.
55         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
56         constants, represented as integer indices.
57         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
58         VFP_REGNO_OK_FOR_DOUBLE macros.
59         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
60         (arm_file_start): Set float-abi attribute for VFPv3, and output
61         correct ".fpu" assembler directive.
62         (arm_dbx_register_numbering): Add FIXME.
63         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
64         (fputype): Add FPUTYPE_VFP3.
65         (FIXED_REGISTERS): Add 32 registers for D16-D31.
66         (CALL_USED_REGISTERS): Likewise.
67         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
68         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
69         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
70         (D7_VFP_REGNUM): New.
71         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
72         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
73         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
74         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
75         (REG_ALLOC_ORDER): Adjust for VFPv3.
76         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
77         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
78         VFP_LO_REGS, VFP_HI_REGS.
79         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
80         (IS_VFP_CLASS): Define macro.
81         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
82         IS_VFP_CLASS.
83         (REGISTER_MOVE_COST): Likewise.
84         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
85         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
86         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
87         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
88         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
89         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
90         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
91         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
92         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
93         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
94         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
95         where appropriate for single-word registers.
96         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
97         As above. Fix type attributes.
98         * config/arm/constraints.md (register_contraint "t"): Define.
99         (register_constraint "w"): Change to D0-D15, or D0-D31 for
100         VFPv3/NEON.
101         (register_constraint "x"): Define.
102         (constraint "Dv"): Define.
103
104 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
105
106         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
107
108 2007-07-03  Tom Tromey  <tromey@redhat.com>
109
110         * c-parser.c (objc_pq_context): Removed.
111         (objc_need_raw_identifier): Likewise.
112         (c_parser) <objc_pq_context>: New field.
113         <objc_need_raw_identifier>: Likewise.
114         (OBJC_NEED_RAW_IDENTIFIER): Removed.
115         (c_lex_one_token): Update.
116         (c_parser_objc_protocol_definition): Update.
117         (c_parser_objc_method_definition): Update.
118         (c_parser_objc_methodproto): Update.
119         (c_parser_declspecs): Update.
120
121 2007-07-03  David Ung  <davidu@mips.com>
122
123         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
124
125 2007-07-03  David Ung  <davidu@mips.com>
126             Richard Sandiford  <richard@codesourcery.com>
127
128         * doc/invoke.texi: Document -march=74kf3_2.
129         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
130         (TUNE_74K): Check for it.
131         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
132         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
133         * config/mips/mips.md (cpu): Add 74kf3_2.
134         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
135         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
136         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
137         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
138         74kf3_2 to the CPU list.
139         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
140         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
141         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
142         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
143         (r74kf3_2_fxfer_from_c1): New insn reservations.
144
145 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
146             David Ung  <davidu@mips.com>
147
148         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
149         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
150         and 74k[fx].  Document aliases for the new options.
151         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
152         (PROCESSOR_24KF2_1): ...this.
153         (PROCESSOR_24KX): Rename to...
154         (PROCESSOR_24KF1_1): ...this.
155         (PROCESSOR_74KF): Rename to...
156         (PROCESSOR_74KF2_1): ...this.
157         (PROCESSOR_74KX): Rename to...
158         (PROCESSOR_74KF1_1): ...this.
159         (TUNE_74K): Update PROCESSOR_* names.
160         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
161         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
162         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
163         (mips_rtx_cost_data): Update processor names in comments.
164         (mips_issue_rate): Update PROCESSOR_* names.
165         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
166         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
167         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
168         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
169         Update cpu attribute names.
170         (r24k_fpu_iss): Rename this reservation to...
171         (r24kf2_1_fpu_iss): ...this and update all uses.
172         (r24kx_fpu_iss): Rename this reservation to...
173         (r24kf1_1_fpu_iss): ...this and update all uses.
174         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
175         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
176         Update cpu attribute names.
177
178 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
179
180         * config/m32r/constraints.md: New file.
181         * config/m32r/m32r.c: Include tm-constrs.h.
182         (small_data_operand): Use satisfies_constraint_* instead of macro.
183         (addr24_operand, gen_compare): Likewise.
184         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
185         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
186         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
187         EXTRA_CONSTRAINT): Likewise.
188         * config/m32r/m32r.md: Include constraints.md.
189         (*movsi_insn): Use satisfies_constraint_* instead of macro.
190         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
191         * config/m32r/predicates.md (conditional_move_operand): Likewise.
192         (two_insn_const_operand, int8_operand, uint16_operand,
193         reg_or_int16_operand, reg_or_uint16_operand,
194         reg_or_cmp_int16_operand, cmp_int16_operand,
195         seth_add3_operand): Likewise.
196
197 2007-07-03  Eric Christopher  <echristo@gmail.com>
198
199         * libgcc2.h: Conditionally declare __bswapsi2 and
200         __bswapdi2.
201         
202 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
203
204         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
205         defined.
206
207 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
208
209         PR target/28307
210         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
211         (__gthrw_pragma): Provide default definition.
212         (__gthrw2): Use it.
213         * gthr-posix.c (__gthrw_pragma): Define.
214
215 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
216
217         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
218         before declaring inequality.
219
220 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
221
222         * combine.c (recog_for_combine): Log the success or failure of
223           matching new insn patterns against the machine description in
224           detailed dumps.
225
226 2007-07-03  Revital Eres  <eres@il.ibm.com>
227
228         * ddg.c (print_sccs): New function.
229         (check_sccs): New function.
230         (create_ddg_all_sccs): Use it.
231         * ddg.h (print_sccs): Declare.
232         * modulo-sched.c (sms_order_nodes): Call print_sccs.
233
234 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
235
236         * targhooks.h (default_mode_for_suffix): New function declaration.
237         * targhooks.c (default_mode_for_suffix): New default target hook.
238         * target.h (struct c): New structure in the targetm struct.
239         (mode_for_suffix): New target hook as part of struct c.
240         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
241         default_mode_for_suffix.
242         (TARGET_C): New define.
243         * c-lex.c: Include "target.h".
244         (interpret_float): Use targetm.c.mode_for_suffix to determine
245         the mode for a given non-standard suffix.
246         Makefile.in (c-lex.o): Depend on $(TARGET_H).
247
248         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
249         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
250
251         * doc/extend.texi (Floating Types): New node.  Document __float80 and
252         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
253
254 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
255
256         PR target/32506
257         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
258         predicate instead of target_operand.
259         (divsi3_i1_media, divsi3_media_2): Likewise.
260
261 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
262
263         * tree.h (alias_sets_might_conflict_p): Rename into
264         alias_sets_must_conflict_p.
265         * alias.c (alias_sets_might_conflict_p): Likewise.
266         (alias_sets_conflict_p): Use it.
267         (objects_must_conflict_p): Likewise.
268         * c-common.c (strict_aliasing_warning): Adjust.
269
270 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
271
272         * rtlhooks.c (gen_lowpart_if_possible): Check for
273         invalid subreg before calling gen_lowpart_SUBREG.
274
275 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
276
277         * config/darwin9.h: Add copyright notice.
278         (LINK_COMMAND_SPEC): Add comment.
279         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
280         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
281         DARWIN_LIBSYSTEM_HAS_UNWIND.
282
283 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
284
285         PR libgomp/32468
286         * omp-low.c (check_combined_parallel): New function.
287         (lower_omp_parallel): Call it via walk_stmts, set
288         OMP_PARALLEL_COMBINED if appropriate.
289         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
290         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
291         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
292         don't consider it as combined parallel.
293
294 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
295
296         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
297         (gcc_tooldir): Likewise.
298         * configure: Regenerate.
299         * Makefile.in (libsubdir_to_prefix): New variable, based on the
300         old configure.ac gcc_tooldir setting.
301         (prefix_to_exec_prefix): New variable.
302         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
303         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
304
305 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
306
307         Fix PR tree-optimization/32583
308         Fix PR tree-optimization/32584
309         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
310         (phi_translate_set): Use phi_translate directly now.
311         (make_values_for_stmt): Don't value number RHS if we already know
312         it is constant.
313
314 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
315             Jim Wilson <wilson@specifix.com>
316
317         PR target/31684
318         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
319         copy_insn.
320
321 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
322             Richard Sandiford  <richard@codesourcery.com>
323             Nigel Stephens  <nigel@mips.com>
324
325         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
326         (mips16e_output_save_restore): Declare.
327         (mips16e_save_restore_pattern_p): Likewise.
328         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
329         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
330         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
331         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
332         (BITSET_P): New global macro, extracted from...
333         (mips_for_each_saved_reg): ...here.
334         (mips16e_save_restore_info): New struct.
335         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
336         (mips16e_save_restore_regs): New variable.
337         (mips_split_plus, mips16e_find_first_register): New functions.
338         (mips16e_mask_registers): New function.
339         (compute_frame_size): Expand the commentary before the function.
340         Enforce the MIPS16e save and restore register range restrictions.
341         Pad the general register save area at the low end.
342         (mips16e_save_restore_reg, mips16e_build_save_restore)
343         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
344         (mips16e_output_save_restore, mips16e_collect_propagate_value)
345         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
346         New functions.
347         (mips_expand_prologue, mips_expand_epilogue): Handle
348         GENERATE_MIPS16E_SAVE_RESTORE.
349         * config/mips/mips.md (*mips16e_save_restore): New pattern.
350
351 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
352
353         PR tree-optimization/31966
354         PR tree-optimization/32533
355         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
356         "basic_block" description as its third argument.  Update function
357         calls to get destination bb from "edge" argument.  Save "cond" into
358         aux field of the edge.  Update prototype for changed arguments.
359         (if_convertible_loop_p): Clear aux field of incoming edges if bb
360         contains phi node.
361         (find_phi_replacement_condition): Operate on incoming edges, not
362         on predecessor blocks.  If there is a condition saved in the
363         incoming edge aux field, AND it with incoming bb predicate.
364         Return source bb of the first edge.
365         (clean_predicate_lists): Clean aux field of outgoing node edges.
366         (tree_if_conversion): Do not initialize cond variable. Move
367         variable declaration into the loop.
368         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
369         initializations of new_stmt, arg0 and arg1 variables.
370
371 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
372
373         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
374         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
375
376 2007-07-02  Richard Guenther  <rguenther@suse.de>
377
378         * tree-ssa.c (useless_type_conversion_p): Document
379         future intent as defining the middle-end type system.
380         Re-structure to call langhook last, group by type class,
381         mark questionable parts.
382
383 2007-07-02  Richard Guenther  <rguenther@suse.de>
384
385         * tree-flow.h (types_compatible_p): Declare.
386         * tree-ssa.c (types_compatible_p): New function.
387         * ipa-type-escape.c (discover_unique_type): Use
388         types_compatible_p instead of lang_hooks.types_compatible_p.
389         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
390         * tree-vn.c (expressions_equal_p): Likewise.
391         * tree.c (fields_compatible_p): Likewise.
392         * tree-ssa-dom.c (avail_expr_eq): Likewise.
393         (cprop_operand): Use useless_type_conversion_p instead of
394         lang_hooks.types_compatible_p.
395         * tree-inline.c (setup_one_parameter): Likewise.
396         (declare_return_variable): Likewise.
397         * tree-nrv.c (tree_nrv): Likewise.
398         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
399         (maybe_fold_offset_to_component_ref): Likewise.
400         (maybe_fold_offset_to_reference): Likewise.
401         * tree-ssa-copy.c (may_propagate_copy): Likewise.
402         (merge_alias_info): Likewise.
403         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
404         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
405         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
406         * tree-tailcall.c (find_tail_calls): Likewise.
407         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
408         * gimplify.c (canonicalize_addr_expr): Likewise.
409         (fold_indirect_ref_rhs): Likewise.
410         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
411         (cpt_same_type): Likewise.
412         (check_pointer_types_r): Swap parameters to cpt_same_type
413         where appropriate.
414         * fold-const.c (fold_convert): Revert fix for PR15988.
415         * tree-inline.c (setup_one_parameter): Instead fix it here by
416         using fold_build1 instead of fold_convert and checking for
417         error_mark_node.  Convert only if the conversion is necessary.
418
419 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
420
421         * configure.ac: Check for .gnu_attribute on Power.
422         * configure: Regenerate.
423         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
424         attribute for floating-point ABI.
425
426 2007-07-02  Ira Rosen  <irar@il.ibm.com>
427
428         PR tree-optimization/32230
429         PR tree-optimization/32477
430         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
431         address is a constant.
432
433 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
434
435         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
436         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
437         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
438         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
439         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
440         64-bit targets.  Add support for *-elfoabi*.
441         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
442         different settings if $(tm_defines) does not select the EABI.
443         (MULTILIB_EXCLUSIONS): Define in those circumstances.
444         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
445         (MIPS_ARCH_OPTION_SPEC): Likewise.
446         (MIPS_ISA_LEVEL_SPEC): Likewise.
447         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
448         * config/mips/elfoabi.h: New file.
449
450 2007-07-02  Richard Guenther  <rguenther@suse.de>
451
452         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
453         (useless_type_conversion_p): ... this.
454         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
455         (useless_type_conversion_p): ... this.
456         * builtins.c (fold_builtin_memory_op): Rename
457         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
458         * tree-cfg.c (verify_expr): Likewise.
459         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
460         * tree-ssa-ccp.c (ccp_fold): Likewise.
461         * tree-ssa-copy.c (may_propagate_copy): Likewise.
462         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
463         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
464         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
465         * tree-ssa-pre.c (eliminate): Likewise.
466         * tree-ssa.c (delete_tree_ssa): Likewise.
467         (tree_ssa_useless_type_conversion): Likewise.
468         * tree.c (build2_stat): Likewise.
469
470 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
471
472         Fix PR tree-optimization/32571
473         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
474         simplifying them.
475
476 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
477
478         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
479         and other expected operations explicitly, change default to
480         gcc_unreachable. 
481
482 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
483
484         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
485         PARALLEL.
486         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
487         (tls_load_dot_plus_eight): Move the label number into the unspec.
488         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
489
490 2007-07-01  Andreas Schwab  <schwab@suse.de>
491
492         * dwarf2out.c (initial_return_save): Define only if used.
493
494 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
495
496         Unreverting Richard's Revert of:
497
498         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
499
500         * dce.c (deletable_insn_p_1): New function, split out from...
501         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
502         specially, not those inside PARALLELs.  Remove BODY argument
503         and adjust recursive call accordingly.
504         (prescan_insns_for_dce): Update call to delete_insn_p.
505
506 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
507             Revital Eres  <eres@il.ibm.com>
508
509         * ddg.c (create_ddg_all_sccs): Fix missed
510         initialization of scc_nodes.
511
512 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
513
514         PR middle-end/32559
515         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
516         X + ~X to 1 only for INTEGRAL_TYPE_P type.
517
518 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
519
520         * configure.ac: Check for .gnu_attribute on MIPS.
521         * configure, config.in: Regenerate.
522         * config/mips/mips.c (mips_file_start): If supported, output
523         attribute for floating-point ABI.
524
525 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
526
527         PR target/32433
528         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
529         (ffs_cmove): New expander to expand using ctz pattern.
530         (*ffs_cmove): Remove pattern.
531         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
532         (ffsdi2): Expand using ctz pattern.
533         (*ffs_rex64): Remove pattern.
534
535 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
536
537         PR rtl-optimization/32296
538         * pa.md (return): Delete pattern.
539         (return_internal): Remove "(const_int 1)" from pattern.
540         (epilogue): Use return_internal pattern for trivial returns.
541         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
542         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
543
544 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
545
546         * tree-ssa-pre.c (is_exception_related): New function
547         (can_value_number_operation): Use it.
548
549 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
550         
551         Fix PR tree-optimization/32540
552         Fix PR tree-optimization/31651
553
554         * tree-ssa-sccvn.c: New file.
555
556         * tree-ssa-sccvn.h: Ditto.
557         
558         * tree-vn.c: Include tree-ssa-sccvn.h
559         (val_expr_paid_d): Removed.
560         (value_table): Ditto.
561         (vn_compute): Ditto.
562         (val_expr_pair_hash): Ditto.
563         (val_expr_pair_expr_eq): Ditto.
564         (copy_vuses_from_stmt): Ditto.
565         (vn_delete): Ditto.
566         (vn_init): Ditto.
567         (shared_vuses_from_stmt): Ditto.
568         (print_creation_to_file): Moved up.
569         (sort_vuses): Ditto.
570         (sort_vuses_heap): Ditto.
571         (set_value_handle): Make non-static.
572         (make_value_handle): Ditto.
573         (vn_add): Rewritten to use sccvn lookups.
574         (vn_add_with_vuses): Ditto.
575         (vn_lookup): Ditto (and second argument removed).
576         (vn_lookup_with_vuses): Ditto.
577         (vn_lookup_or_add): Ditto (and second argument removed);
578         (vn_lookup_or_add_with_vuses): Ditto.
579         (vn_lookup_with_stmt): New.
580         (vn_lookup_or_add_with_stmt): Ditto.
581         (create_value_handle_for_expr): Ditto.
582
583         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
584         (seen_during_translate): New function.
585         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
586         (phi_trans_add): Ditto.
587         (constant_expr_p): FIELD_DECL is always constant.
588         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
589         Use constant_expr_p.
590         Avoid infinite recursion on mutually valued expressions.
591         Change callers of vn_lookup_or_add.
592         (phi_translate): New function.
593         (compute_antic_safe): Allow phi nodes.
594         (create_component_ref_by_pieces): Update for FIELD_DECL change.
595         (find_or_generate_expression): Rewrite slightly.
596         (create_expression_by_pieces): Updated for vn_lookup_or_add
597         change.
598         Update VN_INFO for new names.
599         (insert_into_preds_of_block): Update for new names.
600         (add_to_exp_gen): New function.
601         (add_to_sets): Use vn_lookup_or_add_with_stmt.
602         (find_existing_value_expr): Rewrite to changed vn_lookup.
603         (create_value_expr_from): Ditto, and use add_to_exp_gen.
604         (try_look_through_load): Removed.
605         (try_combine_conversion): Ditto.
606         (get_sccvn_value): New function.
607         (make_values_for_phi): Ditto.
608         (make_values_for_stmt): Ditto.
609         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
610         SCCVN.
611         (init_pre): Update for SCCVN changes.
612         (fini_pre): Ditto.
613         (execute_pre): Ditto.
614
615         * tree-flow.h (make_value_handle): Declare.
616         (set_value_handle): Ditto.
617         (sort_vuses_heap): Ditto.
618         (vn_lookup_or_add_with_stmt): Ditto.
619         (vn_lookup_with_stmt): Ditto.
620         (vn_compute): Remove.
621         (vn_init): Ditto.
622         (vn_delete): Ditto.
623         (vn_lookup): Update arguments.
624
625         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
626         (tree-vn.o): Ditto.
627         (tree-ssa-sccvn.o): New.
628         (OBJS-common): Add tree-ssa-sccvn.o
629         
630 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
631
632         PR c/4076
633         * c-typeck.c (build_external_ref): Don't mark as used if called
634         from itself.
635         * calls.c (rtx_for_function_call): Likewise.
636         
637 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
638
639         Revert:
640
641         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
642
643         * dce.c (deletable_insn_p_1): New function, split out from...
644         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
645         specially, not those inside PARALLELs.  Remove BODY argument
646         and adjust recursive call accordingly.
647         (prescan_insns_for_dce): Update call to delete_insn_p.
648
649 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
650
651         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
652         (try_combine): Move potential calls to undo_all() so they happen
653         before we commit to using the combined insns.
654
655 2006-06-30  Jan Hubicka  <jh@suse.cz>
656
657         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
658         code.
659
660 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
661
662         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
663         (cgraph_remove_unreachable_nodes): Likewise.
664         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
665         * ipa-inline.c (update_caller_keys): Cast according to the coding
666         conventions.
667         (cgraph_decide_recursive_inlining): Likewise.
668         (cgraph_decide_inlining_of_small_function): Likewise.
669         (try_inline): Likewise.
670         (cgraph_decide_inlining_incrementally): Likewise.
671         * ipa-pure-const.c (get_function_state): Likewise.
672         (scan_function): Likewise.
673         (analyze_function): Likewise.
674         (static_execute): Likewise.
675         * gcc/ipa-reference.c (scan_for_static_refs): Likewise.
676         (merge_callee_local_info): Likewise.
677         (analyze_function): Use type safe memory macros.
678         (static_execute): Likewise. Cast according to the coding conventions.
679         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
680         conventions.
681         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
682         names.
683         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
684         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
685         variable names.
686
687 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
688
689         PR middle-end/30024
690         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
691         for complex modes (both int and real).
692
693 2007-06-29  Jan Hubicka  <jh@suse.cz>
694
695         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
696
697 2007-06-29  Jan Hubicka  <jh@suse.cz>
698
699         PR middle-end/32372
700         * cse.c (cse_insn): Avoid invalid sharing in between register note and
701         the insn pattern.
702
703 2007-06-29  Anatoly Sokolov <aesok@post.ru>
704
705         PR target/32335
706         * config/avr/avr.c: Include dataflow header file.
707         (expand_prologue): Adjust for prologue insn change.
708         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
709         inside a insn.
710
711 2007-06-29  Richard Guenther  <rguenther@suse.de>
712
713         PR middle-end/32493
714         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
715         during type verification.
716
717 2007-06-29  Jan Hubicka  <jh@suse.cz>
718
719         * recog.c (validate_change_rtx_1): Unshare TO argument.
720
721 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
722
723         PR tree-optimization/24659
724         * tree-vect-transform.c (vectorizable_call): Handle
725         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
726
727         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
728         * config/i386/i386.c (enum ix86_builtins)
729         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
730         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
731         description.
732         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
733         const using def_builtin_const.
734         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
735         input operands in the same modes as the result.
736         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
737
738 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
739
740         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
741         (df_set_dead_notes_for_mw): Likewise.
742
743 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
744
745         * c-common.c (pointer_int_sum): Do the negation in sizetype.
746
747 2007-06-28  DJ Delorie  <dj@redhat.com>
748
749         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
750
751 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
752
753         * doc/invoke.texi (C++ Dialect Options): Document
754         fvisibility-ms-compat.
755         * c.opt (fvisibility-ms-compat): New.
756
757 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
758
759         PR tree-opt/32417
760         * tree-affine.c (aff_combination_add_elt): Handle
761         pointer addition specially.
762
763 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
764
765         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
766         decl is non-external for AIX ABI.
767
768 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
769
770         * config/rs6000/predicates.md (current_file_function_operand):
771         Ensure the symbol is non-external for AIX ABI.
772
773 2007-06-28  Nick Clifton  <nickc@redhat.com>
774
775         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
776         (fdce, fdse, fpredictive-commoning): Likewise.
777
778 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
779
780         PR other/31400
781         * gcc.c (process_command): Recognize the new -static-libgfortran
782         option.
783
784 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
785
786         PR target/32418
787         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
788         Use a call clobbered hard reg instead of a pseudo reg.
789
790 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
791
792         * config/sh/sh.md (load_gbr): Use correct operand constraint.
793
794 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
795
796         PR target/32479
797         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
798         REG_LIBCALL and REG_RETVAL notes.
799         (divsi3, mulsi3): Likewise.
800         (mulhisi3): Likewise.  Use emit_libcall_block.
801         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
802
803 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
804
805         PR rtl-optimization/32481
806         * combine.c (adjust_for_new_dest): Rescan the changed insn.
807
808 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
809
810         * dce.c (deletable_insn_p_1): New function, split out from...
811         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
812         specially, not those inside PARALLELs.  Remove BODY argument
813         and adjust recursive call accordingly.
814         (prescan_insns_for_dce): Update call to delete_insn_p.
815
816 2007-06-27  Richard Guenther  <rguenther@suse.de>
817
818         PR middle-end/32492
819         * tree.h (fold_convertible_p): Declare.
820         * fold-const.c (fold_convertible_p): New function.
821         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
822         instead of lang_hooks.types_compatible_p.
823
824 2007-06-26  Jan Hubicka  <jh@suse.cz>
825
826         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
827         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
828         early use validate_unshare_change.
829         (reload_combine): Likewise.
830         * recog.c (change_t): New field unshare.
831         (validate_change_1): Rename from validate_change; add argument unshare.
832         (validate_change): Turn into wrapper of validate_change_1; update
833         prototype for bools.
834         (validate_unshare_change): New.
835         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
836         calls of df_insn_rescan.
837         * recog.h (validate_change): Replace ints by bools.
838         (validate_unshare_change): Declare.
839
840 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
841
842         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
843         
844 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
845
846         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
847
848 2007-06-25  Jan Hubicka  <jh@suse.cz>
849
850         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
851         uninlinable call.
852         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
853         cgraph_decide_inlining_incrementally): Move uninlinability checks to
854         places other call site specific checks are performed.
855
856 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
857
858         PR tree-opt/32421
859         * tree-vect-transform.c (vectorizable_operation): Convert
860         POINTER_PLUS_EXPR over to PLUS_EXPR.
861
862 2007-06-25  Chao-ying Fu  <fu@mips.com>
863
864         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
865         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
866         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
867         Document GET_MODE_IBIT, and GET_MODE_FBIT.
868
869         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
870         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
871         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
872         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
873         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
874         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
875         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
876         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
877         ALL_FIXED_POINT_MODE_P): New define.
878         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
879         MODE_UACCUM.
880         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
881
882         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
883         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
884         MODE_VECTOR_UACCUM): New mode classes.
885
886         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
887         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
888         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
889         USA, UDA, and UTA.
890
891         * genmodes.c (struct mode_data): Add ibit and fbit fields.
892         (blank_mode): Initialize ibit and fbit.
893         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
894         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
895         (new_adjust): Change required_class to required_class_from and
896         required_class_to for testing within a range.
897         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
898         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
899         MODE_VECTOR_UACCUM.
900         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
901         (make_fixed_point_mode): New.
902         (_ADD_ADJUST): Change C to C1 and C2.
903         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
904         use a range for machine classes.
905         (ADJUST_IBIT, ADJUST_FBIT): New.
906         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
907         CONST_MODE_FBIT.
908         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
909         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
910         Emit adjustment for ibit and fbit.
911         (emit_mode_ibit, emit_mode_fbit): New.
912         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
913
914 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
915
916         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
917         as the source of the set.
918
919 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
920
921         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
922         FP_REGNO_P): Use IN_RANGE.
923         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
924         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
925         (DATA_REG_P): Use DATA_REGNO_P.
926         (FP_REG_P): Use FP_REGNO_P.
927         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
928         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
929         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
930
931 2007-06-24  Jan Hubicka  <jh@suse.cz>
932
933         PR middle-end/30563
934         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
935
936 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
937
938         PR middle-end/32461
939         * fold-const.c (fold_binary): Strip nops of operand 0
940         of BIT_NOT_EXPR before calling operand_equal_p.
941         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
942         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
943
944 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
945
946         * doc/extend.texi: Document that dllimport and dllexport imply
947         default visibility.
948         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
949         imported or exported declaration, including type declarations.
950         * c-common.c (handle_visibility_attribute): Check for conflicts
951         with dllimport/dllexport.
952         (c_determine_visibility): Handle dllimport/dllexport as an
953         explicit visibility atttribute.
954
955 2007-06-23  Richard Guenther  <rguenther@suse.de>
956
957         PR tree-optimization/16876
958         PR middle-end/29478
959         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
960         for CALL_EXPRs.
961         * tree-inline.c (initialize_inlined_parameters): Do not call
962         lang_hooks.tree_inlining.convert_parm_for_inlining.
963         * cgraphbuild.c (initialize_inline_failed): Set inline failed
964         reason for mismatched types.
965         * gimplify.c (gimplify_call_expr): Verify the call expression
966         arguments match the called function type signature.  Otherwise
967         mark the call expression to be not considered for inlining
968         using CALL_CANNOT_INLINE_P flag.
969         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
970         edges call expression.
971         (cgraph_decide_inlining_of_small_function): Likewise.
972         (cgraph_decide_inlining): Likewise.
973         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
974         Remove define.
975         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
976         * c-typeck.c (c_convert_parm_for_inlining): Remove.
977         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
978         Remove declaration.
979         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
980         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
981         Remove.
982         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
983         convert_parm_for_inlining member.
984
985 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
986
987         PR target/31152
988         * arm.md (negscc): Match the correct operand for optimized LT0 test.
989         Remove optimization for GT.
990
991 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
992
993         PR middle-end/32437
994         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
995         is a PARALLEL.
996         (prescan_insns_for_dce): Add extra parameter.
997         
998 2007-06-23  Jan Hubicka  <jh@suse.cz>
999
1000         PR middle-end/31541
1001         * gimplify.c (mark_addressable): New function.
1002         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
1003
1004 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
1005
1006         PR middle-end/32374
1007         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
1008
1009 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
1010
1011         PR target/32413
1012         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
1013         moves between MMX/SSE registers to at least 8 units to prevent
1014         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
1015
1016 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
1017
1018         * config/i386/i386.c (override_options): Correct x86_sahf
1019         setting condition.
1020
1021 2007-06-21  David Daney  <ddaney@avtrex.com>
1022
1023         PR target/32406
1024         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
1025         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
1026         (exception_receiver): Renamed to ...
1027         (nonlocal_goto_receiver): ... this.
1028
1029 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
1030
1031         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
1032         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
1033         partial register accesses.
1034
1035 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
1036
1037         * fold-const.c (debug_fold_checksum): Move it under
1038         ENABLE_FOLD_CHECKING.
1039
1040 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
1041
1042         PR middle-end/20623
1043         * tree.h (debug_fold_checksum): Declared.
1044         * fold-const.c (build_fold_addr_expr_with_type_1): New.
1045         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
1046         build_fold_addr_expr_with_type_1.
1047         (fold_addr_expr, debug_fold_checksum): New.
1048         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
1049         (fold_unary, fold_comparison, split_address_to_core_and_offset):
1050         Use fold_addr_expr.
1051         
1052 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
1053
1054         PR tree-optimization/19590
1055         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
1056         of scev is a constant.
1057         * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
1058
1059 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
1060
1061         * df-problems.c (df_note_bb_compute): Made computation of live
1062         info consistent with df_lr.
1063
1064 2007-06-21  Richard Guenther  <rguenther@suse.de>
1065
1066         PR tree-optimization/32453
1067         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
1068         for pointer anti-range.
1069
1070 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1071
1072         * config/i386/i386.c (processor_target_table): Increase maximum
1073         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
1074         default 64bit.
1075
1076         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
1077         byte alignment if > 8 byte alignment is preferred.
1078         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
1079
1080 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1081
1082         PR tree-optimization/31866
1083         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
1084         if ASM_EXPR's input is not a SSA_NAME.
1085
1086         PR middle-end/32362
1087         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
1088         but decl is a global var, instead return decl.
1089         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
1090         even for is_global_var decls, if they are private in some outer
1091         context.
1092
1093 2007-06-21  Richard Guenther  <rguenther@suse.de>
1094
1095         PR tree-optimization/32451
1096         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
1097
1098 2007-06-21  Christian Bruel  <christian.bruel@st.com>
1099
1100         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
1101         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
1102         (push_regs): Changed saving order or banked registers.
1103         (sh_expand_epilogue): Likewise.
1104         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
1105         (FIRST_BANKED_REG): Likewise.
1106         (LAST_BANKED_REG): Likewise.
1107         * config/sh/sh.md (banked) New attribute.
1108         (in_delay_slot): Check banked attribute.
1109         
1110 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
1111
1112         PR tree-optimization/32075
1113         * tree-data-ref.c (subscript_dependence_tester_1, 
1114         analyze_miv_subscript, analyze_overlapping_iterations,
1115         add_distance_for_zero_overlaps, build_classic_dist_vector,
1116         subscript_dependence_tester_1, analyze_overlapping_iterations,
1117         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
1118         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
1119         to evolution_function_is_affine_multivariate_p.
1120
1121 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
1122
1123         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
1124
1125 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1126
1127         PR target/32335
1128         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
1129         for TARGET_A16.
1130         * config/m32c/prologue.md (epilogue_exitd_16): New.
1131         (epilogue_reit_16): New.
1132         (epilogue_exitd): Rename to epilogue_exitd_24.
1133         (epilogue_reit): Rename to epilogue_reit_24.
1134
1135 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
1136             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1137
1138         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
1139         New counters.
1140         * haifa-sched.c (queue_to_ready): Don't requeue next insn
1141         if dbg_cnt (sched_insn) reaches the limit.
1142         (choose_ready): New parameter INSN_PTR and new return value.
1143         (schedule_block): Handle dbg_cnt (sched_insn). Handle
1144         the new return value from choose_ready.
1145         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
1146         (rest_of_handle_global_alloc): New global_alloc_at_func.
1147
1148 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
1149
1150         PR tree-optimization/25737
1151         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
1152         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
1153         * tree-flow.h (struct fieldoff): Add new field alias_set.
1154         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
1155         argument addressable_type.  Set alias_set of fieldoff.
1156         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
1157         (create_overlap_variables_for): Pass alias_set from fieldoff to
1158         create_sft.
1159         * alias.c (get_alias_set): Use alias_set from SFT if set.
1160
1161 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
1162
1163         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
1164         of a variable as an unsigned HOST_WIDE_INT integer.
1165
1166 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
1167
1168         PR rtl-optimization/32405
1169         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
1170
1171 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
1172
1173         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
1174
1175         PR middle-end/31959
1176         * builtins.c: Include diagnostic.h.
1177         (expand_builtin_expect): Make gcc_assert more permissive.
1178         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
1179
1180         PR inline-asm/32109
1181         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
1182         and !allows_mem.
1183
1184         PR middle-end/32285
1185         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
1186         if ACCUMULATE_OUTGOING_ARGS.
1187
1188 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1189
1190         * config/m68hc11/m68hc11.c: Include dataflow header file.
1191         (m68hc11_reorg): Port to dataflow.
1192
1193 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
1194
1195         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
1196         (struct df_problem.free_blocks_on_set_blocks): New field.
1197         (struct dataflow.optional_p): New field.
1198         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
1199         (df_live_set_all_dirty): New function.
1200         * df-scan.c (df_scan_alloc): Initialize optional_p.
1201         (problem_SCAN): Initialize free_blocks_on_set_blocks.
1202         * df-core.c (df_set_blocks): Removed use of
1203         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
1204         df_problem.free_blocks_on_set_blocks to determine which blocks are
1205         recycled.
1206         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
1207         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
1208         uses dataflow.optional_p to determine if problem should be
1209         deleted.
1210         (rest_of_handle_df_initialize): Only start live problem if 
1211         -02 or above.
1212         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
1213         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
1214         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
1215         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
1216         problem_NOTE):  Initialize free_blocks_on_set_blocks.
1217         (df_lr_bb_local_compute): Recompute luids if df_live problem is
1218         not active.
1219         (df_live_set_all_dirty, df_note_alloc): New function.
1220         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
1221         df_get_live_*.
1222         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
1223         * postreload.c (reload_combine): Ditto.
1224         * cse.c (cse_extended_basic_block): Ditto.
1225         * regmove.c (mark_flags_life_zones): Ditto.
1226         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
1227         erase_matching_seqs): Ditto.
1228         * bt-load.c (compute_defs_uses_and_gen): Ditto.
1229         * integrate (allocate_initial_values): Ditto.
1230         * combine.c (reg_dead_at_p): Ditto.
1231         * resource.c (mark_target_live_regs): Ditto.
1232         * sched-rgn.c (check_live_1, update_live_1): Ditto.
1233         * config/sh/sh.c (find_r0_life_regions): Ditto.
1234         * global.c (rest_of_handle_global_alloc): Only add back df_live
1235         for -O > 1.
1236         * local-alloc.c (rest_of_handle_local_alloc): Only remove
1237         df_live for -O > 1.
1238         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
1239         df_get_live_*.
1240         (if_convert): Make sure df_live is there at -O == 1.
1241         (pass_if_after_combine): Cleanup flags.
1242         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
1243         is there at -O == 1.
1244         
1245 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
1246
1247         * config/arm/arm.c (arm_get_frame_offsets): Set
1248         offsets->locals_base to avoid negative stack size.
1249         (thumb1_expand_prologue): Assert on negative stack size.
1250
1251 2007-04-19  Sebastian Pop  <sebpop@gmail.com>
1252
1253         PR tree-optimization/32367
1254         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
1255         of the chrec has no evolution in that loop.
1256         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
1257
1258 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
1259
1260         * config/xtensa/xtensa.c: Include "df.h".
1261         (xtensa_builtin_saveregs): Use adjust_address instead of change_address.
1262         (xtensa_va_start): Invoke make_tree with sizetype for
1263         expand_builtin_saveregs and then convert the result to a pointer.
1264         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
1265         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
1266         Subtract argument size from index value as integers and then use
1267         POINTER_PLUS_EXPR to add the result to the array address.
1268         
1269 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1270
1271         PR target/32335
1272         * config/m32c/m32c.c: Include dataflow header file.
1273         (m32c_emit_prologue): Adjust for prologue insn change.
1274         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
1275         once inside a PARALLEL. Assume frame size passed in operand 0
1276         includes space to save the fb register.
1277         (prologue_enter_24): Likewise.
1278         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
1279
1280 2007-06-19  David Daney  <ddaney@avtrex.com
1281
1282         PR target/32313
1283         * config/mips/mips.md (cprestore): Mark $gp as used.
1284
1285 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1286
1287         PR target/32369
1288         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
1289         (frv_ifcvt_modify_insn): Likewise.
1290
1291 2007-06-19  Richard Guenther  <rguenther@suse.de>
1292
1293         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
1294         only handle positive offsets that fit in a HOST_WIDE_INT.
1295
1296 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
1297
1298         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
1299         result of rsqrt insn for zero input argument to avoid NaN.
1300
1301 2007-06-19  Richard Guenther  <rguenther@suse.de>
1302
1303         PR middle-end/31950
1304         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
1305
1306 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
1307
1308         PR tree-optimization/32353
1309         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
1310
1311 2007-06-19  Nick Clifton  <nickc@redhat.com>
1312
1313         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
1314
1315 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
1316
1317         PR target/32389
1318         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
1319         * config/i386/i386.c (assign_386_stack_local): Assert that
1320         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
1321         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
1322         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
1323         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
1324
1325 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
1326
1327         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
1328
1329 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
1330
1331         PR rtl-optimization/32321
1332         * gcse.c (replace_store_insn): Update the note before
1333         calling emit_insn_after.
1334
1335 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
1336
1337         PR middle-end/32355
1338         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
1339         cse_main.
1340         * df-problems.c (df_note_bb_compute): Fix dumping info.
1341         
1342 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
1343
1344         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
1345         insn with emit_jump_insn.
1346
1347 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
1348
1349         PR tree-optimization/32383
1350         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
1351         * targhooks.h (default_builtin_reciprocal): Update prototype.
1352         * target.h (struct gcc_target): Update builtin_reciprocal.
1353         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
1354         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
1355         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
1356         when fndecl is in BUILT_IN_MD class.
1357         (execute_convert_to_rsqrt): Ditto.
1358
1359         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
1360         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
1361         Convert BUILT_IN_SQRTF code only  when md_fn is false.
1362
1363 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1364
1365         * bt-load.c (move_btr_def): Fix the order of arguments
1366         to validate_replace_rtx.
1367
1368 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
1369
1370         * config/m68k/m68k-devices.def: Add 54450..54455.
1371
1372 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
1373
1374         PR rtl-optimization/32366
1375         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
1376         FLOAT_EXTEND]: Prevent non-scalar modes from entering
1377         significand_size.
1378
1379 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
1380
1381         PR middle-end/32349
1382         * modulo-sched (generate_reg_moves): Added rescan parameter and if
1383         this is true, rescan insn being modified.
1384         (sms_schedule): Added rescan parameter.
1385         (rest_of_handle_sms): Moved freeing of dominance info to before
1386         getting out of cfg_layout.
1387         
1388 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
1389
1390         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
1391         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
1392         appropriate.
1393
1394         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
1395         FL_CF_EMAC from the entry for isac.
1396
1397         * config/m68k/predicates.md (const_call_operand): Adjust comment.
1398         (const_sibcall_operand): New.
1399         (sibcall_operand): Use it.
1400         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
1401         (m68k_isas): ISAC does not imply FPU or EMAC.
1402         (override_options): Add ISA_C logic for symbolic jump & call.
1403
1404 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1405
1406         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
1407         return mode from the builtin itself.
1408         (sparc_fold_builtin): Fix cast of zero constant.
1409
1410 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
1411
1412         * targhooks.c (default_builtin_reciprocal): New default target hook.
1413         * targhooks.h (default_builtin_reciprocal): Add prototype.
1414         * hooks.c (hook_tree_tree_bool_null): Remove hook.
1415         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
1416         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
1417         default_builtin_reciprocal.
1418
1419 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
1420
1421         PR middle-end/31723
1422         * hooks.c (hook_tree_tree_bool_null): New hook.
1423         * hooks.h (hook_tree_tree_bool_null): Add prototype.
1424         * tree-pass.h (pass_convert_to_rsqrt): Declare.
1425         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
1426         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
1427         and convert it to reciprocal a*rfunc(b).
1428         (execute_convert_to_rsqrt): New function.
1429         (gate_convert_to_rsqrt): New function.
1430         (pass_convert_to_rsqrt): New pass definition.
1431         * target.h (struct gcc_target): Add builtin_reciprocal.
1432         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
1433         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
1434         TARGET_BUILTIN_RECIPROCAL.
1435         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
1436
1437         * config/i386/i386.h (TARGET_RECIP): New define.
1438         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
1439         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1440         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1441         and not optimizing for size.
1442         (*rcpsf2_sse): New insn pattern.
1443         (*rsqrtsf2_sse): Ditto.
1444         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
1445         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1446         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1447         and not optimizing for size.
1448         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
1449         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1450         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1451         and not optimizing for size.
1452         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
1453         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1454         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1455         and not optimizing for size.
1456         (*sse_rsqrtv4sf2): Do not export.
1457         (sqrtv4sf2): Ditto.
1458         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
1459         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1460         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1461         and not optimizing for size.
1462         (sqrtv4sf2): Ditto.
1463         * config/i386/i386.opt (mrecip): New option.
1464         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
1465         (ix86_emit_swsqrtsf): Ditto.
1466         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
1467         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
1468         builtin definition.
1469         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
1470         ix86_expand_unop1_builtin.
1471         (ix86_emit_swdivsf): New function.
1472         (ix86_emit_swsqrtsf): Ditto.
1473         (ix86_builtin_reciprocal): New function.
1474         (TARGET_BUILTIN_RECIPROCAL): Use it.
1475         (ix86_vectorize_builtin_conversion): Rename from
1476         ix86_builtin_conversion.
1477         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
1478         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
1479         "i386 and x86_64 Options" section.
1480         (Intel 386 and AMD x86_64 Options): Document -mrecip.
1481
1482 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
1483             Zdenek Dvorak <dvorakz@suse.cz>
1484             Richard Guenther  <rguenther@suse.de>
1485             Kaz Kojima  <kkojima@gcc.gnu.org>
1486
1487         * tree-vrp.c (compare_values_warnv): Convert val2 to
1488         the type of val1.
1489         (extract_range_from_assert): Create
1490         POINTER_PLUS_EXPR for pointer types.
1491         (extract_range_from_binary_expr): Handle
1492         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
1493         for pointer types.
1494         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
1495         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
1496         POINTER_PLUS_EXPR as PLUS_EXPR.
1497         (number_of_iterations_lt_to_ne):
1498         For pointer types, use sizetype when
1499         creating MINUS_EXPR/PLUS_EXPRs.
1500         (assert_loop_rolls_lt): For pointer types, use sizetype when
1501         creating MINUS_EXPR/PLUS_EXPRs.
1502         (number_of_iterations_le): Likewise.
1503         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
1504         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
1505         like PLUS_EXPR and MINUS_EXPR.
1506         * tree-pretty-print.c (dump_generic_node): Handle
1507         POINTER_PLUS_EXPR.
1508         (op_prio): Likewise.
1509         (op_symbol_1): Likewise.
1510         * optabs.c (optab_for_tree_code): Likewise.
1511         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
1512         specially.
1513         * tree-tailcall.c (process_assignment): Mention
1514         POINTER_PLUS_EXPR in a TODO comment.
1515         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
1516         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
1517         not used with a pointer and an integer type.
1518         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
1519         increment using chrec_convert_rhs instead of chrec_convert.
1520         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
1521         PLUS_EXPR except for the right hand side's type will be
1522         sizetype.
1523         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
1524         (fold_used_pointer_cast): Kill.
1525         (pointer_offset_p): Kill.
1526         (fold_used_pointer): Kill.
1527         (pointer_used_p): Kill.
1528         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
1529         call fold_used_pointer.
1530         (instantiate_parameters_1): Convert the increment
1531         using chrec_convert_rhs instead of chrec_convert.
1532         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
1533         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
1534         instead of PLUS_EXPR.
1535         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
1536         PLUS_EXPR for pointers.
1537         (std_gimplify_va_arg_expr): Likewise.
1538         (fold_builtin_memory_op): Likewise.
1539         (fold_builtin_strstr): Likewise.
1540         (fold_builtin_strchr): Likewise.
1541         (fold_builtin_strrchr): Likewise.
1542         (fold_builtin_strpbrk): Likewise.
1543         (expand_builtin_memory_chk): Likewise.
1544         (fold_builtin_memory_chk): Likewise.
1545         (std_expand_builtin_va_start): Use
1546         sizetype for the call to make_tree and then convert
1547         to the pointer type.
1548         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
1549         instead of PLUS_EXPR for adding to a pointer.
1550         (std_gimplify_va_arg_expr): Use fold_build2 for
1551         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
1552         the operands to sizetype first and then cast the BIT_AND_EXPR
1553         back to the pointer type.
1554         * fold-const.c (build_range_check): Handle pointer types
1555         specially.
1556         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
1557         of PLUS_EXPR's. Make sure the offset is converted to
1558         sizetype.
1559         (try_move_mult_to_index): Strip the NOPs from the offset.
1560         Remove code argument and replace all uses with PLUS_EXPR.
1561         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
1562         specially. Don't use a pointer type for MINUS_EXPR.
1563         (fold_unary): Handle for (T1)(X op Y),
1564         only p+ as that is the only as that can be handled for
1565         binary operators now.
1566         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
1567         POINTER_PLUS_EXPR.
1568         <case PLUS_EXPR>: Add folding of PTR+INT into
1569         PTR p+ INT.
1570         Don't call try_move_mult_to_index.
1571         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
1572         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
1573         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
1574         Don't call try_move_mult_to_index.
1575         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
1576         (tree_expr_nonzero_p): Likewise.
1577         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
1578         of PLUS_EXPR for the complex expression folding.
1579         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
1580         first chrec is a pointer type, then the second should
1581         be sizetype and not the first's type.
1582         For POINTER_PLUS_EXPR, use a different right hand side type.
1583         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1584         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
1585         different right hand side type.
1586         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1587         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
1588         instead of PLUS_EXPR.
1589         When either operand is zero, convert the other operand.
1590         (chrec_apply): Use chrec_convert_rhs
1591         on the argument x instead of chrec_convert.
1592         (reset_evolution_in_loop): For pointer types, the new_evol
1593         should be sizetype.
1594         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
1595         different right hand side type.
1596         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1597         (chrec_convert_rhs): New function.
1598         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
1599         different right hand side type.
1600         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1601         * tree-chrec.h (chrec_convert_rhs): New prototype.
1602         (build_polynomial_chrec): For pointer types, the right hand
1603         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
1604         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
1605         Remove subtraction case as it is always addition now.
1606         Make sure the offset is converted to sizetype.
1607         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
1608         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
1609         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
1610         PLUS_EXPR in pointer type.
1611         Handle POINTER_PLUS_EXPR.
1612         (tree_to_aff_combination): Likewise.
1613         (force_expr_to_var_cost): Likewise.
1614         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
1615         instead of PLUS_EXPR for pointers.
1616         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
1617         instead of PLUS_EXPR of pointer types.
1618         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
1619         as PLUS_EXPR.
1620         (check_va_list_escapes): Likewise.
1621         (check_all_va_list_escapes): Likewise.
1622         * dwarf2out.c (loc_descriptor_from_tree_1):
1623         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
1624         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
1625         (string_constant): Likewise.
1626         * tree-ssa-address.c (tree_mem_ref_addr): When adding
1627         the offset to the base, use POINTER_PLUS_EXPR.
1628         (add_to_parts): Convert the index to sizetype.
1629         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
1630         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
1631         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
1632         Offset only holds something for PLUS_EXPR.
1633         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
1634         a PLUS_EXPR.
1635         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
1636         and not PLUS_EXPR.
1637         (analyze_accesses_for_modify_stmt): Likewise.
1638         Remove comment about the type being integral type as it is
1639         wrong now.
1640         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
1641         PLUS_EXPR.
1642         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
1643         and not PLUS_EXPR.
1644         Correct the type which the artimentic is done in (is now
1645         sizetype).
1646         Reindent one loop.
1647         * tree-data-ref.c (split_constant_offset): Handle
1648         POINTER_PLUS_EXPR
1649         * tree-affine.c (tree_to_aff_combination): Likewise.
1650         * c-typeck.c (build_unary_op): For pointers create the increment
1651         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
1652         for pointers.
1653         * gimplify.c (gimplify_self_mod_expr): Create a
1654         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1655         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
1656         * tree.def (POINTER_PLUS_EXPR): New tree code.
1657         * tree-predcom.c (ref_at_iteration): If we have a pointer
1658         type do the multiplication in sizetype.
1659         * tree-mudflap.c (mf_xform_derefs_1): Create a
1660         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1661         * tree-ssa-forwprop.c 
1662         (forward_propagate_addr_into_variable_array_index):
1663         Don't expect there to be a cast for the index as that
1664         does not exist anymore.
1665         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
1666         instead of PLUS_EXPR.
1667         Don't check for the first operand of the POINTER_PLUS_EXPR
1668         was the index as it cannot be.
1669         Call forward_propagate_addr_into_variable_array_index with
1670         the SSA_NAME instead of the statement.
1671         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
1672         (compare_constant): Likewise.
1673         (copy_constant): Likewise.
1674         (compute_reloc_for_constant): Likewise.
1675         (output_addressed_constants): Likewise.
1676         (initializer_constant_valid_p): Likewise.
1677         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
1678         Convert the MIN/MAX of the inner type to the outer
1679         type before comparing them.
1680         * tree-ssa-loop-prefetch.c (idx_analyze_ref):  Handle
1681         POINTER_PLUS_EXPR instead of PLUS_EXPR.
1682         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
1683         of PLUS_EXPR for pointers.
1684         * tree-inline.c (estimate_num_insns_1): Handle
1685         POINTER_PLUS_EXPR.
1686         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
1687         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1688         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
1689         instead of PLUS_EXPR for the pointer increment statement.
1690         (vect_update_ivs_after_vectorizer): For pointer types, create
1691         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
1692         MULT_EXPR in sizetype.
1693         (vect_gen_niters_for_prolog_loop): Add a cast when creating
1694         byte_misalign.
1695         * tree-object-size.c (plus_expr_object_size): Handle
1696         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
1697         code which is trying to figure out which side is a pointer and 
1698         is the index.
1699         (check_for_plus_in_loops_1): Likewise.
1700         (check_for_plus_in_loops): Likewise.
1701         * c-common.c (pointer_int_sum): Create a
1702         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1703         * tree-ssa-structalias.c (handle_ptr_arith): Handle
1704         only POINTER_PLUS_EXPR.  Removing all the extra
1705         code which is trying to figure out which side is a pointer and 
1706         is the index.
1707         * tree-cfg.c (verify_expr): Add extra checking for pointers and
1708         PLUS_EXPR and MINUS_EXPR.
1709         Also add checking to make sure the operands of POINTER_PLUS_EXPR
1710         are correct.
1711         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
1712         with make_tree, instead of a pointer type.
1713         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
1714         for pointers instead of PLUS_EXPR.
1715         (s390_gimplify_va_arg): Likewise.
1716         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
1717         instead of PLUS_EXPR when doing addition on pointer
1718         types.  Use sizetype for the second operand.
1719         (spu_gimplify_va_arg_expr): Likewise.
1720         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
1721         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
1722         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
1723         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
1724         for the pointer addition and also use size_int/sizetype
1725         for the offset.
1726         (ix86_gimplify_va_arg): Likewise.
1727         Perform BIT_AND_EXPR on sizetype arguments.
1728         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
1729         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
1730         for the pointer additions and also use size_int for the offsets.
1731         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
1732         additions and also use size_int for the offsets.  Perform
1733         BIT_AND_EXPR on sizetype arguments.
1734         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
1735         POINTER_PLUS_EXPR for pointers and create the
1736         BIT_AND_EXPR in sizetype.
1737         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
1738         instead of PLUS_EXPR for pointer addition.
1739         (rs6000_va_start): Likewise.
1740         Also use sizetype for the offset.
1741         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
1742         as PLUS_EXPR/MINUS_EXPR.
1743         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
1744         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
1745         Don't use BIT_AND_EXPR on a pointer type, convert the
1746         expression to sizetype first.
1747         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
1748         for pointers.
1749         (mips_gimplify_va_arg_expr): Likewise.
1750         Don't create BIT_AND_EXPR in a pointer type.
1751
1752 2007-06-15  Eric Christopher  <echristo@apple.com>
1753
1754         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
1755         (x86_64-*-darwin*): Ditto.
1756         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
1757         for above.
1758
1759 2007-06-15  Matthew Wilcox <matthew@wil.cx>
1760
1761         * doc/extend.texi: Document behavior of __attribute__((aligned))
1762         on typedefs.
1763
1764 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
1765
1766         * rtlanal.c (note_stores): Improve documentation.
1767
1768 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1769
1770         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
1771         LOCAL_LABEL_PREFIX): Delete.
1772         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
1773         (bfin_internal_label): Delete.
1774
1775 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
1776
1777         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
1778         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
1779         otherwise define to LIBGCC2_TF_CEXT.
1780         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
1781         (LIBGCC_TF_CEXT): Ditto.
1782         (TF_SIZE): Ditto.
1783
1784 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
1785
1786         PR rtl-optimization/32339
1787         * df-scan.c (df_uses_record): Don't modify flags but just add to
1788         it for df_ref_record.
1789
1790 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1791
1792         * tree-mudflap.c: Fix whitespace issues.
1793
1794 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
1795
1796         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
1797
1798 2007-06-14  Eric Christopher  <echristo@apple.com>
1799
1800         * config/i386/sse.md (movdi_to_sse): Rewrite body.
1801         (movv4sf): Use gcc_unreachable instead of abort.
1802
1803 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
1804
1805         PR target/32268
1806         * config/i386/sfp-machine.h (CMPtype): New define.
1807         (mach stubs): Use CMPtype instead of int as a return type.
1808
1809 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
1810
1811         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
1812         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
1813         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
1814         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
1815         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
1816         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
1817         config/soft-fp/soft-fp.h: Update from glibc CVS.
1818
1819 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
1820
1821         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
1822
1823 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1824
1825         PR target/32341
1826         * config/v850/v850.c: Include dataflow header file.
1827         (substitute_ep_register): Fix typo.
1828
1829 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
1830
1831         * configure.ac: Fix earlier checkin.
1832         * configure: Regenerated.
1833
1834 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
1835
1836         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
1837         * aclocal.m4: Regenerate.
1838         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
1839         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
1840         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
1841         * configure: Regenerate.
1842         * Makefile.in (LOOSE_WARN): Subst loose_warn.
1843
1844         * Makefile.in (quickstrap): Build libgcc too.
1845
1846 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
1847
1848         * configure.ac: Add --enable-checking=df.  Explicitly mention that
1849         the variables are initialized as for "release".
1850         * df-core.c: Use it.
1851         * configure: Regenerate.
1852         * config.in: Regenerate.
1853
1854 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
1855
1856         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
1857         validate_replace_rtx instead of replace_rtx.
1858         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
1859
1860 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
1861
1862         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
1863         (DWARF2_UNWIND_INFO): Override default if configured with
1864         SJLJ EH disabled.
1865         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
1866         (ENDFILE_SPEC): Add crtend.o.
1867         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
1868         (ENDFILE_SPEC): Add crtend.o.
1869         (TARGET_USE_JCR_SECTION): Define.
1870         (MD_UNWIND_SUPPORT): Define for 32-bit target.
1871
1872         * config/i386/cygming-crtbegin.c: New file.
1873         * config/i386/cygming-crtend.c: New file.
1874
1875 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
1876
1877         * config/i386/w32-unwind.h: New file.
1878
1879 2007-06-13  Eric Christopher  <echristo@apple.com>
1880
1881         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
1882         the user set a value below STACK_BOUNDARY.
1883
1884 2007-06-13  Thiemo Seufer  <ths@networkno.de>
1885
1886         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
1887         imply -lpthread for -pthread.
1888
1889 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
1890
1891         * basic-block.h: Remove the prototype for
1892         free_basic_block_vars.
1893         * cfglayout.h: Remove the prototype for
1894         insn_locators_initialize.
1895         * tree.h: Remove the prototype for emit_line_note.
1896
1897         * tree-ssa-pre.c (mergephitemp): Remove.
1898         (init_pre): Don't use mergephitemp.
1899
1900 2007-06-13  Eric Christopher  <echristo@apple.com>
1901
1902         * config/i386/i386.c (override_options): If we've specified
1903         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
1904
1905 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
1906
1907         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
1908         is defined.
1909
1910 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1911
1912         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
1913         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
1914         (eh_store_handler): New pattern.
1915         (eh_return): Emit it instead of a plain move.
1916
1917 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
1918
1919         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
1920         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
1921         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
1922         def_builtin_const.
1923
1924 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1925
1926         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
1927         (find_next_insn_start, find_load): New functions.
1928         (bfin_reorg): Use them to deal with the fact that parallel insns are
1929         no longer represented as a SEQUENCE.
1930
1931 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1932
1933         * config/sparc/sparc.c (sparc_override_options): Initialize
1934         fpu mask correctly.
1935
1936 2007-06-13  Dave Korn  <dave.korn@artimi.com>
1937
1938         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
1939         df_get_live_out.
1940
1941 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
1942
1943         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
1944         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
1945         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
1946         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
1947         tree-vect-transform.c: Fix comment typos.  Follow spelling
1948         conventions.
1949
1950 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
1951
1952        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
1953        to the exit block use set.
1954        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
1955        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
1956        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
1957
1958 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
1959
1960         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
1961         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
1962         to indicate an error.
1963         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters): New functions
1964         (dbg_cnt_process_opt): Print an error on a bad argument.
1965         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
1966         * common.opt (-fdbg-cnt-list): New.
1967         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
1968
1969 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1970
1971         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
1972         flag on ref-all pointers.
1973
1974 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1975
1976         PR middle-end/31579
1977         * expr.c (expand_expr_addr_expr_1): Call expand_expr
1978         for the offset with the modifier as EXPAND_INITIALIZER
1979         if the modifier is EXPAND_INITIALIZER.
1980         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
1981         a register if we had an overflow.
1982
1983 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1984
1985         * real.c (real_isfinite): New.
1986         (real_sqrt): Use it.
1987         * real.h (real_isfinite): New.
1988         * builtins.c: Use it.
1989
1990 2007-06-12  Ian Lance Taylor  <iant@google.com>
1991             Daniel Berlin  <dberlin@dberlin.org>
1992
1993         PR libstdc++/29286
1994         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
1995         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
1996         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
1997         (DECL_NO_TBAA_P): Define.
1998         (struct tree_decl_common): Add no_tbaa_flag field.
1999         * tree-ssa-structalias.c (struct variable_info): Add
2000         no_tbaa_pruning field.
2001         (new_var_info): Initialize no_tbaa_pruning field.
2002         (unify_nodes): Copy no_tbaa_pruning field.
2003         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
2004         (dump_solution_for_var): Print no_tbaa_pruning flag.
2005         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
2006         callers.
2007         (compute_tbaa_pruning): New static function.
2008         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
2009         Call compute_tbaa_pruning.
2010         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
2011         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
2012         * gimple-low.c (lower_stmt): Likewise.
2013         * tree-gimple.c (is_gimple_stmt): Likewise.
2014         * tree-ssa-operands.c (get_expr_operands): Likewise.
2015         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2016         * tree-inline.c (estimate_num_insns_1): Likewise.
2017         (copy_result_decl_to_var): Likewise.
2018         * expr.c (expand_expr_real_1): Likewise.
2019         * tree-pretty-print.c (dump_generic_node): Likewise.
2020         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
2021         * omp-low.c (omp_copy_decl_2): Likewise.
2022         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
2023         * doc/c-tree.texi (Expression trees): Document
2024         CHANGE_DYNAMIC_TYPE_EXPR.
2025
2026 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2027
2028         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
2029         with !HONOR_NANS and !HONOR_INFINITIES.
2030         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2031
2032 2007-06-12  Tristan Gingold  <gingold@adacore.com>
2033
2034         * gcov.c: Comments updated.
2035         (source_info): Add file_time field.
2036         (source_index): New variable.
2037         (mutiple_files): New variable.
2038         (generate_results): New function extracted from process_file.
2039         (process_file): Save and restore chain of functions, generate
2040         results and free structures only if not merging results.
2041         (release_structures): File names are now freed in create_file_names
2042         (create_file_names): Free previous file names.
2043         (find_source): File date is now read here and modifications in
2044         source files is checked here.
2045         (read_graph_file): Only reverse order of functions for the current
2046         object file.
2047         (make_gcov_file_name): Do not generate long names if input_name is
2048         NULL.
2049         (output_lines): If merging results do not display graph, data and
2050         runs informations.
2051         Checking source file modification is done in find_source.
2052
2053         * doc/gcov.texi: Append an s to sourcefile.
2054
2055 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2056
2057         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
2058         (forced_nop): New pattern.
2059         * config/bfin/bfin.c: Include "df.h".
2060         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
2061         (bfin_discover_loop): Use df_get_live_in instead of
2062         global_live_at_start.
2063         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
2064         df_analyze when done.
2065         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
2066         the insns.  Use QImode for the final insn in a bundle.  Call
2067         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
2068         gen_nop.
2069         (reorder_var_tracking_notes): New function.
2070         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
2071         update_life_info.  Call df_analyze after scheduling and bundle
2072         generation.  Call reorder_var_tracking_notes if generating these notes.
2073         Call df_finish_pass at the end.
2074
2075 2007-06-12  Dirk Mueller  <dmueller@suse.de>
2076
2077         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
2078         a comparison, not an assignment.
2079
2080 2007-06-12  Olivier Hainque  <hainque@adacore.com>
2081
2082         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
2083         Request walking the subtrees only, leaving the current is_lhs/val_only
2084         untouched.
2085         (convert_non_local_reference): Likewise.
2086
2087 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
2088
2089         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
2090
2091 2007-06-12  Richard Guenther  <rguenther@suse.de>
2092
2093         PR tree-optimization/15353
2094         PR tree-optimization/31657
2095         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
2096         * timevar.def: Add TV_TREE_IFCOMBINE.
2097         * tree-pass.h (pass_tree_ifcombine): Declare.
2098         * tree-ssa-ifcombine.c: New file.
2099         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
2100         * tree-flow.h (blocks_in_phiopt_order): Declare.
2101         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
2102         (tree-ssa-ifcombine.o): New dependencies.
2103
2104 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
2105
2106         PR rtl-optimization/32293
2107         * combine.c (simplify_if_then_else): Truncate return from
2108         nonzero_bits() to correct mode.
2109
2110 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
2111
2112         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
2113         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
2114
2115 2007-06-11  Diego Novillo  <dnovillo@google.com>
2116
2117         * Makefile.in (reload1.o-warn): Remove.
2118
2119 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
2120
2121         * combine.c (subst): Use reg_overlap_mentioned_p
2122         instead of comparing register numbers directly.
2123
2124 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
2125
2126         * reload1.c (mark_home_live_1): Use the mode parameter.
2127
2128 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
2129
2130         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
2131         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
2132         word "deferred".
2133         * df-core.c: Ditto.
2134
2135 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
2136
2137         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
2138
2139 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
2140
2141         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
2142         from integer registers.
2143         (FP mode splitters): Handle TFmode.
2144
2145 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2146
2147         * tree-ssa-structalias.c (find_what_p_points_to): Return false
2148         for ref-all pointers that point-to anything.
2149
2150 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
2151
2152         * config/arm/arm.c (arm_output_dwarf_dtprel,
2153         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
2154
2155 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2156
2157         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
2158         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
2159         to memory moves.
2160
2161 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
2162
2163         * gcc/tree.c (signed_or_unsigned_type_for): New.
2164         (unsigned_type_for): Use signed_or_unsigned_type_for.
2165         (signed_type_for): Use signed_or_unsigned_type_for.
2166         * gcc/tree.h (signed_or_unsigned_type_for): New.
2167         (get_signed_or_unsigned_type): Remove.
2168         * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
2169         lang_hooks.types.signed_type
2170         (size_diffop): Likewise.
2171         (all_ones_mask_p): Likewise.
2172         (build_range_check): Likewise.
2173         (fold_cond_expr_with_comparison): Likewise.
2174         (fold_cond_expr_with_comparison): Likewise.
2175         (unextend): Likewise.
2176         (extract_muldiv_1): Likewise.
2177         (fold_single_bit_test_into_sign_test): Likewise.
2178         (fold_binary): Likewise.
2179         (fold_ternary): Likewise.
2180         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
2181         instead of get_signed_or_unsigned_type.
2182         * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
2183         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2184         * gcc/expr.c (signed_or_unsigned_type_for): Use
2185         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
2186         * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
2187         (lhd_signed_or_unsigned_type): Remove.
2188         * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
2189         signed_or_unsigned_type.
2190         (lhd_signed_or_unsigned_type): Remove.
2191         * gcc/expmed.c (make_tree): Use signed_type_for instead of
2192         lang_hooks.types.signed_type.
2193         * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
2194         c_common_signed_type instead of lang_hooks.types.signed_type.
2195         (c_common_unsigned_type): New.
2196         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
2197         (shorten_compare): Use c_common_unsigned_type instead of
2198         c_common_signed_or_unsigned_type.
2199         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
2200         unsigned_type_for.
2201         * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
2202         lang_hooks.types.signed_type.
2203         * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2204         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
2205         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
2206         * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
2207         instead of unsigned_type_for.
2208         * gcc/c-decl.c (groakdeclarator): Likewise.
2209         * gcc/c-typeck.c (convert_for_assignment): Likewise.
2210         * gcc/c-common.h (c_common_unsigned_type): New.
2211
2212 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
2213
2214         PR target/32280
2215         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
2216         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
2217
2218 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
2219
2220         PR middle-end/32279
2221         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
2222         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
2223
2224 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
2225             Sebastian Pop  <sebpop@gmail.com>
2226
2227         * lambda-code.c (remove_iv): New.
2228         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
2229
2230 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
2231
2232         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
2233         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
2234         * tree-ssa-loop-prefetch.c: Include optabs.h.
2235         (FENCE_FOLLOWING_MOVNT): New macro.
2236         (struct mem_ref): Add independent_p and storent_p fields.
2237         (record_ref): Initalize the new fields.
2238         (gather_memory_references_ref): Return true if the reference
2239         could be analysed.
2240         (gather_memory_references): Check whether all memory accesses
2241         in loop were recorded.
2242         (should_issue_prefetch_p): Return false for nontemporal stores.
2243         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
2244         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
2245         (determine_loop_nest_reuse): Detect independent memory references.
2246         (loop_prefetch_arrays): Call mark_nontemporal_stores.
2247         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
2248         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
2249         * config/i386/i386.h (x86_mfence): Declare.
2250         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
2251         * config/i386/i386.c (x86_mfence): New variable.
2252         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
2253
2254         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
2255         * optabs.c (init_optabs): Initialize storent_optab.
2256         * optabs.h (enum optab_index): Add OTI_storent.
2257         (storent_optab): Declare.
2258         * genopinit.c (optabs): Add initialization for storent_optab.
2259         * tree.h (MOVE_NONTEMPORAL): New macro.
2260         * expr.c (expand_assignment, store_expr, store_constructor_field,
2261         store_constructor, store_field, expand_expr_real_1): Propagate
2262         nontemporality of the expanded store.
2263         (emit_storent_insn): New function.
2264         * expr.h (expand_assignment, store_expr): Declaration changed.
2265         * function.c (assign_parm_setup_reg): Pass false as nontemporality
2266         to expand_assignment.
2267         * stmt.c (expand_asm_expr): Ditto.
2268         * calls.c (initialize_argument_information): Pass false as
2269         nontemporality to store_expr.
2270         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
2271         storentsi): New.
2272
2273 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
2274
2275         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
2276         parameter, use it.
2277         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
2278
2279 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
2280
2281         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
2282         and allow DECL_P here.
2283
2284 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
2285
2286         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
2287         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
2288         track of the size of the expression.
2289         * cfghooks.c (merge_blocks): Remove block from loops structure only
2290         after call of the merge_blocks hook.
2291
2292 2007-06-09  Tom Tromey  <tromey@redhat.com>
2293
2294         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
2295         (deprecated_state): Removed.
2296         (start_decl): Update.
2297         (enum deprecated_states): Moved earlier.
2298         (groktypename): Update.
2299         (push_parm_decl): Likewise.
2300         (grokfield): Likewise.
2301         (start_function): Likewise.
2302
2303 2007-06-09  Ian Lance Taylor  <iant@google.com>
2304
2305         PR tree-optimization/32169
2306         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
2307         CONVERT_EXPR, check whether min and max both converted to an
2308         overflow infinity representation.
2309
2310 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
2311
2312         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
2313         not inserted on the edge.
2314
2315 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
2316
2317         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
2318         instructions if they are supported.
2319         (__divsi3, __umodsi3, __modsi3): Likewise.
2320         (__ashldi3, __ashrdi3, __lshrdi3): New.
2321         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
2322
2323 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
2324             Tony Linthicum <tony.linthicum@amd.com>
2325
2326         * doc/extend.texi: Add fvect-cost-model flag.
2327         * common.opt (fvect-cost-model): New flag.
2328         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
2329         cost fields in stmt_vec_info struct for STMT.
2330         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
2331         fields in stmt_vec_info struct and access functions for the same.
2332         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
2333         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
2334         load, store and vector to scalar operation.
2335         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
2336         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
2337         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
2338         (TARG_VEC_STORE_COST): Define cost of vector store.
2339         (vect_estimate_min_profitable_iters): Define new function.
2340         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
2341         check to evaluate if loop iterations are less than minimum profitable
2342         iterations determined by cost model or minimum vect loop bound defined
2343         by user, whichever is more conservative.
2344         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
2345         run-time check to evaluate if loop iterations are less than minimum
2346         profitable iterations determined by cost model or minimum vect loop
2347         bound defined by user, whichever is more conservative.
2348         (vect_estimate_min_profitable_iterations): New function to estimate
2349         mimimimum iterartions required for vector version of loop to be
2350         profitable over scalar version.
2351         (vect_model_reduction_cost): New function.
2352         (vect_model_induction_cost): New function.
2353         (vect_model_simple_cost): New function.
2354         (vect_cost_strided_group_size): New function.
2355         (vect_model_store_cost): New function.
2356         (vect_model_load_cost): New function.
2357         (vectorizable_reduction): Call vect_model_reduction_cost during
2358         analysis phase.
2359         (vectorizable_induction): Call vect_model_induction_cost during
2360         analysis phase.
2361         (vectorizable_load): Call vect_model_load_cost during analysis phase.
2362         (vectorizable_store): Call vect_model_store_cost during analysis phase.
2363         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
2364         vectorizable_promotion, vectorizable_demotion): Call
2365         vect_model_simple_cost during analysis phase.
2366
2367 2007-06-08  Simon Baldwin  <simonb@google.com>
2368
2369         * reg-stack.c (get_true_reg): Readability change.  Moved default case
2370         label into direct switch statement scope.
2371
2372 2007-06-08  Simon Baldwin  <simonb@google.com>
2373
2374         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
2375         in gcc_assert() with '==' comparison.
2376
2377 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2378
2379         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
2380         TARGET_ABM handling of x86_popcnt variable.
2381
2382 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2383
2384         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
2385         __builtin_copysignq and __builtin_infq built-in functions.
2386
2387 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2388
2389         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
2390         SSE4.2 section.  Correct built-in function names in SSE4A section.
2391
2392 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
2393
2394         PR tree-optimization/32243
2395         * tree-vect-transform.c (vectorizable_type_promotion): Move check
2396         for ncopies after ratio check between nunits_out and nunits_in.
2397         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
2398
2399 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
2400
2401         PR tree-optimization/32224
2402         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
2403         vectorization upon a non GIMPLE_MODIFY_STMT.
2404
2405 2007-06-08  Christian Bruel  <christian.bruel@st.com>
2406
2407         PR target/29953
2408         * config/sh/sh.md (doloop_end): New pattern and splitter.
2409         * loop-iv.c (simple_rhs_p): Check for hardware registers.
2410
2411 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
2412
2413         PR middle-end/32209
2414         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
2415         functions.
2416         (verify_dominators): Do not change dominance tree.
2417
2418 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2419
2420         * config/sh/constraints.md: New file.
2421         * config/sh/sh.c: Include tm-constrs.h.
2422         (reg_class_from_letter): Remove.
2423         (prepare_cbranch_operands): Use satisfies_constraint_*
2424         function instead of macro.
2425         (andcosts, broken_move, sh_secondary_reload): Likewise.
2426         * config/sh/predicates.md (trapping_target_operand): Likewise.
2427         (and_operand, arith_operand, arith_reg_or_0_operand,
2428         cmp_operand, logical_operand, target_operand,
2429         ua_address_operand, ua_offset, xor_operand): Likewise.
2430         * config/sh/sh.md: Include constraints.md.
2431         (*movsicc_t_false): Use satisfies_constraint_* function
2432         instead of macro.
2433         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
2434         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
2435         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
2436         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
2437         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
2438         (REG_CLASS_FROM_CONSTRAINT): Remove.
2439         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
2440         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
2441         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
2442         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
2443         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2444         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
2445         function instead of macro.
2446         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2447         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
2448         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
2449         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
2450         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
2451         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
2452         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
2453         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
2454         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
2455         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
2456         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
2457         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
2458         EXTRA_CONSTRAINT_STR): Likewise.
2459         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
2460
2461 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
2462
2463         * config/i386/darwin.h (STACK_BOUNDARY): Define.
2464
2465 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
2466
2467         PR c++/30759
2468         * c-common.h (flag_cpp0x): Replaced by...
2469         (cxx_dialect): ... this new variable specifying the C++ dialect that
2470         is used.
2471         * c-common.c (flag_cpp0x): Removed.
2472         (cxx_dialect): Defined.
2473         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
2474         cxx_dialect.
2475         * c-opts.c (c_common_post_options): Likewise.
2476         (set_std_cxx98): Set cxx_dialect to cxx98.
2477         (set_std_cxx0x): Set cxx_dialect to cxx0x.
2478
2479 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
2480             Hui-May Chang <hm.chang@apple.com>
2481
2482         * doc/invoke.texi (Darwin Options): Update documentation for
2483         -mmacosx-version-min.
2484         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
2485         * config/darwin-driver.c: New file.
2486         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
2487         * config/t-darwin (darwin-driver.o): New rule.
2488
2489         * config/darwin-c.c (version_as_macro): Ignore low digit.
2490
2491 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
2492
2493         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
2494         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
2495         (CSGNMODE): New mode macro.
2496         (CSGNVMODE): New mode attribute.
2497         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
2498         expander using CSGNMODE mode macro.  Handle TFmode.
2499         (copysign<mode>3_const): Rename from copysignsf3_const and
2500         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
2501         Handle TFmode.
2502         (copysign<mode>3_var): Rename from copysignsf3_var and
2503         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
2504         Handle TFmode.
2505         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
2506         mode macro.  Handle TFmode.
2507         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
2508         (iortf3, *iortf3): Ditto.
2509         (xortf3, *xortf3): Ditto.
2510         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
2511         TFmode and TImode masks.
2512         (ix86_expand_copysign): Expand TFmode copysign insn.
2513         (IX86_BUILTIN_INFQ): New.
2514         (IX86_BUILTIN_FABSQ): Ditto.
2515         (IX86_BUILTIN_COPYSIGNQ): Ditto.
2516         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
2517         [__builtin_fabsq]: Ditto.
2518         [__builtin_copysignq]: Ditto.
2519         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
2520         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
2521         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
2522         ix86_expand_binop_builtin().
2523
2524 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
2525
2526         * config/xtensa/lib1funcs.asm: Clean up whitespace.
2527
2528 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
2529
2530         PR target/31850
2531         * rtl.h (push_to_sequence2): New.
2532         * emit-rtl.c (push_to_sequence2): New.
2533         * function.c (assign_parm_data_all): Add new fields.
2534         (assign_parm_setup_block): Call push_to_sequence2 instead of
2535         push_to_sequence.
2536         (assign_parm_setup_reg): Ditto.
2537         (assign_parm_setup_stack): Ditto.
2538         (assign_parms_unsplit_complex): Ditto.
2539         (assign_parms): Change field name.
2540
2541 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
2542
2543         PR tree-optimization/32220
2544         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
2545         phi node is reached before defining statement.
2546
2547 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2548
2549         PR tree-opt/32231
2550         * tree-vect-transform.c (vectorizable_call): Call update_stmt
2551         after changing the right hand side of the assignment.
2552
2553 2007-06-06  Eric Christopher  <echristo@apple.com>
2554
2555         * config.gcc (i?86-*-darwin*): Remove arch parameter.
2556         (x86_64-*-darwin*): Ditto.
2557         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
2558         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
2559
2560 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
2561
2562         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
2563         coding conventions.
2564         (add_key): Likewise.
2565         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
2566         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
2567         variable names.
2568         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory macros.
2569         (add_cost_one_coalesce): Likewise.
2570         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
2571         variable names. Rename orig to orig_name for consistency.
2572         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the coding
2573         conventions.
2574         (cprop_into_successor_phis): Avoid using C++ keywords as variable names.
2575         (record_equivalences_from_stmt): Likewise.
2576         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
2577         the coding conventions.
2578         (memory_ssa_name_same): Likewise.
2579         (dse_optimize_stmt): Likewise.
2580         (dse_record_phis): Likewise.
2581         (dse_finalize_block): Likewise.
2582         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
2583         keywords as variable names.
2584         (may_move_till): Cast according to the coding conventions.
2585         (force_move_till_expr): Avoid using C++ keywords as variable names.
2586         (force_move_till): Cast according to the coding conventions.
2587         (memref_hash): Likewise.
2588         (memref_eq): Likewise.
2589         (gather_mem_refs_stmt): Likewise.
2590         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid using C++
2591         keywords as variable names.
2592         (idx_find_step): Cast according to the coding conventions.
2593         (idx_record_use): Likewise.
2594         (find_depends): Likewise.
2595         (prepare_decl_rtl): Likewise.
2596         (mbc_entry_hash): Likewise.
2597         (mbc_entry_eq): Likewise.
2598         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
2599         (simplify_replace_tree): Avoid using C++ keywords as variable names.
2600         (idx_infer_loop_bounds): Cast according to the coding conventions.
2601         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2602         * tree-ssa-math-opts.c (occ_new ): Likwise.
2603         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
2604         macros.
2605         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as variable
2606         names.
2607         (add_use_op): Likewise.
2608         (add_vop): Likewise.
2609         (add_vuse_op): Likewise.
2610         (add_vdef_op): Likewise.
2611         (get_expr_operands): Likewise.
2612         (push_stmt_changes): Use type safe memory macros.
2613         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
2614         keywords as variable names.
2615         (conditional_replacement): Likewise.
2616         (minmax_replacement): Likewise.
2617         (abs_replacement): Likewise.
2618         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
2619         coding conventions.
2620         (insert_fake_stores): Avoid using C++ keywords as variable names.
2621         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
2622         conventions.
2623         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
2624         (heapvar_insert): Use type safe memory macros.
2625         (new_var_info): Cast according to the coding conventions.
2626         (new_constraint): Likewise.
2627         (remove_preds_and_fake_succs): Use type safe memory macros.
2628         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
2629         conventions.
2630         (thread_single_edge): Likewise.
2631         (thread_through_loop_header): Likewise.
2632
2633 2007-06-06  Eric Christopher  <echristo@apple.com>
2634
2635         * config/i386/i386.c (override_options): Move handling
2636         of TARGET_SUBTARGET* earlier.
2637
2638 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
2639
2640         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
2641         use %n on printf.
2642
2643 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
2644
2645         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
2646         emited outside of basic block.
2647         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
2648         the created blocks.
2649         * rtl.h (delete_insn_chain): Declaration changed.
2650         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
2651         non-removed insns.
2652         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
2653         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
2654         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
2655         to delete_insn_chain.
2656         (rtl_verify_flow_info_1): Verify that the insns in header and footer
2657         do not have bb field set.
2658         (rtl_verify_flow_info): Verify that insns between basic blocks do not
2659         have bb field set.
2660         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
2661         * cfgcleanup.c (try_optimize_cfg): Ditto.
2662
2663 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
2664
2665         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
2666         (lambda_body_vector_new): Use type safe memory macros.
2667         (lambda_linear_expression_new): Likewise.
2668         (lambda_loopnest_new): Likewise.
2669         (lambda_lattice_new): Likewise.
2670         (replace_uses_equiv_to_x_with_y): Cast according to the coding
2671         conventions. Use type safe memory macros.
2672         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
2673         (lambda_body_vector_s): Likewise.
2674         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
2675         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
2676
2677 2007-06-06  Richard Guenther  <rguenther@suse.de>
2678
2679         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
2680         if we need to schedule cfg_cleanup.
2681         (tree_ssa_forward_propagate_single_use_vars): Do so.
2682
2683 2007-06-06  Ian Lance Taylor  <iant@google.com>
2684
2685         * fold-const.c (merge_ranges): If range_successor or
2686         range_predecessor fail, just return 0.
2687
2688 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
2689
2690         PR tree-optimization/32216
2691         * tree-vectorizer.c (supportable_widening_operation): Determine
2692         signedness of FIX_TRUNC_EXPR from output operand.
2693         (supportable_narrowing_operation): Ditto.
2694         * tree-vect-generic.c (expand_vector_operations_1): Determine
2695         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
2696         from input operand.
2697
2698 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
2699
2700         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
2701         (struct pta): ...from here. Change flags to unsigned to avoid
2702         excessive casting (as it is used as a bit mask).
2703         (override_options): Add casts according to the coding convenventions.
2704         (x86_64_elf_unique_section): Likewise.
2705         (examine_argument): Avoid using C++ keywords as variable names.
2706         (construct_container): Likewise.
2707         (legitimize_pic_address): Likewise.
2708         (get_dllimport_decl): Cast according to the coding conventions. Use
2709         type safe memory macros.
2710         (legitimize_address): Cast according to the coding conventions.
2711         (emit_i387_cw_initialization): Corrected the type of slot to enum
2712         ix86_stack_slot.
2713         (ix86_init_machine_status): Use type safe memory macros.
2714         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
2715         (bdesc_pcmpistr): Likewise.
2716         (bdesc_crc32): Likewise.
2717         (bdesc_sse_3arg): Likewise.
2718         (bdesc_2arg): Likewise.
2719         (bdesc_1arg): Likewise.
2720         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
2721         (ix86_expand_sse_pcmpistr): Likewise.
2722         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
2723         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
2724         int to match the langhook definition.
2725         (ix86_builtin_conversion): Change the type of code to unsigned init to
2726         match the langhook definition.
2727         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
2728         names.
2729         (ix86_preferred_output_reload_class): Likewise.
2730         (ix86_cannot_change_mode_class): Likewise.
2731         (ix86_memory_move_cost): Likewise.
2732         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
2733         avoid excessive casting later on.
2734         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
2735
2736 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
2737
2738         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
2739         as flags setting insn.
2740         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
2741
2742 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
2743
2744         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
2745         (UNSPEC_ROUND): New.
2746         ("sse4_1_round<mode>2"): New insn pattern.
2747         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
2748         SSE4.1 targets.
2749         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
2750         expander using SSEMODEF mode macro.  Expand using
2751         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2752         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
2753         expander using SSEMODEF mode macro.  Expand using
2754         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2755         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
2756         expander using SSEMODEF mode macro.  Expand using
2757         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2758         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
2759         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
2760         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
2761         UNSPEC_ROUNDS.
2762
2763 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
2764             Sebastian Pop  <sebpop@gmail.com>
2765
2766         * lambda.h (build_linear_expr): New.
2767         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
2768         Use build_linear_expr, call fold and force_gimple_operand.
2769         (lambda_loopnest_to_gcc_loopnest): Check that there is
2770         something to insert.
2771         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
2772
2773 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
2774
2775         PR preprocessor/23479
2776         * doc/extend.texi: Document the 0b-prefixed binary integer
2777         constant extension.
2778
2779 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
2780
2781         PR tree-optimization/32215
2782         * tree-vectorizer.c (supportable_widening_operation): Return false
2783         for unsupported FIX_TRUNC_EXPR tree code.
2784         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
2785
2786 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
2787
2788         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
2789         register on SPE targets.  Change documentation to reflect
2790         reality.
2791         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2792         Change FIXED_SCRATCH to 14 and document why we're keeping r14
2793         out of the register allocation pool.
2794         (rs6000_reg_live_or_pic_offset_p): New function.
2795         (rs6000_emit_prologue): Move the actual saving of LR up to free
2796         r0 for holding r11.  Split saving of SPE 64-bit registers into
2797         its own case.  Ensure that offsets will always be in-range for
2798         'evstdd' by using r11 as a scratch register to point at the start
2799         of the SPE save area.  Save r11 if necessary, as it is the static
2800         chain register.
2801         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
2802         into its own case.  Ensure that offsets will always be in-range
2803         for 'evldd' by using r11 as a scratch register to point at the
2804         start of the SPE save area.  Also adjust r11 when restoring
2805         the stack pointer to compensate for pre-loading r11.
2806
2807 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
2808
2809         * cfg.c (init_flow): Use type safe memory macros.
2810         (alloc_block): Likewise.
2811         (unchecked_make_edge): Likewise.
2812         (dump_flow_info): Avoid using C++ keywords as variable names.
2813         (copy_original_table_clear): Cast according to the coding conventions.
2814         (copy_original_table_set): Likewise.
2815         * cfgexpand (label_rtx_for_bb): Likewise.
2816         (expand_gimple_basic_block): Likewise.
2817         * cfghooks.c (dump_bb): Likewise.
2818         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
2819         variable names.
2820         (lv_add_condition_to_bb): Likewise.
2821         * cfglayout (relink_block_chain): Cast according to the coding
2822         conventions.
2823         (fixup_reorder_chain): Likewise.
2824         (fixup_fallthru_exit_predecessor): Likewise.
2825         * cfgloop.c (glb_enum_p): Likewise.
2826         (get_exit_description): Likewise.
2827         (dump_recorded_exit): Likewise.
2828         * cfgloop.h (enum loop_estimation): Move out of struct scope...
2829         (struct loop): ... from here.
2830         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
2831         conventions.
2832         * cfgrtl.c (rtl_create_basic_block): Likewise.
2833         (rtl_split_block): Likewise.
2834         (rtl_dump_bb): Likewise.
2835         (cfg_layout_split_block): Likewise.
2836         (init_rtl_bb_info): Use typesafe memory macros.
2837
2838         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
2839         * graphds.h: Updated all usages of edge to graph_edge.
2840         * graphds.c: Likewise.
2841         * cfgloopanal.c: Likewise.
2842
2843 2007-06-05  Ian Lance Taylor  <iant@google.com>
2844
2845         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
2846         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
2847         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
2848         expression.
2849         (test_for_singularity): Likewise.
2850
2851 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
2852
2853         * config/i386/constraints.md ("Y2"): Replaced by ...
2854         ("Yt"): This.
2855         * config/i386/i386.md: Likewise.
2856         * config/i386/mmx.md: Likewise.
2857         * config/i386/sse.md: Likewise.
2858
2859 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
2860
2861         * config/i386/constraints.md ("z"): Replaced by ...
2862         ("Y0"): This.
2863         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
2864         (sse4_1_blendvps): Likewise.
2865         (sse4_1_pblendvb): Likewise.
2866         (sse4_2_pcmpestr): Likewise.
2867         (sse4_2_pcmpestrm): Likewise.
2868         (sse4_2_pcmpestr_cconly): Likewise.
2869         (sse4_2_pcmpistr): Likewise.
2870         (sse4_2_pcmpistrm): Likewise.
2871         (sse4_2_pcmpistr_cconly): Likewise.
2872
2873 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
2874
2875         * matrix-reorg.c (transform_access_sites): Fix computation.
2876         (transform_allocation_sites): Same.
2877
2878 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
2879
2880         * config/i386/i386.c (override_options): Use
2881         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
2882
2883 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
2884
2885         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
2886         (nonimm_not_xmm0_operand): Ditto.
2887         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
2888         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
2889         as operand[2] predicate.  Require "z" class XMM register for
2890         operand[3].  Adjust asm template.
2891         ("sse4_1_blendvpd"): Ditto.
2892         ("sse4_1_pblendvb"): Ditto.
2893         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
2894         force op2 into xmm0 register for variable blend instructions.
2895
2896 2007-06-04  Tom Tromey  <tromey@redhat.com>
2897
2898         * c-tree.h (start_enum): Update.
2899         (build_enumerator): Likewise.
2900         * c-decl.c (enum_next_value): Removed.
2901         (enum_overflow): Likewise.
2902         (start_enum): Add c_enum_contents argument.  Don't use globals.
2903         (build_enumerator): Likewise.
2904         * c-tree.h (struct c_enum_contents): New struct.
2905
2906 2007-06-04  Tom Tromey  <tromey@redhat.com>
2907
2908         * c-common.c (c_common_get_alias_set): Fix indentation.
2909
2910 2007-06-04  Ian Lance Taylor  <iant@google.com>
2911
2912         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
2913         to overflow, reduce overflow infinity to regular infinity.
2914         (vrp_var_may_overflow): New static function.
2915         (vrp_visit_phi_node): Check vrp_var_may_overflow.
2916
2917 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
2918
2919         * stor-layout.c (layout_type): Remove duplicate code.
2920
2921 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
2922
2923         PR c/32191
2924         * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
2925         before build_common_builtin_nodes ().
2926
2927 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
2928
2929         PR target/31733
2930         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
2931
2932 2007-06-04  Jan Hubicka  <jh@suse.cz>
2933
2934         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
2935         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
2936         instead of _stat version.
2937
2938 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
2939
2940         PR tree-optimization/32194
2941         * tree-predcom.c (determine_offset): Check that both references have
2942         the same type.
2943
2944 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
2945
2946         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
2947         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
2948         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
2949         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
2950         Add argument to iterate_fix_dominators call.
2951         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
2952         * gcse.c (hoist_code): Change domby to vector.
2953         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
2954         Add argument to iterate_fix_dominators call.
2955         * loop-doloop.c (doloop_modify): Changed recount_dominator to
2956         recompute_dominator.
2957         * lambda-code.c (perfect_nestify): Ditto.
2958         * cfgloopanal.c: Include graphds.h.
2959         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
2960         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
2961         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
2962         add_edge call.
2963         * graphds.c: New file.
2964         * graphds.h: New file.
2965         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
2966         (get_dominated_by, get_dominated_by_region): Change return type to
2967         vector.
2968         (verify_dominators): Recompute all dominators and compare the results.
2969         (recount_dominator): Renamed to ...
2970         (recompute_dominator): ... this.  Do not check that the block is
2971         dominated by entry.
2972         (iterate_fix_dominators): Reimplemented.
2973         (prune_bbs_to_update_dominators, root_of_dom_tree,
2974         determine_dominators_for_sons): New functions.
2975         * et-forest.c (et_root): New function.
2976         * et-forest.h (et_root): Declare.
2977         * Makefile.in (graphds.o): Add.
2978         (cfgloopanal.o): Add graphds.h dependency.
2979         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
2980         * basic-block.h (get_dominated_by, get_dominated_by_region,
2981         iterate_fix_dominators): Declaration changed.
2982         (recount_dominator): Renamed to ...
2983         (recompute_dominator): ... this.
2984         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
2985         (thread_through_all_blocks): Do not free dominance info.
2986
2987 2007-06-03  Andreas Schwab  <schwab@suse.de>
2988
2989         * config/m68k/m68k.c (override_options): Don't override
2990         REAL_MODE_FORMAT.
2991         * config/m68k/m68k-modes.def (SF, DF): Define to use
2992         motorola_single_format and motorola_double_format, resp.
2993         * real.c (motorola_single_format): Renamed from
2994         coldfire_single_format.
2995         (motorola_double_format): Renamed from coldfire_double_format.
2996         (encode_ieee_extended): Generate a proper canonical NaN image
2997         respecting canonical_nan_lsbs_set.
2998         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
2999         true.
3000         * real.h: Adjust declarations.
3001
3002 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3003
3004         PR target/32163
3005         * config/sh/sh.md (symGOT_load): Don't schedule insns when
3006         the symbol is generated with the stack protector.
3007
3008 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
3009
3010         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
3011         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
3012         "interrupt".
3013         * doc/extend.texi (interrupt): Mention m68k.
3014
3015 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
3016
3017         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
3018         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
3019         (ix86_expand_sse_pcmpestr): Do not check operands for
3020         "register_operand", when insn operand predicate is "register_operand".
3021         (ix86_expand_sse_pcmpistr): Ditto.
3022
3023 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3024             Uros Bizjak  <ubizjak@gmail.com>
3025
3026         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
3027         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
3028         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
3029         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
3030         * config/i386/constraints.md ("z"): New register constraint
3031         for members of SSE_FIRST_REG class.
3032         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
3033         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
3034         SSE_FIRST_REG class.
3035         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
3036         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
3037         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
3038         (IX86_BUILTIN_PCMPESTRM128): Likewise.
3039         (IX86_BUILTIN_PCMPESTRA128): Likewise.
3040         (IX86_BUILTIN_PCMPESTRC128): Likewise.
3041         (IX86_BUILTIN_PCMPESTRO128): Likewise.
3042         (IX86_BUILTIN_PCMPESTRS128): Likewise.
3043         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
3044         (IX86_BUILTIN_PCMPISTRI128): Likewise.
3045         (IX86_BUILTIN_PCMPISTRM128): Likewise.
3046         (IX86_BUILTIN_PCMPISTRA128): Likewise.
3047         (IX86_BUILTIN_PCMPISTRC128): Likewise.
3048         (IX86_BUILTIN_PCMPISTRO128): Likewise.
3049         (IX86_BUILTIN_PCMPISTRS128): Likewise.
3050         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
3051         (struct builtin_description): Change "flag" field to unsigned.
3052         (bdesc_pcmpestr): New builtin description table.
3053         (bdesc_pcmpistr): Likewise.
3054         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
3055         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
3056         Initialize pcmp[ei]str[im] insns for SSE4.2.
3057         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
3058         (ix86_expand_sse_pcmpistr): Likewise.
3059         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
3060         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
3061         (UNSPEC_PCMPISTR): Likewise.
3062         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
3063         (sse4_2_pcmpestri):New isns pattern.
3064         (sse4_2_pcmpestrm): Likewise.
3065         (sse4_2_pcmpestr_cconly): Likewise.
3066         (sse4_2_pcmpistr): New insn patern and splitter.
3067         (sse4_2_pcmpistri):New isns pattern.
3068         (sse4_2_pcmpistrm): Likewise.
3069         (sse4_2_pcmpistr_cconly): Likewise.
3070         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
3071         in SSE4.2.
3072
3073 2007-06-01  David Daney  <ddaney@avtrex.com>
3074
3075         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
3076         LOADGP_ABSOLUTE and not binds_local_p.
3077
3078 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
3079
3080         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
3081
3082 2007-06-01  Ian Lance Taylor  <iant@google.com>
3083
3084         * tree-vrp.c (compare_name_with_value): Always set
3085         used_strict_overflow if we get a result from the variable itself.
3086
3087 2007-06-01  Ian Lance Taylor  <iant@google.com>
3088
3089         PR rtl-optimization/31455
3090         * lower-subreg.c (find_decomposable_subregs): Don't decompose
3091         subregs which have a cast between modes which are not tieable.
3092
3093 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
3094
3095         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
3096         breaks after return statements.
3097
3098 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3099
3100         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
3101         only after no_new_pseudos.
3102
3103 2007-05-31  Eric Christopher  <echristo@apple.com>
3104
3105         * expr.c (convert_move): Assert that we don't have a BLKmode
3106         operand.
3107         (store_expr): Handle BLKmode moves by calling emit_block_move.
3108
3109 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
3110
3111         * c-typeck.c (build_indirect_ref): Include type in error message.
3112         (build_binary_op): Pass types to binary_op_error.
3113         * c-common.c (binary_op_error): Take two type arguments, print out
3114         types with error.
3115         * c-common.h (binary_op_error): Update prototype.
3116
3117 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3118
3119         * config/i386/i386.c: Correct coments on -mno-sse4.
3120
3121 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
3124         (x86_64-*-*): Likewise.
3125         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
3126         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
3127         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
3128         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
3129         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
3130         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
3131         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
3132         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
3133         (OPTION_MASK_ISA_SSE4): Likewise.
3134         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
3135         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
3136         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
3137         (override_options): Support SSE4.2.
3138         (ix86_build_const_vector): Support SImode and DImode.
3139         (ix86_build_signbit_mask): Likewise.
3140         (ix86_expand_int_vcond): Support V2DImode.
3141         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
3142         (IX86_BUILTIN_CRC32HI): Likewise.
3143         (IX86_BUILTIN_CRC32SI): Likewise.
3144         (IX86_BUILTIN_CRC32DI): Likewise.
3145         (IX86_BUILTIN_PCMPGTQ): Likewise.
3146         (bdesc_crc32): Likewise.
3147         (bdesc_sse_3arg): Likewise.
3148         (ix86_expand_crc32): Likewise.
3149         (ix86_init_mmx_sse_builtins): Support SSE4.2.
3150         (ix86_expand_builtin): Likewise.
3151         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
3152         __SSE4_2__ for -msse4.2.
3153         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
3154         (CRC32MODE): Likewise.
3155         (crc32modesuffix): Likewise.
3156         (crc32modeconstraint): Likewise.
3157         (sse4_2_crc32<mode>): Likewise.
3158         (sse4_2_crc32di): Likewise.
3159         * config/i386/i386.opt (msse4.2): New for SSE4.2.
3160         (msse4): Likewise.
3161         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
3162         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
3163         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
3164         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
3165         (vcondu<mode>): Likewise.
3166         * doc/extend.texi: Document SSE4.2 built-in functions.
3167         * doc/invoke.texi: Document -msse4.2/-msse4.
3168
3169 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
3170
3171         PR tree-optimization/32160
3172         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
3173         variable as gimple reg.
3174         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
3175
3176 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
3177
3178         * gcc.c (main): Don't consider linker options when issuing the
3179         warning about a linker input file not being used.
3180
3181 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3182
3183         * tree-vrp.c (compare_names): Initialize sop.
3184
3185 2007-05-30  Dirk Mueller  <dmueller@suse.de>
3186
3187         * cgraphunit.c (cgraph_analyze_function): Remove
3188         computation of inline parameters.
3189
3190 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
3191
3192         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
3193
3194 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
3195
3196         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
3197         Add vx-common.h.  Include vxworks.h between vx-common.h and
3198         arm/vxworks.h.
3199         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
3200         redefining.
3201         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
3202         (TARGET_ASM_DESTRUCTOR): Likewise.
3203         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
3204         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
3205         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
3206         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
3207         (VXWORKS_ENDIAN_SPEC): Define.
3208         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
3209         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
3210         VXWORKS_* equivalents.
3211         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
3212         (ASM_FILE_START): Delete.
3213         (TARGET_VERSION): Reformat.
3214         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
3215         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
3216         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
3217         (FPBIT, DPBIT): Define.
3218         (fp-bit.c, dp-bit.c): New rules.
3219         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
3220         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
3221         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
3222         * config/arm/arm.h: Include vxworks-dummy.h.
3223         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
3224         Mark with ATTRIBUTE_UNUSED.
3225         (arm_override_options): Do not allow VxWorks RTP PIC to be used
3226         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
3227         make it incompatible with -msingle-pic-base.
3228         (arm_function_ok_for_sibcall): Return false for calls that might
3229         go through a VxWorks PIC PLT entry.
3230         (require_pic_register): New function, split out from...
3231         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
3232         for VxWorks RTPs.
3233         (arm_load_pic_register): Handle the VxWorks RTP initialization
3234         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
3235         (arm_emit_call_insn): New function.
3236         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
3237         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
3238         (pic_offset_arm): New pattern.
3239         (call, call_value): Use arm_emit_call_insn.
3240         (call_internal, call_value_internal): New expanders.
3241         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
3242         VxWorks unless __PIC__.
3243
3244 2007-05-30  Eric Christopher  <echristo@gmail.com>
3245
3246         * genrecog.c: Include regs.h in generated file.
3247         * genemit.c: Ditto. Fix up formatting.
3248         * config/mn10300/constraints.md: New.
3249         * config/mn10300/mn10300.md: Include.
3250         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
3251         Fix up for removed macro.
3252         * config/mn10300/predicates.md (call_address_operand):  Ditto.
3253         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
3254         (CONST_OK_FOR_I): Ditto.
3255         (CONST_OK_FOR_J): Ditto.
3256         (CONST_OK_FOR_K): Ditto.
3257         (CONST_OK_FOR_L): Ditto.
3258         (CONST_OK_FOR_M): Ditto.
3259         (CONST_OK_FOR_N): Ditto.
3260         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
3261         (OK_FOR_Q): Ditto.
3262         (OK_FOR_R): Ditto.
3263         (OK_FOR_T): Ditto.
3264         (EXTRA_CONSTRAINT): Ditto.
3265
3266 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3267
3268         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
3269         Remove defines.
3270         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
3271         OPTION_MASK_ISA_64BIT.
3272         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
3273
3274 2007-05-30  Richard Guenther  <rguenther@suse.de>
3275
3276         PR middle-end/32152
3277         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
3278         types for comparison.
3279         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
3280         with original typed arguments.
3281         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
3282
3283 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
3284
3285         PR tree-optimization/31769
3286         * except.c (duplicate_eh_regions): Clear prev_try if
3287         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
3288
3289 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
3290
3291         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
3292         * tree-ssa-sink.c (statement_sink_location): Return basic block and
3293         bsi of the location where statements should be inserted.
3294         (sink_code_in_bb): Take bsi from statement_sink_location.
3295         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
3296         instead of bsi_start.
3297         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
3298         bsi_insert_after.
3299         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
3300         (bsi_move_before): Document inconsistency with bsi_move_after.
3301         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
3302
3303 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3304
3305         * config/i386/i386.h (TARGET_ABM): New define.
3306         (TARGET_POPCNT): Ditto.
3307         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
3308         New temporary defines to redefine from OPTION_ISA_* defines.
3309         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
3310         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
3311         (ix86_isa_flags): New extern int declaration.
3312         (TARGET_SUBTARGET_DEFAULT): New define.
3313         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
3314         (TARGET_SUBTARGET32_DEFAULT): Ditto.
3315         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
3316         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
3317         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
3318         * config/i386/darwin.h: Change TARGET_64BIT define to
3319         OPTION_ISA_64BIT.
3320
3321         * config/i386/i386.opt (m3dnowa): Define as undocumented option
3322         using existing "ix86_isa_flags" varible.
3323         (m32, m64): Use existing "ix86_isa_flags" variable.
3324         (mmmx, m3dnow): Ditto.
3325         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
3326         (mabm): Define as non-negative option using "x86_abm" variable.
3327         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
3328
3329         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
3330         Rewrite feature test bitmap.
3331         (ix86_isa_flags): New initialized global int varible.
3332         (ix86_isa_flags_explicit): New static int variable.
3333         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
3334         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
3335         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
3336         target_flags_explicit.
3337         (override_options): Remove "target_enable" and "target_disable" fields
3338         from "struct ptt". Update processor_target_table accordingly. Remove
3339         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
3340         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
3341         "target_flags" and "ix86_isa_flags_explicit" instead of
3342         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
3343         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
3344         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
3345         to true when either of PTA_POPCNT or PTA_ABM is set in
3346         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
3347         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
3348         processor_alias_table flags entry.  Remove handling of
3349         "target_enable" and "target_disable" fields of processor_target_table.
3350         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
3351         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
3352         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
3353         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
3354         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
3355         "target_flags".
3356         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
3357
3358 2007-05-29  David Daney  <ddaney@avtrex.com>
3359
3360         PR gcc/31975
3361         * config/mips/mips.c (mips_output_mi_thunk): Emit
3362         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
3363
3364 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
3365         * config/i386/i386.c (ix86_function_regparm): Added checking of
3366         ix86_force_align_arg_pointer to determine the number of
3367         register parameters.
3368
3369 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
3370
3371         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
3372         (SET_DR_MISALIGNMENT): New.
3373         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
3374         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
3375         Use SET_DR_MISALIGNMENT.
3376         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
3377         pointer.
3378         * tree-data-ref.c (create_data_ref, compute_all_dependences,
3379         find_loop_nest): Export.
3380         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
3381         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
3382         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
3383         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
3384         New macros.
3385         (struct mem_ref): Add field reuse_distance.
3386         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
3387         Initialize reuse_distance field.
3388         (issue_prefetch_ref): Select temporality of prefetch according to
3389         reuse_distance.
3390         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
3391         self_reuse_distance, determine_loop_nest_reuse): New functions.
3392         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
3393         (tree_ssa_prefetch_arrays): Dump L2 cache size.
3394         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
3395         dependency.
3396
3397 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
3398
3399         * tree-ssa-alias.c: Add aliasing overview.
3400
3401 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
3402             Danny Smith  <dannysmith@users.sourceforge.net>
3403
3404         PR target/29498
3405         * config/i386/t-crtfm: Compile crtfastmath.o with
3406         -minline-all-stringops.
3407         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
3408         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
3409
3410 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3411
3412         * doc/md.texi: Document constraints on HP PA-RISC.
3413
3414         * pa/constraints.md: New file.
3415         * pa.md: Include constraints.md.
3416         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
3417         (integer_store_memory_operand, ldil_cint_p): New functions.
3418         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
3419         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3420         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
3421         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
3422         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
3423
3424 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
3425
3426         PR c/31339
3427         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
3428         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
3429         case POSTDECREMENT_EXPR>): Return the error_mark_node
3430         if either the real or imaginary parts would an
3431         error_mark_node.
3432
3433 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
3434
3435         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
3436         name when we remove it from a call.
3437
3438 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
3439
3440         * targhooks.c (default_narrow_bitfield): Remove.
3441         * targhooks.h: Remove the prototype for
3442         default_narrow_bitfield.
3443
3444         * langhooks-def.h: Remove the prototype for
3445         hook_get_alias_set_0.
3446         * langhooks.c (hook_get_alias_set_0): Remove.
3447
3448         * global.c (EXECUTE_IF_CONFLICT): Remove.
3449
3450 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3451
3452         PR tree-opt/32100
3453         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
3454         return true when truth_value_p is true and the type
3455         is of signed:1.
3456
3457 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
3458
3459         * doc/install.texi (Prerequisites): We no longer require Autoconf
3460         2.13 for the top-level.
3461
3462 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
3463
3464         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
3465         memory access via x86_expand_vector_move_misalign() only for
3466         TImode values on 32-bit targets.
3467
3468 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
3469
3470         * matrix-reorg.c: New file. Implement matrix flattening and
3471         transposing optimization.
3472         * tree-pass.h: Add matrix reorg pass.
3473         * common.opt: Add fipa-mreorg flag.
3474         * Makefile.in: Add matrix-reorg.c.
3475         * passes.c: Add matrix reorg pass.
3476         * varpool.c (add_new_static_var): New function.
3477         * cgraph.h (add_new_static_var): Declare.
3478
3479 2007-05-27  Eric Christopher  <echristo@apple.com>
3480
3481         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
3482         sp_offset depending on stack size. Save r12 depending
3483         on registers we're saving later.
3484         (rs6000_emit_epilogue): Update sp_offset depending only
3485         on stack size.
3486
3487 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
3488
3489         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
3490         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3491         * ifcvt.c (if_convert): Ditto.
3492         * tree-ssa-threadupdate.c (thread_block): Ditto.
3493         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
3494         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
3495         verify_loop_closed_ssa): Check number_of_loops instead of
3496         current_loops.
3497         * predict.c (tree_estimate_probability): Ditto.
3498         * tree-if-conv.c (main_tree_if_conversion): Ditto.
3499         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3500         * modulo-sched.c (sms_schedule): Ditto.
3501         * tree-scalar-evolution.c (scev_const_prop): Ditto.
3502         (scev_finalize): Do not do anything if scev analysis was not
3503         initialized.
3504         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
3505         current_loops == NULL.
3506         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
3507         * loop-init.c (loop_optimizer_init): Do not free current_loops when
3508         there are no loops.
3509         (loop_optimizer_finalize): Assert that loops were analyzed.
3510         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
3511         rtl_doloop): Check number_of_loops instead of current_loops.
3512         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
3513         current_loops == NULL.
3514         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
3515         gate_tree_vectorize tree_linear_transform, check_data_deps,
3516         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
3517         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
3518         Check number_of_loops instead of current_loops.
3519         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
3520         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
3521         free loops if available.
3522         (execute_pre): Do not pass do_fre to fini_pre.
3523
3524 2007-05-27  Tobias Burnus  <burnus@net-b.de>
3525
3526         PR middle-end/32083
3527         * real.c (mpfr_from_real): Fix sign of -Inf.
3528
3529 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         * tree-vect-transform.c (vectorizable_conversion): Initialize
3532         tree_code variables to ERROR_MARK.
3533         (vectorizable_type_demotion): Likewise.
3534         (vectorizable_type_promotion): Likewise.
3535
3536 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
3537
3538         PR target/32065
3539         * config/i386/i386.md (movti): Handle push operands via
3540         ix86_expand_push().
3541
3542 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
3543
3544         * basic-block.h: Remove the prototype for merge_seq_blocks.
3545         * cfgcleanup.c (merge_seq_blocks): Remove.
3546
3547         * tree-flow.h: Remove the prototype for is_aliased_with.
3548         * tree-ssa-alias.c (is_aliased_with): Remove.
3549
3550 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
3551
3552         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
3553
3554         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
3555
3556         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
3557         ix86_expand_sse4_unpack if SSE4.1 is enabled.
3558         (vec_unpacks_hi_v16qi): Likewise.
3559         (vec_unpacku_lo_v16qi): Likewise.
3560         (vec_unpacks_lo_v16qi): Likewise.
3561         (vec_unpacku_hi_v8hi): Likewise.
3562         (vec_unpacks_hi_v8hi): Likewise.
3563         (vec_unpacku_lo_v8hi): Likewise.
3564         (vec_unpacks_lo_v8hi): Likewise.
3565         (vec_unpacku_hi_v4si): Likewise.
3566         (vec_unpacks_hi_v4si): Likewise.
3567         (vec_unpacku_lo_v4si): Likewise.
3568         (vec_unpacks_lo_v4si): Likewise.
3569
3570 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
3571
3572         * c-typeck.c, config/arm/arm.c, config/darwin.c,
3573         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
3574         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
3575         follow spelling conventions in various
3576         warning/error/diagnostic messages.
3577
3578         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
3579         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
3580         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
3581         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
3582         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
3583         * doc/tm.texi: Follow spelling conventions.
3584
3585 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3586
3587         PR tree-opt/32090
3588         * tree-ssa-forwprop.c
3589         (forward_propagate_addr_into_variable_array_index): Remove
3590         the lhs argument.  Use the type of def_rhs instead of lhs.
3591         (forward_propagate_addr_expr_1): Update use of
3592         forward_propagate_addr_into_variable_array_index.
3593
3594 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
3595             Nigel Stephens  <nigel@mips.com>
3596
3597         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
3598         function attributes, "far" being an alias for "long_call".
3599         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
3600         (mips_near_type_p, mips_far_type_p): New.
3601         (mips_comp_type_attributes): New function to check that attributes
3602         attached to a function type are compatible.
3603         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
3604         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
3605         to the target function of the thunk.
3606         (mips_encode_section_info): Check for "near" and "far" function
3607         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
3608
3609         * config/mips/predicates.md (const_call_insn_operand): Test only
3610         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
3611
3612         * doc/extend.texi (Function Attributes): Document MIPS "near" and
3613         "far" attributes.
3614
3615         * testsuite/gcc.target/mips/near-far-1.c:  New test case.
3616         * testsuite/gcc.target/mips/near-far-2.c:  New test case.
3617         * testsuite/gcc.target/mips/near-far-3.c:  New test case.
3618         * testsuite/gcc.target/mips/near-far-4.c:  New test case.
3619
3620 2007-05-25  Eric Christopher  <echristo@apple.com>
3621
3622         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
3623         to x86-darwin configurations.
3624         * config/i386/t-darwin: Add softfp support.
3625         * config/i386/t-darwin64: Ditto.
3626         * config/i386/sfp-machine.h: If mach then don't use
3627         aliasing, emit a stub to call.
3628
3629 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
3630
3631         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
3632         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
3633         tree-predcom.c, tree-ssa-alias-warnings.c,
3634         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
3635         comment typos.  Follow spelling conventions.
3636         * doc/cpp.texi, doc/invoke.texi: Fix typos.
3637
3638 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
3639
3640         PR target/32065
3641         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
3642         constants into memory.  Expand unaligned memory references for
3643         SSE modes via x86_expand_vector_move_misalign() function.
3644
3645 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
3646
3647         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
3648         "memory" attribute for "sseishft" type insn without operands[2].
3649
3650 2007-05-25  Dirk Mueller  <dmueller@suse.de>
3651             Marcus Meissner <meissner@suse.de>
3652
3653         * doc/extend.texi (alloc_size): New attribute.
3654         * c-common.c (handle_alloc_size_attribute): New.
3655         * tree-object-size.c (alloc_object_size): Use alloc_size
3656         attribute, if available.
3657
3658 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3659
3660         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
3661         with MASK_SSE2.
3662         (__builtin_ia32_vec_ext_v2di): Likewise.
3663         (__builtin_ia32_vec_ext_v4si): Likewise.
3664         (__builtin_ia32_vec_ext_v8hi): Likewise.
3665         (__builtin_ia32_vec_ext_v16qi): Likewise.
3666         (__builtin_ia32_vec_set_v8hi): Likewise.
3667
3668 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3669
3670         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
3671
3672 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
3673
3674         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
3675         (arm_is_longcall_p): Rename to...
3676         (arm_is_long_call_p): ...this.  Take a single tree argument and
3677         return a bool.
3678         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
3679         (CUMULATIVE_ARGS): Remove call_cookie.
3680         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
3681         (ENCODED_LONG_CALL_ATTR_P): Delete.
3682         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
3683         LONG_CALL_FLAG_CHAR cases.
3684         (ARM_DECLARE_FUNCTION_SIZE): Delete.
3685         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
3686         ARM_DECLARE_FUNCTION_SIZE.
3687         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
3688         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
3689         (arm_encode_call_attribute, current_file_function_operand): Delete.
3690         (arm_function_in_section_p): New function.
3691         (arm_is_longcall_p): Rename to...
3692         (arm_is_long_call_p): ...this.  Take the target function as a single
3693         argument and return a bool.  Do not rely on call cookies.  Check
3694         whether the target symbol is in the same section as the current
3695         function, not just the same compilation unit.
3696         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
3697         (arm_encode_section_info): Don't encode a call type.
3698         * config/arm/arm.md (call, call_value): Update calls to
3699         arm_is_long(_)call_p.  Simplify logic.
3700         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
3701         Update calls to arm_is_long(_)call_p.
3702
3703 2007-05-25  Richard Guenther  <rguenther@suse.de>
3704
3705         PR tree-optimization/31982
3706         * tree-ssa-forwprop.c
3707         (forward_propagate_addr_into_variable_array_index): Handle arrays
3708         with element size one.
3709
3710 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3711
3712         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
3713         (umulsi3_highpart): Likewise.
3714
3715 2007-05-24  Ian Lance Taylor  <iant@google.com>
3716
3717         PR rtl-optimization/32069
3718         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
3719         is NULL.
3720
3721 2007-05-24  Ollie Wild  <aaw@google.com>
3722
3723         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
3724         description.
3725
3726 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
3727
3728         * postreload-gcse.c (reg_changed_after_insn_p): New function.
3729         (oprs_unchanged_p): Use it to check all registers in a REG.
3730         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
3731         (reg_set_between_after_reload_p): Delete.
3732         (reg_used_between_after_reload_p): Likewise.
3733         (reg_set_or_used_since_bb_start): Likewise.
3734         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
3735         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
3736         Use reg_set_between_p instead of reg_set_between_after_reload_p.
3737         * rtlanal.c (reg_set_p): Check whether REG overlaps
3738         regs_invalidated_by_call, rather than just checking the
3739         membership of REGNO (REG).
3740
3741 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
3742
3743         * doc/passes.texi: Document predictive commoning.
3744         * doc/invoke.texi (-fpredictive-commoning): Document.
3745         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
3746         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
3747         adding indices to the generated name.
3748         (schedule_sm): Pass 0 to get_lsm_tmp_name.
3749         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
3750         * tree-pretty-print.c (op_symbol_1): Renamed to ...
3751         (op_symbol_code): ... and exported.
3752         (dump_omp_clause, op_symbol): Use op_symbol_code
3753         instead of op_symbol_1.
3754         * tree-pass.h (pass_predcom): Declare.
3755         * timevar.def (TV_PREDCOM): New timevar.
3756         * tree-ssa-loop.c (run_tree_predictive_commoning,
3757         gate_tree_predictive_commoning, pass_predcom): New.
3758         * tree-data-ref.c (find_data_references_in_loop): Find the
3759         references in dominance order.
3760         (canonicalize_base_object_address): Ensure that the result has
3761         pointer type.
3762         (dr_analyze_innermost): Export.
3763         (create_data_ref): Code to fail for references with invariant
3764         address moved ...
3765         (find_data_references_in_stmt): ... here.
3766         * tree-data-ref.h (dr_analyze_innermost): Declare.
3767         * tree-affine.c: Include tree-gimple.h and hashtab.h.
3768         (aff_combination_find_elt, name_expansion_hash,
3769         name_expansion_eq, tree_to_aff_combination_expand,
3770         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
3771         New functions.
3772         * tree-affine.h (aff_combination_constant_multiple_p,
3773         tree_to_aff_combination_expand): Declare.
3774         * tree-predcom.c: New file.
3775         * common.opt (fpredictive-commoning): New option.
3776         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
3777         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
3778         * Makefile.in (tree-predcom.o): Add.
3779         (tree-affine.o): Add TREE_GIMPLE_H dependency.
3780         * passes.c (init_optimization_passes):  Add dceloop after
3781         copy propagation in loop optimizer.  Add predictive commoning
3782         to loop optimizer passes.
3783
3784 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3785
3786         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
3787         default hook.
3788
3789 2007-05-24  Jan Hubicka  <jh@suse.cz>
3790
3791         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
3792         statistics.
3793         (genheader): Include statistics.h.
3794
3795         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
3796         notes are gone.
3797         * print-rtl.c (flag_dump_unnumbered): Update comments.
3798         (print_rtl): Fix my previous change.
3799         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
3800         specific data.
3801
3802 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
3803
3804         PR middle-end/32018
3805         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
3806         set_loop_copy.
3807         (thread_through_all_blocks): Call initialize_original_copy_tables
3808         and free_original_copy_tables.
3809         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
3810         Use set_loop_copy.
3811         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
3812         * cfghooks.c (duplicate_block): Use get_loop_copy.
3813         * cfg.c: Include cfgloop.h.
3814         (loop_copy): New hash table.
3815         (initialize_original_copy_tables): Initialize loop_copy table.
3816         (free_original_copy_tables): Free loop_copy table.
3817         (copy_original_table_clear, copy_original_table_set,
3818         set_loop_copy, get_loop_copy): New functions.
3819         (set_bb_original, set_bb_copy): Use copy_original_table_set.
3820         * cfgloop.h (struct loop): Remove copy field.
3821         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
3822         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
3823
3824 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3825
3826         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
3827         -msse/-msse2/-msse3.
3828
3829 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3830
3831         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
3832         __builtin_ia32_vec_set_v2di with MASK_64BIT.
3833
3834 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
3835
3836         PR target/27067
3837         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
3838         * targhooks.h (default_mangle_decl_assembler_name): Declare
3839         default hook.
3840         * targhooks.c (default_mangle_decl_assembler_name): Define
3841         default hook.
3842         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
3843         default hook.
3844         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
3845         * langhooks.c (lhd_set_decl_assembler_name): Call
3846         targetm.mangle_decl_assembler_name for names with global scope.
3847
3848         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
3849         default.
3850         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
3851         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
3852         Declare.
3853         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3854         New. Factored out of i386_pe_encode_section_info.
3855         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
3856         Move check for prior decoration of stdcall
3857         symbols to i386_pe_encode_section_info.
3858         (i386_pe_encode_section_info): Adjust call to
3859         gen_stdcall_or_fastcall_suffix.  Use
3860         i386_pe_maybe_mangle_decl_assembler_name, if needed.
3861         (i386_pe_mangle_decl_assembler_name): New. Wrap
3862         i386_pe_maybe_mangle_decl_assembler_name.
3863
3864 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
3865
3866         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
3867         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
3868         * langhooks.c (get_signed_or_unsigned_type): Don't check for
3869         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
3870         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
3871         TYPE_UNSIGNED.
3872
3873 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
3874             Nigel Stephens  <nigel@mips.com>
3875             Richard Sandiford  <richard@codesourcery.com>
3876
3877         Fix up MIPS16 hard float and add support for complex.
3878
3879         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
3880         (TARGET_SOFT_FLOAT_ABI): New.
3881         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
3882         __mips_soft_float to reflect the ABI in use, not whether the
3883         FPU is directly accessible (e.g., in MIPS16 mode).
3884         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
3885         (UNITS_PER_FPVALUE): Likewise.
3886
3887         * config/mips/mips.c (mips_expand_call): Remove redundant
3888         TARGET_MIPS16 check.
3889         (mips_arg_regno): New.
3890         (function_arg_advance): When setting bits in cum->fp_code for
3891         MIPS16, don't subtract 1 from cum->arg_number, since it is now
3892         zero-based.
3893         (function_arg): Use mips_arg_regno.
3894         (mips_return_mode_in_fpr_p): New.
3895         (mips16_call_stub_mode_suffix): New.
3896         (mips16_cfun_returns_in_fpr_p): New.
3897         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
3898         (mips_output_function_prologue): Test mips16_hard_float, not
3899         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
3900         (mips_expand_epilogue): Call MIPS16 helper routines to copy
3901         return value into a floating-point register.
3902         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
3903         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
3904         (mips16_fp_args): Handle MIPS32r2 ISA which supports
3905         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
3906         word of double arguments from or to the high bits of 64-bit
3907         floating point registers.
3908         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
3909         (mips16_fpret_double): New helper function.
3910         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
3911         support for complex modes.  Fill in DECL_RESULT for stubdecl.
3912         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
3913
3914         * config/mips/mips16.S
3915         (RET, ARG1, ARG2): New.
3916         (MERGE_GPRf, MERGE_GPRt): New.
3917         (DELAYt, DELAYf): New.
3918         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
3919         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
3920         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
3921         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
3922         (SFOP): Renamed to...
3923         (OPSF3): This, and macro-ified.  Updated all uses.
3924         (SFOP2): Renamed to...
3925         (OPSF2): This, and macro-ified.  Updated all uses.
3926         (SFCMP): Renamed to...
3927         (CMPSF): This, and macro-ified.  Updated all uses.
3928         (SFREVCMP): Renamed to...
3929         (REVCMPSF): This, and macro-ified.  Updated all uses.
3930         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
3931         (LDDBL1, LDDBL2, RETDBL): Deleted.
3932         (DFOP): Renamed to...
3933         (OPDF3): This, and macro-ified.  Updated all uses.
3934         (DFOP2): Renamed to...
3935         (OPDF2): This, and macro-ified.  Updated all uses.
3936         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
3937         (DFCMP): Renamed to...
3938         (CMPDF): This, and macro-ified.  Updated all uses.
3939         (DFREVCMP): Renamed to...
3940         (REVCMPDF): This, and macro-ified.  Updated all uses.
3941         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
3942         (RET_FUNCTION): New.
3943         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
3944         (__mips16_ret_sc, __mips16_ret_dc): New.
3945         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
3946         STUB_ARGS_6, STUB_ARGS_10): New.
3947         (CALL_STUB_NO_RET): New.
3948         (__mips16_call_stub_1): Macro-ified.
3949         (__mips16_call_stub_5): Macro-ified.
3950         (__mips16_call_stub_2): Macro-ified.
3951         (__mips16_call_stub_6): Macro-ified.
3952         (__mips16_call_stub_9): Macro-ified.
3953         (__mips16_call_stub_10): Macro-ified.
3954         (CALL_STUB_RET): New.
3955         (__mips16_call_stub_sf_0): Macro-ified.
3956         (__mips16_call_stub_sf_1): Macro-ified.
3957         (__mips16_call_stub_sf_5): Macro-ified.
3958         (__mips16_call_stub_sf_2): Macro-ified.
3959         (__mips16_call_stub_sf_6): Macro-ified.
3960         (__mips16_call_stub_sf_9): Macro-ified.
3961         (__mips16_call_stub_sf_10): Macro-ified.
3962         (__mips16_call_stub_df_0): Macro-ified.
3963         (__mips16_call_stub_df_1): Macro-ified.
3964         (__mips16_call_stub_df_5): Macro-ified.
3965         (__mips16_call_stub_df_2): Macro-ified.
3966         (__mips16_call_stub_df_6): Macro-ified.
3967         (__mips16_call_stub_df_9): Macro-ified.
3968         (__mips16_call_stub_df_10): Macro-ified.
3969         (__mips16_call_stub_sc_0): New.
3970         (__mips16_call_stub_sc_1): New.
3971         (__mips16_call_stub_sc_5): New.
3972         (__mips16_call_stub_sc_2): New.
3973         (__mips16_call_stub_sc_6): New.
3974         (__mips16_call_stub_sc_9): New.
3975         (__mips16_call_stub_sc_10): New.
3976         (__mips16_call_stub_dc_0): New.
3977         (__mips16_call_stub_dc_1): New.
3978         (__mips16_call_stub_dc_5): New.
3979         (__mips16_call_stub_dc_2): New.
3980         (__mips16_call_stub_dc_6): New.
3981         (__mips16_call_stub_dc_9): New.
3982         (__mips16_call_stub_dc_10): New.
3983
3984         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
3985         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
3986         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
3987
3988 2007-05-23  Ian Lance Taylor  <iant@google.com>
3989
3990         * doc/invoke.texi (Invoking GCC): Document that the order of the
3991         -l option matters.
3992
3993 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
3994
3995         PR target/30987
3996         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
3997         * config/score/predicate.md (const_pow2, const_npow2): Remove.
3998         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
3999         undef.
4000
4001         PR target/30474
4002         * config/score/score.c (score_print_operand): Make sure that only
4003         lower bits are used.
4004
4005 2007-05-22  Ian Lance Taylor  <iant@google.com>
4006
4007         * tree-vrp.c (avoid_overflow_infinity): New static function,
4008         broken out of set_value_range_to_value.
4009         (set_value_range_to_value): Call avoid_overflow_infinity.
4010         (extract_range_from_assert): Likewise.
4011
4012 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4013
4014         PR middle-end/31095
4015          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
4016         change the type before looking for a COMPOUND_EXPR.
4017
4018 2007-05-22  Ian Lance Taylor  <iant@google.com>
4019
4020         * lower-subreg.c (decompose_multiword_subregs): If we change an
4021         insn, call remove_retval_note on it.
4022
4023 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
4024
4025         * regs.h (end_hard_regno): New function.
4026         (END_HARD_REGNO, END_REGNO): New macros.
4027         (add_to_hard_reg_set): New function.
4028         (remove_from_hard_reg_set): Likewise.
4029         (in_hard_reg_set_p): Likewise.
4030         (overlaps_hard_reg_set_p): Likewise.
4031         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
4032         (note_btr_set): Use END_HARD_REGNO.
4033         * caller-save.c (setup_save_areas): Use end_hard_regno.
4034         (mark_set_regs): Use END_HARD_REGNO.
4035         (add_stored_regs): Use end_hard_regno.
4036         (mark_referenced_regs): Use add_to_hard_reg_set.
4037         * combine.c (update_table_tick): Use END_REGNO.
4038         (record_value_for_reg): Likewise.
4039         (record_dead_and_set_regs): Likewise.
4040         (get_last_value_validate): Likewise.
4041         (use_crosses_set_p): Likewise.
4042         (reg_dead_at_p_1): Likewise.
4043         (reg_dead_at_p): Likewise.
4044         (mark_used_regs_combine): Use add_to_hard_reg_set.
4045         (move_deaths): Use END_HARD_REGNO.
4046         (reg_bitfield_target_p): Use end_hard_regno.
4047         (distribute_notes): Use END_HARD_REGNO.
4048         * cse.c (mention_regs): Use END_REGNO.
4049         (insert): Use add_to_hard_reg_set.
4050         (invalidate): Use END_HARD_REGNO.
4051         (invalidate_for_call): Likewise.
4052         (exp_equiv_p): Use END_REGNO.
4053         (cse_insn): Likewise.
4054         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
4055         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
4056         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
4057         * function.c (keep_stack_depressed): Use end_hard_regno.
4058         * global.c (global_alloc): Use end_hard_regno.
4059         (global_conflicts): Use add_to_hard_reg_set instead of
4060         mark_reg_live_nc.
4061         (find_reg): Likewise.
4062         (mark_reg_store): Likewise.
4063         (mark_reg_conflicts): Likewise.
4064         (mark_reg_death): Use remove_from_hard_reg_set.
4065         (mark_reg_live_nc): Delete.
4066         (set_preference): Use end_hard_regno.
4067         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
4068         remove_from_hard_reg_set.
4069         (post_mark_life): Use add_to_hard_reg_set.
4070         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
4071         (reg_becomes_live): Use add_to_hard_reg_set.
4072         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
4073         (peep2_find_free_register): Use add_to_hard_reg_set.
4074         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
4075         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
4076         * regrename.c (note_sets): Use add_to_hard_reg_set.
4077         (clear_dead_regs): Use remove_from_hard_reg_set.
4078         (regrename_optimize): Use add_to_hard_reg_set.
4079         (find_oldest_value_reg): Use in_hard_reg_set_p.
4080         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
4081         (hard_reg_set_here_p): Use end_hard_regno.
4082         (decompose): Likewise.
4083         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
4084         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
4085         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
4086         (mark_home_live): Use end_hard_regno.
4087         (spill_hard_reg): Likewise.
4088         (clear_reload_reg_in_use): Likewise.
4089         * reorg.c (delete_prior_computation): Use END_REGNO.
4090         * resource.c (update_live_status): Use END_HARD_REGNO.
4091         (mark_referenced_resources): Use add_to_hard_reg_set.
4092         (mark_set_resources): Likewise.
4093         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
4094         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
4095         (reg_overlap_mentioned_p): Likewise.
4096         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
4097         (covers_regno_no_parallel_p): Use END_REGNO.
4098         (find_regno_note): Likewise.
4099         (find_reg_fusage): Use END_HARD_REGNO.
4100         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
4101         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
4102
4103 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
4104
4105         * mode-switching.c (reg_dies): Change type of second argument to
4106         "HARD_REG_SET *".
4107         (optimize_mode_switching): Update accordingly.
4108
4109 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
4110
4111         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
4112         in favor of...
4113         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
4114         (hard_reg_set_empty_p): ...these new functions.
4115         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
4116         GO_IF_HARD_REG_SUBSET.
4117         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
4118         instead of GO_IF_HARD_REG_EQUAL.
4119         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
4120         instead of GO_IF_HARD_REG_EQUAL.
4121         * global.c (find_reg): Use hard_reg_set_empty_p instead of
4122         GO_IF_HARD_REG_SUBSET.
4123         (modify_reg_pav): Use hard_reg_set_empty_p instead of
4124         GO_IF_HARD_REG_EQUAL.
4125         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
4126         of GO_IF_HARD_REG_SUBSET.
4127         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
4128         instead of GO_IF_HARD_REG_EQUAL.
4129         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
4130         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
4131         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
4132         of GO_IF_HARD_REG_SUBSET,
4133         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
4134         GO_IF_HARD_REG_SUBSET.
4135         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
4136         instead of GO_IF_HARD_REG_EQUAL.
4137         * config/sh/sh.c (push_regs, calc_live_regs): Use
4138         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
4139         (hard_regs_intersect_p): Delete.
4140
4141 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
4142
4143         * doc/sourcebuild.texi (Test Directives) Add dg-message.
4144
4145 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4146             Richard Henderson  <rth@redhat.com>
4147
4148         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
4149         extra_headers.
4150         (x86_64-*-*): Likewise.
4151
4152         * i386/i386-modes.def (V2QI): New.
4153
4154         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
4155         SSE4A.
4156         (override_options): Support SSE4.1.
4157         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
4158         (IX86_BUILTIN_BLENDPS): Likewise.
4159         (IX86_BUILTIN_BLENDVPD): Likewise.
4160         (IX86_BUILTIN_BLENDVPS): Likewise.
4161         (IX86_BUILTIN_PBLENDVB128): Likewise.
4162         (IX86_BUILTIN_PBLENDW128): Likewise.
4163         (IX86_BUILTIN_DPPD): Likewise.
4164         (IX86_BUILTIN_DPPS): Likewise.
4165         (IX86_BUILTIN_INSERTPS128): Likewise.
4166         (IX86_BUILTIN_MOVNTDQA): Likewise.
4167         (IX86_BUILTIN_MPSADBW128): Likewise.
4168         (IX86_BUILTIN_PACKUSDW128): Likewise.
4169         (IX86_BUILTIN_PCMPEQQ): Likewise.
4170         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
4171         (IX86_BUILTIN_PMAXSB128): Likewise.
4172         (IX86_BUILTIN_PMAXSD128): Likewise.
4173         (IX86_BUILTIN_PMAXUD128): Likewise.
4174         (IX86_BUILTIN_PMAXUW128): Likewise.
4175         (IX86_BUILTIN_PMINSB128): Likewise.
4176         (IX86_BUILTIN_PMINSD128): Likewise.
4177         (IX86_BUILTIN_PMINUD128): Likewise.
4178         (IX86_BUILTIN_PMINUW128): Likewise.
4179         (IX86_BUILTIN_PMOVSXBW128): Likewise.
4180         (IX86_BUILTIN_PMOVSXBD128): Likewise.
4181         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
4182         (IX86_BUILTIN_PMOVSXWD128): Likewise.
4183         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
4184         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
4185         (IX86_BUILTIN_PMOVZXBW128): Likewise.
4186         (IX86_BUILTIN_PMOVZXBD128): Likewise.
4187         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
4188         (IX86_BUILTIN_PMOVZXWD128): Likewise.
4189         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
4190         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
4191         (IX86_BUILTIN_PMULDQ128): Likewise.
4192         (IX86_BUILTIN_PMULLD128): Likewise.
4193         (IX86_BUILTIN_ROUNDPD): Likewise.
4194         (IX86_BUILTIN_ROUNDPS): Likewise.
4195         (IX86_BUILTIN_ROUNDSD): Likewise.
4196         (IX86_BUILTIN_ROUNDSS): Likewise.
4197         (IX86_BUILTIN_PTESTZ): Likewise.
4198         (IX86_BUILTIN_PTESTC): Likewise.
4199         (IX86_BUILTIN_PTESTNZC): Likewise.
4200         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
4201         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
4202         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
4203         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
4204         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
4205         (bdesc_ptest): New.
4206         (bdesc_sse_3arg): Likewise.
4207         (bdesc_2arg): Likewise.
4208         (bdesc_1arg): Likewise.
4209         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
4210         with 3 args.
4211         (ix86_expand_sse_4_operands_builtin): New.
4212         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
4213         smaller than 8 bits as the 2nd arg.
4214         (ix86_expand_sse_ptest): New.
4215         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
4216         (ix86_expand_vector_set): Support SSE4.1.
4217         (ix86_expand_vector_extract): Likewise.
4218
4219         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
4220         __SSE4_1__ for -msse4.1.
4221
4222         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
4223         (UNSPEC_INSERTPS): Likewise.
4224         (UNSPEC_DP): Likewise.
4225         (UNSPEC_MOVNTDQA): Likewise.
4226         (UNSPEC_MPSADBW): Likewise.
4227         (UNSPEC_PHMINPOSUW): Likewise.
4228         (UNSPEC_PTEST): Likewise.
4229         (UNSPEC_ROUNDP): Likewise.
4230         (UNSPEC_ROUNDS): Likewise.
4231
4232         * config/i386/i386.opt (msse4.1): New for SSE4.1.
4233
4234         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
4235         (const_pow2_1_to_32768_operand): Likewise.
4236
4237         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
4238         file.
4239
4240         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
4241         SSE4.1.
4242         (sse4_1_insertps): Likewise.
4243         (*sse4_1_extractps): Likewise.
4244         (sse4_1_ptest): Likewise.
4245         (sse4_1_mulv2siv2di3): Likewise.
4246         (*sse4_1_mulv4si3): Likewise.
4247         (*sse4_1_smax<mode>3): Likewise.
4248         (*sse4_1_umax<mode>3): Likewise.
4249         (*sse4_1_smin<mode>3): Likewise.
4250         (*sse4_1_umin<mode>3): Likewise.
4251         (sse4_1_eqv2di3): Likewise.
4252         (*sse4_1_pinsrb): Likewise.
4253         (*sse4_1_pinsrd): Likewise.
4254         (*sse4_1_pinsrq): Likewise.
4255         (*sse4_1_pextrb): Likewise.
4256         (*sse4_1_pextrb_memory): Likewise.
4257         (*sse4_1_pextrw_memory): Likewise.
4258         (*sse4_1_pextrq): Likewise.
4259         (sse4_1_blendpd): Likewise.
4260         (sse4_1_blendps): Likewise.
4261         (sse4_1_blendvpd): Likewise.
4262         (sse4_1_blendvps): Likewise.
4263         (sse4_1_dppd): Likewise.
4264         (sse4_1_dpps): Likewise.
4265         (sse4_1_movntdqa): Likewise.
4266         (sse4_1_mpsadbw): Likewise.
4267         (sse4_1_packusdw): Likewise.
4268         (sse4_1_pblendvb): Likewise.
4269         (sse4_1_pblendw): Likewise.
4270         (sse4_1_phminposuw): Likewise.
4271         (sse4_1_extendv8qiv8hi2): Likewise.
4272         (*sse4_1_extendv8qiv8hi2): Likewise.
4273         (sse4_1_extendv4qiv4si2): Likewise.
4274         (*sse4_1_extendv4qiv4si2): Likewise.
4275         (sse4_1_extendv2qiv2di2): Likewise.
4276         (*sse4_1_extendv2qiv2di2): Likewise.
4277         (sse4_1_extendv4hiv4si2): Likewise.
4278         (*sse4_1_extendv4hiv4si2): Likewise.
4279         (sse4_1_extendv2hiv2di2): Likewise.
4280         (*sse4_1_extendv2hiv2di2): Likewise.
4281         (sse4_1_extendv2siv2di2): Likewise.
4282         (*sse4_1_extendv2siv2di2): Likewise.
4283         (sse4_1_zero_extendv8qiv8hi2): Likewise.
4284         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
4285         (sse4_1_zero_extendv4qiv4si2): Likewise.
4286         (*sse4_1_zero_extendv4qiv4si2): Likewise.
4287         (sse4_1_zero_extendv2qiv2di2): Likewise.
4288         (*sse4_1_zero_extendv2qiv2di2): Likewise.
4289         (sse4_1_zero_extendv4hiv4si2): Likewise.
4290         (*sse4_1_zero_extendv4hiv4si2): Likewise.
4291         (sse4_1_zero_extendv2hiv2di2): Likewise.
4292         (*sse4_1_zero_extendv2hiv2di2): Likewise.
4293         (sse4_1_zero_extendv2siv2di2): Likewise.
4294         (*sse4_1_zero_extendv2siv2di2): Likewise.
4295         (sse4_1_roundpd): Likewise.
4296         (sse4_1_roundps): Likewise.
4297         (sse4_1_roundsd): Likewise.
4298         (sse4_1_roundss): Likewise.
4299         (mulv4si3): Don't expand for SSE4.1.
4300         (smax<mode>3): Likewise.
4301         (umaxv4si3): Likewise.
4302         (uminv16qi3): Likewise.
4303         (umin<mode>3): Likewise.
4304         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
4305
4306         * doc/extend.texi: Document SSE4.1 built-in functions.
4307
4308         * doc/invoke.texi: Document -msse4.1.
4309
4310 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
4311
4312         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
4313         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
4314         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
4315         (ASM_SPEC): Add asm_pcrel_spec.
4316         (EXTRA_SPECS): Add asm_pcrel_spec.
4317
4318 2007-05-21  David Daney  <ddaney@avtrex.com>
4319
4320         * doc/install.texi (Building a cross compiler): Add requirements
4321         for Java cross compiler.
4322
4323 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4324
4325         PR middle-end/31995
4326         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
4327         Add loopno argument.  Use evolution_function_is_invariant_rec_p
4328         instead of evolution_function_is_constant_p.
4329         Update calls to evolution_function_is_affine_multivariate_p.
4330         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
4331         Add loopno argument.
4332         * tree-scalar-evolution.c (gather_chrec_stats): Call
4333         evolution_function_is_affine_multivariate_p with a loop
4334         number of 0.
4335         * tree-data-ref.c (analyze_miv_subscript): Likewise.
4336         (analyze_overlapping_iterations): Likewise.
4337         (access_functions_are_affine_or_constant_p): Likewise.
4338         (build_classic_dist_vector_1): If the access functions
4339         are equal, don't do anything.
4340
4341 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
4342             Paolo Carlini  <pcarlini@suse.de>
4343             Uros Bizjak  <ubizjak@gmail.com>
4344
4345         * c-cppbuiltin.c (c_cpp_builtins): Define
4346         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
4347         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
4348         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
4349         * doc/cpp.texi ([Standard Predefined Macros]): Document.
4350
4351 2007-05-21  Mike Stump  <mrs@apple.com>
4352
4353         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
4354         handling as well.
4355         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
4356
4357 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
4358
4359         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
4360         implementation if __OPTIMIZE__ is not defined.
4361         (_mm_alignr_pi8): Ditto.
4362         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
4363         (_mm_inserti_si64): Ditto.
4364         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
4365         (_mm_slli_epi16): Ditto.
4366         (_mm_slli_epi32): Ditto.
4367         (_mm_slli_epi64): Ditto.
4368         (_mm_srai_epi16): Ditto.
4369         (_mm_srai_epi32): Ditto.
4370         (_mm_srli_si128): Ditto.
4371         (_mm_slli_si128): Ditto.
4372         (_mm_srli_epi16): Ditto.
4373         (_mm_srli_epi32): Ditto.
4374         (_mm_srli_epi64): Ditto.
4375         (_mm_extract_epi16): Ditto.
4376         (_mm_insert_epi16): Ditto.
4377         (_mm_shufflehi_epi16): Ditto.
4378         (_mm_shufflelo_epi16): Ditto.
4379         (_mm_shuffle_epi32): Ditto.
4380         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
4381         (_m_pextrw): Ditto.
4382         (_mm_insert_pi16): Ditto.
4383         (_m_pinsrw): Ditto.
4384         (_mm_shuffle_pi16): Ditto.
4385         (_m_pshufw): Ditto.
4386         (_mm_shufle_ps): Ditto.
4387         (_mm_prefetch): Ditto.
4388
4389 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4390
4391         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
4392         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
4393         * real.c (encode_i370_single, decode_i370_single,
4394         encode_i370_double, decode_i370_double): Functions removed.
4395         (i370_single_format, i370_double_format): Initializations removed.
4396         (real_maxval, round_for_format, exact_real_truncate, significand_size):
4397         Consider the log2_b field to always be one.
4398         (ieee_single_format, mips_single_format, coldfire_single_format,
4399         ieee_double_format, mips_double_format, coldfire_double_format,
4400         ieee_extended_motorola_format, ieee_extended_intel_96_format,
4401         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4402         ibm_extended_format, mips_extended_format, ieee_quad_format,
4403         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4404         decimal_single_format, decimal_double_format, decimal_quad_format,
4405         c4x_single_format, c4x_extended_format, real_internal_format): Remove
4406         initialization of log2_b.
4407         * real.h (i370_single_format, i370_double_format): Declarations removed.
4408         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
4409         field to always be one.
4410
4411 2007-05-21  Andreas Schwab  <schwab@suse.de>
4412
4413         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
4414         NOTE_INSN_BASIC_BLOCK_P.
4415         (process_for_unwind_directive): Likewise.
4416
4417 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
4418
4419         * builtins.c (expand_builtin_setjmp_setup): Update comment.
4420         * function.h (struct function): Move va_list_gpr_size,
4421         va_list_fpr_size, function_frequency to front of bitfields.  Add
4422         calls_unwind_init.
4423         (current_function_calls_unwind_init): New.
4424         * except.c (expand_builtin_unwind_init): Set
4425         current_function_calls_unwind_init not
4426         current_function_has_nonlocal_label.
4427         * reload1.c (has_nonexceptional_receiver): New.
4428         (reload): Use it and current_function_calls_unwind_init to
4429         determine whether call-saved regs must be saved.
4430
4431 2007-05-20  Jan Hubicka  <jh@suse.cz>
4432
4433         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
4434         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
4435         * ddg.c (create_ddg): LIkewise.
4436         * final.c (final): Remove hunk moving line numbernotes around since
4437         they are no longer present at this stage.
4438         (final_scan_insn): Use NOTE_KIND instead of
4439         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
4440         (output_asm_label): Likewise.
4441         * reorg.c (dbr_schedule): Likewise.
4442         * haifa-sched.c (unlink_other_notes): Likewise.
4443         * mode-switching.c (optimize_mode_switching): Likewise.
4444         * graph.c (start_bb): Likewise.
4445         * rtl.def (NOTE): Update description.
4446         * jump.c (squeeze_notes): Delete.
4447         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
4448         NOTE_INSN_BASIC_BLOCK_P when possible.
4449         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
4450         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
4451         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
4452         (dwarf2out_var_location): Likewise.
4453         * cfgbuild.c (make_edges): Likewise.
4454         (find_basic_blocks_1): Likewise.
4455         * function.c (reorder_blocks_1): Likewise.
4456         (epilogue_done): Likewise.
4457         (reposition_prologue_and_epilogue_notes): Likewise.
4458         * print-rtl.c (print_rtx): Likewise; drop code for printing line number
4459         notes.
4460         (print_rtl): Likewise.
4461         (print_rtl_single): Likewise.
4462         * gcse.c (insert_insn_start_bb): Likewise.
4463         * alias.c (init_alias_analysis): Likewise.
4464         * calls.c (fixup_tail_calls): Likewise.
4465         * except.c (sjlj_emit_function_enter): Likewise.
4466         * emit-rtl.c (add_insn_after): Likeiwse.
4467         (emit_label_before): Likewise.
4468         (emit_label_after): Likewise.
4469         (emit_note_before, emit_note_after, emit_note): Update
4470         parameter to be enum insn_note; do not deal with source
4471         files.
4472         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
4473         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
4474         when possible.
4475         (merge_blocks_move_successor_nojumps): Simplify now when
4476         we don't have BLOCK notes.
4477         (try_optimize_cfg): Likewise.
4478         * cfglayout.c (skip_insns_after_block): Likewise.
4479         (record_effective_endpoints): Likewise.
4480         (duplicate_insn_chain): Likewise.
4481         * varasm.c (output_constant_pool_1): Likewise.
4482         * sched-deps.c (sched_analyze): Likewise.
4483         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
4484         Exterminate.
4485         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
4486         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
4487         (SET_INSN_DELETED): Simplify.
4488         (NOTE_LINE_NUMBER): Exterminate.
4489         (NOTE_LINE_KIND): New.
4490         (NOTE_INSN_BASIC_BLOCK_P): Update.
4491         (enum insn_note): Simplify.
4492         (GET_NOTE_INSN_NAME) Simplify.
4493         (emit_note_before, emit_note_after, emit_note): Update prototype.
4494         (squeeze_notes): Remove.
4495         * sched-int.h (NOTE_NOT_BB_P): Update.
4496         * resource.c (mark_target_live_regs): Update.
4497         * sched-rgn.c (debug_dependencies): Update.
4498         * sched-vis.c (print_insn): Update.
4499         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
4500         * config/i386/i386.c (ix86_output_function_epilogue): Update.
4501         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
4502         (TARGET_ADJUST_UNROLL_MAX): Likewise.
4503         (split_branches): Update.
4504         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
4505         4.0.0.
4506         (sh_adjust_unroll_max): Exterminate.
4507         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
4508         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
4509         (m68hc11_reorg): Likewise.
4510         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
4511         (emit_predicate_relation_info): Update.
4512         (process_for_unwind_directive): Update.
4513         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
4514         (output_call): Update.
4515         * config/pa/pa.c (output_lbranch): Update.
4516         (output_millicode_call): Update.
4517         (output_call): Update.
4518         (pa_combine_instructions): Update.
4519         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
4520         * config/bfin/bfin.c (gen_one_bundle): Update.
4521         * cfgrtl.c (can_delete_note_p): Update.
4522         (delete_insn): Update.
4523         (rtl_merge_blocks): Update.
4524         (commit_one_edge_insertion): Update.
4525         (rtl_verify_flow_info): Update.
4526         * stmt.c (expand_case): Do not call squeeze_notes.
4527
4528 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4529
4530         PR middle-end/7651
4531         PR c++/11856
4532         PR c/12963
4533         PR c/23587
4534         PR other/29694
4535         * c.opt (Wtype-limits): New.
4536         * doc/invoke.texi (Wtype-limits): Document it.
4537         (Wextra): Enabled by -Wextra.
4538         * c-opts.c (c_common_post_options): Enabled by -Wextra.
4539         * c-common.c (shorten_compare): Warn with Wtype-limits.
4540
4541 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
4542
4543         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
4544         inlined function, not as a macro.
4545         (_mm_alignr_pi8): Ditto.
4546         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
4547         (_mm_inserti_si64): Ditto.
4548         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
4549         (_mm_extract_epi16): Ditto.
4550         (_mm_insert_epi16): Ditto.
4551         (_mm_shufflehi_epi16): Ditto.
4552         (_mm_shufflelo_epi16): Ditto.
4553         (_mm_shuffle_epi32): Ditto.
4554         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
4555         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
4556         all functions.
4557         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
4558         float constant.
4559         (_m_to_float): Use C89 compatible assignment.
4560
4561 2007-04-20  Martin Michlmayr  <tbm@cyrius.com>
4562
4563         PR target/32007
4564         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
4565
4566 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4567
4568         PR middle-end/7651
4569         * doc/invoke.texi (Wreturn-type): Complete description.
4570         (Wextra): Delete item about return-type warning.
4571         * c-decl.c: Delete redundant Wextra warning.
4572
4573 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
4574
4575         PR target/31585
4576         * config/i386/pmmintrin.h: Do not include xmmintrin.h
4577         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
4578         inlined function, not as a macro.
4579         (_mm_prefetch): Ditto.
4580         (_m_pextrw): Ditto.
4581         (_mm_insert_pi16): Ditto.
4582         (_m_pinsrw): Ditto.
4583         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
4584         (_m_pshufw): Ditto. Add const to __N argument.
4585         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
4586         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
4587         (_mm_slli_epi32): Ditto.
4588         (_mm_srli_si128): Implement as always inlined function, not as a macro.
4589         Add __inline to function declaration.
4590         (_mm_slli_si128): Ditto.
4591
4592 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
4593
4594         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
4595         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
4596         New constants.
4597         (struct fenv): New structure.
4598         (FP_HANDLE_EXCEPTIONS): New define.
4599         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
4600         (_FP_DECL_EXP): New define.
4601         (FP_INIT_ROUNDMODE): New define.
4602         (FP_ROUNDMODE): New define.
4603
4604 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4605
4606         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
4607         (Wconversion): Update description.
4608         (Wconversion-sign): New.
4609         * c.opt (Wconversion-sign): New.
4610         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
4611         means disabled for C++. Otherwise, take the status of Wconversion.
4612         * c-common.c (conversion_warning): Warn with either Wconversion or
4613         Wconversion-sign.
4614         (warnings_for_convert_and_check): Conditions are already checked by
4615         conversion_warning.
4616         (convert_and_check): Don't check warnings if the conversion failed.
4617
4618 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
4619            Anatoly Sokolov <aesok@dol.ru>
4620
4621         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
4622         avr_epilogue_uses) : Add declaration.
4623         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
4624         * config/avr/constraints.md (R): New constraint.
4625         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
4626         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
4627         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
4628         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
4629         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
4630         call_prologue_saves, epilogue_restores, return_from_epilogue,
4631         return_from_main_epilogue, return_from_interrupt_epilogue,
4632         return_from_naked_epilogue, prologue, epilogue): New patterns.
4633         (jump): Handle symbol reference.
4634         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
4635         avr_output_function_prologue, avr_output_function_epilogue): Remove
4636         functions.
4637         (avr_init_machine_status, expand_prologue, expand_epilogue,
4638         avr_asm_function_end_prologue, avr_epilogue_uses,
4639         avr_asm_function_begin_epilogue): New functions.
4640         (prologue_size, epilogue_size, jump_tables_size): Remove global
4641         variables.
4642         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4643         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
4644         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
4645         (avr_override_options): Initialise init_machine_status.
4646         (output_movhi): Handle all stack pointer loads.
4647         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
4648         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
4649         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
4650         (EPILOGUE_USES) Redefine.
4651         (machine_function) Declare.
4652
4653 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
4654
4655         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
4656         Use a single return statement.
4657
4658 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4659
4660         PR middle-end/30250
4661         * builtins.c (do_mpfr_lgamma_r): New.
4662         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
4663         * tree.h (CASE_FLT_FN_REENT): New.
4664
4665 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
4666
4667         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
4668         (output_die): Use 'unsigned long' with %x.
4669         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
4670         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
4671         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
4672
4673         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
4674
4675 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4676
4677         PR target/31989
4678         PR target/31681
4679         PR target/31666
4680         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
4681         true if function has no argument.
4682
4683 2007-05-18  DJ Delorie  <dj@redhat.com>
4684
4685         * config/mips/mips.c (mips_offset_within_alignment_p): New.
4686         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
4687
4688 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
4689
4690         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
4691         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
4692         count_trailing_zeros.
4693         (__i386__): Implement count_leading_zeros using __builtin_clz().
4694         Implement count_trailing_zeros usign __builtin_ctz().
4695
4696 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
4697
4698         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
4699
4700 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
4701
4702         PR middle-end/31344
4703         * expr.c (emit_move_change_mode): Change mode of push operands here.
4704
4705 2007-05-17  Ian Lance Taylor  <iant@google.com>
4706
4707         PR tree-optimization/31953
4708         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
4709         Change all callers.
4710         (set_value_range_to_null): Call set_value_range_to_value.
4711         (extract_range_from_comparison): Likewise.
4712
4713 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4714
4715         * toplev.c (print_version): Output GMP/MPFR version info.
4716
4717         * builtins.c (CASE_MATHFN_REENT): New macro.
4718         (mathfn_built_in): Use it.
4719         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
4720         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
4721         BUILT_IN_LGAMMAL_R): New.
4722         * doc/extend.texi: Document new builtins.
4723
4724         PR middle-end/31796
4725         * builtins.c (do_mpfr_remquo): New.
4726         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
4727         (fold_builtin_3): Handle BUILT_IN_REMQUO.
4728
4729         PR middle-end/30251
4730         * builtins.c (fold_builtin_1): Handle y0, y1.
4731         (fold_builtin_2): Handle yn.
4732
4733         PR middle-end/30251
4734         * builtins.c (do_mpfr_bessel_n): New.
4735         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
4736         (fold_builtin_2): Handle BUILT_IN_JN.
4737
4738 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
4739
4740         PR target/31965
4741         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
4742         TYPE_PRECISION (intmax_type_node).
4743
4744 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
4745
4746         PR target/31850
4747         * reload.c (subst_reloads): Remove checking.
4748
4749 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4750
4751         PR rtl-optimization/31691
4752         * combine.c (simplify_set): Build a new src pattern instead of
4753         substituting its operands in the COMPARE case.
4754
4755 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4756
4757         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
4758         (execute_vrp): Preserve loops through jump threading.
4759         * tree-ssa-threadupdate.c (thread_single_edge,
4760         dbds_continue_enumeration_p, determine_bb_domination_status,
4761         thread_through_loop_header): New functions.
4762         (create_edge_and_update_destination_phis,
4763         create_edge_and_update_destination_phis): Set loops for the new blocks.
4764         (prune_undesirable_thread_requests): Removed.
4765         (redirect_edges): Do not pretend that redirect_edge_and_branch can
4766         create new blocks.
4767         (thread_block): Do not call prune_undesirable_thread_requests.
4768         Update loops.
4769         (mark_threaded_blocks): Select edges to thread here.
4770         (thread_through_all_blocks): Take may_peel_loop_headers argument.
4771         Thread edges through loop headers independently.
4772         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
4773         * tree-pass.h (TODO_mark_first_instance): New.
4774         (first_pass_instance): Declare.
4775         * cfghooks.c (duplicate_block): Put the block to the original loop
4776         if copy is not specified.
4777         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
4778         jump threading.  Pass may_peel_loop_headers to
4779         thread_through_all_blocks according to first_pass_instance.
4780         * cfgloop.h (create_preheader): Declare.
4781         * tree-flow.h (thread_through_all_blocks): Declaration changed.
4782         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
4783         * passes.c (first_pass_instance): New variable.
4784         (next_pass_1): Set TODO_mark_first_instance.
4785         (execute_todo): Set first_pass_instance.
4786
4787 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
4788
4789         PR tree-optimization/24659
4790         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
4791         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
4792         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
4793         OTI_vec_pack_ufix_trunc.
4794         (vec_unpacks_float_hi_optab): Define new macro.
4795         (vec_unpacks_float_lo_optab): Ditto.
4796         (vec_unpacku_float_hi_optab): Ditto.
4797         (vec_unpacku_float_lo_optab): Ditto.
4798         (vec_pack_sfix_trunc_optab): Ditto.
4799         (vec_pack_ufix_trunc_optab): Ditto.
4800         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
4801         and vec_pack_[s|u]fix_trunc_optab using
4802         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
4803         * tree-vectorizer.c (supportable_widening_operation): Handle
4804         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
4805         (supportable_narrowing_operation): New function.
4806         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
4807         * tree-vect-transform.c (vectorizable_conversion): Handle
4808         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
4809         (vect_gen_widened_results_half): Move before vectorizable_conversion.
4810         (vectorizable_type_demotion): Call supportable_narrowing_operation()
4811         to check for target support.
4812         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
4813         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
4814         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
4815         for VEC_PACK_FIX_TRUNC_EXPR.
4816         (expand_binop): Special case mode of the result for
4817         vec_pack_[u|s]fix_trunc_optab.
4818         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
4819         vec_pack_[u|s]fix_trunc_optab.
4820
4821         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
4822         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
4823         * tree-pretty-print.c (dump_generic_node): Handle
4824         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
4825         VEC_PACK_FIX_TRUNC_EXPR.
4826         (op_prio): Ditto.
4827         * expr.c (expand_expr_real_1): Ditto.
4828         * tree-inline.c (estimate_num_insns_1): Ditto.
4829         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4830
4831         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
4832         (vec_unpacks_float_lo_v8hi): Ditto.
4833         (vec_unpacku_float_hi_v8hi): Ditto.
4834         (vec_unpacku_float_lo_v8hi): Ditto.
4835         (vec_unpacks_float_hi_v4si): Ditto.
4836         (vec_unpacks_float_lo_v4si): Ditto.
4837         (vec_pack_sfix_trunc_v2df): Ditto.
4838
4839         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
4840         Document.
4841         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
4842         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
4843         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
4844         [vec_pack_ufix_trunc]: Ditto.
4845         [vec_unpacks_float_hi]: Ditto.
4846         [vec_unpacks_float_lo]: Ditto.
4847         [vec_unpacku_float_hi]: Ditto.
4848         [vec_unpacku_float_lo]: Ditto.
4849
4850 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
4851
4852         * soft-fp/README: Update for new files.
4853         * soft-fp/floattisf.c: New file.
4854         * soft-fp/floattidf.c: New file.
4855         * soft-fp/floattitf.c: New file.
4856         * soft-fp/floatuntisf.c: New file.
4857         * soft-fp/floatuntidf.c: New file.
4858         * soft-fp/floatuntitf.c: New file.
4859         * soft-fp/fixsfti.c: New file.
4860         * soft-fp/fixdfti.c: New file.
4861         * soft-fp/fixtfti.c: New file.
4862         * soft-fp/fixunssfti.c: New file.
4863         * soft-fp/fixunsdfti.c: New file.
4864         * soft-fp/fixunstfti.c: New file.
4865         * soft-fp/extendxftf.c: New file.
4866         * soft-fp/trunctfxf.c: New file.
4867
4868         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
4869         (__trunctfxf2): Ditto.
4870
4871         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
4872         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
4873         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
4874         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
4875         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
4876         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
4877
4878         * config/i386/t-fprules-softfp64: New file.
4879         * config/i386/sfp-machine.h: New file.
4880         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
4881         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
4882         and soft-fp/t-softfp to tmake_file.
4883         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4884         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
4885
4886         * config/i386/t-linux64 (softfp_wrap_start): New.
4887         (softfp_wrap_end): New.
4888         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
4889         supported for TARGET_64BIT.
4890
4891 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
4892
4893         * c-common.c (c_common_signed_or_unsigned_type): Emulate
4894         c_common_unsigned_type behavior.
4895
4896 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
4897
4898         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
4899         calls as pure.
4900
4901 2007-05-16  Eric Christopher  <echristo@apple.com>
4902
4903         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
4904         saving after stack push. Set sp_offset whenever we push.
4905         (rs6000_emit_epilogue): Move altivec register restore before
4906         stack push.
4907
4908 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
4909
4910         * configure.ac: Allow sysroots to be relocated under $prefix as
4911         well as $exec_prefix.
4912         * configure: Regenerate.
4913
4914 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
4915
4916         Revert:
4917
4918         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
4919
4920         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
4921         (gcc_tooldir): Likewise.
4922         * configure: Regenerate.
4923         * Makefile.in (libsubdir_to_prefix): New variable, based on the
4924         old configure.ac gcc_tooldir setting.
4925         (prefix_to_exec_prefix): New variable.
4926         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
4927         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
4928
4929 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
4930
4931         * c-typeck.c (build_binary_op): Return early for error.
4932
4933 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
4934
4935         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
4936         struct nb_iter_bound.
4937         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
4938         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
4939         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
4940         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
4941         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
4942         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
4943         (del_scev_info): Use ggc_free.
4944         (scev_initialize): Allocate scalar_evolution_info in gc memory.
4945         * loop-init.c: Include ggc.h.
4946         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
4947         (loop_optimizer_finalize): Use ggc_free.
4948         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
4949         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
4950         pass_iv_optimize): Add TODO_ggc_collect.
4951         * function.h (struct function): Remove skip marker from x_current_loops.
4952         * cfgloop.c: Include ggc.h.
4953         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
4954         memory.
4955         (establish_preds): Vector superloops is gc allocated.
4956         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
4957         loop->exits list.
4958         (flow_loops_find): Vector larray is gc allocated.
4959         (loop_exit_free): Use ggc_free.
4960         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
4961         that head of exits list is now not a part of struct loop.
4962         (record_loop_exits): Allocate exits table in gc memory.
4963         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
4964         head of exits list is now not a part of struct loop.
4965         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
4966         struct loop_exit): Add GTY marker.
4967         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
4968         Add skip marker to aux field.  Make head of exits list a separate
4969         object.
4970         (struct loops): Add GTY marker.  Make larray vector gc allocated.
4971         Add param marker to exits table.
4972         (get_loops): Type changed.
4973         * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
4974         dependency.
4975         (cfgloop.o, loop-init.o): Add ggc.h dependency.
4976         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
4977         * basic-block.h (struct basic_block_def): Remove skip marker from
4978         loop_father field.
4979
4980 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
4981
4982         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
4983         of 0 in the call to expand_expr().
4984         (expand_builtin_mathfn_3): Ditto.
4985         (expand_builtin_interclass_mathfn): Ditto.
4986         (expand_builtin_cexpi): Ditto.
4987         (expand_builtin_int_roundingfn): Ditto.
4988         (expand_builtin_int_roundingfn_2): Ditto.
4989         (expand_builtin_pow): Ditto.
4990         (expand_builtin_powi): Ditto.
4991         (expand_builtin_bswap): Ditto.
4992         (expand_builtin_unop): Ditto.
4993         (expand_builtin_fabs): Ditto.
4994         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
4995         the call to expand_expr().
4996         (expand_builtin_sync_operation): Ditto.
4997         (expand_builtin_compare_and_swap): Ditto.
4998         (expand_builtin_lock_test_and_set): Ditto.
4999         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
5000         instead of 0 in the call to expand_expr().
5001         (expand_builtin_extract_return_addr): Ditto.
5002         (expand_builtin_eh_return): Ditto.
5003         (expand_eh_return): Ditto.
5004         * explow.c (expr_size): Ditto.
5005         * expr.c (optimize_bitfield_assignment_op): Ditto.
5006         (expand_assignement): Ditto.
5007         (store_expr): Ditto.
5008         (store_field): Ditto.
5009         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
5010         the call to expand_expr().
5011         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
5012         in the call to expand_expr().
5013         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
5014         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
5015         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
5016         of expand_expr().
5017         * optabs.c (expand_vec_shift_expr): Ditto.
5018         (expand_vec_cond_expr): Ditto.
5019         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
5020         call to expand_expr().
5021         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
5022         in the call to expand_expr().
5023
5024 2007-05-14  Dave Korn  <dave.korn@artimi.com>
5025
5026         * genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
5027
5028 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
5029
5030         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
5031         instead of c_common_unsigned_type.
5032         (c_common_unsigned_type): Remove.
5033         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
5034         c_common_unsigned_type.
5035         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
5036         c_common_unsigned_type.
5037         * c-common.h (c_common_unsigned_type): Remove.
5038         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
5039         c_common_unsigned_type.
5040         * c-format.c (check_format_types): Use unsigned_type_for instead of
5041         c_common_unsigned_type.
5042         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5043         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
5044         c_common_unsigned_type.
5045         * convert.c (convert_to_integer): Use unsigned_type_for instead of
5046         lang_hooks.types.unsigned_type.
5047         * expmed.c (make_tree): Use unsigned_type_for instead of
5048         lang_hooks.types.unsigned_type.
5049         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
5050         lang_hooks.types.unsigned_type.
5051         (build_range_check): Likewise.
5052         (fold_unary): Likewise.
5053         (fold_binary): Likewise.
5054         (fold_ternary): Likewise.
5055         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5056         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
5057         * tree.c (get_unsigned_type): New.
5058         (unsigned_type_for): Use get_unsigned_type instead of
5059         lang_hooks.types.unsigned_type.
5060
5061 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
5062
5063         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
5064         to m68k_get_function_kind.  Update its prototype.
5065         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
5066         interrupt_thread.
5067         (m68k_interrupt_function_p): Return enum m68k_function_type
5068         instead of bool.  Rename to m68k_get_function_kind.
5069         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
5070         target is not fido.
5071         (m68k_compute_frame_layout): Don't mark any register for save
5072         if an interrupt_thread attribute is specified.
5073         (m68k_hard_regno_rename_ok): Update a use of
5074         m68k_interrupt_function_p.
5075         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
5076         m68k_interrupt_function_p.
5077         (m68k_function_type): New.
5078         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
5079         for a function with an interrupt_thread attribute.
5080         * doc/extend.texi: Document the interrupt_thread attribute.
5081
5082 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
5083
5084         Fix PR tree-optimization/31911
5085         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
5086         if they didn't change the expression.
5087
5088 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
5089
5090         * tree-scalar-evolution.c (resolve_mixers): Exported.
5091         * tree-scalar-evolution.h (resolve_mixers): Declare.
5092         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
5093         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
5094         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
5095         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
5096         init_array_ref, init_pointer_ref, analyze_indirect_ref,
5097         strip_conversion, analyze_offset_expr, address_analysis,
5098         object_analysis, analyze_offset): Removed.
5099         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
5100         split_constant_offset, canonicalize_base_object_address,
5101         object_address_invariant_in_loop_p, disjoint_objects_p,
5102         dr_may_alias_p, dr_address_invariant_p): New functions.
5103         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
5104         and dr_analyze_alias.
5105         (initialize_data_dependence_relation): Use dr_may_alias_p
5106         and object_address_invariant_in_loop_p.
5107         (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
5108         is chrec_dont_know.
5109         (find_data_references_in_stmt): Restrict the analysis of data references
5110         to the given loop nest.
5111         (find_data_references_in_loop): Made static.  Pass loop nest to
5112         find_data_references_in_stmt.
5113         (compute_data_dependences_for_loop): Use DR_VOPS.
5114         (free_data_ref): Free DR_VOPS.
5115         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
5116         (struct innermost_loop_behavior): ... new.
5117         (struct base_object_info): Replaced by ...
5118         (struct indices): ... new.
5119         (struct dr_alias): New.
5120         (enum data_ref_type): Removed.
5121         (struct data_reference): Consist of struct innermost_loop_behavior,
5122         struct indices and struct dr_alias.
5123         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
5124         (DR_MEMTAG): Renamed to ...
5125         (DR_SYMBOL_TAG): ... this.
5126         (find_data_references_in_loop): Declaration removed.
5127         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
5128         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
5129         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
5130         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
5131
5132 2007-05-13  Revital Eres  <eres@il.ibm.com>
5133
5134         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
5135         which walks virtual def-use chains to find redundant stores.
5136         (dse_optimize_stmt): Call it.
5137
5138 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
5139
5140         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
5141         * passes.c (init_optimization_passes): Move pass_jump_bypass
5142         after loop2.
5143
5144         * basic-block.h (bb_has_eh_pred): Fix style issue.
5145
5146 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
5147
5148         PR rtl-optimization/31848
5149         * loop-invariant.c (move_invariant_reg): If we move an insn
5150         with a REG_EQUAL note, and that insn is not always executed,
5151         remove the REG_EQUAL note.
5152
5153 2007-05-12  Richard Guenther  <rguenther@suse.de>
5154
5155         PR tree-optimization/31797
5156         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
5157         propagate into a stmt that has volatile ops.
5158
5159 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
5160
5161         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
5162         (gcc_tooldir): Likewise.
5163         * configure: Regenerate.
5164         * Makefile.in (libsubdir_to_prefix): New variable, based on the
5165         old configure.ac gcc_tooldir setting.
5166         (prefix_to_exec_prefix): New variable.
5167         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
5168         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
5169
5170 2007-05-11  Silvius Rus  <rus@google.com>
5171
5172         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
5173         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
5174         * c-common.h (strict_aliasing_warning): Change return type.
5175         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
5176         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
5177         (build_c_cast): Condition call to strict_aliasing_warning.
5178         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
5179         * flags.h (set_Wstrict_aliasing): Declare.
5180         * opts.c (set_Wstrict_alising): Define, add call to.
5181         * tree-flow.h (strict_aliasing_warning_backend): Declare.
5182         * tree-ssa-alias-warnings.c: New file.
5183         * tree-ssa-alias.c (compute_may_aliases): Add call to
5184         strict_aliasing_warning_backend.
5185
5186 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
5187
5188         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
5189         Use loop_depth and loop_outer accessor functions.
5190         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
5191         determine_invariantness_stmt, move_computations_stmt): Ditto.
5192         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
5193         add_loop, loopify, unloop, fix_loop_structure): Ditto.
5194         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
5195         * tree-scalar-evolution.c (interpret_loop_phi,
5196         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
5197         instantiate_parameters_1, scev_const_prop): Ditto.
5198         * cfghooks.c (make_forwarder_block): Ditto.
5199         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
5200         * modulo-sched.c (loop_canon_p): Ditto.
5201         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
5202         slpeel_can_duplicate_loop_p): Ditto.
5203         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
5204         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
5205         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
5206         cancel_loop, verify_loop_structure): Ditto.
5207         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
5208         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
5209         superloops vector instead of "pred" array.
5210         (establish_preds): Take father loop as an argument.  Initialize the
5211         superloops vector.
5212         (flow_loop_tree_node_add): Pass father loop to establish_preds.  Do not
5213         initialize loop->outer.
5214         (flow_loop_tree_node_remove): Truncate the superloops vector.
5215         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
5216         "pred" merged to "superloops" vector.
5217         (loop_depth, loop_outer): New.
5218         (fel_init): Use loop_outer.
5219
5220 2007-05-11  Jan Hubicka  <jh@suse.cz>
5221
5222         * cgraphunit.c: Include gt-cgraphunit.h
5223         (static_ctors, static_dtors): New static vars.
5224         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
5225         based on implementation in c-common.c
5226         (cgraph_finalize_function): Call record_cdtor_fn.
5227         (cgraph_optimize): Call cgraph_build_cdtor_fns.
5228         * decl.c (finish_function): Do not call c_record_cdtor_fn.
5229         (c_write_global_declarations): Do not call c_build_cdtor_fns.
5230         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
5231         build_cdtor, c_build_cdtor_fns): Remove.
5232         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
5233         c_build_cdtor_fns): Remove prototype.
5234
5235 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
5236
5237         PR other/31852
5238         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
5239         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
5240         * builtins.c (fold_builtin_memchr): New.
5241         (expand_builtin_memchr): Call the latter.
5242         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
5243         * doc/extend.texi ([Other built-in functions provided by GCC]):
5244         Document memchr.
5245
5246 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
5247
5248         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
5249         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
5250         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
5251         PFPO_OP1_TYPE_SHIFT): Constants added.
5252         (DFP_ALL): Mode macro defined.
5253         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
5254         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
5255         Insn definitions added.
5256         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
5257         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
5258         Expanders added.
5259
5260 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
5261
5262         PR tree-optimization/31885
5263         * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
5264         to be undetermined.
5265         (automatically_generated_chrec_p): Return false for NULL.
5266
5267 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
5268
5269         * config/bfin/bfin.h (MOVE_RATIO): Define.
5270
5271 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
5272
5273         * config.gcc (sparc-wrs-vxworks): New target.
5274         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
5275         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
5276         * config/sparc/sparc.h: Include vxworks-dummy.h.
5277         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
5278         include LABEL_REFs too.
5279         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
5280         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
5281         VxWorks.
5282         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
5283         on VxWorks.
5284         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
5285         (sparc_emit_call_insn): New function.
5286         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
5287         functions when generating VxWorks PIC.
5288         * config/sparc/sparc.md (vxworks_load_got): New pattern.
5289         (call, call_value): Use sparc_emit_call_insn instead of
5290         emit_call_insn.
5291
5292 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
5293
5294         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
5295
5296 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
5297
5298         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
5299         for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
5300         instead of operand_subword.
5301
5302 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
5303
5304         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
5305         * config/bfin/bfin.c (bfin_local_alignment): New function.
5306         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
5307
5308 2007-05-08  Chao-ying Fu  <fu@mips.com>
5309
5310         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
5311         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
5312         (smsub_widen_optab, umsub_widen_optab): Define.
5313         * optabs.c (init_optabs): Initialize smsub_widen_optab and
5314         umsub_widen_optab.
5315         * genopinit.c (optabs): Fill in smsub_widen_optab and
5316         umsub_widen_optab.
5317         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
5318         and umsub_widen_optab to implement multiply-subtract sequences.
5319         * config/mips/mips.md (*msac<u>_di): Rename to...
5320         (<u>msubsidi4): ...this.  Extend condition to include
5321         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
5322         of operand 0 to "ka" and use the three-operand form of msub<u>
5323         for TARGET_DSPR2.
5324         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
5325         to define_expands.
5326
5327 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5328
5329         PR rtl-optimization/28011
5330         * reload.c (push_reload): Set dont_share if IN appears in OUT
5331         also when IN is a PLUS rtx.
5332         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
5333         are same PLUS rtx.
5334
5335 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
5336
5337         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
5338         call unshare_all_decls.
5339         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
5340         (unshare_all_decls): Remove.
5341
5342 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
5343
5344         PR 31847
5345         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
5346         dumps.
5347
5348 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5349             Nigel Stephens  <nigel@mips.com>
5350
5351         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
5352         Update comments and all uses.
5353         (MIN_FPRS_PER_FMT): Define.
5354         * config/mips/mips.c (function_arg): Fix to correctly handle
5355         the -mips32r2 -mfp64 -mabi=32 case.
5356         (override_options): Enable use of odd-numbered registers for
5357         SFmode values on MIPS32.
5358         (mips_save_reg_p): Save whole floating-point register pair if
5359         either half is used.
5360         (compute_frame_size): Fix comment.
5361
5362 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
5363
5364         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
5365         argument of type bool.
5366         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
5367         argument. Safely select temporary P register according to it.
5368         (do_link): Change call site of add_to_reg accordingly.
5369         (do_unlink): Add epilogue_p as a fourth argument and pass it
5370         to add_to_reg.
5371         (expand_interrupt_handler_epilogue): Change call of do_unlink
5372         accordingly.
5373         (bfin_expand_prologue): Add a third argument sibcall_p.
5374         * config/bfin/bfin.md (epilogue): Change call of
5375         bfin_expand_epilogue accordingly.
5376         (sibcall_epilogue): Likewise.
5377         (eh_return_internal): Likewise.
5378
5379         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
5380         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
5381         * config/bfin/bfin.c (bfin_handle_option): Handle
5382         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
5383         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
5384         Support bf534, bf536 and bf561.
5385         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
5386
5387 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
5388
5389         PR target/31854
5390         * config/i386/i386.c (ix86_function_regparm): Process local
5391         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
5392
5393 2007-05-07  Mike Stump  <mrs@apple.com>
5394
5395         * doc/invoke.texi (Warning Options): Document that -Wempty-body
5396         also checks for and while statements in C++.
5397
5398 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
5399
5400         * gcc.c (at_file_supplied): New variable.
5401         (main): Set it if we expanded argv.
5402         (do_spec_1): Pass an @-file to the linker if we were called with
5403         an @-file argument and HAVE_GNU_LD.
5404         * collect2.c (at_file_supplied): New variable.
5405         (response_file): New variable.
5406         (collect_exit): Unlink response_file if necessary.
5407         (handler): Likewise.
5408         (do_wait): Likewise.
5409         (main): Set at_file_supplied if we expanded argv.
5410         (collect_execute): Pass an @-file to subprocesses if we were called
5411         with an @-file argument.
5412         * configure.ac: Add define for HAVE_GNU_LD.
5413         * configure: Regenerate.
5414         * config.in: Regenerate.
5415
5416 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
5417
5418         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
5419         operand to HI mode.
5420         (mulsi3): New.
5421         (divsi3): New.
5422         (udivsi3): New.
5423
5424 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
5425
5426         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
5427         (TARGET_ENCODE_SECTION_INFO): Re-define.
5428         (m32c_encode_section_info): New
5429         (function_vector_handler): New
5430         (current_function_special_page_vector): New
5431         (m32c_special_page_vector_p): New.
5432         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
5433         Prototype.
5434         * config/m32c/jump.md: Added instruction JSRS for functions
5435         with attribute "function_vector".
5436         * doc/extend.texi (function_vector): Added description
5437         for M16C, M32C targets.
5438
5439 2007-05-07  DJ Delorie  <dj@redhat.com>
5440
5441         PR 31794
5442         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
5443         ashrpsi3, lshrpsi3): Update shift count constraint.
5444
5445 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
5446             Nathan Froyd  <froydnj@codesourcery.com>
5447
5448         PR 22133
5449         * c-incpath.c (add_path): Strip trailing path separators.
5450
5451 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
5452
5453         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
5454         Free dominance info before purging EH edges.
5455         (eliminate_degenerate_phis): Likewise.
5456         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
5457
5458 2007-05-07  Jan Hubicka  <jh@suse.cz>
5459
5460         * gimplify.c (gimplify_expr): Do not crash when folding
5461         (void *)(int)&a + 4.
5462
5463 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5464
5465         PR driver/31694
5466         * c-opts.c (lang_fortran): Make it non static.
5467         * c-common.h (lang_fortran): New prototype.
5468         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
5469         -lang-fortran option was passed by the driver.
5470
5471 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
5472
5473         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
5474         of ASSERT_CHECKING.  Tweak message.
5475
5476 2007-05-06  Revital Eres  <eres@il.ibm.com>
5477
5478         PR 30957
5479         * loop-unroll.c (insert_var_expansion_initialization):
5480         Initialize the expansions with -zero instead of +zero.
5481
5482 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
5483
5484         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
5485         into pic and non-pic versions. Mark r19 as used for
5486         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
5487         for tgd_load, tld_load and tie_load .
5488         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
5489         version of tgd_load, tld_load and tie_load depending on the
5490         value of flag_pic.
5491
5492 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
5493             Jakub Jelinek  <jakub@redhat.com>
5494
5495         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
5496         (__do_global_dtors_aux): Use more paranoid loop to run
5497         destructors if HIDDEN_DTOR_LIST_END.
5498         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
5499
5500 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
5501
5502         * varasm.c (align_variable): Don't increase alignment for
5503         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
5504         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
5505
5506 2007-05-04  Josh Conner  <jconner@apple.com>
5507
5508         * basic-block.h (cdi_direction): Assign values to all enumeration
5509         constants.
5510         (dom_computed): Remove.
5511         (dom_info_state): New.
5512         (set_dom_info_availability): New.
5513         * tree-ssa-loop-im.c (determine_invariantness): Initialize
5514         walk_data.dom_direction.
5515         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
5516         instead of dom_computed[].
5517         (split_edge): Likewise.
5518         (create_basic_block): Likewise.
5519         (merge_blocks): Likewise.
5520         * ifcvt.c (find_if_header): Likewise.
5521         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
5522         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
5523         * tree-ssa.c (verify_ssa): Likewise.
5524         * tree-cfg.c (tree_verify_flow_info): Likewise.
5525         (remove_edge_and_dominated_blocks): Likewise.
5526         * dominance.c (dom_computed): Make static.
5527         (calc_dfs_tree_nonrec): Change third param to a bool.
5528         (calc_dfs_tree): Change second param to a bool.
5529         (calc_idioms): Change second param to a bool.  Use
5530         dom_convert_dir_to_idx.
5531         (init_dom_info): Validate dir before using.
5532         (dom_convert_dir_to_idx): New.
5533         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
5534         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
5535         (free_dominance_info): Use dom_convert_dir_to_idx.
5536         (get_immediate_dominator): Likewise.
5537         (set_immediate_dominator): Likewise.
5538         (get_dominated_by): Likewise.
5539         (redirect_immediate_dominators): Likewise.
5540         (nearest_common_denominator): Likewise.
5541         (dominated_by_p): Likewise.
5542         (bb_dom_dfs_in): Likewise.
5543         (bb_dom_dfs_out): Likewise.
5544         (recount_dominator): Likewise.
5545         (iterate_fix_dominators): Likewise.
5546         (add_to_dominance_info): Likewise.
5547         (delete_from_dominance_info): Likewise.
5548         (first_dom_son): Likewise.
5549         (next_dom_son): Likewise.
5550         (dom_info_available_p): Likewise.
5551         (dom_info_state): New.
5552         (set_dom_info_availability): New.
5553
5554 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
5555
5556         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
5557         Expander removed.
5558         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
5559
5560 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
5561
5562         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
5563         (subdi3, subdi_carry): Delete.
5564
5565 2007-05-04  Jan Hubicka  <jh@suse.cz>
5566             Richard Guenther  <rguenther@suse.de>
5567
5568         * opts.c (decode_options): Do not fiddle with inlining
5569         parameters in case of optimizing for size.
5570         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
5571         for size do nothing.
5572         (cgraph_decide_inlining_of_small_function): When optimizing for
5573         size never inline functions increasing caller size.
5574         (cgraph_early_inlining): Inline for size when optimizing for size.
5575
5576 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
5577
5578         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
5579         logical operations piecewise.
5580         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
5581         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
5582         subdi_sesidi_di): Delete.
5583         (add_with_carry): Produce carry in CC instead of a DREG to shorten
5584         the generated sequence.  Allow three-reg add in constraints.  Rewrite
5585         the rtl expression for carry to avoid zero_extend of a constant.
5586         (sub_with_carry): New pattern.
5587         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
5588         different sequence not involving jumps.
5589         (notbi): Now a named pattern.
5590
5591 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
5592
5593         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
5594         Add the note about a significant loss of accuracy of some
5595         mathematical routines when these options are used.
5596
5597 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
5598
5599         * haifa-sched.c (rtx_vec_t): New typedef.
5600         (contributes_to_priority_p): Extract piece of priority () into new
5601         static function.
5602         (priority): Use the function.  Add assertion.
5603         (rank_for_schedule, set_priorities): Add assertion to check that
5604         insn's priority is initialized.
5605         (clear_priorities, calc_priorities): Change signature.  Make it update
5606         all relevant insns.  Update all callers ('add_to_speculative_block ()'
5607         and 'create_block_check_twin ()').
5608         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
5609         Add new field 'priority_status'.
5610         (INSN_PRIORITY_STATUS): New macro.
5611         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
5612
5613 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
5614
5615         * sched-ebb.c (debug_ebb_dependencies): New static function.
5616         (init_ready_list): Use it.
5617
5618         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
5619         with changed signature and 'debug_rgn_dependencies ()'.
5620         (debug_rgn_dependencies): New static function.
5621         (init_ready_list): Use it.
5622
5623         * sched-int.h (debug_dependencies): Declare.
5624
5625 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
5626
5627         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
5628
5629 2007-05-04  Dirk Mueller  <dmueller@suse.de>
5630
5631         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
5632
5633 2007-05-03  Jan Hubicka  <jh@suse.cz>
5634
5635         * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
5636         for pointer type in more cases than before.
5637
5638         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
5639
5640         * tree-object-size.c (plus_expr_object_size): When operand size is
5641         unknown, return unknown.
5642
5643 2007-05-03  Dirk Mueller  <dmueller@suse.de>
5644
5645         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
5646
5647         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
5648         options.
5649
5650         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
5651
5652 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
5653
5654         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
5655
5656 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
5657
5658         * config/soft-fp/double.h, config/soft-fp/extended.h,
5659         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
5660         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
5661         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
5662         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
5663         glibc CVS.
5664
5665 2007-05-03  Ian Lance Taylor  <iant@google.com>
5666
5667         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5668         MASK_PPC_GFXOPT for 8540 or 8548.
5669
5670 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
5671
5672         * tree-vect-transform.c (vect_update_inits_of_drs): Use
5673         vect_print_dump_info() to output debug information.
5674
5675 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
5676
5677         PR target/31768
5678         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
5679         operands of size 2 when operand is not MEM_P.
5680
5681 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
5682
5683         PR tree-optimization/30565
5684         * lambda-code.c (perfect_nestify): Fix updating of dominators.
5685
5686 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
5687
5688         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
5689         (umulsi3_highpart): Use them.
5690         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
5691         for final accumulator to D regisster tranfser.
5692
5693 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
5694
5695         PR tree-optimization/31699
5696         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
5697         code.
5698         (vect_enhance_data_refs_alignment): Compute peel amount using
5699         TYPE_VECTOR_SUBPARTS instead of vf.
5700         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
5701
5702 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
5703
5704         PR bootstrap/31776
5705         * system.h: Remove inclusion of double-int.h
5706         * tree.h: Include double-int.h
5707         * gengtype.c: Likewise
5708         * cfgloop.h: Likewise
5709         * Makefile.in: Adjust dependencies on double-int.h
5710
5711 2007-05-02  Eric Christopher  <echristo@apple.com>
5712
5713         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
5714         -shared to -Zdynamiclib.
5715
5716 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
5717
5718         PR c++/31663
5719         * c-common.c (strip_pointer_or_array_types): New function.
5720         * c-common.h (strip_pointer_or_array_types): New function declaration.
5721
5722 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
5723
5724         PR tree-optimization/31771
5725         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
5726
5727 2007-05-02  Paul Brook  <paul@codesourcery.com>
5728
5729         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
5730
5731 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5732
5733         PR middle-end/29715
5734         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
5735         transformation.
5736
5737 2007-05-02  Nick Clifton  <nickc@redhat.com>
5738
5739         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
5740
5741 2007-05-02  Richard Guenther  <rguenther@suse.de>
5742
5743         PR tree-optimization/31146
5744         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
5745         argument, single_use_p.  If we have a single use that is
5746         a conversion to the definition rhs type, propagate that rhs.
5747         (forward_propagate_addr_expr): Pass single_use_p argument
5748         to forward_propagate_addr_expr_1.
5749
5750 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
5751
5752         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
5753         variable.
5754
5755 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5756
5757         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
5758         'AMD Family 10 core'.
5759
5760 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5761
5762         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
5763         and athlon64-sse3 as improved versions of k8, opteron and athlon64
5764         with SSE3 instruction set support.
5765         * doc/invoke.texi: Likewise.
5766
5767 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5768
5769         * config/i386/i386.c (override_options): Tuning 32-byte loop
5770         alignment for amdfam10 architecture. Increasing the max loop
5771         alignment to 24 bytes.
5772
5773 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
5774
5775         * config/m68k/constraints.md: New.
5776         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
5777         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
5778         EXTRA_CONSTRAINT): Remove.
5779         * config/m68k/m68k.md: Include constraints.md.
5780         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
5781
5782 2007-05-01  Ian Lance Taylor  <iant@google.com>
5783
5784         PR tree-optimization/31739
5785         * tree-vrp.c (vrp_val_is_max): New static function.
5786         (vrp_val_is_min): New static function.
5787         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
5788         copying the node.
5789         (set_value_range): Use vrp_val_is_{max,min}.
5790         (extract_range_from_assert): Likewise.
5791         (extract_range_from_binary_expr): Likewise.
5792         (extract_range_from_unary_expr): Likewise.
5793         (dump_value_range, vrp_meet): Likewise.
5794         (vrp_visit_phi_node): Likewise.
5795         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
5796
5797 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
5798
5799         * config/i386/gmon-sol2.c (size_t): New type.
5800         (intptr_t): Likewise.
5801         (s_textsize): Declare as size_t.
5802         (sbrk): Declare.
5803         (monstartup): Use size_t for sizes.
5804         (_mcount): Save and restore registers.
5805         (internal_mcount): Pass 0 as the first argument to monstartup
5806         in 64-bit mode.
5807         (moncontrol): Convert pointer to appropriately sized integer
5808         before passing to profil.
5809
5810 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
5811
5812         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
5813         __NO_FPRS__, not just if _SOFT_DOUBLE.
5814         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
5815         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
5816         also for E500 double.
5817         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
5818         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
5819         && !TARGET_FPRS).
5820
5821 2007-05-01  Richard Guenther  <rguenther@suse.de>
5822
5823         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
5824         is NULL.
5825
5826 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
5827
5828         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
5829
5830 2007-05-01  Jan Hubicka  <jh@suse.cz>
5831
5832         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
5833         invariant.
5834
5835 2007-05-01  Jan Hubicka  <jh@suse.cz>
5836
5837         * tree.h (maybe_fold_offset_to_component_ref): Remove.
5838         (maybe_fold_offset_to_reference): Declare.
5839         * fold-const.c (fold_unary): Do not fold
5840         (type *)&A into &A->field_of_type_and_offset_0
5841         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
5842         size is unknown, give up.
5843         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
5844         offsets.
5845         (maybe_fold_offset_to_reference): New.
5846         (maybe_fold_stmt_indirect): Use it.
5847         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
5848         * gimplify.c (gimplify_conversion): Canonicalize conversions to
5849         field references.
5850         (gimplify_expr): Likewise for plus_expr.
5851
5852 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
5853
5854         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
5855         bsi_after_labels.  Always insert statements before bsi.
5856         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
5857         * predict.c (apply_return_prediction): Check for empty blocks.
5858         * cfgexpand.c (lab_rtx_for_bb): New variable.
5859         (label_rtx_for_bb): Do not create new tree labels.
5860         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
5861         (tree_expand_cfg): Initialize lab_rtx_for_bb.
5862         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
5863         creating edges.
5864         (label_for_bb): Add field used.
5865         (update_eh_label, main_block_label): Mark the label used.
5866         (cleanup_dead_labels): Remove unused labels.
5867
5868 2007-05-01  Richard Guenther  <rguenther@suse.de>
5869
5870         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
5871         if it is not about to be set.
5872         (get_value_range): Do not pre-allocate equiv bitmap.
5873         (update_value_range): No need to clear equiv field.
5874         (add_equivalence): Change prototype to get bitmap pointer.
5875         Allocate bitmap here if it is not already.
5876         (extract_range_from_assert): Do not allocate bitmap here.
5877         Update callers to add_equivalence.
5878         (extract_range_from_ssa_name): Likewise.
5879         (get_vr_for_comparison): New static helper.
5880         (compare_name_with_value): Handle NULL equiv bitmap by
5881         peeling the first iteration of the comparison loop.
5882         Use get_vr_for_comparison.
5883         (compare_names): Handle NULL equiv bitmaps by using fake
5884         ones.  Use get_vr_for_comparison.
5885
5886 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
5887
5888         * double-int.c (mpz_set_double_int): Moved from
5889         tree-ssa-loop-niter.c.
5890         (mpz_get_double_int): Likewise; also, add option to wrap
5891         out-of-range integers.
5892         * double-int.h: New prototypes for above.
5893         * tree.c (get_static_type_bounds): Moved from
5894         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
5895         TYPE_MAX_VALUE if they exist..
5896         * tree.h: New prototype for above.
5897         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
5898         get_type_bounds calls.
5899         (mpz_set_double_int): Move to double-int.c.
5900         (get_type_bounds): Move to tree.c, rename to
5901         get_static_type_bounds.
5902         (mpz_to_double_int): Move to double-int.c, rename to
5903         mpz_get_double_int.
5904
5905 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
5906
5907         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
5908         DIV0 exception can fall through to a normal return.
5909
5910 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
5911
5912         PR middle-end/22156
5913         Temporarily revert:
5914         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
5915         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
5916         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
5917         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
5918         initialize align to silence bogus warning.
5919         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
5920         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
5921         all_no_warning.
5922         (struct sra_walk_fns): Remove use_all parameter from use.
5923         (sra_hash_tree): Handle BIT_FIELD_REFs.
5924         (sra_elt_hash): Don't hash bitfld blocks.
5925         (sra_elt_eq): Skip them in parent compares as well.  Handle
5926         BIT_FIELD_REFs.
5927         (sra_walk_expr): Don't maintain or pass down use_all_p.
5928         (scan_use): Remove use_all parameter.
5929         (scalarize_use): Likewise.  Re-expand assignment to
5930         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
5931         output, and re-scalarize after output.  Don't mark anything
5932         for no warning.
5933         (scalarize_ldst): Adjust.
5934         (scalarize_walk_gimple_modify_statement): Likewise.
5935         (build_element_name_1): Handle BIT_FIELD_REFs.
5936         (instantiate_element): Don't warn for any element whose parent
5937         is used as a whole.
5938         (instantiate_missing_elements_1): Return the sra_elt.
5939         (canon_type_for_field): New.
5940         (try_instantiate_multiple_fields): New.
5941         (instantiate_missing_elemnts): Use them.
5942         (mark_no_warning): Removed.
5943         (generate_one_element_ref): Handle BIT_FIELD_REFs.
5944         (REPLDUP, sra_build_elt_assignment): New.
5945         (generate_copy_inout): Use them.
5946         (generate_element_copy): Likewise.  Handle bitfld differences.
5947         (generate_element_zero): Don't recurse for blocks.  Use
5948         sra_build_elt_assignment.
5949         (generate_one_element_int): Take elt instead of var.  Use
5950         sra_build_elt_assignment.
5951         (generate_element_init_1): Adjust.
5952         (scalarize_use, scalarize_copy): Use REPLDUP.
5953         (scalarize_ldst): Move assert before dereference.
5954         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
5955
5956 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5957
5958         PR C++/31721
5959         * tree.c (reconstruct_complex_type): Reconstruct a reference
5960         correctly.
5961         Also use the same mode for the pointer as the old pointer type.
5962
5963 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5964
5965         * doc/trouble.texi (Interoperation): Remove note about Ultrix
5966         Fortran compiler.
5967
5968 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
5969
5970         PR rtl-optimization/31676
5971         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
5972         (df_refs_record): Call it.
5973
5974 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
5975
5976         * rtl.def (SS_ABS): New code.
5977         * config/bfin/bfin.c (print_operand): New modifier 'v'.
5978         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
5979         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
5980         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
5981         (bfin_init_builtins): Define them.
5982         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
5983         (bfin_expand_builtin): ... and handle the others here.
5984         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
5985         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
5986         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
5987         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
5988         operand is only HImode.
5989
5990 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
5991
5992         * regclass.c (scan_one_insn): Remove splitting of
5993         two address insns.
5994
5995 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
5996             Nigel Stephens  <nigel@mips.com>
5997
5998         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
5999
6000 2007-04-28  Jan Hubicka  <jh@suse.cz>
6001
6002         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
6003         insn_locators_alloc instead of insn_locators_initialize;
6004         call reset_block_changes.
6005         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6006         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
6007         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
6008         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
6009         * config/score/score.c (th_output_mi_thunk): Likewise.
6010         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
6011         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
6012         tolerate uninitialized locator info.
6013
6014         Re-apply:
6015         * function.c (init_function_start): Don't init line number info.
6016         (expand_function_end): Update.
6017         (reset_block_changes, record_block_change, finalize_block_changes,
6018         check_block_change, free_block_changes): Kill.
6019         * function.h (reset_block_changes, record_block_change,
6020         finalize_block_changes, check_block_change, free_block_changes): Remove
6021         prototypes.
6022         (struct function): Remove ib_boundaries_block.
6023         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
6024         Use curr_insn_locator to initialize locator.
6025         (emit_line_note): Remove.
6026         * cfgexpand.c (expand_gimple_cond_expr): Update.
6027         (construct_exit_block): Likewise.
6028         (tree_expand_cfg): Initialize/finalize locators.
6029         * expr.c (expand_expr_real): Update.
6030         * cfglayout.c (line_locators_locs, line_locators_lines,
6031         file_locators_locs, file_locators_files): Remove.
6032         (set_block_levels): Move to cfgexpand.c.
6033         (insn_locators_initialize): Remove.
6034         (pass_insn_locators_initialize): Remove.
6035         (locations_locators_locs, locations_locators_vals): New static vars.
6036         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6037         Likewise.
6038         (insn_locators_alloc, insn_locators_finalize,
6039         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6040         New functions.
6041         (locator_location): New.
6042         (locator_line, locator_file): Rewrite.
6043         * rtl.h (emit_line_note): Kill.
6044         (insn_locators_alloc, insn_locators_finalize,
6045         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6046         Declare.
6047         * tree-inline.c (initialize_cfun): Do not initialize
6048         ib_boundaries_block.
6049         * passes.c (pass_insn_locators_initialize): Remove.
6050
6051 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
6052
6053         * tree-cfg.c (move_block_to_fn): Release bb from dominance
6054         info.  Update last_basic_block correctly.
6055
6056 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6057
6058         PR target/31701
6059         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
6060         register itself to hold the offset constant.  Tell flow the use
6061         of r4 and r5 when they are used.
6062
6063 2007-04-27  Richard Guenther  <rguenther@suse.de>
6064
6065         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
6066         if we simplified anything.
6067         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
6068         warnings until we did a simplification and the stmt was not
6069         marked as TREE_NO_WARNING.
6070
6071 2007-04-27  Mike Stump  <mrs@apple.com>
6072
6073         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
6074
6075 2007-04-27  Ian Lance Taylor  <iant@google.com>
6076
6077         PR middle-end/31710
6078         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
6079         TYPE_MAX_VALUE exist, convert them to the new type.
6080
6081 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6082
6083         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
6084         if it claims to be available.
6085         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
6086         edge is redirected.
6087         (perform_tree_ssa_dce): Always free postdominators.
6088
6089 2007-04-27  Richard Henderson  <rth@redhat.com>
6090
6091         * config/alpha/predicates.md (aligned_memory_operand): Mark
6092         as define_special_predicate.
6093         (unaligned_memory_operand, normal_memory_operand): Likewise.
6094         (reg_or_unaligned_mem_operand): Remove.
6095         (any_memory_operand): Match the documentation and check for
6096         non-renumbered pseudos during reload.
6097         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
6098         alpha_secondary_reload_class, update to new interface, make static.
6099         Handle CQImode like HImode.  Remove FP subreg check.
6100         (alpha_expand_mov): Use replace_equiv_address.
6101         (alpha_expand_mov_nobwx): Use any_memory_operand.
6102         (TARGET_SECONDARY_RELOAD): New.
6103         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
6104         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6105         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
6106         * config/alpha/alpha.md: ... here.
6107         (RELOAD12, reloadmode): New.
6108         (movcqi): New.
6109         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
6110         Don't handle the aligned case here.
6111         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
6112         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
6113         reload_inhi_help.  Don't expect a scratch register.
6114         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
6115         reload_outhi_help.
6116         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
6117
6118 2007-04-27  Richard Guenther  <rguenther@suse.de>
6119
6120         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
6121
6122 2007-04-27  Richard Guenther  <rguenther@suse.de>
6123
6124         PR tree-optimization/30965
6125         PR tree-optimization/30978
6126         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
6127         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
6128         (find_equivalent_equality_comparison): Likewise.
6129         (simplify_cond): Likewise.
6130         (get_prop_source_stmt): New helper.
6131         (get_prop_dest_stmt): Likewise.
6132         (can_propagate_from): Likewise.
6133         (remove_prop_source_from_use): Likewise.
6134         (combine_cond_expr_cond): Likewise.
6135         (forward_propagate_comparison): New function.
6136         (forward_propagate_into_cond): Rewrite to use fold for
6137         tree combining.
6138         (tree_ssa_forward_propagate_single_use_vars): Call
6139         forward_propagate_comparison to propagate comparisons.
6140
6141 2007-04-27  Richard Guenther  <rguenther@suse.de>
6142
6143         PR tree-optimization/31715
6144         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
6145         sure to do computation on the offset in an appropriate
6146         signed type.
6147
6148 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
6149
6150         * reload.h (elimination_target_reg_p): Declare.
6151         * reload.c (find_reloads): Don't apply the reg_rtx move
6152         optimization if the SET_DEST satisfies elimination_target_reg_p.
6153         * reload1.c (elimination_target_reg_p): New function.
6154         (gen_reload): In the move/add2 fallback, make sure that op0
6155         does not overlap the destination register.
6156
6157 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6158
6159         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
6160         transform only GIMPLE_MODIFY_STMTs.
6161         * tree-complex.c (expand_complex_operations_1): Ditto.
6162         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
6163         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
6164         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
6165         branches.
6166         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
6167         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
6168         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
6169         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
6170         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
6171         slpeel_add_loop_guard): Ditto.
6172         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
6173         * lambda-code.c (perfect_nestify): Ditto.
6174         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
6175         before the first statement.
6176         * tree-optimize.c (execute_free_datastructures): Fix comments.
6177         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
6178         * tree-flow.h (disband_implicit_edges): Declaration removed.
6179         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
6180         branches.
6181         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
6182         without gotos.
6183         (disband_implicit_edges, has_label_p): Removed.
6184         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
6185         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
6186         branches.
6187         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
6188         side effects.
6189         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
6190         also for COND_EXPRs.
6191         * cfgexpand.c (label_rtx_for_bb): New function.
6192         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
6193         Use label_rtx_for_bb to find the labels.
6194         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
6195         last block.  Detect fallthru edges.
6196
6197 2007-04-26  Ian Lance Taylor  <iant@google.com>
6198
6199         PR target/28675
6200         * reload.c (find_reloads_subreg_address): If the address was valid
6201         in the original mode but not in the new mode, reload the whole
6202         address.
6203
6204 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6205
6206         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
6207         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
6208         (cleanup_control_expr_graph): Do not invalidate dominance info.
6209         Record altered blocks.
6210         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
6211         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
6212         cleanup_tree_cfg_bb): New functions.
6213         (remove_forwarder_block): Do not maintain the worklist of blocks.
6214         Record altered blocks.
6215         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
6216         not over whole cfg.
6217         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
6218         delete_unreachable_blocks if dominators are not available.
6219         * tree-inline.c (optimize_inline_calls): Free dominance information
6220         earlier.
6221         * tree-flow.h (remove_edge_and_dominated_blocks,
6222         cfgcleanup_altered_bbs): Altered.
6223         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
6224         blocks.
6225         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
6226         functions.
6227         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
6228         do not invalidate dominators.
6229
6230 2007-04-26  Anatoly Sokolov <aesok@post.ru>
6231
6232         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
6233         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
6234         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6235         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6236
6237 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
6238
6239         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
6240
6241 2007-04-26  Richard Guenther  <rguenther@suse.de>
6242
6243         PR tree-optimization/31703
6244         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
6245         the right type for the target of the bittest.
6246
6247 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6248
6249         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
6250         ix86_sol10_return_in_memory.
6251
6252 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6253
6254         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
6255         variables.
6256
6257 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
6258
6259         PR c++/31598
6260         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
6261
6262         PR tree-optimization/30558
6263         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
6264         clear this_state.prev_try.
6265
6266 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6267             Mark Mitchell  <mark@codesourcery.com>
6268
6269         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
6270         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
6271         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
6272
6273 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
6274
6275         PR driver/31107
6276         * doc/invoke.texi (%:print-asm-header): Document.
6277         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
6278         and -ftarget-help.
6279         (static_spec_functions): Add print-asm-header.
6280         (main): Print a banner before the --target-help linker options.
6281         (print_asm_header_spec_function): New function.
6282
6283 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6284
6285         PR target/31403
6286         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
6287         (movsf_ie): Likewise.
6288
6289 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
6290
6291         * doc/extend.texi ([Type Traits]): Adjust per N2255.
6292
6293 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
6294
6295         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
6296         for divide-by-zero.
6297         (__umodsi3, __modsi3): Likewise.
6298
6299 2007-04-25  Dirk Mueller  <dmueller@suse.de>
6300
6301         * c-typeck.c (build_compound_expr): Annotate warning()
6302         call with OPT_Wunused_value.
6303         * tree-ssa.c (warn_uninit): Annotate warning with
6304         OPT_Wunintialized.
6305         * c-common.c (handle_sentinel_attribute): Annotate warning
6306         call with OPT_Wattributes.
6307
6308 2007-04-25  Thiemo Seufer  <ths@mips.com>
6309
6310         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
6311         (mips16): Fix typo.
6312         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
6313         on to the assembler.  Improve handling of -mno-mips16.  Add handling
6314         of -mno-mips3d, -mno-dsp, -mno-dspr2.
6315         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
6316         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
6317         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
6318
6319 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
6320
6321         PR target/31680
6322         * config/i386/winnt.c (i386_pe_file_end): Strip only
6323         USER_LABEL_PREFIX when writing export name.
6324
6325 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
6326
6327         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
6328         sh/elf.h, vx-common.h and vxworks.h.
6329         * config/sh/sh.h: Include config/vxworks-dummy.h.
6330         (SUBTARGET_OVERRIDE_OPTIONS): Define.
6331         (OVERRIDE_OPTIONS): Use it.
6332         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
6333         (vxworks_picreg): New pattern.
6334         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
6335         VXWORKS_OS_CPP_BUILTINS.
6336         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
6337         to their VXWORKS_* equivalents.
6338         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
6339         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
6340         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
6341         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
6342         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
6343         -mrtp/-fPIC multilibs.
6344         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
6345         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
6346         (MULTILIB_OSDIRNAMES): Delete.
6347
6348 2007-04-25  Anatoly Sokolov <aesok@post.ru>
6349
6350         PR target/18989
6351         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
6352
6353 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
6354
6355         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
6356         rounding mode to be specified by the caller.
6357         (real_to_mpfr) Likewise.
6358         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
6359         include new arguments.
6360         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
6361
6362 2007-04-24  Ian Lance Taylor  <iant@google.com>
6363
6364         PR tree-optimization/31605
6365         * tree-vrp.c (set_value_range): Check that min and max are not
6366         both overflow infinities.
6367         (set_value_range_to_value): New static function.
6368         (extract_range_from_binary_expr): Call set_value_range_to_value.
6369         (extract_range_from_cond_expr): Likewise.
6370         (extract_range_from_expr): Likewise.
6371         (extract_range_from_unary_expr): Likewise.  Don't create a range
6372         which overflows on both sides.
6373         (vrp_meet): Check for a useless range.
6374         (vrp_visit_phi_node): If we see a constant which looks like an
6375         overflow infinity, turn off the TREE_OVERFLOW flag.
6376
6377 2007-04-24  Ian Lance Taylor  <iant@google.com>
6378
6379         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
6380
6381 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
6382
6383         PR diagnostic/25923
6384         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
6385         diagnostic message is being built.
6386         * tree-pretty-print.c (dump_generic_node): Only write the
6387         formatted text into BUFFER's stream if we are not building a
6388         diagnostic message.
6389         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
6390         dump_generic_node.
6391         * Makefile.in (toplev.o): Depend on tree-pass.h.
6392
6393 2007-04-24  Ian Lance Taylor  <iant@google.com>
6394
6395         PR tree-optimization/31602
6396         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
6397         conditionals in the copied loop header.
6398         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
6399         warnings if TREE_NO_WARNING is set.
6400         * doc/invoke.texi (Warning Options): Clarify that
6401         -Wstrict-overflow does not warn about loops.
6402
6403 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
6404
6405         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
6406         expand on the comment about _Decimal128 arguments and check the
6407         integer result of the modulus operation; for 64-bit ELF ABI, ensure
6408         that _Decimal128 argument uses even/odd register pair.
6409         (function_arg): Ditto.
6410
6411 2007-04-24  Hui-May Chang <hm.chang@apple.com>
6412
6413         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
6414         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
6415
6416 2007-04-24  Richard Guenther  <rguenther@suse.de>
6417             Olga Golovanevsky  <olga@il.ibm.com>
6418
6419         * fold-const.c (multiple_of_p): Check for bottom
6420         to be zero.
6421
6422 2007-04-24  Richard Henderson  <rth@redhat.com>
6423
6424         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
6425         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
6426         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
6427         looking for non-zero bits shifted out.  Avoid a recursive call
6428         when constructing the scalar.
6429         (__floatundisf): Likewise.
6430
6431 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
6432
6433         * dwarf2out.c (field_byte_offset): Move the existing logic
6434         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
6435         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
6436
6437 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6438
6439         PR target/31641
6440         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
6441         argument of 0 for memset.
6442         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
6443         unsigned shift instead of the signed variant.
6444
6445 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6446
6447         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
6448         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
6449         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
6450         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
6451         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
6452         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
6453         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
6454         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
6455         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
6456         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
6457         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
6458         "mul<mode>3", "div<mode>3"): Insn definitions added.
6459         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
6460         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
6461         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
6462         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
6463         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
6464         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
6465         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
6466         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
6467         TARGET_FLOAT_FORMAT): Macro definitions removed.
6468         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
6469         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
6470         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
6471         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
6472         (s390_gen_rtx_const_DI): Function removed.
6473         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
6474
6475 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
6476
6477         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
6478         over an external ffs function.
6479
6480 2007-04-24  Chao-ying Fu  <fu@mips.com>
6481             Richard Sandiford  <richard@nildram.co.uk>
6482
6483         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
6484         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
6485         (smadd_widen_optab, umadd_widen_optab): Define.
6486         * optabs.c (init_optabs): Initialize smadd_widen_optab and
6487         umadd_widen_optab.
6488         * genopinit.c (optabs): Fill in smadd_widen_optab and
6489         umadd_widen_optab.
6490         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
6491         and umadd_widen_optab to implement multiply-add sequences.
6492         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
6493         (<u>maddsidi4): ...this.  Extend condition to include
6494         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
6495         of operand 0 to "ka" and use the three-operand form of madd<u>
6496         for TARGET_DSPR2.
6497         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
6498         to define_expands.
6499         * config/mips/constraints.md (ka): New register constraint.
6500
6501 2007-04-24  Jan Hubicka  <j@suse.cz>
6502
6503         Revert:
6504
6505         2007-04-23  Jan Hubicka  <jh@suse.cz>
6506         * function.c (init_function_start): Don't init line number info.
6507         (expand_function_end): Update.
6508         (reset_block_changes, record_block_change, finalize_block_changes,
6509         check_block_change, free_block_changes): Kill.
6510         * function.h (reset_block_changes, record_block_change,
6511         finalize_block_changes, check_block_change, free_block_changes): Remove
6512         prototypes.
6513         (struct function): Remove ib_boundaries_block.
6514         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
6515         Use curr_insn_locator to initialize locator.
6516         (emit_line_note): Remove.
6517         * cfgexpand.c (expand_gimple_cond_expr): Update.
6518         (construct_exit_block): Likewise.
6519         (tree_expand_cfg): Initialize/finalize locators.
6520         * expr.c (expand_expr_real): Update.
6521         * cfglayout.c (line_locators_locs, line_locators_lines,
6522         file_locators_locs, file_locators_files): Remove.
6523         (set_block_levels): Move to cfgexpand.c.
6524         (insn_locators_initialize): Remove.
6525         (pass_insn_locators_initialize): Remove.
6526         (locations_locators_locs, locations_locators_vals): New static vars.
6527         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6528         Likewise.
6529         (insn_locators_alloc, insn_locators_finalize,
6530         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6531         New functions.
6532         (locator_location): New.
6533         (locator_line, locator_file): Rewrite.
6534         * rtl.h (emit_line_note): Kill.
6535         (insn_locators_alloc, insn_locators_finalize,
6536         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6537         Declare.
6538         * tree-inline.c (initialize_cfun): Do not initialize
6539         ib_boundaries_block.
6540         * passes.c (pass_insn_locators_initialize): Remove.
6541
6542 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
6543
6544         * doc/invoke.texi: Removed leading '-' from option index entries.
6545
6546 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
6547
6548         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
6549         Use phi_nodes_ptr.
6550         (create_phi_node): Use set_phi_nodes.
6551         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
6552         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
6553         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
6554         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
6555         (bsi_start, bsi_last): Use bb_stmt_list.
6556         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
6557         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
6558         Traverse the statements using tsi iterator.
6559         * basic-block.h (struct basic_block_def): Fields stmt_list
6560         and phi_nodes moved to ...
6561         (struct tree_bb_info): ... new structure.
6562         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
6563         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
6564         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
6565         (tree_verify_flow_info): Verify that il.tree is not set for
6566         entry and exit block.
6567         (tree_split_block): Use set_bb_stmt_list.
6568
6569 2007-04-23  Mike Stump  <mrs@apple.com>
6570
6571         * config/i386/i386.c (ix86_tune_features
6572         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
6573         nocona and core2.
6574
6575 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6576
6577         * config/i386/i386.md (prefix_extra): New attribute.
6578         (length): Add prefix_extra.
6579
6580         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
6581         (sse2_movntv2di): Likewise.
6582         (sse2_cvtps2dq): Likewise.
6583         (sse2_cvtpd2pi): Likewise.
6584         (sse2_cvttpd2pi): Likewise.
6585         (*sse2_cvtpd2ps): Likewise.
6586         (*add<mode>3): Likewise.
6587         (sse2_ssadd<mode>3): Likewise.
6588         (sse2_usadd<mode>3): Likewise.
6589         (*sub<mode>3): Likewise.
6590         (sse2_sssub<mode>3): Likewise.
6591         (sse2_ussub<mode>3): Likewise.
6592         (*mulv8hi3): Likewise.
6593         (*smulv8hi3_highpart): Likewise.
6594         (*umulv8hi3_highpart): Likewise.
6595         (sse2_umulv2siv2di3): Likewise.
6596         (sse2_pmaddwd): Likewise.
6597         (ashr<mode>3): Likewise.
6598         (lshr<mode>3): Likewise.
6599         (ashl<mode>3): Likewise.
6600         (sse2_ashlti3): Likewise.
6601         (sse2_lshrti3): Likewise.
6602         (*umaxv16qi3): Likewise.
6603         (*smaxv8hi3): Likewise.
6604         (*uminv16qi3): Likewise.
6605         (*sminv8hi3): Likewise.
6606         (sse2_eq<mode>3): Likewise.
6607         (sse2_gt<mode>3): Likewise.
6608         (*and<mode>3): Likewise.
6609         (sse2_nand<mode>3): Likewise.
6610         (*ior<mode>3): Likewise.
6611         (*xor<mode>3): Likewise.
6612         (sse2_packsswb): Likewise.
6613         (sse2_packssdw): Likewise.
6614         (sse2_packuswb): Likewise.
6615         (sse2_punpckhbw): Likewise.
6616         (sse2_punpcklbw): Likewise.
6617         (sse2_punpckhwd): Likewise.
6618         (sse2_punpcklwd): Likewise.
6619         (sse2_punpckhdq): Likewise.
6620         (sse2_punpckldq): Likewise.
6621         (sse2_punpckhqdq): Likewise.
6622         (sse2_punpcklqdq): Likewise.
6623         (*sse2_pinsrw): Likewise.
6624         (*sse2_pextrw): Likewise.
6625         (sse2_pshufd_1): Likewise.
6626         (sse2_uavgv16qi3): Likewise.
6627         (sse2_uavgv8hi3): Likewise.
6628         (sse2_psadbw): Likewise.
6629         (sse2_pmovmskb): Likewise.
6630         (*sse2_maskmovdqu): Likewise.
6631         (*sse2_maskmovdqu_rex64): Likewise.
6632         (sse4a_extrqi): Likewise.
6633         (sse4a_extrq): Likewise.
6634         (sse3_lddqu): Set prefix_rep.
6635         (sse3_addsubv4sf3): Likewise.
6636         (sse3_haddv4sf3): Likewise.
6637         (sse3_hsubv4sf3): Likewise.
6638         (sse_cvtss2si): Likewise.
6639         (sse_cvtss2si_2): Likewise.
6640         (sse_cvtss2siq): Likewise.
6641         (sse_cvtss2siq_2): Likewise.
6642         (sse_cvttss2si): Likewise.
6643         (sse_cvttss2siq): Likewise.
6644         (sse2_cvttps2dq): Likewise.
6645         (sse3_movshdup): Likewise.
6646         (sse3_movsldup): Likewise.
6647         (sse2_cvtsd2si): Likewise.
6648         (sse2_cvtsd2si_2): Likewise.
6649         (sse2_cvtsd2siq): Likewise.
6650         (sse2_cvtsd2siq_2): Likewise.
6651         (sse2_cvttsd2si): Likewise.
6652         (sse2_cvttsd2siq): Likewise.
6653         (*sse2_cvtpd2dq): Likewise.
6654         (*sse2_cvttpd2dq): Likewise.
6655         (sse2_pshuflw_1): Likewise.
6656         (sse2_pshufhw_1): Likewise.
6657         (sse4a_insertqi): Likewise.
6658         (sse4a_insertq): Likewise.
6659         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
6660         (ssse3_phadddv4si3): Likewise.
6661         (ssse3_phaddswv8hi3): Likewise.
6662         (ssse3_phsubwv8hi3): Likewise.
6663         (ssse3_phsubdv4si3): Likewise.
6664         (ssse3_phsubswv8hi3): Likewise.
6665         (ssse3_pmaddubswv8hi3): Likewise.
6666         (ssse3_pmulhrswv8hi3): Likewise.
6667         (ssse3_pshufbv16qi3): Likewise.
6668         (ssse3_psign<mode>3): Likewise.
6669         (ssse3_palignrti): Likewise.
6670         (abs<mode>2): Likewise.
6671         (ssse3_phaddwv4hi3): Set prefix_extra.
6672         (ssse3_phadddv2si3): Likewise.
6673         (ssse3_phaddswv4hi3): Likewise.
6674         (ssse3_phsubwv4hi3): Likewise.
6675         (ssse3_phsubdv2si3): Likewise.
6676         (ssse3_phsubswv4hi3): Likewise.
6677         (ssse3_pmaddubswv4hi3): Likewise.
6678         (ssse3_pmulhrswv4hi3): Likewise.
6679         (ssse3_pshufbv8qi3): Likewise.
6680         (ssse3_psign<mode>3): Likewise.
6681         (ssse3_palignrdi): Likewise.
6682         (abs<mode>2): Likewise.
6683         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
6684         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
6685         (sse2_pmovmskb): Set mode to SI instead of V2DF.
6686
6687 2007-04-23  Nick Clifton  <nickc@redhat.com>
6688
6689         * params.def: Fix formatting of emacs local variables.
6690
6691 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6692
6693         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
6694         move if inter-unit move isn't allowed.
6695         Don't split moving the first element of V2DI to DI to inter-unit
6696         move if inter-unit move isn't allowed.
6697
6698 2007-04-23  Richard Guenther  <rguenther@suse.de>
6699
6700         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
6701         and CDI_POST_DOMINATORS separately.
6702
6703 2007-04-23  Nick Clifton  <nickc@redhat.com>
6704
6705         * c.opt (Wformat-contains-nul): Add warning attribute.
6706
6707 2007-04-23  Jan Hubicka  <jh@suse.cz>
6708
6709         * function.c (init_function_start): Don't init line number info.
6710         (expand_function_end): Update.
6711         (reset_block_changes, record_block_change, finalize_block_changes,
6712         check_block_change, free_block_changes): Kill.
6713         * function.h (reset_block_changes, record_block_change,
6714         finalize_block_changes, check_block_change, free_block_changes): Remove
6715         prototypes.
6716         (struct function): Remove ib_boundaries_block.
6717         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
6718         Use curr_insn_locator to initialize locator.
6719         (emit_line_note): Remove.
6720         * cfgexpand.c (expand_gimple_cond_expr): Update.
6721         (construct_exit_block): Likewise.
6722         (tree_expand_cfg): Initialize/finalize locators.
6723         * expr.c (expand_expr_real): Update.
6724         * cfglayout.c (line_locators_locs, line_locators_lines,
6725         file_locators_locs, file_locators_files): Remove.
6726         (set_block_levels): Move to cfgexpand.c.
6727         (insn_locators_initialize): Remove.
6728         (pass_insn_locators_initialize): Remove.
6729         (locations_locators_locs, locations_locators_vals): New static vars.
6730         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6731         Likewise.
6732         (insn_locators_alloc, insn_locators_finalize,
6733         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6734         New functions.
6735         (locator_location): New.
6736         (locator_line, locator_file): Rewrite.
6737         * rtl.h (emit_line_note): Kill.
6738         (insn_locators_alloc, insn_locators_finalize,
6739         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
6740         Declare.
6741         * tree-inline.c (initialize_cfun): Do not initialize
6742         ib_boundaries_block.
6743         * passes.c (pass_insn_locators_initialize): Remove.
6744
6745 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6746
6747         PR middle-end/31448
6748         * expr.c (reduce_to_bit_field_precision): Handle
6749         CONST_INT rtx's.
6750
6751 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
6752
6753         PR tree-optimization/24659
6754         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
6755         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
6756         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
6757         * genopinit.c (optabs): Rename vec_pack_mod_optab
6758         to vec_pack_trunc_optab.
6759         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
6760         early for scalar floating point operands for NOP_EXPR.
6761         (vectorizable_type_promotion): Ditto.
6762         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
6763         vec_pack_trunc_optab.
6764         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
6765
6766         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
6767         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
6768         Rename from VEC_PACK_MOD_EXPR.
6769         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
6770         * expr.c (expand_expr_real_1): Ditto.
6771         * tree-inline.c (estimate_num_insns_1): Ditto.
6772         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6773
6774         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
6775         (vec_unpacks_lo_v4sf): Ditto.
6776         (vec_pack_trunc_v2df): Ditto.
6777         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
6778         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
6779         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
6780
6781         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
6782         vec_pack_mod_v8hi.
6783         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
6784
6785         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
6786         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
6787         packing of floating point operands.
6788         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
6789         represent unpacking of floating point operands.
6790         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
6791         [vec_unpacks_hi]: Ditto.
6792         [vec_unpacks_lo]: Ditto.
6793
6794 2007-04-22  Jan Hubicka  <jh@suse.cz>
6795
6796         * final.c (rest_of_handle_final): Call
6797         targetm.asm_out.constructor/targetm.asm_out.destructor
6798         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
6799         proper priority via decl_*_priority_insert.
6800         * c-common.c (c_expand_body): Likewise.
6801
6802 2007-04-22  Richard Guenther  <rguenther@suse.de>
6803
6804         PR tree-optimization/29789
6805         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
6806         (rewrite_reciprocal): New helper split out from
6807         determine_invariantness_stmt.
6808         (rewrite_bittest): Likewise.
6809         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
6810         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
6811         is not.
6812
6813 2007-04-22  Revital Eres  <eres@il.ibm.com>
6814
6815         * loop-unroll.c (var_to_expand): New field to support also
6816         insns of the form x = something + x.
6817         (analyze_insn_to_expand_var): Use it.
6818         (expand_var_during_unrolling): Likewise.
6819
6820 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
6821
6822         * predict.c: Include pointer-set.h.
6823         (bb_predictions): New variable.
6824         (tree_predicted_by_p, tree_predict_edge,
6825         remove_predictions_associated_with_edge): Use bb_predictions map
6826         instead of bb->predictions.
6827         (clear_bb_predictions, assert_is_empty): New functions.
6828         (combine_predictions_for_bb): Use bb_predictions map.  Call
6829         clear_bb_predictions.
6830         (tree_estimate_probability): Create and free bb_predictions map.
6831         * Makefile.in (predict.o): Add pointer-set.h dependency.
6832         * basic-block.h (struct basic_block_def): Remove predictions
6833         field.
6834         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
6835
6836 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
6837
6838         PR target/31480
6839         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
6840         is null.
6841
6842 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6843
6844         * timevar.c (timevar_print): Change reference of --disable-checking to
6845         --enable-checking=release.  Also warn if assert checking is disabled.
6846
6847 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6848
6849         PR C/30265
6850         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
6851         decl as addressable if the compound literal was marked as
6852         addressable.
6853         Mark the decl as a gimple register if it is a complex or
6854         vector decl and does not live in memory.
6855
6856 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6857
6858         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
6859         (GENERIC_NEXT): New function macro.
6860         (PHI_CHAIN): Use phi_node's new chain variable.
6861         (tree_phi_node): Change tree_common to tree_base
6862         and add the chain field.
6863         * tree-phinodes.c (make_phi_node): Don't set
6864         TREE_TYPE on the new node.
6865         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
6866         instead of checking GIMPLE_TUPLE_P in chain_next.
6867         * tree-vect-transform.c
6868         (get_initial_def_for_induction): Look at
6869         PHI_RESULT_TREE for the type of the phi node.
6870         (update_vuses_to_preheader): Use PHI_CHAIN
6871         instead of TREE_CHAIN on the phi node.
6872         * tree-ssa-structalias.c (compute_points_to_sets):
6873         Likewise.
6874         (ipa_pta_execute): Likewise.
6875
6876 2007-04-21  Richard Guenther  <rguenther@suse.de>
6877
6878         PR middle-end/31136
6879         * fold-const.c (fold_unary): Call fold_convert_const on the
6880         original tree.
6881
6882 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
6883
6884         * gcse.c (store_killed_in_insn): Handle PARALLELs.
6885         (store_killed_in_pat): New.
6886
6887 2007-04-20  Richard Henderson  <rth@redhat.com>
6888
6889         PR target/31628
6890         * config/i386/i386.c (type_has_variadic_args_p): Look for any
6891         TREE_LIST with a void_type_node value, not void_list_node exactly.
6892
6893 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
6894
6895         * doc/standards.texi: Re-arrange into language-specific
6896         subsections. Add a C++ section, documenting which standards we
6897         support.
6898
6899 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
6900
6901         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
6902         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
6903
6904 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
6905
6906         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
6907         ecrti.o and crtbegin.o.
6908         (LIB_DEFAULT_SPEC): Include -lc.
6909         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
6910
6911 2007-04-20  Richard Henderson  <rth@redhat.com>
6912
6913         PR target/28623
6914         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
6915         argument; update all callers.
6916         (get_unaligned_offset): New.
6917         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
6918         get_unaligned_address, just pass on the address directly.
6919         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
6920         the subreg in the helper patterns.
6921         (unaligned_extendqidi_le): Use get_unaligned_offset.
6922         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
6923         (unaligned_extendhidi_be): Likewise.
6924         (unaligned_extendhidi): Tidy.
6925         * config/alpha/alpha-protos.h: Update.
6926
6927 2007-04-20  Richard Henderson  <rth@redhat.com>
6928
6929         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
6930         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6931         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
6932         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
6933         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
6934         (CPP_SPEC): Don't include %(cpp_subtarget).
6935         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
6936         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
6937         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
6938
6939 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
6940
6941         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
6942         for __builtin_ia32_cmpordss.
6943
6944         PR tree-optimization/31632
6945         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6946         and arg1 for optimizations of comparison against min/max values.
6947         Fold arg0 to arg1's type for optimizations of comparison against
6948         min+1 and max-1 values.
6949
6950 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
6951
6952         * reload.c (combine_reloads): When trying to use a dying register,
6953         check whether it's uninitialized and don't use if so.
6954
6955 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
6956
6957         * fold-const.c: Remove prototypes for native_encode_expr and
6958         native_interpret_expr.
6959         (native_encode_expr): Make non-static.
6960         (native_interpret_expr): Likewise.
6961         * tree.h: Add prototypes for the above.
6962
6963 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
6964
6965         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
6966         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
6967         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
6968         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
6969         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
6970         Add length attributes.
6971
6972 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
6973
6974         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
6975         not that it is 1.
6976
6977         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
6978         __STDC_WANT_DEC_FP__.
6979
6980 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
6981
6982         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
6983         for long double compatibility.
6984         * configure: Regenerate.
6985
6986 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
6987
6988         PR rtl-optimization/29841
6989         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
6990         trap instructions.
6991         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
6992         that may cause control flow transfer from being moved.
6993
6994 2007-04-18  Jan Hubicka  <jh@suse.cz>
6995
6996         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
6997         types.
6998
6999 2007-04-18  Eric Christopher  <echristo@apple.com>
7000
7001         * config/rs6000/darwin.md (load_macho_picbase): Use link register
7002         only. Update operands.
7003         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
7004         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
7005         link register to pic register.
7006
7007 2007-04-18  Dirk Mueller  <dmueller@suse.de>
7008
7009         PR diagnostic/31227
7010         * tree-vrp.c (search_for_addr_array): New.
7011         (check_array_bounds): Suppress warning about
7012         address taken of array refs if its not de-referenced.
7013
7014 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
7015
7016         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
7017         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
7018
7019         * tree-vectorizer.h (NITERS_KNOWN_P): New.
7020         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
7021         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
7022
7023         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
7024         dump print.
7025         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
7026         print message.
7027         (vect_analyze_scalar_cycles): Fix indentation.
7028         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
7029         (vect_mark_relevant): Include phis in relevance analysis.
7030
7031         * tree-vect-transform.c (vect_transform_loop): Add an assert.
7032
7033 2007-04-18  Anatoly Sokolov <aesok@post.ru>
7034
7035         * config/avr/avr.c (ptrreg_to_str): Replace error() with
7036         output_operand_lossage().
7037
7038 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
7039
7040         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
7041         the unused code for reduction without adjust-in-epilog to simplify the
7042         function.
7043
7044 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
7045
7046         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
7047         (S390_TDC_NEGATIVE_ZERO): New constant.
7048         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
7049         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
7050         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
7051         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
7052         (S390_TDC_POSITIVE_INFINITY): New constant.
7053         (S390_TDC_NEGATIVE_INFINITY): New constant.
7054         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
7055         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
7056         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
7057         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
7058         (S390_TDC_INFINITY): New constant.
7059         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
7060         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
7061         optimization for UNSPEC_CCZ_TO_INT.
7062         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
7063         ("*ccz_to_int"): New insn.
7064         ("isinf<mode>2"): New insn.
7065         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
7066         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
7067         (UNSPEC_CCZ_TO_INT): New constant.
7068
7069 2007-04-18  Richard Guenther  <rguenther@suse.de>
7070
7071         PR tree-optimization/19431
7072         PR tree-optimization/21463
7073         * tree-pass.h (pass_phiprop): Declare.
7074         * passes.c (init_optimization_passes): New phiprop pass.
7075         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
7076         (phivn_valid_p): New helper function.
7077         (phiprop_insert_phi): Likewise.
7078         (propagate_with_phi): Likewise.
7079         (tree_ssa_phiprop): New propagator propagating loads
7080         through phi nodes if profitable.
7081
7082 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
7083
7084         * tree-vect-analyze.c (process_use): New function.
7085         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
7086         Check phis in all bbs.
7087         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
7088         assert.
7089
7090 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
7091
7092         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
7093         we use REG_EQUAL.
7094
7095 2007-04-17  Anatoly Sokolov <aesok@post.ru>
7096
7097         PR target/30483
7098         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
7099         error().
7100
7101 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7102
7103         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
7104         on "0".
7105         (sse_vmmulv4sf3): Likewise.
7106         (sse2_vmaddv2df3): Likewise.
7107         (sse2_vmmulv2df3): Likewise.
7108
7109 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
7110
7111         PR rtl-optimization/31360
7112         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
7113         (target_reg_cost): New.
7114         (init_set_costs): Initialize target_reg_cost.  Add comments
7115         regarding the rationale of the costs.
7116         (global_cost_for_size): Renamed to...
7117         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
7118         of register pressure.
7119         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
7120         estimate_reg_pressure_cost.  Add number of ivs.
7121         (determine_set_costs): Dump target_reg_cost.
7122         * loop-invariant.c (gain_for_invariant):  Use
7123         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
7124         (best_gain_for_invariant, find_invariants_to_move): Remove
7125         n_inv_uses.
7126         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
7127         (target_reg_cost): Declare.
7128         (global_cost_for_size): Declaration removed.
7129         (estimate_reg_pressure_cost): Declare.
7130
7131 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
7132
7133         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
7134         regnos into even/odd register pairs.
7135         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
7136         TDmode similar to the other floating point modes.
7137         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
7138         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
7139         define_expand's.
7140         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
7141         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
7142         (movdd_hardfloat64): Use TARGET_MFPGPR.
7143
7144 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
7145
7146         * reload1.c (delete_output_reload): Don't count output in n_inherited.
7147
7148         Revert
7149         2005-01-05  Richard Henderson  <rth@redhat.com>
7150         PR rtl-opt/10692
7151         * reload1.c (do_input_reload): Restrict the optimization deleteing
7152         a previous output reload to RELOAD_FOR_INPUT.
7153
7154 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
7155
7156         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
7157         induc_vec_info_type.
7158         (vectorizable_induction): New function declaration.
7159         * tree-vect-transform.c (get_initial_def_for_induction): No need to
7160         check if already vectorized.  Find first place in BB where new stmts
7161         can be inserted.  Takes only one argument.
7162         (vectorizable_induction): New function.
7163         (vect_transform_stmt): Add case for induc_vec_info_type to call
7164         vectorizable_induction.
7165         (vect_transform_loop): Consider phis for vectorization.
7166         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
7167         condition.
7168         (analyze_operations): Call vectorizable_induction when analyzing phis.
7169         Fix comment.
7170         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
7171         (vect_mark_relevant): Include phis in relevance analysis.
7172         (vect_mark_stmts_to_be_vectorize): Likewise.
7173         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
7174
7175 2007-04-16  Lawrence Crowl  <crowl@google.com>
7176
7177         * doc/invoke.texi (Debugging Options): Add documentation for the
7178         -femit-struct-debug options -femit-struct-debug-baseonly,
7179         -femit-struct-debug-reduced, and
7180         -femit-struct-debug-detailed[=...].
7181
7182         * c-opts.c (c_common_handle_option): Add
7183         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
7184         and OPT_femit_struct_debug_detailed_.
7185         * c.opt: Add specifications for
7186         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
7187         and -femit-struct-debug-detailed[=...].
7188         * opts.c (set_struct_debug_option): Parse the
7189         -femit-struct-debug-... options.
7190         * opts.c (matches_main_base, main_input_basename,
7191         main_input_baselength, base_of_path, matches_main_base): Add
7192         variables and functions to compare header base name to compilation
7193         unit base name.
7194         * opts.c (should_emit_struct_debug): Add to determine to emit a
7195         structure based on the option.
7196         (dump_struct_debug) Also disabled function to debug this
7197         function.
7198         * opts.c (handle_options): Save the base name of the
7199         compilation unit.
7200
7201         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
7202         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
7203         This hook indicates if a type is generic.  Set it by default
7204         to "never generic".
7205         * langhooks.h (struct lang_hooks_for_types): Add a new hook
7206         to determine if a struct type is generic or not.
7207         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
7208         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
7209         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
7210         with live C++ hook.
7211
7212         * flags.h (enum debug_info_usage): Add an enumeration to describe
7213         a program's use of a structure type.
7214         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
7215         to indicate the program's usage of the type.  Filter structs based
7216         on the -femit-struct-debug-... specification.
7217         (gen_type_die): Split into two routines, gen_type_die and
7218         gen_type_die_with_usage.  gen_type_die is now a wrapper
7219         that assumes direct usage.
7220         (gen_type_die_with_usage): Replace calls to gen_type_die
7221         with gen_type_die_with_usage adding the program usage of
7222         the referenced type.
7223         (dwarf2out_imported_module_or_decl): Suppress struct debug
7224         information using should_emit_struct_debug when appropriate.
7225
7226 2007-04-16  Ian Lance Taylor  <iant@google.com>
7227
7228         PR tree-optimization/31522
7229         * tree-vrp.c (vr_phi_edge_counts): New static variable.
7230         (vrp_initialize): Allocate vr_phi_edge_counts.
7231         (vrp_visit_phi_node): Don't push to infinity if we saw a new
7232         executable edge.  Drop test for all constants.
7233         (vrp_finalize): Free vrp_phi_edge_counts.
7234
7235         * doc/cpp.texi (Common Predefined Macros): Clarify description of
7236         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
7237
7238         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
7239         predecessors at head rather than tail.
7240
7241 2007-04-16  Matthias Klose  <doko@debian.org>
7242
7243         * config/alpha/linux.h (CPP_SPEC): Define.
7244         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
7245
7246 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
7247
7248         * function.h: Remove sequence_stack extern declaration.
7249
7250 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
7251
7252         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
7253         TARGET_FIDOA.
7254         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
7255         defined.
7256
7257 2007-04-16  Anatoly Sokolov <aesok@post.ru>
7258
7259         * config/avr/avr.c (avr_arch_types): Rearranging  array.
7260         (enum avr_arch): Add.
7261         (avr_mcu_types): Use avr_arch enumeration constants instead of
7262         numbers.
7263         * config/avr/avr.h (LINK_SPEC): Simplify.
7264
7265 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
7266
7267         * config/m68k/m68k.c (m68k_libcall_value,
7268         m68k_function_value): Use macros for register names more.
7269
7270         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
7271         instead.
7272         (M68K_REGNAME): Use A6_REG.
7273         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
7274
7275 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7276
7277         PR middle-end/28071
7278         * sched-int.h (struct deps): Split field 'pending_lists_length' into
7279         'pending_read_list_length' and 'pending_write_list_length'.  Update
7280         comment.
7281         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
7282         to handle two length counters instead of one.  Update all uses.
7283         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
7284         two length counters instead of one.
7285         * sched-rgn.c (propagate_deps): Update to handle two length counters
7286         instead of one.
7287
7288 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
7289
7290         PR target/31582
7291         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
7292         copy of source, pass it to ix86_expand_vector_set and return
7293         it as target.
7294
7295 2007-04-16  David Ung  <davidu@mips.com>
7296             Joseph Myers  <joseph@codesourcery.com>
7297
7298         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
7299         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
7300         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
7301         Add 74K processor information.
7302         * config/mips/mips.md: Include 74k.md.
7303         (cpu): Add 74kc,74kf,74kx.
7304         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
7305         * config/mips/74k.md: New.
7306         * doc/invoke.texi (MIPS Options): Document 74K support.
7307
7308 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
7309
7310         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
7311         vectorizable_* functions.
7312         * tree-vect-transform.c (vectorizable_call): Add check for
7313         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
7314         (vectorizable_store): likewise.
7315         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
7316         Add comments.
7317         (vectorizable_operation, vectorizable_type_demotion): Likewise.
7318         (vectorizable_type_promotion, vectorizable_load): Likewise.
7319         (vectorizable_live_operation, vectorizable_condition): Likewise.
7320         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
7321         STMT_VINFO_LIVE_P.
7322         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
7323
7324 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
7325
7326         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
7327         register numbers more.
7328         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
7329         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
7330         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
7331         FUNCTION_VALUE_REGNO_P): Likewise.
7332         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
7333         STATIC_CHAIN_REGNUM): Likewise.
7334         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
7335         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
7336         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
7337         * config/m68k/m68k.md (FP_REG): New.
7338
7339 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
7340
7341         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
7342         alignment on fido.
7343
7344 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
7345
7346         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
7347         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
7348         comment typos.
7349
7350 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
7351
7352         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
7353         cold loops.
7354
7355 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7356
7357         PR c/31520
7358         * c-decl.c (finish_decl): Grab the type of the decl after the call
7359         to store_init_value.
7360
7361 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
7362
7363         * common.opt (fforward-propagate): Fix "Optimization" annotation.
7364
7365 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
7366
7367         PR c++/25874
7368         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
7369         post dominators and cleanup cfg before returning.
7370
7371 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
7372
7373         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
7374         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
7375
7376 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
7377
7378         * config.gcc: Recognize fido.
7379         * config/m68k/m68k-devices.def (fidoa): New.
7380         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
7381         __mfido__.
7382         (FL_FIDOA, TARGET_FIDOA): New.
7383         * config/m68k/m68k.opt (mfidoa): New.
7384
7385 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7386
7387         PR middle-end/31322
7388         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
7389         when a personality function is used.
7390
7391 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
7392
7393         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
7394
7395 2007-04-13  Mike Stump  <mrs@apple.com>
7396
7397         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
7398         we can...
7399         * config/darwin.opt (fapple-kext): Make C++ only.
7400         * config/darwin.c (darwin_override_options): Remove code to ensure
7401         -fapple-kext is given for C++ only.
7402
7403 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
7404
7405         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
7406         * config/mips/mips.c (override_options): Call
7407         SUBTARGET_OVERRIDE_OPTIONS, if defined.
7408
7409 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7410
7411         * config/i386/i386.opt (msvr3-shlib): Removed.
7412
7413         * doc/invoke.texi: Remove -msvr3-shlib.
7414
7415 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7416
7417         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
7418         with "popcnt" instruction.
7419
7420 2007-04-13  Richard Guenther  <rguenther@suse.de>
7421
7422         PR tree-optimization/21258
7423         * tree-vrp.c (compare_case_labels): New helper.
7424         (find_switch_asserts): New function.
7425         (find_assert_locations): Call it for SWITCH_EXPRs.
7426
7427 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
7428
7429         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
7430         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
7431         check is now implied in X87_FLOAT_MODE_P.
7432         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
7433         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
7434         (fix_trunc<mode>_i386_fisttp): Ditto.
7435         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
7436         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
7437         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
7438         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
7439         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
7440         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
7441         (unnamed_splitters): Ditto.
7442         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
7443         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
7444         FIRST_SSE_REG for local functions when SSE math is enabled or
7445         for functions with sseregparm attribute.
7446         (standard_80387_constant_p): Return -1 if mode is not
7447         X87_FLOAT_MODE_P.
7448         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
7449         (ix86_expand_compare): Ditto.
7450         (ix86_expand_carry_flag_compare): Ditto.
7451         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
7452         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
7453         DECIMAL_FLOAT_MODE_P.
7454         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
7455         of SCALAR_FLOAT_MODE_P.
7456         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
7457         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
7458         checks before FLOAT_MODE_P.
7459         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
7460         before FLOAT_MODE_P.
7461         [DIV]: Ditto.
7462         [NEG]: Ditto.
7463         [ABS]: Ditto.
7464         [SQRT]: Ditto.
7465         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
7466
7467 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
7468             Charles Wilson  <libtool@cwilson.fastmail.fm>
7469
7470         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
7471         (libgcc.mvars): Don't depend on them.
7472         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
7473         * exec-tool.in: New.
7474
7475 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
7476
7477         * doc/invoke.text (--help): Document --help=common.
7478
7479 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
7480
7481         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
7482
7483 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7484
7485         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
7486         * genemit.c (main): Emit #include "integrate.h".
7487         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
7488         (LOADGP_RTP): New mips_loadgp_style.
7489         * config/mips/mips.h: Include config/vxworks-dummy.h.
7490         (TARGET_RTP_PIC): New macro.
7491         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
7492         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
7493         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
7494         for TARGET_RTP_PIC.
7495         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
7496         -mvxworks-pic when using -mrtp and a PIC option.
7497         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
7498         for RTP PIC.
7499         (mips_symbolic_constant_p, mips_symbolic_address_p)
7500         (mips_symbol_insns): Handle SYMBOL_HALF.
7501         (override_options): Warn about -G and -mrtp being used together.
7502         Initialize mips_lo_relocs[SYMBOL_HALF].
7503         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
7504         (mips_emit_loadgp): Handle LOADGP_RTP.
7505         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
7506         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
7507         (tablejump): Handle function-relative case table entries if
7508         TARGET_RTP_PIC.
7509         * config/mips/predicates.md (symbol_ref_operand): New predicate.
7510
7511 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7512
7513         * config/mips/mips.md (load_call<mode>): Allow any general register.
7514         destination.
7515         (sibcall_value_internal, sibcall_value_multiple_internal)
7516         (call_value_internal, call_value_split, call_value_multiple_internal)
7517         (call_value_multiple_split): Remove constraints from operand 0.
7518
7519 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7520
7521         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
7522         rather than loadgp_noshared.
7523         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
7524         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
7525         gen_loadgp.
7526         * config/mips/mips.md (loadgp): Rename to...
7527         (loadgp_newabi): ...this.
7528         (loadgp_noshared): Rename to...
7529         (loadgp_absolute): ...this.
7530
7531 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7532
7533         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
7534         false for locally-binding symbols.
7535         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
7536
7537 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7538
7539         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
7540         (SYMBOL_GOT_PAGE_OFST): ...this.
7541         (SYMBOL_GOT_GLOBAL): Rename to...
7542         (SYMBOL_GOT_DISP): ...this.
7543         (SYMBOL_GOTOFF_GLOBAL): Rename to...
7544         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
7545         * config/mips/mips.c (mips_global_symbol_p): New function.
7546         (mips_symbol_binds_local_p): Likewise.
7547         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
7548         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
7549         and mips_symbol_binds_local_p.
7550         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
7551         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
7552         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
7553         SYMBOL_GOTOFF_DISP.
7554         (mips_ok_for_lazy_binding_p): New function.
7555         (mips_load_call_address, mips_expand_call): Use it.
7556         (mips_dangerous_for_la25_p): Likewise.
7557         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
7558         (*got_disp<mode>): Use got_disp_operand instead of
7559         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
7560         SYMBOL_GOTOFF_GLOBAL.
7561         (*got_page<mode>): Use got_page_ofst_operand instead of
7562         local_got_operand.
7563         * config/mips/predicates.md (const_call_insn_operand): Use
7564         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
7565         (global_got_operand): Rename to...
7566         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
7567         SYMBOL_GOT_GLOBAL.
7568         (local_got_operand): Rename to...
7569         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
7570         of SYMBOL_GOT_LOCAL.
7571
7572 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7573
7574         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
7575         TARGET_CALL_CLOBBERED_GP.
7576         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7577         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
7578         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
7579         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
7580         of TARGET_ABICALLS && !TARGET_NEWABI.
7581         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7582         * config/mips/mips.c (mips_load_call_address): Check
7583         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
7584         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7585         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
7586         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
7587         TARGET_ABICALLS && TARGET_NEWABI.
7588         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
7589         TARGET_ABICALLS.
7590         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
7591         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
7592         TARGET_ABICALLS && TARGET_NEWABI.
7593         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
7594         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
7595         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
7596         whether indirect calls must use $25.
7597         (mips_extra_live_on_entry): Check TARGET_GOT instead of
7598         TARGET_ABICALLS.
7599         * config/mips/mips.md (jal_macro): Check flag_pic and
7600         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
7601         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
7602         instead of TARGET_ABICALLS.
7603         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
7604         TARGET_ABICALLS && TARGET_OLDABI.
7605         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
7606         (sibcall): In the comment above the define_insn, mention
7607         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
7608         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
7609         instead of TARGET_ABICALLS.
7610
7611 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
7612
7613         * doc/md.texi (Blackfin family constraints): Document PA and PB.
7614         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
7615         (MACFLAGS_MATCH_P): New macro.
7616         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
7617         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
7618         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
7619         the other MACFLAG constants.
7620         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
7621         (flag_machi): Tighten constraints.  Renumber some of the operands.
7622         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
7623         output template.
7624         (flag_machi_parts_acconly): New pattern.
7625         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
7626         used.
7627         (flag_macinit1hi): Tighten constraints.
7628         (flag_mul_macv2hi_parts_acconly): New pattern.
7629
7630         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
7631         Use a more efficient implementation.
7632         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
7633         inline sequences when not optimizing for size.
7634
7635         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
7636         movhi_high2low): Delete, merge functionality into...
7637         (packv2hi): ... this pattern.
7638
7639         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
7640         * config/bfin/bfin.opt (msim): New option.
7641         (mcpu=): New option.
7642         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
7643         (bfin_cpu_t): Typedef of enum bfin_cpu.
7644         (bfin_cpu_type): New declaration.
7645         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
7646         -msim and -mcpu= options.
7647         (LIB_SPEC): Likewise.
7648         * config/bfin/bfin.c (bfin_cpu_type): Define.
7649         (bfin_handle_option): Handle -mcpu= option.
7650         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
7651         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
7652         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
7653
7654 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7655
7656         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
7657         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
7658         (powerpc-wrs-vxworksae): Use ${tm_file}.
7659         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
7660         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
7661         * config/i386/vx-common.h: New file.
7662
7663 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
7664
7665         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
7666         of crt0.o%s.
7667
7668 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7669
7670         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
7671         ldxtr.
7672
7673 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
7674
7675         PR c++/31078
7676         PR c++/31103
7677         * c-common.c (c_build_qualified_type): Set canonical type
7678         appropriately.
7679
7680 2007-04-12  Richard Guenther  <rguenther@suse.de>
7681
7682         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
7683         lower bound and element size if lower bound is not zero
7684         or either of the ARRAY_REF operands is set.
7685
7686 2007-04-12  Richard Guenther  <rguenther@suse.de>
7687
7688         PR tree-optimization/24689
7689         PR tree-optimization/31307
7690         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
7691         indices by value.
7692         * gimplify.c (canonicalize_addr_expr): To be consistent with
7693         gimplify_compound_lval only set operands two and three of
7694         ARRAY_REFs if they are not gimple_min_invariant.  This makes
7695         it never at this place.
7696         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
7697
7698 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7699
7700         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
7701         null before emitting a .nsubspa directive.
7702
7703 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
7704
7705         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
7706         need_to_partition_p if there are no memory statements in the
7707         function.
7708
7709 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
7710
7711         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
7712         (gcd_of_steps_may_divide_p): New function.
7713         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
7714
7715 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7716
7717         * reload.c (find_reloads_toplev, find_reloads_address,
7718         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
7719         not a pointer equality test, to decide if we need to call
7720         push_reg_equiv_alt_mem.
7721
7722 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
7723
7724         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
7725         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
7726         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
7727
7728 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
7729
7730         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
7731         vector to be positive.
7732
7733 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
7734
7735         PR 30735
7736         PR 31090
7737         * doc/invoke.texi: Document --params max-aliased-vops and
7738         avg-aliased-vops.
7739         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
7740         debug_memory_partitions): Move to tree-flow.h
7741         * params.h (AVG_ALIASED_VOPS): Define.
7742         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
7743         users.
7744         (mp_info_t): Likewise.
7745         (get_mem_sym_stats_for): New.
7746         (set_memory_partition): Move from tree-flow-inline.h.
7747         (mark_non_addressable): Only clear the set of symbols for the
7748         partition if it exists.
7749         (dump_memory_partitions): Move from tree-ssa-operands.c
7750         (debug_memory_partitions): Likewise.
7751         (need_to_partition_p): New.
7752         (dump_mem_ref_stats): New.
7753         (debug_mem_ref_stats): New.
7754         (dump_mem_sym_stats): New.
7755         (debug_mem_sym_stats): New.
7756         (update_mem_sym_stats_from_stmt): New.
7757         (compare_mp_info_entries): New.
7758         (mp_info_cmp): Call it.
7759         (sort_mp_info): Change argument to a list of mem_sym_stats_t
7760         objects.
7761         (get_mpt_for): Move from tree-ssa-operands.c.
7762         (find_partition_for): New.
7763         (create_partition_for): Remove.
7764         (estimate_vop_reduction): New.
7765         (update_reference_counts): New.
7766         (build_mp_info): New.
7767         (compute_memory_partitions): Refactor.
7768         Document new heuristic.
7769         Call build_mp_info, update_reference_counts,
7770         find_partition_for and estimate_vop_reduction.
7771         (compute_may_aliases): Populate virtual operands before
7772         calling debugging dumps.
7773         (delete_mem_sym_stats): New.
7774         (delete_mem_ref_stats): New.
7775         (init_mem_ref_stats): New.
7776         (init_alias_info): Call it.
7777         (maybe_create_global_var): Remove alias_info argument.
7778         Get number of call sites and number of pure/const call sites
7779         from gimple_mem_ref_stats().
7780         (dump_alias_info): Call dump_memory_partitions first.
7781         (dump_points_to_info_for): Show how many times a pointer has
7782         been dereferenced.
7783         * opts.c (decode_options): For -O2 set --param
7784         max-aliased-vops to 500.
7785         For -O3 set --param max-aliased-vops to 1000 and --param
7786         avg-aliased-vops to 3.
7787         * fortran/options.c (gfc_init_options): Remove assignment to
7788         MAX_ALIASED_VOPS.
7789         * tree-flow-inline.h (gimple_mem_ref_stats): New.
7790         * tree-dfa.c (dump_variable): Dump memory reference
7791         statistics.
7792         Dump NO_ALIAS* settings.
7793         (referenced_var_lookup): Tidy.
7794         (mem_sym_stats): New.
7795         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
7796         and ORIG are different SSA names for a memory partition.
7797         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
7798         * tree-flow.h (struct mem_sym_stats_d): Define.
7799         (mem_sym_stats_t): Define.
7800         (struct mem_ref_stats_d): Define.
7801         (struct gimple_df): Add field mem_ref_stats.
7802         (enum noalias_state): Define.
7803         (struct var_ann_d): Add bitfield noalias_state.
7804         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
7805         debug_mem_ref_stats, debug_memory_partitions,
7806         debug_mem_sym_stats): Declare.
7807         * tree-ssa-structalias.c (update_alias_info): Update call
7808         sites, pure/const call sites and asm sites in structure
7809         returned by gimple_mem_ref_stats.
7810         Remove local variable IS_POTENTIAL_DEREF.
7811         Increase NUM_DEREFS if the memory expression is a potential
7812         dereference.
7813         Call update_mem_sym_stats_from_stmt.
7814         If the memory references memory, call
7815         update_mem_sym_stats_from_stmt for all the direct memory
7816         symbol references found.
7817         (intra_create_variable_infos): Set noalias_state field for
7818         pointer arguments according to the value of
7819         flag_argument_noalias.
7820         * tree-ssa-structalias.h (struct alias_info): Remove fields
7821         num_calls_found and num_pure_const_calls_found.
7822         (update_mem_sym_stats_from_stmt): Declare.
7823         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
7824         Set default value to 100.
7825         (PARAM_AVG_ALIASED_VOPS): Define.
7826
7827 2007-04-11  Richard Guenther  <rguenther@suse.de>
7828
7829         PR middle-end/31530
7830         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
7831         a * -b + c as c - a * b if we honor sign dependent rounding.
7832
7833 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7834
7835         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
7836         bfin_expand_strmov.
7837         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
7838         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
7839         variables.
7840         (initialize_trampoline): Don't use old-style function definition.
7841         (bfin_secondary_reload): Mark IN_P argument as unused.
7842
7843 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
7844
7845         PR tree-optimization/31343
7846         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
7847         (build_polynomial_chrec): Return a scalar when the evolution is zero.
7848         * testsuite/gcc.dg/vect/pr31343.c: New.
7849
7850 2007-04-10  Eric Christopher  <echristo@apple.com>
7851
7852         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
7853         * config/i386/i386.md (*cmpfp0): Use.
7854         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
7855         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
7856         (fix_trunc<mode>_i386_fisttp): Ditto.
7857         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
7858         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
7859         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
7860         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
7861         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
7862         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
7863         (unnamed_splitters): Ditto.
7864         * config/i386/i386.c (output_fix_trunc): Assert that
7865         we're not being passed a TFmode operand.
7866
7867 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
7868
7869         PR tree-optimization/31526
7870         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
7871         n_basic_blocks to find newly added blocks.
7872
7873 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
7874
7875         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
7876         alternative.
7877         (fix_trunc<mode>si_sse): Ditto.
7878         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
7879         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
7880         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
7881         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
7882         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
7883         expander using SSEMODEF mode macro.
7884         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
7885         expander using SSEMODEF mode macro.
7886         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
7887         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
7888         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
7889         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
7890         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
7891         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
7892         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
7893         Macroize insn using X87MODEF mode macro.
7894
7895 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
7896
7897         * config/i386/sse.md (sse2_pinsrw): Removed.
7898         (sse2_pextrw): Renamed to ...
7899         (*sse2_pextrw): This.
7900
7901 2007-04-09  Jan Hubicka  <jh@suse.cz>
7902
7903         PR target/27869
7904         * config/i386/sse.md
7905         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
7906         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
7907         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
7908         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
7909
7910 2007-04-09  Jan Hubicka  <jh@suse.cz>
7911
7912         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
7913         multiple fields of union.
7914
7915 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
7916
7917         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
7918         (create_preheaders): Check that loops are available.
7919         (fix_loop_structure): Clean up, improve comments.
7920         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
7921         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
7922         state flags.
7923         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
7924         * predict.c (tree_estimate_probability): Do not call
7925         calculate_dominance_info.  Call create_preheaders.
7926         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
7927         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
7928         flags.
7929         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
7930         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
7931         * tree-cfg.c (tree_split_edge): Make an assert more precise.
7932         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
7933         arguments.
7934
7935 2007-04-08  Jan Hubicka  <jh@suse.cz>
7936
7937         * tree.h (maybe_fold_offset_to_component_ref): Declare.
7938         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
7939         * fold-const.c (fold_unary): Use it.
7940
7941 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7942
7943         * varasm.c (assemble_variable): Remove call to
7944         lang_hooks.decls.prepare_assemble_variable.
7945         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
7946         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
7947         * langhooks.h (lang_hooks_for_decls): Remove
7948         prepare_assemble_variable.
7949
7950 2007-04-08  Mike Stump  <mrs@apple.com>
7951
7952         * config/i386/i386.c: Use inc/dec on Core2.
7953
7954 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7955
7956         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
7957         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
7958         lhd_tree_inlining_end_inlining): Remove.
7959         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
7960         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
7961         end_inlining hooks.
7962         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
7963         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
7964         lhd_tree_inlining_end_inlining): Remove prototypes.
7965         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
7966         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
7967         LANG_HOOKS_TREE_INLINING_START_INLINING,
7968         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
7969
7970         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
7971         not set it.
7972
7973 2007-04-08  Anatoly Sokolov <aesok@post.ru>
7974
7975         PR target/29932
7976         * config/avr/predicates.md (io_address_operand): Delete predicate.
7977         (low_io_address_operand): Don't use 'mode' argument.
7978         (higth_io_address_operand): Rename ...
7979         (high_io_address_operand): ... to this. Don't use 'mode' argument.
7980         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
7981         for above change.
7982
7983 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
7984
7985         Revert change removing staticp.
7986
7987 2007-04-07  Anatoly Sokolov <aesok@post.ru>
7988
7989         PR target/30289
7990         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
7991         earlyclobber.
7992
7993 2007-04-07  Bruce Korb  <bkorb@gnu.org>
7994
7995         * c.opt: Add -Wformat-contains-nul.
7996         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
7997           -Wformat setting.
7998         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
7999         the NUL byte warning.
8000
8001 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
8002
8003         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
8004
8005 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
8006
8007         * tree.c (staticp): No longer use staticp langhook.
8008         * langhooks.c (lhd_staticp): Removed.
8009         * langhooks.h (struct lang_hooks): Remove staticp.
8010         * c-common.c (c_staticp): Remove.
8011         * c-common.h (c_staticp): Ditto.
8012         * langhooks-defs.h (lhd_staticp): Ditto.
8013         (LHD_HOOKS_STATICP): Ditto
8014         * tree.h (gcc_assert_lowered): New macro.
8015
8016 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
8017
8018         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
8019         argument "reliable".
8020         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
8021         Add argument "reliable".  Propagate it through calls.
8022         (infer_loop_bounds_from_undefined):  Derive number of iterations
8023         estimates from references in blocks that do not dominate loop latch.
8024         (gcov_type_to_double_int): New function.
8025         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
8026         and expected_loop_iterations_unbounded.
8027         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
8028         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
8029         * tree-data-ref.c (estimated_loop_iterations): Export.
8030         (get_references_in_stmt): Fix -- do not return addresses of local
8031         objects.
8032         * cfgloop.h (expected_loop_iterations_unbounded,
8033         estimated_loop_iterations): Declare.
8034
8035 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
8036
8037         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
8038
8039 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
8040
8041         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
8042         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
8043         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
8044         Use output_387_reg_move().
8045         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
8046         expander using X87MODEF12 mode macro.
8047         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
8048         choosing register preferences.  Use output_387_reg_move().
8049         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
8050         instead of "x".  Use output_387_reg_move().
8051         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
8052         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
8053         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
8054         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
8055         Use output_387_reg_move().
8056         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
8057         mode macro.
8058         (*truncxf?f_i387 splitter): Ditto.
8059
8060 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
8061
8062         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8063         LANG_HOOKS_SAFE_FROM_P.
8064         * expr.c (safe_from_p): Remove langhook call.
8065         * langhooks.h (lang_hooks): Remove safe_from_p.
8066         (lhd_safe_from_p): Remove prototype.
8067         * langhooks.c (lhd_safe_from_p): Remove.
8068
8069 2007-04-06  Jan Hubicka  <jh@suse.cz>
8070
8071         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
8072         functions.
8073
8074 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
8075
8076         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
8077         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
8078         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
8079         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
8080         alternative.
8081         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
8082         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
8083
8084 2007-04-05  Richard Henderson  <rth@redhat.com>
8085
8086         * config/alpha/alpha.c (print_operand) [+]: Remove.
8087         (alpha_end_function): Print nop if call at end of function.
8088         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
8089         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
8090         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
8091         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
8092         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
8093         the call pattern. Update peepholes to match.
8094
8095 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
8096
8097         * doc/extend.texi (Other Builtins): Add decimal float variants
8098         of signbit.
8099         * builtins.def: Ditto.
8100         * builtins.c (expand_builtin): Ditto.
8101
8102 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
8103             H.J. Lu  <hongjiu.lu@intel.com>
8104
8105         PR target/31478
8106         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
8107         of V8HImode when calling ix86_binary_operator_ok.
8108         (sse2_pmaddwd): Call ix86_binary_operator_ok.
8109         (sdot_prodv8hi): Operands 1 and 2 must be register.
8110
8111 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
8112
8113         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
8114         initialize align to silence bogus warning.
8115
8116 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
8117
8118         PR middle-end/22156
8119         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
8120         all_no_warning.
8121         (struct sra_walk_fns): Remove use_all parameter from use.
8122         (sra_hash_tree): Handle BIT_FIELD_REFs.
8123         (sra_elt_hash): Don't hash bitfld blocks.
8124         (sra_elt_eq): Skip them in parent compares as well.  Handle
8125         BIT_FIELD_REFs.
8126         (sra_walk_expr): Don't maintain or pass down use_all_p.
8127         (scan_use): Remove use_all parameter.
8128         (scalarize_use): Likewise.  Re-expand assignment to
8129         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
8130         output, and re-scalarize after output.  Don't mark anything
8131         for no warning.
8132         (scalarize_ldst): Adjust.
8133         (scalarize_walk_gimple_modify_statement): Likewise.
8134         (build_element_name_1): Handle BIT_FIELD_REFs.
8135         (instantiate_element): Don't warn for any element whose parent
8136         is used as a whole.
8137         (instantiate_missing_elements_1): Return the sra_elt.
8138         (canon_type_for_field): New.
8139         (try_instantiate_multiple_fields): New.
8140         (instantiate_missing_elemnts): Use them.
8141         (mark_no_warning): Removed.
8142         (generate_one_element_ref): Handle BIT_FIELD_REFs.
8143         (REPLDUP, sra_build_elt_assignment): New.
8144         (generate_copy_inout): Use them.
8145         (generate_element_copy): Likewise.  Handle bitfld differences.
8146         (generate_element_zero): Don't recurse for blocks.  Use
8147         sra_build_elt_assignment.
8148         (generate_one_element_int): Take elt instead of var.  Use
8149         sra_build_elt_assignment.
8150         (generate_element_init_1): Adjust.
8151         (scalarize_use, scalarize_copy): Use REPLDUP.
8152         (scalarize_ldst): Move assert before dereference.
8153         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
8154
8155 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8156
8157         * regmove.c: Fix unused variable warnings due to previous commit.
8158
8159 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8160
8161         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
8162         (regmove_bb_head): Remove.
8163         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
8164         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
8165         problems with fixup_match_1.
8166         Don't initialize/free regmove_bb_head.
8167
8168         (reg_is_remote_constant_p): If an insn is in the same basic block
8169         but not before INSN, consider it remote, too.
8170
8171 2007-04-05  Anatoly Sokolov <aesok@post.ru>
8172
8173         PR target/25448
8174         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
8175         DECL_ASSEMBLER_NAME, not the DECL_NAME.
8176
8177 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
8178
8179         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
8180         (CONDITIONAL_REGISTER_USAGE): Likewise.
8181
8182 2007-04-04  Richard Henderson  <rth@redhat.com>
8183
8184         * config/alpha/lib1funcs.asm: Remove unused file.
8185
8186 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
8187
8188         PR other/31356
8189         * opts.c (print_specific_help): Fix --help=<language>
8190         header line.
8191         (common_handle_option): Support --help=common.
8192
8193 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
8194
8195         PR other/31353
8196         * gcc.c (main): Do not run the linker if
8197         print_subprocess_help indicates that it shouldn't be
8198         run.
8199
8200 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
8201
8202         PR doc/31355
8203         * doc/invoke.texi (--help=): Document <languages> value, fix
8204         formatting in tables of values.
8205
8206 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
8207
8208         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
8209         dllimport attribute of virtual methods.
8210
8211 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
8212
8213         * config/score/crti.asm: Change _bss_start to __bss_start.
8214         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
8215         (OUTGOING_REG_PARM_STACK_SPACE) update.
8216         * config/score/score.opt: add options to make backend support
8217         score5, score5u, score7 and score7d.
8218         * config/score/score.md: Likewise.
8219         * config/score/misc.md: Likewise.
8220         * config/score/mac.md: Likewise.
8221         * doc/invoke.texi: Likewise.
8222         * doc/md.texi: update constraints define.
8223
8224 2007-04-03  Richard Henderson  <rth@redhat.com>
8225
8226         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
8227         an appropriate type, use the mode instead.
8228
8229 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
8230
8231         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
8232         Set the default --with-arch setting to mips2.
8233         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
8234         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
8235         (MULTILIB_OSDIRNAMES): Delete.
8236         (MULTILIB_DIRNAMES): Define.
8237         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
8238         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
8239         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
8240         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
8241         VXWORKS_OS_CPP_BUILTINS.
8242         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
8243         (MIPS_DEBUGGING_INFO): Undefine.
8244         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
8245
8246 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
8247
8248         PR middle-end/30704
8249         * fold-const.c (native_encode_real): Encode real.c provided longs
8250         as a series of 32-bit native integers.
8251         (native_interpret_real): Interpret buffer as a series of 32-bit
8252         native integers.
8253
8254 2007-04-03  Richard Guenther  <rguenther@suse.de>
8255
8256         * genpreds.c (write_insn_constraint_len): Write function
8257         optimized for CONSTRAINT_LEN implementation.
8258         (write_tm_preds_h): Output insn_constraint_len inline and
8259         use it for CONSTRAINT_LEN.
8260         (write_insn_preds_c): Don't output insn_constraint_len.
8261         * doc/md.texi (define_register_constraint): Document multi-letter
8262         constraints shall have the same length if they start with the same
8263         letter.
8264
8265 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
8266
8267         PR target/31175
8268         * config/i386/i386.md (isinf<mode>2): Expand only when
8269         TARGET_C99_FUNCTIONS is set.
8270
8271 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
8272
8273         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
8274         (x86_64-*-linux*): Ditto.
8275         * config/i386/i386.opt (mpc): New option.
8276         * config/i386/i386.c (overrride_options): Handle
8277         ix87_precision_string.
8278         * config/i386/crtprec.c: New file.
8279         * config/i386/t-crtpc: Ditto.
8280         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
8281         and -mpc80 options.
8282         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
8283         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
8284         crtprec32.o, crtprec64.o and crtprec80.o.
8285
8286         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
8287         and -mpc80 options.
8288         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
8289
8290 2007-04-02  Eric Christopher  <echristo@apple.com>
8291
8292         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
8293         limitations on darwin.
8294
8295 2007-04-02  Anatoly Sokolov <aesok@post.ru>
8296
8297         PR target/31137
8298         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
8299
8300 2007-04-02  Dave Korn  <dave.korn@artimi.com>
8301
8302         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
8303
8304 2007-04-02  Dave Korn  <dave.korn@artimi.com>
8305
8306         * libgcc2.h (exception_descriptor): Don't forward-declare.
8307         (__get_eh_table_language, __get_eh_table_version): Delete
8308         prototypes of long-dead functions.
8309
8310 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
8311
8312         * ebitmap.h: New file
8313         * ebitmap.c: New file
8314         * Makefile.in (ebitmap.o): New target.
8315
8316 2007-04-01  Jan Hubicka  <jh@suse.cz>
8317
8318         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
8319         before very first instruction.
8320
8321 2007-04-01  Jan Hubicka  <jh@suse.cz>
8322
8323         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
8324         waring on 64bit hosts.
8325         * bitmap.h: Fix typo in bitmap_head_def.
8326
8327 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
8328
8329         PR rtl-optimization/31391
8330         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
8331         into a DELETED_LABEL note, and the label is in an empty basic
8332         block, update BB_END as well as BB_HEAD.
8333
8334 2007-04-01  Richard Henderson  <rth@redhat.com>
8335
8336         PR tree-optimization/31169
8337         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
8338         to varying if the range is outside [0,  prec-1].
8339
8340 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
8341
8342         PR target/31388
8343         * config/mips/mips.md (load_const_gp): New insn.
8344         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
8345         the MIPS16 GP pseudo register if no_new_pseudos.
8346         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
8347
8348 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8349
8350         PR target/31364
8351         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
8352         secureplt.
8353         (call_value): Likewise.
8354
8355 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
8356             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8357
8358         PR 14737
8359         * doc/invoke.texi: (optimization options): Reword description
8360         of -ffast-math. Document its primary purpose.
8361
8362 2007-03-31  Richard Guenther  <rguenther@suse.de>
8363
8364         * omp-low.c (splay-tree.h): Include.
8365         (lookup_decl): Replace splay-tree usage by pointer-map.
8366         (maybe_lookup_decl): Likewise.
8367         (new_omp_context): Likewise.
8368         (delete_omp_context): Likewise.
8369         * gimplify.c (splay-tree.h): Include.
8370         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
8371         pointer-map.
8372         (remap_ssa_name): Likewise.
8373         (remap_decl): Likewise.
8374         (remap_type_1): Likewise.
8375         (remap_type): Likewise.
8376         (copy_body_r): Likewise.
8377         (expand_call_inline): Likewise.
8378         (clone_body): Likewise.
8379         (copy_tree_r): Likewise.
8380         (remap_save_expr): Likewise.
8381         (unsave_r): Likewise.
8382         (unsave_expr_now): Likewise.
8383         (tree_function_versioning): Likewise.
8384         (build_duplicate_type): Likewise.
8385         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
8386         (struct copy_body_data): Replace splay-tree by pointer-map.
8387         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
8388         not $(SPLAY_TREE_H).
8389         (gimplify.o): Depend on $(SPLAY_TREE_H).
8390         (omp-low.p): Likewise.
8391
8392 2007-03-31  Anatoly Sokolov <aesok@post.ru>
8393
8394         * config/avr/predicates.md (even_register_operand,
8395         odd_register_operand): New predicates.
8396         * config/avr/avr.md (movw peephole2): New.
8397         (movw_r peephole2): New.
8398
8399 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
8400
8401         * tree.h (get_signed_or_unsigned_type): New.
8402         * fold-const.c (operand_equal_for_comparison_p): Use
8403         get_signed_or_unsigned_type instead of
8404         lang_hooks.types.signed_or_unsigned_type.
8405         * expr.c (store_expr): Ditto.
8406         * langhooks.c (get_signed_or_unsigned_type): New.
8407         (lhd_signed_or_unsigned_type): New.
8408         * langhooks.h (lhd_signed_or_unsigned_type): New.
8409         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
8410
8411 2007-03-30  Richard Henderson  <rth@redhat.com>
8412
8413         * tree-ssa-loop-ivopts.c: Include target.h.
8414         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
8415         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
8416         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
8417         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
8418
8419 2007-03-30  Richard Henderson  <rth@redhat.com>
8420             Kai Tietz  <kai.tietz@onevision.com>
8421
8422         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
8423         default for 64-bit.
8424         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
8425         (TARGET_64BIT_MS_ABI): New.
8426         (DBX_REGISTER_NUMBER): Handle 64-bit.
8427         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
8428         (LONG_TYPE_SIZE): Force to 32.
8429         (REG_PARM_STACK_SPACE): New.
8430         (OUTGOING_REG_PARM_STACK_SPACE): New.
8431         (REGPARM_MAX, SSE_REGPARM_MAX): New.
8432         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
8433         (STACK_BOUNDARY): Use 128 for 64-bit.
8434         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
8435         Add 64-bit implementation.
8436         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
8437         argument unused.
8438         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
8439         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
8440         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
8441         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
8442         (ix86_handle_cconv_attribute): Don't warn when ignoring if
8443         TARGET_64BIT_MS_ABI.
8444         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
8445         (ix86_pass_by_reference): Likewise.
8446         (ix86_function_value_regno_p): Likewise.
8447         (ix86_build_builtin_va_list): Likewise.
8448         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
8449         (function_arg_advance_ms_64): New.
8450         (function_arg_advance): Call it.
8451         (function_arg_ms_64): New.
8452         (function_arg): Call it.
8453         (function_value_ms_64): New.
8454         (ix86_function_value_1): Call it.
8455         (return_in_memory_ms_64): New.
8456         (ix86_return_in_memory): Call it.
8457         (setup_incoming_varargs_ms_64): New.
8458         (ix86_setup_incoming_varargs): Call it.
8459         (ix86_expand_prologue): Handle 64-bit stack probing.
8460         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
8461         (output_pic_addr_const): Likewise.
8462         (x86_this_parameter): Likewise.
8463         (x86_output_mi_thunk): Likewise.
8464         (x86_function_profiler): Likewise.
8465         (TARGET_STRICT_ARGUMENT_NAMING): New.
8466         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
8467         (TARGET_64BIT_MS_ABI): New.
8468         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
8469         * config/i386/i386.md (allocate_stack_worker): Remove.
8470         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
8471         describe the clobber of eax without a match_scratch.
8472         (allocate_stack_worker_postreload): Remove.
8473         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
8474         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
8475         (allocate_stack_worker_rex64_postreload): Remove.
8476         (allocate_stack): Handle 64-bit.
8477         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
8478         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
8479         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
8480         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
8481         (STANDARD_STARTFILE_PREFIX_1): Likewise.
8482         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
8483         * config.build (x86_64-*-mingw*): New host.
8484         * config.host (x86_64-*-mingw*): New host.
8485         * config.gcc (x86_64-*-mingw*): New target.
8486         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
8487
8488 2007-03-30  Richard Henderson  <rth@redhat.com>
8489             Kai Tietz  <kai.tietz@onevision.com>
8490
8491         * c-pragma.c (struct def_pragma_macro_value): New.
8492         (struct def_pragma_macro): New.
8493         (pushed_macro_table): New.
8494         (dpm_hash, dpm_eq): New.
8495         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
8496         (init_pragma): Install them.
8497         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
8498
8499 2007-03-30  Anatoly Sokolov <aesok@post.ru>
8500
8501         * config/avr/avr.c (avr_override_options): Clear
8502         'flag_delete_null_pointer_checks'.
8503
8504 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
8505
8506         PR c++/26099
8507         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
8508         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
8509         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
8510         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
8511         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
8512         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
8513         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
8514         C++ extensions.
8515         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
8516
8517 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
8518
8519         * regmove.c: Move all of pass_stack_adjustments from here...
8520         * combine-stack-adj.c: ...to this new file.
8521         * Makefile.in: Add rules for combine-stack-adj.o.
8522
8523 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
8524
8525         PR tree-optimization/31383
8526         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
8527         to have the same length.
8528
8529 2007-03-30  Jan Hubicka  <jh@suse.cz>
8530
8531         PR middle-end/30700
8532         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
8533         availablility; add more sanity checking; ask varpool only about
8534         VAR_DECL.
8535
8536 2007-03-29  Richard Henderson  <rth@redhat.com>
8537
8538         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
8539         to decide, but __SIZEOF_LONG_LONG__.
8540
8541 2007-03-29  Richard Henderson  <rth@redhat.com>
8542
8543         * emutls.c (struct __emutls_array): New.
8544         (emutls_destroy): Use it instead of casting element 0 from void*.
8545         (__emutls_get_address): Likewise.
8546
8547 2007-03-29  Richard Henderson  <rth@redhat.com>
8548
8549         * varasm.c (initializer_constant_valid_p): Don't deny
8550         DECL_DLLIMPORT_P on functions.
8551
8552         * config/i386/cygming.h: Remove function declarations.
8553         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
8554         (ASM_OUTPUT_LABELREF): Remove.
8555         (COMMON_ASM_OP): Remove.
8556         (ASM_OUTPUT_COMMON): Remove.
8557         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8558         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
8559         (ASM_DECLARE_FUNCTION_NAME): Likewise.
8560         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
8561         Rename from TARGET_ENCODE_SECTION_INFO.
8562         * config/i386/netware.h: Likewise.
8563         * config/i386/i386-protos.h: Update.
8564         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
8565         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
8566         (legitimate_constant_p): Reject dllimports.
8567         (dllimport_map, get_dllimport_decl): New.
8568         (legitimize_dllimport_symbol): New.
8569         (legitimize_address, ix86_expand_move): Use it.
8570         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
8571         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
8572         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
8573         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
8574         * config/i386/predicates.md (constant_call_address_operand): Only
8575         accept symbols; reject dllimport_p symbols.
8576         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
8577         i386_pe_maybe_record_exported_symbol.
8578         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
8579         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
8580         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
8581         trust the setting of DECL_DLLIMPORT_P.
8582         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
8583         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
8584         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
8585         tidy the argument scanning loop.
8586         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
8587         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
8588         (i386_pe_strip_name_encoding): Remove.
8589         (i386_pe_binds_local_p): New.
8590         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
8591         (i386_pe_output_labelref): Remove.
8592         (i386_pe_asm_output_aligned_decl_common): New.
8593         (i386_pe_maybe_record_exported_symbol): Rename from
8594         i386_pe_record_exported_symbol; check for dllexported symbols.
8595
8596 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
8597
8598         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
8599         add comment explaining why vsnprintf cannot be used.
8600
8601 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
8602
8603         PR tree-optimization/30666
8604         * tree.c (build_complex_type): When creating type names for DWARF2
8605         debug info, create TYPE_DECLs for TYPE_NAME instead of
8606         IDENTIFIER_NODEs.
8607         (build_common_tree_nodes_2): Use build_complex_type when building
8608         predefined complex types, to preserve canonical types.
8609
8610 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
8611
8612         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
8613         (noce_get_alt_condition): Look at it to determine whether to
8614         reverse the condition or not.
8615         (noce_get_condition): Substitute the truth for lies.
8616         (noce_find_if_block): Set the then_else_reversed field.
8617
8618 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
8619
8620         * config/fr30/fr30.md (movdi): Do not accept immediates as the
8621         destination of this insn.
8622         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
8623         than calling gen_rtx_SET directly.  Use r0 to hold the value of
8624         'address + 4' rather than a stack based temporary which can be
8625         mis-optimized away.
8626
8627 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
8628
8629         * config/s390/s390.c (s390_secondary_input_reload_class,
8630         s390_secondary_output_reload_class): Functions removed.
8631         (s390_secondary_reload): New function.
8632         (TARGET_SECONDARY_RELOAD): Target macro defined.
8633         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
8634         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
8635         * config/s390/s390.md ("reload_outti", "reload_outdi",
8636         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
8637         "reload_out<mode>"): Expanders removed.
8638         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
8639         "reload<mode>_nonoffmem_out"): Expanders added.
8640
8641 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
8642
8643         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
8644         SRC->DEST replacement failed anyway.
8645
8646 2007-03-28  Mike Stump  <mrs@apple.com>
8647
8648         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
8649         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
8650         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
8651
8652 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8653
8654         * config.gcc: Accept barcelona as a variant of amdfam10.
8655         * config/i386/i386.c (override_options): Likewise.
8656         * doc/invoke.texi: Likewise.
8657
8658 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8659
8660         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
8661         offsets for BIT_FIELD_REF and COMPONENT_REF.
8662
8663 2007-03-28  Richard Guenther  <rguenther@suse.de>
8664
8665         * tree.c (is_global_var): Move ...
8666         * tree-flow-inline.h (is_global_var): ... here.
8667         * tree.h (is_global_var): Remove declaration.
8668
8669 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
8670
8671         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
8672         option.
8673         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
8674         * config/i386/i386.c (ix86_tune_features): Initialize new
8675         tuning option.
8676         * config/i386/predicates.md (promotable_binary_operator): Use
8677         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
8678
8679 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
8680
8681         PR target/31380
8682         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
8683
8684 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
8685
8686         * config/fr30/fr30.md (movsi_internal): Change destination
8687         constraint from m to V and add m to the end.
8688
8689 2007-03-28  Christian Bruel  <christian.bruel@st.com>
8690
8691         * config/sh/sh.md (movsi_i): Fix type attribute.
8692
8693 2007-03-28  Christian Bruel  <christian.bruel@st.com>
8694
8695         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
8696         (movsf_ie): Likewise.
8697
8698 2007-03-28  Christian Bruel  <christian.bruel@st.com>
8699
8700         * config.gcc: Add sh4-300 to multilib.
8701         * config/sh/t-mlib-sh4-300: New file.
8702
8703 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8704
8705         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
8706         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
8707         fix_trunc<mode>di2.
8708         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
8709         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
8710         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
8711         "fixuns_trunctddi2"): Whitespace fix.
8712
8713 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8714
8715         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
8716         the definition of struct sh_args.
8717         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
8718         CALL_COOKIE_INT_REG_GET): Likewise.
8719
8720 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8721
8722         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
8723         transformations are applied successfully.
8724
8725 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
8726
8727         * tree.c (tree_contains_struct): Permit 512 tree codes.
8728         * tree.h (tree_contains_struct): Ditto.
8729         (MAX_TREE_CODES): Ditto.
8730         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
8731         SPARE member to store remaining padding bits.
8732
8733 2007-03-27  Anatoly Sokolov <aesok@post.ru>
8734
8735         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
8736         architecture.
8737
8738 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
8739
8740         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
8741         * configure: Regenerate.
8742
8743         * configure: Regenerate using the correct version of autoconf.
8744
8745 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
8746
8747         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
8748         pointer regs.
8749         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
8750         regs to "__SP_L__" and "__SP_H__".
8751
8752 2007-03-27  Richard Guenther  <rguenther@suse.de>
8753
8754         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
8755         computations with it with a HOST_WIDE_INT variable.
8756
8757 2007-03-26  Mike Stump  <mrs@apple.com>
8758
8759         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
8760         objective-c-header, objective-c++-header and objc++-cpp-output
8761         support.
8762         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
8763
8764 2007-03-26  Richard Henderson  <rth@redhat.com>
8765
8766         PR target/31361
8767         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
8768         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
8769         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
8770         IX86_BUILTIN_PSRLQ128): New.
8771         (ix86_init_mmx_sse_builtins): Add them.
8772         (ix86_expand_builtin): Expand them.
8773         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
8774         operand 2 be TImode.
8775         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
8776         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8777         _mm_srli_epi64): Mark __B const.
8778         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
8779         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
8780         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
8781         new two-vector shift builtins.
8782
8783 2007-03-26  Ian Lance Taylor  <iant@google.com>
8784
8785         PR tree-optimization/31345
8786         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
8787         [+INF, +INF(OVF)] into VARYING.
8788
8789 2007-03-26  Zack Weinberg  <zackw@panix.com>
8790
8791         * gengtype-parse.c: New file.
8792         * gengtype-yacc.y: Delete.
8793         * gengtype-lex.l: Don't include gengtype-yacc.h.
8794         Define YY_DECL and yyterminate appropriately for recursive
8795         descent parser.  yylval is now a string out-parameter to yylex.
8796         (HWS, EOID): New shorthand.
8797         (IWORD): Add a couple more types.
8798         (yylex): Add a setup stanza.  Remove the complex rules for
8799         detecting GTY'ed types and typedefs; replace with simple
8800         keyword detectors.  Adjust everything for the changed
8801         definition of yylval.  Ignore all pp-directives, not just #define.
8802         (yyerror): Delete.
8803         (parse_file): Rename yybegin; do not call yyparse.
8804         (yyend): New.
8805         * gengtype.c (xasprintf): Export again.
8806         (this_file): New.  Use everywhere __FILE__ was being used.
8807         (get_lang_bitmap): Special case types defined in gengtype.c.
8808         (do_typedef, new_structure): Suppress definition of certain types.
8809         (new_structure): Improve diagnostics of duplicate definitions.
8810         Make sure location_s is associated with input.h.
8811         (nreverse_pairs, define_location_structures): New functions.
8812         (main): Improve tagging of kludge types.  Remove old kludges
8813         for input.h types; use define_location_structures.
8814         * gengtype.h: Update prototypes.  Define token codes here.
8815         * Makefile.in: Remove all references to gengtype-yacc.
8816         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
8817         and gengtype.
8818         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
8819         add GTY((skip)) to the field that's only conditionally there.
8820         * doc/install.texi: Document that Bison is no longer required
8821         unless building treelang.
8822
8823         * gengtype.c: Don't include gtyp-gen.h.
8824         (srcdir): Declare here.
8825         (base_files, lang_dir_names): Allocate dynamically.
8826         (gt_files, num_gt_files, num_lang_dirs): New globals.
8827         (measure_input_list, read_input_line, read_input_list)
8828         (set_lang_bitmap): New functions.
8829         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
8830         simplify, relying on read_input_list to set up the bitmaps.
8831         (main): Arguments are no longer unused.  Check for correct number
8832         of command line arguments, set srcdir and srcdir_len, then call
8833         read_input_list, before doing anything else.  No need to worry
8834         about duplicates in main loop.
8835         * configure.ac: Simplify the calculation of all_gtfiles.
8836         Put language tags in there.  Don't set or substitute
8837         all_gtfiles_files_langs or all_gtfiles_files_frags.
8838         * Makefile.in: Revamp the way gengtype is invoked, now that it
8839         takes a file on its command line with a much simpler format.
8840         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
8841         (GTFILES): Remove duplicates and C source files.
8842         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
8843         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
8844         * configure: Regenerate.
8845
8846         * gengtype.h: Remove all type definitions to gengtype.c; leave
8847         only definitions of options_p, type_p, and pair_p as opaque
8848         pointers.  Update prototypes.
8849         * gengtype.c: Many type definitions moved here from gengtype.h.
8850         Consolidate type definitions at the top of the file.
8851         (xvasprintf): Delete.
8852         (xasprintf): Make static.
8853         (create_nested_pointer_option): Add 'next' parameter.
8854         (create_field_all, create_field_at): New functions.
8855         (create_field): Now a thin wrapper around create_field_all.
8856         (create_optional_field): Rename create_optional_field_ and add
8857         line argument.  Original name is now a macro which supplies
8858         __LINE__.
8859         (oprintf): Use vsnprintf directly.
8860         (close_output_files): Use fatal rather than perror/exit.
8861         (note_def_vec, note_def_vec_alloc): Use create_field_at.
8862         (main): Set progname.  Don't use exit.
8863         * gengtype-yacc.y (struct_fields): Use create_field_at.
8864         (option, optionseqopt): Delete.
8865         (optionseq): Consolidate productions from option here so we
8866         can use the first argument to create_option.
8867
8868         * gengtype-lex.l: Distinguish unions from structures in the
8869         token type.  Don't call find_structure; return the tag as a string.
8870         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
8871         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
8872         Reorganize typedef_struct production accordingly.
8873         Use create_nested_ptr_option.
8874         * gengtype.c (create_nested_ptr_option): New function.
8875         * gengtype.h: Declare it.
8876
8877         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
8878         (string_type): Don't declare.
8879         (do_scalar_typedef): Declare.
8880         (create_scalar_type): Update prototype.
8881         * gengtype.c (string_type): Make static.
8882         (scalar_nonchar, scalar_char): New.
8883         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
8884         (resolve_typedef): Use scalar_nonchar for error recovery.
8885         (create_scalar_type): Remove name_len field.  Return scalar_char
8886         or scalar_nonchar as appropriate.
8887         (adjust_field_type): Look at scalar_is_char boolean to decide whether
8888         to use string_type.
8889         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
8890         whenever possible.
8891         (main): Initialize scalar_char and scalar_nonchar before calling
8892         gen_rtx_next.
8893         * gengtype-lex.l: Adjust for removal of second argument to
8894         create_scalar_type.  Use yylval.s instead of yylval.t when
8895         returning SCALAR.
8896         * gengtype-yacc.y: Type of SCALAR is string.  Call
8897         create_scalar_type from type:SCALAR rule.  Adjust for removal of
8898         second argument to create_scalar_type.
8899
8900         * vec.h: Remove all #if IN_GENGTYPE blocks.
8901         Add comment saying that changes may require adjustments to gengtype.
8902         * gengtype.c: Don't include coretypes.h or tm.h.
8903         Add comment to inclusion of errors.h.
8904         (note_def_vec, note_def_vec_alloc): New functions.
8905         * gengtype.h: Declare new functions.
8906         * gengtype-lex.l: Don't include coretypes.h.
8907         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
8908         Delete.
8909         (update_lineno): Remove unnecessary prototype.
8910         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
8911         (VEC rule): Just return VEC_TOKEN.
8912         * gengtype-yacc.y (VEC_TOKEN): New token type.
8913         (type): Add a production for VEC(a,b).
8914         * Makefile.in: Update dependencies.
8915
8916         * gengtype-lex.l: Remove rules for parsing pointer-to-function
8917         typedefs that use the old PARAMS macro.
8918
8919         * gengtype-lex.l: Remove all rules and states relating to yacc
8920         input files.
8921         * gengtype-yacc.y: Similarly.
8922         * gengtype.c (note_yacc_type): Delete function.
8923         * gengtype.h: Update prototypes.
8924
8925 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
8926
8927         * tree-pretty-print.c (dump_generic_node): Report precision of
8928         unnamed integer types.
8929
8930 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
8931
8932         * ifcvt.c (noce_try_store_flag_constants): Don't check
8933         no_new_pseudos here.
8934         (noce_try_store_flag_constants): Don't check no_new_pseudos.
8935         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
8936         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
8937         noce_try_sign_mask): Likewise.
8938         (if_convert): Check no_new_pseudos here.
8939
8940         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
8941         Remove prototypes.
8942         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
8943         (noce_get_condition): Handle new then_else_reversed argument.
8944         (noce_init_if_info): Remove, fold into noce_find_if_block.
8945         (noce_process_if_block): Take a struct noce_if_info as the
8946         argument.  Don't set up one based on ce_if_info.  Update pointer
8947         references accordingly.
8948         (cond_move_process_if_block): Likewise.
8949         (process_if_block): Removed.
8950         (find_if_block): Removed.  Move functionality two new functions,
8951         noce_find_if_block and cond_exec_find_if_block.
8952         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
8953         blocks and the symmetric IF-ELSE-JOIN case.
8954         (cond_exec_find_if_block): Also new function mostly based on old
8955         find_if_block and process_if_block.
8956         (find_if_header): Replace find_if_block call with separately
8957         guarded calls to noce_find_if_block and cond_exec_find_if_block.
8958         (find_cond_trap): Update noce_get_condition call.
8959         (dead_or_predicable): Likewise.
8960
8961 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8962
8963         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
8964         Remove.
8965         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
8966         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
8967         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
8968         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
8969         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
8970         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
8971         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
8972         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
8973         __builtin_ia32_psrad128 builtins.
8974
8975 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
8976
8977         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
8978         * config/i386/constraints.md
8979         (define_constraint "I"): Use IN_RANGE macro.
8980         (define_constraint "J"): Ditto.
8981         (define_constraint "K"): Ditto.
8982         (define_constraint "M"): Ditto.
8983         (define_constraint "N"): Ditto.
8984         (define_constraint "O"): Ditto.
8985         * config/i386/predicates.md
8986         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
8987         (define_predicate "const_0_to_3_operand"): Ditto.
8988         (define_predicate "const_0_to_7_operand"): Ditto.
8989         (define_predicate "const_0_to_15_operand"): Ditto.
8990         (define_predicate "const_0_to_63_operand"): Ditto.
8991         (define_predicate "const_0_to_255_operand"): Ditto.
8992         (define_predicate "const_1_to_31_operand"): Ditto.
8993         (define_predicate "const_2_to_3_operand"): Ditto.
8994         (define_predicate "const_4_to_7_operand"): Ditto.
8995
8996 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
8997
8998         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
8999         in SImode for save_world.
9000         * config/rs6000/altivec.md (save_world, restore_world): Convert to
9001         LR hard reg.
9002
9003 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
9004
9005         PR tree-optimization/30784
9006         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
9007         BIT_FIELD_REF.
9008
9009 2007-03-25  Revital Eres  <eres@il.ibm.com>
9010
9011         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
9012           Fold movement_possibility function into it.
9013
9014 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
9015
9016         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
9017         (load_macho_picbase_{si,di}): Convert to LR hard reg.
9018         (call_indirect_nonlocal_darwin64): Same.
9019         (call_nonlocal_darwin64): Same.
9020         (call_value_indirect_nonlocal_darwin64): Same.
9021         (call_value_nonlocal_darwin64): Same.
9022         (sibcall_nonlocal_darwin64): Same.
9023         (sibcall_value_nonlocal_darwin64): Same.
9024         (sibcall_symbolic_64): Same.
9025         (sibcall_value_symbolic_64): Same.
9026         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
9027         LR pseudo.
9028         (rs6000_emit_load_toc_table): Same.
9029         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
9030         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
9031         (mull_call): Same.
9032         (divss_call): Same.
9033         (divus_call): Same.
9034         (quoss_call): Same.
9035         (quous_call): Same.
9036         (load_toc_v4_pic_si): Same
9037         (load_toc_v4_PIC_1): Same.
9038         (load_toc_v4_PIC_1b): Same.
9039         (call_indirect_aix{32,64}): Same.
9040         (call_value_indirect_aix{32,64}): Same.
9041         (call): Same.
9042         (call_value): Same.
9043         (call_local{32,64}): Same.
9044         (call_value_local{32,64}): Same.
9045         (call_indirect_nonlocal_aix{32,64}): Same.
9046         (call_nonlocal_aix{32,64}): Same.
9047         (call_value_indirect_nonlocal_aix{32,64}): Same.
9048         (call_value_nonlocal_aix{32,64}): Same.
9049         (call_indirect_nonlocal_sysv<mode>): Same.
9050         (call_nonlocal_sysv<mode>): Same.
9051         (call_value_indirect_nonlocal_sysv<mode>): Same.
9052         (call_value_nonlocal_sysv<mode>): Same.
9053         (sibcall): Same.
9054         (sibcall_local{32,64}): Same.
9055         (sibcall_value_local{32,64}): Same.
9056         (sibcall_nonlocal_aix{32,64}): Same.
9057         (sibcall_value_nonlocal_aix{32,64}): Same.
9058         (sibcall_nonlocal_sysv<mode>): Same.
9059         (sibcall_value): Same.
9060         (sibcall_value_nonlocal_sysv<mode>): Same.
9061
9062 2007-03-24  Paul Brook  <paul@codesourcery.com>
9063
9064         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
9065         * config/arm/linux-eabi.h: Remove legacy syscall hack.
9066
9067 2007-03-24  Richard Henderson  <rth@redhat.com>
9068
9069         * config/ia64/constraints.md: New file.
9070         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
9071         satisfies_constraint_?.
9072         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
9073         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
9074         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
9075         ia64_output_mi_thunk): Likewise.
9076         (ia64_const_ok_for_letter_p): Remove.
9077         (ia64_const_double_ok_for_letter_p): Remove.
9078         (ia64_extra_constraint): Remove.
9079         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
9080         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
9081         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
9082         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
9083         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
9084         EXTRA_MEMORY_CONSTRAINT): Remove.
9085         * config/ia64/ia64.md: Include constriants.md.  Replace
9086         CONST_OK_FOR_? with satisfies_constraint_?.
9087
9088 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
9089             H.J. Lu  <hongjiu.lu@intel.com>
9090
9091         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
9092         DPD or BID name.
9093         (name macros): Use DPD_BID_NAME to convert names properly.
9094
9095         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
9096         decimal floating point format.
9097         (init_floating_libfuncs): Change decimal functions so that they
9098         have a "bid_" prefix if the decimal system uses the BID format,
9099         and "dpd_" prefix if the decimal system uses the DPD format.
9100         (init_interclass_conv_libfuncs): Ditto.
9101         (init_intraclass_conv_libfuncs): Ditto.
9102
9103         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
9104         using the BID format.
9105
9106         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
9107         whether we are using the BID decimal format.
9108         * configure: Regenerate.
9109
9110         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
9111         the compiler has decimal floating point enabled.  Define
9112         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
9113         instead of DPD.
9114
9115         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
9116         using the BID format.
9117
9118         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
9119         whether we are using the BID decimal format.
9120         * configure: Regenerate.
9121
9122         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
9123         the compiler has decimal floating point enabled.  Define
9124         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
9125         instead of DPD.
9126
9127         * doc/install.texi (--enable-decimal-float): Document BID and DPD
9128         options, and that it is enabled for i386/x86_64 systems.
9129
9130         * Makefile.in (enable_decimal_float): New.
9131         (DECNUMFMT): New.
9132         (DECNUMINC): Add  -I$(DECNUMFMT).
9133         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
9134         to $(DECNUMFMT) from $(DECNUM).
9135
9136         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
9137         Substitute enable_decimal_float.
9138         * configure: Regenerated.
9139
9140         PR other/30529
9141         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
9142         unsigned long.
9143
9144         * configure.ac: Enable decimal float for x86_64-*-linux*.
9145         * configure: Regenerated.
9146
9147         PR other/30530
9148         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
9149         decimal128ClearSign to flip and clear the sign bit in decimal128.
9150         (decimal_real_maxval): Set decimal128SetSign to set the sign
9151         bit in decimal128.
9152
9153 2007-03-23  Ian Lance Taylor  <iant@google.com>
9154
9155         * fold-const.c (fold_binary): Correct warning for X - c >= X.
9156
9157 2007-03-23  Ian Lance Taylor  <iant@google.com>
9158
9159         * tree-dump.c (dump_files): Correct comment.
9160
9161 2007-03-23  Ian Lance Taylor  <iant@google.com>
9162
9163         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
9164
9165 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9166
9167         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
9168         in cfglayout mode.  Don't go into and out of cfglayout mode.
9169         Link the blocks in the order of the constructed traces.
9170         (rest_of_handle_tracer): Adjust call to tracer.
9171         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
9172         Don't go into cfglayout mode.
9173         (rtl_loop_done): Don't go out of cfglayout mode.
9174         * cfglayout.c (relink_block_chain): New function, split out from...
9175         (fixup_reorder_chain): ...here.  Remove redundant checking.
9176         (cfg_layout_finalize): Don't clear the header, footer, and aux
9177         fields here, move the code to do so to relink_block_chain.  Likewise
9178         for free_original_copy_tables.
9179         * rtl.h (tracer): Update prototype.
9180         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
9181         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
9182         mode.  Use relink_block_chain to serialize the CFG according to the
9183         new basic block order.  Move targetm.cannot_modify_jumps_p check from
9184         here...
9185         (gate_handle_reorder_blocks): ...to here.
9186         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
9187         from here...
9188         (gate_duplicate_computed_gotos): ...to here.
9189         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
9190         something always changes when going into and out of cfglayout mode.
9191         Perform an expensive cfg cleanup while going into cfglayout mode.
9192         Always update liveness information on HAVE_conditional_execution
9193         targets.  Reserialize the basic blocks and go out of cfglayout mode.
9194         * reg-stack.c: Include cfglayout.h.
9195         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
9196         the call to reorder_basic_blocks.
9197         * basic-block.h (reorder_basic_blocks): Update prototype.
9198         (relink_block_chain): New prototype.
9199         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
9200
9201 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
9202
9203         * config/mips/mips.md (type, hazard, *movdi_32bit,
9204         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
9205         *movhi_internal, *movqi_internal, *movsf_hardfloat,
9206         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
9207         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
9208         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
9209         applicable.
9210         (movcc): Change first xfer to multi.
9211         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
9212         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
9213         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
9214         config/mips/generic.md: Change reservations using "xfer" to use
9215         "mfc,mtc".
9216         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
9217         using match_operand.
9218         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
9219         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
9220         examining mode.
9221         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
9222
9223 2007-03-22  Richard Henderson  <rth@redhat.com>
9224
9225         * config/i386/i386.c: Remove unnecessary function declarations.
9226         Move targetm definition, and all related macros, to the end of
9227         the file.  Resort some functions to put definitions before uses.
9228         (ix86_attribute_table): Make static.  Move to end of file.
9229         (ix86_gimplify_va_arg): Make static.
9230
9231 2007-03-22  Richard Henderson  <rth@redhat.com>
9232
9233         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
9234         don't increase local_regparm with force_align_arg_pointer check.
9235         (ix86_function_sseregparm): Assert 32-bit.
9236         (type_has_variadic_args_p): New.
9237         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
9238         type_has_variadic_args_p.
9239         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
9240         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
9241         use memset instead.  Do maybe_vaarg check first; skip attribute
9242         tests if true; skip attribute tests for 64-bit.
9243         (construct_container): Remove TARGET_DEBUG_ARG.
9244         (function_arg_advance_32, function_arg_advance_64): Split out ...
9245         (function_arg_advance): ... from here.
9246         (function_arg_32, function_arg_64): Split out ...
9247         (function_arg): ... from here.
9248         (ix86_pass_by_reference): Tidy.
9249         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
9250         (function_value_32): New, from parts of ix86_function_value
9251         and ix86_value_regno.
9252         (function_value_64): New, from parts of ix86_function_value
9253         and ix86_libcall_value.
9254         (ix86_function_value_1): New.
9255         (ix86_function_value, ix86_libcall_value): Use it.
9256         (return_in_memory_32, return_in_memory_64): Split out ...
9257         (ix86_return_in_memory): ... from here.
9258         (ix86_struct_value_rtx): Skip for 64-bit.
9259         (ix86_libcall_value, ix86_value_regno): Remove.
9260         (setup_incoming_varargs_64): Split out ...
9261         (ix86_setup_incoming_varargs): ... from here.
9262         (ix86_va_start): Remove TARGET_DEBUG_ARG.
9263         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
9264         * config/i386/i386-protos.h (ix86_function_value): Remove.
9265         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
9266
9267 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9268
9269         PR other/23572
9270         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
9271         infinities not supported, otherwise emit warning if -Woverflow. On
9272         underflow, emit warning if -Woverflow.
9273         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
9274         and 0 otherwise.
9275         * real.h (real_from_string): Update declaration
9276
9277 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
9278             Richard Henderson  <rth@redhat.com>
9279
9280         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
9281         * calls.c (compute_argument_block_size, expand_call,
9282         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
9283         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9284         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
9285         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
9286         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
9287         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
9288         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
9289         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
9290         Set to 1.
9291
9292 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
9293
9294         * c-incpath.c (add_sysroot_to_chain): New.
9295         (merge_include_chains): Add sysroot argument.  Call
9296         add_sysroot_to_chain if sysrooted.
9297         (register_include_chains): Update call to merge_include_chains.
9298         * doc/cppopts.texi: Document use of '=' in include directory
9299         arguments.
9300
9301 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
9302
9303         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
9304         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
9305         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
9306         insn pattern using X87MODEF12 mode macro.
9307
9308 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
9309
9310         * regmove.c (regmove_optimize): Use reg_mentioned_p
9311         instead of reg_overlap_mentioned_p for DST.
9312
9313 2007-03-21  Mike Stump  <mrs@apple.com>
9314
9315         * c.opt: Fixup for Objective-C/C++.
9316
9317 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
9318
9319         * explow.c (convert_memory_address): Fold memory reference when
9320         POINTERS_EXTEND_UNSIGNED < 0
9321
9322 2007-03-21  Richard Henderson  <rth@redhat.com>
9323
9324         PR target/31245
9325         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
9326         * config/i386/mmintrin.h (__m64): Likewise.
9327         * config/i386/xmmintrin.h (__m128): Likewise.
9328
9329 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
9330
9331         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
9332         (VXWORKS_OS_CPP_BUILTINS): Define.
9333         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
9334         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
9335
9336 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
9337
9338         * rtl.h (constant_pool_reference_p): Delete.
9339         (find_constant_src): Declare.
9340         * rtlanal.c (find_constant_src): New function.
9341         * simplify-rtx.c (constant_pool_reference_p): Delete.
9342         * config/i386/i386.md: Use find_constant_src instead of
9343         constant_pool_reference_p/avoid_constant_pool_reference pairs.
9344
9345 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
9346
9347         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
9348         * c-cppbuiltin.c (c_cpp_builtins): Define them.
9349
9350 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
9351
9352         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
9353         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
9354         (arm_elf_asm_constructor): Use it.
9355         (arm_elf_asm_destructor): New function.
9356
9357 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
9358
9359         * jump.c (mark_jump_label): Treat SEQUENCE specially.
9360
9361 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
9362
9363         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
9364
9365 2007-03-19  Andrew Haley  <aph@redhat.com>
9366
9367         PR tree-optimization/31264
9368         * tree-vrp.c (register_edge_assert_for_1): Don't look though
9369         VIEW_CONVERT_EXPRs.
9370
9371 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
9372
9373         PR rtl-optimization/30907
9374         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
9375         (fwprop_init): Always call loop_optimizer_initialize.
9376         (fwprop_done): Always call loop_optimizer_finalize.
9377         (fwprop): We always have loop info now.
9378         (gate_fwprop_addr): Remove.
9379         (pass_fwprop_addr): Use gate_fwprop as gate.
9380
9381         PR rtl-optimization/30841
9382         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
9383         df_chain_alloc): Call df_reorganize_refs unconditionally.
9384         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
9385         refs_organized to refs_organized_size.
9386         (df_ref_create_structure): Use refs_organized_size instead of
9387         bitmap_size if refs had been organized, and keep refs_organized_size
9388         up-to-date.
9389         * df.h (struct df_ref_info): Change refs_organized to
9390         refs_organized_size.
9391         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
9392         bitmap_size.
9393
9394 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
9395
9396         * except.c (output_function_exception_table): Do not reference the
9397         EH personality routine for functions that do not require an
9398         exception table.
9399
9400 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9401
9402         PR c/30762
9403         * c-typeck.c (convert_for_assignment): Call comptypes for
9404         RECORD_TYPE or UNION_TYPE.
9405
9406         PR inline-asm/30505
9407         * reload1.c (reload): Do invalid ASM checking after
9408         cleanup_subreg_operands.
9409
9410 2007-03-19  Jeff Law  <law@redhat.com>
9411
9412         * tree-cfg.c (find_taken_edge): Tighten conditions for
9413         optimizing computed gotos.
9414
9415 2007-03-19  Michael Matz  <matz@suse.de>
9416
9417         * builtins.c (expand_builtin_sync_operation,
9418         expand_builtin_compare_and_swap,
9419         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
9420         correctly.
9421
9422         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
9423         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
9424         for operand 3.
9425
9426 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9427
9428         * doc/tm.texi: Add brackets around the return type of
9429         TARGET_SECONDARY_RELOAD.
9430
9431 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9432         Richard Guenther  <rguenther@suse.de>
9433
9434         PR tree-optimization/31254
9435         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9436         Use handled_component_p () where appropriate.  Continue
9437         propagating into the rhs if we propagated into an INDIRECT_REF
9438         on the lhs.
9439
9440 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9441
9442         * config/s390/s390.md (op_type attribute): RRR instruction type added.
9443         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
9444         (xde, xdee): Mode attributes adjusted to support DFP modes.
9445         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
9446         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
9447         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
9448         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
9449         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
9450         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
9451         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
9452         numbers.
9453         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
9454         "movsf"): Insn definitions removed.
9455         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
9456         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
9457         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
9458         definitions added.
9459         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
9460         "reload_in<mode>", "reload_out<mode>"): Expander added.
9461         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
9462         Expander removed.
9463
9464 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9465
9466         * config/s390/s390.md: Only non-functional changes.  Renamed
9467         FPR mode macro to BFP all over the file.
9468
9469 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9470
9471         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
9472         (op_type attribute): RRF instruction type added.
9473         (fT0): New mode attribute.
9474         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
9475         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
9476         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
9477         no secondary memory is needed when moving DFmode values between GPRs
9478         and FPRs.
9479
9480 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9481
9482         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
9483         inverted and documentation adjusted.
9484         ("mhard-dfp", "msoft-dfp"): New options.
9485         * config/s390/s390.c (s390_handle_arch_option): New architecture
9486         switch: z9-ec.
9487         (override_options): Sanity checks for the new options added.
9488         * config.gcc: New architecture switch: z9-ec.
9489         * config/s390/s390.h (processor_flags): PF_DFP added.
9490         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
9491         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
9492         when the bit is NOT set so remove it from the defaults.
9493
9494 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
9495
9496         * genemit.c (main): Print include statement for dfp.h.
9497         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
9498         is not available.
9499
9500 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
9501
9502         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
9503
9504 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9505
9506         PR target/31022
9507         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
9508         instead of PATTERN.
9509
9510 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9511
9512         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
9513         attr_length_call, output_call, output_indirect_call): Cleanup
9514         formatting of targetm calls.
9515
9516 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
9517
9518         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
9519
9520 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9521
9522         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
9523         reservation, bypass and anti-bypass descriptions for these instructions.
9524         Update move patterns.
9525         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
9526         TYPE_FPSTORE.
9527
9528 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
9529
9530         * tree-vect-transform.c (get_initial_def_for_induction): Replace
9531         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
9532         (get_initial_def_for_reduction): Likewise.
9533
9534 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
9535
9536         Fix PR tree-optimization/29922
9537         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
9538         (get_representative): Removed.
9539         (value_dies_in_block_x): Update for rvuse removal.
9540         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
9541         (compute_antic_aux): Handle when PHI nodes appear in
9542         non-single-successors.
9543         (dump_bitmap_of_names): Removed.
9544         (compute_antic_safe): Renamed and removed rvuse calculation.
9545         Calculate only antic safe.
9546         (insert_into_preds_of_block): Remove assert.
9547         (execute_pre): Update for renamed functions.
9548         (defer_or_phi_translate_block): New function.
9549
9550 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
9551
9552         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
9553         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
9554         typos.
9555         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
9556         Follow spelling conventions.
9557
9558         * tree-data-ref.h: Remove the prototype for analyze_array.
9559
9560 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
9561
9562         PR tree-optimization/31041
9563         * tree-vect-transform.c (get_initial_def_for_induction): Call
9564         force_gimple_operand.
9565
9566 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
9567
9568         * ipa-type-escape.c (look_for_casts) : Revert code to use
9569         handled_component_p due to ada test a-numaux.adb.
9570
9571 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
9572
9573         * final.c (final_scan_insn): Alter the condition of a
9574         conditional trap if we have nonstandard CC.
9575
9576 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
9577
9578         * configure.ac: Remove excess quoting from asm line 0 test.
9579         * configure: Rebuilt.
9580
9581 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9582
9583         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
9584         * c-common.c (convert_and_check): Move warning logic to...
9585         (warnings_for_convert_and_check): ...here. Define.
9586         * c-common.h (warnings_for_convert_and_check): Declare.
9587
9588 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9589
9590         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
9591         (output_call): Likewise.
9592
9593 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
9594
9595         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
9596
9597 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
9598
9599         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
9600
9601 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
9602
9603         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
9604         opteron, athlon-64 and athlon-fx processor_alias_table entries.
9605
9606 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
9607
9608         PR tree-optimization/31183
9609         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
9610         Use double_int instead of unsigned int for representing access_strides.
9611         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
9612
9613 2007-03-16  Richard Guenther  <rguenther@suse.de>
9614
9615         PR tree-optimization/31146
9616         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
9617         to allow recursion of forward_propagate_addr_expr.
9618         (forward_propagate_addr_into_variable_array_index): Likewise.
9619         (forward_propagate_addr_expr): Likewise.
9620         (tree_ssa_forward_propagate_single_use_vars): Likewise.
9621         (forward_propagate_addr_expr_1): Recurse on simple copies
9622         instead of propagating into them.  Do so for useless conversions
9623         as well.
9624         (forward_propagate_addr_expr): Clean up unused statements after
9625         recursion.
9626
9627 2007-03-16  Richard Guenther  <rguenther@suse.de>
9628
9629         * builtins.c (expand_builtin_cexpi): Use the right argument
9630         for the expansion via cexp.
9631
9632 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
9633
9634         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
9635         * configure: Rebuilt.
9636
9637 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
9638
9639         PR debug/29906
9640         * dwarf2out.c (force_type_die): Adjust comment.
9641         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
9642
9643 2007-03-15  DJ Delorie  <dj@redhat.com>
9644
9645         * config/frv/predicates.md (minmax_operator): Don't check operands
9646         here.
9647
9648 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
9649
9650         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
9651         Update constant estimates of number of iterations.
9652         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
9653         argument renamed to "realistic".
9654         (compute_estimated_nb_iterations): Removed.
9655         (record_niter_bound): New function.
9656         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
9657         call record_nonwrapping_iv with upper = false.
9658         (infer_loop_bounds_from_signedness): Pass upper argument to
9659         record_nonwrapping_iv.
9660         (estimate_numbers_of_iterations_loop): Do not call
9661         compute_estimated_nb_iterations.  Record estimate based on profile
9662         information.  Initialize the constant estimates of number of
9663         iterations.
9664         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
9665         estimates.
9666         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
9667         number of iterations is too small.
9668         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
9669         (EST_NOT_AVAILABLE): Removed.
9670         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
9671         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
9672         fields.
9673
9674 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
9675
9676         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
9677         Handle NE_EXPR guards.
9678
9679 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9680
9681         PR c++/24924
9682         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
9683         Set also -pedantic-errors by default for the  preprocessor unless
9684         -fpermissive is given.
9685
9686 2007-03-15  Richard Guenther  <rguenther@suse.de>
9687
9688         PR middle-end/29719
9689         PR middle-end/31161
9690         * builtins.c (expand_builtin_cexpi): As a fallback if we
9691         don't have builtins for sincos or cexp create a function
9692         declaration for cexp and expand to a call to that.
9693         (expand_builtin_int_roundingfn): Always fall
9694         back to floor/ceil and its variants even if they may be
9695         not available.
9696
9697 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
9698
9699         PR middle-end/31159
9700         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
9701         jump tables, move the call to delete_dead_jumptables from here...
9702         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
9703         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
9704         don't allow merging of blocks that try_redirect_by_replacing_jump
9705         also does not handle when not optimizing.
9706
9707 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
9708             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9709
9710         * config/i386/i386.md (x86_sahf_1): Correctly handle
9711         HAVE_AS_IX86_SAHF.
9712
9713 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
9714
9715         PR target/31167
9716         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
9717         x86_64_general_operand as operand[2] predicate.  Remove "iF"
9718         from operand constraints and use "e" constraint instead.
9719         (*subti3_1, *subti3_1 splitter): Ditto.
9720         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
9721         operand[1] predicate.
9722
9723 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
9724
9725         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
9726         arrays, multiply the access strides by the size of the sub-array.
9727         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
9728
9729 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
9730
9731         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
9732         the configured assembler supports the sahf mnemonic.
9733         * configure: Regenerate.
9734         * config.in: Regenerate.
9735
9736         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
9737         emit "sahf" or ".byte\t0x9e" as asm template.
9738
9739 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
9740
9741         PR 31018
9742         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
9743         option to replace hard coded TARGET_xxx in md file.
9744         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
9745         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
9746         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
9747         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
9748         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
9749         (X86_TUNE_NOT_VECTORMODE): Ditto.
9750         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
9751         (TUNE_AVOID_VECTOR_DECODE): Ditto.
9752         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
9753         (TUNE_SLOW_IMUL_IMM8): Ditto.
9754         (TUNE_MOVE_M1_VIA_OR): Ditto.
9755         (TUNE_NOT_UNPAIRABLE): Ditto.
9756         (TUNE_NOT_VECTORMODE): Ditto.
9757
9758         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
9759         options.
9760
9761         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
9762         tuning options instead of hard coded TARGET_xxx.
9763         (fix ssemode peephole2's): Ditto.
9764         (imul peephole2's): Ditto.
9765         (movsi_or): Ditto.
9766         (movdi_or_rex64): Ditto.
9767         (move peephole2): Ditto.
9768         (not peephole2's): Ditto.
9769
9770 2007-03-14  Dirk Mueller  <dmueller@suse.de>
9771
9772         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
9773         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
9774         * c-parser.c (c_parser_if_body): Always add an empty statement in case
9775         of empty body.
9776         * c-parser.c (c_parser_do_statement): Warn about empty body in
9777         do/while statement.
9778         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
9779         * doc/invoke.texi (-Wempty-body): Update documentation.
9780
9781 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9782
9783         PR c/21438
9784         * c-common.h (warn_for_div_by_zero): Declare.
9785         * c-common.c (warn_for_div_by_zero): Define.
9786         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
9787         warning.
9788
9789 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
9790
9791         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
9792         to PREFIX and STANDARD_PREFIX.
9793
9794 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
9795             Phil Edwards  <phil@codesourcery.com>
9796
9797         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
9798         (__gthread_once_t): Remove busy field for RTPs.
9799         (__GTHREAD_ONCE_INIT): Update accordingly.
9800
9801 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
9802
9803         * doc/invoke.texi: Document VxWorks options.
9804
9805 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
9806
9807         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
9808
9809 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
9810
9811         PR tree-optimization/30590
9812         * tree-nrv.c (tree_nrv): Check for the partial update of the
9813         return value.
9814
9815 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
9816
9817         * flags.h (flag_random_seed): Remove declaration, in favor of...
9818         * toplev.h (get_random_seed, set_random_seed): ... these.
9819         * tree.c (get_file_function_name): Use the former.
9820         * opts.c (common_handle_option): Use the latter.
9821         * toplev.c
9822
9823 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
9824
9825         PR middle-end/31127
9826         * cse.c (cse_find_path): Do not bail out if a basic block that
9827         we already visited now becomes part of a path that starts at a
9828         different basic block.  Just disallow this, to make sure we
9829         visit each basic block at most once.
9830
9831 2007-03-13  Jan Hubicka  <jh@suse.cz>
9832
9833         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
9834         when profile esitmate is present, calls with very low frequency are
9835         cold.
9836
9837 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
9838
9839         PR tree-optimization/30730
9840         PR tree-optimization/26900
9841         * tree-ssa-loop-niter.c: Include gmp.h.
9842         (bounds): New type.
9843         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
9844         split_to_var_and_offset, determine_value_range,
9845         bound_difference_of_offsetted_base, refine_bounds_using_guard,
9846         bound_difference, bounds_add, bounds_negate,
9847         number_of_iterations_ne_max, dump_affine_iv): New functions.
9848         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
9849         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
9850         difference of initial and final value of control iv to validate
9851         results.
9852         (number_of_iterations_cond): Add loop parameter.  Determine bounds
9853         on the difference of the extremes of the control iv.  Add dumps.
9854         (expand_simple_operations): Handle phi nodes.
9855         (simplify_using_initial_conditions): Do not record used conditions.
9856         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
9857         Do not set additional_info.
9858         (implies_nonnegative_p, implies_ge_p): Removed.
9859         (derive_constant_upper_bound): Do not use parameter `additional'.
9860         (record_estimate): Parameter `additional' removed.  Parameter
9861         `i_bound' added.  Do not call derive_constant_upper_bound.
9862         (record_nonwrapping_iv): Use derive_constant_upper_bound to
9863         bound the number of iterations estimate.
9864         (estimate_numbers_of_iterations_loop): Pass the estimate from
9865         the number of iterations analysis to record_estimate.
9866         * tree.h (multiple_of_p): Declare.
9867         * tree-scalar-evolution.c (expression_expensive_p): Removed.
9868         (scev_const_prop): Do not check expression_expensive_p.
9869         * fold-const.c (multiple_of_p): Exported.
9870         * double-int.c (double_int_mask): Exported.
9871         * double-int.h (double_int_mask): Declare.
9872         * tree-flow.h (struct tree_niter_desc): Removed additional_info
9873         field.  Added max field.
9874
9875 2007-03-13  David Taylor  <taylor@candd.org>
9876
9877         PR driver/12448:
9878         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
9879         default -MQ.
9880
9881 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9882
9883         PR target/31123
9884         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
9885         two unamed patterns.
9886
9887 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
9888
9889         * config/i386/i386.opt (mcx16, msahf): New options.
9890         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
9891         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
9892
9893         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
9894         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
9895         Output -mcx16 and -msahf options when corresponding bit is set.
9896
9897         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
9898         and -msahf options.
9899
9900 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
9901
9902         * configure.ac: Test for assembler tolerance to # 0 "".
9903         * configure, config.in: Rebuilt.
9904         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
9905
9906 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
9907
9908         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
9909
9910         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
9911         (handle_syscall): Handle direct system calls.
9912         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
9913
9914 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
9915
9916         * doc/invoke.texi: Fix cpp.info cross-reference.
9917         * doc/passes.texi: Fix gcc.info cross-reference.
9918
9919 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
9920
9921         PR tree-optimization/30835
9922         * lambda-code.c (can_convert_to_perfect_nest): Check whether
9923         bb_for_stmt is not NULL before accessing it.
9924
9925 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
9926
9927         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
9928         some multilibs.
9929
9930 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
9931
9932         PR 30635
9933         * doc/install.texi: Document --enable-stage1-languages
9934
9935 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
9936
9937         * tree-pass.h (pass_into_cfg_layout_mode,
9938         pass_outof_cfg_layout_mode): Declare.
9939         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
9940         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
9941         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
9942         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
9943
9944 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
9945
9946         * c-decl.c (warn_variable_length_array): New function.
9947         Refactored from grokdeclarator to handle warn_vla
9948         and handle unnamed array case.
9949         (grokdeclarator): Refactored VLA warning case.
9950         * c.opt (Wvla): New flag.
9951         * doc/invoke.texi (Wvla): New warning.
9952
9953 2007-03-12  Richard Henderson  <rth@redhat.com>
9954
9955         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
9956         (TARGET_SECTION_TYPE_FLAGS): New.
9957
9958 2007-03-12  Richard Henderson  <rth@redhat.com>
9959
9960         * config/darwin.c (machopic_reloc_rw_mask): New.
9961         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
9962         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
9963
9964 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
9965
9966         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
9967         * cppdefault.h (cpp_PREFIX): Document.
9968         (cpp_PREFIX_len): Likewise.
9969         (cpp_EXEC_PREFIX): New variable.
9970         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
9971         * c-incpath.c (add_standard_paths): Correct logic for relocating
9972         paths within prefix.
9973
9974 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
9975
9976         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
9977         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
9978         mode macro.
9979         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
9980         fix_truncdfdi_sse using SSEMODEF mode macro.
9981         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
9982         fix_truncdfsi_sse using SSEMODEF mode macro.
9983         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
9984         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
9985
9986 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
9987
9988         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
9989         elfos.h to tm_file.
9990
9991 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
9992
9993         * tree.h : Add multiple_of_p declaration.
9994         * fold-const.c (multiple_of_p): Make multiple_of_p public.
9995         * ipa-type-escape.c (results_of_malloc): Redundant.
9996         (visited_stmts): New. Visited stmt for walk_use_def_chains.
9997         (cast_type): Extended with new members.
9998         (check_cast): Returns cast_type.
9999         (cast): New structure for data of walk_use_def_chains.
10000         (is_malloc_result, is_cast_from_non_pointer_1,
10001         is_cast_from_non_pointer,
10002         is_array_access_through_pointer_and_index): New functions.
10003         (look_for_casts): Returns cast types.
10004         (check_call): Returns void.
10005         (okay_pointer_operation): Use support of pointer plus index,
10006         pointer plus constant and allow all multiplications.
10007
10008 2007-03-11  Richard Guenther  <rguenther@suse.de>
10009
10010         PR tree-optimization/31115
10011         * tree-vrp.c (extract_range_from_binary_expr): Make sure
10012         the shift count is positive and non-anti-range for RSHIFT_EXPR.
10013         A shift count of zero is not special as with *_DIV_EXPR.
10014         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
10015         direction.
10016
10017 2007-03-11  Ian Lance Taylor  <iant@google.com>
10018
10019         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
10020         the *_DIV_EXPR codes correctly with overflow infinities.
10021
10022 2007-03-11  Ira Rosen  <irar@il.ibm.com>
10023
10024         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
10025         indicate success/failure of the analysis. Add negation to subtrahend
10026         in case of subtraction. Fail if both operands contain constants.
10027         (create_data_ref): Fail if analyze_offset fails.
10028
10029 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
10030
10031         * config/i386/i386.md (frndintxf2): Rename to ...
10032         (rintxf2): ... this. Remove expander having same name.
10033         (rintsf2, rintdf2): Implement using SSEMODEF macro.
10034         (roundsf2, rounddf2): Ditto.
10035         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
10036         (lround<mode>di2, lround<mode>si2): Ditto.
10037
10038 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
10039
10040         * lower-subreg.c: Include except.h.
10041         (decompose_multiword_subregs): Verify that the only control flow
10042         insns we can split are loads to multi-words pseudos.
10043         Handle breaking such blocks after splitting, instead of calling
10044         find_many_sub_basic_blocks.
10045
10046         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
10047         on the new basic block.  Add a lengthy comment explaining why we
10048         thought this was necessary.
10049         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
10050
10051 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
10052
10053         PR c++/30924
10054         * tree.c (walk_type_fields): Recurse into the element type of
10055         ARRAY_TYPEs if there is a pointer set.
10056
10057 2007-03-10  Dirk Mueller  <dmueller@suse.de>
10058
10059         * c-common.c (warn_logical_operator): Fix condition.
10060
10061 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
10062
10063         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
10064         quotation mark.
10065         * config/darwin.c (machopic_select_section): Remove superfluous
10066         argument in call to categorize_decl_for_section.  Remove unused
10067         variable shlib.
10068
10069 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
10070
10071         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
10072         defined.
10073         * configure: Regenerate.
10074
10075 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
10076
10077         PR target/31101
10078         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
10079         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
10080         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
10081         Add LABEL_NUSES to emitted label.
10082         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
10083         branch probability value to emitted jump insn.
10084         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
10085         Do not check life information and do not re-arrange input operands
10086         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
10087
10088 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10089
10090         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
10091         the change of decode_asm_operands.
10092
10093 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10094
10095         * mode-switching.c (create_pre_exit): Skip blockage insn.
10096
10097 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
10098
10099         * tree-pass.h (TODO_update_smt_usage): Remove.
10100         Update all users.
10101         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10102         argument SOME.
10103         Update all users.
10104
10105 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10106
10107         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
10108         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
10109         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
10110         SOM target.
10111
10112 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
10113
10114         * gcc.c: Document %{, in big comment at top.
10115         (input_suffix_matches): Remove special handling for .s and
10116         .S.
10117         (input_spec_matches): New.
10118         (handle_braces): Handle %{,.
10119         (validate_switches): ',' indicates a value which is not a switch.
10120         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
10121         to detect assembler input.
10122         * config/i386/sol2.h (CPP_SPEC): Likewise.
10123         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
10124         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10125         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
10126         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10127         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
10128         -m64 causes deployment target to default to 10.5.
10129         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
10130
10131 2007-03-09  Richard Henderson  <rth@redhat.com>
10132
10133         PR target/26090
10134         * target.h (targetm.asm.out.reloc_rw_mask): New.
10135         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
10136         (TARGET_ASM_OUT): Use it.
10137         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
10138         * varasm.c (categorize_decl_for_section): Remove shlib argument;
10139         use the new reloc_rw_mask target hook instead.
10140         (default_section_type_flags_1): Merge into...
10141         (default_section_type_flags): ... here.
10142         (decl_readonly_section_1): Merge into...
10143         (decl_readonly_section): ... here.
10144         (default_elf_select_section_1): Merge into...
10145         (default_elf_select_section): ... here.
10146         (default_unique_section_1): Merge into...
10147         (default_unique_section): ... here.
10148         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
10149         (default_select_rtx_section): Use it.
10150         (default_elf_select_rtx_section): Likewise.
10151         * output.h: Update to match.
10152         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
10153         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
10154         (TARGET_ASM_RELOC_RW_MASK): New.
10155         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
10156         to categorize_decl_for_section.
10157         (x86_64_elf_unique_section): Likewise.
10158         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
10159         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
10160         (TARGET_ASM_RELOC_RW_MASK): New.
10161         * config/ia64/ia64.c (ia64_rwreloc_select_section,
10162         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
10163         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
10164         (TARGET_RWRELOC): Remove.
10165         (ia64_section_type_flags): Adjust call to default_section_type_flags.
10166         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
10167         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
10168         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
10169         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
10170         (rs6000_xcoff_select_section): Use decl_readonly_section.
10171         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
10172         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
10173         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
10174         (TARGET_SECTION_TYPE_FLAGS): Remove.
10175         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
10176
10177 2007-03-09  Roger Sayle  <roger@eyesopen.com>
10178
10179         * fold-const.c (fold_comparison): Remove compile-time evaluation of
10180         complex constant equality/inequality comparisons for here.
10181         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
10182         known at compile-time or can be simplified to a scalar comparison.
10183         (fold_relational_const): Move compile-time evaluation of complex
10184         constant equality/inequality comparisons to here.
10185
10186 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10187
10188         PR rtl-optimization/30643
10189         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
10190         dest_addr_elt.
10191         (fold_rtx): Recurse, like before 2006-11-03.
10192
10193 2007-03-09  DJ Delorie  <dj@redhat.com>
10194
10195         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
10196         m32c-pragma.o.
10197
10198 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
10199
10200         PR tree-optimization/30375
10201         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
10202         LHS of statements is not the same.
10203         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
10204
10205 2007-03-09  Chao-ying Fu  <fu@mips.com>
10206
10207         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
10208         REV 2.
10209         * doc/invoke.texi (-mdspr2): Document new option.
10210         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
10211         New unspec for DSP REV 2.
10212         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
10213         these instructions are extended in DSP REV 2.
10214         (mips-dspr2.md): Include.
10215         * config/mips/mips.opt (mdspr2): New option.
10216         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
10217         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
10218         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
10219         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
10220         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
10221         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
10222         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
10223         and 2 builtins.
10224         (bdesc_map): Add one field of unsupported_target_flags.
10225         (bdesc_arrays):  Update entries to have extra fields.  Add
10226         dsp_32only_bdesc.
10227         (mips_init_builtins): Initialize new function types.
10228         Check unsupported_target_fileds to filter out builtins.
10229         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
10230         TARGET_DSPR2.
10231         (ASM_SPEC): Pass mdspr2 to the assembler.
10232         * config/mips/mips-dspr2.md: New file.
10233
10234 2007-03-09  Sa Liu  <saliu@de.ibm.com>
10235
10236         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
10237
10238 2007-03-09  Ian Lance Taylor  <iant@google.com>
10239
10240         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
10241         argument) like -Wstrict-overflow=2.
10242         * doc/invoke.texi (Warning Options): Update documentation.
10243
10244 2007-03-09  Dirk Mueller  <dmueller@suse.de>
10245
10246         PR c++/17946
10247         * doc/invoke.texi (-Wlogical-op): Document.
10248         * common.opt (-Wlogical-op): New.
10249         * c-common.h (warn_logical_operator): Declare.
10250         * c-common.c (warn_logical_operator): Define.
10251         * c-typeck.c (parser_build_binary_op): Call
10252         warn_logical_operator.
10253
10254 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10255
10256         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
10257         * final.c (final_scan_insn): Test for non-"" file name.
10258
10259 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
10260
10261         * doc/loop.texi: Document the Omega linear constraints solver.
10262         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
10263         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
10264         omega-hash-table-size, omega-max-keys, and
10265         omega-eliminate-redundant-constraints.
10266         * tree-pass.h (pass_check_data_deps): Declared.
10267         * omega.c: New.
10268         * omega.h: New.
10269         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
10270         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
10271         pass_check_data_deps): New.
10272         * tree-data-ref.c (init_data_ref): Remove declaration.
10273         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
10274         (analyze_array): Renamed init_array_ref, move up initializations.
10275         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
10276         Removed arguments that are set to NULL.
10277         (analyze_indirect_ref): Correct indentation, correct call to
10278         init_pointer_ref.
10279         (object_analysis): Call init_array_ref instead of analyze_array.
10280         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
10281         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
10282         of DR_ACCESS_FNS_ADDR.
10283         (init_omega_eq_with_af, omega_extract_distance_vectors,
10284         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
10285         ddr_consistent_p): New.
10286         (compute_affine_dependence): Check consistency of ddrs when
10287         flag_check_data_deps is passed.
10288         (analyze_all_data_dependences): Uncomment.
10289         (tree_check_data_deps): New.
10290         * tree-data-ref.h: Include omega.h.
10291         (DR_ACCESS_FNS_ADDR): Removed.
10292         (data_dependence_relation): Add inner_loop.
10293         (DDR_INNER_LOOP): New.
10294         * common.opt (fcheck-data-deps): New.
10295         * tree-flow.h (tree_check_data_deps): Declare.
10296         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
10297         (OBJS-common): Depend on omega.o.
10298         (omega.o): Define.
10299         * passes.c (pass_check_data_deps): Scheduled.
10300         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10301         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10302         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
10303         PARAM_VECT_MAX_VERSION_CHECKS,
10304         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
10305
10306 2007-03-09  Richard Guenther  <rguenther@suse.de>
10307
10308         PR tree-optimization/30904
10309         PR middle-end/31058
10310         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
10311         the same way as *_DIV_EXPR.
10312
10313 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10314
10315         * recog.c (decode_asm_operands): No mixed declarations and code.
10316
10317 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
10318
10319         * rtl.def (ASM_INPUT): Add location.
10320         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
10321         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
10322         (decode_asm_operands): Add loc operand.
10323         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
10324         * stmt.c (expand_asm): Rename to...
10325         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
10326         gen_rtx_ASM_INPUT_loc.
10327         (expand_asm_expr): Adjust.
10328         * recog.c (decode_asm_operands): Add loc operand.
10329         (check_asm_operands, extract_insn): Adjust.
10330         * reload1.c (maybe_fix_stack_asms): Likewise.
10331         * final.c (asm_insn_count): Likewise.
10332         (final_scan_insn): Output # line before and after asm.
10333
10334 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
10335
10336         * tree-ssa-structalias.c (variable_info): Remove
10337         finished_solution.
10338         (new_var_info): Ditto.
10339         (shared_bitmap_info_t): New structure.
10340         (shared_bitmap_table): New variable.
10341         (shared_bitmap_hash): New function.
10342         (shared_bitmap_eq): Ditto
10343         (shared_bitmap_lookup): Ditto.
10344         (shared_bitmap_add): Ditto.
10345         (merge_smts_into): Change to take bitmap directly.
10346         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
10347         (init_alias_vars): Init shared bitmap hashtable.
10348         (delete_points_to_sets): Delete shared bitmap hashtable.
10349         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
10350         is_aliased removal as a change that was still necessary was
10351         deleted.
10352
10353 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
10354
10355         * config/i386/i386.h (override_options): Conditionally disable
10356         x86_sahf for 64bit targets only.
10357
10358 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10359
10360         PR C/31072
10361         * c-decl.c (merge_decls): Don't call make_var_volatile.
10362         * varasm.c (make_var_volatile): Remove.
10363         * output.h (make_var_volatile): Remove.
10364
10365 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
10366
10367         PR tree-optimization/31085
10368         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
10369
10370 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10371
10372         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
10373         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
10374         ATTR_CONST_NOTHROW_LIST.
10375
10376         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
10377         FIX_TRUNC_EXPR.
10378
10379 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
10380
10381         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
10382
10383 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
10384
10385         PR 31013
10386         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
10387         is declared.
10388         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
10389         passed, use shared libgcc.
10390
10391 2007-03-08  Roger Sayle  <roger@eyesopen.com>
10392
10393         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
10394         instead of calling build2 with a GIMPLE_MODIFY_STMT.
10395         (honor_protect_cleanup_actions, lower_try_finally_switch):
10396         Likewise.
10397         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
10398         ifc_temp_var): Likewise.
10399         * tree-inline.c (setup_one_parameter): Likewise.
10400         * tree-mudflap.c (mf_decl_cache_locals,
10401         mf_build_check_statement_for): Likewise.
10402         * tree-nested.c (init_tmp_var, save_tmp_var,
10403         finalize_nesting_tree_1): Likewise.
10404         * tree-outof-ssa.c (insert_copy_on_edge,
10405         insert_backedge_copies): Likewise.
10406         * tree-profile.c (tree_gen_edge_profiler,
10407         tree_gen_ic_profiler): Likewise.
10408         * tree-scalar-evolution.c (scev_const_prop): Likewise.
10409         * tree-sra.c (sra_build_assignment): Likewise.
10410         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
10411         * tree-ssa-math-opts.c (insert_reciprocals,
10412         execute_cse_sincos_1): Likewise.
10413         * tree-tailcall.c (adjust_accumulator_values,
10414         adjust_return_value): Likewise.
10415         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
10416         * tree-vect-transform.c (vect_create_data_ref_ptr,
10417         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
10418         vect_create_epilog_for_reduction, vectorizable_reduction,
10419         vectorizable_call, vectorizable_conversion,
10420         vectorizable_assignment, vectorizable_operation,
10421         vectorizable_type_demotion, vect_gen_widened_results_half,
10422         vect_permute_store_chain, vectorizable_store,
10423         vect_setup_realignment, vect_permute_load_chain,
10424         vectorizable_load, vectorizable_condition,
10425         vect_create_cond_for_align_checks): Likewise.
10426         * tree-vrp.c (build_assert_expr_for): Likewise.
10427
10428 2007-03-08  Ian Lance Taylor  <iant@google.com>
10429
10430         * tree-vrp.c: Include "intl.h".
10431         (usable_range_p): New static function.
10432         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
10433         overflowed values, juts set *strict_overflow_p.
10434         (compare_values): Only return -2 if one of the operands is not a
10435         constant.
10436         (compare_ranges): Call usable_range_p.
10437         (compare_range_with_value): Likewise.
10438         (vrp_evaluate_conditional_warnv): Rename from
10439         vrp_evaluate_conditional.  Make static.  Change all callers.
10440         (vrp_evaluate_conditional): New function.
10441         (simplify_div_or_mod_using_ranges): Issue warning about reliance
10442         on signed overflow.
10443         (simplify_abs_using_ranges): Likewise.
10444         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
10445         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
10446         within_stmt parameter.
10447         * tree-ssa-propagate.c (fold_predicate_in): Update call to
10448         vrp_evaluate_conditional.
10449         * tree-ssa-threadedge.c
10450         (record_temporary_equivalences_from_stmts_at_dest): Change
10451         simplify parameter to take a second tree parameter.
10452         (simplify_control_stmt_condition): Likewise.
10453         (thread_across_edge): Likewise.
10454         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
10455         (thread_across_edge): Likewise.
10456         * Makefile.in (tree-vrp.o): Depend upon intl.h.
10457
10458 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
10459
10460         * config/i386/i386.h (TARGET_SAHF): New define.
10461         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
10462         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
10463         (x86_sahf): New global variable.
10464         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
10465         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
10466         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
10467         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
10468         for 64-bit.
10469         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
10470         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
10471         when expanding fcomi/sahf based tests.
10472         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
10473         expanding sahf based alternative. Emit sahf based sequence when
10474         optimizing for code size.
10475         * config/i386/i386.md (x86_sahf_1): Do not disable for
10476         TARGET_64BIT, enable for TARGET_SAHF.
10477
10478 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
10479
10480         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
10481         spurious whitespace from error message.
10482
10483 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
10484
10485         PR c++/30852
10486         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
10487
10488 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
10489
10490         * c-decl.c (grokdeclarator): Disable warnings for anonymous
10491         bitfields.
10492         * tree-sra.c (instantiate_element): Propagate disabled warnings
10493         from the element itself to the created variable.
10494
10495 2007-03-07  Richard Henderson  <rth@redhat.com>
10496
10497         PR target/30848
10498         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
10499         silently fix up the stack in the case of a missing register.
10500
10501 2007-03-07  Paul Brook  <paul@codesourcery.com>
10502
10503         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
10504
10505 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
10506
10507         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
10508         New.
10509         (phase1_vrs): Use them.
10510         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
10511         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
10512         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
10513         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
10514         __gnu_Unwind_Restore_WMMXC if required.
10515         (_Unwind_VRS_Pop): Implement iWMMXt support.
10516         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
10517         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
10518         gnu_Unwind_Save_WMMXC): Define.
10519
10520 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
10521
10522         * config/vxworks.h (vxworks_override_options): Declare.
10523         (VXWORKS_OVERRIDE_OPTIONS): Use it.
10524         * config/vxworks.c: Include target.h and toplev.h.
10525         (vxworks_override_options): New function.
10526         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
10527
10528 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10529
10530         * config/s390/s390.c (override_options): Don't emit an error when
10531         -mstack-size is used without providing -mstack-guard.
10532         (s390_emit_prologue): Choose stack_guard value automatically if not
10533         provided via command line.
10534         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
10535
10536 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
10537
10538         * config/i386/i386.c (output_set_got): Add a GOT initialization
10539         sequence for VxWorks PIC.
10540         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
10541         around labels as well as symbols.  Use gotoff_operand instead
10542         of local_symbolic_operand.
10543         (legitimize_pic_address): Use gotoff_operand instead of
10544         local_symbolic_operand.  Use @GOT accesses for labels as
10545         well as symbols.
10546         (ix86_output_addr_diff_elt): Use PC-relative rather than
10547         GP-relative offsets for VxWorks PIC.
10548         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
10549         no_new_pseudos.  Check whether the returned register is op0.
10550         * config/i386/i386.md (tablejump): Use PC-relative rather than
10551         GP-relative offsets for VxWorks PIC.
10552         * config/i386/predicates.md (gotoff_operand): New predicate.
10553
10554 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10555
10556         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
10557         before defining.
10558         * config/vxworks-dummy.h: New file.
10559         * config/i386/i386.h: Include it.
10560
10561 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
10562
10563         * dwarf2out.c (is_inlined_entry_point): New
10564         (add_high_low_attributes): Emit DW_AT_entry_pc along with
10565         DW_AT_ranges if the first subblock is the entry point.
10566
10567 2007-03-06  David Daney  <ddaney@avtrex.com>
10568
10569         * doc/install.texi (mips-*-*): Change recommended binutils
10570         version.
10571
10572 2007-03-06  Anatoly Sokolov <aesok@post.ru>
10573
10574         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
10575         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
10576         devices.
10577         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10578         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10579
10580 2007-03-06  Jan Hubicka  <jh@suse.cz>
10581
10582         * errors.h (warning, error, fatal, internal_error): Mark as cold.
10583         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
10584         are hot.
10585         (probably_cold_bb_p): Cold functions are cold.
10586         (probably_never_executed_bb_p): Cold functions are cold.
10587         (tree_bb_level_predictions): Predict calls to cold functions as not
10588         taken.
10589         (compute_function_frequency): Check hot/cold attributes.
10590         * function.h (function_frequency): Update comments.
10591         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
10592         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
10593         (c_common_att): Add cold and hot.
10594
10595         * doc/extend.texi (hot,cold attributes): Document.
10596
10597 2007-03-06  Andrew Haley  <aph@redhat.com>
10598
10599         * function.c (expand_function_end): Move blockage to just after we
10600         emit the label for the naked return from the function.
10601
10602 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10603
10604         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
10605         before redefining.
10606
10607 2007-03-06  Jan Hubicka  <jh@suse.cz>
10608
10609         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
10610         loaded for constant large models.  Non-large 64bit PIC can do.
10611         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
10612         * cmodel.h: Add LARGE PIC.
10613         * i386.md (UNSPEC_PLTOFF): New.
10614         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
10615         needed.
10616         (*call_1_rex64): Disable for large models.
10617         (*call_1_rex64_large): New.
10618         (*call_value_1_rex64): Disable for large models.
10619         (*call_value_1_rex64_large): New.
10620         (set_rip_rex4): New.
10621         (set_got_offset_rex64): New.
10622         * predicates.md (constant_call_address_operand): For large model
10623         constant calls are not possible.
10624         * i386-protos.h (construct_plt_address): Declare.
10625         * i386.c (override_options): Accept large models.
10626         (ix86_expand_prologue): Expand large PIC GOT pointer load.
10627         (legitimate_constant_p): Add new UNSPECs.
10628         (legitimate_pic_operand_p): Likewise.
10629         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
10630         (legitimize_pic_address): Do easy RIP relative way for TLS only for
10631         non-large model.
10632         (output_pic_addr_const): Add PLTOFF.
10633         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
10634         (ix86_expand_move): Legitimize pic address when in PIC mode.
10635         (construct_plt_address): New function.
10636         (ix86_expand_call): Offload the address to register and use GOT pointer
10637         for large model.
10638         * invoke.texi (mcmodel=large): Update documentation.
10639
10640 2007-03-06  Richard Henderson  <rth@redhat.com>
10641
10642         * config/i386/i386.c (x86_use_leave, x86_push_memory,
10643         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
10644         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
10645         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
10646         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
10647         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
10648         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
10649         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
10650         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
10651         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
10652         x86_partial_reg_dependency, x86_memory_mismatch_stall,
10653         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
10654         x86_sse_partial_reg_dependency, x86_sse_split_regs,
10655         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
10656         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
10657         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
10658         x86_schedule, x86_use_bt, x86_pad_returns,
10659         x86_use_xchgb): Merge into ...
10660         (ix86_tune_features): ... here.  New array.
10661         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
10662         x86_bswap): Merge into ...
10663         (ix86_arch_features): ... here.  New array.
10664         (x86_3dnow_a): Remove.
10665         (x86_accumulate_outgoing_args): Make static.
10666         (x86_arch_always_fancy_math_387): Make static.
10667         (ix86_tune_mask, ix86_arch_mask): Move ...
10668         (override_options): ... to local variables here.  Apply the
10669         appropriate mask to each element of ix86_arch_features and
10670         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
10671         as were done in the old macros.
10672         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
10673         * config/i386/i386.h (x86_use_leave, x86_push_memory,
10674         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
10675         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
10676         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
10677         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
10678         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
10679         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
10680         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
10681         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
10682         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
10683         x86_partial_reg_dependency, x86_memory_mismatch_stall,
10684         x86_accumulate_outgoing_args, x86_prologue_using_move,
10685         x86_epilogue_using_move, x86_decompose_lea,
10686         x86_arch_always_fancy_math_387, x86_shift1,
10687         x86_sse_partial_reg_dependency, x86_sse_split_regs,
10688         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
10689         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
10690         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
10691         x86_use_incdec, x86_pad_returns, x86_bswap,
10692         x86_partial_flag_reg_stall): Remove.
10693         (enum ix86_tune_indices): New.
10694         (ix86_tune_features): New.
10695         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
10696         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
10697         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
10698         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
10699         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
10700         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
10701         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
10702         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
10703         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
10704         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
10705         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
10706         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
10707         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
10708         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
10709         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
10710         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
10711         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
10712         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
10713         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
10714         TARGET_EXT_80387_CONSTANTS): Use it.
10715         (enum ix86_arch_indices): New.
10716         (ix86_arch_features): New.
10717         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
10718         TARGET_BSWAP): Use it.
10719         (ix86_tune_mask, ix86_arch_mask): Remove.
10720
10721 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
10722
10723         PR bootstrap/31020
10724         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
10725         Define using $${sysroot_headers_suffix}.
10726         * configure: Regenerate.
10727         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
10728         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
10729         defined.
10730         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
10731         * gcc.c (print_sysroot_headers_suffix): New.
10732         (option_map): Include --print-sysroot-headers-suffix.
10733         (display_help): Mention -print-sysroot-headers-suffix.
10734         (process_command): Handle -print-sysroot-headers-suffix.
10735         (do_spec_1): Append multilib directory to include-fixed path if
10736         sysroot suffixes in use.
10737         (main): Handle -print-sysroot-headers-suffix.
10738         * Makefile.in (start.encap): Don't depend on xlimits.h
10739         (xlimits.h): Remove.
10740         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
10741         limits.h for each multilib in fixinc_list.
10742         (fixinc_list, s-fixinc_list): New.
10743         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
10744         generate them for each multilib in fixinc_list.
10745         (stmp-fixproto): Use include-fixed.  Run fixproto for each
10746         multilib in fixinc_list.
10747         (mostlyclean): Don't remove xlimits.h.
10748         (clean): Remove include-fixed.
10749         (real-install-headers-tar, real-install-headers-cpio,
10750         real-install-headers-cp): Don't copy include, only include-fixed.
10751         (install-mkheaders): Depend on fixinc_list.  Don't depend on
10752         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
10753         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
10754         SYSTEM_HEADER_DIR setting in mkheaders.conf.
10755
10756 2007-03-06  Jan Hubicka  <jh@suse.cz>
10757
10758         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
10759         NANs easilly.
10760
10761 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10762
10763         * configure.ac: Allow tm_file to contain build-directory files.
10764         * configure: Regenerate.
10765         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
10766         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
10767         * config/m68k/print-sysroot-suffix.sh: New file.
10768
10769 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10770
10771         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
10772         of pic_offset_table_rtx if reload_completed.
10773         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
10774         PIC_OFFSET_TABLE_REGNUM.
10775         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
10776         return true.
10777         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
10778         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
10779
10780 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10781
10782         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
10783         functions that call eh_return.
10784
10785 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10786
10787         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
10788         functions that need a constant pool.
10789
10790 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10791
10792         PR target/28181
10793         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
10794         (m68k_preferred_reload_class): Likewise.
10795         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
10796         (SECONDARY_RELOAD_CLASS): Define.
10797         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
10798         (LIMIT_RELOAD_CLASS): Delete.
10799         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
10800         registers from storing bytes.
10801         (m68k_secondary_reload_class): New function.
10802         (m68k_preferred_reload_class): Likewise.
10803
10804 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10805
10806         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
10807         leaf functions.
10808         (m68k_expand_prologue): Likewise.
10809
10810 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10811
10812         * config/m68k/m68k-protos.h (output_sibcall): Declare.
10813         (mips_expand_epilogue): Add a bool parameter.
10814         (m68k_legitimize_sibcall_address): Declare.
10815         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
10816         (m68k_expand_epilogue): Add a parameter to select between sibling
10817         and normal epilogues.  Only generate a return for the latter.
10818         (m68k_ok_for_sibcall_p): New function.
10819         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
10820         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
10821         (sibcall_value, *sibcall_value): Likewise.
10822         (*call, *call_value): Require !SIBLING_CALL_P.
10823         (epilogue): Update call to m68k_expand_epilogue.
10824         (sibcall_epilogue): New pattern.
10825         * config/m68k/predicates.md (const_call_operand): Say that this
10826         predicate applies to sibling calls too.
10827         (sibcall_operand): New predicate.
10828
10829 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10830
10831         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
10832         alternatives as movsi_cf.
10833         (movsf_cf_hard): Add commentary.
10834
10835 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
10836             Richard Sandiford  <richard@codesourcery.com>
10837
10838         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
10839         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
10840         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
10841         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
10842         as being live on exit from an interrupt function.
10843         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
10844         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
10845         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
10846         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
10847         (m68k_interrupt_function_p): Globalize.
10848         (m68k_compute_frame_layout): Remove reverse mask code.
10849         (m68k_emit_movem, m68k_set_frame_related): New functions.
10850         (m68k_output_function_prologue): Delete in favor of...
10851         (m68k_expand_prologue): ...this new function.
10852         (m68k_output_function_epilogue): Delete in favor of...
10853         (m68k_expand_epilogue): ...this new function.
10854         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
10855         functions.
10856         (print_operand): Handle %?.
10857         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
10858         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
10859         (prologue, epilogue): New patterns.
10860         (return): Turn into a define_expand.
10861         (*return): New pattern, derived from old "return" pattern.  Use rte
10862         rather than rts for interrupt functions.  Only use rtd if the pop
10863         count is nonzero.
10864         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
10865         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
10866         (link, *link, unlink, *unlink, load_got): Likewise.
10867
10868 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
10869
10870         PR target/23482
10871         PR target/17114
10872         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
10873         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
10874         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
10875         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
10876         and m68k_matches_u_p.
10877         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
10878         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
10879         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
10880         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
10881         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
10882         (REG_STRICT_P): New macro.
10883         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
10884         PCREL_GENERAL_OPERAND_OK.
10885         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
10886         m68k_legitimate_base_reg_p.
10887         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
10888         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
10889         (PIC_CASE_VECTOR_ADDRESS): Update comment.
10890         * config/m68k/m68k.c (m68k_address): New structure.
10891         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
10892         (m68k_decompose_index, m68k_legitimate_constant_address_p)
10893         (m68k_jump_table_ref_p, m68k_decompose_address)
10894         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
10895         (m68k_matches_u_p): New functions.
10896         (print_operand_address): Rewrite to use m68k_decompose_index.
10897
10898 2007-03-05  David Taylor  <dtaylor@emc.com>
10899
10900         * gcc.c: Correct copyright date in --version output.
10901
10902 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10903
10904         * pa.md: In unamed move patterns, disparge copies between general
10905         and floating point registers using '?' modifier.  Don't include 'f'
10906         constraint for register preferences in DImode, SImode, HImode and
10907         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
10908         Remove constraints for copies between general and floating registers
10909         in soft-float DFmode pattern.
10910         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
10911         floating register.
10912         (movsf): Likewise.
10913
10914 2007-03-05  Mike Stump  <mrs@apple.com>
10915
10916         * c-common.c (targetcm): Add.
10917         * c-opts.c (c_common_handle_option): Handle language specific
10918         target options.
10919         * opts.c (handle_option): Verify language for target options, if
10920         any are given.
10921         * opth-gen.awk: Add CL_LANG_ALL.
10922         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
10923         (TARGETCM_INITIALIZER): Add.
10924         * target.h (struct gcc_targetcm): Add.
10925         (targetcm): Add.
10926         * targhooks.c (default_handle_c_option): Add.
10927         * targhooks.h (default_handle_c_option): Add.
10928         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
10929
10930         * config/darwin.opt (iframework): Add.
10931         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
10932         * config/darwin-c.c (handle_c_option): Add.
10933         (TARGET_HANDLE_C_OPTION): Add.
10934         (targetcm): Add.
10935         * doc/invoke.texi (Darwin Options): Add -iframework.
10936
10937 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10938
10939         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
10940         conversion.
10941
10942 2007-03-05  Ian Lance Taylor  <iant@google.com>
10943
10944         * c.opt (fgnu89-inline): New option.
10945         * c-opts.c (c_common_post_options): Set default value for
10946         flag_gnu89_inline.
10947         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
10948         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
10949         inline functions.
10950         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
10951         (grokdeclarator, start_function): Likewise.
10952         * c-cppbuiltin.c (c_cpp_builtins): Define either
10953         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
10954         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
10955         (C Dialect Options): Document -fgnu89-inline.
10956         * doc/extend.texi (Function Attributes): Explain what the
10957         gnu_inline attribute does.
10958         * doc/cpp.texi (Common Predefined Macros): Document
10959         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
10960
10961 2007-03-05  Ian Lance Taylor  <iant@google.com>
10962
10963         PR tree-optimization/31034
10964         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
10965         half-range if the other side is an overflow infinity.
10966
10967 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
10968
10969         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
10970         (bfin*-linux-uclibc*): New configuration.
10971         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
10972         defining.
10973         * config/bfin/linux.h: New file.
10974         * config/bfin/libgcc-bfin.ver: New file.
10975         * config/bfin/t-bfin-uclinux: New file.
10976         * config/bfin/t-bfin-linux: New file.
10977         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
10978         (TARGET_OS_CPP_BUILTINS): New macro.
10979
10980 2007-03-05  Richard Guenther  <rguenther@suse.de>
10981
10982         * fold-const.c (fold_binary): Remove duplicate folding
10983         of comparison of non-null ADDR_EXPR against null.
10984
10985 2007-03-05  Richard Guenther  <rguenther@suse.de>
10986             Dorit Nuzman  <dorit@il.ibm.com>
10987
10988         PR tree-optimization/26420
10989         * tree-vectorizer.c (vectorize_loops): Bail out early if there
10990         are no loops in the function.  Only print the number of
10991         vectorized loops if it is greater than zero or we are supposed
10992         to print information about unvectorized loops.
10993
10994 2007-03-05  Revital Eres  <eres@il.ibm.com>
10995
10996         * gcc.dg/var-expand1.c: New test.
10997         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
10998         when an accumulator is expanded.
10999
11000 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11001
11002         PR other/30465
11003         * c-common.c (convert_and_check): Don't give warnings for
11004         conversion if 'expr' already overflowed.
11005
11006 2007-03-04  Roger Sayle  <roger@eyesopen.com>
11007
11008         PR middle-end/30744
11009         * fold-const.c (fold_comparison): Enforce type consistency when
11010         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
11011
11012 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
11013
11014         * tree-ssa-address.c (create_mem_ref): Do not put an expression
11015         containing a cast to the base of TARGET_MEM_REF.
11016
11017 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
11018
11019         * tree.c (tree_contains_struct_check_failed): Remove spurious
11020         whitespace from error message.
11021
11022 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
11023
11024         PR target/30406
11025         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
11026         instead of precision.
11027
11028 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
11029             Nathan Sidwell  <nathan@codesourcery.com>
11030
11031         * emit-rtl.c (find_auto_inc): New.
11032         (try_split): recreate REG_INC notes,
11033         Use regular for loops rather than whiles.
11034
11035 2007-03-03  Andreas Schwab  <schwab@suse.de>
11036
11037         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
11038         * configure: Regenerate.
11039
11040 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11041
11042         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
11043         flag_rounding_math, not flag_unsafe_math_optimizations.
11044
11045         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
11046         fold_build2.
11047         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
11048         alpha_fold_vector_minmax): Likewise.
11049         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11050         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11051
11052 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
11053
11054         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
11055         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
11056         if the lhs has side-effects.
11057         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
11058
11059 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
11060
11061         * config/i386/i386.h (TUNEMASK): Remove define.
11062         (ARCHMASK): Remove define.
11063         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
11064          Use ix86_arch_mask variable instead of ARCHMASK.
11065         * config/i386/i386.c (override_options): Ditto.
11066         (standard_80387_constant_p): Ditto.
11067
11068 2007-03-02  Ian Lance Taylor  <iant@google.com>
11069
11070         Used signed infinities in VRP.
11071         * tree-vrp.c (uses_overflow_infinity): New static function.
11072         (supports_overflow_infinity): New static function.
11073         (make_overflow_infinity): New static function.
11074         (negative_overflow_infinity): New static function.
11075         (positive_overflow_infinity): New static function.
11076         (is_negative_overflow_infinity): New static function.
11077         (is_positive_overflow_infinity): New static function.
11078         (is_overflow_infinity): New static function.
11079         (overflow_infinity_range_p): New static function.
11080         (compare_values_warnv): New function split out of compare_values.
11081         (compare_value): Call it.
11082         (set_value_range_to_nonnegative): Add overflow_infinity
11083         parameter.  Change caller.
11084         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
11085         Change callers.
11086         (vrp_expr_computes_nonzero): Likewise.
11087         (compare_ranges, compare_range_with_value): Likewise.
11088         (compare_name_with_value, compare_names): Likewise.
11089         (vrp_evaluate_conditional): Likewise.
11090         (set_value_range): Handle infinity
11091         (vrp_operand_equal_p, operand_less_p): Likewise.
11092         (extract_range_from_assert): Likewise.
11093         (vrp_int_const_binop): Likewise.
11094         (extract_range_from_binary_expr): Likewise.
11095         (extract_range_from_unary_expr): Likewise.
11096         (extract_range_from_comparison): Likewise.
11097         (extract_range_from_expr): Likewise.
11098         (dump_value_range): Likewise.
11099         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
11100         (test_for_singularity): Likewise.
11101         (vrp_int_const_binop): Remove inline qualifier.
11102         (adjust_range_with_scev): Add comment.
11103         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
11104
11105 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
11106
11107         * tree-ssa-structalias.c (could_have_pointers): Tidy.
11108         (get_constraint_for): Likewise.
11109         (do_structure_copy): Likewise.
11110         (find_func_aliases): Fix references to MODIFY_EXPR.
11111         (intra_create_variable_infos): Tidy.
11112         * tree-ssa-operands.c (add_virtual_operand): Add argument
11113         IS_CALL_SITE.
11114         When adding members of alias sets, if IS_CALL_SITE is true and
11115         the symbol is not call-clobbered, skip it.
11116         Adjust all callers.
11117
11118 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
11119
11120         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
11121         entry by means of emit_insn_at_entry.
11122
11123 2007-03-02  Richard Henderson  <rth@redhat.com>
11124
11125         * expr.h (promoted_input_arg): Remove decl.
11126         * function.c (promoted_input_arg): Merge into ...
11127         * combine.c (setup_incoming_promotions): ... only caller.
11128         Rearrange to avoid double loop.
11129
11130 2007-03-02  Ben Elliston  <bje@au.ibm.com>
11131             Peter Bergner  <bergner@vnet.ibm.com>
11132             Janis Johnson  <janis187@us.ibm.com>
11133
11134         * config/rs6000/dfp.md: New file.
11135         * config/rs6000/rs6000.md: Include dfp.md.
11136         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
11137         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
11138         and TDmode decimal float modes in FP registers.
11139         (num_insns_constant): Likewise.
11140         (rs6000_legitimate_offset_address_p): Likewise.
11141         (rs6000_legitimize_address): Likewise.
11142         (rs6000_legitimize_reload_address): Likewise.
11143         (rs6000_legitimate_address): Likewise.
11144         (rs6000_emit_move): Likewise.
11145         (function_arg_boundary): Likewise.
11146         (function_arg_advance): Likewise.
11147         (rs6000_darwin64_record_arg_recurse): Likewise.
11148         (function_arg): Likewise.
11149         (rs6000_gimplify_va_arg): Likewise.
11150         (rs6000_split_multireg_move): Likewise.
11151         (rs6000_output_function_epilogue): Likewise.
11152         (rs6000_output_function_epilogue): Likewise.
11153         (rs6000_register_move_cost): Likewise.
11154         (rs6000_function_value): Likewise.
11155         (rs6000_libcall_value): Likewise.
11156
11157 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
11158
11159         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
11160
11161 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
11162
11163         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
11164         Use $MULTIDIR to choose between the kernel and RTP headers,
11165         and use $WIND_BASE and $WIND_USR to locate them.
11166
11167 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
11168
11169         * config/i386/i386.c (override_options): Put initialization of
11170         ix86_tune_mask and ix86_arch_mask to the correct place.
11171
11172 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
11173             Michael Meissner  <michael.meissner@amd.com>
11174
11175         PR target/31019
11176         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
11177         (ARCHMASK): Define.
11178         (TARGET_CMOVE): Use ARCHMASK.
11179         (TARGET_CMPXCHG): Ditto.
11180         (TARGET_CMPXCHG8B): Ditto.
11181         (TARGET_XADD): Ditto.
11182         (TARGET_BSWAP): Ditto.
11183         * config/i386/i386.c (ix86_tune_mask): New global variable.
11184         (ix86_arch_mask): Ditto.
11185         (override_options): Initialize ix86_tune_mask and
11186         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
11187         target_flags.
11188
11189 2007-03-02  Ben Elliston  <bje@au.ibm.com>
11190
11191         PR 30992
11192         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
11193
11194 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
11195
11196         * target.h (init_dwarf_reg_sizes_extra): New target hook.
11197         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
11198         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
11199         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
11200         hook.
11201         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
11202         rs6000_init_dwarf_reg_sizes_extra): New.
11203         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
11204         SPE register high parts.
11205
11206 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
11207
11208         * Makefile.in: Add install-pdf target as
11209         copied from automake v1.10 rules.
11210         * configure.ac: Add install-pdf to target list.
11211         * configure: Regenerate.
11212
11213 2007-03-01  Paul Brook  <paul@codesourcery.com>
11214
11215         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
11216         modes to LDRD for DImode.
11217         (output_move_double): Fixup out of range ldrd/strd.
11218         (vfp_secondary_reload_class): Rename...
11219         (coproc_secondary_reload_class): ... to this.  Add wb argument.
11220         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
11221         coproc_secondary_reload_class for CLASS_IWMMXT.
11222         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
11223         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
11224
11225 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
11226
11227         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
11228         factor by the estimated number of iterations.
11229         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
11230         prefetch latency.
11231
11232         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
11233         decode_caches_intel, detect_caches_intel): New functions.
11234         (host_detect_local_cpu): Use detect_caches_amd and
11235         detect_caches_intel.
11236
11237 2007-03-01  Richard Henderson  <rth@redhat.com>
11238
11239         * expr.c (emit_move_complex_push): Export.
11240         (emit_move_complex_parts): Split out from ...
11241         (emit_move_complex): ... here.
11242         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
11243         * config/i386/i386.md (movcdi): New.
11244
11245 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
11246
11247         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
11248         size of mode1 to check for tieable modes in MMX case.
11249
11250 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
11251
11252         * Makefile.in (rtlanal.o): Depend on tree.h.
11253         * rtl.h (offset_within_section_p, split_const): Declare.
11254         * rtlanal.c: Include tree.h.
11255         (offset_within_block_p): New function, taken from
11256         mips_offset_within_object_p.
11257         (split_const): New function, taken from mips_split_const.
11258         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
11259         Declare.
11260         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
11261         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
11262         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
11263         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11264         (m68k_illegitimate_symbolic_constant_p): New function.
11265         * config/m68k/m68k.md (movsi): Remove misleading predicates.
11266         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
11267         symbolic constant that might be outside the symbol's section,
11268         move the symbol first and then add the offset.
11269         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
11270         Override.
11271         * config/mips/mips.c (mips_split_const): Delete.
11272         (mips_offset_within_object_p): Delete.
11273         (mips_symbolic_constant_p): Use offset_within_section_p and
11274         split_const instead of mips_offset_within_object_p and
11275         mips_split_const.
11276         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
11277         (mips_legitimize_const_move, print_operand_reloc)
11278         (mips_dangerous_for_la25_p): Use split_const instead of
11279         mips_split_const.
11280
11281 2007-02-28  Eric Christopher  <echristo@apple.com>
11282
11283         * Makefile.in (install-include-dir): Don't rm -rf include.
11284
11285 2007-02-28  Richard Guenther  <rguenther@suse.de>
11286
11287         PR middle-end/30364
11288         * fold-const.c (fold_binary): Do not associate expressions
11289         with more than one variable for integer types that do not wrap.
11290
11291 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
11292
11293         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
11294         Delete, and replace with...
11295         (fold_builtin_call_array): This.  Update callers to use it.
11296         * fold-const.c (fold_build_call_list): Delete, and replace with...
11297         (fold_build_call_array): This.
11298         (fold_build_call_list_initializer): Delete, and replace with...
11299         (fold_build_call_array_initializer): This.
11300         * tree.h: Update declarations to reflect above changes.
11301
11302         * c-typeck.c (build_function_call): Store converted arguments
11303         in a stack-allocated array instead of building a list.
11304         (convert_arguments): Store arguments in the array passed in as an
11305         argument, and return the actual number of arguments.
11306         * c-format.c: (check_function_format): Pass arguments in an
11307         array instead of a list.
11308         * c-common.c (check_function_nonnull): Likewise.
11309         (check_function_sentinel): Likewise.
11310         (check_function_arguments): Likewise.
11311         * c-common.h: Update declarations to reflect above changes.
11312
11313 2007-02-28  Jan Hubicka  <jh@suse.cz>
11314
11315         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
11316         PRED_NEGATIVE_RETURN): Update outcomes.
11317
11318 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
11319
11320         * calls.c (emit_library_call_value_1): Handle partial registers
11321         correctly when building up CALL_INSN_FUNCTION_USAGE.
11322
11323 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11324
11325         * pa/predicates.md (move_src_operand): Allow zero for mode.
11326         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
11327         move pattern.
11328
11329 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
11330
11331         PR target/30970
11332         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
11333         *movv2df_internal): Enable pattern only for valid operand
11334         combinations.
11335         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
11336         tie only 128bit modes. For MMX registers, tie only 64bit modes.
11337
11338 2007-02-27  Mike Stump  <mrs@apple.com>
11339
11340         * config/darwin-crt3.c: Avoid compilation when compiling for a
11341         kext multilib.
11342
11343 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
11344
11345         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
11346         FIXED_INCLUDE_DIR.
11347         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
11348         for fixed headers and limits.h.
11349         (install-include-dir, install-headers-tar, install-headers-cpio,
11350         install-headers-cp, real-install-headers-tar,
11351         real-install-headers-cpio, real-install-headers-cp): Handle
11352         include-fixed as well as include.
11353         (install-mkheaders): Don't install files that go only in include
11354         not include-fixed.
11355         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
11356         from GCC_INCLUDE_DIR.
11357         * gcc.c (process_command): Remove special -BstageN/ handling.
11358         (do_spec_1): Add include-fixed directories.
11359
11360 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
11361
11362         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
11363         _smulsi3_highpart.
11364         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
11365         New functions.
11366         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
11367         patterns.
11368
11369 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
11370
11371         * c-common.c (get_priority): Add check for
11372         SUPPORTS_INIT_PRIORITY.
11373
11374 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
11375
11376         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
11377
11378         * config/bfin/bfin.c: Include "cfglayout.h".
11379         (MAX_LSETUP_DISTANCE): New macro.
11380         (struct loop_info): New members incoming, incoming_src and
11381         incoming_dest.  Delete member predecessor.
11382         (length_for_loop): New function.
11383         (bfin_optimize_loop): Handle more different loop structures.
11384         (bfin_discover_loop): Rework detection of predecessor blocks by
11385         examining incoming edges.
11386         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
11387         bfin_reorg_loops.
11388         (bfin_reorder_loops): New function.
11389         (bfin_reorg_loops): Use these three new functions.
11390
11391         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
11392         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
11393         (CONSTRAINT_LEN): Add entry for 'q'.
11394         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
11395         Add 'q' constraints.
11396         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
11397         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
11398
11399         * config/bfin/bfin.md (add_with_carry): New pattern.
11400         (s_or_u, su_optab, su_modifier): New code macros/attrs.
11401         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
11402         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
11403         support unsigned multiplies too.  Removed incorrect commutativity from
11404         operand 1 constraint where appropriate.
11405         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
11406         patterns.
11407         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
11408         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
11409         New patterns.
11410         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
11411         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
11412         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
11413         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
11414         usmulhisi_hh_huh): New patterns.
11415
11416         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
11417         lshifthi3): Fix output template to use half reg for operand 2.
11418
11419         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
11420         instead of R2.
11421
11422         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
11423
11424 2007-02-27  Andreas Schwab  <schwab@suse.de>
11425
11426         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
11427
11428 2007-02-27  Jan Hubicka  <jh@suse.cz>
11429
11430         * predict.c (last_basic_block_p): Remove.
11431         (tree_estimate_probability): Update return heuristic for commonized
11432         return blocks.
11433
11434 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
11435
11436         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
11437
11438 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
11439
11440         * doc/include/gcc-common.texi (versionsubtitle): New macro.
11441         * doc/cpp.texi: Standardize title page.
11442         * doc/cppinternals.texi: Likewise.
11443         * doc/gcc.texi: Standardize title page, remove version number
11444         from copyright page.
11445         * doc/gccint.texi: Likewise.
11446         * doc/install.texi: Standardize title page, add table of
11447         contents.
11448
11449 2007-02-26  Jan Hubicka  <jh@suse.cz>
11450
11451         * predict.def: Set outcomes according to more recent results.
11452         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
11453         Remove dead predictors.
11454         * predict.c (return_prediction): Fix pasto.
11455
11456 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
11457
11458         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
11459         change; avoid a memory leak when returning early.
11460
11461 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
11462
11463         * c-decl.c (static_ctors): Move to c-common.c.
11464         (static_dtors): Likewise.
11465         (finish_function): Use c_record_cdtor_fn.
11466         (build_cdtor): Move to c-common.c.
11467         (c_write_global_declarations): Use c_build_cdtor_fns.
11468         * c-common.h (static_ctors): Declare.
11469         (static_dtors): Likewise.
11470         (c_record_cdtor_fn): Likewise.
11471         (c_build_cdtor_fns): Likewise.
11472         * c-common.c (static_ctors): New variable.
11473         (static_dtors): Likewise.
11474         (c_record_cdtor_fn): New function.
11475         (build_cdtor): Move from c-decl.c
11476         (c_build_cdtor_fns): New function.
11477
11478         * output.h (assemble_addr_to_section): Declare.
11479         (get_cdtor_priority_section): Likewise.
11480         * varasm.c (assemble_addr_to_section): New function.
11481         (get_cdtor_priority_section): Likewise.
11482         (default_named_section_asm_out_destructor): Use them.
11483         (destor_dtor_section_asm_out_destructor): Likewise.
11484         (default_named_section_asm_out_constructor): Likewise.
11485         (default_ctor_section_asm_out_constructor): Likewise.
11486         * config.gcc (*-*-vxworks*): Include vxworks.o.
11487         * config/t-vxworks (vxworks.o): New target.
11488         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
11489         (TARGET_ASM_CONSTRUCTOR): Define.
11490         (TARGET_ASM_DESTRUCTOR): Likewise.
11491         (vxworks_asm_out_constructor): Declare.
11492         (vxworks_asm_out_destructor): Likewise.
11493
11494         * c-common.c (get_priority): Check that we have not just an
11495         INTEGER_CST, but an integer constant with integeral type.
11496
11497 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
11498
11499         PR tree-optimization/30938
11500         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
11501         use &dt[nargs-1] instead of &dt[nargs] in the call to
11502         vect_is_simple_use().
11503
11504 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
11505
11506         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
11507         from register elimination as PRE_MODIFY / POST_MODIFY increments.
11508         Do not attempt to handle MEM inside auto-inc expressions.
11509         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
11510         of a register modified by an auto-inc expression.  However, do handle
11511         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
11512         (elimination_effects): Prohibit elimination of a register modified
11513         by an auto-inc expression.  Disable register elimination rules whose
11514         target register is modified by an auto-inc expression with variable
11515         increment.
11516
11517 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
11518
11519         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
11520         off-by-one error.
11521         (array_at_struct_end_p): New function.
11522         (idx_infer_loop_bounds): Use it.
11523         (estimate_numbers_of_iterations_loop): Export.
11524         * predict.c (predict_loops): Use estimated_loop_iterations_int.
11525         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
11526         (tree_estimate_probability): Call record_loop_exits.
11527         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
11528         (estimated_loop_iterations, estimated_loop_iterations_int,
11529         estimated_loop_iterations_tree): New functions.
11530         (analyze_siv_subscript_cst_affine,
11531         compute_overlap_steps_for_affine_1_2,
11532         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
11533         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
11534         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
11535         (PRED_LOOP_ITERATIONS_GUESSED): New.
11536         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
11537         * cfgloop.h (estimate_numbers_of_iterations_loop,
11538         estimated_loop_iterations_int): Declare.
11539
11540 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
11541
11542         * doc/extend.texi: Document optional priority argument to
11543         constructors and destructors.
11544         * tree.c (init_priority_for_decl): Adjust GTY markers.
11545         (init_ttree): Use priority-info hash functions for
11546         init_priority_for_decl.
11547         (tree_map_eq): Rename to ...
11548         (tree_map_base_eq): ... this.
11549         (tree_map_marked_p): Rename to ...
11550         (tree_map_base_marked_p): ... this.
11551         (tree_map_base_hash): New function.
11552         (decl_init_priority_lookup): Rework.
11553         (decl_fini_priority_lookup): New function.
11554         (decl_priority_info): New function.
11555         (decl_init_priority_insert): Use it.
11556         (decl_fini_priority_insert): Likewise.
11557         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
11558         hierarchy.
11559         (decl_restrict_base_insert): Likewise.
11560         (decl_debug_expr_insert): Likewise.
11561         (decl_value_expr_lookup): Likewise.
11562         (decl_value_expr_insert): Likewise.
11563         * tree.h (priority_type): New type.
11564         (decl_init_priority_lookup): Use priority_type.
11565         (decl_fini_priority_lookup): New function.
11566         (decl_init_priority_insert): Use priority_type.
11567         (decl_fini_priority_insert): New function.
11568         (DECL_HAS_INIT_PRIORITY): Tweak comments.
11569         (DECL_INIT_PRIORITY): Likewise.
11570         (SET_DECL_INIT_PRIORITY): Add comment.
11571         (DECL_FINI_PRIORITY): New macro.
11572         (SET_DECL_FINI_PRIORITY): Likewise.
11573         (DEFAULT_INIT_PRIORITY): Document.
11574         (MAX_INIT_PRIORITY): Likewise.
11575         (MAX_RESERVED_INIT_PRIORITY): Likewise.
11576         (tree_map_base): New type.
11577         (tree_map_base_eq): New function.
11578         (tree_map_base_hash): Likewise.
11579         (tree_map_base_marked_p): Likewise.
11580         (tree_map): Inherit from tree_map_base.
11581         (tree_map_eq): Make it a macro.
11582         (tree_map_marked_p): Likewise.
11583         (tree_int_map): Inherit from tree_map_base.
11584         (tree_int_map_eq): Make it a macro.
11585         (tree_int_map_hash): Likewise.
11586         (tree_int_map_marked_p): Likewise.
11587         (tree_priority_map): New type.
11588         (tree_priority_map_eq): New macro.
11589         (tree_priority_map_hash): Likewise.
11590         (tree_priority_map_marked_p): Likewise.
11591         * varasm.c (emults_decl): Adjust for refactoring of tree_map
11592         hierarchy.
11593         (emutls_common_1): Likewise.
11594         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
11595         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
11596         of tree_map hierarchy.
11597         * tree-cfg.c (move_stmt_r): Likewise.
11598         (new_label_mapper): Likewise.
11599         * c-tree.h (c_expand_body): Move to ...
11600         * c-common.h (c_expand_body): ... here.
11601         * c-decl.c (c_expand_body): Move to ...
11602         * c-common.c (c_expand_body): ... here.
11603         (c_common_attribute_table): Allow 1 argument for the constructor
11604         and destructor attributes.
11605         (get_priority): New function.
11606         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
11607         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
11608
11609 2007-02-24  Jan Hubicka  <jh@suse.cz>
11610
11611         PR middle-end/30509
11612         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
11613
11614 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
11615             Jan Hubicka  <jh@suse.cz>
11616
11617         PR target/30778
11618         * i386.c (counter_mode): New function.
11619         (expand_set_or_movmem_via_loop): Use it.
11620         (expand_movmem_epilogue): Likewise; fix pasto.
11621         (ix86_expand_movmem): Do emit guard even for constant counts.
11622         (ix86_expand_setmem): Likewise.
11623
11624 2007-02-25  Nick Clifton  <nickc@redhat.com>
11625
11626         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
11627         (JUMP_TABLES_IN_TEXT_SECTION): Define.
11628
11629 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
11630
11631         PR target/30770
11632         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
11633         count argument with 0x10, not with 0x16.
11634         (expand_setmem_epilogue): Ditto.
11635
11636 2007-02-24  Mike Stump  <mrs@apple.com>
11637
11638         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
11639         symbols.
11640
11641 2007-02-24  Richard Guenther  <rguenther@suse.de>
11642
11643         PR middle-end/30951
11644         * fold-const.c (fold_binary): Fold x +- CST op x for
11645         EQ_EXPR and NE_EXPR.
11646
11647 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11648
11649         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
11650
11651 2007-02-24  Jan Hubicka  <jh@suse.cz>
11652
11653         * cgraphunit.c (decide_is_function_needed): Honor
11654         -fkeep-inline-functions.
11655
11656 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11657
11658         * builtins.c (fold_builtin_modf): New.
11659         (fold_builtin_2): Use it.
11660
11661 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11662
11663         * loop-iv.c (implies_p): Detect additional cases where A implies B.
11664         (determine_max_iter): Take additional LOOP arg; all callers changed.
11665         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
11666         one using simplifications.
11667         (simplify_using_initial_values): Return if the expression becomes
11668         invalid due to altered regs.
11669
11670 2007-02-23  DJ Delorie  <dj@redhat.com>
11671
11672         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
11673
11674 2007-02-23  Mike Stump  <mrs@apple.com>
11675
11676         * tlink.c (scan_linker_output): Parse linker messages from
11677         darwin9's linker better.
11678
11679 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
11680
11681         PR debug/29614
11682         * varpool.c (varpool_assemble_pending_decls):  Set
11683         varpool_last_needed_node to null.
11684
11685 2007-02-23  DJ Delorie  <dj@redhat.com>
11686
11687         * config/i386/i386.c (ix86_data_alignment): Don't specify an
11688         alignment bigger than the object file can handle.
11689
11690 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
11691
11692         PR target/30825
11693         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
11694         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
11695         (*movsf_1): Penalize MMX moves.
11696
11697 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
11698
11699         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
11700         2^32-1 or more times unless flag_unsafe_loop_optimizations.
11701
11702         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
11703
11704 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11705
11706         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
11707         (fold_builtin_1): Use them.
11708         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
11709         BUILT_IN_SIGNIFICAND.
11710
11711 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
11712
11713         * config/i386/i386.c (bdesc_1arg): Initialize
11714         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
11715         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
11716         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
11717         and IX86_BUILTIN_MOVSLDUP.
11718
11719 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
11720
11721         PR rtl-optimization/30841
11722         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
11723
11724 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11725
11726         * builtins.c (fold_builtin_frexp): New.
11727         (fold_builtin_2): Use it.
11728
11729 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
11730
11731         * doc/invoke.texi (Spec Files): Document getenv spec function.
11732
11733         * gcc.c (getenv_spec_function): New function.
11734         (static_spec_functions): Add it.
11735         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
11736         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
11737         header files.
11738
11739 2007-02-22  Michael Matz  <matz@suse.de
11740
11741         PR c++/29433
11742         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
11743         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
11744
11745 2007-02-22  Ian Lance Taylor  <iant@google.com>
11746
11747         PR debug/30898
11748         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
11749         (mem_loc_descriptor): Call it.
11750
11751 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
11752             Ira Rosen  <irar@il.ibm.com>
11753
11754         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
11755
11756 2007-02-22  Ira Rosen  <irar@il.ibm.com>
11757
11758         PR tree-optimization/30843
11759         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
11760         stores only after all the group is vectorized.
11761
11762 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
11763
11764         PR tree-optimization/30858
11765         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
11766         in the reduction cycle have a single use in the loop.
11767         * tree-vectorizer.h (relevant): Add documentation.
11768
11769 2007-02-20  Mike Stump  <mrs@apple.com>
11770
11771         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
11772         * configure: Regenerate.
11773
11774 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11775
11776         Change the defaults of some parameters and options.
11777         * config/spu/spu-protos.h (spu_optimization_options): Declare.
11778         * config/spu/spu.c (spu_optimization_options): Add.
11779         (spu_override_options): Change params in spu_optimization_options.
11780         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
11781
11782         Register 127 is only 16 byte aligned when used as a frame pointer.
11783         * config/spu/spu-protos.h (spu_init_expanders): Declare.
11784         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
11785         HARD_FRAME_POINTER_REGNUM.
11786         (spu_legitimate_address):  Use regno_aligned_for_reload.
11787         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
11788         aligned when frame_pointer_needed is true.
11789         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
11790         to 8 bits.
11791         * config/spu/spu.h (INIT_EXPANDERS): Define.
11792
11793         Make sure shift and rotate instructions have valid immediate operands.
11794         * config/spu/predicates.md (spu_shift_operand): Remove.
11795         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
11796         * config/spu/constraints.md (W, O): Extend range.
11797         * config/spu/spu.md (umask, nmask): Define.
11798         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
11799         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
11800         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
11801         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
11802         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
11803         (lshr<mode>3_reg):  Fix rtl description.
11804
11805         Make sure mulhisi immediate operands are valid.
11806         * config/spu/predicates.md (imm_K_operand): Add.
11807         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
11808
11809         Generate constants using fsmbi and andi.
11810         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
11811         (print_operand, spu_split_immediate, classify_immediate,
11812         fsmbi_const_p): Handle IC_FSMBI2.
11813
11814         Correctly handle a CONST_VECTOR containing symbols.
11815         * config/spu/spu.c (print_operand): Handle HIGH correctly.
11816         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
11817         (immediate_load_p): Allow symbols that use 2 instructions to create.
11818         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
11819         with symbols when flag_pic is set.
11820         (const_vector_immediate_p): New.
11821         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
11822         accept a CONST_VECTOR with symbols.
11823         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
11824         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
11825         correctly.
11826         * config/spu/spu.md (high, low): Delete.
11827         (low_<mode>): Define.
11828
11829         Remove INTRmode and INTR_REGNUM, which didn't work.
11830         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
11831         of INTR_REGNUM.
11832         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
11833         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
11834         peephole2 pattern): Don't use INTR or 131.
11835         (movintrcc): Delete.
11836         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
11837         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
11838         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
11839         (UNSPEC_SET_INTR): Add.
11840         * config/spu/spu-modes.def (INTR): Remove.
11841
11842         More accurate warnings about run-time relocations.
11843         * config/spu/spu.c (reloc_diagnostic): Test in_section.
11844
11845         Correctly warn about immediate arguments to specific intrinsics.
11846         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
11847         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
11848         the instruction predicate.
11849
11850         Fix tree check errors with latest update.
11851         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
11852         CALL_EXPR_ARG.
11853         (spu_expand_builtin): Use CALL_EXPR_FN.
11854
11855         Add missing specific intrinsics.
11856         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
11857         si_bislede.
11858         * config/spu/spu_internals.h: Ditto.
11859
11860         Fix incorrect operand modifiers.
11861         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
11862         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
11863
11864         Optimize one case of zero_extend of a vec_select.
11865         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
11866
11867         Accept any immediate for hbr.
11868         * config/spu/spu.md (hbr):  Change s constraints to i.
11869
11870 2007-02-21  Paul Brook  <paul@codesourcery.com>
11871
11872         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
11873         condexec_count when skipping USE and CLOBBER.
11874
11875 2007-02-21  Nick Clifton  <nickc@redhat.com>
11876
11877         * common.opt (Warray-bounds): Add Warning attribute.
11878         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
11879         Likewise.
11880         (fsized-zeroes): Add Optimization attribute.
11881         (fsplit-wide-types, ftree-scev-cprop): Likewise.
11882         * c.opt (Wc++0x-compat): Add Warning attribute.
11883
11884 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
11885
11886         PR middle-end/30761
11887         * reload1.c (eliminate_regs_in_insn): In the single_set special
11888         case, attempt to re-recognize the insn before falling back to
11889         having reload fix it up.
11890
11891 2007-02-20  Eric Christopher  <echristo@gmail.com>
11892
11893         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
11894         Rewrite accordingly.
11895         (frv_read_iacc_argument): Ditto.
11896         (frv_expand_set_builtin): Take a call instead of arglist, update for
11897         above changes.
11898         (frv_expand_unop_builtin): Ditto.
11899         (frv_expand_binop_builtin): Ditto.
11900         (frv_expand_cut_builtin): Ditto.
11901         (frv_expand_binopimm_builtin): Ditto.
11902         (frv_expand_voidbinop_builtin): Ditto.
11903         (frv_expand_int_void2arg): Ditto.
11904         (frv_expand_prefetches): Ditto.
11905         (frv_expand_voidtriop_builtin): Ditto.
11906         (frv_expand_voidaccop_builtin): Ditto.
11907         (frv_expand_load_builtin): Ditto.
11908         (frv_expand_store_builtin): Ditto.
11909         (frv_expand_mdpackh_builtin): Ditto.
11910         (frv_expand_mclracc_builtin): Ditto.
11911         (frv_expand_mrdacc_builtin): Ditto.
11912         (frv_expand_mwtacc_builtin): Ditto.
11913         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
11914         calls for above.
11915
11916 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
11917
11918         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
11919         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
11920         cmpb instruction.
11921         (HAVE_GAS_DFP): Check for assembler support of decimal floating
11922         point instructions.
11923         * configure: Regenerate.
11924         * config.in: Regenerate.
11925         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
11926         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
11927         masks to power6 and power6x and to POWERPC_MASKS.
11928         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11929         _ARCH_PWR6.
11930         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
11931         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
11932         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11933         Access PROTOTYPE as variable, not mask.
11934
11935 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
11936
11937         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
11938         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
11939         * combine.c (adjust_for_new_dest): Use it.
11940         * postreload.c (reload_combine): Likewise.
11941
11942 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
11943
11944         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
11945         notes on an insn with multiple sets, even if single_set returns
11946         non-NULL for that insn.
11947
11948 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11949
11950         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
11951         scalbn and scalbln.
11952
11953 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
11954
11955         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
11956         if user didn't pass it.
11957         * config/i386/darwin.h (CC1_SPEC): Likewise.
11958         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
11959         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
11960         -mmacosx-version-min.
11961
11962 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11963             Uros Bizjak  <ubizjak@gmail.com>
11964
11965         * optabs.h (enum optab_index): Add new OTI_scalb.
11966         (scalb_optab): Define corresponding macro.
11967         * optabs.c (init_optabs): Initialize scalb_optab.
11968         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
11969         patterns.
11970         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
11971         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
11972         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
11973         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
11974         flag_unsafe_math_optimizations is set.
11975
11976         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
11977         to implement scalbf, scalb and scalbl built-ins as inline x87
11978         intrinsics.
11979
11980 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11981             DJ Delorie <dj@redhat.com>
11982
11983         PR other/30824
11984         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
11985         (diagnostic_report_diagnostic): ... here, and turn them into real
11986         errors. If warnings are inhibited, no need to do anything.
11987
11988 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
11989
11990         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
11991         better code generation.
11992
11993 2007-02-20  Ben Elliston  <bje@au.ibm.com>
11994
11995         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
11996
11997 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
11998
11999         * config/alpha/alpha.c, config/alpha/alpha.md,
12000         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
12001         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
12002         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
12003         config/arm/lib1funcs.asm: Follow spelling conventions.
12004
12005         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
12006         config/fr30/fr30.md, config/i386/i386.h,
12007         config/iq2000/iq2000.h, config/iq2000/predicates.md,
12008         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
12009         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
12010         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
12011         config/rs6000/altivec.md, config/rs6000/rs6000.c,
12012         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
12013         config/sparc/sparc.c, config/sparc/sparc.h,
12014         config/sparc/sparc.md, config/spu/constraints.md,
12015         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
12016         conventions.
12017
12018 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
12019
12020         PR target/29943
12021         * varasm.c (use_blocks_for_decl_p): Return false for decls with
12022         alias attribute.
12023
12024 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
12025
12026         * doc/invoke.texi (-ftree-lrs): Remove.
12027
12028 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
12029
12030         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
12031         NULL.
12032
12033 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
12034
12035         * config/ia64/ia64.c (ia64_expand_builtin): Use the
12036         new CALL_EXPR_FN macro for retrieving the function
12037         declaration of the input expression.
12038
12039 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12040
12041         * c.opt (Waddress): New.
12042         * common.opt (Walways-true): Delete.
12043         (Wstring-literal-comparison): Delete.
12044         * doc/invoke.texi (Warning Options): Delete -Walways-true and
12045         -Wstring-literal-comparison. Add -Waddress.
12046         (Waddress): New.
12047         (Walways-true): Delete.
12048         (Wstring-literal-comparison): Delete.
12049         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
12050         consistently instead of -Walways-true in example.
12051         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
12052         * c-typeck.c (parser_build_binary_op): Replace
12053         -Wstring-literal-comparison and -Walways-true with -Waddress.
12054         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
12055         with -Waddress.
12056
12057 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12058
12059         * tree-cfg.c (dump_function_to_file): Be prepared for functions
12060         without DECL_STRUCT_FUNCTION initialized.
12061
12062 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
12063
12064         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
12065         due to calls to functions taking pointers as parameters.
12066
12067 2007-02-19  Richard Henderson  <rth@redhat.com>
12068
12069         PR debug/29558
12070         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
12071         in memory.
12072
12073 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
12074
12075         * config/s390/s390.c (s390_call_saved_register_used,
12076         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
12077         accessed to the new scheme.
12078
12079 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12080
12081         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
12082         (cris_print_index, cris_print_operand, cris_print_operand_address)
12083         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
12084         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
12085         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
12086         GET_CODE () == xxx.
12087         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
12088         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
12089         GO_IF_LEGITIMATE_ADDRESS): Ditto.
12090         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
12091         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
12092         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
12093         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
12094         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
12095         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
12096         (uminsi3, call, call_value): Ditto.
12097         (define_split: indir_to_reg_split, unnamed): Ditto.
12098
12099 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
12100
12101         PR tree-optimization/30975
12102         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
12103         wrong assert.
12104
12105 2007-02-18  Eric Christopher  <echristo@gmail.com>
12106
12107         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
12108         Remove use of arglist.
12109         (mips_expand_builtin): Remove use of arglist, pass in expr.
12110         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
12111         (mips_expand_builtin_movtf): Ditto.
12112         (mips_expand_builtin_compare): Ditto.
12113
12114 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
12115
12116         * tree-sra.c (sra_build_assignment): Replace assertion
12117         checking with a comment explaining why it can't be done.
12118
12119 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
12120
12121         PR middle-end/30833
12122         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
12123         during CALL_EXPR representation conversion.
12124         * tree-ssa-propagate.c (set_rhs): Likewise.
12125
12126 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
12127
12128         * tree-sra.c (sra_build_assignment): Disable assertion checking
12129         for now.
12130
12131 2007-02-18  Roger Sayle  <roger@eyesopen.com>
12132
12133         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
12134         instead of calling build2 with a GIMPLE_MODIFY_STMT.
12135         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
12136         Likewise.
12137         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
12138         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
12139         gimplify_init_ctor_eval_range, gimple_push_cleanup,
12140         gimplify_omp_for, gimplify_omp_atomic_pipeline,
12141         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
12142         force_gimple_operand): Likewise.
12143         * ipa-cp.c (constant_val_insert): Likewise.
12144         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
12145         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
12146         perfect_nestify): Likewise.
12147         * langhooks.c (lhd_omp_assignment): Likewise.
12148         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
12149         lower_copyprivate_clauses, lower_send_clauses,
12150         lower_send_shared_vars, expand_parallel_call,
12151         expand_omp_for_generic, expand_omp_for_static_nochunk,
12152         expand_omp_for_static_chunk, expand_omp_sections,
12153         lower_omp_single_copy, lower_omp_for_lastprivate,
12154         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
12155         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
12156         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
12157         Likewise.
12158
12159 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
12160
12161         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
12162         config/sh/sh.md: Follow spelling conventions.
12163
12164         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
12165         config/frv/predicates.md: Follow spelling conventions.
12166
12167         * config/m68k/linux-unwind.h: Fix a comment typo.
12168         * target.h: Follow spelling conventions.
12169
12170 2007-02-18  Roger Sayle  <roger@eyesopen.com>
12171
12172         PR rtl-optimization/28173
12173         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
12174         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
12175         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
12176         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
12177         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
12178
12179 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12180
12181         * builtins.c (fold_builtin_load_exponent): New.
12182         (fold_builtin_2): Use it.
12183
12184 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
12185
12186         PR rtl-optimization/30773
12187         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
12188         if we fail to attach a REG_EQUIV note.
12189
12190 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
12191             Roger Sayle  <roger@eyesopen.com>
12192
12193         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
12194
12195 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
12196
12197         * calls.c (initialize_argument_information): Pass original EXP
12198         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
12199         code to split complex arguments here, as part of initializing the
12200         ARGS array.
12201         (expand_call): Remove code that builds a list of arguments and
12202         inserts implicit arguments into it.  Instead, just count how many
12203         implicit arguments there will be so we can determine the size of
12204         the ARGS array, and let initialize_argument_information do the work.
12205         (split_complex_values): Delete unused function.
12206
12207 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
12208
12209         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
12210
12211 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
12212
12213         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
12214         for arg pointer based indexed addressing.
12215
12216 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
12217
12218         * config/ia64/ia64.h, config/ia64/ia64.md,
12219         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
12220         spelling conventions.
12221
12222 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
12223
12224         * config/m68k/m68k.c (split_di): New.
12225         * config/m68k/m68k-protos.h: Declare split_di.
12226         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
12227           Improve predicate handling and split constant shifts.
12228
12229 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
12230
12231         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
12232         parameter for register bitfield operations, general predicates
12233         cleanup
12234
12235 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
12236
12237         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
12238         * config/m68k/linux-unwind.h: New file.
12239
12240 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
12241
12242         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
12243         config/i386/athlon.md, config/ia64/ia64.md,
12244         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
12245         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
12246         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
12247         tree-ssa-loop-niter.c, tree-vect-analyze.c,
12248         tree-vect-transform.c: Fix comment typos.
12249
12250 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
12251
12252         * sched-deps.c (find_insn_list): Remove.
12253         * sched-int.h: Remove the prototype for find_insn_list.
12254
12255 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
12256
12257         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
12258         to linker.
12259         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
12260         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
12261         darwin_rs6000_override_options.
12262         (C_COMMON_OVERRIDE_OPTIONS): Expect
12263         darwin_macosx_version_min to be non-NULL always.
12264         (TARGET_C99_FUNCTIONS): Likewise.
12265         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
12266         (DARWIN_MINVERSION_SPEC): New.
12267         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
12268         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
12269         to cc1*.
12270         (DARWIN_MINVERSION_SPEC): New.
12271         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
12272         value.
12273         * config/darwin-c.c (darwin_cpp_builtins): Expect
12274         darwin_macosx_version_min to be non-NULL always.
12275
12276         * config/rs6000/rs6000.c: Clean up trailing whitespace.
12277
12278 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
12279
12280         * config/i386/i386.h (x86_use_xchgb): New.
12281         (TARGET_USE_XCHGB): New macro.
12282         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
12283         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
12284         Split after reload into bswaphi for shifts of 8.
12285         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
12286         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
12287         or when optimizing for size.
12288
12289 2007-02-16  Richard Guenther  <rguenther@suse.de>
12290             Christian Bruel  <christian.bruel@st.com>
12291
12292         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
12293         DECLs but prefer SSA_NAMEs over DECLs.
12294
12295 2007-02-16  Richard Guenther  <rguenther@suse.de>
12296
12297         * tree-flow-inline.h (single_imm_use_p): Remove.
12298         (zero_imm_uses_p): Likewise.
12299         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
12300         instead of single_imm_use_p.
12301         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
12302         zero_imm_uses_p.
12303
12304 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12305
12306         PR other/27843
12307         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
12308         nested double- and backquotes.
12309
12310 2007-02-15  Roger Sayle  <roger@eyesopen.com>
12311
12312         PR middle-end/30391
12313         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
12314         should be unreachable.
12315         (build2_stat): Allow construction of MODIFY_EXPR at any time.
12316         For the time being redirect GIMPLE_MODIFY_STMT to the new
12317         (renamed) build_gimple_modify_stmt_stat.
12318         (build2_gimple_stat): Rename to...
12319         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
12320         Always build a GIMPLE_MODIFY_STMT node.
12321         * tree.h (build2_gimple, build2_gimple_stat): Delete.
12322         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
12323         declarations.
12324
12325         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
12326         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
12327         * tree-complex.c (set_component_ssa_name, expand_complex_move,
12328         expand_complex_div_wide): Likewise.
12329         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
12330         * tree-ssa-loop-im.c (schedule_sm): Likewise.
12331         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
12332         * tree-ssa-loop-manip.c (create_iv): Likewise.
12333         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
12334         abs_replacement): Likewise.
12335         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
12336         realify_fake_stores): Likewise.
12337
12338         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
12339         node rather than a GIMPLE_MODIFY_STMT node.
12340         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
12341         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
12342         Likewise.
12343         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
12344         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
12345         GIMPLE_MODIFY_STMT.
12346
12347 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12348
12349         PR middle-end/30433
12350         * fold-const.c (fold_comparison): Add back the
12351         folding of constant complex comparisions.
12352
12353 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12354
12355         PR middle-end/30729
12356         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
12357         effects unknown to this function, return early.
12358
12359 2007-02-15  Ian Lance Taylor  <iant@google.com>
12360
12361         * lower-subreg.c (move_eh_region_note): New static function.
12362         (resolve_simple_move): Call it.
12363         (decompose_multiword_subregs): Track blocks for which we resolve a
12364         simple move which is also a control flow insn.  Pass them to
12365         find_many_sub_basic_blocks.
12366         (pass_lower_subreg): Add TODO_verify_flow.
12367         (pass_lower_subreg2): Likewise.
12368
12369 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12370             Brooks Moses  <brooks.moses@codesourcery.com>
12371             Lee Millward  <lee.millward@codesourcery.com>
12372
12373         * tree.h (enum tree_code_class): Add tcc_vl_exp.
12374         (VL_EXP_CLASS_P): New.
12375         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
12376         TREE_CODE_LENGTH.
12377         (TREE_OPERAND_CHECK_CODE): Likewise.
12378         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
12379         (TREE_RTL_OPERAND_CHECK): Likewise.
12380         (tree_operand_check_failed): Make second parameter the whole tree
12381         instead of its code.  Fixed callers.
12382         (VL_EXP_CHECK): New.
12383         (TREE_OPERAND_LENGTH): New.
12384         (VL_EXP_OPERAND_LENGTH): New.
12385         (CALL_EXPR_FN): New.
12386         (CALL_EXPR_STATIC_CHAIN): New.
12387         (CALL_EXPR_ARGS): New.
12388         (CALL_EXPR_ARG): New.
12389         (call_expr_nargs): New.
12390         (CALL_EXPR_ARGP): New.
12391         (build_nt_call_list): Declare.
12392         (build_vl_exp_stat): Declare.
12393         (build_vl_exp): New.
12394         (build_call_list): Declare.
12395         (build_call_nary): Declare.
12396         (build_call_valist): Declare.
12397         (build_call_array): Declare.
12398         (call_expr_arg): Declare.
12399         (call_expr_argp): Declare.
12400         (call_expr_arglist): Declare.
12401         (fold_build_call_list): Declare.
12402         (fold_build_call_list_initializer): Declare.
12403         (fold_call_expr): Declare to replace fold_builtin.
12404         (fold_builtin_fputs): Update to agree with modified definition.
12405         (fold_builtin_strcpy): Likewise.
12406         (fold_builtin_strncpy): Likewise.
12407         (fold_builtin_memory_chk): Likewise.
12408         (fold_builtin_stxcpy_chk): Likewise.
12409         (fold_builtin_strncpy_chk): Likewise.
12410         (fold_builtin_next_arg): Likewise.
12411         (fold_build_call_expr): Declare.
12412         (fold_builtin_call_list): Declare.
12413         (fold_builtin_call_valist): Declare.
12414         (build_call_expr): Declare.
12415         (validate_arglist): Update to agree with modified definition.
12416         (tree_operand_length): New.
12417         (call_expr_arg_iterator): New.
12418         (init_call_expr_arg_iterator): New.
12419         (next_call_expr_arg): New.
12420         (first_call_expr_arg): New.
12421         (more_call_expr_args_p): New.
12422         (FOR_EACH_CALL_EXPR_ARG): New.
12423
12424         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
12425         and tcc_gimple_stmt.
12426         (tree_code_size): Update documentation.  Use sizeof (tree) rather
12427         than sizeof (char *).
12428         (tree_size): Likewise.  Add case for tcc_vl_exp.
12429         (tree_node_structure): Add case for tcc_vl_exp.
12430         (contains_placeholder_p): Likewise.
12431         (substitute_in_expr): Likewise.
12432         (substitute_placeholder_in_expr): Likewise.
12433         (stabilize_reference_1): Likewise.
12434         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
12435         to diagnose breakage of this interface for constructing CALL_EXPRs.
12436         (build_nt): Add similar assertion here.
12437         (build_nt_call_list): New.
12438         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
12439         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
12440         TREE_CODE_LENGTH.
12441         (get_callee_fndecl): Use new CALL_EXPR accessors.
12442         (tree_operand_check_failed): Change parameters to pass entire node
12443         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
12444         (process_call_operands): New.
12445         (build_vl_exp_stat): New.
12446         (build_call_list): New.
12447         (build_call_nary): New.
12448         (build_call_valist): New.
12449         (build_call_array): New.
12450         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12451         (call_expr_arglist): New.
12452
12453         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
12454         tcc_vl_exp instead of a fixed-size tcc_expression.
12455
12456         * doc/c-tree.texi (CALL_EXPR): Document new representation and
12457         accessors for CALL_EXPRs.
12458         (AGGR_INIT_EXPR): Likewise.
12459
12460 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12461             Brooks Moses  <brooks.moses@codesourcery.com>
12462             Lee Millward  <lee.millward@codesourcery.com>
12463
12464         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
12465         (expand_builtin_nonlocal_goto): Change parameter to be entire
12466         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
12467         (expand_builtin_prefetch): Likewise.
12468         (expand_builtin_classify_type): Likewise.
12469         (mathfn_built_in): Return NULL_TREE instead of 0.
12470         (expand_errno_check): Use new CALL_EXPR accessors.
12471         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
12472         Return NULL_RTX instead of 0.
12473         (expand_builtin_mathfn_2): Likewise.
12474         (expand_builtin_mathfn_3): Likewise.
12475         (expand_builtin_interclass_mathfn): Likewise.
12476         (expand_builtin_sincos): Likewise.
12477         (expand_builtin_cexpi): Likewise.
12478         (expand_builtin_int_roundingfn): Likewise.
12479         (expand_builtin_int_roundingfn_2): Likewise.
12480         (expand_builtin_pow): Likewise.
12481         (expand_builtin_powi): Likewise.
12482         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
12483         of arglist, fixing callers appropriately.  Use new CALL_EXPR
12484         accessors and constructors.  Return NULL_RTX instead of 0.
12485         (expand_builtin_strstr): Likewise.
12486         (expand_builtin_strchr): Likewise.
12487         (expand_builtin_strrchr): Likewise.
12488         (expand_builtin_strpbrk): Likewise.
12489         (expand_builtin_memcpy): Likewise.
12490         (expand_builtin_mempcpy): Likewise.
12491         (expand_builtin_mempcpy_args): New.
12492         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
12493         (expand_builtin_memmove_args): New.
12494         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
12495         (expand_movstr): Likewise.
12496         (expand_builtin_strcpy): Likewise.
12497         (expand_builtin_strcpy_args): New.
12498         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
12499         (expand_builtin_strncpy): Likewise.
12500         (expand_builtin_memset): Likewise.
12501         (expand_builtin_memset_args): New.
12502         (expand_builtin_bzero): Similarly to expand_builtin_memset.
12503         (expand_builtin_memcmp): Likewise.
12504         (expand_builtin_strcmp): Likewise.
12505         (expand_builtin_strncmp): Likewise.
12506         (expand_builtin_strcat): Likewise.
12507         (expand_builtin_strncat): Likewise.
12508         (expand_builtin_strspn): Likewise.
12509         (expand_builtin_strcspn): Likewise.
12510         (expand_builtin_args_info): Likewise.
12511         (expand_builtin_va_start): Likewise.
12512         (gimplify_va_arg_expr): Likewise.
12513         (expand_builtin_va_end): Likewise.
12514         (expand_builtin_va_copy): Likewise.
12515         (expand_builtin_frame_address): Likewise.
12516         (expand_builtin_alloca): Likewise.
12517         (expand_builtin_bswap): Likewise.
12518         (expand_builtin_unop): Likewise.
12519         (expand_builtin_fputs): Likewise.
12520         (expand_builtin_expect): Likewise.
12521         (expand_builtin_fabs): Likewise.
12522         (expand_builtin_copysign): Likewise.
12523         (expand_builtin_printf): Likewise.
12524         (expand_builtin_fprintf): Likewise.
12525         (expand_builtin_sprintf): Likewise.
12526         (expand_builtin_init_trampoline): Likewise.
12527         (expand_builtin_signbit): Likewise.
12528         (expand_builtin_fork_or_exec): Likewise.
12529         (expand_builtin_sync_operation): Likewise.
12530         (expand_builtin_compare_and_swap): Likewise.
12531         (expand_builtin_lock_test_and_set): Likewise.
12532         (expand_builtin_lock_release): Likewise.
12533         (expand_builtin): Likewise.
12534         (builtin_mathfn_code): Likewise.
12535
12536         (fold_builtin_constant_p): Pass call arguments individually instead
12537         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
12538         accessors and constructors.  Return NULL_TREE instead of 0.
12539         (fold_builtin_expect): Likewise.
12540         (fold_builtin_classify_type): Likewise.
12541         (fold_builtin_strlen): Likewise.
12542         (fold_builtin_nan): Likewise.
12543         (integer_valued_real_p): Likewise.
12544         (fold_trunc_transparent_mathfn): Likewise.
12545         (fold_fixed_mathfn): Likewise.
12546         (fold_builtin_cabs): Likewise.
12547         (fold_builtin_sqrt): Likewise.
12548         (fold_builtin_cbrt): Likewise.
12549         (fold_builtin_cos): Likewise.
12550         (fold_builtin_cosh): Likewise.
12551         (fold_builtin_tan): Likewise.
12552         (fold_builtin_sincos): Likewise.
12553         (fold_builtin_cexp): Likewise.
12554         (fold_builtin_trunc): Likewise.
12555         (fold_builtin_floor): Likewise.
12556         (fold_builtin_ceil): Likewise.
12557         (fold_builtin_round): Likewise.
12558         (fold_builtin_int_roundingfn): Likewise.
12559         (fold_builtin_bitop): Likewise.
12560         (fold_builtin_bswap): Likewise.
12561         (fold_builtin_logarithm): Likewise.
12562         (fold_builtin_hypot): Likewise.
12563         (fold_builtin_pow): Likewise.
12564         (fold_builtin_powi): Likewise.
12565         (fold_builtin_exponent): Likewise.
12566         (fold_builtin_memset): Likewise.
12567         (fold_builtin_bzero): Likewise.
12568         (fold_builtin_memory_op): Likewise.
12569         (fold_builtin_bcopy): Deleted; call site changed to invoke
12570         fold_builtin_memory_op directly.
12571         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
12572         (fold_builtin_strncpy): Likewise.
12573         (fold_builtin_memcmp): Likewise.
12574         (fold_builtin_strcmp): Likewise.
12575         (fold_builtin_strncmp): Likewise.
12576         (fold_builtin_signbit): Likewise.
12577         (fold_builtin_copysign): Likewise.
12578         (fold_builtin_isascii): Likewise.
12579         (fold_builtin_toascii): Likewise.
12580         (fold_builtin_isdigit): Likewise.
12581         (fold_builtin_fabs): Likewise.
12582         (fold_builtin_abs): Likewise.
12583         (fold_builtin_fmin_fmax): Likewise.
12584         (fold_builtin_carg): Likewise.
12585         (fold_builtin_classify): Likewise.
12586         (fold_builtin_unordered_cmp): Likewise.
12587
12588         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
12589         New functions split out from fold_builtin_1.
12590         (fold_builtin_n): New.
12591         (fold_builtin_varargs): New.
12592         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
12593         instead.
12594         (fold_call_expr): New.
12595         (build_function_call_expr): Rewrite to use new helper function.
12596         (fold_builtin_call_list): New.
12597         (build_call_expr): New.
12598         (fold_builtin_call_valist): New.
12599         (rewrite_call_expr): New.
12600         (validate_arg): New.
12601         (validate_arglist): Change parameter to be entire CALL_EXPR instead
12602         of an arglist.  Change return type to bool.  Use new CALL_EXPR
12603         accessors.
12604
12605         (fold_builtin_strstr):  Pass call arguments individually instead
12606         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
12607         accessors and constructors.  Return NULL_TREE instead of 0.
12608         (fold_builtin_strchr): Likewise.
12609         (fold_builtin_strrchr): Likewise.
12610         (fold_builtin_strpbrk): Likewise.
12611         (fold_builtin_strcat): Likewise.
12612         (fold_builtin_strncat): Likewise.
12613         (fold_builtin_strspn): Likewise.
12614         (fold_builtin_strcspn): Likewise.
12615         (fold_builtin_fputs): Likewise.
12616         (fold_builtin_next_arg): Likewise.
12617         (fold_builtin_sprintf): Likewise.
12618
12619         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
12620         NULL_RTX instead of 0.
12621         (expand_builtin_memory_chk): Likewise.
12622         (maybe_emit_chk_warning): Likewise.
12623         (maybe_emit_sprintf_chk_warning): Likewise.
12624
12625         (fold_builtin_object_size): Pass call arguments individually instead
12626         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
12627         accessors and constructors.  Return NULL_TREE instead of 0.
12628         (fold_builtin_memory_chk): Likewise.
12629         (fold_builtin_stxcpy_chk): Likewise.
12630         (fold_builtin_strncpy_chk): Likewise.
12631         (fold_builtin_strcat_chk): Likewise.
12632         (fold_builtin_strcat_chk): Likewise.
12633         (fold_builtin_strncat_chk): Likewise.
12634         (fold_builtin_sprintf_chk): Likewise.
12635         (fold_builtin_snprintf_chk): Likewise.
12636         (fold_builtin_printf): Likewise.
12637         (fold_builtin_vprintf): Likewise.
12638
12639         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
12640         constructors.
12641         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
12642         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12643         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
12644         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
12645         (fold_unary): Likewise.
12646         (fold_binary): Likewise.
12647         (fold_ternary): Remove CALL_EXPR case, since they are no longer
12648         ternary expressions.
12649         (fold): Add logic for tcc_vl_exp.
12650         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
12651         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12652         (fold_build3_stat): Add assertion to flag broken interface for
12653         constructing CALL_EXPRs.
12654         (fold_build_call_list): New.
12655         (fold_build_call_list_initializer): New.
12656         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
12657         constructors.
12658         (fold_strip_sign_ops): Likewise.
12659
12660 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12661             Brooks Moses  <brooks.moses@codesourcery.com>
12662             Lee Millward  <lee.millward@codesourcery.com>
12663
12664         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
12665         accessors and dump arguments explicitly.
12666
12667         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
12668         TREE_CODE_LENGTH.
12669         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
12670         explicitly.
12671         (print_call_name): Use new CALL_EXPR accessors.
12672
12673         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
12674         CALL_EXPR arguments explicitly instead of as a list.  Use
12675         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12676
12677         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
12678         (vrp_visit_stmt): Likewise.
12679
12680         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
12681         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
12682         TREE_CODE_LENGTH.
12683         (force_move_till_expr): Likewise.
12684
12685         * targhooks.c (default_external_stack_protect_fail): Use
12686         build_call_expr instead of build_function_call_expr.
12687         (default_hidden_stack_protect_fail): Likewise.
12688
12689         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
12690         build the call.
12691
12692         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
12693         and walk arguments explicitly.
12694
12695         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
12696         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12697         (expand_simple_operations): Likewise.
12698         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
12699
12700         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
12701         of TREE_CODE_LENGTH.
12702         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
12703
12704         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
12705         instead of TREE_CODE_LENGTH.
12706
12707         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
12708         (tree_ic_transform): Likewise.
12709         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
12710         parameter instead of arglist.  Fix callers.
12711         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
12712         (tree_stringops_transform): Likewise.
12713         (tree_indirect_call_to_profile): Likewise.
12714         (tree_stringops_values_to_profile): Likewise.
12715
12716         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
12717         (eliminate_tail_call): Likewise.
12718
12719         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
12720
12721         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12722         Use TREE_OPERAND_LENGTH and generalize to handle any number of
12723         operands.
12724         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
12725
12726         * omp-low.c (build_omp_barrier): Use build_call_expr.
12727         (lower_rec_input_clauses): Likewise.
12728         (lower_reduction_clauses): Likewise.
12729         (expand_parallel_call): Likewise.
12730         (maybe_catch_exception): Likewise.
12731         (expand_omp_for_generic): Likewise.
12732         (expand_omp_for_static_nochunk): Likewise.
12733         (expand_omp_sections): Likewise.
12734         (lower_omp_single_simple): Likewise.
12735         (lower_omp_single_copy): Likewise.
12736         (lower_omp_master): Likewise.
12737         (lower_omp_ordered): Likewise.
12738         (lower_omp_critical): Likewise.
12739
12740         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
12741         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
12742
12743         * tree-gimple.c (is_gimple_call_addr): Fix doc.
12744         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
12745         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
12746
12747         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
12748         and generalize to handle any number of operands.
12749         (chrec_contains_undetermined): Likewise.
12750         (tree_contains_chrecs): Likewise.
12751         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
12752
12753         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
12754
12755         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
12756         fold_call_expr instead of fold_builtin.
12757         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
12758         match declarations there.
12759         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
12760         updates.
12761
12762         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
12763         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12764
12765         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
12766         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
12767
12768         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
12769         accessors.
12770
12771         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
12772         (execute_cse_sincos): Use new CALL_EXPR accessors.
12773
12774         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
12775
12776         * gimple-low.c (lower_function_body): Use build_call_expr.
12777         (lower_builtin_setjmp): Likewise.
12778
12779         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
12780         (set_storage_via_libcall): Likewise.
12781         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
12782         instead of TREE_CODE_LENGTH.
12783         (expand_expr_real_1): Use new CALL_EXPR accessors.
12784
12785         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
12786         generalize to handle any number of operands.
12787         (TB_parent_eq): Likewise.
12788
12789         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
12790         (strip_builtin_expect): Likewise.
12791
12792         * function.c (gimplify_parameters): Use build_call_expr.
12793
12794         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
12795         instead of TREE_CODE_LENGTH.
12796
12797         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
12798         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
12799
12800         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
12801         iterators.
12802
12803         * gimplify.c (build_stack_save_restore): Use build_call_expr.
12804         (gimplify_decl_expr): Likewise.
12805         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
12806         Use new CALL_EXPR iterators.
12807         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
12808         (gimplify_modify_expr_to_memset): Likewise.
12809         (gimplify_variable_sized_compare): Likewise.
12810         (gimplify_omp_atomic_fetch_op): Likewise.
12811         (gimplify_omp_atomic_pipeline): Likewise.
12812         (gimplify_omp_atomic_mutex): Likewise.
12813         (gimplify_function_tree): Likewise.
12814
12815         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
12816         (call_expr_flags): Likewise.
12817         (expand_call): Likewise.
12818
12819         * except.c (expand_builtin_eh_return_data_regno): Pass entire
12820         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
12821         accessors.
12822
12823         * coverage.c (create_coverage): Use build_call_expr.
12824
12825         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
12826         (temp_call_expr_obstack): New.
12827         (pool_copy_list): Delete.
12828         (temp_copy_call_expr): New.
12829         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
12830         CALL_EXPR accessors.  Get rid of special goo for copying argument
12831         lists and use temp_copy_call_expr instead.
12832         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
12833         CALL_EXPR accessors.
12834         (create_expression_by_pieces): Likewise.  Use build_call_array
12835         to construct the result instead of fold_build3.
12836         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
12837         dealing with argument lists.
12838         (init_pre): Remove references to expression_node_pool and
12839         list_node_pool.  Init temp_call_expr_obstack instead.
12840         (fini_pre): Remove references to expression_node_pool and
12841         list_node_pool.
12842
12843         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
12844         and walk arguments explicitly instead of as a list.
12845
12846         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
12847         (mx_register_decls): Likewise.
12848         (mudflap_register_call): Likewise.
12849         (mudflap_finish_file): Likewise.
12850
12851         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
12852         (ipa_callsite_compute_param): Likewise.
12853
12854         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
12855         accessors and constructor.
12856
12857         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
12858         accessors and constructor.
12859         (convert_tramp_reference): Likewise.
12860         (convert_call_expr): Likewise.
12861         (finalize_nesting_tree_1): Likewise.
12862
12863         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
12864         accessors.
12865
12866         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
12867
12868         * tree-inline.c (initialize_inlined_parameters): Pass entire
12869         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
12870         accessors.
12871         (estimate_num_insns_1): Use new CALL_EXPR accessors.
12872         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
12873
12874         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
12875         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12876         (vectorizable_reduction): Likewise.
12877         (vectorizable_call): Use new CALL_EXPR iterators.
12878         (vectorizable_conversion): Use build_call_expr.
12879         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
12880         (vect_gen_widened_results_half): Use build_call_expr.
12881         (vect_setup_realignment): Likewise.
12882         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
12883
12884         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
12885         (pass_through_call): Likewise.
12886         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
12887         fold_builtin.
12888
12889         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
12890         (tree_gen_pow2_profiler): Likewise.
12891         (tree_gen_one_value_profiler): Likewise.
12892         (tree_gen_ic_func_profiler): Likewise.
12893         (tree_gen_average_profiler): Likewise.
12894         (tree_gen_ior_profiler): Likewise.
12895
12896         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
12897         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
12898         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
12899
12900         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
12901         of TREE_CODE_LENGTH.
12902
12903         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
12904         of TREE_CODE_LENGTH.
12905
12906         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
12907         constructor.
12908         (convert_to_integer): Likewise.
12909
12910         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
12911         accessors.
12912
12913 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12914             Brooks Moses  <brooks.moses@codesourcery.com>
12915             Lee Millward  <lee.millward@codesourcery.com>
12916
12917         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
12918         accessors.
12919         * config/frv/frv.c (frv_expand_builtin): Likewise.
12920         * config/s390/s390.c (s390_expand_builtin): Likewise.
12921
12922         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
12923         (sparc_expand_builtin): Use new CALL_EXPR accessors.
12924
12925         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
12926         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
12927         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
12928         (ix86_expand_store_builtin): Likewise.
12929         (ix86_expand_unop_builtin): Likewise.
12930         (ix86_expand_unop1_builtin): Likewise.
12931         (ix86_expand_sse_compare): Likewise.
12932         (ix86_expand_sse_comi): Likewise.
12933         (ix86_expand_vec_init_builtin): Likewise.
12934         (ix86_expand_vec_ext_builtin): Likewise.
12935         (ix86_expand_vec_set_builtin): Likewise.
12936         (ix86_expand_builtin): Use new CALL_EXPR accessors.
12937
12938         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
12939         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
12940
12941         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
12942         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
12943         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
12944
12945         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
12946         build_call_expr.
12947         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
12948         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
12949         arglist.  Use new CALL_EXPR accessors.  Fix callers.
12950         (altivec_expand_abs_builtin): Likewise.
12951         (rs6000_expand_binop_builtin): Likewise.
12952         (altivec_expand_predicate_builtin): Likewise.
12953         (altivec_expand_lv_builtin): Likewise.
12954         (spe_expand_stv_builtin): Likewise.
12955         (altivec_expand_stv_builtin): Likewise.
12956         (rs6000_expand_ternop_builtin): Likewise.
12957         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
12958         (altivec_expand_st_builtin): Likewise.
12959         (altivec_expand_dst_builtin): Likewise.
12960         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
12961         arglist.  Use new CALL_EXPR accessors.  Fix callers.
12962         (altivec_expand_vec_set_builtin): Likewise.
12963         (altivec_expand_vec_ext_builtin): Likewise.
12964         (altivec_expand_builtin): Use new CALL_EXPR accessors.
12965         (spe_expand_builtin): Likewise.
12966         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
12967         arglist.  Use new CALL_EXPR accessors.  Fix callers.
12968         (spe_expand_evsel_builtin): Likewise.
12969         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
12970         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
12971
12972         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
12973         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
12974         (arm_expand_unop_builtin): Likewise.
12975         (arm_expand_builtin): Use new CALL_EXPR accessors.
12976
12977         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
12978         accessors.
12979
12980         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
12981         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
12982         (bfin_expand_unop_builtin): Likewise.
12983         (bfin_expand_builtin): Use new CALL_EXPR accessors.
12984
12985 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12986             Brooks Moses  <brooks.moses@codesourcery.com>
12987             Lee Millward  <lee.millward@codesourcery.com>
12988
12989         * c-semantics.c (build_stmt): Add internal diagnostic check.
12990
12991         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
12992         accessors.  Print arguments explicitly instead of as a list.
12993
12994         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
12995
12996         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
12997         (c_finish_omp_flish): Likewise.
12998
12999         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
13000         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
13001         instead of TREE_CODE_LENGTH.
13002         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
13003         (c_warn_unused_result): Likewise.
13004
13005 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13006
13007         PR c/26494
13008         * doc/invoke.texi (Warning Options): Remove
13009         -Werror-implicit-function-declaration.
13010         (Wimplicit-function-declaration): Update description.
13011         * opts.c (common_handle_option): Move handling of -Werror=* to...
13012         (enable_warning_as_error): ...here.
13013         * opts.h (enable_warning_as_error): Declare.
13014         * c-decl.c (implicit_decl_warning): Unless
13015         -Wno-implicit-function-declaration is given, emit a pedwarn if
13016         -std=c99 or emit a warning if -Wimplicit-function-declaration.
13017         * c.opt (Wimplicit-function-declaration): Replace
13018         mesg_implicit_function_declaration with
13019         warn_implicit_function_declaration.
13020         * c-opts.c (c_common_handle_option):
13021         -Werror-implicit-function-declaration is exactly equal as
13022         -Werror=implicit-function-declaration.
13023         (set_Wimplicit): Replace mesg_implicit_function_declaration with
13024         warn_implicit_function_declaration.
13025         (c_common_post_options): -Wimplict-function-declaration is enabled
13026         by default by -std=c99, otherwise is disabled by default.
13027         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
13028
13029 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
13030
13031         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
13032         DECL on the rhs to a DECL on the lhs for debug info purposes if the
13033         former is ignored but not the latter.
13034
13035 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
13036
13037         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
13038         is made and the reference doesn't use the alias set of its type,
13039         do not create the temporary using that type.
13040
13041 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
13042
13043         * jump.c: Remove prototypes for delete_computation and
13044         delete_prior_computation.
13045
13046 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
13047
13048         * jump.c (get_label_after): Delete.
13049         (get_label_before, delete_computation, delete_jump,
13050         delete_prior_computation, follow_jumps): Move...
13051         * reorg.c (delete_computation, delete_prior_computation): ... here...
13052         (get_label_before, delete_jump): ... making these static ...
13053         (follow_jumps): ... and simplifying this since it only runs after
13054         reload.
13055         * rtl.h (get_label_after, get_label_before, delete_jump,
13056         follow_jumps): Delete prototypes.
13057
13058 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
13059
13060         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
13061
13062 2007-02-15  Nick Clifton  <nickc@redhat.com>
13063
13064         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
13065         order to prevent it from being munged by the target.
13066
13067 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
13068
13069         * config/i386/i386.md: Remove misleading comment.
13070
13071 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13072
13073         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
13074         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
13075         invalid patterns.
13076
13077 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13078
13079         * tree-sra.c (instantiate_missing_elements): Canonicalize
13080         bit-field types.
13081         (sra_build_assignment): New.
13082         (generate_copy_inout, generate_element_copy,
13083         generate_element_zero, generate_one_element_init): Use it.
13084
13085 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13086
13087         * tree-sra.c (instantiate_missing_elements): Canonicalize
13088         bit-field types.
13089         (sra_build_assignment): New.
13090         (generate_copy_inout, generate_element_copy,
13091         generate_element_zero, generate_one_element_init): Use it.
13092
13093 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
13094
13095         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
13096         limbo die nodes.
13097
13098 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
13099
13100         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
13101         types as aggregates not scalars.
13102         * function.c (assign_stack_temp_for_type): Likewise.
13103
13104 2007-02-14  Roger Sayle  <roger@eyesopen.com>
13105             Zdenek Dvorak  <dvorakz@suse.cz>
13106
13107         * tree-dump.c (dump_switch_p_1): Require exact match of the option
13108         name.
13109
13110 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
13111
13112         * passes.c (next_pass_1): Clear the next field of the copied
13113         pass structure.
13114
13115 2007-02-14  Richard Henderson  <rth@redhat.com>
13116
13117         * tree-sra.c (early_sra): New.
13118         (decl_can_be_decomposed_p): Deny va_list if early_sra.
13119         (tree_sra_early, pass_sra_early): New.
13120         * tree-pass.h (pass_sra_early): Declare.
13121         * passes.c (init_optimization_passes): Use it.
13122
13123 2007-02-14  Richard Guenther  <rguenther@suse.de>
13124
13125         * flags.h (issue_strict_overflow_warning): Convert to a macro.
13126
13127 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
13128
13129          PR tree-optimization/30771
13130         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
13131         also phi nodes.
13132         (vect_analyze_operations): Induction phis can now be marked as
13133         used_in_loop.
13134         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
13135         Update documentation accordingly.
13136
13137 2007-02-14  Nick Clifton  <nickc@redhat.com>
13138
13139         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
13140         most 3 arguments are supported.
13141         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
13142
13143 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
13144
13145         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
13146         Ensure dst->current is valid.
13147
13148 2007-02-13  Paul Brook  <paul@codesourcery.com>
13149
13150         * config.gcc: Add arm*-*-uclinux-*eabi.
13151         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
13152         (SUBTARGET_EXTRA_LINK_SPEC): Define.
13153         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
13154         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
13155         (LINK_SPEC): Define.
13156         (LIB_SPEC): Define.
13157         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
13158         register.
13159         * config/arm/uclinux-eabi.h: New file.
13160         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
13161         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
13162         based targets.
13163
13164 2007-02-13  Ian Lance Taylor  <iant@google.com>
13165
13166         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
13167         * flags.h (warn_strict_overflow): Declare.
13168         (enum warn_strict_overflow_code): Define.
13169         (issue_strict_overflow_warning): New static inline function.
13170         * opts.c (warn_strict_overflow): New variable.
13171         (common_handle_option): Handle OPT_Wstrict_overflow and
13172         OPT_Wstrict_overflow_.
13173         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
13174         OPT_Wall.
13175         * fold-const.c: Include intl.h.
13176         (fold_deferring_overflow_warnings): New static variable.
13177         (fold_deferred_overflow_warning): New static variable.
13178         (fold_deferred_overflow_code): New static variable.
13179         (fold_defer_overflow_warnings): New function.
13180         (fold_undefer_overflow_warnings): New function.
13181         (fold_undefer_and_ignore_overflow_warnings): New function.
13182         (fold_deferring_overflow_warnings_p): New function.
13183         (fold_overflow_warning): New static function.
13184         (make_range): Add strict_overflow_p parameter.  Change all
13185         callers.
13186         (extract_muldiv, extract_muldiv_1): Likewise.
13187         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
13188         tree_expr_nonnegative_p.
13189         (fold_negate_expr): Call fold_overflow_warning.
13190         (fold_range_test): Likewise.
13191         (fold_comparison): Likewise.
13192         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
13193         instead of tree_expr_nonnegative_p.
13194         (tree_expr_nonnegative_warnv_p): Rename from
13195         tree_expr_nonnegative_p, add strict_overflow_p parameter.
13196         (tree_expr_nonnegative_p): New function.
13197         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
13198         strict_overflow_p parameter.
13199         (tree_expr_nonzero_p): New function.
13200         * passes.c (verify_interpass_invariants): New static function.
13201         (execute_one_pass): Call it.
13202         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
13203         warnings.
13204         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
13205         (estimate_numbers_of_iterations): Likewise.
13206         (scev_probably_wraps_p): Likewise.
13207         * tree-ssa-ccp.c: Include "toplev.h".
13208         (evaluate_stmt): Defer fold overflow warnings until we know we are
13209         going to optimize.
13210         (struct fold_stmt_r_data): Add stmt field.
13211         (fold_stmt_r): Defer fold overflow warnings until we know we
13212         optimized.
13213         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
13214         (fold_stmt_inplace): Likewise.
13215         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
13216         (cleanup_control_expr_graph): Defer fold overflow warnings until
13217         we know we are going to optimize.
13218         * tree-cfg.c (fold_cond_expr_cond): Likewise.
13219         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
13220         Likewise.
13221         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13222         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
13223         * tree-ssa-loop-manip.c (create_iv): Likewise.
13224         * c-typeck.c (build_conditional_expr): Likewise.
13225         (build_binary_op): Likewise.
13226         * tree-vrp.c (vrp_expr_computes_nonzero): Call
13227         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
13228         (extract_range_from_unary_expr): Likewise.
13229         * simplify-rtx.c (simplify_const_relational_operation): Warn when
13230         assuming that signed overflow does not occur.
13231         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
13232         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
13233         (fold_defer_overflow_warnings): Declare.
13234         (fold_undefer_overflow_warnings): Declare.
13235         (fold_undefer_and_ignore_overflow_warnings): Declare.
13236         (fold_deferring_overflow_warnings_p): Declare.
13237         (tree_expr_nonzero_warnv_p): Declare.
13238         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
13239         of warning options.
13240         (Warning Options): Document -Wstrict-overflow.
13241         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
13242         (tree-ssa-ccp.o): Likewise.
13243         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
13244         (fold-const.o): Depend on intl.h.
13245
13246 2007-02-13  Ian Lance Taylor  <iant@google.com>
13247
13248         PR middle-end/30751
13249         * lower-subreg.c (resolve_simple_move): Decompose subregs in
13250         addresses.
13251
13252 2007-02-13  Stuart Hastings  <stuart@apple.com>
13253
13254         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
13255
13256 2007-02-13  Richard Henderson  <rth@redhat.com>
13257
13258         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
13259         handled_component_p before looking for the indirect_ref.
13260
13261 2007-02-13  Richard Henderson  <rth@redhat.com>
13262
13263         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
13264         remove flags clobber.
13265         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
13266         (bswaphi_lowpart): New.
13267         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
13268         remove TARGET_BSWAP test.  Delete expander of the same name.
13269
13270         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
13271         (expand_unop): Use them.
13272
13273 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
13274
13275         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
13276         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
13277         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
13278         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
13279         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
13280         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
13281         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
13282         assembler dialect choice from asm templates.
13283
13284 2007-02-12  Richard Henderson  <rth@redhat.com>
13285
13286         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
13287         (fixuns_trunc<SSEMODEF>si2): Use it.
13288         * config/i386/sse.md (vec_setv4sf_0): Export.
13289         * config/i386/i386.c (ix86_build_const_vector): Export.
13290         (ix86_split_convert_uns_si_sse): Rename from
13291         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
13292         * config/i386/i386-protos.h: Update.
13293
13294 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13295
13296         PR c/29521
13297         * c-typeck.c (c_finish_return): Improve warning message.
13298
13299 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13300
13301         * alias.c (find_symbolic_term): Delete unused function.
13302
13303 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
13304
13305         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
13306         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
13307         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
13308
13309 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13310
13311         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
13312         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
13313         the function, temporarily point the debug interface to the null one.
13314
13315 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13316
13317         * dwarf2out.c (round_up_to_align): New static function.
13318         (field_byte_offset): Use it to round the offset.
13319
13320 2007-02-12  Richard Henderson  <rth@redhat.com>
13321
13322         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
13323         (inswl_const): Export.
13324
13325 2007-02-12  Richard Henderson  <rth@redhat.com>
13326
13327         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
13328         result mode of the libcall, convert back to outmode.
13329
13330 2007-02-12  Roger Sayle  <roger@eyesopen.com>
13331
13332         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
13333         (bswapdi2): New define_expand to implement 32-bit implementation.
13334
13335 2007-02-12  Nick Clifton  <nickc@redhat.com>
13336
13337         * doc/invoke.texi (Overall Options): Document --help=.
13338         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
13339         (cc1_options): Pass --help= on to cc1.
13340         (display_help): Add description of --help=.
13341         (process_command): Add code to handle --help=.  Allow translated
13342         --help and --target-help switches to be passed on to compiler
13343         sub-process.
13344         (main): Remove unused if statement.
13345         * opts.c (columns): Remove.
13346         (LEFT_COLUMN): Define.
13347         (wrap_help): Add columns argument.
13348         (print_filtered_help): Change parameters to be an include bitmask,
13349         an exclude bitmask, an any bitmask and the column width.  Move the
13350         code to display the params list here.  Add code to display the
13351         status of options rather than their descriptions if the quiet flag
13352         is not active.
13353         (print_specific_help): Change parameters to be an include bitmask,
13354         an exclude bitmask and an any bitmask.  Move code to look up the
13355         column width here.  Decide upon the title for an options listing.
13356         (common_handle_options): Add code to handle --help=.  Adapt code
13357         for --help and --target-help to use the revised form of the
13358         print_specific_help function.
13359         (print_help): Delete.
13360         (print_param_help): Delete.
13361         (print_switch): Delete.
13362         * opts.h (cl_lang_count): Add prototype.
13363         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
13364         CL_MAX_OPTION_CLASS): New defines.
13365         * optc-gen.awk: Add construction of cl_lang_count.
13366         * c.opt: Add Warning attribute to warning options and Optimization
13367         attribute to optimization options.
13368         * common.opt: Likewise.
13369         Add --help=.
13370         Add -fhelp and -ftarget-help as aliases for the transformed --help
13371         and --target-help options.
13372         * opt-functions.awk: Add code to handle Warning and Optimization
13373         attributes.
13374
13375 2007-02-12  Richard Henderson  <rth@redhat.com>
13376
13377         * config/alpha/constraints.md: New file.
13378         * config/alpha/alpha.c: Include tm-constrs.h.
13379         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
13380         alpha_extra_constraint): Remove.
13381         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
13382         * config/alpha/alpha-protos.h: Update.
13383         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
13384         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
13385         (EXTRA_CONSTRAINT): Remove.
13386         * config/alpha/alpha.md: Include constraints.md.
13387         (adddi splitter): Use satisfies_constraint_*.
13388         * config/alpha/predicates.md (add_operand): Likewise.
13389         (sext_add_operand, addition_operation): Likewise.
13390
13391 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
13392
13393         PR tree-optimization/29145
13394         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
13395         in our handling of restrict qualified pointers.
13396
13397 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13398
13399         PR middle-end/7651
13400         * doc/invoke.texi (Wunused-value): Update description.
13401         (Wextra): Delete item.
13402         * opts.c (set_Wextra): Don't use the value of Wextra to set the
13403         value of Wunused-value.
13404         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
13405         (c_finish_stmt_expr): Don't check extra_warnings.
13406         (emit_side_effect_warnings): The caller is responsible to check
13407         warn_unused_value.
13408
13409 2007-02-11  Roger Sayle  <roger@eyesopen.com>
13410             Matt Thomas  <matt@3am-software.com>
13411
13412         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
13413
13414 2007-02-11  Roger Sayle  <roger@eyesopen.com>
13415
13416         * simplify-rtx.c (simplify_relational_operation_1): Optimize
13417         comparisons of POPCOUNT against zero.
13418         (simplify_const_relational_operation): Likewise.
13419
13420 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13421
13422         * doc/invoke.texi (Wextra): Delete outdated paragraph.
13423
13424 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13425
13426         * dwarf2out.c (root_type): Delete unused function.
13427
13428 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13429
13430         * genattrtab.c (contained_in_p): Delete unused function.
13431         (write_expr_attr_cache): Likewise.
13432
13433 2007-02-11  Jan Hubicka  <jh@suse.cz>
13434
13435         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
13436         previous patch.
13437
13438 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
13439
13440         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
13441         to add the REG_EQ* note.
13442         * see.c (see_merge_one_use_extension): Likewise.
13443         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
13444         turn REG_EQUAL notes into REG_EQUIV notes if the target
13445         register may have more than one set.
13446         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
13447         * gcse.c (try_replace_reg): Likewise.
13448         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
13449         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
13450         more than one REG_EQUIV note.
13451         * reload1.c (gen_reload): Use set_unique_reg_note.
13452
13453 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
13454
13455         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
13456         (ix86_builtin_conversion): New function.
13457
13458 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
13459
13460         PR target/29487
13461         * tree.h (DECL_REPLACEABLE_P): New macro.
13462         * except.c (set_nothrow_function_flags): Likewise.
13463
13464 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
13465             Ira Rosen  <irar@il.ibm.com>
13466             Dorit Nuzman  <dorit@il.ibm.com>
13467
13468         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
13469         * targhooks.c (default_builtin_vectorized_conversion): New.
13470         * targhooks.h (default_builtin_vectorized_function): New declaration.
13471         * target.h (struct vectorize): Add builtin_conversion field.
13472         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
13473         stmt_vec_info_type value.
13474         (vectorizable_conversion): New declaration.
13475         * tree-vect-analyze.c (vect_analyze_operations): Add
13476         vectorizable_conversion call.
13477         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
13478         * tree-vect-transform.c (vectorizable_conversion): New function.
13479         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
13480         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
13481         mode.
13482         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
13483         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
13484         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
13485         or ALTIVEC_BUILTIN_VCFSX.
13486
13487 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13488
13489         PR target/30634
13490         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
13491         CONST_DOUBLE and operand 0 is a hard register.
13492         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
13493         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
13494         is a hard floating-point register.
13495
13496 2007-02-10  Richard Henderson  <rth@redhat.com>
13497             Jakub Jelinek  <jakub@redhat.com>
13498             Alexandre Oliva  <aoliva@redhat.com>
13499
13500         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
13501         * builtin-types.def (BT_WORD): Make unsigned.
13502         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
13503         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
13504         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
13505         * c-decl.c (grokdeclarator): Don't error if !have_tls.
13506         * c-parser.c (c_parser_omp_threadprivate): Likewise.
13507         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
13508         emulated tls.
13509         * expr.c (emutls_var_address): New.
13510         (expand_expr_real_1): Expand emulated tls.
13511         (expand_expr_addr_expr_1): Likewise.
13512         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
13513         * output.h (emutls_finish): Declare.
13514         * toplev.c (compile_file): Call it.
13515         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
13516         address before wrapping in CONST.
13517         * varasm.c (emutls_htab, emutls_object_type): New.
13518         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
13519         (get_emutls_object_name, get_emutls_object_type): New.
13520         (get_emutls_init_templ_addr, emutls_decl): New.
13521         (emutls_common_1, emutls_finish): New.
13522         (assemble_variable): When emulating tls, swap decls; generate
13523         constructor for the emutls objects.
13524         (do_assemble_alias): When emulating tls, swap decl and target name.
13525         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
13526         for emulated tls.
13527         * varpool.c (decide_is_variable_needed): Look at force_output.
13528         Recurse for emulated tls.
13529         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
13530         with decide_is_variable_needed.
13531         * emutls.c: New file.
13532         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
13533         tls_object for real tls.
13534
13535 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
13536
13537         PR rtl-optimization/29599
13538         * reload1.c (eliminate_regs_in_insn): Take the destination
13539         mode into account when computing the offset.
13540
13541 2007-02-09  Stuart Hastings  <stuart@apple.com>
13542             Richard Henderson  <rth@redhat.com>
13543
13544         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
13545         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
13546         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
13547         fixuns_truncdfhi2): New.
13548         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
13549         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
13550         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
13551         (floatunssidf2): Allow nonimmediate source.
13552         * config/i386/sse.md (movdi_to_sse): New.
13553         (vec_concatv2di): Drop '*'.
13554         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
13555         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
13556         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
13557         New.
13558         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
13559         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
13560         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
13561         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
13562         (ix86_build_signbit_mask): Fix decl of v, refactor to call
13563         ix86_build_const_vector.
13564         (x86_emit_floatuns): Rewrite.
13565
13566 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13567
13568         * genautomata.c (longest_path_length): Delete unused function.
13569         (struct state): Delete unused longest_path_length.
13570         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
13571         (get_free_state): Delete unused.
13572
13573 2007-02-09  Jan Hubicka  <jh@suse.cz>
13574
13575         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
13576         * doc/invoke.texi (inline-unit-growth): Update default value.
13577
13578         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
13579         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
13580         (rebuild_cgraph_edges): Likewise.
13581         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
13582         (dump_cgraph_node): Dump frequencies.
13583         (cgraph_clone_edge): Add frequency scales.
13584         (cgraph_clone_node): Add freuqnecy.
13585         * cgraph.h (cgraph_edge): Add freuqnecy argument.
13586         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
13587         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
13588         * tree-pass.h (TODO_rebuild_frequencies): New constant.
13589         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
13590         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
13591         (save_inline_function_body): Likewise.
13592         * ipa-inline.c: inluce rtl.h
13593         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
13594         (cgraph_edge_badness): Use frequencies.
13595         (cgraph_decide_recursive_inlining): Update clonning.
13596         (cgraph_decide_inlining_of_small_function): Dump frequency.
13597         * predict.c (estimate_bb_frequencies): Export.
13598         * predict.h (estimate_bb_frequencies): Declare.
13599         * tree-inline.c (copy_bb): Watch overflows.
13600         (expand_call_inline): Update call of cgraph_create_edge.
13601         (optimize_inline_calls): Use TODO flags to update frequnecies.
13602         * passes.h: Include predict.h
13603         (init_optimization_passes): Move profile ahead.
13604         (execute_function_todo): Handle TODO_rebuild_frequencies.
13605
13606 2007-02-09  Roger Sayle  <roger@eyesopen.com>
13607
13608         * config/alpha/alpha.c (emit_insxl): Force the first operand of
13609         the insbl or inswl pattern into a register.
13610
13611 2007-02-09  Roger Sayle  <roger@eyesopen.com>
13612
13613         * config/ia64/ia64.md (bswapdi2): New define_insn.
13614
13615 2007-02-09  Richard Henderson  <rth@redhat.com>
13616
13617         * config/i386/constraints.md (Ym): New constraint.
13618         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
13619         (movdi_1_rex64): Split sse and xmm general register moves from
13620         memory move alternatives.  Use conditional register constraints.
13621         (movsf_1, movdf_integer): Likewise.
13622         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
13623         (movdf_integer_rex64): New.
13624         (pushsf_rex64): Fix output constraints.
13625         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
13626         (sse2_stored): Likewise.
13627         (sse2_storeq_rex64): New.
13628         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
13629         amd and not generic.
13630         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
13631         for optimize_size.  Remove SF/DFmode hack.
13632
13633 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13634
13635         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
13636         (bit_SSE4a): New.
13637
13638 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
13639             Richard Sandiford  <richard@codesourcery.com>
13640
13641         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
13642         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
13643         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
13644         m68k/t-mlib to tmake_file.
13645         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
13646         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
13647         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
13648         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
13649         variable is not empty, add t-$m68k_arch_family to tmake_file.
13650         Add t-mlibs to tmake_file.
13651         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
13652         * config/m68k/t-cf: New file.
13653         * config/m68k/t-m68k: Likewise.
13654         * config/m68k/t-mlibs: Likewise.
13655         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13656         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
13657         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
13658         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13659         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
13660         Delete.
13661         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
13662         (INSTALL_LIBGCC): Delete.
13663         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
13664         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13665         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
13666         (M68K_MLIB_CPU): Define.
13667         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13668         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
13669         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
13670
13671 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
13672             Richard Guenther  <rguenther@suse.de>
13673
13674         PR middle-end/23361
13675         * fold-const.c (fold_comparison): Handle obfuscated comparisons
13676         against INT_MIN/INT_MAX.
13677         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
13678         file if a loop is removed.
13679
13680 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
13681
13682         * calls.c (store_one_arg): Pass correct alignment to
13683         emit_push_insn for non-BLKmode values.
13684         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
13685         unaligned stack slot via a suitably aligned slot.
13686
13687 2007-02-08  DJ Delorie  <dj@redhat.com>
13688
13689         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
13690         warnings.
13691         (legal_subregs): Use unsigned char, make const.
13692         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
13693
13694 2007-02-08  Paul Brook  <paul@codesourcery.com>
13695
13696         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
13697         special interworking needed.
13698
13699 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
13700
13701         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
13702         conditional to __SSE2__.
13703         (Entries below should have been added to first ChangeLog
13704         entry for amdfam10 dated 2007-02-05)
13705         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
13706         defined.
13707         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
13708         defined.
13709         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
13710         defined.
13711
13712 2007-02-08  DJ Delorie  <dj@redhat.com>
13713
13714         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
13715         * config/m32c/m32c.c (legal_subregs): New.
13716         (m32c_illegal_subreg_p): New.
13717         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
13718         unsupported subregs of hard regs.
13719
13720 2007-02-08  Jan Hubicka  <jh@suse.cz>
13721
13722         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
13723         the same one; always update histograms.
13724
13725 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
13726
13727         * passes.c (init_optimization_passes): Tidy comment.
13728
13729 2007-02-08  Roger Sayle  <roger@eyesopen.com>
13730
13731         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
13732         strip zero_extend, bswap and rotates from POCOUNT's argument.
13733         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
13734         zero_extend and rotates from PARITY's argument.
13735         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
13736         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
13737         of an integer constant at compile-time.
13738
13739 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
13740
13741         PR 30562
13742         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
13743         Update all users.
13744         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
13745         users.
13746         (init_alias_info):
13747         * tree-ssa-live.c (remove_unused_locals): Do not remove
13748         TREE_ADDRESSABLE variables.
13749         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
13750         * tree-ssa-operands.c (add_virtual_operand): Remove argument
13751         FOR_CLOBBER.  Update all users.
13752         If VAR has an associated alias set, add a virtual operand for
13753         it if no alias is found to conflict with the memory reference.
13754
13755 2007-02-07  Jan Hubicka  <jh@suse.cz>
13756             Robert Kidd <rkidd@crhc.uiuc.edu>
13757
13758         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
13759
13760 2007-02-07  Ian Lance Taylor  <iant@google.com>
13761
13762         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
13763
13764 2007-02-07  Roger Sayle  <roger@eyesopen.com>
13765
13766         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
13767         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
13768         tablejumpdi, movsi_to_cr_one): Remove constraints from
13769         define_expand's match_operands.
13770
13771 2007-02-07  Roger Sayle  <roger@eyesopen.com>
13772
13773         * global.c (compute_regsets): Move declatation of "i" inside of
13774         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
13775
13776 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
13777
13778         PR c++/30703
13779         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
13780         of INDIRECT_REF <RESULT_DECL>.
13781
13782         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
13783
13784 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
13785             Kaz Kojima  <kkojima@gcc.gnu.org>
13786
13787         PR target/29746
13788         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
13789         properly.
13790         (sh_initialize_trampoline): Add parentheses to avoid a warning.
13791
13792 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
13793
13794         * doc/loop.texi: Document possibility not to perform disambiguation
13795         of loops with multiple latches.
13796         * cfgloopmanip.c (alp_enum_p): Removed.
13797         (add_loop): Handle subloops.  Use get_loop_body_with_size.
13798         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
13799         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
13800         the new forwarder block.
13801         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
13802         Handle the case latch is NULL.
13803         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
13804         when marking loop exits.
13805         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
13806         be modified.
13807         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
13808         disambiguate_loops_with_multiple_latches.
13809         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
13810         before fix_loop_structure.
13811         * cfgloop.c: Include pointer-set.h and output.h.
13812         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
13813         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
13814         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
13815         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
13816         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
13817         disambiguate_multiple_latches, get_loop_body_with_size,
13818         disambiguate_loops_with_multiple_latches): New functions.
13819         (flow_loop_dump): Dump multiple latch edges.
13820         (flow_loop_nodes_find): Handle loops with multiple latches.
13821         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
13822         (glb_enum_p): Modified.
13823         (get_loop_body): Use get_loop_body_with_size.
13824         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
13825         (AVOID_CFG_MODIFICATIONS): New constant.
13826         (disambiguate_loops_with_multiple_latches, add_loop,
13827         get_loop_body_with_size): Declare.
13828         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
13829
13830 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
13831
13832         PR inline-asm/28686
13833         * global.c (compute_regsets): New function.
13834         (global_alloc): Refactored ELIMINABLE_REGSET
13835         and NO_GLOBAL_ALLOC_REGS computation out.
13836         (rest_of_handle_global_alloc): Call compute_regsets()
13837         for non-optimizing case.
13838
13839 2007-02-06  Richard Henderson  <rth@redhat.com>
13840
13841         * config/i386/constraints.md (Y2): Rename from Y.
13842         (Yi): New constraint.
13843         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
13844         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
13845         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
13846         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
13847         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
13848         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
13849         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
13850         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
13851         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
13852         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
13853         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
13854         vec_extractv2si_1): Change Y constraints to Y2.
13855         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
13856         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
13857         Change Y constraints to Y2.
13858         (sse2_loadld): Change Y constraints to x.
13859
13860 2007-02-06  Roger Sayle  <roger@eyesopen.com>
13861
13862         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
13863         (parity<mode>2): New define_expand using rs6000_emit_parity.
13864         * config/rs6000/rs6000.c (rs6000_emit_popcount,
13865         rs6000_emit_parity): New functions.
13866         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
13867         rs6000_emit_parity): Prototype here.
13868
13869 2007-02-06  Ian Lance Taylor  <iant@google.com>
13870
13871         * lower-subreg.c (simple_move_operand): Reject CONST.
13872         (resolve_clobber): Call validate_change rather than directly
13873         assigning to XEXP (pat, 0).
13874
13875 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
13876
13877         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
13878         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
13879         (tree-cfg.o): Remove hashtab.h dependency.
13880
13881         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
13882         (struct ivopts_data): Change niters to pointer_map_t.
13883         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
13884         (niter_for_exit): Create pointer_map on demand.  Change for
13885         pointer_map API.
13886         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
13887         (free_loop_data): Destroy data->niters if created and reset field.
13888         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
13889         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
13890
13891         * tree-ssa-reassoc.c: Include pointer-set.h.
13892         (bb_rank): Change to long *.
13893         (operand_rank): Change to pointer_map_t.
13894         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
13895         (insert_operand_rank): Accept long.
13896         (operand_entry_hash, operand_entry_eq): Remove.
13897         (get_rank): Return long.  Adjust for changes above.
13898         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
13899         and operand_rank.
13900         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
13901
13902         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
13903         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
13904         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
13905         is not NULL.
13906         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
13907         directly since it cannot be NULL.
13908         (get_vi_for_tree): Rewrite for pointer_map API.
13909         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
13910         (init_alias_vars): Create vi_for_tree as pointer_map.
13911         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
13912
13913         * tree-cfg.c: Don't include hashtab.h.
13914         (edge_to_cases): Declare as pointer_map.
13915         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
13916         Delete.
13917         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
13918         (start_recording_case_labels): Create edge_to_cases as pointer_map.
13919         (end_recoding_case_labels): Cleanup edge_to_cases manually before
13920         destroying it.
13921         (record_switch_edge): Delete.
13922         (get_cases_for_edge): Adjust for pointer_map API, inline
13923         record_switch_edge (rewritten for new API), remove goto.
13924
13925 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
13926
13927         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
13928         * tree-nested.c: Include pointer-set.h.
13929         (var_map_elt, var_map_eq, var_map_hash): Delete.
13930         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
13931         to pointer_map_t's.
13932         (nesting_info_bitmap_obstack): New.
13933         (lookup_field_for_decl): Adjust for pointer_map API.
13934         (lookup_tramp_for_decl): Adjust for pointer_map API.
13935         (get_nonlocal_debug_decl): Adjust for pointer_map API.
13936         (get_local_debug_decl): Adjust for pointer_map API.
13937         (convert_nl_goto_reference): Adjust for pointer_map API.
13938         (convert_nl_goto_receiver): Adjust for pointer_map API.
13939         (create_nesting_tree): Create outside GGC space.  Create bitmap on
13940         the new obstack.  Create field_map and var_map as pointer_maps.
13941         (free_nesting_tree): Adjust for changes to create_nesting_tree.
13942         (root): Delete.
13943         (lower_nested_functions): Move root here, no need to NULL it.
13944         Initialize and release the obstack.
13945
13946 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
13947
13948         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
13949         Remove prototypes and make them non-static.
13950         (struct tree_int_map): Remove.
13951         * tree.h (struct tree_int_map): Move here, turning TO into an
13952         unsigned int.
13953         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
13954
13955         * tree.h (TREE_COMPLEXITY): Remove.
13956         (struct tree_exp): Remove complexity field.
13957         * tree.c (build1_stat): Don't set it.
13958
13959 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
13960             Victor Kaplansky  <victork@il.ibm.com>
13961
13962         * tree-vectorizer.c (vect_is_simple_use): Support induction.
13963         (vect_is_simple_reduction): Support reduction with induction as
13964         one of the operands.
13965         (vect_is_simple_iv_evolution): Fix formatting.
13966         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
13967         formatting.  Don't mark induction phis for vectorization.
13968         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
13969         * tree-vect-transform.c (get_initial_def_for_induction): New function.
13970         (vect_get_vec_def_for_operand): Support induction.
13971         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
13972         induction case.
13973         (vectorizable_reduction): Support reduction with induction as one of
13974         the operands.
13975         (vectorizable_type_demotion): Use def-type of stmt argument rather
13976         than dummy def-type.
13977
13978         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
13979         flag_tree_scev_cprop.
13980         * common.opt (tree-scev-cprop): New flag.
13981
13982         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
13983         call to vect_get_new_vect_var.
13984
13985 2007-02-06  Ira Rosen  <irar@il.ibm.com>
13986
13987         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
13988         vectype is not NULL.
13989         (vect_pattern_recog_1): Likewise.
13990
13991 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13992
13993         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
13994         (fold_negate_expr): Likewise.
13995
13996 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
13997
13998         PR debug/30189
13999         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
14000         even if cv-qualification is the same.
14001
14002 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
14003
14004         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
14005         __enable_execute_stack on completion.
14006
14007 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14008
14009         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
14010         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
14011         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
14012         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
14013         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
14014         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
14015         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
14016         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
14017
14018 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14019
14020         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
14021         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
14022         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
14023         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
14024         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
14025         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
14026         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
14027         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
14028         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
14029         umuldi3_highpart_rex64, umulsi3_highpart_insn,
14030         umulsi3_highpart_zext, smuldi3_highpart_rex64,
14031         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
14032         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
14033         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
14034         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
14035         sqrtextenddfxf2_i387): Added amdfam10_decode.
14036
14037         * config/i386/athlon.md (athlon_idirect_amdfam10,
14038         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
14039         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
14040         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
14041         athlon_ivector_store_amdfam10): New define_insn_reservation.
14042         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
14043         amdfam10.
14044
14045 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14046
14047         * config/i386/athlon.md (athlon_call_amdfam10,
14048         athlon_pop_amdfam10, athlon_lea_amdfam10): New
14049         define_insn_reservation.
14050         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
14051         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
14052         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
14053
14054 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14055
14056         * config/i386/athlon.md (athlon_sseld_amdfam10,
14057         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
14058         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
14059
14060 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14061
14062         * config/i386/athlon.md (athlon_sseins_amdfam10): New
14063         define_insn_reservation.
14064         * config/i386/i386.md (sseins): Added sseins to define_attr type
14065         and define_attr unit.
14066         * config/i386/sse.md: Set type attribute to sseins for insertq
14067         and insertqi.
14068
14069 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14070
14071         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
14072         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
14073         ssecomi_load_amdfam10, ssecomi_amdfam10,
14074         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
14075         define_insn_reservation.
14076         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
14077
14078 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14079
14080         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
14081         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
14082         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
14083         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
14084         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
14085         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
14086         define_insn_reservation.
14087
14088         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
14089         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
14090         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
14091         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
14092         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
14093
14094 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14095
14096         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
14097         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
14098         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
14099         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
14100         athlon_ssemul_load_k8): Added amdfam10.
14101
14102 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14103
14104         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
14105         (x86_sse_unaligned_move_optimal): New variable.
14106
14107         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
14108         m_AMDFAM10.
14109         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
14110         for unaligned vector SSE double/single precision loads for AMDFAM10.
14111
14112 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14113
14114         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
14115         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
14116         Define TARGET_CPU_DEFAULT_amdfam10.
14117         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
14118         (processor_type): Add PROCESSOR_AMDFAM10.
14119
14120         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
14121         processor_type in config/i386/i386.h.
14122         Enable imul peepholes for TARGET_AMDFAM10.
14123
14124         * config.gcc: Add support for --with-cpu option for amdfam10.
14125
14126         * config/i386/i386.c (amdfam10_cost): New variable.
14127         (m_AMDFAM10): New macro.
14128         (m_ATHLON_K8_AMDFAM10): New macro.
14129         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
14130         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
14131         x86_promote_QImode, x86_integer_DFmode_moves,
14132         x86_partial_reg_dependency, x86_memory_mismatch_stall,
14133         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
14134         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
14135         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
14136         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
14137         Enable/disable for amdfam10.
14138         (override_options): Add amdfam10_cost to processor_target_table.
14139         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
14140         processor_alias_table.
14141         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
14142         (ix86_adjust_cost): Add code for amdfam10.
14143
14144 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14145
14146         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
14147         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
14148         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
14149         * config/i386/i386.h: Add builtin definition for SSE4A.
14150         * config/i386/i386.md: Add support for ABM instructions
14151         (popcnt and lzcnt).
14152         * config/i386/sse.md: Add support for SSE4A instructions
14153         (movntss, movntsd, extrq, insertq).
14154         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
14155         Add -march=amdfam10 flag.
14156         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
14157         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
14158         and amdfam10.
14159         * doc/extend.texi: Add documentation for SSE4A builtins.
14160
14161 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
14162
14163         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
14164
14165 2007-02-05  Richard Guenther  <rguenther@suse.de>
14166
14167         * tree-vectorizer.h (vectorizable_function): Add argument type
14168         argument, change return type.
14169         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
14170         * tree-vect-transform.c (vectorizable_function): Handle extra
14171         argument, return vectorized function decl.
14172         (build_vectorized_function_call): Remove.
14173         (vectorizable_call): Handle calls with result and argument types
14174         differing.  Handle loop vectorization factor correctly.
14175         * targhooks.c (default_builtin_vectorized_function): Adjust for
14176         extra argument.
14177         * targhooks.h (default_builtin_vectorized_function): Likewise.
14178         * target.h (builtin_vectorized_function): Add argument type
14179         argument.
14180         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
14181         extra argument, allow vectorizing of lrintf.
14182         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
14183         documentation of target hook.
14184
14185 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
14186
14187         PR target/30665
14188         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
14189         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
14190         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
14191
14192 2007-02-05  Roger Sayle  <roger@eyesopen.com>
14193
14194         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
14195         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
14196         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
14197         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
14198         before canonicalizing sincos to cexpi.
14199         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
14200
14201 2007-02-05  Roger Sayle  <roger@eyesopen.com>
14202
14203         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
14204         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
14205         (alpha_init_builtins): Use alpha_add_builtins to process tables.
14206
14207 2007-02-05  Roger Sayle  <roger@eyesopen.com>
14208
14209         * mips-tfile.c (initialize_init_file): Correct endianness test.
14210
14211 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
14212
14213         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
14214         the 'y' constraint.
14215
14216 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
14217
14218         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
14219         saves in a PARALLEL before the register assignments.
14220
14221 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
14222
14223         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
14224         DWARF_FRAME_RETURN_COLUMN to be a general register.
14225         * dwarf2out.c (init_return_column_size): New function, split from...
14226         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
14227         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
14228         to be nongeneral registers.
14229         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
14230         integer registers.
14231         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
14232         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
14233
14234 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
14235
14236         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
14237
14238 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
14239
14240         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
14241         (remove_path): Use can_remove_branch_p and remove_branch instead
14242         of loop_delete_branch_edge.
14243         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
14244         (tree_transform_and_unroll_loop): Remove dead branches immediately.
14245         Update profile using scale_dominated_blocks_in_loop.
14246         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
14247         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
14248         (can_remove_branch_p, remove_branch): Declare.
14249         * tree-cfg.c (tree_can_remove_branch_p): New function.
14250         (tree_cfg_hooks): Add tree_can_remove_branch_p.
14251         * cfgrtl.c (rtl_can_remove_branch_p): New function.
14252         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
14253
14254 2007-02-05  Jan Hubicka  <jh@suse.cz>
14255
14256         PR middle-end/30696
14257         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
14258         nodes in cgraph, don't remove offline copy of the function.
14259
14260 2007-02-04  Jan Hubicka  <jh@suse.cz>
14261
14262         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
14263         vectors might cause maybe_lookup_element_for_expr to be called
14264         on non-sra-candidate.
14265
14266 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
14267
14268         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
14269         config/bfin/bfin.md, config/bfin/predicates.md: Follow
14270         spelling conventions.
14271
14272 2007-02-04  Richard Guenther  <rguenther@suse.de>
14273
14274         PR middle-end/30636
14275         * fold-const.c (try_move_mult_to_index): Make sure to not
14276         overflow one dimension of a multi-dimensional array access.
14277
14278 2007-02-04  Jan Hubicka  <jh@suse.cz>
14279
14280         * passes.c (init_optimization_passes): Reindent.
14281
14282 2007-02-04  Jan Hubicka  <jh@suse.cz>
14283             Eric Botcazou  <ebotcazou@adacore.com>
14284
14285         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
14286         (execute_fixup_cfg): Break out the abnormal goto code.
14287         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
14288         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
14289         (optimize_inline_calls): Call make_nonlocal_label_edges.
14290
14291 2007-02-04  Jan Hubicka  <jh@suse.cz>
14292
14293         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
14294         true when something was changed.
14295         (rename_ssa_copies): When something was changed, do
14296         TODO_remove_unused_locals.
14297         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
14298         add TODO_remove_unused_locals when instruction was removed.
14299
14300 2007-02-04  Jan Hubicka  <jh@suse.cz>
14301
14302         * ipa-inline.c (try_inline): Improve debug output; work on already
14303         inline edges too.
14304         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
14305         call try_inline for already inlined edges too when flattening;
14306         inline also functions that make callee growth but overall unit size
14307         reduce.
14308
14309 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
14310
14311         * config/m32c/bitops.md, config/m32c/jump.md,
14312         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
14313         config/m32r/m32r.h, config/m32r/m32r.md,
14314         config/m32r/predicates.md, config/m68hc11/larith.asm,
14315         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
14316         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
14317         config/mips/mips-protos.h, config/mips/mips.c,
14318         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
14319         config/mn10300/mn10300.h, config/mn10300/predicates.md,
14320         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
14321         spelling conventions.
14322
14323         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14324         Follow spelling conventions.
14325
14326 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
14327
14328         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
14329         warn about C++0x compatibility.
14330
14331 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
14332
14333         * config/h8300/h8300.c, config/h8300/h8300.h,
14334         config/h8300/h8300.md: Follow spelling conventions.
14335
14336 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
14337
14338         PR middle-end/30667
14339         * combine.c (try_combine): Do not substitute source operand
14340         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
14341
14342 2007-02-03  Jan Hubicka  <jh@suse.cz>
14343
14344         PR gcov-profile/30650
14345         * value-prof.c (stringop_block_profile): Fix handling of size counter;
14346         do not divide by zero for never executed counters.
14347         (tree_find_values_to_profile): Fix counters.
14348         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
14349
14350 2007-02-03  Ian Lance Taylor  <iant@google.com>
14351
14352         * lower-subreg.c (simple_move_operand): New static function,
14353         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
14354         operands.
14355         (simple_move): Call simple_move_operand.
14356         (find_decomposable_subregs): Add special handling of MEMs.
14357         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
14358         meaning of return value.  If we see a hard register, test whether
14359         it can store a word_mode value.  Change all callers.
14360
14361 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14362
14363         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
14364         ftrapv insns and expanders.
14365         (subdi3): Change define_expand operand 1 to arith11_operand, and
14366         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
14367         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
14368         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
14369         respectively.
14370
14371         PR middle-end/30174
14372         * varasm.c (notice_global_symbol): Treat global objects as weak when
14373         flag_shlib is true.
14374
14375 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14376
14377         * emit-rtl.c (dconstpi): Delete.
14378         (dconstsqrt2): New.
14379         (init_emit_once): Delete dconstpi and init dconstsqrt2.
14380         * real.h (dconstpi): Delete.
14381         (dconstsqrt2): New.
14382         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
14383         (fold_builtin_hypot): Likewise.
14384
14385 2007-02-03  Tom Tromey  <tromey@redhat.com>
14386
14387         PR driver/30246
14388         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
14389         -gcoff3, -gxcoff3, -gvms3 implies -dD.
14390
14391 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
14392
14393         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
14394         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
14395         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
14396         config/rs6000/cell.md, config/rs6000/darwin.h,
14397         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
14398         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
14399         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
14400         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
14401         typos.  Follow spelling conventions.
14402         * doc/invoke.texi: Follow spelling conventions.
14403
14404 2007-02-03  Roger Sayle  <roger@eyesopen.com>
14405
14406         * simplify-rtx.c (simplify_relational_operation_1): Implement some
14407         canonicalization transformations that attempt to simplify integer
14408         constant comparisons to become comparisons against zero.
14409
14410 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14411
14412         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
14413         fabs(x)*sqrt(2).
14414         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
14415         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
14416
14417 2007-02-02  Mike Stump  <mrs@apple.com>
14418
14419         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
14420         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
14421         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
14422         generate a branch island.
14423
14424 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
14425
14426         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
14427         (xtensa_legitimate_address_p): New.
14428         (xtensa_legitimize_address): New.
14429         (xtensa_output_addr_const_extra): New.
14430         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
14431         (BASE_REG_P): New.
14432         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
14433         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
14434         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
14435         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
14436         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
14437         (xtensa_legitimize_address): New.
14438         (xtensa_output_addr_const_extra): New.
14439
14440 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
14441
14442         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
14443
14444 2007-02-02  Ian Lance Taylor  <iant@google.com>
14445
14446         * expmed.c (expand_divmod): Add comment.
14447
14448 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
14449
14450         * emit-rtl.c (renumber_insns): Remove.
14451         * flags.h: Remove the extern for flag_renumber_insns.
14452         * rtl.h: Remove the prototype for renumber_insns.
14453         * toplev.c (flag_renumber_insns): Remove.
14454
14455 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
14456
14457         Revert for x86 darwin:
14458         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
14459
14460         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
14461         code before the following patch under TARGET_MACHO.
14462         (ix86_function_value_regno_p): Likewise.
14463
14464 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14465
14466         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
14467         COMPLEX_EXPR.
14468
14469 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14470
14471         PR target/29682
14472         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
14473         general or fp registers.  Add comments.
14474         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
14475
14476 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
14477
14478         * pointer-set.c (insert_aux): Only return insertion slot.
14479         (pointer_set_insert): Adjust.
14480         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
14481         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
14482         pointer_map_traverse): New.
14483         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
14484         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
14485         pointer_map_contains, pointer_map_traverse): Declare.
14486
14487 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
14488
14489         PR middle-end/30473
14490         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
14491         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
14492
14493 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14494
14495         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
14496
14497         (struct _dep): New type.
14498         (dep_t): New typedef.
14499         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
14500         (DEP_STATUS): New access macro.  The macro with the same name was
14501         renamed to DEP_LINK_STATUS.
14502         (dep_init): Declare function
14503
14504         (struct _dep_link): New type.
14505         (dep_link_t): New typedef.
14506         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
14507         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
14508         (DEP_LINK_STATUS): New macro.
14509         (debug_dep_links): New debug function.
14510
14511         (struct _deps_list): New type.
14512         (deps_list_t): New typedef.
14513         (DEPS_LIST_FIRST): New access macro.
14514         (FOR_EACH_DEP_LINK): New cycle macro.
14515         (create_deps_list, free_deps_list, delete_deps_list): Declare
14516         functions.
14517         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
14518         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
14519         (copy_deps_list_change_con): Ditto.
14520
14521         (move_dep_link): Declare function.
14522
14523         (struct _dep_node): New type.
14524         (dep_node_t): New typedef.
14525         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
14526
14527         (struct haifa_insn_data.back_deps): New field to hold backward
14528         dependencies of the insn.
14529         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
14530         to deps_list_t.
14531         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
14532         Change its type to deps_list_t.
14533         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
14534         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
14535         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
14536
14537         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
14538
14539         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
14540
14541         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
14542         all callers.
14543         (dep_cost): Declare.
14544
14545         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
14546         (ds_to_dk, dk_to_ds): New functions.
14547
14548         (init_dep_1): New static function.
14549         (init_dep): New function.
14550         (copy_dep): New static function.
14551
14552         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
14553         functions.
14554         (detach_dep_link): New static function.
14555         (move_dep_link): New function.
14556
14557         (dep_links_consistent_p, dump_dep_links): New static functions.
14558         (debug_dep_links): New debugging function.
14559
14560         (deps_obstack, dl_obstack, dn_obstack): New static variables.
14561
14562         (alloc_deps_list, init_deps_list): New static functions.
14563         (create_deps_list): New function.
14564         (clear_deps_list): New static function.
14565         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
14566         (deps_list_consistent_p, dump_deps_list): New static functions.
14567         (debug_deps_list): New function.
14568         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
14569         functions.
14570         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
14571
14572         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
14573         use new scheduler dependencies lists.
14574         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
14575         (sched_analyze): Ditto.  Initialize dependencies lists.
14576         (add_forw_dep, compute_forward_dependences): Update to use new
14577         scheduler dependencies lists.
14578
14579         (init_dependency_caches): Init deps_obstack.
14580         (free_dependency_caches): Free deps_obstack.
14581
14582         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
14583         new scheduler dependencies lists.
14584         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
14585         (add_back_forw_dep, delete_back_forw_dep): Ditto.
14586
14587         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
14588         Update to use new scheduler dependencies lists.
14589         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
14590         (debug_dependencies): Ditto.
14591         (schedule_region): Update comments.
14592
14593         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
14594         scheduler dependencies lists.
14595         (schedule_ebb): Update comments.
14596
14597         * rtl.def (DEPS_LIST): Remove.
14598
14599         * lists.c (unused_deps_list): Remove.
14600         (free_list): Update assertions.
14601
14602         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
14603         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
14604
14605         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
14606         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
14607
14608         * haifa-sched.c (comments): Update.
14609         (insn_cost1): Remove.  Inline the code into insn_cost ().
14610         (insn_cost): Update to use new scheduler dependencies lists.  Move
14611         processing of the dependency cost to dep_cost ().
14612         (dep_cost): New function.  Use it instead of insn_cost () when
14613         evaluating cost of the dependency.  Use compatible interface to
14614         interact with the target.
14615         (priority): Update to use new scheduler dependencies lists.
14616         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
14617         with greater number of insns that depend on the insn.
14618         (schedule_insn): Update to use new scheduler dependencies lists.  Add
14619         code to free backward dependencies lists.  Inline and optimize code
14620         from resolve_dep () - see PR28071.
14621         (ok_for_early_queue_removal): Update to use new scheduler dependencies
14622         lists.  Update call to targetm.sched.is_costly_dependence hook.
14623
14624         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
14625         scheduler dependencies lists.
14626
14627         (resolve_dep): Remove.  Move the logic to schedule_insn ().
14628         (init_h_i_d): Initialize dependencies lists.
14629
14630         (process_insn_depend_be_in_spec): Rename to
14631         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
14632         dependencies lists.
14633         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
14634         Update to use new scheduler dependencies lists.
14635         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
14636
14637         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
14638         new scheduler dependencies lists.
14639         (build_intra_loop_deps): Ditto.
14640
14641         * target.h (struct _dep): Declare to use in
14642         gcc_target.sched.is_costly_dependence.
14643         (struct gcc_target.sched.adjust_cost): Fix typo.
14644         (struct gcc_target.sched.is_costly_dependence): Change signature to use
14645         single dep_t parameter instead of an equivalent triad.
14646         (struct gcc_target.sched.adjust_cost_2): Remove.
14647
14648         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
14649
14650         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
14651
14652         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
14653         documentation.
14654         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
14655
14656         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
14657         (REG_DEP_TRUE): Document.
14658
14659         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
14660         Change signature to correspond to the targetm.sched.adjust_cost hook.
14661         Update use in TARGET_SCHED_ADJUST_COST_2.
14662         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
14663         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
14664         new scheduler dependencies lists.
14665         (ia64_gen_check): Ditto.
14666
14667         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
14668         dependencies lists.
14669
14670         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
14671         signature to correspond to the targetm.sched.is_costly_dependence hook.
14672         (is_costly_group): Update to use new scheduler dependencies lists.
14673
14674         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
14675         instead of INSN_COST () macro.
14676
14677 2007-02-01  Ian Lance Taylor  <iant@google.com>
14678
14679         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
14680
14681 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
14682
14683         * pa.md (tp_load): Correct mfctl instruction syntax.
14684
14685 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
14686
14687         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
14688         altivec_padding_size calculation on AIX.  Improve comment, add
14689         assert to verify that it's right.
14690
14691         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
14692         64-bit.
14693
14694 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
14695
14696         PR inline-asm/28686
14697         * global.c (global_alloc): Add mising initialization of
14698         ELIMINABLE_REGSET.
14699
14700 2007-02-01  Roger Sayle  <roger@eyesopen.com>
14701
14702         * alias.c (init_alias_analysis): Correct whitespace.
14703         * bb-reorder.c (fix_edges_for_rarely_executed_code,
14704         partition_hot_cold_basic_blocks): Likewise.
14705         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
14706         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
14707         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
14708         fold_builtin_snprintf_chk, fold_builtin_printf,
14709         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
14710         do_mpfr_arg3, do_mpfr_sincos): Likewise.
14711         * cfgcleanup.c (cleanup_cfg): Likewise.
14712         * cfgexpand.c (tree_expand_cfg): Likewise.
14713         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
14714         * function.c (get_next_funcdef_no): Likewise.
14715         * gengtype.c (main): Likewise.
14716         * genmodes.c (main): Likewise.
14717         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
14718         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
14719         * ifcvt.c (noce_emit_move_insn): Likewise.
14720         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
14721         Likewise.
14722         * stor-layout.c (get_best_mode): Likewise.
14723         * tree-ssa-loop-niter.c (get_val_for): Likewise.
14724         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
14725         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
14726         perform_var_substitution, solve_graph): Likewise.
14727         * tree-vrp.c (vrp_finalize): Likewise.
14728
14729 2007-02-01  Ian Lance Taylor  <iant@google.com>
14730
14731         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
14732         high part of a paradoxical subreg, return a constant zero.
14733
14734 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
14735
14736         * toplev.c (lang_dependent_init): Call init_set_costs.
14737         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
14738
14739 2007-02-01  Richard Guenther  <rguenther@suse.de>
14740
14741         PR middle-end/30656
14742         * fold-const.c (fold_negate_expr): Allow negating a
14743         constant if overflow does not change.
14744
14745 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14746
14747         * doc/c-tree.texi (Expression trees): Improve markup.
14748         * doc/tm.texi (Register Classes, Addressing Modes)
14749         (Floating Point): Fix spacing after abbreviations.  Fix some
14750         typos.
14751
14752 2007-02-01  Ben Elliston  <bje@au.ibm.com>
14753
14754         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
14755         * doc/contrib.texi: Likewise.
14756         * doc/install.texi: Likewise.
14757
14758 2007-01-31  Richard Henderson  <rth@redhat.com>
14759             Ian Lance Taylor  <iant@google.com>
14760
14761         * lower-subreg.c: New file.
14762         * rtl.def (CONCATN): Define.
14763         * passes.c (init_optimization_passes): Add pass_lower_subreg and
14764         pass_lower_subreg2.
14765         * emit-rtl.c (update_reg_offset): New static function, broken out
14766         of gen_rtx_REG_offset.
14767         (gen_rtx_REG_offset): Call update_reg_offset.
14768         (gen_reg_rtx_offset): New function.
14769         * regclass.c: Revert patch of 2006-03-05, restoring
14770         reg_scan_update.
14771         (clear_reg_info_regno): New function.
14772         * dwarf2out.c (concatn_loc_descriptor): New static function.
14773         (loc_descriptor): Handle CONCATN.
14774         * common.opt (fsplit_wide_types): New option.
14775         * opts.c (decode_options): Set flag_split_wide_types when
14776         optimizing.
14777         * timevar.def (TV_LOWER_SUBREG): Define.
14778         * rtl.h (gen_reg_rtx_offset): Declare.
14779         (reg_scan_update): Declare.
14780         * regs.h (clear_reg_info_regno): Declare.
14781         * tree-pass.h (pass_lower_subreg): Declare.
14782         (pass_lower_subreg2): Declare.
14783         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
14784         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
14785         -fsplit-wide-types.
14786         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
14787         * Makefile.in (OBJS-common): Add lower-subreg.o.
14788         (lower-subreg.o): New target.
14789
14790 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
14791
14792         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
14793
14794 2007-01-31  Anatoly Sokolov <aesok@post.ru>
14795
14796         PR target/19087
14797         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
14798
14799 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14800
14801         PR middle-end/29335
14802         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
14803
14804 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
14805
14806         * cfgloop.h: Include vec-prim.h.
14807         (enum li_flags): Remove LI_ONLY_OLD.
14808         (loop_iterator): Changed.
14809         (fel_next, fel_init): Iterate over loop tree.
14810         (FOR_EACH_LOOP_BREAK): New macro.
14811         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
14812         FOR_EACH_LOOP.
14813         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
14814         * modulo-sched.c (sms_schedule): Ditto.
14815         * tree-vectorizer.c (vectorize_loops): Ditto.
14816         * doc/loop.texi: Update information on loop numbering and behavior of
14817         FOR_EACH_LOOP wrto new loops.
14818         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
14819         add_to_evolution_1): Test nestedness of loops instead of comparing
14820         their numbers.
14821         * tree-chrec.c (chrec_fold_plus_poly_poly,
14822         chrec_fold_multiply_poly_poly, chrec_evaluate,
14823         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
14824         reset_evolution_in_loop): Ditto.
14825         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
14826
14827 2007-01-31  Dirk Mueller  <dmueller@suse.de>
14828
14829         * c-common.c (warn_about_parentheses): Separate warning about
14830         un-parenthized sequence of comparison operators from the one
14831         which is supposed to warn about x <= y <= z.
14832
14833 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
14834
14835         * optabs.h (enum optab_index): Add new OTI_isinf.
14836         (isinf_optab): Define corresponding macro.
14837         * optabs.c (init_optabs): Initialize isinf_optab.
14838         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
14839         patterns.
14840         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
14841         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
14842         using isinf_optab.
14843         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
14844         expand_builtin_interclass_mathfn.
14845         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
14846         * config/i386/i386.md (UNSPEC_FXAM): New constant.
14847         (fxam<mode>2_i387): New insn pattern.
14848         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
14849         built-in functions as x87 inline asm.
14850
14851 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
14852
14853         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
14854
14855 2007-01-30  Eric Christopher  <echristo@apple.com>
14856
14857         * config.gcc: Add geode.
14858
14859 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
14860
14861         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
14862         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
14863         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
14864         value-prof.c: Fix comment typos.
14865
14866 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14867
14868         PR c++/24745
14869         * doc/invoke.texi (Wpointer-arith): Document warning.
14870
14871 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
14872
14873         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
14874         the list of discrepancies from the draft TR.
14875
14876 2007-01-30  Dirk Mueller  <dmueller@suse.de>
14877
14878         PR c++/30601
14879         * doc/invoke.texi (-Wreturn-type): Update description to
14880         match new behavior.
14881
14882 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
14883
14884         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
14885
14886 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
14887
14888         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
14889         to handle optabs that operate on floating point input argument and
14890         output to integer output.
14891         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
14892         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
14893         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
14894         expand_builtin_interclass_mathfn ().
14895         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
14896         (ilogbsi2): Remove.
14897         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
14898         ilogbl built-in functions as x87 intrinsics.
14899
14900 2007-01-30  Richard Guenther  <rguenther@suse.de>
14901
14902         PR middle-end/27657
14903         * dwarf2out.c (reference_to_unused): Query varpool if the
14904         variable was output.
14905
14906 2007-01-30  Richard Guenther  <rguenther@suse.de>
14907
14908         PR middle-end/30313
14909         * passes.c (execute_one_pass): Reset in_gimple_form to not
14910         confuse non-unit-at-a-time mode.
14911
14912 2007-01-29  Roger Sayle  <roger@eyesopen.com>
14913             Richard Guenther  <rguenther@suse.de>
14914
14915         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
14916         avoid undefined behaviour on overflow.  Use force_fit_type_double
14917         to construct the constant with the specified TREE_OVERFLOW.
14918
14919 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
14920
14921         * config/dfp-bit.c: Add parameterized support for fp exceptions.
14922         * config/dfp-bit.h: Ditto.
14923
14924 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14925
14926         * c-decl.c (pop_scope): Replace warnings with call to
14927         warn_for_unused_label.
14928         * c-common.h (warn_for_unused_label): Declare.
14929         * c-common.c (warn_for_unused_label): Define.
14930
14931 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14932
14933         * tree-optimize.c (update_inlined_to_pointers): Delete unused
14934         function.
14935
14936 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
14937
14938         * Makefile.in (USER_H): Remove decfloat.h.
14939         * ginclude/decfloat.h: Delete, moving contents to ...
14940         * ginclude/float.h: Add support for decimal floating point,
14941         guarded by __STDC_WANT_DEC_FP__.
14942
14943 2007-01-29  Mike Stump  <mrs@apple.com>
14944
14945         * doc/gccint.texi (Top): Rename Loop Representation to Loop
14946         Analysis and Representation to resolve case insensitive conflict.
14947         * doc/loop.texi (Loop Analysis and Representation): Likewise.
14948
14949 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
14950
14951         * tree.h (struct tree_memory_tag): Add aliases member.
14952         (MTAG_ALIASES): New macro.
14953         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
14954         (add_may_alias): Remove pointer-set. Update for may_aliases being
14955         a bitmap.
14956         (mark_aliases_call_clobbered): Update for may_aliases being a
14957         bitmap.
14958         (compute_tag_properties): Ditto.
14959         (create_partition_for): Ditto.
14960         (compute_memory_partitions): Ditto.
14961         (dump_may_aliases_for): Ditto.
14962         (is_aliased_with): Ditto.
14963         (add_may_alias_for_new_tag): Ditto.
14964         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
14965         (compute_is_aliased): New function.
14966         (compute_may_aliases): Call compute_is_aliased).
14967         (init_alias_info): Initialize alias_bitmap_obstack.
14968         (union_alias_set_into): New function.
14969         (compute_flow_sensitive_aliasing): Use union_aliases_into.
14970         (have_common_aliases_p): Rewrite to take two bitmaps and use
14971         intersection.
14972         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
14973         Update for bitmaps.
14974         (finalize_ref_all_pointers): Update for add_may_alias changes.
14975         (new_type_alias): Ditto.
14976         * tree-flow-inline.h (may_aliases): Return a bitmap.
14977         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
14978         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
14979         may_aliases being a bitmap.
14980         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
14981         may_aliases now returns a bitmap.
14982         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
14983         being a bitmap.
14984         * tree-ssa-operands.c (add_virtual_operand): Update for
14985         may_aliases being a bitmap.
14986
14987 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
14988
14989         PR tree-optimization/30630
14990         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
14991         variable as changed.
14992
14993 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
14994
14995         PR c++/28266
14996         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
14997         expanded only once even if an error occurs.
14998
14999 2007-01-29  Ben Elliston  <bje@au.ibm.com>
15000
15001         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
15002         (__gcov_average_profiler): Likewise.
15003         (__gcov_ior_profiler): Likewise.
15004         (__gcov_merge_ior): Likewise.
15005
15006 2007-01-28  Jan Hubicka  <jh@suse.cz>
15007
15008         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
15009         * value-prof.c (stringop_block_profile): Likewise.
15010
15011 2007-01-28  Jan Hubicka  <jh@suse.cz>
15012
15013         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
15014         variant handling histograms; add wrapper.
15015         (clear_storage_via_libcall): Export.
15016         (emit_block_move_hints): Break out from ...; add histograms.
15017         (emit_block_move): ... this one.
15018         (clear_storage_hints): Break out from ...; add histograms.
15019         (clear_storage): ... this one.
15020         (set_storage_via_memset): Handle histogram.
15021         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
15022         (clear_storage_hints, clear_storage_via_libcall): Declare.
15023         (set_storage_via_setmem): Update prototype.
15024         * doc/md.texi (movmem, setmem): Document new arguments.
15025
15026         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
15027         new histograms.
15028         (stringop_block_profile): New global function.
15029         (tree_stringops_values_to_profile): Profile block size and alignment.
15030         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
15031         HIST_TYPE_IOR.
15032         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
15033         (stringop_block_profile): Declare.
15034         * builtins.c: Include value-prof.h.
15035         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
15036         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
15037         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
15038         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
15039         * profile.c (instrument_values): Add new counters.
15040         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
15041         calls.
15042         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
15043         (tree_init_edge_profiler): Build new profilers.
15044         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
15045         (pass_tree_profile): Add dump.
15046         (tree_profile_hooks): Update.
15047         * Makefile.in (LIBGCOV): Add new constants.
15048         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
15049         __gcov_ior_profiler): New.
15050         * i386.md (movmem/setmem expanders): Add new optional arguments.
15051
15052 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
15053
15054         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
15055
15056 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
15057
15058         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
15059         (tree_unswitch_single_loop): Pass eni_size_weights to
15060         tree_num_loop_insns.
15061         * tree-ssa-loop-manip.c: Include tree-inline.h.
15062         (can_unroll_loop_p): Pass eni_size_weights to
15063         tree_num_loop_insns.
15064         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
15065         Pass eni_size_weights to estimate_num_insns.
15066         * tree.h (init_inline_once): Export.
15067         * toplev.c (backend_init): Call init_inline_once.
15068         * cgraphunit.c (cgraph_process_new_functions,
15069         cgraph_analyze_function): Pass eni_inlining_weights to
15070         estimate_num_insns.
15071         * ipa-inline.c (compute_inline_parameters): Ditto.
15072         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
15073         to estimate_num_insns.
15074         (try_unroll_loop_completely): Pass eni_size_weights to
15075         tree_num_loop_insns.
15076         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
15077         ot estimate_num_insns.
15078         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
15079         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
15080         * tree-inline.c (eni_inlining_weights, eni_size_weights,
15081         eni_time_weights): New variables.
15082         (init_inline_once): Initialize them.
15083         (struct eni_data): Mew.
15084         (estimate_num_insns_1, estimate_num_insns): Use weights.
15085         * tree-inline.h (struct eni_weights_d): New.
15086         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
15087         (estimate_num_insns): Declaration changed.
15088         * cfgloop.h (tree_num_loop_insns): Declaration changed.
15089         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
15090         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
15091
15092 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
15093
15094         * tree-data-ref.c (conflict_fn): Assert that the number of affine
15095         relations in the conflict function is valid.
15096
15097 2007-01-27  Ian Lance Taylor  <iant@google.com>
15098
15099         * common.opt: Add fstrict-overflow.
15100         * opts.c (decode_options): Set flag_strict_overflow if -O2.
15101         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
15102         (TYPE_OVERFLOW_UNDEFINED): Define.
15103         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
15104         Replace all uses.
15105         * tree.h (TYPE_TRAP_SIGNED): Don't define.
15106         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
15107         (fold_negate_expr): Likewise.
15108         (make_range): Likewise.
15109         (extract_muldiv_1): Likewise.
15110         (maybe_canonicalize_comparison): Likewise.
15111         (fold_comparison): Likewise.
15112         (fold_binary): Likewise.
15113         (tree_expr_nonnegative_p): Likewise.
15114         (tree_expr_nonzero_p): Likewise.
15115         * tree-vrp.c (compare_values): Likewise.
15116         (extract_range_from_binary_expr): Likewise.
15117         (extract_range_from_unary_expr): Likewise.
15118         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
15119         Likewise.
15120         (nowrap_type_p): Likewise.
15121         * tree-scalar-evolution.c (simple_iv): Likewise.
15122         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
15123         (build_range_check): Likewise.
15124         (extract_muldiv_1): Likewise.
15125         (fold_comparison): Likewise.
15126         * tree-vrp.c (vrp_int_const_binop): Likewise.
15127         (extract_range_from_unary_expr): Likewise.
15128         * convert.c (convert_to_integer): Likewise.
15129         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
15130         (fold_comparison): Likewise.
15131         (fold_binary): Likewise.
15132         * optabs.c (optab_for_tree_code): Likewise.
15133         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
15134         * simplify-rtx.c (simplify_const_relational_operation): Check
15135         flag_strict_overflow and flag_trapv.
15136         (simplify_const_relational_operation): Likewise.
15137         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
15138         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
15139         -fstrict-overflow.
15140
15141 2007-01-27  Roger Sayle  <roger@eyesopen.com>
15142
15143         * tree.c (tree_fold_gcd): Delete.
15144         * tree.h (tree_fold_gcd): Remove prototype.
15145         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
15146         test whether one constant integer is a multiple of another.  Instead
15147         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
15148         * fold-const.c (multiple_of_p):  We've determined both TOP and
15149         BOTTOM are integer constants so we can call int_const_binop directly
15150         instead of the more generic const_binop.
15151
15152 2007-01-27  Roger Sayle  <roger@eyesopen.com>
15153
15154         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
15155         1*X check that the constant hasn't overflowed, to preserve the
15156         TREE_OVERFLOW bit.
15157         (round_up): Provide an efficient implementation when rouding-up an
15158         INTEGER_CST to a power-of-two.
15159
15160 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15161
15162         * doc/sourcebuild.texi: Add comma for clarity.
15163         * doc/extend.texi: Fix some typos.
15164         * doc/passes.texi: Likewise.
15165         * doc/cppinternals.texi: Likewise.
15166         * doc/c-tree.texi: Likewise.
15167         * doc/tree-ssa.texi: Likewise.
15168         * doc/install.texi: Likewise.
15169
15170 2007-01-27  Jan Hubicka  <jh@suse.cz>
15171
15172         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
15173         (pass_sra): Do not require alias information.
15174         * passes.c (init_optimization_passes): Add SRA
15175
15176 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
15177
15178         * tracer.c (rest_of_handle_tracer): We already cleaned
15179         up the CFG in tracer() so don't do it here again.
15180         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
15181         cleanup_cfg here, either.  And don't call renumber_insns.
15182
15183         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
15184         and BB_HEAD are in the insn stream here.  Instead make sure
15185         that BB_INSN is valid on all insns.  Also, do check here that
15186         there are no pending branch predictions...
15187         (rtl_verify_flow_info): ...instead of doing it here.  Checks
15188         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
15189         here.
15190
15191 2007-01-26  Roger Sayle  <roger@eyesopen.com>
15192
15193         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
15194         function to simplify/factorize operand order canonicalization.
15195         (ix86_fixup_binary_operands): Reorganize using the above function.
15196         (ix86_binary_operator_ok): Likewise.
15197
15198 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
15199
15200         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
15201         file scope from optimize_attrs.
15202         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
15203         up search.
15204         (optimize_attrs): Clear insn_code_values after freeing it.
15205
15206 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
15207
15208         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
15209         a parts.base assignment.
15210
15211 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
15212
15213         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
15214         (compute_subscript_distance, initialize_data_dependence_relation,
15215         finalize_ddr_dependent, analyze_ziv_subscript,
15216         analyze_siv_subscript_cst_affine,
15217         compute_overlap_steps_for_affine_univar,
15218         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
15219         analyze_siv_subscript, analyze_miv_subscript,
15220         analyze_overlapping_iterations, subscript_dependence_tester_1,
15221         compute_self_dependence, free_dependence_relation): Work
15222         with affine_fn instead of chrecs.
15223         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
15224         common_affine_function, affine_function_base,
15225         affine_function_constant_p, affine_fn_op, affine_fn_plus,
15226         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
15227         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
15228         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
15229         (all_chrecs_equal_p): Removed.
15230         * tree-data-ref.h (affine_fn, conflict_function): New types.
15231         (struct subscript): Change type of conflicting_iterations_in_a
15232         and conflicting_iterations_in_b.
15233
15234 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
15235
15236         PR other/30182
15237         * config/pa/pa.h (TARGET_HPUX_11): New.
15238         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
15239         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
15240
15241 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
15242         Richard Guenther  <rguenther@suse.de>
15243
15244         * tree-ssa-structalias.c (solve_graph): Handle case
15245         we merged the variable to another.
15246
15247 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15248
15249         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
15250         functions.
15251
15252         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
15253         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
15254
15255 2007-01-25  DJ Delorie  <dj@redhat.com>
15256
15257         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
15258         allow changes to modes which don't fit in those registers.
15259
15260         * reload1.c (choose_reload_regs): Check for invalid subregs before
15261         computing their locations, not after.
15262
15263 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
15264
15265         PR 25127
15266         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
15267         save Altivec registers in an eh_return function.
15268         (compute_vrsave_mask): Likewise.
15269         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
15270         for saving Altivec registers.
15271         (rs6000_emit_prologue): Don't allocate stack twice in
15272         eh_return function.  Correct expected value of altivec_save_offset
15273         when using save_world.  Describe save of R0 to stack when using
15274         save_world.  Describe stack pointer adjustment when using
15275         save_world.  Remove duplicated eh_return parameter register saving.
15276         Update sp_offset variable after save_world.
15277         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
15278         darwin-world.asm.
15279         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
15280         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
15281         implies Altivec.
15282
15283 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
15284
15285         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
15286
15287 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
15288
15289         PR other/30182
15290         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
15291         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
15292
15293 2007-01-25  Richard Guenther  <rguenther@suse.de>
15294
15295         * doc/invoke.texi (-Wcoverage-mismatch): Document.
15296         * common.opt (-Wcoverage-mismatch): New warning option.
15297         * coverage.c (get_coverage_counts): Ignore coverage mismatch
15298         if -Wcoverage-mismatch is given.
15299
15300 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
15301
15302         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
15303         (ipcp_driver): Change to static definition.
15304         Add dumping of the ifunctions.
15305         (constant_val_insert): Remove unused parameter. Support for SSA.
15306         (ipcp_propagate_const): Support for SSA.
15307         (ipcp_profile_bb_print): Print only analyzed nodes.
15308         (ipcp_replace_map_create): Remove support for Fortran constant
15309         for now.
15310         * ipa-prop.c (ipa_method_modify_stmt,
15311         ipa_callsite_compute_param): Support for SSA.
15312         * ipa-prop.h (ipcp_driver): Remove declaration.
15313         (IS_VALID_TREE_MAP_INDEX): Add define.
15314
15315 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
15316
15317         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
15318
15319 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15320
15321         PR middle-end/30447
15322         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
15323         constant argument to cabs and do it without checking for
15324         -funsafe-math-optimizations.
15325
15326 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
15327
15328         * c-common.h (RID_FIRST_CXX0X): New.
15329         (RID_LAST_CXX0X): New.
15330         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
15331         by -Wall.
15332         * c.opt (Wc++0x-compat): New.
15333         * doc/invoke.texi (-Wc++0x-compat): Document.
15334
15335 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15336
15337         * builtins.c (fold_builtin_carg): New.
15338         (fold_builtin_1): Use it.
15339
15340 2007-01-24  Jan Hubicka  <jh@suse.cz>
15341
15342         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
15343
15344         * ipa-inline.c (initial_insns, max_insns): Delete.
15345         (compute_max_insns): New function.
15346         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
15347         of insns as base for code growth.
15348         (cgraph_decide_inlining): Make initial_insns local; do not compute
15349         max_insns.
15350         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
15351         * doc/invoke.texi (inline-unit-growth): Update docs.
15352
15353 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
15354
15355         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
15356         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
15357         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
15358         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
15359         for CPUs that have PTA_CX16 set.
15360
15361         PR middle-end/27416
15362         * gimplify.c (omp_check_private): New function.
15363         (gimplify_scan_omp_clauses): Use it for
15364         firstprivate/lastprivate/reduction.
15365
15366         PR middle-end/30494
15367         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
15368         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
15369
15370         PR middle-end/30421
15371         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
15372         If lower_lastprivate_clauses emits some statements, append them
15373         to dlist rather than body_p and to body_p append an initializer.
15374         (lower_omp_for): Adjust caller.
15375
15376 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
15377
15378         * target.h (globalize_decl_name): New.
15379         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
15380         * output.h (default_globalize_decl_name): New.
15381         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
15382         globalize_label.
15383         (globalize_decl): Ditto.
15384         (default_globalize_decl_name): New.
15385         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
15386         (ia64_handle_version_id_attribute): New.
15387         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
15388         (ia64_asm_output_external): Use globalize_decl_name instead
15389         of globalize_label.
15390         * doc/extend.texi (version_id): New pragma.
15391         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
15392
15393 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15394
15395         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
15396         _uleb128_t and _Unwind_SWord with _sleb128_t.
15397         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
15398         uw_frame_state_for, uw_update_context_1): Likewise.
15399         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
15400         * unwind-pe.h (read_uleb128, read_sleb128,
15401         read_encoded_value_with_base): Likewise.
15402         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
15403
15404 2007-01-24  Richard Guenther  <rguenther@suse.de>
15405
15406         * builtins.c (expand_builtin_cexpi): Get the fndecl
15407         for cexp in the correct way.
15408
15409 2007-01-24  Jan Hubicka  <jh@suse.cz>
15410
15411         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
15412
15413 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15414
15415         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
15416         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
15417         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
15418         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
15419         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
15420         __SIZEOF_PTRDIFF_T__.
15421         * doc/cpp.texi: Documentation for the new builtin macros added.
15422
15423 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
15424
15425         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
15426         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
15427         instead of operands[2] to avoid access past the end of array.
15428
15429 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
15430
15431         * reload1.c (emit_reload_insns): Pass the reload register
15432         for a non-spill output reload through forget_old_reloads_1.
15433
15434 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
15435
15436         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15437         _SOFT_DOUBLE if doubles use software floating-point.
15438         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
15439         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
15440         * config/rs6000/darwin-ldouble.c: Also compile functions for
15441         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
15442         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
15443         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
15444         commented-out long double override.
15445         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
15446         * config/rs6000/eabispe.h: Likewise.
15447         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
15448         long double for non-SPE.
15449         (rs6000_handle_option): Likewise.
15450         (invalid_e500_subreg): Disallow more subregs involding DImode,
15451         DFmode, TImode or TFmode.
15452         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
15453         E500 double.
15454         (legitimate_lo_sum_address_p): Also check for TFmode for E500
15455         double.
15456         (rs6000_legitimize_address): Also handle TFmode for E500 double.
15457         (rs6000_legitimize_reload_address): Also handle TFmode for E500
15458         double.
15459         (rs6000_legitimate_address): Also check for TFmode for E500
15460         double.
15461         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
15462         (spe_build_register_parallel): Handle TFmode and TCmode.
15463         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
15464         double.
15465         (function_arg): Handle TFmode and TCmode for E500 double.
15466         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
15467         in general.
15468         (print_operand): Handle TFmode and TImode for %y.
15469         (rs6000_generate_compare): Handle TFmode comparisons for E500
15470         double.
15471         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
15472         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
15473         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
15474         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
15475         TFmode for E500 double.
15476         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
15477         (floatsidf2): Enable for E500 double.
15478         (movtf_softfloat): Use rs6000_nonimmediate_operand.
15479         (extenddftf2): Change to extenddftf2_fprs.
15480         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
15481         depending on TARGET_E500_DOUBLE.
15482         (extendsftf2): Enable for E500 double.
15483         (trunctfdf2): Enable for E500 double.
15484         (trunctfsf2): Change to trunctfsf2_fprs.
15485         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
15486         depending on TARGET_E500_DOUBLE.
15487         (floatsitf2): Enable for E500 double.
15488         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
15489         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
15490         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
15491         (negtf2): Change to negtf2_internal.
15492         (negtf2): New expander.
15493         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
15494         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
15495         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
15496         (movdi_internal32): Use rs6000_nonimmediate_operand.
15497         (unnamed splitter): Likewise.
15498         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
15499         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
15500         (SPE64TF, DITI): New mode macros.
15501         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
15502         modes.
15503         (frob_tf_ti): New.
15504         (frob_<mode>_di_2): New.
15505         (frob_tf_di_8_2): New.
15506         (frob_di_df): Change to frob_di_<mode>; allow more modes.
15507         (frob_ti_tf): New.
15508         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
15509         more modes.
15510         (frob_ti_<mode>_8_2): New.
15511         (frob_ti_tf_2): New.
15512         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
15513         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
15514         TFmode.
15515         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
15516         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
15517         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
15518         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
15519         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
15520         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
15521         tsttflt_gp): New.
15522
15523 2007-01-23  Ian Lance Taylor  <iant@google.com>
15524
15525         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
15526         insn-*.o first.
15527         (OBJS-archive): Reformat, alphabetize.
15528         (OBJS): Change out_object_file to OBJS-md.
15529
15530 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
15531
15532         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
15533         JUMP_P and CALL_P predicates where applicable.
15534         * config/i386/i386.c: Ditto.
15535         * config/i386/i386.md: Ditto.
15536         * config/i386/mmx.md: Ditto.
15537         * config/i386/predicates.md: Ditto.
15538
15539 2007-01-22  Andreas Schwab  <schwab@suse.de>
15540
15541         * config/m68k/m68k.h: Fix comment.
15542
15543 2007-01-22  Jan Hubicka  <jh@suse.cz>
15544
15545         * passes.c (init_optimization_passes): Do not rerun
15546         pass_early_warn_uninitialized.
15547
15548 2007-01-22  Richard Guenther  <rguenther@suse.de>
15549
15550         PR tree-optimization/30038
15551         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
15552         function.
15553         (execute_cse_sincos_1): Likewise.
15554         (execute_cse_sincos): Likewise.
15555         (gate_cse_sincos): Likewise.
15556         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
15557         the cexpi() canonicalization of sincos().
15558         * tree-pass.h (pass_cse_sincos): Declare.
15559         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
15560
15561 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
15562
15563         PR rtl-optimization/29329
15564         * combine.c (replaced_rhs_insn): Rename to i2mod.
15565         (replaced_rhs_value): Rename to i2mod_new_rhs.
15566         (i2mod_old_rhs): New global variable.
15567         (combine_instructions): Adjust for above change.  Save a copy of
15568         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
15569         note are substituted in the second instruction.
15570         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
15571         ditch the note if it pertains to the second eliminated register
15572         and this register is mentioned in i2mod_old_rhs.
15573
15574         Revert:
15575         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15576
15577         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
15578         the insn to which the note was originally attached.
15579
15580 2007-01-21  Jan Hubicka  <jh@suse.cz>
15581
15582         * ipa-inline.c (inlining_mode): Comment, move up.
15583         (cgraph_decide_inlining_incrementally): Do not perform inlining
15584         itself; fix handling of flattening of self recursive functions.
15585         (cgraph_find_cycles): Remove.
15586         (cgraph_flatten_node): Remove.
15587         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
15588         (try_inline): New function.
15589         (cgraph_early_inlining): Update call of
15590         cgraph_decide_inlining_incrementally.  Apply inlining here.
15591         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
15592
15593 2007-01-21  Dirk Mueller  <dmueller@suse.de>
15594
15595         PR bootstrap/30511
15596         * tree-vrp.c (check_array_bounds): do not warn
15597         about ADDR_EXPR's of ARRAY_REF's which are immediately
15598         used in binary expressions.
15599
15600 2007-01-21  Ira Rosen  <irar@il.ibm.com>
15601
15602         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
15603         read_write_dep and macros for its access.
15604         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
15605         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
15606         argument, call vect_check_interleaving for every independent pair of
15607         data-refs. Mark loads that access the same memory location as a store
15608         in the loop.
15609         (vect_check_dependences): Remove.
15610         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
15611         call, fix the call to vect_analyze_data_ref_dependence.
15612         (vect_analyze_data_ref_access): For statements that access the same
15613         data-ref, check that they are not stores; for loads, check that there
15614         is no store that access the same location.
15615
15616 2007-01-20  Roger Sayle  <roger@eyesopen.com>
15617             Joseph Myers  <joseph@codesourcery.com>
15618
15619         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
15620         (-fdump-rtl-stack): Likewise.
15621         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
15622         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
15623         (-mpt-fixed): Use @minus{} for minus sign.
15624         (Using Precompiled Headers): Fix under/overfull hbox.
15625
15626 2007-01-20  Jan Hubicka  <jh@suse.cz>
15627
15628         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
15629         place within annotation.
15630
15631 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15632
15633         * pa.c (output_move_double): Change array size of xoperands to 4.
15634
15635 2007-01-20  Jan Hubicka  <jh@suse.cz>
15636
15637         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
15638         as temporary.
15639
15640 2007-01-19  Ian Lance Taylor  <iant@google.com>
15641
15642         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
15643         constant to unsigned HOST_WIDE_INT before negating.
15644
15645 2007-01-19  Ian Lance Taylor  <iant@google.com>
15646
15647         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
15648         to unsigned.
15649         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
15650         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
15651         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
15652         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
15653         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
15654         (realloc_vdef, realloc_vuse): Change second parameter to
15655         unsigned.
15656         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
15657         fields to unsigned.
15658         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
15659         unsigned. Change x and lim locals to unsigned.
15660         (realloc_vdef, realloc_vuse): Change num_elem parameter to
15661         unsigned.
15662         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
15663         (copy_virtual_operands): Change i and n locals to unsigned.
15664
15665 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15666
15667         PR middle-end/29335
15668         * builtins.c (fold_builtin_1): Handle builtin fdim.
15669
15670 2007-01-20  Jan Hubicka  <jh@suse.cz>
15671
15672         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
15673         * tree-ssa-structalias.c (compute_points_to_sets): Do call
15674         init_alias_heapvars.
15675         (init_alias_heapvars): Initialize only when not already initialized.
15676         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
15677
15678 2007-01-19  Roger Sayle  <roger@eyesopen.com>
15679
15680         * common.opt (fsigned-zeros): New command line option.
15681         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
15682         of flag_unsafe_math_optimizations.
15683         * opts.c (set_fast_math_flags): The -ffast-math command line option
15684         implies -fno-signed-zeros.
15685         (fast_math_flags_set_p): Likewise.
15686
15687         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
15688         the documentation of -ffast-math appropriately.  Wrap long lines.
15689
15690 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
15691
15692         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
15693         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
15694
15695 2007-01-19  Tomas Bily  <tbily@suse.cz>
15696
15697         * cgraphunit.c (cgraph_finalize_function): Updating of pid
15698         * tree-profile.c:
15699         (tree_init_ic_make_global_vars): New function
15700         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
15701         (tree_gen_ic_profiler): New function
15702         (tree_gen_ic_func_profiler): New function
15703         (tree_profiling): Added calling of tree_gen_ic_func_profiler
15704         (tree_profile_hooks): Added hook for indirec/virtual calls
15705         * value-prof.c (tree_find_values_to_profile): New case for
15706         indirect calls
15707         (tree_values_to_profile): Call for determining indirect/virtual
15708         counters
15709         (tree_indirect_call_to_profile): New function
15710         (tree_ic_transform): New function
15711         (tree_ic): New function
15712         (find_func_by_pid): New function
15713         (init_pid_map): New function
15714         (tree_value_profile_transformations): Added check for
15715         indirect/virtual call transformation
15716         * value-prof.h (enum hist_type): New counter type for
15717         indirect/virtual calls
15718         (profile_hooks): Added new hook for profiling indirect/virtual
15719         calls
15720         * profile.c (instrument_values): New case for indirect/virtual
15721         call added
15722         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
15723         (GCOV_COUNTER_V_INDIR): New counter type
15724         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
15725         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
15726         call added
15727         * cgraph.c: Definition of cgraph_max_pid
15728         (cgraph_create_node): Default init of pid attribute
15729         * cgraph.h: Declaration of cgraph_max_pid
15730         (struct cgraph_node): Added pid attribute
15731         * libgcov.c (__gcov_indirect_call_profiler): New function
15732         (__gcov_one_value_profiler_body): New function
15733         (__gcov_one_value_profiler): Body was moved to
15734         __gcov_one_value_profiler_body and calls it
15735
15736 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
15737
15738         * doc/gty.texi (Options): Document the mark_hook option to GTY.
15739         * gengtype.c (write_types_data, write_func_for_structure,
15740         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
15741         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
15742         (walk_type, write_func_for_structure): Generate the mark_hook if
15743         needed.
15744
15745 2007-01-19  Jan Hubicka  <jh@suse.cz>
15746
15747         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
15748         'early' argument take inlining mode argument specifying whether to
15749         inline for size/speeed or all functions; add support for flattening;
15750         improve dumpting.
15751         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
15752
15753 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15754
15755         PR c++/17947
15756         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
15757         the name of the declared identifier.
15758
15759 2007-01-19  Dirk Mueller  <dmueller@suse.de>
15760
15761         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
15762         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
15763         duplicate evaluation.
15764
15765 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
15766
15767         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
15768         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
15769         to XFMode, use acosxf2 and truncate result to requested mode.
15770         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
15771         (asin<mode>2): Similarly, with asin expanders.
15772         (*fscalexf4_i387): Rename from *fscalexf4.
15773         (expNcorexf3): New expander.
15774         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
15775         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
15776         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
15777         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
15778         patterns for SSE math.
15779         (exp10<mode>2): Similarly, with exp10 expanders.
15780         (exp2<mode>2): Similarly, with exp2 expanders.
15781         (expm1<mode>2): Similarly, with expm1 expanders.
15782         (ldexp<mode>3): Similarly, with ldexp expanders.
15783         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
15784         Use gen_truncxf<mode>2_i387_noop to truncate result.
15785
15786 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15787
15788         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
15789         for ColdFire targets.
15790
15791 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
15792             Richard Sandiford  <richard@codesourcery.com>
15793
15794         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
15795         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
15796         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
15797         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
15798         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
15799         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
15800
15801 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15802
15803         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
15804         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
15805         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
15806         (*adddi_dilshr32_cf): New pattern.
15807         (adddi3, subdi3): Remove first alternatives.
15808
15809 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15810
15811         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
15812         implemented using move.l, do not use its cc result for floating-point
15813         comparisons.
15814
15815 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15816
15817         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
15818         from accepting 's' constraints if flag_pic.
15819
15820 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15821
15822         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
15823         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
15824         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
15825         condition from TARGET_68881 to TARGET_HARD_FLOAT.
15826
15827 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
15828
15829         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
15830         ColdFire alternatives.
15831         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
15832         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
15833         architectures that support ff1 instruction.
15834
15835 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15836             Julian Brown  <julian@codesourcery.com>
15837
15838         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
15839         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
15840         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
15841         Add commentary.
15842
15843 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
15844
15845         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
15846         and return a bool.
15847         (output_move_const_into_data_reg, output_move_simode_const): Delete.
15848         * config/m68k/m68k.c (const_method, const_int_cost): Take a
15849         HOST_WIDE_INT instead of an rtx.
15850         (m68k_rtx_costs): Update call accordingly.
15851         (output_move_const_into_data_reg): Likewise.  Fix formatting.
15852         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
15853         Return a bool.
15854         (output_move_simode_const): Update calls after above changes.
15855         Rework to use automatic variables and predicates like MEM_P.
15856         * config/m68k/m68k.md (pushexthisi_const): Update call to
15857         valid_mov3q_const.
15858
15859 2007-01-19  Dirk Mueller  <dmueller@suse.de>
15860
15861         * tree-ssa-alias.c (perform_var_substitution): Fix typo
15862         in dump_flags test.
15863
15864 2007-01-19  Richard Guenther  <rguenther@suse.de>
15865
15866         * builtins.c (expand_builtin_cexpi): Fall back to expanding
15867         via cexp in case sincos is not available.
15868
15869 2007-01-19  Richard Guenther  <rguenther@suse.de>
15870
15871         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
15872         * defaults.h (TARGET_HAS_SINCOS): Default to off.
15873         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
15874         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
15875         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
15876         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
15877         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
15878         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
15879
15880 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
15881
15882         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
15883         New insn patterns.
15884         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
15885         (atan2xf3): Directly generate RTL pattern.
15886         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
15887         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
15888         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
15889         disable patterns for SSE math.
15890         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
15891         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
15892         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
15893         disable patterns for SSE math.
15894
15895 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
15896
15897         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
15898
15899 2007-01-18  Roger Sayle  <roger@eyesopen.com>
15900
15901         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
15902         VIEW_CONVERT_EXPR to the same type as it's operand.
15903
15904 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
15905
15906         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
15907         configured for long double 128.
15908
15909 2007-01-18  Mike Stump  <mrs@apple.com>
15910
15911         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
15912         error.
15913
15914 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
15915
15916         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
15917         type correct.
15918
15919 2007-01-18  Jan Hubicka  <jh@suse.cz>
15920
15921         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
15922         greater than NUM_VOP_FREE_BUCKETS.
15923
15924 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
15925
15926         * tree-ssa-structalias.c: Update comments.
15927         (ptabitmap_obstack): Removed.
15928         (pta_obstack): New.
15929         (oldpta_obstack): Ditto.
15930         (stats): Add a few members.
15931         (struct variable_info): Remove node, complex, address_taken, and
15932         indirect_target members. Add oldsolution member.
15933         (new_var_info): Do not initialize removed members.
15934         (constraint_expr_type): Remove INCLUDES.
15935         (constraint_graph): Add size, implicit_preds, rep,
15936         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
15937         (FIRST_REF_NODE): New macro.
15938         (LAST_REF_NODE): Ditto.
15939         (FIRST_ADDR_NODE): Ditto.
15940         (find): New function.
15941         (unite): Ditto.
15942         (dump_constraint): Do not handle INCLUDES.
15943         (insert_into_complex): Do not insert duplicate constraints.
15944         (condense_varmap_nodes): Renamed and rewritten into ...
15945         (merge_node_constraints): This. Also fix bug in handling of
15946         offseted copy constraints.
15947         (clear_edges_for_node): No longer need to deal with preds at all,
15948         or removing associated preds/succs.
15949         (merge_graph_nodes): Deal with indirect_cycles.
15950         Don't deal with predecessors.
15951         (add_implicit_graph_edge): New function.
15952         (add_pred_graph_edge): Ditto.
15953         (add_graph_edge): Don't deal with predecessors.
15954         (build_constraint_graph): Removed.
15955         (build_pred_graph): New function.
15956         (build_succ_graph): Ditto.
15957         (struct scc_info): Removed in_component. Added roots, dfs, and
15958         node_mapping. Remove visited_index, unification_queue.
15959         (scc_visit): Deal with union-find we do now.
15960         Deal with cycles with REF nodes.
15961         (collapse_nodes): Renamed and rewritten to ...
15962         (unify_nodes): This.
15963         (process_unification_queue): Removed.
15964         (topo_visit): Cleanup
15965         (do_da_constraint): Use find.
15966         (do_sd_constraint): Ditto.
15967         (do_ds_constraint): Ditto.
15968         (do_complex_constraint): Ditto.
15969         (init_scc_info): Update for removed and added members.
15970         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
15971         (find_indirect_cycles): This.
15972         (equivalence_class): New variable.
15973         (label_visit): New function.
15974         (perform_variable_substitution): Rewritten.
15975         (free_var_substitution_info): New function.
15976         (find_equivalent_node): Ditto.
15977         (move_complex_constraints): Ditto.
15978         (eliminate_indirect_cycles): Ditto.
15979         (solve_graph): Only propagate changed bits.
15980         Use indirect cycle elimination.
15981         Use find.
15982         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
15983         (tree_id_eq): Renamed to ...
15984         (tree_vi_eq): This. Update for member change
15985         (insert_id_for_tree): Renamed and rewritten to ...
15986         (insert_vi_for_tree): This.
15987         (lookup_id_for_tree): Renamed and rewritten to ...
15988         (lookup_vi_for_tree): This.
15989         (get_id_for_tree): Renamed and rewritten to ...
15990         (get_vi_for_tree): Ditto.
15991         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
15992         (process_constraint): Don't handle INCLUDES.
15993         Remove special ADDRESSOF case.
15994         (find_func_aliases): Rewrite to use vi functions instead of id
15995         ones.
15996         (create_function_info_for): Ditto.
15997         (create_variable_info_for): Ditto.
15998         (intra_create_variable_infos): Ditto.
15999         (merge_smts_into): Ditto.
16000         (find_what_p_points_to): Ditto.
16001         (init_base_vars): Ditto.
16002         (init_alias_vars): Ditto.
16003         (remove_preds_and_fake_succs): New function.
16004         (dump_sa_points_to_info): Dump new stats.
16005         (dump_solution_for_var): Use find.
16006         (set_used_smts): Fix formatting.
16007         (compute_points_to_sets): Updated for new functions.
16008         (ipa_pta_execute): Ditto.
16009
16010 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16011             Richard Sandiford  <richard@codesourcery.com>
16012
16013         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
16014         parallels.
16015         * calls.c (expand_call): If the return value is a PARALLEL,
16016         extract its first member.
16017         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
16018         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
16019         use FUNCTION_EXTRA_EPILOGUE.
16020         (m68k_function_value): Return a PARALLEL if the return value
16021         is of a pointer type.
16022         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
16023         (FUNCTION_EXTRA_EPILOGUE): Remove.
16024         * config/m68k/m68k.md (D0_REG): New constant.
16025
16026 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16027
16028         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
16029         output a NOP for empty epilogues.
16030
16031 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16032
16033         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
16034         before function.  Extend register save check to include all
16035         registers, not just integer ones.
16036
16037 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16038
16039         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
16040         (m68k_use_return_insn): ...this.
16041         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
16042         * config/m68k/m68k.c (use_return_insn): Rename to...
16043         (m68k_use_return_insn): ...this.
16044         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
16045         of USE_RETURN_INSN.
16046
16047 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16048
16049         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
16050         nearest even, fix denormal rounding overflow.
16051
16052 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16053
16054         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
16055         f%$smove and f%$move.
16056         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
16057         (extendsfdf2_cf): Use fdmove instead of f%&move.
16058         (truncdfsf2_cf): Use fsmove instead of f%$smove.
16059         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
16060
16061 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16062
16063         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
16064         GPR<-GPR moves.
16065
16066 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16067
16068         * real.h (real_format): Add a canonical_nan_lsbs_set field.
16069         (coldfire_single_format): Declare.
16070         (coldfire_double_format): Likewise.
16071         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
16072         of qnan_msb_set to determine the lower bits of a canonical
16073         NaN significand.
16074         (encode_ieee_double): Likewise.
16075         (encode_ieee_quad): Likewise.
16076         (ieee_single_format): Initialize canonical_nan_lsbs_set.
16077         (mips_single_format): Likewise.
16078         (ieee_double_format): Likewise.
16079         (mips_double_format): Likewise.
16080         (ieee_extended_motorola_format): Likewise.
16081         (ieee_extended_intel_96_format): Likewise.
16082         (ieee_extended_intel_128_format): Likewise.
16083         (ieee_extended_intel_96_round_53_format): Likewise.
16084         (ibm_extended_format): Likewise.
16085         (mips_extended_format): Likewise.
16086         (ieee_quad_format): Likewise.
16087         (mips_quad_format): Likewise.
16088         (vax_f_format): Likewise.
16089         (vax_d_format): Likewise.
16090         (vax_g_format): Likewise.
16091         (i370_single_format): Likewise.
16092         (i370_double_format): Likewise.
16093         (decimal_single_format): Likewise.
16094         (decimal_double_format): Likewise.
16095         (decimal_quad_format): Likewise.
16096         (c4x_single_format): Likewise.
16097         (c4x_extended_format): Likewise.
16098         (real_internal_format): Likewise.
16099         (coldfire_single_format): New real_format.
16100         (coldfire_double_format): Likewise.
16101         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
16102         canonical_nan_lsbs_set.
16103         (pdp11_d_format): Likewise.
16104         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
16105         if TARGET_COLDFIRE_CPU.
16106
16107 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16108
16109         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
16110         (output_call, m68k_legitimize_call_address): Declare.
16111         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
16112         parenthesees.  Add support for a 'W' constraint.
16113         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
16114         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
16115         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
16116         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
16117         variables.
16118         (override_options): Initialize them.  Do not set flag_no_function_cse
16119         for TARGET_ID_SHARED_LIBRARY.
16120         (m68k_output_pic_call): Delete.
16121         (m68k_legitimize_call_address): New function.
16122         (print_operand): Remove the %o prefix.  Handle the %p prefix.
16123         (output_call): New function.
16124         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
16125         target address from the GOT if symbolic jumps are not allowed.
16126         * config/m68k/m68k.md (call, general_operand): Do not set
16127         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
16128         Merge separate flag_pic and !flag_pic define_insns into...
16129         (*call, *call_value): ...these new patterns.  Match the address
16130         rather than the containing MEM and require it to be a call_operand.
16131         Use output_call to generate the asm template.
16132         * config/m68k/predicates.md (const_call_operand): New predicate.
16133         (call_operand): Likewise.
16134
16135 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16136
16137         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
16138         (STACK_GROWS_DOWNWARD): Define to 1.
16139         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
16140         comments, emphasizing that these values are only defaults.
16141         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
16142         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
16143
16144 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16145
16146         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
16147
16148 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
16149             Richard Sandiford  <richard@codesourcery.com>
16150
16151         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
16152         (FP_REGNO_P): New macros.
16153         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
16154         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
16155         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
16156         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
16157
16158 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16159
16160         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
16161         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
16162         to $tmake_file.
16163         * config/m68k/t-floatlib: New file, extracting common code from...
16164         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
16165         * config/m68k/t-uclinux: Here.
16166         * config/m68k/fpgnulib.c: Do not compile extendeed precision
16167         routines on ColdFire targets.
16168
16169 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
16170
16171         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
16172         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
16173         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
16174         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
16175         explicitly set MOTOROLA to 1.
16176         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
16177
16178 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16179             Nathan Sidwell  <nathan@codesourcery.com>
16180
16181         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
16182         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
16183         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
16184         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
16185         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
16186         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
16187         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
16188         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
16189         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
16190         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
16191         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
16192         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
16193         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
16194         (DBX_REGISTER_NUMBER): Delete.
16195         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
16196         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
16197         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
16198
16199 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16200
16201         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
16202         * config/flat.h: New file.
16203         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
16204         OBJECT_FORMAT_FLAT.
16205         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
16206         indirect references for -msep-data or -mid-shared-library.
16207         Do not use PC-relative code addresses either.
16208         * config/m68k/m68k.c (override_options): Restrict -fPIC error
16209         to -mpcrel.
16210         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
16211         for shared libraries and crt1.o for executables.  Use crti.o and
16212         crtbegin.o.
16213         (ENDFILE_SPEC): Use crtend.o and crtn.o.
16214         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
16215         Do not add -elf2flt or -shared-lib-id options here.
16216         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
16217         Pass -shared-lib-id if -mid-shared-library, taking the library
16218         identifier from -mshared-library-id if given, otherwise
16219         defaulting to 0.
16220         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
16221         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
16222         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
16223         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
16224         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
16225         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
16226         and crtend.o.
16227         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
16228         jump sequence for ISA A and ISA A+.
16229         (PICJUMP): Likewise.
16230
16231 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16232
16233         * config.gcc (m68k-*-uclinux*): Base the port on the common
16234         and m68k GNU/Linux files rather than on the generic ELF ones.
16235         * config/m68k/uclinux.h (TARGET_VERSION): Override.
16236         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
16237
16238 2007-01-18  Julian Brown  <julian@codesourcery.com>
16239             Richard Sandiford  <richard@codesourcery.com>
16240
16241         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
16242         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
16243         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
16244         before redefining.
16245         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
16246         80 unconditionally.
16247         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
16248
16249 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
16250
16251         * doc/install.texi: Document m68k-uclinuxoldabi.
16252         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
16253         * config/m68k/uclinux-oldabi.h: New file, copied from
16254         config/m68k/uclinux.h.
16255
16256 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16257
16258         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
16259         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
16260         (m32r_compute_frame_size): Use unsigned for regno.
16261         (m32r_reload_lr): Use gen_frame_mem.
16262         (pop): New.
16263         (m32r_output_function_epilogue): Don't output the function epilogue
16264         textually here.
16265         (m32r_expand_epilogue): New.
16266         (direct_return): Return false if the function has the interrupt
16267         attribute.
16268         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
16269         * config/m32r/m32r.md (epilogue): New expander.
16270         (return_lr, return_rte): New insns.
16271         (return): Make it expander.
16272         (return_normal): New expander.
16273
16274 2007-01-18  Josh Conner  <jconner@apple.com>
16275
16276         PR target/30485
16277         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
16278         support for UNLE, UNLT, UNGE, and UNGT.
16279
16280 2007-01-18  Jan Hubicka  <jh@suse.cz>
16281
16282         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
16283         * tree-tailcall (add_virtual_phis): Likewise.
16284         (optimize_tail_call): Return TODOs.
16285         (execute_tail_calls): Return TODOs.
16286         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
16287         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
16288         changed.
16289         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
16290         Cleanup cfg using TODO.
16291         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
16292         * passes.c (execute_function_todo): When cleanup did something, remove
16293         unused locals.
16294         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
16295         (make_edges): Don't cleanup_cfg.
16296
16297 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
16298
16299         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
16300         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
16301         operate on the top of stack.
16302         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
16303         register handling of instructions that output to the second
16304         stack slot.
16305         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
16306         (move_for_stack_reg): Special-case check for dead destination
16307         stack slot for constant load of 1.0 inside UNSPEC_TAN.
16308
16309         * config/i386/i386.md (UNSPEC_TAN): New constant.
16310         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
16311         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
16312         to correctly model move of constant 1.0 to top stack slot.
16313         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
16314         (unnamed peephole2 pattern): Remove corresponding peephole2
16315         pattern that optimizes tan insn and loading of constant 1.0.
16316         (tanxf2): Use fptanxf4_i387.
16317         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
16318         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
16319         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
16320         disable patterns for SSE math.
16321         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
16322         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
16323
16324 2007-01-18  Dirk Mueller  <dmueller@suse.de>
16325             Richard Guenther <rguenther@suse.de>
16326
16327         PR diagnostic/8268
16328         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
16329         * common.opt (Warray-bounds): Add new warning option.
16330         * c-opts.c (c_common_handle_option): Define -Warray-bounds
16331         if -Wall is given.
16332         * Makefile.in: make tree-vrp.o depend on toplev.h
16333         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
16334         is enabled.
16335         (check_array_refs, check_array_bounds, check_array_ref): New.
16336
16337 2007-01-18  Jan Hubicka  <jh@suse.cz>
16338
16339         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
16340         (execute_ssa_ccp): Return flags conditionally.
16341         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
16342         changed.
16343         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
16344
16345 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
16346
16347         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
16348         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
16349
16350         * Makefile.c (GTFILES): Add cfglayout.h.
16351         * gengtype.c (open_base_files): Likewise.
16352         * cfglayout.c (cfg_layout_function_footer,
16353         cfg_layout_function_header) Reindent to make gengtype happy.
16354         * cfglayout.h (cfg_layout_function_footer,
16355         cfg_layout_function_header): Add GTY(()) marker.
16356
16357         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
16358
16359 2007-01-18  Ben Elliston  <bje@au.ibm.com>
16360
16361         * genautomata.c (write_automata): Include xstrerror output in the
16362         error message if writing the DFA description file fails.
16363
16364 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16365
16366         * config/mips/mips-protos.h (mips_output_external): Make it
16367         return void.
16368         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
16369         * config/mips/mips.c (irix_output_external_libcall): Likewise.
16370         (extern_list): Likewise.
16371         (extern_head): Likewise.
16372         (TARGET_ASM_FILE_END): Likewise.
16373         (mips_file_end): Likewise.
16374         (mips_output_external): Rewritten.
16375
16376 2007-01-18  Ben Elliston  <bje@au.ibm.com>
16377
16378         * genpreds.c (write_insn_preds_c): Only write out the function
16379         body for regclass_for_constraint if we have register constraints.
16380
16381 2007-01-17  Tom Tromey  <tromey@redhat.com>
16382
16383         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
16384         * doc/install.texi (Testing): Use sourceware.org.
16385         (Binaries): Likewise.
16386         (Specific): Likewise.
16387         * doc/contrib.texi (Contributors): Use sourceware.org.
16388
16389 2007-01-17  Anatoly Sokolov <aesok@post.ru>
16390
16391         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
16392         (AVR_ENHANCED): Rename to ...
16393         (AVR_HAVE_MUL): ... new.
16394         (avr_enhanced_p): Rename to ...
16395         (avr_have_mul_p): ... new.
16396         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
16397         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
16398         * config/avr/avr.c (avr_enhanced_p): Rename to ...
16399         (avr_have_mul_p): ... new.
16400         (base_arch_s): Rename 'enhanced' to 'have_mul'.
16401         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
16402         'avr_enhanced_p' and 'enhanced'.
16403         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
16404         AVR_HAVE_MUL instead of AVR_ENHANCED.
16405         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
16406         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
16407         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
16408         instead of AVR_ENHANCED.
16409         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
16410         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
16411         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
16412
16413 2007-01-17  Ian Lance Taylor  <iant@google.com>
16414
16415         * vec.h (VEC_reserve_exact): Define.
16416         (vec_gc_p_reserve_exact): Declare.
16417         (vec_gc_o_reserve_exact): Declare.
16418         (vec_heap_p_reserve_exact): Declare.
16419         (vec_heap_o_reserve_exact): Declare.
16420         (VEC_OP (T,A,reserve_exact)): New static inline function, three
16421         versions.
16422         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
16423         negative parameter.
16424         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
16425         (VEC_OP (T,A,copy)) [all versions]: Likewise.
16426         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
16427         * vec.c (calculate_allocation): Add exact parameter.  Change all
16428         callers.
16429         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
16430         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
16431         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
16432         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
16433         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
16434         (vec_heap_p_reserve_exact): New function.
16435         (vec_heap_o_reserve_exact): New function.
16436
16437 2007-01-17  Jan Hubicka  <jh@suse.cz>
16438
16439         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
16440
16441 2007-01-17  Eric Christopher  <echristo@apple.com>
16442
16443         * config.gcc: Support core2 processor.
16444
16445 2007-01-16  Jan Hubicka  <jh@suse.cz>
16446
16447         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
16448         the names, just unlink the chain so we don't crash on dangling pointers
16449         to dead SSA names.
16450
16451 2007-01-16  Jan Hubicka  <jh@suse.cz>
16452
16453         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
16454         * tree-pass.h: Reorder to make IPA passes appear toegher.
16455         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
16456         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
16457         parameters, do not call early inliner.
16458         * ipa-inline.c: Update comments.  Include tree-flow.h
16459         (cgraph_decide_inlining): Do not compute inlining parameters.
16460         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
16461         be called with function context set up.
16462         (pass_ipa_inline): Remove unreachable functions before pass.
16463         (cgraph_early_inlining): Simplify assuming to be called from the
16464         PM as local pass.
16465         (pass_early_inline): New pass.
16466         (cgraph_gate_ipa_early_inlining): New gate.
16467         (pass_ipa_early_inline): Turn into simple wrapper.
16468         (compute_inline_parameters): New function.
16469         (gate_inline_passes): New gate.
16470         (pass_inline_parameters): New pass.
16471         (apply_inline): Move here from tree-optimize.c
16472         (pass_apply_inline): New pass.
16473         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
16474         transforming.
16475         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
16476         doing them by hand.
16477         (tree_function_versioning): Do not allocate dummy struct function.
16478         * tree-inline.h (optimize_inline_calls): Update prototype.
16479         * tree-optimize.c (execute_fixup_cfg): Export.
16480         (pass_fixup_cfg): Remove
16481         (tree_rest_of_compilation): Do not apply inlines.
16482         * tree-flow.h (execute_fixup_cfg): Declare.
16483         * Makefile.in (gt-passes.c): New.
16484         * passes.c: Include gt-passes.h
16485         (init_optimization_passes): New passes.
16486         (nnodes, order): New static vars.
16487         (do_per_function_toporder): New function.
16488         (execute_one_pass): Dump current pass here.
16489         (execute_ipa_pass_list): Don't dump current pass here.
16490
16491 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
16492
16493         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
16494         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
16495
16496 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
16497
16498         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
16499         (strong_alias): Define.
16500         (__gcc_qmul): Provide non-FMA for soft-float.
16501         (__gcc_qdiv): Same.
16502         (__gcc_qneg): New.
16503         (__gcc_qeq): New.
16504         (__gcc_qle): New.
16505         (__gcc_qge): New.
16506         (__gcc_qunord): New.
16507         (__gcc_stoq): New.
16508         (__gcc_dtoq): New.
16509         (__gcc_qtos): New.
16510         (__gcc_qtod): New.
16511         (__gcc_qtoi): New.
16512         (__gcc_qtou): New.
16513         (__gcc_itoq): New.
16514         (__gcc_utoq): New.
16515         (fmsub): New.
16516         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
16517         soft-float functions.
16518         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
16519         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
16520         about long double soft float.
16521
16522 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
16523             Tehila Meyzels  <tehila@il.ibm.com>
16524
16525         * tree-vectorizer.h (is_pattern_stmt_p): New.
16526         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
16527         formatting (tabs instead of spaces). Cleanup and clarify setting
16528         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
16529         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
16530         (vectorizable_type_demotion): Check that types are integral.
16531         (vectorizable_type_promotion): Likewise.
16532         (vectorizable_store): Fix typo.  Eliminate new-line at end of
16533         comments.
16534
16535 2007-01-16  Jan Hubicka  <jh@suse.cz>
16536
16537         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
16538         cgraph edges too.
16539
16540 2007-01-15  Eric Christopher  <echristo@apple.com>
16541
16542         * ifcvt.c: Include vec.h, vecprim.h.
16543         (check_cond_move_block): New argument regs.
16544         Reorganize. Add registers used to regs.
16545         (cond_move_process_if_block): Use regs set above as
16546         loop bounds.
16547
16548 2007-01-15  Eric Christopher  <echristo@apple.com>
16549
16550         * config/darwin.h: Update copyright.
16551         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
16552         (LINK_COMMAND_SPEC): Add -u.
16553         (LINK_SPEC): Fix umbrella for above.
16554
16555 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
16556
16557         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
16558         glibc CVS.
16559
16560 2007-01-15  Tom Tromey  <tromey@redhat.com>
16561
16562         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
16563         * doc/install.texi (Testing): Don't mention jacks.
16564         (Configuration): Document --enable-java-maintainer-mode.  Move
16565         --with-java-home to libgcj-specific section.  Document
16566         --with-ecj-jar.
16567         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
16568
16569 2007-01-15  Jan Hubicka  <jh@suse.cz>
16570
16571         * tree-ssa-dce.c (DCE_TODOs): New.
16572         (propagate_necessity): Return if something changed.
16573         (eliminate_unnecessary_stmts): Likewise.
16574         (perform_tree_ssa_dce): Return TODO flags when needed.
16575         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
16576
16577 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
16578
16579         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
16580         (fyl2x_extend<mode>xf3_i387): New insn pattern.
16581         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
16582         patterns using X87MODEF12 mode macro.  Extend operand 1
16583         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
16584         (log10<mode>2): Ditto.
16585         (log2<mode>2): Ditto.
16586         (log1p<mode>2): Ditto.
16587         (logb<mode>2): Ditto.
16588         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
16589         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
16590         (*fxtractxf3_i387): Rename from *fxtractxf3.
16591         (fxtract_extend<mode>xf3_i387): New insn pattern.
16592         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
16593         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
16594         and gen_fyl2xxf3_i387().
16595
16596 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
16597
16598         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
16599         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
16600         get_loop_exit_edges.  Changed return type to bool.
16601         * cfgloop.h (fix_loop_placement): Declaration removed.
16602
16603 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
16604
16605         * param.h (MIN_VECT_LOOP_BOUND): New.
16606         * params.def (MIN_VECT_LOOP_BOUND): New.
16607         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
16608         argument - minimum threshold for number of iterations.
16609         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
16610         argument to declaration.
16611         * tree-vect-analyze.c (vect_analyze_operations): Check value of
16612         MIN_VECT_LOOP_BOUND.
16613         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
16614         slpeel_tree_peel_loop_to_edge with additional argument.
16615         (vect_do_peeling_for_alignment): Likewise.
16616         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
16617
16618 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
16619
16620         PR target/30413
16621         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
16622         operands of size 1.
16623
16624 2007-01-14  Jan Hubicka  <jh@suse.cz>
16625
16626         * tree-dfa.c (remove_referenced_var): New function.
16627         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
16628         prune referenced vars list too.
16629         * tree-flow.h (remove_referenced_var): Declare.
16630
16631 2007-01-14  Jan Hubicka  <jh@suse.cz>
16632
16633         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
16634         separately.
16635         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
16636         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
16637         * except.h (verify_eh_throw_table_statements): Kill prototype.
16638         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
16639         into call exrepssions.
16640         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
16641         eh trhow verifier.
16642         * tree-cfg.c: Include pointer-set.h.
16643         (verify_node_sharing): Work on pointer set.
16644         (verify_eh_throw_stmt_node): New.
16645         (verify_stmts): Use pointers sets, verify throw_stmt.
16646
16647 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
16648
16649         * ipa-reference.c (analyze_function): Consider also addresses taken
16650         in phi nodes.
16651
16652 2007-01-12  Roger Sayle  <roger@eyesopen.com>
16653
16654         * c-typeck.c (null_pointer_constant_p): Replace use of
16655         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
16656         (build_c_cast): Likewise.
16657
16658 2007-01-12  Roger Sayle  <roger@eyesopen.com>
16659
16660         * tree.h (force_fit_type_double): Remove unused final argument.
16661         * c-common.c (constant_expression_warning): Replace use of
16662         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
16663         (convert_and_check): Likewise.
16664         (shorten_compare): Update call to force_fit_type_double.
16665         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
16666         * convert.c (convert_to_pointer): Update call to
16667         force_fit_type_double.
16668         * fold-const.c (force_fit_type_double): Remove overflowed_const
16669         argument.
16670         (int_const_binop, fold_convert_const_int_from_int,
16671         fold_convert_const_int_from_real, fold_div_compare,
16672         fold_sign_changed_comparison, fold_unary, fold_negate_const,
16673         fold_abs_const, fold_not_const): Remove the final argument from
16674         calls to force_fit_type_double.
16675
16676 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16677
16678         * configure.ac: Set insn to "nop" for spu-*-* also.
16679         * configure: Regenerate.
16680
16681 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
16682
16683         * builtins.def : Add BUILT_IN_FREE.
16684
16685 2007-01-12  Jan Hubicka  <jh@suse.cz>
16686
16687         PR tree-optimization/30443
16688         * tree-inline.c (tree_function_versioning): Do not optimize when
16689         cloning for inlining.
16690
16691 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
16692
16693         * doc/loop.texi: Document recording of loop exits.
16694         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
16695         (update_single_exits_after_duplication,
16696         update_single_exit_for_duplicated_loop,
16697         update_single_exit_for_duplicated_loops): Removed.
16698         (duplicate_loop_to_header_edge): Do not call
16699         update_single_exits_after_duplication and
16700         update_single_exit_for_duplicated_loops.
16701         (loop_version): Do not update single_exit information.
16702         (fix_loop_structure): Use record_loop_exits instead of
16703         mark_single_exit_loops.
16704         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
16705         the lists of loop exits.
16706         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
16707         split_edge, merge_blocks): Update the lists of loop exits.
16708         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
16709         loop_optimizer_init.
16710         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
16711         of mark_single_exit_loops.
16712         (loop_optimizer_finalize): Call release_recorded_exits.
16713         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
16714         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
16715         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
16716         update single exit information.
16717         * lambda-code.c (perfect_nestify): Ditto.
16718         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
16719         (mark_single_exit_loops): Removed.
16720         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
16721         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
16722         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
16723         functions.
16724         (get_loop_exit_edges, single_exit): Use recorded exit lists.
16725         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
16726         (verify_loop_structure): Verify consistency of the exit lists.
16727         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
16728         (set_single_exit): Removed.
16729         * cfgloop.h (struct loop_exit): New function.
16730         (struct loop): single_exit_ field replaced by exits field.
16731         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
16732         (struct loops): Added exits hash.
16733         (mark_single_exit_loops, set_single_exit): Declaration removed.
16734         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
16735
16736 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16737
16738         * doc/invoke.texi: Avoid use of @headitem.
16739
16740 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16741
16742         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
16743
16744 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16745
16746         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
16747         list of targets.
16748
16749 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
16750             Richard Sandiford  <richard@codesourcery.com>
16751
16752         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
16753         * config/m68k/m68k.opt: Resort options.
16754         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
16755
16756 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
16757             Richard Sandiford  <richard@codesourcery.com>
16758
16759         * doc/invoke.texi: Document the macros that are defined by
16760         m68k's -mtune and -mhard-float options.
16761         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
16762         (m68k_cpp_cpu_family): Likewise.
16763         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
16764         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
16765         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
16766         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
16767         (m68k_cpp_cpu_family): Likewise.
16768
16769 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16770
16771         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
16772         macros besides mc68000 as tuning macros.  Use a switch statement
16773         to set them and mcpu32.
16774
16775 2007-01-12  Julian Brown  <julian@codesourcery.com>
16776
16777         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
16778         (TARGET_68040_ONLY): Rename to...
16779         (TARGET_68040): ...this.
16780         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
16781         * config/m68k/m68k.md: Likewise.
16782
16783 2007-01-12  Julian Brown  <julian@codesourcery.com>
16784             Nathan Sidwell  <nathan@codesourcery.com>
16785             Richard Sandiford  <richard@codesourcery.com>
16786
16787         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
16788         the -mcpu= argument associated with the --with-cpu setting.
16789         Define M68K_DEFAULT_TUNE to the default -mtune= option,
16790         if different from the one implied by the -mcpu setting.
16791         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
16792         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
16793         * doc/invoke.texi: Mention ColdFire in the introduction to the
16794         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
16795         -mno-div and -mhard-float options.  Make -m68881 a synonym for
16796         -mhard-float.  Document the previously-undocumented -m5206e,
16797         -m528x, -m5307 and -m5407 options.  Tweak the existing option
16798         documentation for consistency.
16799         * doc/install.texi: Mention new --with-cpu arguments.
16800         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
16801         default CPU if neither -mcpu nor -march are specified.
16802         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
16803         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
16804         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
16805         using m68k_tune to decide between families that implement the
16806         same ISA.  Use m68k_tune to set __mcfv4e__.
16807         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
16808         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
16809         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
16810         (FL_ISA_C, FL_ISA_MMU): New macros.
16811         (MASK_COLDFIRE): Delete.
16812         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
16813         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
16814         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
16815         (TARGET_HARD_FLOAT): Do not define here.
16816         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
16817         (TUNE_68000): New macro.
16818         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
16819         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
16820         (TUNE_CFV2): Redefine in terms of m68k_tune.
16821         (uarch_type, target_device, fpu_type): New enums.
16822         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
16823         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
16824         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
16825         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
16826         (FL_FOR_isa_c): New macros.
16827         (m68k_isa): New enum.
16828         (m68k_target_selection): New structure.
16829         (all_devices, all_isas, all_microarchs): New tables.
16830         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
16831         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
16832         (MASK_ALL_CPU_BITS): Delete.
16833         (m68k_find_selection): New function.
16834         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
16835         Map the legacy target options to a combination of the new ones.
16836         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
16837         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
16838         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
16839         settings.
16840         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
16841         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
16842         properties.
16843         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
16844         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
16845         * config/m68k/m68k-devices.def: New file.
16846
16847 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16848             Nathan Sidwell  <nathan@codesourcery.com>
16849
16850         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
16851         (SUBTARGET_EXTRA_SPECS): New macros.
16852         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
16853         use %(asm_cpu_spec) instead.
16854         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
16855         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16856         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16857         (EXTRA_SPECS): Rename to...
16858         (SUBTARGET_EXTRA_SPECS): ...this.
16859
16860 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
16861             Richard Sandiford  <richard@codesourcery.com>
16862             Julian Brown  <julian@codesourcery.com>
16863
16864         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
16865         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
16866         to the configuration's default CPU.
16867         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
16868         Remove default masks.
16869         (m680[012]0-*-*): Set the default with_cpu to the first part of
16870         the target name.
16871         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
16872         (m68k*-*-linux): Extend the --with-cpu handling to...
16873         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
16874         and m68010.  Don't set target_cpu_default2.
16875         * doc/install.texi: Document --with-cpu for m68k.
16876         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
16877         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
16878         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
16879         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
16880         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
16881         (ASM_SPEC): Remove use of %(asm_cpu_default).
16882         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
16883         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
16884         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
16885         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
16886         __HAVE_FPU__ if TARGET_HARD_FLOAT.
16887         (TARGET_DEFAULT): Delete.
16888         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
16889         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
16890         (CPP_CPU_SPEC): Delete.
16891         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
16892         the appropriate string.
16893         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
16894         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
16895         (ASM_SPEC): Don't use %(asm_default_spec).
16896         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
16897         TARGET_DEFAULT and add MASK_68881.
16898         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
16899
16900 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16901
16902         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
16903         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
16904         MASK_68010 alongside MASK_68020.
16905         * doc/invoke.texi: Document -m68010.
16906         * config/m68k/m68k.opt (m68010): New.
16907         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
16908         if TUNE_68010.
16909         (TUNE_68010): New macro.
16910         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
16911         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
16912         (M68K_CPU_m68332): Add MASK_68010.
16913         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
16914         fallback definition.
16915         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
16916         defines.
16917         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
16918         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
16919         to all entries that use MASK_68020.
16920         (output_move_simode_const, output_move_himode, output_move_qimode)
16921         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
16922         instead of TARGET_68020 to select clr behavior.  Remove comment
16923         about there being no TARGET_68010.
16924         * config/m68k/m68k.md: Likewise throughout.
16925
16926 2007-01-12  Julian Brown  <julian@codesourcery.com>
16927
16928         * config/m68k/m68k.h (TARGET_ISAB): New macro.
16929         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
16930         * config/m68k/m68k.md: Likewise.
16931
16932 2007-01-12  Julian Brown  <julian@codesourcery.com>
16933
16934         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
16935         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
16936
16937 2007-01-12  Julian Brown  <julian@codesourcery.com>
16938
16939         * config/m68k/m68k.h (TUNE_68040_60): New macro.
16940         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
16941         * config/m68k/m68k.md: Likewise.
16942
16943 2007-01-12  Julian Brown  <julian@codesourcery.com>
16944             Richard Sandiford  <richard@codesourcery.com>
16945
16946         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
16947         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
16948         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
16949         TARGET_CPU32.
16950         (TARGET_CPU32): Rename to...
16951         (TUNE_CPU32): ...this.
16952         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
16953         (TUNE_CFV2): New macros.
16954         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
16955         remove conditions that are implied by TARGET_68020.
16956         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
16957         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
16958         (m68k_output_function_epilogue): Likewise.
16959         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
16960         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
16961         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
16962         non-68000 timings.  Refactor multiplication and division costs.
16963         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
16964         TUNE_CPU32 instead of TARGET_CPU32.
16965         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
16966         and TUNE_68060 instead of TARGET_68060.
16967         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
16968         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
16969         TARGET_CPU32.
16970         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
16971         && !TARGET_COLDFIRE" to choose between moveq and clr.
16972         Likewise in the unnamed movsf pattern.
16973         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
16974         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
16975         ashiftrt pattern.
16976
16977 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
16978
16979         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
16980         of tabbing before backslashes.
16981
16982 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16983
16984         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
16985         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
16986         (ASM_OUTPUT_INTERNAL_LABEL): Define.
16987
16988 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
16989
16990         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
16991         find_interesting_uses_cond.
16992         (find_interesting_uses_cond): Use extract_cond_operands.
16993         (rewrite_use_compare): Use extract_cond_operands and
16994         force_gimple_operand_bsi.  Do not call update_stmt.
16995         (determine_use_iv_cost_condition): Use extract_cond_operands.
16996         Return cheaper of using original bound and changing the exit bound.
16997
16998 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
16999
17000         PR tree-optimization/29516
17001         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
17002         most_expensive_mult_to_index, addr_to_parts,
17003         create_mem_ref, maybe_fold_tmr): Make the type of
17004         fields of TARGET_MEM_REF sizetype.
17005         (move_fixed_address_to_symbol, move_pointer_to_base):
17006         New functions.
17007         * tree.def (TARGET_MEM_REF): Add comment on types of
17008         the operands.
17009
17010 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
17011
17012         * c-common.c (vector_types_convertible_p): Treat opaque types as
17013         always convertible if they have the same size, but not otherwise.
17014
17015 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
17016
17017         * ifcvt.c (struct noce_if_info): Add comments to the fields.
17018         Remove the b_unconditional field.
17019         (noce_try_sign_mask): Do not look at b_unconditional.
17020         (noce_process_if_block): Do not use merge_if_blocks.  Update
17021         the CFG here.  Do not set b_unconditional.
17022         (cond_move_process_if_block): Likewise.
17023         (find_cond_trap): Likewise.
17024         (check_cond_move_block): Require simple jump insns at the end
17025         of the basic block.
17026
17027 2007-01-11  Jan Hubicka  <jh@suse.cz>
17028
17029         PR tree-optimization/1046
17030         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
17031         when alias info is not ready.
17032         (pass_tail_recursion): Do not require aliasing.
17033         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
17034         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
17035         * tree-ssa-copy.c (pass_copy_prop): Likewise.
17036         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
17037         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
17038         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
17039         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
17040         before inlining.
17041         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
17042         When aliasing is not build, mark statement as volatile.
17043
17044 2007-01-11  Tom Tromey  <tromey@redhat.com>
17045
17046         PR preprocessor/15185, PR preprocessor/20989:
17047         * doc/cppopts.texi <-MT>: Update description of algorithm for
17048         computing default target.
17049         <-M, -MD>: Reword "basename" text.
17050
17051 2007-01-11  Roger Sayle  <roger@eyesopen.com>
17052
17053         * builtins.c (expand_builtin_pow, expand_builtin_powi,
17054         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
17055         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
17056         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
17057         fold_builtin_bswap, real_constp, fold_builtin_pow,
17058         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
17059         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
17060         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
17061         * convert.c (convert_to_pointer): Likewise.
17062         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
17063         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
17064         const_binop, fold_convert_const_int_from_int,
17065         fold_convert_const_int_from_real,
17066         fold_convert_const_real_from_real, sign_bit_p,
17067         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
17068         fold_sign_changed_comparison, fold_unary, fold_comparison,
17069         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
17070         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17071         * print-tree.c (print_node_brief, print_node): Likewise.
17072         * stor-layout.c (place_field, layout_type): Likewise.
17073         * tree-chrec.c (keep_cast): Likewise.
17074         * tree.c (build_vector, build_real, build_real_from_int_cst,
17075         build_complex): Likewise.
17076
17077 2007-01-11  Roger Sayle  <roger@eyesopen.com>
17078
17079         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
17080         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
17081
17082 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
17083
17084         * configure.ac (strict1_warn): Rename to strict_warn.
17085         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
17086         cc_set_by_configure, quoted_cc_set_by_configure,
17087         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
17088         all_boot_languages, all_stagestuff): Remove.
17089         (target_list): Remove bootstrap targets.
17090         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
17091         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
17092         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
17093         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
17094         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
17095         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
17096         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
17097         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
17098         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
17099         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
17100         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
17101         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
17102         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
17103         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
17104         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
17105         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
17106         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
17107         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
17108         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
17109         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
17110         (mostlyclean): Adjust.
17111         (clean, distclean): Don't mention bootstrap stuff.
17112         * configure: Regenerate.
17113         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
17114         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
17115         treelang/config-lang.in (stagestuff): Remove.
17116         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
17117         stageprofile, stagefeedback, stagestuff): Remove mention.
17118
17119 2007-01-11  Nick Clifton  <nickc@redhat.com>
17120
17121         * config/mcore/predicates.md (mcore_general_movesrc_operand):
17122         Accept CONSTs.
17123         (mcore_general_movdst_operand): Do not accept CONST_INTs.
17124         (mcore_arith_K_S_operand): Run the test for the S constraint not
17125         the test for the M constraint.
17126         (mcore_addsub_operand): Do not accept integer values that are
17127         larger than 32 bits.
17128         * config/mcore/mcore.md: Remove unused constraints from split.
17129         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
17130         (addsi3): Likewise.
17131         (allocate_stack): Likewise.
17132         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
17133         operands to 32 bits.
17134         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
17135         INTVAL.
17136         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
17137         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
17138         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
17139         mcore_output_bclri, mcore_output_andn, output_inline_const,
17140         mcore_output_move, mcore_output_movedouble): Likewise.
17141         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
17142         (output_inline_const): Likewise.
17143         (output_inline_const): Fix format strings used in sprintf
17144         statements.
17145         * config/mcore/mcore-protos.h: Update prototypes for changed
17146         functions in mcore.c.
17147         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
17148         HOST_WIDE_INT and not int.
17149         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
17150         CONST_OK_FOR_N): Likewise.
17151         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
17152         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
17153         an INTVAL.
17154
17155 2007-01-10  Jan Hubicka  <jh@suse.cz>
17156
17157         * tree-vrp.c (remove_range_assertions): Release defs.
17158         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
17159         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
17160
17161 2007-01-10  Paul Brook  <paul@codesourcery.com>
17162
17163         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
17164         * config/arm/arm.md (mulsi3subsi): New insn.
17165
17166 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
17167
17168         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
17169         (tree_transform_and_unroll_loop): New.
17170         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
17171         Declare.
17172
17173 2007-01-10  Robert Kennedy <jimbob@google.com>
17174
17175         * fold-const.c (fold_comparison): Fold comparisons like (x *
17176         1000 < 0) to (x < 0).
17177
17178 2007-01-10  Ian Lance Taylor  <iant@google.com>
17179
17180         * tree-pretty-print.c (dump_generic_node): Print parentheses when
17181         operands have the same priority.
17182
17183 2007-01-10  Tom Tromey  <tromey@redhat.com>
17184
17185         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
17186         (fold_binary): Likewise.
17187         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
17188         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
17189         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
17190         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
17191         * langhooks.h (struct lang_hooks): Removed field
17192         'can_use_bit_fields_p'.
17193
17194 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
17195
17196         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
17197
17198 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
17199
17200         * function.c (get_last_funcdef_no): New function.
17201         * function.h (get_last_funcdef_no): Declare.
17202         * tree-inline.c (initialize_cfun): Add initialization.
17203         (tree_function_versioning): Cleanup.
17204
17205 2007-01-10  Jan Hubicka  <jh@suse.cz>
17206
17207         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
17208         PHIs.
17209
17210 2007-01-10  Sa Liu  <saliu@de.ibm.com>
17211             Ben Elliston  <bje@au.ibm.com>
17212
17213         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
17214         for SAVE_NONLOCAL and Pmode for any other save level.
17215         * spu-protos.h (spu_restore_stack_block): Declare.
17216         * spu.md (save_stack_block): Remove.
17217         (restore_stack_block): Call spu_restore_stack_block.
17218         * spu.c (spu_restore_stack_block): New function.
17219         (spu_expand_epilogue): Remove old comment.
17220
17221 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
17222
17223         PR tree-optimization/30322
17224         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
17225         (cand_value_at): Return the value as aff_tree.
17226         (may_eliminate_iv): Convert the bound from aff_tree to tree.
17227         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
17228         aff_combination_mult): New functions.
17229         (aff_combination_add): Use aff_combination_add_cst.
17230         (aff_combination_convert): Allow conversions to a wider type.
17231         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
17232         * tree-affine.h (aff_combination_mult): Declare.
17233
17234 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
17235
17236         * doc/tm.texi: Update documentation to reflect reality of exec
17237         and start file search behaviours. Update copyright year.
17238         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
17239         header file directories.
17240
17241 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
17242
17243         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
17244         (*cosxf2): Rename to cosxf2_i387.
17245         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
17246         using X87MODEF12 mode macro. Rename patterns to
17247         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
17248         for SSE math.
17249         (*cosdf2, *cossf2): Ditto.
17250         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
17251         to match extended input operands.
17252         (sincos<mode>3): New expander.
17253         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
17254         insn patterns and corresponding splitters.
17255
17256 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
17257
17258         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
17259         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
17260
17261 2007-01-09  Nicolas Pitre  <nico@cam.org>
17262
17263         PR target/30173
17264         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
17265
17266 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
17267
17268         * target.h (struct gcc_target): New field library_rtti_comdat.
17269         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
17270         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
17271         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
17272         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
17273
17274 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
17275
17276         * doc/invoke.texi (Optimize Options): Correct description of -O0.
17277
17278 2007-01-08  Richard Guenther  <rguenther@suse.de>
17279
17280         * tree.h (force_fit_type_double): Export.
17281         (force_fit_type): Remove.
17282         * fold-const.c (force_fit_type_double): New function.
17283         (force_fit_type): Remove.
17284         (int_const_binop): Use it.
17285         (fold_convert_const_int_from_int): Likewise.
17286         (fold_convert_const_int_from_real): Likewise.
17287         (fold_div_compare): Likewise.
17288         (fold_sign_changed_comparison): Likewise.
17289         (fold_unary): Likewise.
17290         (fold_negate_const): Likewise.
17291         (fold_abs_const): Likewise.
17292         (fold_not_const): Likewise.
17293         * c-common.c (shorten_compare): Use force_fit_type_double.
17294         * convert.c (convert_to_pointer): Likewise.
17295
17296 2007-01-08  Richard Guenther  <rguenther@suse.de>
17297
17298         * tree.h (build_int_cst_wide_type): Export.
17299         * tree.c (build_int_cst_wide_type): New function.
17300         (build_int_cst_wide): Fix comment.
17301         * builtins.c (fold_builtin_object_size): Use build_int_cst
17302         to build -1 or 0 of the correct type.  Use fit_double_type
17303         to check for overflow.
17304         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
17305         to build the mask.
17306         (decode_field_reference): Likewise.
17307         (all_ones_mask_p): Likewise.
17308         (native_interpret_int): Use build_int_cst_wide_type.
17309         (fold_binary): Use build_int_cst_type to build an all-ones
17310         value.
17311         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
17312
17313 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
17314
17315         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
17316
17317 2007-01-09  Ben Elliston  <bje@au.ibm.com>
17318
17319         * genautomata.c (STATS_OPTION): New option.
17320         (stats_flag): New flag.
17321         (gen_automata_option): Handle it.
17322         (initiate_automaton_gen): Ditto.
17323         (write_automata): Output statistics only if stats_flag is
17324         set. Likewise, output time statistics only if time_flag is set.
17325         * doc/md.texi (Processor pipeline description): Document new flag.
17326
17327 2007-01-08  Richard Guenther  <rguenther@suse.de>
17328
17329         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
17330         * tree.c (build_int_cst_type): Likewise.
17331         (size_in_bytes): Don't call force_fit_type on the result.
17332         (int_fits_type_p): Use fit_double_type.
17333         * fold-const.c (fit_double_type): New function.
17334         (force_fit_type): Use it.
17335         * tree.h (fit_double_type): Export.
17336
17337 2007-01-08  Jan Hubicka  <jh@suse.cz>
17338
17339         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
17340         * ipa.c (function_and_variable_visibility): Fix return type.
17341
17342 2007-01-08  Richard Guenther  <rguenther@suse.de>
17343
17344         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
17345         of offset to build the index.
17346         * tree-pretty-print.c (dump_generic_node): Don't build negated
17347         const just for printing.
17348         * c-pretty-print.c (pp_c_integer_constant): Likewise.
17349         * builtins.c (fold_builtin_int_roundingfn): Check if result
17350         fits the type by using force_fit_type and comparing the result.
17351         * predict.c (predict_loops): Use compare_tree_int for comparison.
17352         * tree.c (build_int_cst): Fall back to integer_type_node for
17353         NULL_TREE type.
17354         (build_int_cst_wide): Assert type is non-null.
17355
17356 2007-01-08  Roberto Costa  <roberto.costa@st.com>
17357
17358         * tree-vrp.c (extract_range_from_cond_expr): New.
17359         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
17360         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
17361         as expressions.
17362         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
17363         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
17364         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
17365         used as expressions.
17366         * tree-object-size.c (cond_expr_object_size): New.
17367         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
17368
17369 2007-01-08  Jan Hubicka  <jh@suse.cz>
17370
17371         * tree-ssa-forwprop.c (forward_propagate_into_cond,
17372         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
17373         statement.
17374
17375 2007-01-08  Richard Guenther  <rguenther@suse.de>
17376
17377         PR tree-optimization/23603
17378         * tree-vrp.c (set_value_range_to_truthvalue): New function.
17379         (extract_range_from_binary): Fall back to truthvalue instead of
17380         varying for TRUTH_*_EXPR.
17381         (extract_range_from_comparison): Fall back to truthvalue instead of
17382         varying.
17383         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
17384         if all visited PHI values were constant.
17385
17386 2007-01-08  Jan Hubicka  <jh@suse.cz>
17387
17388         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
17389         (cgraph_analyze_function): break out from ...
17390         (cgraph_finalize_compilation_unit): ... here.
17391         (cgraph_expand_function): Remove forgoten commented out line.
17392         (cgraph_optimize): Analyze functions.
17393
17394 2007-01-08  Jan Hubicka  <jh@suse.cz>
17395
17396         * tree-pas.h (TODO_remove_function): New flag.
17397         (TODO_update*): Renumber.
17398         (pass_ipa_increase_alignment,
17399         pass_ipa_function_and_variable_visibility): New passes.
17400         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
17401         (cgraph_function_and_variable_visibility): Move to ipa.c
17402         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
17403         cgraph_increase_alignment.
17404         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
17405         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
17406         calling tree-inline.
17407         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
17408         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
17409         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
17410         (gate_increase_alignment): New function.
17411         (pass_ipa_increase_alignment): New pass.
17412         * ipa.c: Inline tree-pass.h and timevar.h
17413         (function_and_variable_visibility): Move here from cgraphunit.c
17414         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
17415         * passes.c (init_optimization_passes): Add the two new passes.
17416         (execute_todo): Handle cgraph_remove_functions.
17417
17418 2007-01-08  Nick Clifton  <nickc@redhat.com>
17419
17420         * config/frv/predicates.md (reg_or_0_operand): Accept
17421         CONST_DOUBLEs.
17422
17423 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
17424
17425         * config/bfin/rtems.h, config/bfin/t-rtems: New.
17426         * config.gcc: Add bfin*-rtems*.
17427
17428 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
17429
17430         * c.opt: Add -flax-vector-conversions.
17431         * c-typeck.c (convert_for_assignment): Pass flag to
17432         vector_types_convertible_p to allow emission of note.
17433         (digest_init): Likewise.
17434         * c-opts.c: Handle -flax-vector-conversions.
17435         * c-common.c (flag_lax_vector_conversions): New.
17436         (vector_types_convertible_p): Unless -flax-vector conversions
17437         has been passed, disallow conversions between vectors with
17438         differing numbers of subparts and/or element types.  If such
17439         a conversion is disallowed, possibly emit a note on the first
17440         occasion only to inform the user of -flax-vector-conversions.
17441         The new last argument specifies this.
17442         * c-common.h (flag_lax_vector_conversions): New.
17443         (vector_types_convertible_p): Add extra argument.
17444         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
17445         char_type_node for V*QI type vectors.
17446         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
17447         Update to satisfy new typechecking rules.
17448         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
17449         C and C++ variants.
17450         * doc/invoke.texi (C Dialect Options): Document
17451         -flax-vector-conversions.
17452
17453 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
17454
17455         PR tree-optimization/29877
17456         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
17457         a register variable on the RHS to not be replaceable.
17458
17459 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
17460         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
17461         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
17462         const_simm15, const_pow2, const_npow2): Added.
17463         * config/score/misc.md (insv, extv, extzv, movmemsi,
17464         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
17465         * config/score/score.c (score_address_cost, score_select_cc_mode):
17466         Added.
17467         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
17468         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
17469         Update score_print_operand.
17470         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
17471         Adjust register allocate order and update some macro define.
17472         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
17473         mdx_block_move_straight, mdx_block_move_loop_head,
17474         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
17475         mdx_block_move): Added.
17476         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
17477         mdp_limm): Updated and fix some bug and typo.
17478         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
17479         (movsf, movdf, doloop_end): Added.
17480
17481 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
17482
17483         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
17484         config/arm/thumb2.md: Fix comment typos.
17485         * doc/extend.texi: Fix a typo.
17486
17487 2007-01-07  Eric Christopher  <echristo@apple.com>
17488
17489         * configure.ac: Check for __stack_chk_fail for darwin.
17490         * configure: Regenerate.
17491
17492 2007-01-07  Richard Guenther  <rguenther@suse.de>
17493
17494         * tree-vrp.c (extract_range_from_assert): CSE calls to
17495         compare_values where possible.
17496         (extract_range_from_unary_expr): Likewise.
17497
17498 2007-01-07  Anatoly Sokolov <aesok@post.ru>
17499
17500         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
17501         * config/avr/avr.c (call_insn_operand): Delete function.
17502         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
17503         instead of register number. Use predicates.
17504         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
17505         call_insn_operand): Add.
17506
17507 2007-01-06  Jan Hubicka  <jh@suse.cz>
17508
17509         * tree-pass.h (pass_build_cgraph_edges): Declare.
17510         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
17511         (visited_nodes): Remove.
17512         (cgraph_create_edges): Move to cgraphbuild.c; rename to
17513         build_cgrpah_edges; make visited_nodes local.
17514         (cgraph_process_new_functions): DO not call initialize_inline_failed.
17515         (record_references_in_initializer): Move to cgraphbuild.c
17516         (initialize_inline_failed, rebuild_cgraph_edges,
17517         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
17518         (verify_cgraph_node): Make visited_nodes local.
17519         (cgraph_analyze_function): Do not call cgraph_create_edges and
17520         initialize_inline_failed.
17521         (cgraph_expand_function): Do not call cgraph_lower_function;
17522         assert that function is already lowered.
17523         * Makefile.in (cgraphbuild.o): New.
17524         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
17525         at the end of lowering passes.
17526
17527 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
17528
17529         * ifcvt.c (cond_move_convert_if_block): New function, code
17530         factored out from...
17531         (cond_move_process_if_block): ...here.  Call the new function
17532         on the THEN and ELSE blocks.
17533         (merge_if_block): Do not copy global_live_at_end, merge_blocks
17534         already takes care of this.
17535
17536 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17537
17538         PR c/19978
17539         * tree.h (TREE_OVERFLOW_P): New.
17540         * c-typeck.c (parser_build_unary_op): Warn only if result
17541         overflowed and operands did not.
17542         (parser_build_binary_op): Likewise.
17543         (convert_for_assignment): Remove redundant overflow_warning.
17544         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
17545
17546 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17547
17548         * c-typeck.c (store_init_value): Split over two lines to follow
17549         the GNU coding style.
17550
17551 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
17552
17553         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
17554         __GXX_EXPERIMENTAL_CXX0X__.
17555         * doc/cpp.texi: Same.
17556
17557 2007-01-05  Richard Guenther  <rguenther@suse.de>
17558
17559         PR middle-end/27826
17560         * tree.c (get_narrower): Do not construct COMPONENT_REFs
17561         with mismatched types.  Instead explicitly build a
17562         conversion NOP_EXPR.
17563
17564 2007-01-05  Ian Lance Taylor  <iant@google.com>
17565
17566         * c-common.c (decl_with_nonnull_addr_p): New function.
17567         (c_common_truthvalue_conversion): Call it.
17568         * c-typeck.c (build_binary_op): Likewise.
17569         * c-common.h (decl_with_nonnull_addr_p): Declare.
17570
17571 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
17572
17573         PR c/30360
17574         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
17575         denom against 0.0.
17576
17577 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
17578
17579         * doc/install.texi (Final install): Document the fact that
17580         the GNAT runtime should not be stripped.
17581
17582 2007-01-04  Jan Hubicka  <jh@suse.cz>
17583
17584         * tree-inline.c (fold_marked_statements): Update operand caches
17585         and EH after folding
17586
17587 2007-01-04  Ian Lance Taylor  <iant@google.com>
17588
17589         * c-common.c (check_function_nonnull): Whitespace fix.
17590
17591 2007-01-04  Jan Hubicka  <jh@suse.cz>
17592
17593         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
17594         comitted older version of patch.
17595         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
17596         function, celanup cfg and collect garbage.
17597
17598 2007-01-04  Mike Stump  <mrs@apple.com>
17599
17600         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
17601         (clean): Likewise.
17602
17603 2007-01-04  Eric Christopher  <echristo@apple.com>
17604
17605         * libgcc2.c (__bswapsi2): Use SItype.
17606         (__bswapdi2): Use DItype.
17607         * libgcc2.h: Update for above.
17608
17609 2007-01-04  Paul Brook  <paul@codesourcery.com>
17610
17611         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
17612         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
17613         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
17614         umulsidi3, umulsidi3adddi, smulsi3_highpart,
17615         umulsi3_highpart): Make conditional on !arm_arch6.
17616         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
17617         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
17618         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
17619         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
17620         umulsi3_highpart_v6): New insns.
17621
17622 2007-01-04  Roger Sayle  <roger@eyesopen.com>
17623
17624         * fold-const.c (fold_convert): When casting an expression to void,
17625         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
17626         have a type.  Instead of attempting to build a NOP_EXPR, return
17627         these "special" trees directly.
17628
17629 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
17630
17631         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
17632         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
17633         rs6000_cost->fp not 0 as adjustment for outer NEG.
17634
17635 2007-01-04  Jan Hubicka  <jh@suse.cz>
17636
17637         * cgraph.c (cgraph_release_function_body): New function.
17638         (cgraph_remove_node): Use it.
17639         * cgraph.h (cgraph_release_function_body): Declare.
17640         * cgraphunit.c (cgraph_expand_function): Use it.
17641         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
17642         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
17643         is initialized and while compilation of other function is running.
17644         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
17645         statement CFG annotations from here to ...
17646         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
17647
17648 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
17649
17650         * cfgloop.h (enum li_flags): Make the constants powers of two.
17651
17652 2007-01-04  Jan Hubicka  <jh@suse.cz>
17653
17654         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
17655         set.
17656         (fold_marked_statements): New function.
17657         (optimize_inline_calls, tree_function_versioning): Fold new statements.
17658         * tree-inline.h (copy_body_data): Add statements_to_fold.
17659
17660 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
17661
17662         * config.gcc: Mention libgcc/config.host.
17663         * Makefile.in: Update comments mentioning libgcc.
17664         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
17665         (all.cross, start.encap, rest.encap, rest.cross): Update
17666         dependencies for libgcc move.
17667         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
17668         (clean-target, clean-target-libgcc): Delete.
17669         (srcdirify, GCC_EXTRA_PARTS): New macros.
17670         (libgcc-support, libgcc.mvars): New rules.
17671         (distclean): Remove mention of mklibgcc.
17672         (install): Don't reference INSTALL_LIBGCC.
17673         (install-common): Don't reference EXTRA_PARTS.
17674         (install-libgcc, install-multilib): Delete rules.
17675         * mklibgcc.in: Delete file.
17676         * doc/configfiles.texi: Don't mention mklibgcc.
17677
17678         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
17679         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
17680         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
17681         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
17682         (mklibgcc, ldblspecs): Likewise.
17683
17684         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
17685         (posixpre.def): Use $(T).
17686         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
17687         (SHLIB_SRC, SHLIB_INSTALL): Delete.
17688         (SHLIB_LINK): Make dummy.
17689         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
17690
17691         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
17692
17693         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
17694         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
17695         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
17696         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
17697
17698         * configure.ac (all_outputs): Remove mklibgcc.
17699         * configure: Regenerated.
17700
17701 2007-01-03  Josh Conner  <jconner@apple.com>
17702
17703         PR middle-end/29683
17704         * calls.c (compute_argument_addresses): Set stack and stack_slot
17705         for partial args, too.
17706         (store_one_arg): Use locate.size.constant for the size when
17707         generating a save_area.
17708
17709 2007-01-03  Robert Kennedy <jimbob@google.com>
17710
17711         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
17712         whose definitions are deleted due to basic block merging.
17713
17714 2007-01-03  Paul Brook  <paul@codesourcery.com>
17715
17716         PR target/16634
17717         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
17718         functions.
17719         (use_return_insn): Return 0 for Thumb interrupt functions.
17720         (print_multi_reg): Add rfe argument for IRQ returns.
17721         (arm_output_epilogue): Pop interrupt return address directly into PC.
17722         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
17723
17724 2007-01-03  Paul Brook  <paul@codesourcery.com>
17725
17726         Merge from sourcerygxx-4_1.
17727         * config/arm/thumb2.md: New file.
17728         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
17729         Thumb-2.
17730         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
17731         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
17732         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
17733         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
17734         tables.
17735         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
17736         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
17737         comptibility.
17738         * config/arm/ieee754-sf.S: Ditto.
17739         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
17740         (thumb1_base_register_rtx_p): ... to this.
17741         (thumb_index_register_rtx_p): Rename...
17742         (thumb1_index_register_rtx_p): ... to this.
17743         (thumb_output_function_prologue): Rename...
17744         (thumb1_output_function_prologue): ... to this.
17745         (thumb_legitimate_address_p): Rename...
17746         (thumb1_legitimate_address_p): ... to this.
17747         (thumb_rtx_costs): Rename...
17748         (thumb1_rtx_costs): ... to this.
17749         (thumb_compute_save_reg_mask): Rename...
17750         (thumb1_compute_save_reg_mask): ... to this.
17751         (thumb_final_prescan_insn): Rename...
17752         (thumb1_final_prescan_insn): ... to this.
17753         (thumb_expand_epilogue): Rename...
17754         (thumb1_expand_epilogue): ... to this.
17755         (arm_unwind_emit_stm): Rename...
17756         (arm_unwind_emit_sequence): ... to this.
17757         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
17758         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
17759         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
17760         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
17761         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
17762         thumb2_output_casesi): New functions.
17763         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
17764         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
17765         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
17766         THUMB2_WORK_REGS): Define.
17767         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
17768         arm_condexec_mask, arm_condexec_masklen)): New variables.
17769         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
17770         (arm_override_options): Check new CPU capabilities.
17771         Set new architecture flag variables.
17772         (arm_isr_value): Handle v7m interrupt functions.
17773         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
17774         Thumb-2.
17775         (const_ok_for_arm): Handle Thumb-2 constants.
17776         (arm_gen_constant): Ditto.  Use movw when available.
17777         (arm_function_ok_for_sibcall): Return false for v7m interrupt
17778         functions.
17779         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
17780         (thumb_find_work_register, arm_load_pic_register,
17781         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
17782         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
17783         print_multi_reg, output_mov_long_double_fpa_from_arm,
17784         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
17785         output_mov_double_fpa_from_arm, output_move_double,
17786         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
17787         output_return_instruction, arm_output_function_prologue,
17788         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
17789         arm_output_mi_thunk, thumb_set_return_address): Ditto.
17790         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
17791         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
17792         (arithmetic_instr, shift_op): Use arm_shift_nmem.
17793         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
17794         '!' and 'L'.
17795         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
17796         (thumb_expand_prologue): Use thumb_set_frame_pointer.
17797         (arm_file_start): Output directive for unified syntax.
17798         (arm_unwind_emit_set): Handle stack alignment instruction.
17799         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
17800         Add v6t2, v7, v7a, v7r and v7m.
17801         (RETLDM): Add Thumb-2 code.
17802         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
17803         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
17804         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
17805         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
17806         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
17807         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
17808         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
17809         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
17810         ADJUST_INSN_LENGTH): Define.
17811         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
17812         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
17813         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
17814         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
17815         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
17816         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
17817         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
17818         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
17819         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
17820         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
17821         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
17822         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
17823         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
17824         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
17825         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
17826         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
17827         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
17828         cortex-m3.
17829         * config/arm/arm-tune.md: Regenerate.
17830         * config/arm/arm-protos.h: Update prototypes.
17831         * config/arm/vfp.md: Enable patterns for Thumb-2.
17832         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
17833         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
17834         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
17835         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
17836         * config/arm/libunwind.S: Add Thumb-2 code.
17837         * config/arm/constraints.md: Update include Thumb-2.
17838         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
17839         * config/arm/ieee754-df.S: Ditto.
17840         * config/arm/bpabi.S: Ditto.
17841         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
17842         * config/arm/predicates.md (low_register_operand,
17843         low_reg_or_int_operand, thumb_16bit_operator): New.
17844         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
17845         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
17846         * config/arm/t-arm-elf: Add armv7 multilib.
17847         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
17848         Include thumb2.md.
17849         (UNSPEC_STACK_ALIGN, ce_count): New.
17850         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
17851         arm_zero_extendsidi2, arm_zero_extendqidi2): New
17852         insns/expanders.
17853         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
17854         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
17855         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
17856         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
17857         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
17858         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
17859         insns.
17860         * doc/extend.texi: Document ARMv7-M interrupt functions.
17861         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
17862
17863 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
17864
17865         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
17866         (struct _Unwind_Context): Rename args_size to flags, remove
17867         signal_frame field, add a new args_size field and version field.
17868         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
17869         _Unwind_IsExtendedContext): New inline functions.
17870         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
17871         Assume by_value array is only present if _Unwind_IsExtendedContext.
17872         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
17873         _Unwind_IsSignalFrame.
17874         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
17875         (uw_update_context_1): Use _Unwind_SetSignalFrame.
17876         (uw_init_context_1): Initialize context->flags to
17877         EXTENDED_CONTEXT_BIT.
17878         * config/rs6000/linux-unwind.h (frob_update_context): Use
17879         _Unwind_SetSignalFrame.
17880
17881 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17882
17883         PR middle-end/30353
17884         * gimplify.c (gimplify_modify_expr_complex_part): Move below
17885         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
17886         the value.
17887
17888 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
17889
17890         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
17891         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
17892         RET, AT_SP): Remove.
17893         * config/i386/i386.md (*sse_prologue_save_insn): Use return
17894         instead of RET.
17895
17896         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
17897         * cfgbuild.c (find_basic_blocks): Likewise.
17898         * cfgrtl.c (rtl_create_basic_block): Likewise.
17899         * function.c (temp_slots_at_level): Likewise.
17900         * reg-stack.c (stack_regs_mentioned): Likewise.
17901         * regclass.c (allocate_reg_info): Likewise.
17902         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
17903         set_bb_for_stmt, move_block_to_fn): Likewise.
17904         * tree-complex.c (tree_lower_complex): Likewise.
17905         * vec.h (VEC_safe_grow_cleared): New.
17906
17907         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
17908
17909 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
17910
17911         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
17912         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
17913         to loop_version.
17914         * cfgloopmanip.c (scale_loop_frequencies): Export.
17915         (loopify): Scale the frequencies by prescribed coefficients.
17916         (set_zero_probability): New function.
17917         (duplicate_loop_to_header_edge): Improve updating of frequencies.
17918         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
17919         and frequencies according to arguments.
17920         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
17921         correctly.
17922         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
17923         * modulo-sched.c (sms_schedule): Set probabilities for entering
17924         versioned loop correctly.
17925         * tree-vect-transform.c (vect_transform_loop): Ditto.
17926         * cfgloop.h (loopify, loop_version): Declaration changed.
17927         (scale_loop_frequencies): Declared.
17928
17929 2007-01-02  Jan Hubicka  <jh@suse.cz>
17930
17931         * cgraph.c: Include tree-flow.h
17932         (cgraph_add_new-function): Handle IPA_SSA mode; execute
17933         early_local_passes.
17934         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
17935         * tree-pass.h (pass_all_early_optimizations): Declare.
17936         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
17937         early_local_passes.
17938         (cgraph_analyze_function): Do early_local_passes.
17939         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
17940         Do not add referenced vars.
17941         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
17942         SSA form.
17943         (gate_all_early_local_passes): New gate.
17944         (pass_early_local_passes): Use new gate.
17945         (execute_early_local_optimizations): New functions.
17946         (gate_all_early_optimizations): New gate.
17947         (pass_all_early_optimizations): New pass.
17948         (execute_free_datastructures): Free SSA only when initialized.
17949         (gate_init_datastructures): Init only when optimizing.
17950         (tree_lowering_passes): Do early local passes when called late.
17951         * tree-profile.c (do_tree_profiling): Don't profile functions added
17952         late.
17953         (do_early_tree_profiling, pass_early_tree_profile): Kill.
17954         * tree-cfg.c (update_modified_stmts): Do not update when operands are
17955         not active.
17956         * passes.c (init_optimizations_passes): Reorder so we go into SSA
17957         during early_local_passes.
17958         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
17959
17960
17961 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
17962
17963         * Makefile.in: Update copyright year.
17964
17965 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
17966
17967         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
17968         in $(lang_checks) and check-consistency targets.
17969
17970 2007-01-02  Jan Hubicka  <jh@suse.cz>
17971
17972         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
17973         Do not add referenced vars.
17974         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
17975         are not active.
17976         * passes.c (init_optimization_passes): Put mudflap_2 after
17977         free_datastructures.
17978
17979 2007-01-02  Jan Hubicka  <jh@suse.cz>
17980
17981         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
17982         Set NOTHROW flag on call statements proved to be nothrow.
17983         Update statement of local calls so new pure/const functions are
17984         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
17985         goto receivers.
17986         (tree_rest_of_compilation): Register hooks and initialize bitmap
17987         early. Do not set after_inlining flag.
17988
17989 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
17990
17991         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
17992         HOST_BITS_PER_LONGLONG
17993
17994 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17995
17996         PR c/19977
17997         * c-typeck.c (store_init_value): Don't emit pedantic overflow
17998         warning for non-static initializers.
17999
18000 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
18001
18002         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
18003         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
18004         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
18005         Always use set_unique_reg_note to add REG_EQUAL notes.
18006
18007 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
18008
18009         Revert:
18010         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
18011
18012         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
18013         * cfgbuild.c (find_basic_blocks): Likewise.
18014         * cfgrtl.c (rtl_create_basic_block): Likewise.
18015         * function.c (temp_slots_at_level): Likewise.
18016         * reg-stack.c (stack_regs_mentioned): Likewise.
18017         * regclass.c (allocate_reg_info): Likewise.
18018         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
18019         set_bb_for_stmt, move_block_to_fn): Likewise.
18020         * tree-complex.c (tree_lower_complex): Likewise.
18021         * vec.h (VEC_safe_grow_cleared): New.
18022
18023 2007-01-02  Ian Lance Taylor  <iant@google.com>
18024
18025         * c-common.c (c_common_truthvalue_conversion): When warning about
18026         using an assignment as a truth value, set TREE_NO_WARNING.
18027
18028 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18029
18030         PR middle-end/7651
18031         * c.opt (Wold-style-declaration): New.
18032         * doc/invoke.texi (C-only Warning Options): New.
18033         (Wold-style-declaration): Document it.
18034         (Wextra): Enabled by -Wextra.
18035         * c-opts.c (c_common_post_options): Enabled by -Wextra.
18036         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
18037         -Wold-style-declaration.
18038
18039 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
18040
18041         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
18042         * cfgbuild.c (find_basic_blocks): Likewise.
18043         * cfgrtl.c (rtl_create_basic_block): Likewise.
18044         * function.c (temp_slots_at_level): Likewise.
18045         * reg-stack.c (stack_regs_mentioned): Likewise.
18046         * regclass.c (allocate_reg_info): Likewise.
18047         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
18048         set_bb_for_stmt, move_block_to_fn): Likewise.
18049         * tree-complex.c (tree_lower_complex): Likewise.
18050         * vec.h (VEC_safe_grow_cleared): New.
18051
18052 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
18053
18054         * c-common.c (c_common_nodes_and_builtins): Since variants of
18055         void_type_node get built before it is given a name, we need to
18056         give those variants the name, too.
18057         (complete_array_type): We need to work with the canonical main
18058         type of the array, from which we will build the qualified version.
18059         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
18060         * print-tree.c (print_node): Display canonical type information
18061         for each type.
18062         * stor-layout.c (layout_type): When we don't know the
18063         alignment of a type for which we're building an array, we end up
18064         guessing wrong, so make the type require structural equality.
18065         * tree.c (make_node_stat): When we build a new type, it is its
18066         own canonical type.
18067         (build_type_attribute_qual_variant): When building an attribute
18068         variant, its canonical type is the non-attribute variant. However,
18069         if the attributes are target-dependent and they differ, we need to
18070         use structural equality checks for this type.
18071         (build_qualified_type): A qualified type is not equivalent to its
18072         unqualified variant; set the canonical type appropriately.
18073         (build_distinct_type_copy): When building a distinct type from
18074         another type, the new type is its own canonical type.
18075         (build_variant_type_copy): When building a new type variant, we
18076         assume that it is equivalent to the original type.
18077         (build_pointer_type_for_mode): When building a pointer type, also
18078         build a canonical type pointer.
18079         (build_reference_type_for_mode): When building a reference type,
18080         also build a canonical type reference.
18081         (build_index_type): When we can't hash an index type (e.g.,
18082         because its maximum value is negative), the index type requires
18083         structural equality tests.
18084         (build_array_type): Build the canonical form of an array type.
18085         (build_function_type): Function types require structural equality,
18086         because they contain default arguments, attributes, etc.
18087         (build_method_type_directly): Ditto for method types.
18088         (build_offset_type): Build the canonical offset type.
18089         (build_complex_type): Build the canonical vector type.
18090         (make_vector_type): Build the canonical vector type.
18091         * tree.h (TYPE_CANONICAL): New.
18092         (TYPE_STRUCTURAL_EQUALITY_P): New.
18093         (SET_TYPE_STRUCTURAL_EQUALITY): New.
18094         (struct tree_type): Added "canonical" field.
18095         * params.h (VERIFY_CANONICAL_TYPES): New.
18096         * doc/c-tree.texi (TYPE_CANONICAL): Document.
18097         (TYPE_STRUCTURAL_EQUALITY_P): Document.
18098         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
18099         * doc/invoke.texi (verify-canonical-types): Document --param
18100         parameter for verifying canonical types.
18101
18102 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
18103
18104         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
18105         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
18106         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
18107         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
18108         tm_file.
18109         * config/rs6000/e500.h: New.
18110         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
18111         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
18112         Remove.
18113         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
18114         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
18115         TARGET_E500_DOUBLE): Remove.
18116         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
18117         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
18118         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
18119         * config/rs6000/rs6000.c (rs6000_override_options): Use
18120         CHECK_E500_OPTIONS.
18121
18122 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
18123
18124         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
18125         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
18126         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
18127         rs6000_emit_cmove): Don't check TARGET_E500.
18128         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
18129         sordered): Don't check TARGET_E500.
18130
18131 2007-01-01  Eric Christopher  <echristo@apple.com>
18132
18133         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
18134         HARD_REGISTER_NUM_P.
18135
18136 2007-01-01  Roger Sayle  <roger@eyesopen.com>
18137
18138         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
18139         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
18140         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
18141         eq/ne Y".
18142
18143 2007-01-01  Mike Stump  <mrs@apple.com>
18144
18145         * configure.ac: Remove support for building with Apple's gcc-3.1.
18146
18147 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
18148
18149         PR middle-end/30311
18150         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
18151         REG is a hard register.  Do not modify REG before calling
18152         subreg_nregs.
18153         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
18154         multiple of the size of YMODE for certain lowpart cases.
18155
18156 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
18157
18158         PR middle-end/30253
18159         * gimplify (voidify_wrapper_expr): Update for
18160         GIMPLE_MODIFY_STMT.
18161
18162 2007-01-01  Andreas Schwab  <schwab@suse.de>
18163
18164         PR target/29166
18165         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
18166         save of BR0 in extra_spill_size instead of spill_size.
18167         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
18168         area.
18169         (ia64_expand_epilogue): Restore BR0 from its new location.
18170
18171 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
18172
18173         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
18174         Use a temporary variable if the left hand side is not a gimple
18175         register.
18176
18177 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
18178
18179         * gimplify.c (gimplify_return_expr): Make the temporary variable
18180         for the return expression, a gimple register variable.
18181
18182 2007-01-01  Jan Hubicka  <jh@suse.cz>
18183
18184         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
18185         INSN_LIST.
18186
18187 2007-01-01  Mike Stump  <mrs@apple.com>
18188
18189         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
18190         .literal16.
18191         * config/darwin.c (machopic_select_rtx_section): Use
18192         HAVE_GAS_LITERAL16.
18193         (darwin_mergeable_constant_section): Likewise.
18194         * configure: Regenerate.
18195         * config.in: Regenerate.
18196
18197 2007-01-01  Jan Hubicka  <jh@suse.cz>
18198             Andrew Pinski  <pinskia@gmail.com>
18199
18200         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
18201         before starting IPA passes.