OSDN Git Service

08f990c887e3f6916f9d13371c8e1516eb731424
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
2
3         * predict.c: Include pointer-set.h.
4         (bb_predictions): New variable.
5         (tree_predicted_by_p, tree_predict_edge,
6         remove_predictions_associated_with_edge): Use bb_predictions map
7         instead of bb->predictions.
8         (clear_bb_predictions, assert_is_empty): New functions.
9         (combine_predictions_for_bb): Use bb_predictions map.  Call
10         clear_bb_predictions.
11         (tree_estimate_probability): Create and free bb_predictions map.
12         * Makefile.in (predict.o): Add pointer-set.h dependency.
13         * basic-block.h (struct basic_block_def): Remove predictions
14         field.
15         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
16
17 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
18
19         PR target/31480
20         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
21         is null.
22
23 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24
25         * timevar.c (timevar_print): Change reference of --disable-checking to
26         --enable-checking=release.  Also warn if assert checking is disabled.
27
28 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29
30         PR C/30265
31         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
32         decl as addressable if the compound literal was marked as
33         addressable.
34         Mark the decl as a gimple register if it is a complex or
35         vector decl and does not live in memory.
36
37 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
38
39         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
40         (GENERIC_NEXT): New function macro.
41         (PHI_CHAIN): Use phi_node's new chain variable.
42         (tree_phi_node): Change tree_common to tree_base
43         and add the chain field.
44         * tree-phinodes.c (make_phi_node): Don't set
45         TREE_TYPE on the new node.
46         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
47         instead of checking GIMPLE_TUPLE_P in chain_next.
48         * tree-vect-transform.c
49         (get_initial_def_for_induction): Look at
50         PHI_RESULT_TREE for the type of the phi node.
51         (update_vuses_to_preheader): Use PHI_CHAIN
52         instead of TREE_CHAIN on the phi node.
53         * tree-ssa-structalias.c (compute_points_to_sets):
54         Likewise.
55         (ipa_pta_execute): Likewise.
56
57 2007-04-21  Richard Guenther  <rguenther@suse.de>
58
59         PR middle-end/31136
60         * fold-const.c (fold_unary): Call fold_convert_const on the
61         original tree.
62
63 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
64
65         * gcse.c (store_killed_in_insn): Handle PARALLELs.
66         (store_killed_in_pat): New.
67
68 2007-04-20  Richard Henderson  <rth@redhat.com>
69
70         PR target/31628
71         * config/i386/i386.c (type_has_variadic_args_p): Look for any
72         TREE_LIST with a void_type_node value, not void_list_node exactly.
73
74 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
75
76         * doc/standards.texi: Re-arrange into language-specific
77         subsections. Add a C++ section, documenting which standards we
78         support.
79
80 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
81
82         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
83         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
84
85 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
86
87         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
88         ecrti.o and crtbegin.o.
89         (LIB_DEFAULT_SPEC): Include -lc.
90         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
91
92 2007-04-20  Richard Henderson  <rth@redhat.com>
93
94         PR target/28623
95         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
96         argument; update all callers.
97         (get_unaligned_offset): New.
98         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
99         get_unaligned_address, just pass on the address directly.
100         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
101         the subreg in the helper patterns.
102         (unaligned_extendqidi_le): Use get_unaligned_offset.
103         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
104         (unaligned_extendhidi_be): Likewise.
105         (unaligned_extendhidi): Tidy.
106         * config/alpha/alpha-protos.h: Update.
107
108 2007-04-20  Richard Henderson  <rth@redhat.com>
109
110         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
111         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
112         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
113         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
114         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
115         (CPP_SPEC): Don't include %(cpp_subtarget).
116         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
117         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
118         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
119
120 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
121
122         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
123         for __builtin_ia32_cmpordss.
124
125         PR tree-optimization/31632
126         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
127         and arg1 for optimizations of comparison against min/max values.
128         Fold arg0 to arg1's type for optimizations of comparison against
129         min+1 and max-1 values.
130
131 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
132
133         * reload.c (combine_reloads): When trying to use a dying register,
134         check whether it's uninitialized and don't use if so.
135
136 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
137
138         * fold-const.c: Remove prototypes for native_encode_expr and
139         native_interpret_expr.
140         (native_encode_expr): Make non-static.
141         (native_interpret_expr): Likewise.
142         * tree.h: Add prototypes for the above.
143
144 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
145
146         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
147         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
148         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
149         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
150         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
151         Add length attributes.
152
153 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
154
155         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
156         not that it is 1.
157
158         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
159         __STDC_WANT_DEC_FP__.
160
161 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
162
163         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
164         for long double compatibility.
165         * configure: Regenerate.
166
167 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
168
169         PR rtl-optimization/29841
170         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
171         trap instructions.
172         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
173         that may cause control flow transfer from being moved.
174
175 2007-04-18  Jan Hubicka  <jh@suse.cz>
176
177         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
178         types.
179
180 2007-04-18  Eric Christopher  <echristo@apple.com>
181
182         * config/rs6000/darwin.md (load_macho_picbase): Use link register
183         only. Update operands.
184         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
185         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
186         link register to pic register.
187
188 2007-04-18  Dirk Mueller  <dmueller@suse.de>
189
190         PR diagnostic/31227
191         * tree-vrp.c (search_for_addr_array): New.
192         (check_array_bounds): Suppress warning about
193         address taken of array refs if its not de-referenced.
194
195 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
196
197         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
198         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
199
200         * tree-vectorizer.h (NITERS_KNOWN_P): New.
201         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
202         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
203
204         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
205         dump print.
206         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
207         print message.
208         (vect_analyze_scalar_cycles): Fix indentation.
209         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
210         (vect_mark_relevant): Include phis in relevance analysis.
211
212         * tree-vect-transform.c (vect_transform_loop): Add an assert.
213
214 2007-04-18  Anatoly Sokolov <aesok@post.ru>
215
216         * config/avr/avr.c (ptrreg_to_str): Replace error() with
217         output_operand_lossage().
218
219 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
220
221         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
222         the unused code for reduction without adjust-in-epilog to simplify the
223         function.
224
225 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
226
227         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
228         (S390_TDC_NEGATIVE_ZERO): New constant.
229         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
230         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
231         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
232         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
233         (S390_TDC_POSITIVE_INFINITY): New constant.
234         (S390_TDC_NEGATIVE_INFINITY): New constant.
235         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
236         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
237         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
238         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
239         (S390_TDC_INFINITY): New constant.
240         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
241         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
242         optimization for UNSPEC_CCZ_TO_INT.
243         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
244         ("*ccz_to_int"): New insn.
245         ("isinf<mode>2"): New insn.
246         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
247         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
248         (UNSPEC_CCZ_TO_INT): New constant.
249
250 2007-04-18  Richard Guenther  <rguenther@suse.de>
251
252         PR tree-optimization/19431
253         PR tree-optimization/21463
254         * tree-pass.h (pass_phiprop): Declare.
255         * passes.c (init_optimization_passes): New phiprop pass.
256         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
257         (phivn_valid_p): New helper function.
258         (phiprop_insert_phi): Likewise.
259         (propagate_with_phi): Likewise.
260         (tree_ssa_phiprop): New propagator propagating loads
261         through phi nodes if profitable.
262
263 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
264
265         * tree-vect-analyze.c (process_use): New function.
266         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
267         Check phis in all bbs.
268         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
269         assert.
270
271 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
272
273         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
274         we use REG_EQUAL.
275
276 2007-04-17  Anatoly Sokolov <aesok@post.ru>
277
278         PR target/30483
279         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
280         error().
281
282 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
283
284         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
285         on "0".
286         (sse_vmmulv4sf3): Likewise.
287         (sse2_vmaddv2df3): Likewise.
288         (sse2_vmmulv2df3): Likewise.
289
290 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
291
292         PR rtl-optimization/31360
293         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
294         (target_reg_cost): New.
295         (init_set_costs): Initialize target_reg_cost.  Add comments
296         regarding the rationale of the costs.
297         (global_cost_for_size): Renamed to...
298         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
299         of register pressure.
300         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
301         estimate_reg_pressure_cost.  Add number of ivs.
302         (determine_set_costs): Dump target_reg_cost.
303         * loop-invariant.c (gain_for_invariant):  Use
304         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
305         (best_gain_for_invariant, find_invariants_to_move): Remove
306         n_inv_uses.
307         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
308         (target_reg_cost): Declare.
309         (global_cost_for_size): Declaration removed.
310         (estimate_reg_pressure_cost): Declare.
311
312 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
313
314         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
315         regnos into even/odd register pairs.
316         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
317         TDmode similar to the other floating point modes.
318         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
319         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
320         define_expand's.
321         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
322         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
323         (movdd_hardfloat64): Use TARGET_MFPGPR.
324
325 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
326
327         * reload1.c (delete_output_reload): Don't count output in n_inherited.
328
329         Revert
330         2005-01-05  Richard Henderson  <rth@redhat.com>
331         PR rtl-opt/10692
332         * reload1.c (do_input_reload): Restrict the optimization deleteing
333         a previous output reload to RELOAD_FOR_INPUT.
334
335 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
336
337         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
338         induc_vec_info_type.
339         (vectorizable_induction): New function declaration.
340         * tree-vect-transform.c (get_initial_def_for_induction): No need to
341         check if already vectorized.  Find first place in BB where new stmts
342         can be inserted.  Takes only one argument.
343         (vectorizable_induction): New function.
344         (vect_transform_stmt): Add case for induc_vec_info_type to call
345         vectorizable_induction.
346         (vect_transform_loop): Consider phis for vectorization.
347         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
348         condition.
349         (analyze_operations): Call vectorizable_induction when analyzing phis.
350         Fix comment.
351         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
352         (vect_mark_relevant): Include phis in relevance analysis.
353         (vect_mark_stmts_to_be_vectorize): Likewise.
354         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
355
356 2007-04-16  Lawrence Crowl  <crowl@google.com>
357
358         * doc/invoke.texi (Debugging Options): Add documentation for the
359         -femit-struct-debug options -femit-struct-debug-baseonly,
360         -femit-struct-debug-reduced, and
361         -femit-struct-debug-detailed[=...].
362
363         * c-opts.c (c_common_handle_option): Add
364         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
365         and OPT_femit_struct_debug_detailed_.
366         * c.opt: Add specifications for
367         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
368         and -femit-struct-debug-detailed[=...].
369         * opts.c (set_struct_debug_option): Parse the
370         -femit-struct-debug-... options.
371         * opts.c (matches_main_base, main_input_basename,
372         main_input_baselength, base_of_path, matches_main_base): Add
373         variables and functions to compare header base name to compilation
374         unit base name.
375         * opts.c (should_emit_struct_debug): Add to determine to emit a
376         structure based on the option.
377         (dump_struct_debug) Also disabled function to debug this
378         function.
379         * opts.c (handle_options): Save the base name of the
380         compilation unit.
381
382         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
383         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
384         This hook indicates if a type is generic.  Set it by default
385         to "never generic".
386         * langhooks.h (struct lang_hooks_for_types): Add a new hook
387         to determine if a struct type is generic or not.
388         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
389         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
390         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
391         with live C++ hook.
392
393         * flags.h (enum debug_info_usage): Add an enumeration to describe
394         a program's use of a structure type.
395         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
396         to indicate the program's usage of the type.  Filter structs based
397         on the -femit-struct-debug-... specification.
398         (gen_type_die): Split into two routines, gen_type_die and
399         gen_type_die_with_usage.  gen_type_die is now a wrapper
400         that assumes direct usage.
401         (gen_type_die_with_usage): Replace calls to gen_type_die
402         with gen_type_die_with_usage adding the program usage of
403         the referenced type.
404         (dwarf2out_imported_module_or_decl): Suppress struct debug
405         information using should_emit_struct_debug when appropriate.
406
407 2007-04-16  Ian Lance Taylor  <iant@google.com>
408
409         PR tree-optimization/31522
410         * tree-vrp.c (vr_phi_edge_counts): New static variable.
411         (vrp_initialize): Allocate vr_phi_edge_counts.
412         (vrp_visit_phi_node): Don't push to infinity if we saw a new
413         executable edge.  Drop test for all constants.
414         (vrp_finalize): Free vrp_phi_edge_counts.
415
416         * doc/cpp.texi (Common Predefined Macros): Clarify description of
417         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
418
419         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
420         predecessors at head rather than tail.
421
422 2007-04-16  Matthias Klose  <doko@debian.org>
423
424         * config/alpha/linux.h (CPP_SPEC): Define.
425         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
426
427 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
428
429         * function.h: Remove sequence_stack extern declaration.
430
431 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
432
433         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
434         TARGET_FIDOA.
435         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
436         defined.
437
438 2007-04-16  Anatoly Sokolov <aesok@post.ru>
439
440         * config/avr/avr.c (avr_arch_types): Rearranging  array.
441         (enum avr_arch): Add.
442         (avr_mcu_types): Use avr_arch enumeration constants instead of
443         numbers.
444         * config/avr/avr.h (LINK_SPEC): Simplify.
445
446 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
447
448         * config/m68k/m68k.c (m68k_libcall_value,
449         m68k_function_value): Use macros for register names more.
450
451         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
452         instead.
453         (M68K_REGNAME): Use A6_REG.
454         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
455
456 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
457
458         PR middle-end/28071
459         * sched-int.h (struct deps): Split field 'pending_lists_length' into
460         'pending_read_list_length' and 'pending_write_list_length'.  Update
461         comment.
462         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
463         to handle two length counters instead of one.  Update all uses.
464         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
465         two length counters instead of one.
466         * sched-rgn.c (propagate_deps): Update to handle two length counters
467         instead of one.
468
469 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
470
471         PR target/31582
472         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
473         copy of source, pass it to ix86_expand_vector_set and return
474         it as target.
475
476 2007-04-16  David Ung  <davidu@mips.com>
477             Joseph Myers  <joseph@codesourcery.com>
478
479         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
480         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
481         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
482         Add 74K processor information.
483         * config/mips/mips.md: Include 74k.md.
484         (cpu): Add 74kc,74kf,74kx.
485         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
486         * config/mips/74k.md: New.
487         * doc/invoke.texi (MIPS Options): Document 74K support.
488
489 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
490
491         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
492         vectorizable_* functions.
493         * tree-vect-transform.c (vectorizable_call): Add check for
494         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
495         (vectorizable_store): likewise.
496         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
497         Add comments.
498         (vectorizable_operation, vectorizable_type_demotion): Likewise.
499         (vectorizable_type_promotion, vectorizable_load): Likewise.
500         (vectorizable_live_operation, vectorizable_condition): Likewise.
501         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
502         STMT_VINFO_LIVE_P.
503         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
504
505 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
506
507         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
508         register numbers more.
509         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
510         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
511         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
512         FUNCTION_VALUE_REGNO_P): Likewise.
513         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
514         STATIC_CHAIN_REGNUM): Likewise.
515         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
516         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
517         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
518         * config/m68k/m68k.md (FP_REG): New.
519
520 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
521
522         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
523         alignment on fido.
524
525 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
526
527         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
528         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
529         comment typos.
530
531 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
532
533         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
534         cold loops.
535
536 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
537
538         PR c/31520
539         * c-decl.c (finish_decl): Grab the type of the decl after the call
540         to store_init_value.
541
542 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
543
544         * common.opt (fforward-propagate): Fix "Optimization" annotation.
545
546 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
547
548         PR c++/25874
549         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
550         post dominators and cleanup cfg before returning.
551
552 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
553
554         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
555         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
556
557 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
558
559         * config.gcc: Recognize fido.
560         * config/m68k/m68k-devices.def (fidoa): New.
561         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
562         __mfido__.
563         (FL_FIDOA, TARGET_FIDOA): New.
564         * config/m68k/m68k.opt (mfidoa): New.
565
566 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
567
568         PR middle-end/31322
569         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
570         when a personality function is used.
571
572 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
573
574         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
575
576 2007-04-13  Mike Stump  <mrs@apple.com>
577
578         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
579         we can...
580         * config/darwin.opt (fapple-kext): Make C++ only.
581         * config/darwin.c (darwin_override_options): Remove code to ensure
582         -fapple-kext is given for C++ only.
583
584 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
585
586         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
587         * config/mips/mips.c (override_options): Call
588         SUBTARGET_OVERRIDE_OPTIONS, if defined.
589
590 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
591
592         * config/i386/i386.opt (msvr3-shlib): Removed.
593
594         * doc/invoke.texi: Remove -msvr3-shlib.
595
596 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
597
598         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
599         with "popcnt" instruction.
600
601 2007-04-13  Richard Guenther  <rguenther@suse.de>
602
603         PR tree-optimization/21258
604         * tree-vrp.c (compare_case_labels): New helper.
605         (find_switch_asserts): New function.
606         (find_assert_locations): Call it for SWITCH_EXPRs.
607
608 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
609
610         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
611         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
612         check is now implied in X87_FLOAT_MODE_P.
613         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
614         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
615         (fix_trunc<mode>_i386_fisttp): Ditto.
616         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
617         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
618         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
619         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
620         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
621         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
622         (unnamed_splitters): Ditto.
623         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
624         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
625         FIRST_SSE_REG for local functions when SSE math is enabled or
626         for functions with sseregparm attribute.
627         (standard_80387_constant_p): Return -1 if mode is not
628         X87_FLOAT_MODE_P.
629         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
630         (ix86_expand_compare): Ditto.
631         (ix86_expand_carry_flag_compare): Ditto.
632         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
633         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
634         DECIMAL_FLOAT_MODE_P.
635         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
636         of SCALAR_FLOAT_MODE_P.
637         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
638         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
639         checks before FLOAT_MODE_P.
640         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
641         before FLOAT_MODE_P.
642         [DIV]: Ditto.
643         [NEG]: Ditto.
644         [ABS]: Ditto.
645         [SQRT]: Ditto.
646         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
647
648 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
649             Charles Wilson  <libtool@cwilson.fastmail.fm>
650
651         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
652         (libgcc.mvars): Don't depend on them.
653         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
654         * exec-tool.in: New.
655
656 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
657
658         * doc/invoke.text (--help): Document --help=common.
659
660 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
661
662         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
663
664 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
665
666         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
667         * genemit.c (main): Emit #include "integrate.h".
668         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
669         (LOADGP_RTP): New mips_loadgp_style.
670         * config/mips/mips.h: Include config/vxworks-dummy.h.
671         (TARGET_RTP_PIC): New macro.
672         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
673         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
674         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
675         for TARGET_RTP_PIC.
676         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
677         -mvxworks-pic when using -mrtp and a PIC option.
678         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
679         for RTP PIC.
680         (mips_symbolic_constant_p, mips_symbolic_address_p)
681         (mips_symbol_insns): Handle SYMBOL_HALF.
682         (override_options): Warn about -G and -mrtp being used together.
683         Initialize mips_lo_relocs[SYMBOL_HALF].
684         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
685         (mips_emit_loadgp): Handle LOADGP_RTP.
686         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
687         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
688         (tablejump): Handle function-relative case table entries if
689         TARGET_RTP_PIC.
690         * config/mips/predicates.md (symbol_ref_operand): New predicate.
691
692 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
693
694         * config/mips/mips.md (load_call<mode>): Allow any general register.
695         destination.
696         (sibcall_value_internal, sibcall_value_multiple_internal)
697         (call_value_internal, call_value_split, call_value_multiple_internal)
698         (call_value_multiple_split): Remove constraints from operand 0.
699
700 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
701
702         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
703         rather than loadgp_noshared.
704         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
705         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
706         gen_loadgp.
707         * config/mips/mips.md (loadgp): Rename to...
708         (loadgp_newabi): ...this.
709         (loadgp_noshared): Rename to...
710         (loadgp_absolute): ...this.
711
712 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
713
714         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
715         false for locally-binding symbols.
716         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
717
718 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
719
720         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
721         (SYMBOL_GOT_PAGE_OFST): ...this.
722         (SYMBOL_GOT_GLOBAL): Rename to...
723         (SYMBOL_GOT_DISP): ...this.
724         (SYMBOL_GOTOFF_GLOBAL): Rename to...
725         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
726         * config/mips/mips.c (mips_global_symbol_p): New function.
727         (mips_symbol_binds_local_p): Likewise.
728         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
729         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
730         and mips_symbol_binds_local_p.
731         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
732         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
733         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
734         SYMBOL_GOTOFF_DISP.
735         (mips_ok_for_lazy_binding_p): New function.
736         (mips_load_call_address, mips_expand_call): Use it.
737         (mips_dangerous_for_la25_p): Likewise.
738         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
739         (*got_disp<mode>): Use got_disp_operand instead of
740         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
741         SYMBOL_GOTOFF_GLOBAL.
742         (*got_page<mode>): Use got_page_ofst_operand instead of
743         local_got_operand.
744         * config/mips/predicates.md (const_call_insn_operand): Use
745         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
746         (global_got_operand): Rename to...
747         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
748         SYMBOL_GOT_GLOBAL.
749         (local_got_operand): Rename to...
750         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
751         of SYMBOL_GOT_LOCAL.
752
753 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
754
755         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
756         TARGET_CALL_CLOBBERED_GP.
757         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
758         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
759         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
760         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
761         of TARGET_ABICALLS && !TARGET_NEWABI.
762         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
763         * config/mips/mips.c (mips_load_call_address): Check
764         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
765         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
766         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
767         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
768         TARGET_ABICALLS && TARGET_NEWABI.
769         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
770         TARGET_ABICALLS.
771         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
772         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
773         TARGET_ABICALLS && TARGET_NEWABI.
774         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
775         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
776         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
777         whether indirect calls must use $25.
778         (mips_extra_live_on_entry): Check TARGET_GOT instead of
779         TARGET_ABICALLS.
780         * config/mips/mips.md (jal_macro): Check flag_pic and
781         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
782         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
783         instead of TARGET_ABICALLS.
784         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
785         TARGET_ABICALLS && TARGET_OLDABI.
786         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
787         (sibcall): In the comment above the define_insn, mention
788         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
789         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
790         instead of TARGET_ABICALLS.
791
792 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
793
794         * doc/md.texi (Blackfin family constraints): Document PA and PB.
795         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
796         (MACFLAGS_MATCH_P): New macro.
797         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
798         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
799         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
800         the other MACFLAG constants.
801         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
802         (flag_machi): Tighten constraints.  Renumber some of the operands.
803         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
804         output template.
805         (flag_machi_parts_acconly): New pattern.
806         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
807         used.
808         (flag_macinit1hi): Tighten constraints.
809         (flag_mul_macv2hi_parts_acconly): New pattern.
810
811         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
812         Use a more efficient implementation.
813         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
814         inline sequences when not optimizing for size.
815
816         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
817         movhi_high2low): Delete, merge functionality into...
818         (packv2hi): ... this pattern.
819
820         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
821         * config/bfin/bfin.opt (msim): New option.
822         (mcpu=): New option.
823         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
824         (bfin_cpu_t): Typedef of enum bfin_cpu.
825         (bfin_cpu_type): New declaration.
826         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
827         -msim and -mcpu= options.
828         (LIB_SPEC): Likewise.
829         * config/bfin/bfin.c (bfin_cpu_type): Define.
830         (bfin_handle_option): Handle -mcpu= option.
831         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
832         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
833         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
834
835 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
836
837         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
838         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
839         (powerpc-wrs-vxworksae): Use ${tm_file}.
840         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
841         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
842         * config/i386/vx-common.h: New file.
843
844 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
845
846         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
847         of crt0.o%s.
848
849 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
850
851         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
852         ldxtr.
853
854 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
855
856         PR c++/31078
857         PR c++/31103
858         * c-common.c (c_build_qualified_type): Set canonical type
859         appropriately.
860
861 2007-04-12  Richard Guenther  <rguenther@suse.de>
862
863         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
864         lower bound and element size if lower bound is not zero
865         or either of the ARRAY_REF operands is set.
866
867 2007-04-12  Richard Guenther  <rguenther@suse.de>
868
869         PR tree-optimization/24689
870         PR tree-optimization/31307
871         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
872         indices by value.
873         * gimplify.c (canonicalize_addr_expr): To be consistent with
874         gimplify_compound_lval only set operands two and three of
875         ARRAY_REFs if they are not gimple_min_invariant.  This makes
876         it never at this place.
877         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
878
879 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
880
881         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
882         null before emitting a .nsubspa directive.
883
884 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
885
886         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
887         need_to_partition_p if there are no memory statements in the
888         function.
889
890 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
891
892         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
893         (gcd_of_steps_may_divide_p): New function.
894         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
895
896 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
897
898         * reload.c (find_reloads_toplev, find_reloads_address,
899         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
900         not a pointer equality test, to decide if we need to call
901         push_reg_equiv_alt_mem.
902
903 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
904
905         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
906         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
907         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
908
909 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
910
911         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
912         vector to be positive.
913
914 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
915
916         PR 30735
917         PR 31090
918         * doc/invoke.texi: Document --params max-aliased-vops and
919         avg-aliased-vops.
920         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
921         debug_memory_partitions): Move to tree-flow.h
922         * params.h (AVG_ALIASED_VOPS): Define.
923         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
924         users.
925         (mp_info_t): Likewise.
926         (get_mem_sym_stats_for): New.
927         (set_memory_partition): Move from tree-flow-inline.h.
928         (mark_non_addressable): Only clear the set of symbols for the
929         partition if it exists.
930         (dump_memory_partitions): Move from tree-ssa-operands.c
931         (debug_memory_partitions): Likewise.
932         (need_to_partition_p): New.
933         (dump_mem_ref_stats): New.
934         (debug_mem_ref_stats): New.
935         (dump_mem_sym_stats): New.
936         (debug_mem_sym_stats): New.
937         (update_mem_sym_stats_from_stmt): New.
938         (compare_mp_info_entries): New.
939         (mp_info_cmp): Call it.
940         (sort_mp_info): Change argument to a list of mem_sym_stats_t
941         objects.
942         (get_mpt_for): Move from tree-ssa-operands.c.
943         (find_partition_for): New.
944         (create_partition_for): Remove.
945         (estimate_vop_reduction): New.
946         (update_reference_counts): New.
947         (build_mp_info): New.
948         (compute_memory_partitions): Refactor.
949         Document new heuristic.
950         Call build_mp_info, update_reference_counts,
951         find_partition_for and estimate_vop_reduction.
952         (compute_may_aliases): Populate virtual operands before
953         calling debugging dumps.
954         (delete_mem_sym_stats): New.
955         (delete_mem_ref_stats): New.
956         (init_mem_ref_stats): New.
957         (init_alias_info): Call it.
958         (maybe_create_global_var): Remove alias_info argument.
959         Get number of call sites and number of pure/const call sites
960         from gimple_mem_ref_stats().
961         (dump_alias_info): Call dump_memory_partitions first.
962         (dump_points_to_info_for): Show how many times a pointer has
963         been dereferenced.
964         * opts.c (decode_options): For -O2 set --param
965         max-aliased-vops to 500.
966         For -O3 set --param max-aliased-vops to 1000 and --param
967         avg-aliased-vops to 3.
968         * fortran/options.c (gfc_init_options): Remove assignment to
969         MAX_ALIASED_VOPS.
970         * tree-flow-inline.h (gimple_mem_ref_stats): New.
971         * tree-dfa.c (dump_variable): Dump memory reference
972         statistics.
973         Dump NO_ALIAS* settings.
974         (referenced_var_lookup): Tidy.
975         (mem_sym_stats): New.
976         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
977         and ORIG are different SSA names for a memory partition.
978         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
979         * tree-flow.h (struct mem_sym_stats_d): Define.
980         (mem_sym_stats_t): Define.
981         (struct mem_ref_stats_d): Define.
982         (struct gimple_df): Add field mem_ref_stats.
983         (enum noalias_state): Define.
984         (struct var_ann_d): Add bitfield noalias_state.
985         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
986         debug_mem_ref_stats, debug_memory_partitions,
987         debug_mem_sym_stats): Declare.
988         * tree-ssa-structalias.c (update_alias_info): Update call
989         sites, pure/const call sites and asm sites in structure
990         returned by gimple_mem_ref_stats.
991         Remove local variable IS_POTENTIAL_DEREF.
992         Increase NUM_DEREFS if the memory expression is a potential
993         dereference.
994         Call update_mem_sym_stats_from_stmt.
995         If the memory references memory, call
996         update_mem_sym_stats_from_stmt for all the direct memory
997         symbol references found.
998         (intra_create_variable_infos): Set noalias_state field for
999         pointer arguments according to the value of
1000         flag_argument_noalias.
1001         * tree-ssa-structalias.h (struct alias_info): Remove fields
1002         num_calls_found and num_pure_const_calls_found.
1003         (update_mem_sym_stats_from_stmt): Declare.
1004         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
1005         Set default value to 100.
1006         (PARAM_AVG_ALIASED_VOPS): Define.
1007
1008 2007-04-11  Richard Guenther  <rguenther@suse.de>
1009
1010         PR middle-end/31530
1011         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
1012         a * -b + c as c - a * b if we honor sign dependent rounding.
1013
1014 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
1015
1016         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
1017         bfin_expand_strmov.
1018         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
1019         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
1020         variables.
1021         (initialize_trampoline): Don't use old-style function definition.
1022         (bfin_secondary_reload): Mark IN_P argument as unused.
1023
1024 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
1025
1026         PR tree-optimization/31343
1027         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
1028         (build_polynomial_chrec): Return a scalar when the evolution is zero.
1029         * testsuite/gcc.dg/vect/pr31343.c: New.
1030
1031 2007-04-10  Eric Christopher  <echristo@apple.com>
1032
1033         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
1034         * config/i386/i386.md (*cmpfp0): Use.
1035         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
1036         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
1037         (fix_trunc<mode>_i386_fisttp): Ditto.
1038         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
1039         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
1040         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
1041         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
1042         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
1043         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
1044         (unnamed_splitters): Ditto.
1045         * config/i386/i386.c (output_fix_trunc): Assert that
1046         we're not being passed a TFmode operand.
1047
1048 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
1049
1050         PR tree-optimization/31526
1051         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
1052         n_basic_blocks to find newly added blocks.
1053
1054 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
1055
1056         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
1057         alternative.
1058         (fix_trunc<mode>si_sse): Ditto.
1059         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
1060         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
1061         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
1062         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
1063         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
1064         expander using SSEMODEF mode macro.
1065         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
1066         expander using SSEMODEF mode macro.
1067         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
1068         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
1069         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
1070         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
1071         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
1072         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
1073         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
1074         Macroize insn using X87MODEF mode macro.
1075
1076 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
1077
1078         * config/i386/sse.md (sse2_pinsrw): Removed.
1079         (sse2_pextrw): Renamed to ...
1080         (*sse2_pextrw): This.
1081
1082 2007-04-09  Jan Hubicka  <jh@suse.cz>
1083
1084         PR target/27869
1085         * config/i386/sse.md
1086         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
1087         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
1088         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
1089         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
1090
1091 2007-04-09  Jan Hubicka  <jh@suse.cz>
1092
1093         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
1094         multiple fields of union.
1095
1096 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
1097
1098         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
1099         (create_preheaders): Check that loops are available.
1100         (fix_loop_structure): Clean up, improve comments.
1101         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
1102         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
1103         state flags.
1104         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
1105         * predict.c (tree_estimate_probability): Do not call
1106         calculate_dominance_info.  Call create_preheaders.
1107         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
1108         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
1109         flags.
1110         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
1111         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
1112         * tree-cfg.c (tree_split_edge): Make an assert more precise.
1113         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
1114         arguments.
1115
1116 2007-04-08  Jan Hubicka  <jh@suse.cz>
1117
1118         * tree.h (maybe_fold_offset_to_component_ref): Declare.
1119         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
1120         * fold-const.c (fold_unary): Use it.
1121
1122 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1123
1124         * varasm.c (assemble_variable): Remove call to
1125         lang_hooks.decls.prepare_assemble_variable.
1126         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
1127         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
1128         * langhooks.h (lang_hooks_for_decls): Remove
1129         prepare_assemble_variable.
1130
1131 2007-04-08  Mike Stump  <mrs@apple.com>
1132
1133         * config/i386/i386.c: Use inc/dec on Core2.
1134
1135 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
1136
1137         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
1138         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
1139         lhd_tree_inlining_end_inlining): Remove.
1140         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
1141         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
1142         end_inlining hooks.
1143         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
1144         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
1145         lhd_tree_inlining_end_inlining): Remove prototypes.
1146         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
1147         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
1148         LANG_HOOKS_TREE_INLINING_START_INLINING,
1149         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
1150
1151         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
1152         not set it.
1153
1154 2007-04-08  Anatoly Sokolov <aesok@post.ru>
1155
1156         PR target/29932
1157         * config/avr/predicates.md (io_address_operand): Delete predicate.
1158         (low_io_address_operand): Don't use 'mode' argument.
1159         (higth_io_address_operand): Rename ...
1160         (high_io_address_operand): ... to this. Don't use 'mode' argument.
1161         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
1162         for above change.
1163
1164 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
1165
1166         Revert change removing staticp.
1167
1168 2007-04-07  Anatoly Sokolov <aesok@post.ru>
1169
1170         PR target/30289
1171         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
1172         earlyclobber.
1173
1174 2007-04-07  Bruce Korb  <bkorb@gnu.org>
1175
1176         * c.opt: Add -Wformat-contains-nul.
1177         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
1178           -Wformat setting.
1179         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
1180         the NUL byte warning.
1181
1182 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
1185
1186 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
1187
1188         * tree.c (staticp): No longer use staticp langhook.
1189         * langhooks.c (lhd_staticp): Removed.
1190         * langhooks.h (struct lang_hooks): Remove staticp.
1191         * c-common.c (c_staticp): Remove.
1192         * c-common.h (c_staticp): Ditto.
1193         * langhooks-defs.h (lhd_staticp): Ditto.
1194         (LHD_HOOKS_STATICP): Ditto
1195         * tree.h (gcc_assert_lowered): New macro.
1196
1197 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
1198
1199         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
1200         argument "reliable".
1201         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
1202         Add argument "reliable".  Propagate it through calls.
1203         (infer_loop_bounds_from_undefined):  Derive number of iterations
1204         estimates from references in blocks that do not dominate loop latch.
1205         (gcov_type_to_double_int): New function.
1206         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
1207         and expected_loop_iterations_unbounded.
1208         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
1209         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
1210         * tree-data-ref.c (estimated_loop_iterations): Export.
1211         (get_references_in_stmt): Fix -- do not return addresses of local
1212         objects.
1213         * cfgloop.h (expected_loop_iterations_unbounded,
1214         estimated_loop_iterations): Declare.
1215
1216 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
1217
1218         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
1219
1220 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
1221
1222         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
1223         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
1224         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
1225         Use output_387_reg_move().
1226         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
1227         expander using X87MODEF12 mode macro.
1228         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
1229         choosing register preferences.  Use output_387_reg_move().
1230         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
1231         instead of "x".  Use output_387_reg_move().
1232         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
1233         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
1234         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
1235         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
1236         Use output_387_reg_move().
1237         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
1238         mode macro.
1239         (*truncxf?f_i387 splitter): Ditto.
1240
1241 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
1242
1243         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1244         LANG_HOOKS_SAFE_FROM_P.
1245         * expr.c (safe_from_p): Remove langhook call.
1246         * langhooks.h (lang_hooks): Remove safe_from_p.
1247         (lhd_safe_from_p): Remove prototype.
1248         * langhooks.c (lhd_safe_from_p): Remove.
1249
1250 2007-04-06  Jan Hubicka  <jh@suse.cz>
1251
1252         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
1253         functions.
1254
1255 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
1256
1257         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
1258         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
1259         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
1260         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
1261         alternative.
1262         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
1263         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
1264
1265 2007-04-05  Richard Henderson  <rth@redhat.com>
1266
1267         * config/alpha/alpha.c (print_operand) [+]: Remove.
1268         (alpha_end_function): Print nop if call at end of function.
1269         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
1270         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
1271         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
1272         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
1273         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
1274         the call pattern. Update peepholes to match.
1275
1276 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
1277
1278         * doc/extend.texi (Other Builtins): Add decimal float variants
1279         of signbit.
1280         * builtins.def: Ditto.
1281         * builtins.c (expand_builtin): Ditto.
1282
1283 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
1284             H.J. Lu  <hongjiu.lu@intel.com>
1285
1286         PR target/31478
1287         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
1288         of V8HImode when calling ix86_binary_operator_ok.
1289         (sse2_pmaddwd): Call ix86_binary_operator_ok.
1290         (sdot_prodv8hi): Operands 1 and 2 must be register.
1291
1292 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
1293
1294         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
1295         initialize align to silence bogus warning.
1296
1297 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
1298
1299         PR middle-end/22156
1300         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
1301         all_no_warning.
1302         (struct sra_walk_fns): Remove use_all parameter from use.
1303         (sra_hash_tree): Handle BIT_FIELD_REFs.
1304         (sra_elt_hash): Don't hash bitfld blocks.
1305         (sra_elt_eq): Skip them in parent compares as well.  Handle
1306         BIT_FIELD_REFs.
1307         (sra_walk_expr): Don't maintain or pass down use_all_p.
1308         (scan_use): Remove use_all parameter.
1309         (scalarize_use): Likewise.  Re-expand assignment to
1310         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
1311         output, and re-scalarize after output.  Don't mark anything
1312         for no warning.
1313         (scalarize_ldst): Adjust.
1314         (scalarize_walk_gimple_modify_statement): Likewise.
1315         (build_element_name_1): Handle BIT_FIELD_REFs.
1316         (instantiate_element): Don't warn for any element whose parent
1317         is used as a whole.
1318         (instantiate_missing_elements_1): Return the sra_elt.
1319         (canon_type_for_field): New.
1320         (try_instantiate_multiple_fields): New.
1321         (instantiate_missing_elemnts): Use them.
1322         (mark_no_warning): Removed.
1323         (generate_one_element_ref): Handle BIT_FIELD_REFs.
1324         (REPLDUP, sra_build_elt_assignment): New.
1325         (generate_copy_inout): Use them.
1326         (generate_element_copy): Likewise.  Handle bitfld differences.
1327         (generate_element_zero): Don't recurse for blocks.  Use
1328         sra_build_elt_assignment.
1329         (generate_one_element_int): Take elt instead of var.  Use
1330         sra_build_elt_assignment.
1331         (generate_element_init_1): Adjust.
1332         (scalarize_use, scalarize_copy): Use REPLDUP.
1333         (scalarize_ldst): Move assert before dereference.
1334         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
1335
1336 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1337
1338         * regmove.c: Fix unused variable warnings due to previous commit.
1339
1340 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1341
1342         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
1343         (regmove_bb_head): Remove.
1344         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
1345         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
1346         problems with fixup_match_1.
1347         Don't initialize/free regmove_bb_head.
1348
1349         (reg_is_remote_constant_p): If an insn is in the same basic block
1350         but not before INSN, consider it remote, too.
1351
1352 2007-04-05  Anatoly Sokolov <aesok@post.ru>
1353
1354         PR target/25448
1355         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
1356         DECL_ASSEMBLER_NAME, not the DECL_NAME.
1357
1358 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1359
1360         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
1361         (CONDITIONAL_REGISTER_USAGE): Likewise.
1362
1363 2007-04-04  Richard Henderson  <rth@redhat.com>
1364
1365         * config/alpha/lib1funcs.asm: Remove unused file.
1366
1367 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
1368
1369         PR other/31356
1370         * opts.c (print_specific_help): Fix --help=<language>
1371         header line.
1372         (common_handle_option): Support --help=common.
1373
1374 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
1375
1376         PR other/31353
1377         * gcc.c (main): Do not run the linker if
1378         print_subprocess_help indicates that it shouldn't be
1379         run.
1380
1381 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
1382
1383         PR doc/31355
1384         * doc/invoke.texi (--help=): Document <languages> value, fix
1385         formatting in tables of values.
1386
1387 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
1388
1389         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
1390         dllimport attribute of virtual methods.
1391
1392 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
1393
1394         * config/score/crti.asm: Change _bss_start to __bss_start.
1395         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
1396         (OUTGOING_REG_PARM_STACK_SPACE) update.
1397         * config/score/score.opt: add options to make backend support
1398         score5, score5u, score7 and score7d.
1399         * config/score/score.md: Likewise.
1400         * config/score/misc.md: Likewise.
1401         * config/score/mac.md: Likewise.
1402         * doc/invoke.texi: Likewise.
1403         * doc/md.texi: update constraints define.
1404
1405 2007-04-03  Richard Henderson  <rth@redhat.com>
1406
1407         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
1408         an appropriate type, use the mode instead.
1409
1410 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
1411
1412         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
1413         Set the default --with-arch setting to mips2.
1414         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
1415         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
1416         (MULTILIB_OSDIRNAMES): Delete.
1417         (MULTILIB_DIRNAMES): Define.
1418         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
1419         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
1420         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
1421         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
1422         VXWORKS_OS_CPP_BUILTINS.
1423         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
1424         (MIPS_DEBUGGING_INFO): Undefine.
1425         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
1426
1427 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
1428
1429         PR middle-end/30704
1430         * fold-const.c (native_encode_real): Encode real.c provided longs
1431         as a series of 32-bit native integers.
1432         (native_interpret_real): Interpret buffer as a series of 32-bit
1433         native integers.
1434
1435 2007-04-03  Richard Guenther  <rguenther@suse.de>
1436
1437         * genpreds.c (write_insn_constraint_len): Write function
1438         optimized for CONSTRAINT_LEN implementation.
1439         (write_tm_preds_h): Output insn_constraint_len inline and
1440         use it for CONSTRAINT_LEN.
1441         (write_insn_preds_c): Don't output insn_constraint_len.
1442         * doc/md.texi (define_register_constraint): Document multi-letter
1443         constraints shall have the same length if they start with the same
1444         letter.
1445
1446 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
1447
1448         PR target/31175
1449         * config/i386/i386.md (isinf<mode>2): Expand only when
1450         TARGET_C99_FUNCTIONS is set.
1451
1452 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
1453
1454         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
1455         (x86_64-*-linux*): Ditto.
1456         * config/i386/i386.opt (mpc): New option.
1457         * config/i386/i386.c (overrride_options): Handle
1458         ix87_precision_string.
1459         * config/i386/crtprec.c: New file.
1460         * config/i386/t-crtpc: Ditto.
1461         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
1462         and -mpc80 options.
1463         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
1464         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1465         crtprec32.o, crtprec64.o and crtprec80.o.
1466
1467         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
1468         and -mpc80 options.
1469         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
1470
1471 2007-04-02  Eric Christopher  <echristo@apple.com>
1472
1473         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
1474         limitations on darwin.
1475
1476 2007-04-02  Anatoly Sokolov <aesok@post.ru>
1477
1478         PR target/31137
1479         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
1480
1481 2007-04-02  Dave Korn  <dave.korn@artimi.com>
1482
1483         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
1484
1485 2007-04-02  Dave Korn  <dave.korn@artimi.com>
1486
1487         * libgcc2.h (exception_descriptor): Don't forward-declare.
1488         (__get_eh_table_language, __get_eh_table_version): Delete
1489         prototypes of long-dead functions.
1490
1491 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
1492
1493         * ebitmap.h: New file
1494         * ebitmap.c: New file
1495         * Makefile.in (ebitmap.o): New target.
1496
1497 2007-04-01  Jan Hubicka  <jh@suse.cz>
1498
1499         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
1500         before very first instruction.
1501
1502 2007-04-01  Jan Hubicka  <jh@suse.cz>
1503
1504         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
1505         waring on 64bit hosts.
1506         * bitmap.h: Fix typo in bitmap_head_def.
1507
1508 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1509
1510         PR rtl-optimization/31391
1511         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
1512         into a DELETED_LABEL note, and the label is in an empty basic
1513         block, update BB_END as well as BB_HEAD.
1514
1515 2007-04-01  Richard Henderson  <rth@redhat.com>
1516
1517         PR tree-optimization/31169
1518         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
1519         to varying if the range is outside [0,  prec-1].
1520
1521 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
1522
1523         PR target/31388
1524         * config/mips/mips.md (load_const_gp): New insn.
1525         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
1526         the MIPS16 GP pseudo register if no_new_pseudos.
1527         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
1528
1529 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1530
1531         PR target/31364
1532         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
1533         secureplt.
1534         (call_value): Likewise.
1535
1536 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
1537             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1538
1539         PR 14737
1540         * doc/invoke.texi: (optimization options): Reword description
1541         of -ffast-math. Document its primary purpose.
1542
1543 2007-03-31  Richard Guenther  <rguenther@suse.de>
1544
1545         * omp-low.c (splay-tree.h): Include.
1546         (lookup_decl): Replace splay-tree usage by pointer-map.
1547         (maybe_lookup_decl): Likewise.
1548         (new_omp_context): Likewise.
1549         (delete_omp_context): Likewise.
1550         * gimplify.c (splay-tree.h): Include.
1551         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
1552         pointer-map.
1553         (remap_ssa_name): Likewise.
1554         (remap_decl): Likewise.
1555         (remap_type_1): Likewise.
1556         (remap_type): Likewise.
1557         (copy_body_r): Likewise.
1558         (expand_call_inline): Likewise.
1559         (clone_body): Likewise.
1560         (copy_tree_r): Likewise.
1561         (remap_save_expr): Likewise.
1562         (unsave_r): Likewise.
1563         (unsave_expr_now): Likewise.
1564         (tree_function_versioning): Likewise.
1565         (build_duplicate_type): Likewise.
1566         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
1567         (struct copy_body_data): Replace splay-tree by pointer-map.
1568         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
1569         not $(SPLAY_TREE_H).
1570         (gimplify.o): Depend on $(SPLAY_TREE_H).
1571         (omp-low.p): Likewise.
1572
1573 2007-03-31  Anatoly Sokolov <aesok@post.ru>
1574
1575         * config/avr/predicates.md (even_register_operand,
1576         odd_register_operand): New predicates.
1577         * config/avr/avr.md (movw peephole2): New.
1578         (movw_r peephole2): New.
1579
1580 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
1581
1582         * tree.h (get_signed_or_unsigned_type): New.
1583         * fold-const.c (operand_equal_for_comparison_p): Use
1584         get_signed_or_unsigned_type instead of
1585         lang_hooks.types.signed_or_unsigned_type.
1586         * expr.c (store_expr): Ditto.
1587         * langhooks.c (get_signed_or_unsigned_type): New.
1588         (lhd_signed_or_unsigned_type): New.
1589         * langhooks.h (lhd_signed_or_unsigned_type): New.
1590         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
1591
1592 2007-03-30  Richard Henderson  <rth@redhat.com>
1593
1594         * tree-ssa-loop-ivopts.c: Include target.h.
1595         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
1596         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
1597         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
1598         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
1599
1600 2007-03-30  Richard Henderson  <rth@redhat.com>
1601             Kai Tietz  <kai.tietz@onevision.com>
1602
1603         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
1604         default for 64-bit.
1605         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
1606         (TARGET_64BIT_MS_ABI): New.
1607         (DBX_REGISTER_NUMBER): Handle 64-bit.
1608         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
1609         (LONG_TYPE_SIZE): Force to 32.
1610         (REG_PARM_STACK_SPACE): New.
1611         (OUTGOING_REG_PARM_STACK_SPACE): New.
1612         (REGPARM_MAX, SSE_REGPARM_MAX): New.
1613         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1614         (STACK_BOUNDARY): Use 128 for 64-bit.
1615         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
1616         Add 64-bit implementation.
1617         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
1618         argument unused.
1619         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
1620         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
1621         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
1622         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
1623         (ix86_handle_cconv_attribute): Don't warn when ignoring if
1624         TARGET_64BIT_MS_ABI.
1625         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
1626         (ix86_pass_by_reference): Likewise.
1627         (ix86_function_value_regno_p): Likewise.
1628         (ix86_build_builtin_va_list): Likewise.
1629         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1630         (function_arg_advance_ms_64): New.
1631         (function_arg_advance): Call it.
1632         (function_arg_ms_64): New.
1633         (function_arg): Call it.
1634         (function_value_ms_64): New.
1635         (ix86_function_value_1): Call it.
1636         (return_in_memory_ms_64): New.
1637         (ix86_return_in_memory): Call it.
1638         (setup_incoming_varargs_ms_64): New.
1639         (ix86_setup_incoming_varargs): Call it.
1640         (ix86_expand_prologue): Handle 64-bit stack probing.
1641         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
1642         (output_pic_addr_const): Likewise.
1643         (x86_this_parameter): Likewise.
1644         (x86_output_mi_thunk): Likewise.
1645         (x86_function_profiler): Likewise.
1646         (TARGET_STRICT_ARGUMENT_NAMING): New.
1647         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
1648         (TARGET_64BIT_MS_ABI): New.
1649         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
1650         * config/i386/i386.md (allocate_stack_worker): Remove.
1651         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
1652         describe the clobber of eax without a match_scratch.
1653         (allocate_stack_worker_postreload): Remove.
1654         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
1655         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
1656         (allocate_stack_worker_rex64_postreload): Remove.
1657         (allocate_stack): Handle 64-bit.
1658         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
1659         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
1660         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
1661         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
1662         (STANDARD_STARTFILE_PREFIX_1): Likewise.
1663         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
1664         * config.build (x86_64-*-mingw*): New host.
1665         * config.host (x86_64-*-mingw*): New host.
1666         * config.gcc (x86_64-*-mingw*): New target.
1667         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
1668
1669 2007-03-30  Richard Henderson  <rth@redhat.com>
1670             Kai Tietz  <kai.tietz@onevision.com>
1671
1672         * c-pragma.c (struct def_pragma_macro_value): New.
1673         (struct def_pragma_macro): New.
1674         (pushed_macro_table): New.
1675         (dpm_hash, dpm_eq): New.
1676         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
1677         (init_pragma): Install them.
1678         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1679
1680 2007-03-30  Anatoly Sokolov <aesok@post.ru>
1681
1682         * config/avr/avr.c (avr_override_options): Clear
1683         'flag_delete_null_pointer_checks'.
1684
1685 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
1686
1687         PR c++/26099
1688         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
1689         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
1690         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
1691         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
1692         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
1693         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
1694         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
1695         C++ extensions.
1696         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
1697
1698 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
1699
1700         * regmove.c: Move all of pass_stack_adjustments from here...
1701         * combine-stack-adj.c: ...to this new file.
1702         * Makefile.in: Add rules for combine-stack-adj.o.
1703
1704 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
1705
1706         PR tree-optimization/31383
1707         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
1708         to have the same length.
1709
1710 2007-03-30  Jan Hubicka  <jh@suse.cz>
1711
1712         PR middle-end/30700
1713         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
1714         availablility; add more sanity checking; ask varpool only about
1715         VAR_DECL.
1716
1717 2007-03-29  Richard Henderson  <rth@redhat.com>
1718
1719         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
1720         to decide, but __SIZEOF_LONG_LONG__.
1721
1722 2007-03-29  Richard Henderson  <rth@redhat.com>
1723
1724         * emutls.c (struct __emutls_array): New.
1725         (emutls_destroy): Use it instead of casting element 0 from void*.
1726         (__emutls_get_address): Likewise.
1727
1728 2007-03-29  Richard Henderson  <rth@redhat.com>
1729
1730         * varasm.c (initializer_constant_valid_p): Don't deny
1731         DECL_DLLIMPORT_P on functions.
1732
1733         * config/i386/cygming.h: Remove function declarations.
1734         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
1735         (ASM_OUTPUT_LABELREF): Remove.
1736         (COMMON_ASM_OP): Remove.
1737         (ASM_OUTPUT_COMMON): Remove.
1738         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1739         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
1740         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1741         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
1742         Rename from TARGET_ENCODE_SECTION_INFO.
1743         * config/i386/netware.h: Likewise.
1744         * config/i386/i386-protos.h: Update.
1745         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
1746         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
1747         (legitimate_constant_p): Reject dllimports.
1748         (dllimport_map, get_dllimport_decl): New.
1749         (legitimize_dllimport_symbol): New.
1750         (legitimize_address, ix86_expand_move): Use it.
1751         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1752         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
1753         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
1754         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
1755         * config/i386/predicates.md (constant_call_address_operand): Only
1756         accept symbols; reject dllimport_p symbols.
1757         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1758         i386_pe_maybe_record_exported_symbol.
1759         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
1760         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
1761         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
1762         trust the setting of DECL_DLLIMPORT_P.
1763         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
1764         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
1765         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
1766         tidy the argument scanning loop.
1767         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
1768         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
1769         (i386_pe_strip_name_encoding): Remove.
1770         (i386_pe_binds_local_p): New.
1771         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
1772         (i386_pe_output_labelref): Remove.
1773         (i386_pe_asm_output_aligned_decl_common): New.
1774         (i386_pe_maybe_record_exported_symbol): Rename from
1775         i386_pe_record_exported_symbol; check for dllexported symbols.
1776
1777 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
1778
1779         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
1780         add comment explaining why vsnprintf cannot be used.
1781
1782 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
1783
1784         PR tree-optimization/30666
1785         * tree.c (build_complex_type): When creating type names for DWARF2
1786         debug info, create TYPE_DECLs for TYPE_NAME instead of
1787         IDENTIFIER_NODEs.
1788         (build_common_tree_nodes_2): Use build_complex_type when building
1789         predefined complex types, to preserve canonical types.
1790
1791 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
1792
1793         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
1794         (noce_get_alt_condition): Look at it to determine whether to
1795         reverse the condition or not.
1796         (noce_get_condition): Substitute the truth for lies.
1797         (noce_find_if_block): Set the then_else_reversed field.
1798
1799 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
1800
1801         * config/fr30/fr30.md (movdi): Do not accept immediates as the
1802         destination of this insn.
1803         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
1804         than calling gen_rtx_SET directly.  Use r0 to hold the value of
1805         'address + 4' rather than a stack based temporary which can be
1806         mis-optimized away.
1807
1808 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1809
1810         * config/s390/s390.c (s390_secondary_input_reload_class,
1811         s390_secondary_output_reload_class): Functions removed.
1812         (s390_secondary_reload): New function.
1813         (TARGET_SECONDARY_RELOAD): Target macro defined.
1814         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
1815         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
1816         * config/s390/s390.md ("reload_outti", "reload_outdi",
1817         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
1818         "reload_out<mode>"): Expanders removed.
1819         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
1820         "reload<mode>_nonoffmem_out"): Expanders added.
1821
1822 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1823
1824         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
1825         SRC->DEST replacement failed anyway.
1826
1827 2007-03-28  Mike Stump  <mrs@apple.com>
1828
1829         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
1830         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
1831         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
1832
1833 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1834
1835         * config.gcc: Accept barcelona as a variant of amdfam10.
1836         * config/i386/i386.c (override_options): Likewise.
1837         * doc/invoke.texi: Likewise.
1838
1839 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1840
1841         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
1842         offsets for BIT_FIELD_REF and COMPONENT_REF.
1843
1844 2007-03-28  Richard Guenther  <rguenther@suse.de>
1845
1846         * tree.c (is_global_var): Move ...
1847         * tree-flow-inline.h (is_global_var): ... here.
1848         * tree.h (is_global_var): Remove declaration.
1849
1850 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
1851
1852         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
1853         option.
1854         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
1855         * config/i386/i386.c (ix86_tune_features): Initialize new
1856         tuning option.
1857         * config/i386/predicates.md (promotable_binary_operator): Use
1858         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
1859
1860 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
1861
1862         PR target/31380
1863         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
1864
1865 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
1866
1867         * config/fr30/fr30.md (movsi_internal): Change destination
1868         constraint from m to V and add m to the end.
1869
1870 2007-03-28  Christian Bruel  <christian.bruel@st.com>
1871
1872         * config/sh/sh.md (movsi_i): Fix type attribute.
1873
1874 2007-03-28  Christian Bruel  <christian.bruel@st.com>
1875
1876         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
1877         (movsf_ie): Likewise.
1878
1879 2007-03-28  Christian Bruel  <christian.bruel@st.com>
1880
1881         * config.gcc: Add sh4-300 to multilib.
1882         * config/sh/t-mlib-sh4-300: New file.
1883
1884 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1885
1886         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
1887         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
1888         fix_trunc<mode>di2.
1889         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
1890         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
1891         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
1892         "fixuns_trunctddi2"): Whitespace fix.
1893
1894 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1895
1896         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
1897         the definition of struct sh_args.
1898         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
1899         CALL_COOKIE_INT_REG_GET): Likewise.
1900
1901 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
1902
1903         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
1904         transformations are applied successfully.
1905
1906 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
1907
1908         * tree.c (tree_contains_struct): Permit 512 tree codes.
1909         * tree.h (tree_contains_struct): Ditto.
1910         (MAX_TREE_CODES): Ditto.
1911         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
1912         SPARE member to store remaining padding bits.
1913
1914 2007-03-27  Anatoly Sokolov <aesok@post.ru>
1915
1916         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
1917         architecture.
1918
1919 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
1920
1921         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
1922         * configure: Regenerate.
1923
1924         * configure: Regenerate using the correct version of autoconf.
1925
1926 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
1927
1928         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
1929         pointer regs.
1930         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
1931         regs to "__SP_L__" and "__SP_H__".
1932
1933 2007-03-27  Richard Guenther  <rguenther@suse.de>
1934
1935         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
1936         computations with it with a HOST_WIDE_INT variable.
1937
1938 2007-03-26  Mike Stump  <mrs@apple.com>
1939
1940         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
1941         objective-c-header, objective-c++-header and objc++-cpp-output
1942         support.
1943         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1944
1945 2007-03-26  Richard Henderson  <rth@redhat.com>
1946
1947         PR target/31361
1948         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
1949         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
1950         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
1951         IX86_BUILTIN_PSRLQ128): New.
1952         (ix86_init_mmx_sse_builtins): Add them.
1953         (ix86_expand_builtin): Expand them.
1954         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
1955         operand 2 be TImode.
1956         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
1957         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1958         _mm_srli_epi64): Mark __B const.
1959         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
1960         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
1961         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
1962         new two-vector shift builtins.
1963
1964 2007-03-26  Ian Lance Taylor  <iant@google.com>
1965
1966         PR tree-optimization/31345
1967         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
1968         [+INF, +INF(OVF)] into VARYING.
1969
1970 2007-03-26  Zack Weinberg  <zackw@panix.com>
1971
1972         * gengtype-parse.c: New file.
1973         * gengtype-yacc.y: Delete.
1974         * gengtype-lex.l: Don't include gengtype-yacc.h.
1975         Define YY_DECL and yyterminate appropriately for recursive
1976         descent parser.  yylval is now a string out-parameter to yylex.
1977         (HWS, EOID): New shorthand.
1978         (IWORD): Add a couple more types.
1979         (yylex): Add a setup stanza.  Remove the complex rules for
1980         detecting GTY'ed types and typedefs; replace with simple
1981         keyword detectors.  Adjust everything for the changed
1982         definition of yylval.  Ignore all pp-directives, not just #define.
1983         (yyerror): Delete.
1984         (parse_file): Rename yybegin; do not call yyparse.
1985         (yyend): New.
1986         * gengtype.c (xasprintf): Export again.
1987         (this_file): New.  Use everywhere __FILE__ was being used.
1988         (get_lang_bitmap): Special case types defined in gengtype.c.
1989         (do_typedef, new_structure): Suppress definition of certain types.
1990         (new_structure): Improve diagnostics of duplicate definitions.
1991         Make sure location_s is associated with input.h.
1992         (nreverse_pairs, define_location_structures): New functions.
1993         (main): Improve tagging of kludge types.  Remove old kludges
1994         for input.h types; use define_location_structures.
1995         * gengtype.h: Update prototypes.  Define token codes here.
1996         * Makefile.in: Remove all references to gengtype-yacc.
1997         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
1998         and gengtype.
1999         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
2000         add GTY((skip)) to the field that's only conditionally there.
2001         * doc/install.texi: Document that Bison is no longer required
2002         unless building treelang.
2003
2004         * gengtype.c: Don't include gtyp-gen.h.
2005         (srcdir): Declare here.
2006         (base_files, lang_dir_names): Allocate dynamically.
2007         (gt_files, num_gt_files, num_lang_dirs): New globals.
2008         (measure_input_list, read_input_line, read_input_list)
2009         (set_lang_bitmap): New functions.
2010         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
2011         simplify, relying on read_input_list to set up the bitmaps.
2012         (main): Arguments are no longer unused.  Check for correct number
2013         of command line arguments, set srcdir and srcdir_len, then call
2014         read_input_list, before doing anything else.  No need to worry
2015         about duplicates in main loop.
2016         * configure.ac: Simplify the calculation of all_gtfiles.
2017         Put language tags in there.  Don't set or substitute
2018         all_gtfiles_files_langs or all_gtfiles_files_frags.
2019         * Makefile.in: Revamp the way gengtype is invoked, now that it
2020         takes a file on its command line with a much simpler format.
2021         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
2022         (GTFILES): Remove duplicates and C source files.
2023         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
2024         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
2025         * configure: Regenerate.
2026
2027         * gengtype.h: Remove all type definitions to gengtype.c; leave
2028         only definitions of options_p, type_p, and pair_p as opaque
2029         pointers.  Update prototypes.
2030         * gengtype.c: Many type definitions moved here from gengtype.h.
2031         Consolidate type definitions at the top of the file.
2032         (xvasprintf): Delete.
2033         (xasprintf): Make static.
2034         (create_nested_pointer_option): Add 'next' parameter.
2035         (create_field_all, create_field_at): New functions.
2036         (create_field): Now a thin wrapper around create_field_all.
2037         (create_optional_field): Rename create_optional_field_ and add
2038         line argument.  Original name is now a macro which supplies
2039         __LINE__.
2040         (oprintf): Use vsnprintf directly.
2041         (close_output_files): Use fatal rather than perror/exit.
2042         (note_def_vec, note_def_vec_alloc): Use create_field_at.
2043         (main): Set progname.  Don't use exit.
2044         * gengtype-yacc.y (struct_fields): Use create_field_at.
2045         (option, optionseqopt): Delete.
2046         (optionseq): Consolidate productions from option here so we
2047         can use the first argument to create_option.
2048
2049         * gengtype-lex.l: Distinguish unions from structures in the
2050         token type.  Don't call find_structure; return the tag as a string.
2051         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
2052         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
2053         Reorganize typedef_struct production accordingly.
2054         Use create_nested_ptr_option.
2055         * gengtype.c (create_nested_ptr_option): New function.
2056         * gengtype.h: Declare it.
2057
2058         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
2059         (string_type): Don't declare.
2060         (do_scalar_typedef): Declare.
2061         (create_scalar_type): Update prototype.
2062         * gengtype.c (string_type): Make static.
2063         (scalar_nonchar, scalar_char): New.
2064         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
2065         (resolve_typedef): Use scalar_nonchar for error recovery.
2066         (create_scalar_type): Remove name_len field.  Return scalar_char
2067         or scalar_nonchar as appropriate.
2068         (adjust_field_type): Look at scalar_is_char boolean to decide whether
2069         to use string_type.
2070         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
2071         whenever possible.
2072         (main): Initialize scalar_char and scalar_nonchar before calling
2073         gen_rtx_next.
2074         * gengtype-lex.l: Adjust for removal of second argument to
2075         create_scalar_type.  Use yylval.s instead of yylval.t when
2076         returning SCALAR.
2077         * gengtype-yacc.y: Type of SCALAR is string.  Call
2078         create_scalar_type from type:SCALAR rule.  Adjust for removal of
2079         second argument to create_scalar_type.
2080
2081         * vec.h: Remove all #if IN_GENGTYPE blocks.
2082         Add comment saying that changes may require adjustments to gengtype.
2083         * gengtype.c: Don't include coretypes.h or tm.h.
2084         Add comment to inclusion of errors.h.
2085         (note_def_vec, note_def_vec_alloc): New functions.
2086         * gengtype.h: Declare new functions.
2087         * gengtype-lex.l: Don't include coretypes.h.
2088         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
2089         Delete.
2090         (update_lineno): Remove unnecessary prototype.
2091         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
2092         (VEC rule): Just return VEC_TOKEN.
2093         * gengtype-yacc.y (VEC_TOKEN): New token type.
2094         (type): Add a production for VEC(a,b).
2095         * Makefile.in: Update dependencies.
2096
2097         * gengtype-lex.l: Remove rules for parsing pointer-to-function
2098         typedefs that use the old PARAMS macro.
2099
2100         * gengtype-lex.l: Remove all rules and states relating to yacc
2101         input files.
2102         * gengtype-yacc.y: Similarly.
2103         * gengtype.c (note_yacc_type): Delete function.
2104         * gengtype.h: Update prototypes.
2105
2106 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
2107
2108         * tree-pretty-print.c (dump_generic_node): Report precision of
2109         unnamed integer types.
2110
2111 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
2112
2113         * ifcvt.c (noce_try_store_flag_constants): Don't check
2114         no_new_pseudos here.
2115         (noce_try_store_flag_constants): Don't check no_new_pseudos.
2116         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
2117         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2118         noce_try_sign_mask): Likewise.
2119         (if_convert): Check no_new_pseudos here.
2120
2121         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
2122         Remove prototypes.
2123         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
2124         (noce_get_condition): Handle new then_else_reversed argument.
2125         (noce_init_if_info): Remove, fold into noce_find_if_block.
2126         (noce_process_if_block): Take a struct noce_if_info as the
2127         argument.  Don't set up one based on ce_if_info.  Update pointer
2128         references accordingly.
2129         (cond_move_process_if_block): Likewise.
2130         (process_if_block): Removed.
2131         (find_if_block): Removed.  Move functionality two new functions,
2132         noce_find_if_block and cond_exec_find_if_block.
2133         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
2134         blocks and the symmetric IF-ELSE-JOIN case.
2135         (cond_exec_find_if_block): Also new function mostly based on old
2136         find_if_block and process_if_block.
2137         (find_if_header): Replace find_if_block call with separately
2138         guarded calls to noce_find_if_block and cond_exec_find_if_block.
2139         (find_cond_trap): Update noce_get_condition call.
2140         (dead_or_predicable): Likewise.
2141
2142 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
2143
2144         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
2145         Remove.
2146         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
2147         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
2148         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
2149         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
2150         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
2151         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
2152         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
2153         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
2154         __builtin_ia32_psrad128 builtins.
2155
2156 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
2157
2158         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
2159         * config/i386/constraints.md
2160         (define_constraint "I"): Use IN_RANGE macro.
2161         (define_constraint "J"): Ditto.
2162         (define_constraint "K"): Ditto.
2163         (define_constraint "M"): Ditto.
2164         (define_constraint "N"): Ditto.
2165         (define_constraint "O"): Ditto.
2166         * config/i386/predicates.md
2167         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
2168         (define_predicate "const_0_to_3_operand"): Ditto.
2169         (define_predicate "const_0_to_7_operand"): Ditto.
2170         (define_predicate "const_0_to_15_operand"): Ditto.
2171         (define_predicate "const_0_to_63_operand"): Ditto.
2172         (define_predicate "const_0_to_255_operand"): Ditto.
2173         (define_predicate "const_1_to_31_operand"): Ditto.
2174         (define_predicate "const_2_to_3_operand"): Ditto.
2175         (define_predicate "const_4_to_7_operand"): Ditto.
2176
2177 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
2178
2179         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
2180         in SImode for save_world.
2181         * config/rs6000/altivec.md (save_world, restore_world): Convert to
2182         LR hard reg.
2183
2184 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
2185
2186         PR tree-optimization/30784
2187         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
2188         BIT_FIELD_REF.
2189
2190 2007-03-25  Revital Eres  <eres@il.ibm.com>
2191
2192         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
2193           Fold movement_possibility function into it.
2194
2195 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
2196
2197         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
2198         (load_macho_picbase_{si,di}): Convert to LR hard reg.
2199         (call_indirect_nonlocal_darwin64): Same.
2200         (call_nonlocal_darwin64): Same.
2201         (call_value_indirect_nonlocal_darwin64): Same.
2202         (call_value_nonlocal_darwin64): Same.
2203         (sibcall_nonlocal_darwin64): Same.
2204         (sibcall_value_nonlocal_darwin64): Same.
2205         (sibcall_symbolic_64): Same.
2206         (sibcall_value_symbolic_64): Same.
2207         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
2208         LR pseudo.
2209         (rs6000_emit_load_toc_table): Same.
2210         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
2211         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
2212         (mull_call): Same.
2213         (divss_call): Same.
2214         (divus_call): Same.
2215         (quoss_call): Same.
2216         (quous_call): Same.
2217         (load_toc_v4_pic_si): Same
2218         (load_toc_v4_PIC_1): Same.
2219         (load_toc_v4_PIC_1b): Same.
2220         (call_indirect_aix{32,64}): Same.
2221         (call_value_indirect_aix{32,64}): Same.
2222         (call): Same.
2223         (call_value): Same.
2224         (call_local{32,64}): Same.
2225         (call_value_local{32,64}): Same.
2226         (call_indirect_nonlocal_aix{32,64}): Same.
2227         (call_nonlocal_aix{32,64}): Same.
2228         (call_value_indirect_nonlocal_aix{32,64}): Same.
2229         (call_value_nonlocal_aix{32,64}): Same.
2230         (call_indirect_nonlocal_sysv<mode>): Same.
2231         (call_nonlocal_sysv<mode>): Same.
2232         (call_value_indirect_nonlocal_sysv<mode>): Same.
2233         (call_value_nonlocal_sysv<mode>): Same.
2234         (sibcall): Same.
2235         (sibcall_local{32,64}): Same.
2236         (sibcall_value_local{32,64}): Same.
2237         (sibcall_nonlocal_aix{32,64}): Same.
2238         (sibcall_value_nonlocal_aix{32,64}): Same.
2239         (sibcall_nonlocal_sysv<mode>): Same.
2240         (sibcall_value): Same.
2241         (sibcall_value_nonlocal_sysv<mode>): Same.
2242
2243 2007-03-24  Paul Brook  <paul@codesourcery.com>
2244
2245         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
2246         * config/arm/linux-eabi.h: Remove legacy syscall hack.
2247
2248 2007-03-24  Richard Henderson  <rth@redhat.com>
2249
2250         * config/ia64/constraints.md: New file.
2251         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
2252         satisfies_constraint_?.
2253         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
2254         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
2255         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
2256         ia64_output_mi_thunk): Likewise.
2257         (ia64_const_ok_for_letter_p): Remove.
2258         (ia64_const_double_ok_for_letter_p): Remove.
2259         (ia64_extra_constraint): Remove.
2260         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
2261         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
2262         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
2263         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
2264         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
2265         EXTRA_MEMORY_CONSTRAINT): Remove.
2266         * config/ia64/ia64.md: Include constriants.md.  Replace
2267         CONST_OK_FOR_? with satisfies_constraint_?.
2268
2269 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
2270             H.J. Lu  <hongjiu.lu@intel.com>
2271
2272         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
2273         DPD or BID name.
2274         (name macros): Use DPD_BID_NAME to convert names properly.
2275
2276         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
2277         decimal floating point format.
2278         (init_floating_libfuncs): Change decimal functions so that they
2279         have a "bid_" prefix if the decimal system uses the BID format,
2280         and "dpd_" prefix if the decimal system uses the DPD format.
2281         (init_interclass_conv_libfuncs): Ditto.
2282         (init_intraclass_conv_libfuncs): Ditto.
2283
2284         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
2285         using the BID format.
2286
2287         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
2288         whether we are using the BID decimal format.
2289         * configure: Regenerate.
2290
2291         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
2292         the compiler has decimal floating point enabled.  Define
2293         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
2294         instead of DPD.
2295
2296         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
2297         using the BID format.
2298
2299         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
2300         whether we are using the BID decimal format.
2301         * configure: Regenerate.
2302
2303         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
2304         the compiler has decimal floating point enabled.  Define
2305         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
2306         instead of DPD.
2307
2308         * doc/install.texi (--enable-decimal-float): Document BID and DPD
2309         options, and that it is enabled for i386/x86_64 systems.
2310
2311         * Makefile.in (enable_decimal_float): New.
2312         (DECNUMFMT): New.
2313         (DECNUMINC): Add  -I$(DECNUMFMT).
2314         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
2315         to $(DECNUMFMT) from $(DECNUM).
2316
2317         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
2318         Substitute enable_decimal_float.
2319         * configure: Regenerated.
2320
2321         PR other/30529
2322         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
2323         unsigned long.
2324
2325         * configure.ac: Enable decimal float for x86_64-*-linux*.
2326         * configure: Regenerated.
2327
2328         PR other/30530
2329         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
2330         decimal128ClearSign to flip and clear the sign bit in decimal128.
2331         (decimal_real_maxval): Set decimal128SetSign to set the sign
2332         bit in decimal128.
2333
2334 2007-03-23  Ian Lance Taylor  <iant@google.com>
2335
2336         * fold-const.c (fold_binary): Correct warning for X - c >= X.
2337
2338 2007-03-23  Ian Lance Taylor  <iant@google.com>
2339
2340         * tree-dump.c (dump_files): Correct comment.
2341
2342 2007-03-23  Ian Lance Taylor  <iant@google.com>
2343
2344         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
2345
2346 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2347
2348         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
2349         in cfglayout mode.  Don't go into and out of cfglayout mode.
2350         Link the blocks in the order of the constructed traces.
2351         (rest_of_handle_tracer): Adjust call to tracer.
2352         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
2353         Don't go into cfglayout mode.
2354         (rtl_loop_done): Don't go out of cfglayout mode.
2355         * cfglayout.c (relink_block_chain): New function, split out from...
2356         (fixup_reorder_chain): ...here.  Remove redundant checking.
2357         (cfg_layout_finalize): Don't clear the header, footer, and aux
2358         fields here, move the code to do so to relink_block_chain.  Likewise
2359         for free_original_copy_tables.
2360         * rtl.h (tracer): Update prototype.
2361         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
2362         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
2363         mode.  Use relink_block_chain to serialize the CFG according to the
2364         new basic block order.  Move targetm.cannot_modify_jumps_p check from
2365         here...
2366         (gate_handle_reorder_blocks): ...to here.
2367         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
2368         from here...
2369         (gate_duplicate_computed_gotos): ...to here.
2370         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
2371         something always changes when going into and out of cfglayout mode.
2372         Perform an expensive cfg cleanup while going into cfglayout mode.
2373         Always update liveness information on HAVE_conditional_execution
2374         targets.  Reserialize the basic blocks and go out of cfglayout mode.
2375         * reg-stack.c: Include cfglayout.h.
2376         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
2377         the call to reorder_basic_blocks.
2378         * basic-block.h (reorder_basic_blocks): Update prototype.
2379         (relink_block_chain): New prototype.
2380         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
2381
2382 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
2383
2384         * config/mips/mips.md (type, hazard, *movdi_32bit,
2385         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
2386         *movhi_internal, *movqi_internal, *movsf_hardfloat,
2387         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
2388         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
2389         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
2390         applicable.
2391         (movcc): Change first xfer to multi.
2392         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
2393         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
2394         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
2395         config/mips/generic.md: Change reservations using "xfer" to use
2396         "mfc,mtc".
2397         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
2398         using match_operand.
2399         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
2400         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
2401         examining mode.
2402         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
2403
2404 2007-03-22  Richard Henderson  <rth@redhat.com>
2405
2406         * config/i386/i386.c: Remove unnecessary function declarations.
2407         Move targetm definition, and all related macros, to the end of
2408         the file.  Resort some functions to put definitions before uses.
2409         (ix86_attribute_table): Make static.  Move to end of file.
2410         (ix86_gimplify_va_arg): Make static.
2411
2412 2007-03-22  Richard Henderson  <rth@redhat.com>
2413
2414         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
2415         don't increase local_regparm with force_align_arg_pointer check.
2416         (ix86_function_sseregparm): Assert 32-bit.
2417         (type_has_variadic_args_p): New.
2418         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
2419         type_has_variadic_args_p.
2420         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
2421         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
2422         use memset instead.  Do maybe_vaarg check first; skip attribute
2423         tests if true; skip attribute tests for 64-bit.
2424         (construct_container): Remove TARGET_DEBUG_ARG.
2425         (function_arg_advance_32, function_arg_advance_64): Split out ...
2426         (function_arg_advance): ... from here.
2427         (function_arg_32, function_arg_64): Split out ...
2428         (function_arg): ... from here.
2429         (ix86_pass_by_reference): Tidy.
2430         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
2431         (function_value_32): New, from parts of ix86_function_value
2432         and ix86_value_regno.
2433         (function_value_64): New, from parts of ix86_function_value
2434         and ix86_libcall_value.
2435         (ix86_function_value_1): New.
2436         (ix86_function_value, ix86_libcall_value): Use it.
2437         (return_in_memory_32, return_in_memory_64): Split out ...
2438         (ix86_return_in_memory): ... from here.
2439         (ix86_struct_value_rtx): Skip for 64-bit.
2440         (ix86_libcall_value, ix86_value_regno): Remove.
2441         (setup_incoming_varargs_64): Split out ...
2442         (ix86_setup_incoming_varargs): ... from here.
2443         (ix86_va_start): Remove TARGET_DEBUG_ARG.
2444         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
2445         * config/i386/i386-protos.h (ix86_function_value): Remove.
2446         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
2447
2448 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2449
2450         PR other/23572
2451         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
2452         infinities not supported, otherwise emit warning if -Woverflow. On
2453         underflow, emit warning if -Woverflow.
2454         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
2455         and 0 otherwise.
2456         * real.h (real_from_string): Update declaration
2457
2458 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
2459             Richard Henderson  <rth@redhat.com>
2460
2461         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
2462         * calls.c (compute_argument_block_size, expand_call,
2463         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
2464         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2465         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
2466         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
2467         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
2468         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
2469         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
2470         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
2471         Set to 1.
2472
2473 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
2474
2475         * c-incpath.c (add_sysroot_to_chain): New.
2476         (merge_include_chains): Add sysroot argument.  Call
2477         add_sysroot_to_chain if sysrooted.
2478         (register_include_chains): Update call to merge_include_chains.
2479         * doc/cppopts.texi: Document use of '=' in include directory
2480         arguments.
2481
2482 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
2483
2484         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
2485         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
2486         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
2487         insn pattern using X87MODEF12 mode macro.
2488
2489 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
2490
2491         * regmove.c (regmove_optimize): Use reg_mentioned_p
2492         instead of reg_overlap_mentioned_p for DST.
2493
2494 2007-03-21  Mike Stump  <mrs@apple.com>
2495
2496         * c.opt: Fixup for Objective-C/C++.
2497
2498 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
2499
2500         * explow.c (convert_memory_address): Fold memory reference when
2501         POINTERS_EXTEND_UNSIGNED < 0
2502
2503 2007-03-21  Richard Henderson  <rth@redhat.com>
2504
2505         PR target/31245
2506         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
2507         * config/i386/mmintrin.h (__m64): Likewise.
2508         * config/i386/xmmintrin.h (__m128): Likewise.
2509
2510 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
2511
2512         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
2513         (VXWORKS_OS_CPP_BUILTINS): Define.
2514         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
2515         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
2516
2517 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
2518
2519         * rtl.h (constant_pool_reference_p): Delete.
2520         (find_constant_src): Declare.
2521         * rtlanal.c (find_constant_src): New function.
2522         * simplify-rtx.c (constant_pool_reference_p): Delete.
2523         * config/i386/i386.md: Use find_constant_src instead of
2524         constant_pool_reference_p/avoid_constant_pool_reference pairs.
2525
2526 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
2527
2528         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
2529         * c-cppbuiltin.c (c_cpp_builtins): Define them.
2530
2531 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
2532
2533         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
2534         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
2535         (arm_elf_asm_constructor): Use it.
2536         (arm_elf_asm_destructor): New function.
2537
2538 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2539
2540         * jump.c (mark_jump_label): Treat SEQUENCE specially.
2541
2542 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
2543
2544         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
2545
2546 2007-03-19  Andrew Haley  <aph@redhat.com>
2547
2548         PR tree-optimization/31264
2549         * tree-vrp.c (register_edge_assert_for_1): Don't look though
2550         VIEW_CONVERT_EXPRs.
2551
2552 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
2553
2554         PR rtl-optimization/30907
2555         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
2556         (fwprop_init): Always call loop_optimizer_initialize.
2557         (fwprop_done): Always call loop_optimizer_finalize.
2558         (fwprop): We always have loop info now.
2559         (gate_fwprop_addr): Remove.
2560         (pass_fwprop_addr): Use gate_fwprop as gate.
2561
2562         PR rtl-optimization/30841
2563         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
2564         df_chain_alloc): Call df_reorganize_refs unconditionally.
2565         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
2566         refs_organized to refs_organized_size.
2567         (df_ref_create_structure): Use refs_organized_size instead of
2568         bitmap_size if refs had been organized, and keep refs_organized_size
2569         up-to-date.
2570         * df.h (struct df_ref_info): Change refs_organized to
2571         refs_organized_size.
2572         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
2573         bitmap_size.
2574
2575 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
2576
2577         * except.c (output_function_exception_table): Do not reference the
2578         EH personality routine for functions that do not require an
2579         exception table.
2580
2581 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
2582
2583         PR c/30762
2584         * c-typeck.c (convert_for_assignment): Call comptypes for
2585         RECORD_TYPE or UNION_TYPE.
2586
2587         PR inline-asm/30505
2588         * reload1.c (reload): Do invalid ASM checking after
2589         cleanup_subreg_operands.
2590
2591 2007-03-19  Jeff Law  <law@redhat.com>
2592
2593         * tree-cfg.c (find_taken_edge): Tighten conditions for
2594         optimizing computed gotos.
2595
2596 2007-03-19  Michael Matz  <matz@suse.de>
2597
2598         * builtins.c (expand_builtin_sync_operation,
2599         expand_builtin_compare_and_swap,
2600         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
2601         correctly.
2602
2603         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
2604         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
2605         for operand 3.
2606
2607 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2608
2609         * doc/tm.texi: Add brackets around the return type of
2610         TARGET_SECONDARY_RELOAD.
2611
2612 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2613         Richard Guenther  <rguenther@suse.de>
2614
2615         PR tree-optimization/31254
2616         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
2617         Use handled_component_p () where appropriate.  Continue
2618         propagating into the rhs if we propagated into an INDIRECT_REF
2619         on the lhs.
2620
2621 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2622
2623         * config/s390/s390.md (op_type attribute): RRR instruction type added.
2624         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
2625         (xde, xdee): Mode attributes adjusted to support DFP modes.
2626         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
2627         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
2628         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
2629         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
2630         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
2631         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2632         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
2633         numbers.
2634         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
2635         "movsf"): Insn definitions removed.
2636         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
2637         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
2638         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
2639         definitions added.
2640         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
2641         "reload_in<mode>", "reload_out<mode>"): Expander added.
2642         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
2643         Expander removed.
2644
2645 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2646
2647         * config/s390/s390.md: Only non-functional changes.  Renamed
2648         FPR mode macro to BFP all over the file.
2649
2650 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2651
2652         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
2653         (op_type attribute): RRF instruction type added.
2654         (fT0): New mode attribute.
2655         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2656         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
2657         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
2658         no secondary memory is needed when moving DFmode values between GPRs
2659         and FPRs.
2660
2661 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2662
2663         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
2664         inverted and documentation adjusted.
2665         ("mhard-dfp", "msoft-dfp"): New options.
2666         * config/s390/s390.c (s390_handle_arch_option): New architecture
2667         switch: z9-ec.
2668         (override_options): Sanity checks for the new options added.
2669         * config.gcc: New architecture switch: z9-ec.
2670         * config/s390/s390.h (processor_flags): PF_DFP added.
2671         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
2672         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
2673         when the bit is NOT set so remove it from the defaults.
2674
2675 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2676
2677         * genemit.c (main): Print include statement for dfp.h.
2678         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
2679         is not available.
2680
2681 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
2682
2683         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
2684
2685 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2686
2687         PR target/31022
2688         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
2689         instead of PATTERN.
2690
2691 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2692
2693         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
2694         attr_length_call, output_call, output_indirect_call): Cleanup
2695         formatting of targetm calls.
2696
2697 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
2698
2699         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
2700
2701 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2702
2703         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
2704         reservation, bypass and anti-bypass descriptions for these instructions.
2705         Update move patterns.
2706         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
2707         TYPE_FPSTORE.
2708
2709 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
2710
2711         * tree-vect-transform.c (get_initial_def_for_induction): Replace
2712         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
2713         (get_initial_def_for_reduction): Likewise.
2714
2715 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
2716
2717         Fix PR tree-optimization/29922
2718         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
2719         (get_representative): Removed.
2720         (value_dies_in_block_x): Update for rvuse removal.
2721         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
2722         (compute_antic_aux): Handle when PHI nodes appear in
2723         non-single-successors.
2724         (dump_bitmap_of_names): Removed.
2725         (compute_antic_safe): Renamed and removed rvuse calculation.
2726         Calculate only antic safe.
2727         (insert_into_preds_of_block): Remove assert.
2728         (execute_pre): Update for renamed functions.
2729         (defer_or_phi_translate_block): New function.
2730
2731 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
2732
2733         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
2734         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
2735         typos.
2736         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
2737         Follow spelling conventions.
2738
2739         * tree-data-ref.h: Remove the prototype for analyze_array.
2740
2741 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
2742
2743         PR tree-optimization/31041
2744         * tree-vect-transform.c (get_initial_def_for_induction): Call
2745         force_gimple_operand.
2746
2747 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
2748
2749         * ipa-type-escape.c (look_for_casts) : Revert code to use
2750         handled_component_p due to ada test a-numaux.adb.
2751
2752 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
2753
2754         * final.c (final_scan_insn): Alter the condition of a
2755         conditional trap if we have nonstandard CC.
2756
2757 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
2758
2759         * configure.ac: Remove excess quoting from asm line 0 test.
2760         * configure: Rebuilt.
2761
2762 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2763
2764         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
2765         * c-common.c (convert_and_check): Move warning logic to...
2766         (warnings_for_convert_and_check): ...here. Define.
2767         * c-common.h (warnings_for_convert_and_check): Declare.
2768
2769 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2770
2771         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
2772         (output_call): Likewise.
2773
2774 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
2775
2776         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
2777
2778 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
2779
2780         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
2781
2782 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
2783
2784         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
2785         opteron, athlon-64 and athlon-fx processor_alias_table entries.
2786
2787 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
2788
2789         PR tree-optimization/31183
2790         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
2791         Use double_int instead of unsigned int for representing access_strides.
2792         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
2793
2794 2007-03-16  Richard Guenther  <rguenther@suse.de>
2795
2796         PR tree-optimization/31146
2797         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
2798         to allow recursion of forward_propagate_addr_expr.
2799         (forward_propagate_addr_into_variable_array_index): Likewise.
2800         (forward_propagate_addr_expr): Likewise.
2801         (tree_ssa_forward_propagate_single_use_vars): Likewise.
2802         (forward_propagate_addr_expr_1): Recurse on simple copies
2803         instead of propagating into them.  Do so for useless conversions
2804         as well.
2805         (forward_propagate_addr_expr): Clean up unused statements after
2806         recursion.
2807
2808 2007-03-16  Richard Guenther  <rguenther@suse.de>
2809
2810         * builtins.c (expand_builtin_cexpi): Use the right argument
2811         for the expansion via cexp.
2812
2813 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
2814
2815         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
2816         * configure: Rebuilt.
2817
2818 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
2819
2820         PR debug/29906
2821         * dwarf2out.c (force_type_die): Adjust comment.
2822         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
2823
2824 2007-03-15  DJ Delorie  <dj@redhat.com>
2825
2826         * config/frv/predicates.md (minmax_operator): Don't check operands
2827         here.
2828
2829 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
2830
2831         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
2832         Update constant estimates of number of iterations.
2833         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
2834         argument renamed to "realistic".
2835         (compute_estimated_nb_iterations): Removed.
2836         (record_niter_bound): New function.
2837         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
2838         call record_nonwrapping_iv with upper = false.
2839         (infer_loop_bounds_from_signedness): Pass upper argument to
2840         record_nonwrapping_iv.
2841         (estimate_numbers_of_iterations_loop): Do not call
2842         compute_estimated_nb_iterations.  Record estimate based on profile
2843         information.  Initialize the constant estimates of number of
2844         iterations.
2845         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
2846         estimates.
2847         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
2848         number of iterations is too small.
2849         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
2850         (EST_NOT_AVAILABLE): Removed.
2851         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
2852         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
2853         fields.
2854
2855 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
2856
2857         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
2858         Handle NE_EXPR guards.
2859
2860 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2861
2862         PR c++/24924
2863         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
2864         Set also -pedantic-errors by default for the  preprocessor unless
2865         -fpermissive is given.
2866
2867 2007-03-15  Richard Guenther  <rguenther@suse.de>
2868
2869         PR middle-end/29719
2870         PR middle-end/31161
2871         * builtins.c (expand_builtin_cexpi): As a fallback if we
2872         don't have builtins for sincos or cexp create a function
2873         declaration for cexp and expand to a call to that.
2874         (expand_builtin_int_roundingfn): Always fall
2875         back to floor/ceil and its variants even if they may be
2876         not available.
2877
2878 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
2879
2880         PR middle-end/31159
2881         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
2882         jump tables, move the call to delete_dead_jumptables from here...
2883         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
2884         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
2885         don't allow merging of blocks that try_redirect_by_replacing_jump
2886         also does not handle when not optimizing.
2887
2888 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
2889             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2890
2891         * config/i386/i386.md (x86_sahf_1): Correctly handle
2892         HAVE_AS_IX86_SAHF.
2893
2894 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
2895
2896         PR target/31167
2897         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
2898         x86_64_general_operand as operand[2] predicate.  Remove "iF"
2899         from operand constraints and use "e" constraint instead.
2900         (*subti3_1, *subti3_1 splitter): Ditto.
2901         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
2902         operand[1] predicate.
2903
2904 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
2905
2906         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
2907         arrays, multiply the access strides by the size of the sub-array.
2908         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
2909
2910 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
2911
2912         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
2913         the configured assembler supports the sahf mnemonic.
2914         * configure: Regenerate.
2915         * config.in: Regenerate.
2916
2917         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
2918         emit "sahf" or ".byte\t0x9e" as asm template.
2919
2920 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
2921
2922         PR 31018
2923         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
2924         option to replace hard coded TARGET_xxx in md file.
2925         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
2926         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2927         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
2928         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
2929         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
2930         (X86_TUNE_NOT_VECTORMODE): Ditto.
2931         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
2932         (TUNE_AVOID_VECTOR_DECODE): Ditto.
2933         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2934         (TUNE_SLOW_IMUL_IMM8): Ditto.
2935         (TUNE_MOVE_M1_VIA_OR): Ditto.
2936         (TUNE_NOT_UNPAIRABLE): Ditto.
2937         (TUNE_NOT_VECTORMODE): Ditto.
2938
2939         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
2940         options.
2941
2942         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
2943         tuning options instead of hard coded TARGET_xxx.
2944         (fix ssemode peephole2's): Ditto.
2945         (imul peephole2's): Ditto.
2946         (movsi_or): Ditto.
2947         (movdi_or_rex64): Ditto.
2948         (move peephole2): Ditto.
2949         (not peephole2's): Ditto.
2950
2951 2007-03-14  Dirk Mueller  <dmueller@suse.de>
2952
2953         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
2954         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
2955         * c-parser.c (c_parser_if_body): Always add an empty statement in case
2956         of empty body.
2957         * c-parser.c (c_parser_do_statement): Warn about empty body in
2958         do/while statement.
2959         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
2960         * doc/invoke.texi (-Wempty-body): Update documentation.
2961
2962 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2963
2964         PR c/21438
2965         * c-common.h (warn_for_div_by_zero): Declare.
2966         * c-common.c (warn_for_div_by_zero): Define.
2967         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
2968         warning.
2969
2970 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
2971
2972         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
2973         to PREFIX and STANDARD_PREFIX.
2974
2975 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
2976             Phil Edwards  <phil@codesourcery.com>
2977
2978         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
2979         (__gthread_once_t): Remove busy field for RTPs.
2980         (__GTHREAD_ONCE_INIT): Update accordingly.
2981
2982 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
2983
2984         * doc/invoke.texi: Document VxWorks options.
2985
2986 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
2987
2988         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
2989
2990 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
2991
2992         PR tree-optimization/30590
2993         * tree-nrv.c (tree_nrv): Check for the partial update of the
2994         return value.
2995
2996 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
2997
2998         * flags.h (flag_random_seed): Remove declaration, in favor of...
2999         * toplev.h (get_random_seed, set_random_seed): ... these.
3000         * tree.c (get_file_function_name): Use the former.
3001         * opts.c (common_handle_option): Use the latter.
3002         * toplev.c
3003
3004 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
3005
3006         PR middle-end/31127
3007         * cse.c (cse_find_path): Do not bail out if a basic block that
3008         we already visited now becomes part of a path that starts at a
3009         different basic block.  Just disallow this, to make sure we
3010         visit each basic block at most once.
3011
3012 2007-03-13  Jan Hubicka  <jh@suse.cz>
3013
3014         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
3015         when profile esitmate is present, calls with very low frequency are
3016         cold.
3017
3018 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
3019
3020         PR tree-optimization/30730
3021         PR tree-optimization/26900
3022         * tree-ssa-loop-niter.c: Include gmp.h.
3023         (bounds): New type.
3024         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
3025         split_to_var_and_offset, determine_value_range,
3026         bound_difference_of_offsetted_base, refine_bounds_using_guard,
3027         bound_difference, bounds_add, bounds_negate,
3028         number_of_iterations_ne_max, dump_affine_iv): New functions.
3029         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
3030         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
3031         difference of initial and final value of control iv to validate
3032         results.
3033         (number_of_iterations_cond): Add loop parameter.  Determine bounds
3034         on the difference of the extremes of the control iv.  Add dumps.
3035         (expand_simple_operations): Handle phi nodes.
3036         (simplify_using_initial_conditions): Do not record used conditions.
3037         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
3038         Do not set additional_info.
3039         (implies_nonnegative_p, implies_ge_p): Removed.
3040         (derive_constant_upper_bound): Do not use parameter `additional'.
3041         (record_estimate): Parameter `additional' removed.  Parameter
3042         `i_bound' added.  Do not call derive_constant_upper_bound.
3043         (record_nonwrapping_iv): Use derive_constant_upper_bound to
3044         bound the number of iterations estimate.
3045         (estimate_numbers_of_iterations_loop): Pass the estimate from
3046         the number of iterations analysis to record_estimate.
3047         * tree.h (multiple_of_p): Declare.
3048         * tree-scalar-evolution.c (expression_expensive_p): Removed.
3049         (scev_const_prop): Do not check expression_expensive_p.
3050         * fold-const.c (multiple_of_p): Exported.
3051         * double-int.c (double_int_mask): Exported.
3052         * double-int.h (double_int_mask): Declare.
3053         * tree-flow.h (struct tree_niter_desc): Removed additional_info
3054         field.  Added max field.
3055
3056 2007-03-13  David Taylor  <taylor@candd.org>
3057
3058         PR driver/12448:
3059         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
3060         default -MQ.
3061
3062 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3063
3064         PR target/31123
3065         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
3066         two unamed patterns.
3067
3068 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
3069
3070         * config/i386/i386.opt (mcx16, msahf): New options.
3071         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
3072         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
3073
3074         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
3075         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
3076         Output -mcx16 and -msahf options when corresponding bit is set.
3077
3078         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
3079         and -msahf options.
3080
3081 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
3082
3083         * configure.ac: Test for assembler tolerance to # 0 "".
3084         * configure, config.in: Rebuilt.
3085         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
3086
3087 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
3088
3089         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
3090
3091         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
3092         (handle_syscall): Handle direct system calls.
3093         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
3094
3095 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
3096
3097         * doc/invoke.texi: Fix cpp.info cross-reference.
3098         * doc/passes.texi: Fix gcc.info cross-reference.
3099
3100 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
3101
3102         PR tree-optimization/30835
3103         * lambda-code.c (can_convert_to_perfect_nest): Check whether
3104         bb_for_stmt is not NULL before accessing it.
3105
3106 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
3107
3108         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
3109         some multilibs.
3110
3111 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
3112
3113         PR 30635
3114         * doc/install.texi: Document --enable-stage1-languages
3115
3116 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
3117
3118         * tree-pass.h (pass_into_cfg_layout_mode,
3119         pass_outof_cfg_layout_mode): Declare.
3120         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
3121         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
3122         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
3123         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
3124
3125 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
3126
3127         * c-decl.c (warn_variable_length_array): New function.
3128         Refactored from grokdeclarator to handle warn_vla
3129         and handle unnamed array case.
3130         (grokdeclarator): Refactored VLA warning case.
3131         * c.opt (Wvla): New flag.
3132         * doc/invoke.texi (Wvla): New warning.
3133
3134 2007-03-12  Richard Henderson  <rth@redhat.com>
3135
3136         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
3137         (TARGET_SECTION_TYPE_FLAGS): New.
3138
3139 2007-03-12  Richard Henderson  <rth@redhat.com>
3140
3141         * config/darwin.c (machopic_reloc_rw_mask): New.
3142         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
3143         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
3144
3145 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
3146
3147         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
3148         * cppdefault.h (cpp_PREFIX): Document.
3149         (cpp_PREFIX_len): Likewise.
3150         (cpp_EXEC_PREFIX): New variable.
3151         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
3152         * c-incpath.c (add_standard_paths): Correct logic for relocating
3153         paths within prefix.
3154
3155 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
3156
3157         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
3158         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
3159         mode macro.
3160         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
3161         fix_truncdfdi_sse using SSEMODEF mode macro.
3162         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
3163         fix_truncdfsi_sse using SSEMODEF mode macro.
3164         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
3165         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
3166
3167 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
3168
3169         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
3170         elfos.h to tm_file.
3171
3172 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
3173
3174         * tree.h : Add multiple_of_p declaration.
3175         * fold-const.c (multiple_of_p): Make multiple_of_p public.
3176         * ipa-type-escape.c (results_of_malloc): Redundant.
3177         (visited_stmts): New. Visited stmt for walk_use_def_chains.
3178         (cast_type): Extended with new members.
3179         (check_cast): Returns cast_type.
3180         (cast): New structure for data of walk_use_def_chains.
3181         (is_malloc_result, is_cast_from_non_pointer_1,
3182         is_cast_from_non_pointer,
3183         is_array_access_through_pointer_and_index): New functions.
3184         (look_for_casts): Returns cast types.
3185         (check_call): Returns void.
3186         (okay_pointer_operation): Use support of pointer plus index,
3187         pointer plus constant and allow all multiplications.
3188
3189 2007-03-11  Richard Guenther  <rguenther@suse.de>
3190
3191         PR tree-optimization/31115
3192         * tree-vrp.c (extract_range_from_binary_expr): Make sure
3193         the shift count is positive and non-anti-range for RSHIFT_EXPR.
3194         A shift count of zero is not special as with *_DIV_EXPR.
3195         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
3196         direction.
3197
3198 2007-03-11  Ian Lance Taylor  <iant@google.com>
3199
3200         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
3201         the *_DIV_EXPR codes correctly with overflow infinities.
3202
3203 2007-03-11  Ira Rosen  <irar@il.ibm.com>
3204
3205         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
3206         indicate success/failure of the analysis. Add negation to subtrahend
3207         in case of subtraction. Fail if both operands contain constants.
3208         (create_data_ref): Fail if analyze_offset fails.
3209
3210 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
3211
3212         * config/i386/i386.md (frndintxf2): Rename to ...
3213         (rintxf2): ... this. Remove expander having same name.
3214         (rintsf2, rintdf2): Implement using SSEMODEF macro.
3215         (roundsf2, rounddf2): Ditto.
3216         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
3217         (lround<mode>di2, lround<mode>si2): Ditto.
3218
3219 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
3220
3221         * lower-subreg.c: Include except.h.
3222         (decompose_multiword_subregs): Verify that the only control flow
3223         insns we can split are loads to multi-words pseudos.
3224         Handle breaking such blocks after splitting, instead of calling
3225         find_many_sub_basic_blocks.
3226
3227         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
3228         on the new basic block.  Add a lengthy comment explaining why we
3229         thought this was necessary.
3230         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
3231
3232 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
3233
3234         PR c++/30924
3235         * tree.c (walk_type_fields): Recurse into the element type of
3236         ARRAY_TYPEs if there is a pointer set.
3237
3238 2007-03-10  Dirk Mueller  <dmueller@suse.de>
3239
3240         * c-common.c (warn_logical_operator): Fix condition.
3241
3242 2007-03-10  Tobias Schlüter  <tobi@gcc.gnu.org>
3243
3244         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
3245         quotation mark.
3246         * config/darwin.c (machopic_select_section): Remove superfluous
3247         argument in call to categorize_decl_for_section.  Remove unused
3248         variable shlib.
3249
3250 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
3251
3252         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
3253         defined.
3254         * configure: Regenerate.
3255
3256 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
3257
3258         PR target/31101
3259         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
3260         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
3261         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
3262         Add LABEL_NUSES to emitted label.
3263         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
3264         branch probability value to emitted jump insn.
3265         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
3266         Do not check life information and do not re-arrange input operands
3267         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
3268
3269 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3270
3271         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
3272         the change of decode_asm_operands.
3273
3274 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3275
3276         * mode-switching.c (create_pre_exit): Skip blockage insn.
3277
3278 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
3279
3280         * tree-pass.h (TODO_update_smt_usage): Remove.
3281         Update all users.
3282         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
3283         argument SOME.
3284         Update all users.
3285
3286 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3287
3288         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
3289         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
3290         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
3291         SOM target.
3292
3293 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
3294
3295         * gcc.c: Document %{, in big comment at top.
3296         (input_suffix_matches): Remove special handling for .s and
3297         .S.
3298         (input_spec_matches): New.
3299         (handle_braces): Handle %{,.
3300         (validate_switches): ',' indicates a value which is not a switch.
3301         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
3302         to detect assembler input.
3303         * config/i386/sol2.h (CPP_SPEC): Likewise.
3304         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
3305         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3306         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
3307         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
3308         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
3309         -m64 causes deployment target to default to 10.5.
3310         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
3311
3312 2007-03-09  Richard Henderson  <rth@redhat.com>
3313
3314         PR target/26090
3315         * target.h (targetm.asm.out.reloc_rw_mask): New.
3316         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
3317         (TARGET_ASM_OUT): Use it.
3318         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
3319         * varasm.c (categorize_decl_for_section): Remove shlib argument;
3320         use the new reloc_rw_mask target hook instead.
3321         (default_section_type_flags_1): Merge into...
3322         (default_section_type_flags): ... here.
3323         (decl_readonly_section_1): Merge into...
3324         (decl_readonly_section): ... here.
3325         (default_elf_select_section_1): Merge into...
3326         (default_elf_select_section): ... here.
3327         (default_unique_section_1): Merge into...
3328         (default_unique_section): ... here.
3329         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
3330         (default_select_rtx_section): Use it.
3331         (default_elf_select_rtx_section): Likewise.
3332         * output.h: Update to match.
3333         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
3334         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
3335         (TARGET_ASM_RELOC_RW_MASK): New.
3336         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
3337         to categorize_decl_for_section.
3338         (x86_64_elf_unique_section): Likewise.
3339         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
3340         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
3341         (TARGET_ASM_RELOC_RW_MASK): New.
3342         * config/ia64/ia64.c (ia64_rwreloc_select_section,
3343         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
3344         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
3345         (TARGET_RWRELOC): Remove.
3346         (ia64_section_type_flags): Adjust call to default_section_type_flags.
3347         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
3348         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
3349         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
3350         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
3351         (rs6000_xcoff_select_section): Use decl_readonly_section.
3352         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
3353         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
3354         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
3355         (TARGET_SECTION_TYPE_FLAGS): Remove.
3356         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
3357
3358 2007-03-09  Roger Sayle  <roger@eyesopen.com>
3359
3360         * fold-const.c (fold_comparison): Remove compile-time evaluation of
3361         complex constant equality/inequality comparisons for here.
3362         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
3363         known at compile-time or can be simplified to a scalar comparison.
3364         (fold_relational_const): Move compile-time evaluation of complex
3365         constant equality/inequality comparisons to here.
3366
3367 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3368
3369         PR rtl-optimization/30643
3370         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
3371         dest_addr_elt.
3372         (fold_rtx): Recurse, like before 2006-11-03.
3373
3374 2007-03-09  DJ Delorie  <dj@redhat.com>
3375
3376         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
3377         m32c-pragma.o.
3378
3379 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
3380
3381         PR tree-optimization/30375
3382         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
3383         LHS of statements is not the same.
3384         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
3385
3386 2007-03-09  Chao-ying Fu  <fu@mips.com>
3387
3388         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
3389         REV 2.
3390         * doc/invoke.texi (-mdspr2): Document new option.
3391         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
3392         New unspec for DSP REV 2.
3393         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
3394         these instructions are extended in DSP REV 2.
3395         (mips-dspr2.md): Include.
3396         * config/mips/mips.opt (mdspr2): New option.
3397         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
3398         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
3399         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
3400         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
3401         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
3402         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
3403         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
3404         and 2 builtins.
3405         (bdesc_map): Add one field of unsupported_target_flags.
3406         (bdesc_arrays):  Update entries to have extra fields.  Add
3407         dsp_32only_bdesc.
3408         (mips_init_builtins): Initialize new function types.
3409         Check unsupported_target_fileds to filter out builtins.
3410         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
3411         TARGET_DSPR2.
3412         (ASM_SPEC): Pass mdspr2 to the assembler.
3413         * config/mips/mips-dspr2.md: New file.
3414
3415 2007-03-09  Sa Liu  <saliu@de.ibm.com>
3416
3417         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
3418
3419 2007-03-09  Ian Lance Taylor  <iant@google.com>
3420
3421         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
3422         argument) like -Wstrict-overflow=2.
3423         * doc/invoke.texi (Warning Options): Update documentation.
3424
3425 2007-03-09  Dirk Mueller  <dmueller@suse.de>
3426
3427         PR c++/17946
3428         * doc/invoke.texi (-Wlogical-op): Document.
3429         * common.opt (-Wlogical-op): New.
3430         * c-common.h (warn_logical_operator): Declare.
3431         * c-common.c (warn_logical_operator): Define.
3432         * c-typeck.c (parser_build_binary_op): Call
3433         warn_logical_operator.
3434
3435 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3436
3437         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
3438         * final.c (final_scan_insn): Test for non-"" file name.
3439
3440 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
3441
3442         * doc/loop.texi: Document the Omega linear constraints solver.
3443         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
3444         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
3445         omega-hash-table-size, omega-max-keys, and
3446         omega-eliminate-redundant-constraints.
3447         * tree-pass.h (pass_check_data_deps): Declared.
3448         * omega.c: New.
3449         * omega.h: New.
3450         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
3451         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
3452         pass_check_data_deps): New.
3453         * tree-data-ref.c (init_data_ref): Remove declaration.
3454         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
3455         (analyze_array): Renamed init_array_ref, move up initializations.
3456         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
3457         Removed arguments that are set to NULL.
3458         (analyze_indirect_ref): Correct indentation, correct call to
3459         init_pointer_ref.
3460         (object_analysis): Call init_array_ref instead of analyze_array.
3461         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
3462         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
3463         of DR_ACCESS_FNS_ADDR.
3464         (init_omega_eq_with_af, omega_extract_distance_vectors,
3465         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
3466         ddr_consistent_p): New.
3467         (compute_affine_dependence): Check consistency of ddrs when
3468         flag_check_data_deps is passed.
3469         (analyze_all_data_dependences): Uncomment.
3470         (tree_check_data_deps): New.
3471         * tree-data-ref.h: Include omega.h.
3472         (DR_ACCESS_FNS_ADDR): Removed.
3473         (data_dependence_relation): Add inner_loop.
3474         (DDR_INNER_LOOP): New.
3475         * common.opt (fcheck-data-deps): New.
3476         * tree-flow.h (tree_check_data_deps): Declare.
3477         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
3478         (OBJS-common): Depend on omega.o.
3479         (omega.o): Define.
3480         * passes.c (pass_check_data_deps): Scheduled.
3481         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3482         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3483         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
3484         PARAM_VECT_MAX_VERSION_CHECKS,
3485         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
3486
3487 2007-03-09  Richard Guenther  <rguenther@suse.de>
3488
3489         PR tree-optimization/30904
3490         PR middle-end/31058
3491         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
3492         the same way as *_DIV_EXPR.
3493
3494 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3495
3496         * recog.c (decode_asm_operands): No mixed declarations and code.
3497
3498 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3499
3500         * rtl.def (ASM_INPUT): Add location.
3501         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
3502         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
3503         (decode_asm_operands): Add loc operand.
3504         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
3505         * stmt.c (expand_asm): Rename to...
3506         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
3507         gen_rtx_ASM_INPUT_loc.
3508         (expand_asm_expr): Adjust.
3509         * recog.c (decode_asm_operands): Add loc operand.
3510         (check_asm_operands, extract_insn): Adjust.
3511         * reload1.c (maybe_fix_stack_asms): Likewise.
3512         * final.c (asm_insn_count): Likewise.
3513         (final_scan_insn): Output # line before and after asm.
3514
3515 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
3516
3517         * tree-ssa-structalias.c (variable_info): Remove
3518         finished_solution.
3519         (new_var_info): Ditto.
3520         (shared_bitmap_info_t): New structure.
3521         (shared_bitmap_table): New variable.
3522         (shared_bitmap_hash): New function.
3523         (shared_bitmap_eq): Ditto
3524         (shared_bitmap_lookup): Ditto.
3525         (shared_bitmap_add): Ditto.
3526         (merge_smts_into): Change to take bitmap directly.
3527         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
3528         (init_alias_vars): Init shared bitmap hashtable.
3529         (delete_points_to_sets): Delete shared bitmap hashtable.
3530         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
3531         is_aliased removal as a change that was still necessary was
3532         deleted.
3533
3534 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
3535
3536         * config/i386/i386.h (override_options): Conditionally disable
3537         x86_sahf for 64bit targets only.
3538
3539 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3540
3541         PR C/31072
3542         * c-decl.c (merge_decls): Don't call make_var_volatile.
3543         * varasm.c (make_var_volatile): Remove.
3544         * output.h (make_var_volatile): Remove.
3545
3546 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
3547
3548         PR tree-optimization/31085
3549         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
3550
3551 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3552
3553         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
3554         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
3555         ATTR_CONST_NOTHROW_LIST.
3556
3557         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3558         FIX_TRUNC_EXPR.
3559
3560 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
3561
3562         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
3563
3564 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
3565
3566         PR 31013
3567         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
3568         is declared.
3569         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
3570         passed, use shared libgcc.
3571
3572 2007-03-08  Roger Sayle  <roger@eyesopen.com>
3573
3574         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
3575         instead of calling build2 with a GIMPLE_MODIFY_STMT.
3576         (honor_protect_cleanup_actions, lower_try_finally_switch):
3577         Likewise.
3578         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
3579         ifc_temp_var): Likewise.
3580         * tree-inline.c (setup_one_parameter): Likewise.
3581         * tree-mudflap.c (mf_decl_cache_locals,
3582         mf_build_check_statement_for): Likewise.
3583         * tree-nested.c (init_tmp_var, save_tmp_var,
3584         finalize_nesting_tree_1): Likewise.
3585         * tree-outof-ssa.c (insert_copy_on_edge,
3586         insert_backedge_copies): Likewise.
3587         * tree-profile.c (tree_gen_edge_profiler,
3588         tree_gen_ic_profiler): Likewise.
3589         * tree-scalar-evolution.c (scev_const_prop): Likewise.
3590         * tree-sra.c (sra_build_assignment): Likewise.
3591         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
3592         * tree-ssa-math-opts.c (insert_reciprocals,
3593         execute_cse_sincos_1): Likewise.
3594         * tree-tailcall.c (adjust_accumulator_values,
3595         adjust_return_value): Likewise.
3596         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
3597         * tree-vect-transform.c (vect_create_data_ref_ptr,
3598         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
3599         vect_create_epilog_for_reduction, vectorizable_reduction,
3600         vectorizable_call, vectorizable_conversion,
3601         vectorizable_assignment, vectorizable_operation,
3602         vectorizable_type_demotion, vect_gen_widened_results_half,
3603         vect_permute_store_chain, vectorizable_store,
3604         vect_setup_realignment, vect_permute_load_chain,
3605         vectorizable_load, vectorizable_condition,
3606         vect_create_cond_for_align_checks): Likewise.
3607         * tree-vrp.c (build_assert_expr_for): Likewise.
3608
3609 2007-03-08  Ian Lance Taylor  <iant@google.com>
3610
3611         * tree-vrp.c: Include "intl.h".
3612         (usable_range_p): New static function.
3613         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
3614         overflowed values, juts set *strict_overflow_p.
3615         (compare_values): Only return -2 if one of the operands is not a
3616         constant.
3617         (compare_ranges): Call usable_range_p.
3618         (compare_range_with_value): Likewise.
3619         (vrp_evaluate_conditional_warnv): Rename from
3620         vrp_evaluate_conditional.  Make static.  Change all callers.
3621         (vrp_evaluate_conditional): New function.
3622         (simplify_div_or_mod_using_ranges): Issue warning about reliance
3623         on signed overflow.
3624         (simplify_abs_using_ranges): Likewise.
3625         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
3626         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
3627         within_stmt parameter.
3628         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3629         vrp_evaluate_conditional.
3630         * tree-ssa-threadedge.c
3631         (record_temporary_equivalences_from_stmts_at_dest): Change
3632         simplify parameter to take a second tree parameter.
3633         (simplify_control_stmt_condition): Likewise.
3634         (thread_across_edge): Likewise.
3635         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3636         (thread_across_edge): Likewise.
3637         * Makefile.in (tree-vrp.o): Depend upon intl.h.
3638
3639 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
3640
3641         * config/i386/i386.h (TARGET_SAHF): New define.
3642         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
3643         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
3644         (x86_sahf): New global variable.
3645         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
3646         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
3647         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
3648         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
3649         for 64-bit.
3650         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
3651         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
3652         when expanding fcomi/sahf based tests.
3653         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
3654         expanding sahf based alternative. Emit sahf based sequence when
3655         optimizing for code size.
3656         * config/i386/i386.md (x86_sahf_1): Do not disable for
3657         TARGET_64BIT, enable for TARGET_SAHF.
3658
3659 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
3660
3661         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
3662         spurious whitespace from error message.
3663
3664 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
3665
3666         PR c++/30852
3667         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
3668
3669 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
3670
3671         * c-decl.c (grokdeclarator): Disable warnings for anonymous
3672         bitfields.
3673         * tree-sra.c (instantiate_element): Propagate disabled warnings
3674         from the element itself to the created variable.
3675
3676 2007-03-07  Richard Henderson  <rth@redhat.com>
3677
3678         PR target/30848
3679         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
3680         silently fix up the stack in the case of a missing register.
3681
3682 2007-03-07  Paul Brook  <paul@codesourcery.com>
3683
3684         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
3685
3686 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
3687
3688         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
3689         New.
3690         (phase1_vrs): Use them.
3691         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
3692         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
3693         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
3694         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
3695         __gnu_Unwind_Restore_WMMXC if required.
3696         (_Unwind_VRS_Pop): Implement iWMMXt support.
3697         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
3698         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
3699         gnu_Unwind_Save_WMMXC): Define.
3700
3701 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
3702
3703         * config/vxworks.h (vxworks_override_options): Declare.
3704         (VXWORKS_OVERRIDE_OPTIONS): Use it.
3705         * config/vxworks.c: Include target.h and toplev.h.
3706         (vxworks_override_options): New function.
3707         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
3708
3709 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
3710
3711         * config/s390/s390.c (override_options): Don't emit an error when
3712         -mstack-size is used without providing -mstack-guard.
3713         (s390_emit_prologue): Choose stack_guard value automatically if not
3714         provided via command line.
3715         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
3716
3717 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
3718
3719         * config/i386/i386.c (output_set_got): Add a GOT initialization
3720         sequence for VxWorks PIC.
3721         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
3722         around labels as well as symbols.  Use gotoff_operand instead
3723         of local_symbolic_operand.
3724         (legitimize_pic_address): Use gotoff_operand instead of
3725         local_symbolic_operand.  Use @GOT accesses for labels as
3726         well as symbols.
3727         (ix86_output_addr_diff_elt): Use PC-relative rather than
3728         GP-relative offsets for VxWorks PIC.
3729         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
3730         no_new_pseudos.  Check whether the returned register is op0.
3731         * config/i386/i386.md (tablejump): Use PC-relative rather than
3732         GP-relative offsets for VxWorks PIC.
3733         * config/i386/predicates.md (gotoff_operand): New predicate.
3734
3735 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3736
3737         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
3738         before defining.
3739         * config/vxworks-dummy.h: New file.
3740         * config/i386/i386.h: Include it.
3741
3742 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
3743
3744         * dwarf2out.c (is_inlined_entry_point): New
3745         (add_high_low_attributes): Emit DW_AT_entry_pc along with
3746         DW_AT_ranges if the first subblock is the entry point.
3747
3748 2007-03-06  David Daney  <ddaney@avtrex.com>
3749
3750         * doc/install.texi (mips-*-*): Change recommended binutils
3751         version.
3752
3753 2007-03-06  Anatoly Sokolov <aesok@post.ru>
3754
3755         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
3756         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
3757         devices.
3758         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3759         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3760
3761 2007-03-06  Jan Hubicka  <jh@suse.cz>
3762
3763         * errors.h (warning, error, fatal, internal_error): Mark as cold.
3764         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
3765         are hot.
3766         (probably_cold_bb_p): Cold functions are cold.
3767         (probably_never_executed_bb_p): Cold functions are cold.
3768         (tree_bb_level_predictions): Predict calls to cold functions as not
3769         taken.
3770         (compute_function_frequency): Check hot/cold attributes.
3771         * function.h (function_frequency): Update comments.
3772         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
3773         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
3774         (c_common_att): Add cold and hot.
3775
3776         * doc/extend.texi (hot,cold attributes): Document.
3777
3778 2007-03-06  Andrew Haley  <aph@redhat.com>
3779
3780         * function.c (expand_function_end): Move blockage to just after we
3781         emit the label for the naked return from the function.
3782
3783 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3784
3785         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
3786         before redefining.
3787
3788 2007-03-06  Jan Hubicka  <jh@suse.cz>
3789
3790         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
3791         loaded for constant large models.  Non-large 64bit PIC can do.
3792         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
3793         * cmodel.h: Add LARGE PIC.
3794         * i386.md (UNSPEC_PLTOFF): New.
3795         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
3796         needed.
3797         (*call_1_rex64): Disable for large models.
3798         (*call_1_rex64_large): New.
3799         (*call_value_1_rex64): Disable for large models.
3800         (*call_value_1_rex64_large): New.
3801         (set_rip_rex4): New.
3802         (set_got_offset_rex64): New.
3803         * predicates.md (constant_call_address_operand): For large model
3804         constant calls are not possible.
3805         * i386-protos.h (construct_plt_address): Declare.
3806         * i386.c (override_options): Accept large models.
3807         (ix86_expand_prologue): Expand large PIC GOT pointer load.
3808         (legitimate_constant_p): Add new UNSPECs.
3809         (legitimate_pic_operand_p): Likewise.
3810         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
3811         (legitimize_pic_address): Do easy RIP relative way for TLS only for
3812         non-large model.
3813         (output_pic_addr_const): Add PLTOFF.
3814         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
3815         (ix86_expand_move): Legitimize pic address when in PIC mode.
3816         (construct_plt_address): New function.
3817         (ix86_expand_call): Offload the address to register and use GOT pointer
3818         for large model.
3819         * invoke.texi (mcmodel=large): Update documentation.
3820
3821 2007-03-06  Richard Henderson  <rth@redhat.com>
3822
3823         * config/i386/i386.c (x86_use_leave, x86_push_memory,
3824         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
3825         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
3826         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
3827         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
3828         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
3829         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
3830         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
3831         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
3832         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
3833         x86_partial_reg_dependency, x86_memory_mismatch_stall,
3834         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
3835         x86_sse_partial_reg_dependency, x86_sse_split_regs,
3836         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
3837         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
3838         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
3839         x86_schedule, x86_use_bt, x86_pad_returns,
3840         x86_use_xchgb): Merge into ...
3841         (ix86_tune_features): ... here.  New array.
3842         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
3843         x86_bswap): Merge into ...
3844         (ix86_arch_features): ... here.  New array.
3845         (x86_3dnow_a): Remove.
3846         (x86_accumulate_outgoing_args): Make static.
3847         (x86_arch_always_fancy_math_387): Make static.
3848         (ix86_tune_mask, ix86_arch_mask): Move ...
3849         (override_options): ... to local variables here.  Apply the
3850         appropriate mask to each element of ix86_arch_features and
3851         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
3852         as were done in the old macros.
3853         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
3854         * config/i386/i386.h (x86_use_leave, x86_push_memory,
3855         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
3856         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
3857         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
3858         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
3859         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
3860         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
3861         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
3862         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
3863         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
3864         x86_partial_reg_dependency, x86_memory_mismatch_stall,
3865         x86_accumulate_outgoing_args, x86_prologue_using_move,
3866         x86_epilogue_using_move, x86_decompose_lea,
3867         x86_arch_always_fancy_math_387, x86_shift1,
3868         x86_sse_partial_reg_dependency, x86_sse_split_regs,
3869         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
3870         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
3871         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
3872         x86_use_incdec, x86_pad_returns, x86_bswap,
3873         x86_partial_flag_reg_stall): Remove.
3874         (enum ix86_tune_indices): New.
3875         (ix86_tune_features): New.
3876         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
3877         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
3878         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
3879         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
3880         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
3881         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
3882         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
3883         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
3884         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
3885         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
3886         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
3887         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
3888         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
3889         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
3890         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
3891         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
3892         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
3893         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
3894         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
3895         TARGET_EXT_80387_CONSTANTS): Use it.
3896         (enum ix86_arch_indices): New.
3897         (ix86_arch_features): New.
3898         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
3899         TARGET_BSWAP): Use it.
3900         (ix86_tune_mask, ix86_arch_mask): Remove.
3901
3902 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
3903
3904         PR bootstrap/31020
3905         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
3906         Define using $${sysroot_headers_suffix}.
3907         * configure: Regenerate.
3908         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
3909         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
3910         defined.
3911         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
3912         * gcc.c (print_sysroot_headers_suffix): New.
3913         (option_map): Include --print-sysroot-headers-suffix.
3914         (display_help): Mention -print-sysroot-headers-suffix.
3915         (process_command): Handle -print-sysroot-headers-suffix.
3916         (do_spec_1): Append multilib directory to include-fixed path if
3917         sysroot suffixes in use.
3918         (main): Handle -print-sysroot-headers-suffix.
3919         * Makefile.in (start.encap): Don't depend on xlimits.h
3920         (xlimits.h): Remove.
3921         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
3922         limits.h for each multilib in fixinc_list.
3923         (fixinc_list, s-fixinc_list): New.
3924         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
3925         generate them for each multilib in fixinc_list.
3926         (stmp-fixproto): Use include-fixed.  Run fixproto for each
3927         multilib in fixinc_list.
3928         (mostlyclean): Don't remove xlimits.h.
3929         (clean): Remove include-fixed.
3930         (real-install-headers-tar, real-install-headers-cpio,
3931         real-install-headers-cp): Don't copy include, only include-fixed.
3932         (install-mkheaders): Depend on fixinc_list.  Don't depend on
3933         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
3934         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
3935         SYSTEM_HEADER_DIR setting in mkheaders.conf.
3936
3937 2007-03-06  Jan Hubicka  <jh@suse.cz>
3938
3939         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
3940         NANs easilly.
3941
3942 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3943
3944         * configure.ac: Allow tm_file to contain build-directory files.
3945         * configure: Regenerate.
3946         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
3947         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
3948         * config/m68k/print-sysroot-suffix.sh: New file.
3949
3950 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3951
3952         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
3953         of pic_offset_table_rtx if reload_completed.
3954         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
3955         PIC_OFFSET_TABLE_REGNUM.
3956         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
3957         return true.
3958         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
3959         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
3960
3961 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3962
3963         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
3964         functions that call eh_return.
3965
3966 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3967
3968         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
3969         functions that need a constant pool.
3970
3971 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3972
3973         PR target/28181
3974         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
3975         (m68k_preferred_reload_class): Likewise.
3976         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
3977         (SECONDARY_RELOAD_CLASS): Define.
3978         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
3979         (LIMIT_RELOAD_CLASS): Delete.
3980         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
3981         registers from storing bytes.
3982         (m68k_secondary_reload_class): New function.
3983         (m68k_preferred_reload_class): Likewise.
3984
3985 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3986
3987         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
3988         leaf functions.
3989         (m68k_expand_prologue): Likewise.
3990
3991 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3992
3993         * config/m68k/m68k-protos.h (output_sibcall): Declare.
3994         (mips_expand_epilogue): Add a bool parameter.
3995         (m68k_legitimize_sibcall_address): Declare.
3996         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
3997         (m68k_expand_epilogue): Add a parameter to select between sibling
3998         and normal epilogues.  Only generate a return for the latter.
3999         (m68k_ok_for_sibcall_p): New function.
4000         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
4001         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
4002         (sibcall_value, *sibcall_value): Likewise.
4003         (*call, *call_value): Require !SIBLING_CALL_P.
4004         (epilogue): Update call to m68k_expand_epilogue.
4005         (sibcall_epilogue): New pattern.
4006         * config/m68k/predicates.md (const_call_operand): Say that this
4007         predicate applies to sibling calls too.
4008         (sibcall_operand): New predicate.
4009
4010 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
4011
4012         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
4013         alternatives as movsi_cf.
4014         (movsf_cf_hard): Add commentary.
4015
4016 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
4017             Richard Sandiford  <richard@codesourcery.com>
4018
4019         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
4020         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
4021         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
4022         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
4023         as being live on exit from an interrupt function.
4024         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
4025         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
4026         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
4027         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
4028         (m68k_interrupt_function_p): Globalize.
4029         (m68k_compute_frame_layout): Remove reverse mask code.
4030         (m68k_emit_movem, m68k_set_frame_related): New functions.
4031         (m68k_output_function_prologue): Delete in favor of...
4032         (m68k_expand_prologue): ...this new function.
4033         (m68k_output_function_epilogue): Delete in favor of...
4034         (m68k_expand_epilogue): ...this new function.
4035         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
4036         functions.
4037         (print_operand): Handle %?.
4038         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
4039         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
4040         (prologue, epilogue): New patterns.
4041         (return): Turn into a define_expand.
4042         (*return): New pattern, derived from old "return" pattern.  Use rte
4043         rather than rts for interrupt functions.  Only use rtd if the pop
4044         count is nonzero.
4045         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
4046         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
4047         (link, *link, unlink, *unlink, load_got): Likewise.
4048
4049 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
4050
4051         PR target/23482
4052         PR target/17114
4053         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
4054         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
4055         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
4056         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
4057         and m68k_matches_u_p.
4058         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
4059         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
4060         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
4061         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
4062         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
4063         (REG_STRICT_P): New macro.
4064         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
4065         PCREL_GENERAL_OPERAND_OK.
4066         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
4067         m68k_legitimate_base_reg_p.
4068         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
4069         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
4070         (PIC_CASE_VECTOR_ADDRESS): Update comment.
4071         * config/m68k/m68k.c (m68k_address): New structure.
4072         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
4073         (m68k_decompose_index, m68k_legitimate_constant_address_p)
4074         (m68k_jump_table_ref_p, m68k_decompose_address)
4075         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
4076         (m68k_matches_u_p): New functions.
4077         (print_operand_address): Rewrite to use m68k_decompose_index.
4078
4079 2007-03-05  David Taylor  <dtaylor@emc.com>
4080
4081         * gcc.c: Correct copyright date in --version output.
4082
4083 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4084
4085         * pa.md: In unamed move patterns, disparge copies between general
4086         and floating point registers using '?' modifier.  Don't include 'f'
4087         constraint for register preferences in DImode, SImode, HImode and
4088         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
4089         Remove constraints for copies between general and floating registers
4090         in soft-float DFmode pattern.
4091         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
4092         floating register.
4093         (movsf): Likewise.
4094
4095 2007-03-05  Mike Stump  <mrs@apple.com>
4096
4097         * c-common.c (targetcm): Add.
4098         * c-opts.c (c_common_handle_option): Handle language specific
4099         target options.
4100         * opts.c (handle_option): Verify language for target options, if
4101         any are given.
4102         * opth-gen.awk: Add CL_LANG_ALL.
4103         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
4104         (TARGETCM_INITIALIZER): Add.
4105         * target.h (struct gcc_targetcm): Add.
4106         (targetcm): Add.
4107         * targhooks.c (default_handle_c_option): Add.
4108         * targhooks.h (default_handle_c_option): Add.
4109         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
4110
4111         * config/darwin.opt (iframework): Add.
4112         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
4113         * config/darwin-c.c (handle_c_option): Add.
4114         (TARGET_HANDLE_C_OPTION): Add.
4115         (targetcm): Add.
4116         * doc/invoke.texi (Darwin Options): Add -iframework.
4117
4118 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4119
4120         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
4121         conversion.
4122
4123 2007-03-05  Ian Lance Taylor  <iant@google.com>
4124
4125         * c.opt (fgnu89-inline): New option.
4126         * c-opts.c (c_common_post_options): Set default value for
4127         flag_gnu89_inline.
4128         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
4129         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
4130         inline functions.
4131         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
4132         (grokdeclarator, start_function): Likewise.
4133         * c-cppbuiltin.c (c_cpp_builtins): Define either
4134         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
4135         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
4136         (C Dialect Options): Document -fgnu89-inline.
4137         * doc/extend.texi (Function Attributes): Explain what the
4138         gnu_inline attribute does.
4139         * doc/cpp.texi (Common Predefined Macros): Document
4140         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
4141
4142 2007-03-05  Ian Lance Taylor  <iant@google.com>
4143
4144         PR tree-optimization/31034
4145         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
4146         half-range if the other side is an overflow infinity.
4147
4148 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4149
4150         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
4151         (bfin*-linux-uclibc*): New configuration.
4152         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
4153         defining.
4154         * config/bfin/linux.h: New file.
4155         * config/bfin/libgcc-bfin.ver: New file.
4156         * config/bfin/t-bfin-uclinux: New file.
4157         * config/bfin/t-bfin-linux: New file.
4158         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
4159         (TARGET_OS_CPP_BUILTINS): New macro.
4160
4161 2007-03-05  Richard Guenther  <rguenther@suse.de>
4162
4163         * fold-const.c (fold_binary): Remove duplicate folding
4164         of comparison of non-null ADDR_EXPR against null.
4165
4166 2007-03-05  Richard Guenther  <rguenther@suse.de>
4167             Dorit Nuzman  <dorit@il.ibm.com>
4168
4169         PR tree-optimization/26420
4170         * tree-vectorizer.c (vectorize_loops): Bail out early if there
4171         are no loops in the function.  Only print the number of
4172         vectorized loops if it is greater than zero or we are supposed
4173         to print information about unvectorized loops.
4174
4175 2007-03-05  Revital Eres  <eres@il.ibm.com>
4176
4177         * gcc.dg/var-expand1.c: New test.
4178         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
4179         when an accumulator is expanded.
4180
4181 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4182
4183         PR other/30465
4184         * c-common.c (convert_and_check): Don't give warnings for
4185         conversion if 'expr' already overflowed.
4186
4187 2007-03-04  Roger Sayle  <roger@eyesopen.com>
4188
4189         PR middle-end/30744
4190         * fold-const.c (fold_comparison): Enforce type consistency when
4191         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
4192
4193 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
4194
4195         * tree-ssa-address.c (create_mem_ref): Do not put an expression
4196         containing a cast to the base of TARGET_MEM_REF.
4197
4198 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
4199
4200         * tree.c (tree_contains_struct_check_failed): Remove spurious
4201         whitespace from error message.
4202
4203 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
4204
4205         PR target/30406
4206         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
4207         instead of precision.
4208
4209 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
4210             Nathan Sidwell  <nathan@codesourcery.com>
4211
4212         * emit-rtl.c (find_auto_inc): New.
4213         (try_split): recreate REG_INC notes,
4214         Use regular for loops rather than whiles.
4215
4216 2007-03-03  Andreas Schwab  <schwab@suse.de>
4217
4218         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
4219         * configure: Regenerate.
4220
4221 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4222
4223         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
4224         flag_rounding_math, not flag_unsafe_math_optimizations.
4225
4226         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
4227         fold_build2.
4228         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
4229         alpha_fold_vector_minmax): Likewise.
4230         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4231         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4232
4233 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
4234
4235         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
4236         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
4237         if the lhs has side-effects.
4238         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
4239
4240 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
4241
4242         * config/i386/i386.h (TUNEMASK): Remove define.
4243         (ARCHMASK): Remove define.
4244         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
4245          Use ix86_arch_mask variable instead of ARCHMASK.
4246         * config/i386/i386.c (override_options): Ditto.
4247         (standard_80387_constant_p): Ditto.
4248
4249 2007-03-02  Ian Lance Taylor  <iant@google.com>
4250
4251         Used signed infinities in VRP.
4252         * tree-vrp.c (uses_overflow_infinity): New static function.
4253         (supports_overflow_infinity): New static function.
4254         (make_overflow_infinity): New static function.
4255         (negative_overflow_infinity): New static function.
4256         (positive_overflow_infinity): New static function.
4257         (is_negative_overflow_infinity): New static function.
4258         (is_positive_overflow_infinity): New static function.
4259         (is_overflow_infinity): New static function.
4260         (overflow_infinity_range_p): New static function.
4261         (compare_values_warnv): New function split out of compare_values.
4262         (compare_value): Call it.
4263         (set_value_range_to_nonnegative): Add overflow_infinity
4264         parameter.  Change caller.
4265         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
4266         Change callers.
4267         (vrp_expr_computes_nonzero): Likewise.
4268         (compare_ranges, compare_range_with_value): Likewise.
4269         (compare_name_with_value, compare_names): Likewise.
4270         (vrp_evaluate_conditional): Likewise.
4271         (set_value_range): Handle infinity
4272         (vrp_operand_equal_p, operand_less_p): Likewise.
4273         (extract_range_from_assert): Likewise.
4274         (vrp_int_const_binop): Likewise.
4275         (extract_range_from_binary_expr): Likewise.
4276         (extract_range_from_unary_expr): Likewise.
4277         (extract_range_from_comparison): Likewise.
4278         (extract_range_from_expr): Likewise.
4279         (dump_value_range): Likewise.
4280         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
4281         (test_for_singularity): Likewise.
4282         (vrp_int_const_binop): Remove inline qualifier.
4283         (adjust_range_with_scev): Add comment.
4284         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
4285
4286 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
4287
4288         * tree-ssa-structalias.c (could_have_pointers): Tidy.
4289         (get_constraint_for): Likewise.
4290         (do_structure_copy): Likewise.
4291         (find_func_aliases): Fix references to MODIFY_EXPR.
4292         (intra_create_variable_infos): Tidy.
4293         * tree-ssa-operands.c (add_virtual_operand): Add argument
4294         IS_CALL_SITE.
4295         When adding members of alias sets, if IS_CALL_SITE is true and
4296         the symbol is not call-clobbered, skip it.
4297         Adjust all callers.
4298
4299 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
4300
4301         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
4302         entry by means of emit_insn_at_entry.
4303
4304 2007-03-02  Richard Henderson  <rth@redhat.com>
4305
4306         * expr.h (promoted_input_arg): Remove decl.
4307         * function.c (promoted_input_arg): Merge into ...
4308         * combine.c (setup_incoming_promotions): ... only caller.
4309         Rearrange to avoid double loop.
4310
4311 2007-03-02  Ben Elliston  <bje@au.ibm.com>
4312             Peter Bergner  <bergner@vnet.ibm.com>
4313             Janis Johnson  <janis187@us.ibm.com>
4314
4315         * config/rs6000/dfp.md: New file.
4316         * config/rs6000/rs6000.md: Include dfp.md.
4317         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
4318         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
4319         and TDmode decimal float modes in FP registers.
4320         (num_insns_constant): Likewise.
4321         (rs6000_legitimate_offset_address_p): Likewise.
4322         (rs6000_legitimize_address): Likewise.
4323         (rs6000_legitimize_reload_address): Likewise.
4324         (rs6000_legitimate_address): Likewise.
4325         (rs6000_emit_move): Likewise.
4326         (function_arg_boundary): Likewise.
4327         (function_arg_advance): Likewise.
4328         (rs6000_darwin64_record_arg_recurse): Likewise.
4329         (function_arg): Likewise.
4330         (rs6000_gimplify_va_arg): Likewise.
4331         (rs6000_split_multireg_move): Likewise.
4332         (rs6000_output_function_epilogue): Likewise.
4333         (rs6000_output_function_epilogue): Likewise.
4334         (rs6000_register_move_cost): Likewise.
4335         (rs6000_function_value): Likewise.
4336         (rs6000_libcall_value): Likewise.
4337
4338 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
4339
4340         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
4341
4342 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
4343
4344         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
4345         Use $MULTIDIR to choose between the kernel and RTP headers,
4346         and use $WIND_BASE and $WIND_USR to locate them.
4347
4348 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
4349
4350         * config/i386/i386.c (override_options): Put initialization of
4351         ix86_tune_mask and ix86_arch_mask to the correct place.
4352
4353 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
4354             Michael Meissner  <michael.meissner@amd.com>
4355
4356         PR target/31019
4357         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
4358         (ARCHMASK): Define.
4359         (TARGET_CMOVE): Use ARCHMASK.
4360         (TARGET_CMPXCHG): Ditto.
4361         (TARGET_CMPXCHG8B): Ditto.
4362         (TARGET_XADD): Ditto.
4363         (TARGET_BSWAP): Ditto.
4364         * config/i386/i386.c (ix86_tune_mask): New global variable.
4365         (ix86_arch_mask): Ditto.
4366         (override_options): Initialize ix86_tune_mask and
4367         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
4368         target_flags.
4369
4370 2007-03-02  Ben Elliston  <bje@au.ibm.com>
4371
4372         PR 30992
4373         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
4374
4375 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
4376
4377         * target.h (init_dwarf_reg_sizes_extra): New target hook.
4378         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
4379         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
4380         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
4381         hook.
4382         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
4383         rs6000_init_dwarf_reg_sizes_extra): New.
4384         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
4385         SPE register high parts.
4386
4387 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
4388
4389         * Makefile.in: Add install-pdf target as
4390         copied from automake v1.10 rules.
4391         * configure.ac: Add install-pdf to target list.
4392         * configure: Regenerate.
4393
4394 2007-03-01  Paul Brook  <paul@codesourcery.com>
4395
4396         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
4397         modes to LDRD for DImode.
4398         (output_move_double): Fixup out of range ldrd/strd.
4399         (vfp_secondary_reload_class): Rename...
4400         (coproc_secondary_reload_class): ... to this.  Add wb argument.
4401         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
4402         coproc_secondary_reload_class for CLASS_IWMMXT.
4403         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
4404         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
4405
4406 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
4407
4408         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
4409         factor by the estimated number of iterations.
4410         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
4411         prefetch latency.
4412
4413         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
4414         decode_caches_intel, detect_caches_intel): New functions.
4415         (host_detect_local_cpu): Use detect_caches_amd and
4416         detect_caches_intel.
4417
4418 2007-03-01  Richard Henderson  <rth@redhat.com>
4419
4420         * expr.c (emit_move_complex_push): Export.
4421         (emit_move_complex_parts): Split out from ...
4422         (emit_move_complex): ... here.
4423         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
4424         * config/i386/i386.md (movcdi): New.
4425
4426 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
4427
4428         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
4429         size of mode1 to check for tieable modes in MMX case.
4430
4431 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
4432
4433         * Makefile.in (rtlanal.o): Depend on tree.h.
4434         * rtl.h (offset_within_section_p, split_const): Declare.
4435         * rtlanal.c: Include tree.h.
4436         (offset_within_block_p): New function, taken from
4437         mips_offset_within_object_p.
4438         (split_const): New function, taken from mips_split_const.
4439         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
4440         Declare.
4441         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
4442         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
4443         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
4444         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4445         (m68k_illegitimate_symbolic_constant_p): New function.
4446         * config/m68k/m68k.md (movsi): Remove misleading predicates.
4447         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
4448         symbolic constant that might be outside the symbol's section,
4449         move the symbol first and then add the offset.
4450         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
4451         Override.
4452         * config/mips/mips.c (mips_split_const): Delete.
4453         (mips_offset_within_object_p): Delete.
4454         (mips_symbolic_constant_p): Use offset_within_section_p and
4455         split_const instead of mips_offset_within_object_p and
4456         mips_split_const.
4457         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
4458         (mips_legitimize_const_move, print_operand_reloc)
4459         (mips_dangerous_for_la25_p): Use split_const instead of
4460         mips_split_const.
4461
4462 2007-02-28  Eric Christopher  <echristo@apple.com>
4463
4464         * Makefile.in (install-include-dir): Don't rm -rf include.
4465
4466 2007-02-28  Richard Guenther  <rguenther@suse.de>
4467
4468         PR middle-end/30364
4469         * fold-const.c (fold_binary): Do not associate expressions
4470         with more than one variable for integer types that do not wrap.
4471
4472 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
4473
4474         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
4475         Delete, and replace with...
4476         (fold_builtin_call_array): This.  Update callers to use it.
4477         * fold-const.c (fold_build_call_list): Delete, and replace with...
4478         (fold_build_call_array): This.
4479         (fold_build_call_list_initializer): Delete, and replace with...
4480         (fold_build_call_array_initializer): This.
4481         * tree.h: Update declarations to reflect above changes.
4482
4483         * c-typeck.c (build_function_call): Store converted arguments
4484         in a stack-allocated array instead of building a list.
4485         (convert_arguments): Store arguments in the array passed in as an
4486         argument, and return the actual number of arguments.
4487         * c-format.c: (check_function_format): Pass arguments in an
4488         array instead of a list.
4489         * c-common.c (check_function_nonnull): Likewise.
4490         (check_function_sentinel): Likewise.
4491         (check_function_arguments): Likewise.
4492         * c-common.h: Update declarations to reflect above changes.
4493
4494 2007-02-28  Jan Hubicka  <jh@suse.cz>
4495
4496         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
4497         PRED_NEGATIVE_RETURN): Update outcomes.
4498
4499 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
4500
4501         * calls.c (emit_library_call_value_1): Handle partial registers
4502         correctly when building up CALL_INSN_FUNCTION_USAGE.
4503
4504 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4505
4506         * pa/predicates.md (move_src_operand): Allow zero for mode.
4507         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
4508         move pattern.
4509
4510 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
4511
4512         PR target/30970
4513         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
4514         *movv2df_internal): Enable pattern only for valid operand
4515         combinations.
4516         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
4517         tie only 128bit modes. For MMX registers, tie only 64bit modes.
4518
4519 2007-02-27  Mike Stump  <mrs@apple.com>
4520
4521         * config/darwin-crt3.c: Avoid compilation when compiling for a
4522         kext multilib.
4523
4524 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
4525
4526         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
4527         FIXED_INCLUDE_DIR.
4528         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
4529         for fixed headers and limits.h.
4530         (install-include-dir, install-headers-tar, install-headers-cpio,
4531         install-headers-cp, real-install-headers-tar,
4532         real-install-headers-cpio, real-install-headers-cp): Handle
4533         include-fixed as well as include.
4534         (install-mkheaders): Don't install files that go only in include
4535         not include-fixed.
4536         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
4537         from GCC_INCLUDE_DIR.
4538         * gcc.c (process_command): Remove special -BstageN/ handling.
4539         (do_spec_1): Add include-fixed directories.
4540
4541 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4542
4543         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
4544         _smulsi3_highpart.
4545         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
4546         New functions.
4547         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
4548         patterns.
4549
4550 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
4551
4552         * c-common.c (get_priority): Add check for
4553         SUPPORTS_INIT_PRIORITY.
4554
4555 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4556
4557         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
4558
4559         * config/bfin/bfin.c: Include "cfglayout.h".
4560         (MAX_LSETUP_DISTANCE): New macro.
4561         (struct loop_info): New members incoming, incoming_src and
4562         incoming_dest.  Delete member predecessor.
4563         (length_for_loop): New function.
4564         (bfin_optimize_loop): Handle more different loop structures.
4565         (bfin_discover_loop): Rework detection of predecessor blocks by
4566         examining incoming edges.
4567         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
4568         bfin_reorg_loops.
4569         (bfin_reorder_loops): New function.
4570         (bfin_reorg_loops): Use these three new functions.
4571
4572         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
4573         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
4574         (CONSTRAINT_LEN): Add entry for 'q'.
4575         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
4576         Add 'q' constraints.
4577         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
4578         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
4579
4580         * config/bfin/bfin.md (add_with_carry): New pattern.
4581         (s_or_u, su_optab, su_modifier): New code macros/attrs.
4582         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
4583         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
4584         support unsigned multiplies too.  Removed incorrect commutativity from
4585         operand 1 constraint where appropriate.
4586         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
4587         patterns.
4588         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
4589         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
4590         New patterns.
4591         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
4592         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
4593         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
4594         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
4595         usmulhisi_hh_huh): New patterns.
4596
4597         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
4598         lshifthi3): Fix output template to use half reg for operand 2.
4599
4600         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
4601         instead of R2.
4602
4603         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
4604
4605 2007-02-27  Andreas Schwab  <schwab@suse.de>
4606
4607         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
4608
4609 2007-02-27  Jan Hubicka  <jh@suse.cz>
4610
4611         * predict.c (last_basic_block_p): Remove.
4612         (tree_estimate_probability): Update return heuristic for commonized
4613         return blocks.
4614
4615 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
4616
4617         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
4618
4619 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
4620
4621         * doc/include/gcc-common.texi (versionsubtitle): New macro.
4622         * doc/cpp.texi: Standardize title page.
4623         * doc/cppinternals.texi: Likewise.
4624         * doc/gcc.texi: Standardize title page, remove version number
4625         from copyright page.
4626         * doc/gccint.texi: Likewise.
4627         * doc/install.texi: Standardize title page, add table of
4628         contents.
4629
4630 2007-02-26  Jan Hubicka  <jh@suse.cz>
4631
4632         * predict.def: Set outcomes according to more recent results.
4633         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
4634         Remove dead predictors.
4635         * predict.c (return_prediction): Fix pasto.
4636
4637 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4638
4639         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
4640         change; avoid a memory leak when returning early.
4641
4642 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
4643
4644         * c-decl.c (static_ctors): Move to c-common.c.
4645         (static_dtors): Likewise.
4646         (finish_function): Use c_record_cdtor_fn.
4647         (build_cdtor): Move to c-common.c.
4648         (c_write_global_declarations): Use c_build_cdtor_fns.
4649         * c-common.h (static_ctors): Declare.
4650         (static_dtors): Likewise.
4651         (c_record_cdtor_fn): Likewise.
4652         (c_build_cdtor_fns): Likewise.
4653         * c-common.c (static_ctors): New variable.
4654         (static_dtors): Likewise.
4655         (c_record_cdtor_fn): New function.
4656         (build_cdtor): Move from c-decl.c
4657         (c_build_cdtor_fns): New function.
4658
4659         * output.h (assemble_addr_to_section): Declare.
4660         (get_cdtor_priority_section): Likewise.
4661         * varasm.c (assemble_addr_to_section): New function.
4662         (get_cdtor_priority_section): Likewise.
4663         (default_named_section_asm_out_destructor): Use them.
4664         (destor_dtor_section_asm_out_destructor): Likewise.
4665         (default_named_section_asm_out_constructor): Likewise.
4666         (default_ctor_section_asm_out_constructor): Likewise.
4667         * config.gcc (*-*-vxworks*): Include vxworks.o.
4668         * config/t-vxworks (vxworks.o): New target.
4669         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
4670         (TARGET_ASM_CONSTRUCTOR): Define.
4671         (TARGET_ASM_DESTRUCTOR): Likewise.
4672         (vxworks_asm_out_constructor): Declare.
4673         (vxworks_asm_out_destructor): Likewise.
4674
4675         * c-common.c (get_priority): Check that we have not just an
4676         INTEGER_CST, but an integer constant with integeral type.
4677
4678 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
4679
4680         PR tree-optimization/30938
4681         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
4682         use &dt[nargs-1] instead of &dt[nargs] in the call to
4683         vect_is_simple_use().
4684
4685 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
4686
4687         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
4688         from register elimination as PRE_MODIFY / POST_MODIFY increments.
4689         Do not attempt to handle MEM inside auto-inc expressions.
4690         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
4691         of a register modified by an auto-inc expression.  However, do handle
4692         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
4693         (elimination_effects): Prohibit elimination of a register modified
4694         by an auto-inc expression.  Disable register elimination rules whose
4695         target register is modified by an auto-inc expression with variable
4696         increment.
4697
4698 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
4699
4700         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
4701         off-by-one error.
4702         (array_at_struct_end_p): New function.
4703         (idx_infer_loop_bounds): Use it.
4704         (estimate_numbers_of_iterations_loop): Export.
4705         * predict.c (predict_loops): Use estimated_loop_iterations_int.
4706         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
4707         (tree_estimate_probability): Call record_loop_exits.
4708         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
4709         (estimated_loop_iterations, estimated_loop_iterations_int,
4710         estimated_loop_iterations_tree): New functions.
4711         (analyze_siv_subscript_cst_affine,
4712         compute_overlap_steps_for_affine_1_2,
4713         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
4714         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
4715         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
4716         (PRED_LOOP_ITERATIONS_GUESSED): New.
4717         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
4718         * cfgloop.h (estimate_numbers_of_iterations_loop,
4719         estimated_loop_iterations_int): Declare.
4720
4721 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
4722
4723         * doc/extend.texi: Document optional priority argument to
4724         constructors and destructors.
4725         * tree.c (init_priority_for_decl): Adjust GTY markers.
4726         (init_ttree): Use priority-info hash functions for
4727         init_priority_for_decl.
4728         (tree_map_eq): Rename to ...
4729         (tree_map_base_eq): ... this.
4730         (tree_map_marked_p): Rename to ...
4731         (tree_map_base_marked_p): ... this.
4732         (tree_map_base_hash): New function.
4733         (decl_init_priority_lookup): Rework.
4734         (decl_fini_priority_lookup): New function.
4735         (decl_priority_info): New function.
4736         (decl_init_priority_insert): Use it.
4737         (decl_fini_priority_insert): Likewise.
4738         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
4739         hierarchy.
4740         (decl_restrict_base_insert): Likewise.
4741         (decl_debug_expr_insert): Likewise.
4742         (decl_value_expr_lookup): Likewise.
4743         (decl_value_expr_insert): Likewise.
4744         * tree.h (priority_type): New type.
4745         (decl_init_priority_lookup): Use priority_type.
4746         (decl_fini_priority_lookup): New function.
4747         (decl_init_priority_insert): Use priority_type.
4748         (decl_fini_priority_insert): New function.
4749         (DECL_HAS_INIT_PRIORITY): Tweak comments.
4750         (DECL_INIT_PRIORITY): Likewise.
4751         (SET_DECL_INIT_PRIORITY): Add comment.
4752         (DECL_FINI_PRIORITY): New macro.
4753         (SET_DECL_FINI_PRIORITY): Likewise.
4754         (DEFAULT_INIT_PRIORITY): Document.
4755         (MAX_INIT_PRIORITY): Likewise.
4756         (MAX_RESERVED_INIT_PRIORITY): Likewise.
4757         (tree_map_base): New type.
4758         (tree_map_base_eq): New function.
4759         (tree_map_base_hash): Likewise.
4760         (tree_map_base_marked_p): Likewise.
4761         (tree_map): Inherit from tree_map_base.
4762         (tree_map_eq): Make it a macro.
4763         (tree_map_marked_p): Likewise.
4764         (tree_int_map): Inherit from tree_map_base.
4765         (tree_int_map_eq): Make it a macro.
4766         (tree_int_map_hash): Likewise.
4767         (tree_int_map_marked_p): Likewise.
4768         (tree_priority_map): New type.
4769         (tree_priority_map_eq): New macro.
4770         (tree_priority_map_hash): Likewise.
4771         (tree_priority_map_marked_p): Likewise.
4772         * varasm.c (emults_decl): Adjust for refactoring of tree_map
4773         hierarchy.
4774         (emutls_common_1): Likewise.
4775         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4776         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
4777         of tree_map hierarchy.
4778         * tree-cfg.c (move_stmt_r): Likewise.
4779         (new_label_mapper): Likewise.
4780         * c-tree.h (c_expand_body): Move to ...
4781         * c-common.h (c_expand_body): ... here.
4782         * c-decl.c (c_expand_body): Move to ...
4783         * c-common.c (c_expand_body): ... here.
4784         (c_common_attribute_table): Allow 1 argument for the constructor
4785         and destructor attributes.
4786         (get_priority): New function.
4787         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
4788         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
4789
4790 2007-02-24  Jan Hubicka  <jh@suse.cz>
4791
4792         PR middle-end/30509
4793         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
4794
4795 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
4796             Jan Hubicka  <jh@suse.cz>
4797
4798         PR target/30778
4799         * i386.c (counter_mode): New function.
4800         (expand_set_or_movmem_via_loop): Use it.
4801         (expand_movmem_epilogue): Likewise; fix pasto.
4802         (ix86_expand_movmem): Do emit guard even for constant counts.
4803         (ix86_expand_setmem): Likewise.
4804
4805 2007-02-25  Nick Clifton  <nickc@redhat.com>
4806
4807         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
4808         (JUMP_TABLES_IN_TEXT_SECTION): Define.
4809
4810 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
4811
4812         PR target/30770
4813         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
4814         count argument with 0x10, not with 0x16.
4815         (expand_setmem_epilogue): Ditto.
4816
4817 2007-02-24  Mike Stump  <mrs@apple.com>
4818
4819         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
4820         symbols.
4821
4822 2007-02-24  Richard Guenther  <rguenther@suse.de>
4823
4824         PR middle-end/30951
4825         * fold-const.c (fold_binary): Fold x +- CST op x for
4826         EQ_EXPR and NE_EXPR.
4827
4828 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4829
4830         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
4831
4832 2007-02-24  Jan Hubicka  <jh@suse.cz>
4833
4834         * cgraphunit.c (decide_is_function_needed): Honor
4835         -fkeep-inline-functions.
4836
4837 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4838
4839         * builtins.c (fold_builtin_modf): New.
4840         (fold_builtin_2): Use it.
4841
4842 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
4843
4844         * loop-iv.c (implies_p): Detect additional cases where A implies B.
4845         (determine_max_iter): Take additional LOOP arg; all callers changed.
4846         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
4847         one using simplifications.
4848         (simplify_using_initial_values): Return if the expression becomes
4849         invalid due to altered regs.
4850
4851 2007-02-23  DJ Delorie  <dj@redhat.com>
4852
4853         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
4854
4855 2007-02-23  Mike Stump  <mrs@apple.com>
4856
4857         * tlink.c (scan_linker_output): Parse linker messages from
4858         darwin9's linker better.
4859
4860 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
4861
4862         PR debug/29614
4863         * varpool.c (varpool_assemble_pending_decls):  Set
4864         varpool_last_needed_node to null.
4865
4866 2007-02-23  DJ Delorie  <dj@redhat.com>
4867
4868         * config/i386/i386.c (ix86_data_alignment): Don't specify an
4869         alignment bigger than the object file can handle.
4870
4871 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
4872
4873         PR target/30825
4874         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
4875         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
4876         (*movsf_1): Penalize MMX moves.
4877
4878 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
4879
4880         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
4881         2^32-1 or more times unless flag_unsafe_loop_optimizations.
4882
4883         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
4884
4885 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4886
4887         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
4888         (fold_builtin_1): Use them.
4889         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
4890         BUILT_IN_SIGNIFICAND.
4891
4892 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
4893
4894         * config/i386/i386.c (bdesc_1arg): Initialize
4895         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
4896         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
4897         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
4898         and IX86_BUILTIN_MOVSLDUP.
4899
4900 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
4901
4902         PR rtl-optimization/30841
4903         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
4904
4905 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4906
4907         * builtins.c (fold_builtin_frexp): New.
4908         (fold_builtin_2): Use it.
4909
4910 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
4911
4912         * doc/invoke.texi (Spec Files): Document getenv spec function.
4913
4914         * gcc.c (getenv_spec_function): New function.
4915         (static_spec_functions): Add it.
4916         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
4917         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
4918         header files.
4919
4920 2007-02-22  Michael Matz  <matz@suse.de
4921
4922         PR c++/29433
4923         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
4924         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
4925
4926 2007-02-22  Ian Lance Taylor  <iant@google.com>
4927
4928         PR debug/30898
4929         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
4930         (mem_loc_descriptor): Call it.
4931
4932 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
4933             Ira Rosen  <irar@il.ibm.com>
4934
4935         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
4936
4937 2007-02-22  Ira Rosen  <irar@il.ibm.com>
4938
4939         PR tree-optimization/30843
4940         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
4941         stores only after all the group is vectorized.
4942
4943 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
4944
4945         PR tree-optimization/30858
4946         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
4947         in the reduction cycle have a single use in the loop.
4948         * tree-vectorizer.h (relevant): Add documentation.
4949
4950 2007-02-20  Mike Stump  <mrs@apple.com>
4951
4952         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
4953         * configure: Regenerate.
4954
4955 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4956
4957         Change the defaults of some parameters and options.
4958         * config/spu/spu-protos.h (spu_optimization_options): Declare.
4959         * config/spu/spu.c (spu_optimization_options): Add.
4960         (spu_override_options): Change params in spu_optimization_options.
4961         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
4962
4963         Register 127 is only 16 byte aligned when used as a frame pointer.
4964         * config/spu/spu-protos.h (spu_init_expanders): Declare.
4965         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
4966         HARD_FRAME_POINTER_REGNUM.
4967         (spu_legitimate_address):  Use regno_aligned_for_reload.
4968         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
4969         aligned when frame_pointer_needed is true.
4970         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
4971         to 8 bits.
4972         * config/spu/spu.h (INIT_EXPANDERS): Define.
4973
4974         Make sure shift and rotate instructions have valid immediate operands.
4975         * config/spu/predicates.md (spu_shift_operand): Remove.
4976         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
4977         * config/spu/constraints.md (W, O): Extend range.
4978         * config/spu/spu.md (umask, nmask): Define.
4979         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
4980         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
4981         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
4982         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
4983         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
4984         (lshr<mode>3_reg):  Fix rtl description.
4985
4986         Make sure mulhisi immediate operands are valid.
4987         * config/spu/predicates.md (imm_K_operand): Add.
4988         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
4989
4990         Generate constants using fsmbi and andi.
4991         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
4992         (print_operand, spu_split_immediate, classify_immediate,
4993         fsmbi_const_p): Handle IC_FSMBI2.
4994
4995         Correctly handle a CONST_VECTOR containing symbols.
4996         * config/spu/spu.c (print_operand): Handle HIGH correctly.
4997         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
4998         (immediate_load_p): Allow symbols that use 2 instructions to create.
4999         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
5000         with symbols when flag_pic is set.
5001         (const_vector_immediate_p): New.
5002         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
5003         accept a CONST_VECTOR with symbols.
5004         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
5005         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
5006         correctly.
5007         * config/spu/spu.md (high, low): Delete.
5008         (low_<mode>): Define.
5009
5010         Remove INTRmode and INTR_REGNUM, which didn't work.
5011         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
5012         of INTR_REGNUM.
5013         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
5014         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
5015         peephole2 pattern): Don't use INTR or 131.
5016         (movintrcc): Delete.
5017         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
5018         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
5019         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
5020         (UNSPEC_SET_INTR): Add.
5021         * config/spu/spu-modes.def (INTR): Remove.
5022
5023         More accurate warnings about run-time relocations.
5024         * config/spu/spu.c (reloc_diagnostic): Test in_section.
5025
5026         Correctly warn about immediate arguments to specific intrinsics.
5027         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
5028         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
5029         the instruction predicate.
5030
5031         Fix tree check errors with latest update.
5032         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
5033         CALL_EXPR_ARG.
5034         (spu_expand_builtin): Use CALL_EXPR_FN.
5035
5036         Add missing specific intrinsics.
5037         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
5038         si_bislede.
5039         * config/spu/spu_internals.h: Ditto.
5040
5041         Fix incorrect operand modifiers.
5042         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
5043         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
5044
5045         Optimize one case of zero_extend of a vec_select.
5046         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
5047
5048         Accept any immediate for hbr.
5049         * config/spu/spu.md (hbr):  Change s constraints to i.
5050
5051 2007-02-21  Paul Brook  <paul@codesourcery.com>
5052
5053         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
5054         condexec_count when skipping USE and CLOBBER.
5055
5056 2007-02-21  Nick Clifton  <nickc@redhat.com>
5057
5058         * common.opt (Warray-bounds): Add Warning attribute.
5059         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
5060         Likewise.
5061         (fsized-zeroes): Add Optimization attribute.
5062         (fsplit-wide-types, ftree-scev-cprop): Likewise.
5063         * c.opt (Wc++0x-compat): Add Warning attribute.
5064
5065 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
5066
5067         PR middle-end/30761
5068         * reload1.c (eliminate_regs_in_insn): In the single_set special
5069         case, attempt to re-recognize the insn before falling back to
5070         having reload fix it up.
5071
5072 2007-02-20  Eric Christopher  <echristo@gmail.com>
5073
5074         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
5075         Rewrite accordingly.
5076         (frv_read_iacc_argument): Ditto.
5077         (frv_expand_set_builtin): Take a call instead of arglist, update for
5078         above changes.
5079         (frv_expand_unop_builtin): Ditto.
5080         (frv_expand_binop_builtin): Ditto.
5081         (frv_expand_cut_builtin): Ditto.
5082         (frv_expand_binopimm_builtin): Ditto.
5083         (frv_expand_voidbinop_builtin): Ditto.
5084         (frv_expand_int_void2arg): Ditto.
5085         (frv_expand_prefetches): Ditto.
5086         (frv_expand_voidtriop_builtin): Ditto.
5087         (frv_expand_voidaccop_builtin): Ditto.
5088         (frv_expand_load_builtin): Ditto.
5089         (frv_expand_store_builtin): Ditto.
5090         (frv_expand_mdpackh_builtin): Ditto.
5091         (frv_expand_mclracc_builtin): Ditto.
5092         (frv_expand_mrdacc_builtin): Ditto.
5093         (frv_expand_mwtacc_builtin): Ditto.
5094         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
5095         calls for above.
5096
5097 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
5098
5099         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
5100         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
5101         cmpb instruction.
5102         (HAVE_GAS_DFP): Check for assembler support of decimal floating
5103         point instructions.
5104         * configure: Regenerate.
5105         * config.in: Regenerate.
5106         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
5107         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
5108         masks to power6 and power6x and to POWERPC_MASKS.
5109         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5110         _ARCH_PWR6.
5111         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
5112         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
5113         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5114         Access PROTOTYPE as variable, not mask.
5115
5116 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
5117
5118         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
5119         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
5120         * combine.c (adjust_for_new_dest): Use it.
5121         * postreload.c (reload_combine): Likewise.
5122
5123 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
5124
5125         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
5126         notes on an insn with multiple sets, even if single_set returns
5127         non-NULL for that insn.
5128
5129 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5130
5131         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
5132         scalbn and scalbln.
5133
5134 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
5135
5136         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
5137         if user didn't pass it.
5138         * config/i386/darwin.h (CC1_SPEC): Likewise.
5139         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
5140         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
5141         -mmacosx-version-min.
5142
5143 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5144             Uros Bizjak  <ubizjak@gmail.com>
5145
5146         * optabs.h (enum optab_index): Add new OTI_scalb.
5147         (scalb_optab): Define corresponding macro.
5148         * optabs.c (init_optabs): Initialize scalb_optab.
5149         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
5150         patterns.
5151         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
5152         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
5153         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
5154         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
5155         flag_unsafe_math_optimizations is set.
5156
5157         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
5158         to implement scalbf, scalb and scalbl built-ins as inline x87
5159         intrinsics.
5160
5161 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5162             DJ Delorie <dj@redhat.com>
5163
5164         PR other/30824
5165         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
5166         (diagnostic_report_diagnostic): ... here, and turn them into real
5167         errors. If warnings are inhibited, no need to do anything.
5168
5169 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
5170
5171         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
5172         better code generation.
5173
5174 2007-02-20  Ben Elliston  <bje@au.ibm.com>
5175
5176         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
5177
5178 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
5179
5180         * config/alpha/alpha.c, config/alpha/alpha.md,
5181         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
5182         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
5183         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
5184         config/arm/lib1funcs.asm: Follow spelling conventions.
5185
5186         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
5187         config/fr30/fr30.md, config/i386/i386.h,
5188         config/iq2000/iq2000.h, config/iq2000/predicates.md,
5189         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
5190         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
5191         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
5192         config/rs6000/altivec.md, config/rs6000/rs6000.c,
5193         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
5194         config/sparc/sparc.c, config/sparc/sparc.h,
5195         config/sparc/sparc.md, config/spu/constraints.md,
5196         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
5197         conventions.
5198
5199 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
5200
5201         PR target/29943
5202         * varasm.c (use_blocks_for_decl_p): Return false for decls with
5203         alias attribute.
5204
5205 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
5206
5207         * doc/invoke.texi (-ftree-lrs): Remove.
5208
5209 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
5210
5211         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
5212         NULL.
5213
5214 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
5215
5216         * config/ia64/ia64.c (ia64_expand_builtin): Use the
5217         new CALL_EXPR_FN macro for retrieving the function
5218         declaration of the input expression.
5219
5220 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5221
5222         * c.opt (Waddress): New.
5223         * common.opt (Walways-true): Delete.
5224         (Wstring-literal-comparison): Delete.
5225         * doc/invoke.texi (Warning Options): Delete -Walways-true and
5226         -Wstring-literal-comparison. Add -Waddress.
5227         (Waddress): New.
5228         (Walways-true): Delete.
5229         (Wstring-literal-comparison): Delete.
5230         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
5231         consistently instead of -Walways-true in example.
5232         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
5233         * c-typeck.c (parser_build_binary_op): Replace
5234         -Wstring-literal-comparison and -Walways-true with -Waddress.
5235         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
5236         with -Waddress.
5237
5238 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
5239
5240         * tree-cfg.c (dump_function_to_file): Be prepared for functions
5241         without DECL_STRUCT_FUNCTION initialized.
5242
5243 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
5244
5245         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
5246         due to calls to functions taking pointers as parameters.
5247
5248 2007-02-19  Richard Henderson  <rth@redhat.com>
5249
5250         PR debug/29558
5251         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
5252         in memory.
5253
5254 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5255
5256         * config/s390/s390.c (s390_call_saved_register_used,
5257         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
5258         accessed to the new scheme.
5259
5260 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5261
5262         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
5263         (cris_print_index, cris_print_operand, cris_print_operand_address)
5264         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
5265         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
5266         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
5267         GET_CODE () == xxx.
5268         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
5269         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
5270         GO_IF_LEGITIMATE_ADDRESS): Ditto.
5271         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
5272         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
5273         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
5274         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
5275         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
5276         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
5277         (uminsi3, call, call_value): Ditto.
5278         (define_split: indir_to_reg_split, unnamed): Ditto.
5279
5280 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
5281
5282         PR tree-optimization/30975
5283         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
5284         wrong assert.
5285
5286 2007-02-18  Eric Christopher  <echristo@gmail.com>
5287
5288         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
5289         Remove use of arglist.
5290         (mips_expand_builtin): Remove use of arglist, pass in expr.
5291         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
5292         (mips_expand_builtin_movtf): Ditto.
5293         (mips_expand_builtin_compare): Ditto.
5294
5295 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
5296
5297         * tree-sra.c (sra_build_assignment): Replace assertion
5298         checking with a comment explaining why it can't be done.
5299
5300 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
5301
5302         PR middle-end/30833
5303         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
5304         during CALL_EXPR representation conversion.
5305         * tree-ssa-propagate.c (set_rhs): Likewise.
5306
5307 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
5308
5309         * tree-sra.c (sra_build_assignment): Disable assertion checking
5310         for now.
5311
5312 2007-02-18  Roger Sayle  <roger@eyesopen.com>
5313
5314         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
5315         instead of calling build2 with a GIMPLE_MODIFY_STMT.
5316         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
5317         Likewise.
5318         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
5319         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
5320         gimplify_init_ctor_eval_range, gimple_push_cleanup,
5321         gimplify_omp_for, gimplify_omp_atomic_pipeline,
5322         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
5323         force_gimple_operand): Likewise.
5324         * ipa-cp.c (constant_val_insert): Likewise.
5325         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
5326         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
5327         perfect_nestify): Likewise.
5328         * langhooks.c (lhd_omp_assignment): Likewise.
5329         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
5330         lower_copyprivate_clauses, lower_send_clauses,
5331         lower_send_shared_vars, expand_parallel_call,
5332         expand_omp_for_generic, expand_omp_for_static_nochunk,
5333         expand_omp_for_static_chunk, expand_omp_sections,
5334         lower_omp_single_copy, lower_omp_for_lastprivate,
5335         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
5336         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
5337         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
5338         Likewise.
5339
5340 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
5341
5342         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
5343         config/sh/sh.md: Follow spelling conventions.
5344
5345         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
5346         config/frv/predicates.md: Follow spelling conventions.
5347
5348         * config/m68k/linux-unwind.h: Fix a comment typo.
5349         * target.h: Follow spelling conventions.
5350
5351 2007-02-18  Roger Sayle  <roger@eyesopen.com>
5352
5353         PR rtl-optimization/28173
5354         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
5355         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
5356         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
5357         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
5358         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
5359
5360 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5361
5362         * builtins.c (fold_builtin_load_exponent): New.
5363         (fold_builtin_2): Use it.
5364
5365 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
5366
5367         PR rtl-optimization/30773
5368         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
5369         if we fail to attach a REG_EQUIV note.
5370
5371 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
5372             Roger Sayle  <roger@eyesopen.com>
5373
5374         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
5375
5376 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
5377
5378         * calls.c (initialize_argument_information): Pass original EXP
5379         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
5380         code to split complex arguments here, as part of initializing the
5381         ARGS array.
5382         (expand_call): Remove code that builds a list of arguments and
5383         inserts implicit arguments into it.  Instead, just count how many
5384         implicit arguments there will be so we can determine the size of
5385         the ARGS array, and let initialize_argument_information do the work.
5386         (split_complex_values): Delete unused function.
5387
5388 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
5389
5390         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
5391
5392 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
5393
5394         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
5395         for arg pointer based indexed addressing.
5396
5397 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
5398
5399         * config/ia64/ia64.h, config/ia64/ia64.md,
5400         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
5401         spelling conventions.
5402
5403 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
5404
5405         * config/m68k/m68k.c (split_di): New.
5406         * config/m68k/m68k-protos.h: Declare split_di.
5407         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
5408           Improve predicate handling and split constant shifts.
5409
5410 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
5411
5412         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
5413         parameter for register bitfield operations, general predicates
5414         cleanup
5415
5416 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
5417
5418         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
5419         * config/m68k/linux-unwind.h: New file.
5420
5421 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
5422
5423         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
5424         config/i386/athlon.md, config/ia64/ia64.md,
5425         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
5426         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
5427         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
5428         tree-ssa-loop-niter.c, tree-vect-analyze.c,
5429         tree-vect-transform.c: Fix comment typos.
5430
5431 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
5432
5433         * sched-deps.c (find_insn_list): Remove.
5434         * sched-int.h: Remove the prototype for find_insn_list.
5435
5436 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
5437
5438         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
5439         to linker.
5440         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
5441         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
5442         darwin_rs6000_override_options.
5443         (C_COMMON_OVERRIDE_OPTIONS): Expect
5444         darwin_macosx_version_min to be non-NULL always.
5445         (TARGET_C99_FUNCTIONS): Likewise.
5446         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
5447         (DARWIN_MINVERSION_SPEC): New.
5448         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
5449         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
5450         to cc1*.
5451         (DARWIN_MINVERSION_SPEC): New.
5452         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
5453         value.
5454         * config/darwin-c.c (darwin_cpp_builtins): Expect
5455         darwin_macosx_version_min to be non-NULL always.
5456
5457         * config/rs6000/rs6000.c: Clean up trailing whitespace.
5458
5459 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
5460
5461         * config/i386/i386.h (x86_use_xchgb): New.
5462         (TARGET_USE_XCHGB): New macro.
5463         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
5464         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
5465         Split after reload into bswaphi for shifts of 8.
5466         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
5467         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
5468         or when optimizing for size.
5469
5470 2007-02-16  Richard Guenther  <rguenther@suse.de>
5471             Christian Bruel  <christian.bruel@st.com>
5472
5473         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
5474         DECLs but prefer SSA_NAMEs over DECLs.
5475
5476 2007-02-16  Richard Guenther  <rguenther@suse.de>
5477
5478         * tree-flow-inline.h (single_imm_use_p): Remove.
5479         (zero_imm_uses_p): Likewise.
5480         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
5481         instead of single_imm_use_p.
5482         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
5483         zero_imm_uses_p.
5484
5485 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5486
5487         PR other/27843
5488         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
5489         nested double- and backquotes.
5490
5491 2007-02-15  Roger Sayle  <roger@eyesopen.com>
5492
5493         PR middle-end/30391
5494         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
5495         should be unreachable.
5496         (build2_stat): Allow construction of MODIFY_EXPR at any time.
5497         For the time being redirect GIMPLE_MODIFY_STMT to the new
5498         (renamed) build_gimple_modify_stmt_stat.
5499         (build2_gimple_stat): Rename to...
5500         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
5501         Always build a GIMPLE_MODIFY_STMT node.
5502         * tree.h (build2_gimple, build2_gimple_stat): Delete.
5503         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
5504         declarations.
5505
5506         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
5507         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
5508         * tree-complex.c (set_component_ssa_name, expand_complex_move,
5509         expand_complex_div_wide): Likewise.
5510         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
5511         * tree-ssa-loop-im.c (schedule_sm): Likewise.
5512         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
5513         * tree-ssa-loop-manip.c (create_iv): Likewise.
5514         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
5515         abs_replacement): Likewise.
5516         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
5517         realify_fake_stores): Likewise.
5518
5519         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
5520         node rather than a GIMPLE_MODIFY_STMT node.
5521         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
5522         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
5523         Likewise.
5524         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
5525         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
5526         GIMPLE_MODIFY_STMT.
5527
5528 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5529
5530         PR middle-end/30433
5531         * fold-const.c (fold_comparison): Add back the
5532         folding of constant complex comparisions.
5533
5534 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5535
5536         PR middle-end/30729
5537         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
5538         effects unknown to this function, return early.
5539
5540 2007-02-15  Ian Lance Taylor  <iant@google.com>
5541
5542         * lower-subreg.c (move_eh_region_note): New static function.
5543         (resolve_simple_move): Call it.
5544         (decompose_multiword_subregs): Track blocks for which we resolve a
5545         simple move which is also a control flow insn.  Pass them to
5546         find_many_sub_basic_blocks.
5547         (pass_lower_subreg): Add TODO_verify_flow.
5548         (pass_lower_subreg2): Likewise.
5549
5550 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5551             Brooks Moses  <brooks.moses@codesourcery.com>
5552             Lee Millward  <lee.millward@codesourcery.com>
5553
5554         * tree.h (enum tree_code_class): Add tcc_vl_exp.
5555         (VL_EXP_CLASS_P): New.
5556         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
5557         TREE_CODE_LENGTH.
5558         (TREE_OPERAND_CHECK_CODE): Likewise.
5559         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
5560         (TREE_RTL_OPERAND_CHECK): Likewise.
5561         (tree_operand_check_failed): Make second parameter the whole tree
5562         instead of its code.  Fixed callers.
5563         (VL_EXP_CHECK): New.
5564         (TREE_OPERAND_LENGTH): New.
5565         (VL_EXP_OPERAND_LENGTH): New.
5566         (CALL_EXPR_FN): New.
5567         (CALL_EXPR_STATIC_CHAIN): New.
5568         (CALL_EXPR_ARGS): New.
5569         (CALL_EXPR_ARG): New.
5570         (call_expr_nargs): New.
5571         (CALL_EXPR_ARGP): New.
5572         (build_nt_call_list): Declare.
5573         (build_vl_exp_stat): Declare.
5574         (build_vl_exp): New.
5575         (build_call_list): Declare.
5576         (build_call_nary): Declare.
5577         (build_call_valist): Declare.
5578         (build_call_array): Declare.
5579         (call_expr_arg): Declare.
5580         (call_expr_argp): Declare.
5581         (call_expr_arglist): Declare.
5582         (fold_build_call_list): Declare.
5583         (fold_build_call_list_initializer): Declare.
5584         (fold_call_expr): Declare to replace fold_builtin.
5585         (fold_builtin_fputs): Update to agree with modified definition.
5586         (fold_builtin_strcpy): Likewise.
5587         (fold_builtin_strncpy): Likewise.
5588         (fold_builtin_memory_chk): Likewise.
5589         (fold_builtin_stxcpy_chk): Likewise.
5590         (fold_builtin_strncpy_chk): Likewise.
5591         (fold_builtin_next_arg): Likewise.
5592         (fold_build_call_expr): Declare.
5593         (fold_builtin_call_list): Declare.
5594         (fold_builtin_call_valist): Declare.
5595         (build_call_expr): Declare.
5596         (validate_arglist): Update to agree with modified definition.
5597         (tree_operand_length): New.
5598         (call_expr_arg_iterator): New.
5599         (init_call_expr_arg_iterator): New.
5600         (next_call_expr_arg): New.
5601         (first_call_expr_arg): New.
5602         (more_call_expr_args_p): New.
5603         (FOR_EACH_CALL_EXPR_ARG): New.
5604
5605         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
5606         and tcc_gimple_stmt.
5607         (tree_code_size): Update documentation.  Use sizeof (tree) rather
5608         than sizeof (char *).
5609         (tree_size): Likewise.  Add case for tcc_vl_exp.
5610         (tree_node_structure): Add case for tcc_vl_exp.
5611         (contains_placeholder_p): Likewise.
5612         (substitute_in_expr): Likewise.
5613         (substitute_placeholder_in_expr): Likewise.
5614         (stabilize_reference_1): Likewise.
5615         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
5616         to diagnose breakage of this interface for constructing CALL_EXPRs.
5617         (build_nt): Add similar assertion here.
5618         (build_nt_call_list): New.
5619         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
5620         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
5621         TREE_CODE_LENGTH.
5622         (get_callee_fndecl): Use new CALL_EXPR accessors.
5623         (tree_operand_check_failed): Change parameters to pass entire node
5624         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
5625         (process_call_operands): New.
5626         (build_vl_exp_stat): New.
5627         (build_call_list): New.
5628         (build_call_nary): New.
5629         (build_call_valist): New.
5630         (build_call_array): New.
5631         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5632         (call_expr_arglist): New.
5633
5634         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
5635         tcc_vl_exp instead of a fixed-size tcc_expression.
5636
5637         * doc/c-tree.texi (CALL_EXPR): Document new representation and
5638         accessors for CALL_EXPRs.
5639         (AGGR_INIT_EXPR): Likewise.
5640
5641 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5642             Brooks Moses  <brooks.moses@codesourcery.com>
5643             Lee Millward  <lee.millward@codesourcery.com>
5644
5645         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
5646         (expand_builtin_nonlocal_goto): Change parameter to be entire
5647         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
5648         (expand_builtin_prefetch): Likewise.
5649         (expand_builtin_classify_type): Likewise.
5650         (mathfn_built_in): Return NULL_TREE instead of 0.
5651         (expand_errno_check): Use new CALL_EXPR accessors.
5652         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
5653         Return NULL_RTX instead of 0.
5654         (expand_builtin_mathfn_2): Likewise.
5655         (expand_builtin_mathfn_3): Likewise.
5656         (expand_builtin_interclass_mathfn): Likewise.
5657         (expand_builtin_sincos): Likewise.
5658         (expand_builtin_cexpi): Likewise.
5659         (expand_builtin_int_roundingfn): Likewise.
5660         (expand_builtin_int_roundingfn_2): Likewise.
5661         (expand_builtin_pow): Likewise.
5662         (expand_builtin_powi): Likewise.
5663         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
5664         of arglist, fixing callers appropriately.  Use new CALL_EXPR
5665         accessors and constructors.  Return NULL_RTX instead of 0.
5666         (expand_builtin_strstr): Likewise.
5667         (expand_builtin_strchr): Likewise.
5668         (expand_builtin_strrchr): Likewise.
5669         (expand_builtin_strpbrk): Likewise.
5670         (expand_builtin_memcpy): Likewise.
5671         (expand_builtin_mempcpy): Likewise.
5672         (expand_builtin_mempcpy_args): New.
5673         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
5674         (expand_builtin_memmove_args): New.
5675         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
5676         (expand_movstr): Likewise.
5677         (expand_builtin_strcpy): Likewise.
5678         (expand_builtin_strcpy_args): New.
5679         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
5680         (expand_builtin_strncpy): Likewise.
5681         (expand_builtin_memset): Likewise.
5682         (expand_builtin_memset_args): New.
5683         (expand_builtin_bzero): Similarly to expand_builtin_memset.
5684         (expand_builtin_memcmp): Likewise.
5685         (expand_builtin_strcmp): Likewise.
5686         (expand_builtin_strncmp): Likewise.
5687         (expand_builtin_strcat): Likewise.
5688         (expand_builtin_strncat): Likewise.
5689         (expand_builtin_strspn): Likewise.
5690         (expand_builtin_strcspn): Likewise.
5691         (expand_builtin_args_info): Likewise.
5692         (expand_builtin_va_start): Likewise.
5693         (gimplify_va_arg_expr): Likewise.
5694         (expand_builtin_va_end): Likewise.
5695         (expand_builtin_va_copy): Likewise.
5696         (expand_builtin_frame_address): Likewise.
5697         (expand_builtin_alloca): Likewise.
5698         (expand_builtin_bswap): Likewise.
5699         (expand_builtin_unop): Likewise.
5700         (expand_builtin_fputs): Likewise.
5701         (expand_builtin_expect): Likewise.
5702         (expand_builtin_fabs): Likewise.
5703         (expand_builtin_copysign): Likewise.
5704         (expand_builtin_printf): Likewise.
5705         (expand_builtin_fprintf): Likewise.
5706         (expand_builtin_sprintf): Likewise.
5707         (expand_builtin_init_trampoline): Likewise.
5708         (expand_builtin_signbit): Likewise.
5709         (expand_builtin_fork_or_exec): Likewise.
5710         (expand_builtin_sync_operation): Likewise.
5711         (expand_builtin_compare_and_swap): Likewise.
5712         (expand_builtin_lock_test_and_set): Likewise.
5713         (expand_builtin_lock_release): Likewise.
5714         (expand_builtin): Likewise.
5715         (builtin_mathfn_code): Likewise.
5716
5717         (fold_builtin_constant_p): Pass call arguments individually instead
5718         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
5719         accessors and constructors.  Return NULL_TREE instead of 0.
5720         (fold_builtin_expect): Likewise.
5721         (fold_builtin_classify_type): Likewise.
5722         (fold_builtin_strlen): Likewise.
5723         (fold_builtin_nan): Likewise.
5724         (integer_valued_real_p): Likewise.
5725         (fold_trunc_transparent_mathfn): Likewise.
5726         (fold_fixed_mathfn): Likewise.
5727         (fold_builtin_cabs): Likewise.
5728         (fold_builtin_sqrt): Likewise.
5729         (fold_builtin_cbrt): Likewise.
5730         (fold_builtin_cos): Likewise.
5731         (fold_builtin_cosh): Likewise.
5732         (fold_builtin_tan): Likewise.
5733         (fold_builtin_sincos): Likewise.
5734         (fold_builtin_cexp): Likewise.
5735         (fold_builtin_trunc): Likewise.
5736         (fold_builtin_floor): Likewise.
5737         (fold_builtin_ceil): Likewise.
5738         (fold_builtin_round): Likewise.
5739         (fold_builtin_int_roundingfn): Likewise.
5740         (fold_builtin_bitop): Likewise.
5741         (fold_builtin_bswap): Likewise.
5742         (fold_builtin_logarithm): Likewise.
5743         (fold_builtin_hypot): Likewise.
5744         (fold_builtin_pow): Likewise.
5745         (fold_builtin_powi): Likewise.
5746         (fold_builtin_exponent): Likewise.
5747         (fold_builtin_memset): Likewise.
5748         (fold_builtin_bzero): Likewise.
5749         (fold_builtin_memory_op): Likewise.
5750         (fold_builtin_bcopy): Deleted; call site changed to invoke
5751         fold_builtin_memory_op directly.
5752         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
5753         (fold_builtin_strncpy): Likewise.
5754         (fold_builtin_memcmp): Likewise.
5755         (fold_builtin_strcmp): Likewise.
5756         (fold_builtin_strncmp): Likewise.
5757         (fold_builtin_signbit): Likewise.
5758         (fold_builtin_copysign): Likewise.
5759         (fold_builtin_isascii): Likewise.
5760         (fold_builtin_toascii): Likewise.
5761         (fold_builtin_isdigit): Likewise.
5762         (fold_builtin_fabs): Likewise.
5763         (fold_builtin_abs): Likewise.
5764         (fold_builtin_fmin_fmax): Likewise.
5765         (fold_builtin_carg): Likewise.
5766         (fold_builtin_classify): Likewise.
5767         (fold_builtin_unordered_cmp): Likewise.
5768
5769         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
5770         New functions split out from fold_builtin_1.
5771         (fold_builtin_n): New.
5772         (fold_builtin_varargs): New.
5773         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
5774         instead.
5775         (fold_call_expr): New.
5776         (build_function_call_expr): Rewrite to use new helper function.
5777         (fold_builtin_call_list): New.
5778         (build_call_expr): New.
5779         (fold_builtin_call_valist): New.
5780         (rewrite_call_expr): New.
5781         (validate_arg): New.
5782         (validate_arglist): Change parameter to be entire CALL_EXPR instead
5783         of an arglist.  Change return type to bool.  Use new CALL_EXPR
5784         accessors.
5785
5786         (fold_builtin_strstr):  Pass call arguments individually instead
5787         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
5788         accessors and constructors.  Return NULL_TREE instead of 0.
5789         (fold_builtin_strchr): Likewise.
5790         (fold_builtin_strrchr): Likewise.
5791         (fold_builtin_strpbrk): Likewise.
5792         (fold_builtin_strcat): Likewise.
5793         (fold_builtin_strncat): Likewise.
5794         (fold_builtin_strspn): Likewise.
5795         (fold_builtin_strcspn): Likewise.
5796         (fold_builtin_fputs): Likewise.
5797         (fold_builtin_next_arg): Likewise.
5798         (fold_builtin_sprintf): Likewise.
5799
5800         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
5801         NULL_RTX instead of 0.
5802         (expand_builtin_memory_chk): Likewise.
5803         (maybe_emit_chk_warning): Likewise.
5804         (maybe_emit_sprintf_chk_warning): Likewise.
5805
5806         (fold_builtin_object_size): Pass call arguments individually instead
5807         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
5808         accessors and constructors.  Return NULL_TREE instead of 0.
5809         (fold_builtin_memory_chk): Likewise.
5810         (fold_builtin_stxcpy_chk): Likewise.
5811         (fold_builtin_strncpy_chk): Likewise.
5812         (fold_builtin_strcat_chk): Likewise.
5813         (fold_builtin_strcat_chk): Likewise.
5814         (fold_builtin_strncat_chk): Likewise.
5815         (fold_builtin_sprintf_chk): Likewise.
5816         (fold_builtin_snprintf_chk): Likewise.
5817         (fold_builtin_printf): Likewise.
5818         (fold_builtin_vprintf): Likewise.
5819
5820         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
5821         constructors.
5822         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
5823         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5824         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
5825         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
5826         (fold_unary): Likewise.
5827         (fold_binary): Likewise.
5828         (fold_ternary): Remove CALL_EXPR case, since they are no longer
5829         ternary expressions.
5830         (fold): Add logic for tcc_vl_exp.
5831         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
5832         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5833         (fold_build3_stat): Add assertion to flag broken interface for
5834         constructing CALL_EXPRs.
5835         (fold_build_call_list): New.
5836         (fold_build_call_list_initializer): New.
5837         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
5838         constructors.
5839         (fold_strip_sign_ops): Likewise.
5840
5841 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5842             Brooks Moses  <brooks.moses@codesourcery.com>
5843             Lee Millward  <lee.millward@codesourcery.com>
5844
5845         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
5846         accessors and dump arguments explicitly.
5847
5848         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
5849         TREE_CODE_LENGTH.
5850         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
5851         explicitly.
5852         (print_call_name): Use new CALL_EXPR accessors.
5853
5854         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
5855         CALL_EXPR arguments explicitly instead of as a list.  Use
5856         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5857
5858         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
5859         (vrp_visit_stmt): Likewise.
5860
5861         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
5862         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
5863         TREE_CODE_LENGTH.
5864         (force_move_till_expr): Likewise.
5865
5866         * targhooks.c (default_external_stack_protect_fail): Use
5867         build_call_expr instead of build_function_call_expr.
5868         (default_hidden_stack_protect_fail): Likewise.
5869
5870         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
5871         build the call.
5872
5873         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
5874         and walk arguments explicitly.
5875
5876         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
5877         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5878         (expand_simple_operations): Likewise.
5879         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
5880
5881         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
5882         of TREE_CODE_LENGTH.
5883         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
5884
5885         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
5886         instead of TREE_CODE_LENGTH.
5887
5888         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
5889         (tree_ic_transform): Likewise.
5890         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
5891         parameter instead of arglist.  Fix callers.
5892         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
5893         (tree_stringops_transform): Likewise.
5894         (tree_indirect_call_to_profile): Likewise.
5895         (tree_stringops_values_to_profile): Likewise.
5896
5897         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
5898         (eliminate_tail_call): Likewise.
5899
5900         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
5901
5902         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5903         Use TREE_OPERAND_LENGTH and generalize to handle any number of
5904         operands.
5905         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
5906
5907         * omp-low.c (build_omp_barrier): Use build_call_expr.
5908         (lower_rec_input_clauses): Likewise.
5909         (lower_reduction_clauses): Likewise.
5910         (expand_parallel_call): Likewise.
5911         (maybe_catch_exception): Likewise.
5912         (expand_omp_for_generic): Likewise.
5913         (expand_omp_for_static_nochunk): Likewise.
5914         (expand_omp_sections): Likewise.
5915         (lower_omp_single_simple): Likewise.
5916         (lower_omp_single_copy): Likewise.
5917         (lower_omp_master): Likewise.
5918         (lower_omp_ordered): Likewise.
5919         (lower_omp_critical): Likewise.
5920
5921         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
5922         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
5923
5924         * tree-gimple.c (is_gimple_call_addr): Fix doc.
5925         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
5926         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
5927
5928         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
5929         and generalize to handle any number of operands.
5930         (chrec_contains_undetermined): Likewise.
5931         (tree_contains_chrecs): Likewise.
5932         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
5933
5934         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
5935
5936         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
5937         fold_call_expr instead of fold_builtin.
5938         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
5939         match declarations there.
5940         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
5941         updates.
5942
5943         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
5944         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5945
5946         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
5947         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
5948
5949         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
5950         accessors.
5951
5952         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
5953         (execute_cse_sincos): Use new CALL_EXPR accessors.
5954
5955         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
5956
5957         * gimple-low.c (lower_function_body): Use build_call_expr.
5958         (lower_builtin_setjmp): Likewise.
5959
5960         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
5961         (set_storage_via_libcall): Likewise.
5962         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
5963         instead of TREE_CODE_LENGTH.
5964         (expand_expr_real_1): Use new CALL_EXPR accessors.
5965
5966         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
5967         generalize to handle any number of operands.
5968         (TB_parent_eq): Likewise.
5969
5970         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
5971         (strip_builtin_expect): Likewise.
5972
5973         * function.c (gimplify_parameters): Use build_call_expr.
5974
5975         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
5976         instead of TREE_CODE_LENGTH.
5977
5978         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
5979         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
5980
5981         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
5982         iterators.
5983
5984         * gimplify.c (build_stack_save_restore): Use build_call_expr.
5985         (gimplify_decl_expr): Likewise.
5986         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
5987         Use new CALL_EXPR iterators.
5988         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
5989         (gimplify_modify_expr_to_memset): Likewise.
5990         (gimplify_variable_sized_compare): Likewise.
5991         (gimplify_omp_atomic_fetch_op): Likewise.
5992         (gimplify_omp_atomic_pipeline): Likewise.
5993         (gimplify_omp_atomic_mutex): Likewise.
5994         (gimplify_function_tree): Likewise.
5995
5996         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
5997         (call_expr_flags): Likewise.
5998         (expand_call): Likewise.
5999
6000         * except.c (expand_builtin_eh_return_data_regno): Pass entire
6001         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
6002         accessors.
6003
6004         * coverage.c (create_coverage): Use build_call_expr.
6005
6006         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
6007         (temp_call_expr_obstack): New.
6008         (pool_copy_list): Delete.
6009         (temp_copy_call_expr): New.
6010         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
6011         CALL_EXPR accessors.  Get rid of special goo for copying argument
6012         lists and use temp_copy_call_expr instead.
6013         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
6014         CALL_EXPR accessors.
6015         (create_expression_by_pieces): Likewise.  Use build_call_array
6016         to construct the result instead of fold_build3.
6017         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
6018         dealing with argument lists.
6019         (init_pre): Remove references to expression_node_pool and
6020         list_node_pool.  Init temp_call_expr_obstack instead.
6021         (fini_pre): Remove references to expression_node_pool and
6022         list_node_pool.
6023
6024         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
6025         and walk arguments explicitly instead of as a list.
6026
6027         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
6028         (mx_register_decls): Likewise.
6029         (mudflap_register_call): Likewise.
6030         (mudflap_finish_file): Likewise.
6031
6032         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
6033         (ipa_callsite_compute_param): Likewise.
6034
6035         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
6036         accessors and constructor.
6037
6038         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
6039         accessors and constructor.
6040         (convert_tramp_reference): Likewise.
6041         (convert_call_expr): Likewise.
6042         (finalize_nesting_tree_1): Likewise.
6043
6044         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
6045         accessors.
6046
6047         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
6048
6049         * tree-inline.c (initialize_inlined_parameters): Pass entire
6050         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
6051         accessors.
6052         (estimate_num_insns_1): Use new CALL_EXPR accessors.
6053         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
6054
6055         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
6056         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
6057         (vectorizable_reduction): Likewise.
6058         (vectorizable_call): Use new CALL_EXPR iterators.
6059         (vectorizable_conversion): Use build_call_expr.
6060         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
6061         (vect_gen_widened_results_half): Use build_call_expr.
6062         (vect_setup_realignment): Likewise.
6063         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
6064
6065         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
6066         (pass_through_call): Likewise.
6067         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
6068         fold_builtin.
6069
6070         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
6071         (tree_gen_pow2_profiler): Likewise.
6072         (tree_gen_one_value_profiler): Likewise.
6073         (tree_gen_ic_func_profiler): Likewise.
6074         (tree_gen_average_profiler): Likewise.
6075         (tree_gen_ior_profiler): Likewise.
6076
6077         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
6078         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
6079         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
6080
6081         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
6082         of TREE_CODE_LENGTH.
6083
6084         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
6085         of TREE_CODE_LENGTH.
6086
6087         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
6088         constructor.
6089         (convert_to_integer): Likewise.
6090
6091         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
6092         accessors.
6093
6094 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
6095             Brooks Moses  <brooks.moses@codesourcery.com>
6096             Lee Millward  <lee.millward@codesourcery.com>
6097
6098         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
6099         accessors.
6100         * config/frv/frv.c (frv_expand_builtin): Likewise.
6101         * config/s390/s390.c (s390_expand_builtin): Likewise.
6102
6103         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
6104         (sparc_expand_builtin): Use new CALL_EXPR accessors.
6105
6106         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
6107         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
6108         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
6109         (ix86_expand_store_builtin): Likewise.
6110         (ix86_expand_unop_builtin): Likewise.
6111         (ix86_expand_unop1_builtin): Likewise.
6112         (ix86_expand_sse_compare): Likewise.
6113         (ix86_expand_sse_comi): Likewise.
6114         (ix86_expand_vec_init_builtin): Likewise.
6115         (ix86_expand_vec_ext_builtin): Likewise.
6116         (ix86_expand_vec_set_builtin): Likewise.
6117         (ix86_expand_builtin): Use new CALL_EXPR accessors.
6118
6119         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
6120         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
6121
6122         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
6123         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
6124         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
6125
6126         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
6127         build_call_expr.
6128         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
6129         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
6130         arglist.  Use new CALL_EXPR accessors.  Fix callers.
6131         (altivec_expand_abs_builtin): Likewise.
6132         (rs6000_expand_binop_builtin): Likewise.
6133         (altivec_expand_predicate_builtin): Likewise.
6134         (altivec_expand_lv_builtin): Likewise.
6135         (spe_expand_stv_builtin): Likewise.
6136         (altivec_expand_stv_builtin): Likewise.
6137         (rs6000_expand_ternop_builtin): Likewise.
6138         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
6139         (altivec_expand_st_builtin): Likewise.
6140         (altivec_expand_dst_builtin): Likewise.
6141         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
6142         arglist.  Use new CALL_EXPR accessors.  Fix callers.
6143         (altivec_expand_vec_set_builtin): Likewise.
6144         (altivec_expand_vec_ext_builtin): Likewise.
6145         (altivec_expand_builtin): Use new CALL_EXPR accessors.
6146         (spe_expand_builtin): Likewise.
6147         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
6148         arglist.  Use new CALL_EXPR accessors.  Fix callers.
6149         (spe_expand_evsel_builtin): Likewise.
6150         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
6151         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
6152
6153         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
6154         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
6155         (arm_expand_unop_builtin): Likewise.
6156         (arm_expand_builtin): Use new CALL_EXPR accessors.
6157
6158         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
6159         accessors.
6160
6161         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
6162         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
6163         (bfin_expand_unop_builtin): Likewise.
6164         (bfin_expand_builtin): Use new CALL_EXPR accessors.
6165
6166 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
6167             Brooks Moses  <brooks.moses@codesourcery.com>
6168             Lee Millward  <lee.millward@codesourcery.com>
6169
6170         * c-semantics.c (build_stmt): Add internal diagnostic check.
6171
6172         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
6173         accessors.  Print arguments explicitly instead of as a list.
6174
6175         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
6176
6177         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
6178         (c_finish_omp_flish): Likewise.
6179
6180         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
6181         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
6182         instead of TREE_CODE_LENGTH.
6183         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
6184         (c_warn_unused_result): Likewise.
6185
6186 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6187
6188         PR c/26494
6189         * doc/invoke.texi (Warning Options): Remove
6190         -Werror-implicit-function-declaration.
6191         (Wimplicit-function-declaration): Update description.
6192         * opts.c (common_handle_option): Move handling of -Werror=* to...
6193         (enable_warning_as_error): ...here.
6194         * opts.h (enable_warning_as_error): Declare.
6195         * c-decl.c (implicit_decl_warning): Unless
6196         -Wno-implicit-function-declaration is given, emit a pedwarn if
6197         -std=c99 or emit a warning if -Wimplicit-function-declaration.
6198         * c.opt (Wimplicit-function-declaration): Replace
6199         mesg_implicit_function_declaration with
6200         warn_implicit_function_declaration.
6201         * c-opts.c (c_common_handle_option):
6202         -Werror-implicit-function-declaration is exactly equal as
6203         -Werror=implicit-function-declaration.
6204         (set_Wimplicit): Replace mesg_implicit_function_declaration with
6205         warn_implicit_function_declaration.
6206         (c_common_post_options): -Wimplict-function-declaration is enabled
6207         by default by -std=c99, otherwise is disabled by default.
6208         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
6209
6210 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
6211
6212         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
6213         DECL on the rhs to a DECL on the lhs for debug info purposes if the
6214         former is ignored but not the latter.
6215
6216 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
6217
6218         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
6219         is made and the reference doesn't use the alias set of its type,
6220         do not create the temporary using that type.
6221
6222 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
6223
6224         * jump.c: Remove prototypes for delete_computation and
6225         delete_prior_computation.
6226
6227 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
6228
6229         * jump.c (get_label_after): Delete.
6230         (get_label_before, delete_computation, delete_jump,
6231         delete_prior_computation, follow_jumps): Move...
6232         * reorg.c (delete_computation, delete_prior_computation): ... here...
6233         (get_label_before, delete_jump): ... making these static ...
6234         (follow_jumps): ... and simplifying this since it only runs after
6235         reload.
6236         * rtl.h (get_label_after, get_label_before, delete_jump,
6237         follow_jumps): Delete prototypes.
6238
6239 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
6240
6241         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
6242
6243 2007-02-15  Nick Clifton  <nickc@redhat.com>
6244
6245         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
6246         order to prevent it from being munged by the target.
6247
6248 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
6249
6250         * config/i386/i386.md: Remove misleading comment.
6251
6252 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6253
6254         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
6255         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
6256         invalid patterns.
6257
6258 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6259
6260         * tree-sra.c (instantiate_missing_elements): Canonicalize
6261         bit-field types.
6262         (sra_build_assignment): New.
6263         (generate_copy_inout, generate_element_copy,
6264         generate_element_zero, generate_one_element_init): Use it.
6265
6266 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6267
6268         * tree-sra.c (instantiate_missing_elements): Canonicalize
6269         bit-field types.
6270         (sra_build_assignment): New.
6271         (generate_copy_inout, generate_element_copy,
6272         generate_element_zero, generate_one_element_init): Use it.
6273
6274 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6275
6276         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
6277         limbo die nodes.
6278
6279 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
6280
6281         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
6282         types as aggregates not scalars.
6283         * function.c (assign_stack_temp_for_type): Likewise.
6284
6285 2007-02-14  Roger Sayle  <roger@eyesopen.com>
6286             Zdenek Dvorak  <dvorakz@suse.cz>
6287
6288         * tree-dump.c (dump_switch_p_1): Require exact match of the option
6289         name.
6290
6291 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
6292
6293         * passes.c (next_pass_1): Clear the next field of the copied
6294         pass structure.
6295
6296 2007-02-14  Richard Henderson  <rth@redhat.com>
6297
6298         * tree-sra.c (early_sra): New.
6299         (decl_can_be_decomposed_p): Deny va_list if early_sra.
6300         (tree_sra_early, pass_sra_early): New.
6301         * tree-pass.h (pass_sra_early): Declare.
6302         * passes.c (init_optimization_passes): Use it.
6303
6304 2007-02-14  Richard Guenther  <rguenther@suse.de>
6305
6306         * flags.h (issue_strict_overflow_warning): Convert to a macro.
6307
6308 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
6309
6310          PR tree-optimization/30771
6311         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
6312         also phi nodes.
6313         (vect_analyze_operations): Induction phis can now be marked as
6314         used_in_loop.
6315         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
6316         Update documentation accordingly.
6317
6318 2007-02-14  Nick Clifton  <nickc@redhat.com>
6319
6320         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
6321         most 3 arguments are supported.
6322         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
6323
6324 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
6325
6326         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
6327         Ensure dst->current is valid.
6328
6329 2007-02-13  Paul Brook  <paul@codesourcery.com>
6330
6331         * config.gcc: Add arm*-*-uclinux-*eabi.
6332         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6333         (SUBTARGET_EXTRA_LINK_SPEC): Define.
6334         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
6335         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
6336         (LINK_SPEC): Define.
6337         (LIB_SPEC): Define.
6338         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
6339         register.
6340         * config/arm/uclinux-eabi.h: New file.
6341         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
6342         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
6343         based targets.
6344
6345 2007-02-13  Ian Lance Taylor  <iant@google.com>
6346
6347         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
6348         * flags.h (warn_strict_overflow): Declare.
6349         (enum warn_strict_overflow_code): Define.
6350         (issue_strict_overflow_warning): New static inline function.
6351         * opts.c (warn_strict_overflow): New variable.
6352         (common_handle_option): Handle OPT_Wstrict_overflow and
6353         OPT_Wstrict_overflow_.
6354         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
6355         OPT_Wall.
6356         * fold-const.c: Include intl.h.
6357         (fold_deferring_overflow_warnings): New static variable.
6358         (fold_deferred_overflow_warning): New static variable.
6359         (fold_deferred_overflow_code): New static variable.
6360         (fold_defer_overflow_warnings): New function.
6361         (fold_undefer_overflow_warnings): New function.
6362         (fold_undefer_and_ignore_overflow_warnings): New function.
6363         (fold_deferring_overflow_warnings_p): New function.
6364         (fold_overflow_warning): New static function.
6365         (make_range): Add strict_overflow_p parameter.  Change all
6366         callers.
6367         (extract_muldiv, extract_muldiv_1): Likewise.
6368         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
6369         tree_expr_nonnegative_p.
6370         (fold_negate_expr): Call fold_overflow_warning.
6371         (fold_range_test): Likewise.
6372         (fold_comparison): Likewise.
6373         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
6374         instead of tree_expr_nonnegative_p.
6375         (tree_expr_nonnegative_warnv_p): Rename from
6376         tree_expr_nonnegative_p, add strict_overflow_p parameter.
6377         (tree_expr_nonnegative_p): New function.
6378         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
6379         strict_overflow_p parameter.
6380         (tree_expr_nonzero_p): New function.
6381         * passes.c (verify_interpass_invariants): New static function.
6382         (execute_one_pass): Call it.
6383         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
6384         warnings.
6385         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
6386         (estimate_numbers_of_iterations): Likewise.
6387         (scev_probably_wraps_p): Likewise.
6388         * tree-ssa-ccp.c: Include "toplev.h".
6389         (evaluate_stmt): Defer fold overflow warnings until we know we are
6390         going to optimize.
6391         (struct fold_stmt_r_data): Add stmt field.
6392         (fold_stmt_r): Defer fold overflow warnings until we know we
6393         optimized.
6394         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
6395         (fold_stmt_inplace): Likewise.
6396         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
6397         (cleanup_control_expr_graph): Defer fold overflow warnings until
6398         we know we are going to optimize.
6399         * tree-cfg.c (fold_cond_expr_cond): Likewise.
6400         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
6401         Likewise.
6402         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6403         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
6404         * tree-ssa-loop-manip.c (create_iv): Likewise.
6405         * c-typeck.c (build_conditional_expr): Likewise.
6406         (build_binary_op): Likewise.
6407         * tree-vrp.c (vrp_expr_computes_nonzero): Call
6408         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
6409         (extract_range_from_unary_expr): Likewise.
6410         * simplify-rtx.c (simplify_const_relational_operation): Warn when
6411         assuming that signed overflow does not occur.
6412         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
6413         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
6414         (fold_defer_overflow_warnings): Declare.
6415         (fold_undefer_overflow_warnings): Declare.
6416         (fold_undefer_and_ignore_overflow_warnings): Declare.
6417         (fold_deferring_overflow_warnings_p): Declare.
6418         (tree_expr_nonzero_warnv_p): Declare.
6419         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
6420         of warning options.
6421         (Warning Options): Document -Wstrict-overflow.
6422         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
6423         (tree-ssa-ccp.o): Likewise.
6424         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
6425         (fold-const.o): Depend on intl.h.
6426
6427 2007-02-13  Ian Lance Taylor  <iant@google.com>
6428
6429         PR middle-end/30751
6430         * lower-subreg.c (resolve_simple_move): Decompose subregs in
6431         addresses.
6432
6433 2007-02-13  Stuart Hastings  <stuart@apple.com>
6434
6435         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
6436
6437 2007-02-13  Richard Henderson  <rth@redhat.com>
6438
6439         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
6440         handled_component_p before looking for the indirect_ref.
6441
6442 2007-02-13  Richard Henderson  <rth@redhat.com>
6443
6444         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
6445         remove flags clobber.
6446         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
6447         (bswaphi_lowpart): New.
6448         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
6449         remove TARGET_BSWAP test.  Delete expander of the same name.
6450
6451         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
6452         (expand_unop): Use them.
6453
6454 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
6455
6456         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
6457         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
6458         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
6459         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
6460         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
6461         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
6462         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
6463         assembler dialect choice from asm templates.
6464
6465 2007-02-12  Richard Henderson  <rth@redhat.com>
6466
6467         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
6468         (fixuns_trunc<SSEMODEF>si2): Use it.
6469         * config/i386/sse.md (vec_setv4sf_0): Export.
6470         * config/i386/i386.c (ix86_build_const_vector): Export.
6471         (ix86_split_convert_uns_si_sse): Rename from
6472         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
6473         * config/i386/i386-protos.h: Update.
6474
6475 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6476
6477         PR c/29521
6478         * c-typeck.c (c_finish_return): Improve warning message.
6479
6480 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6481
6482         * alias.c (find_symbolic_term): Delete unused function.
6483
6484 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
6485
6486         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
6487         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
6488         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
6489
6490 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
6491
6492         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6493         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
6494         the function, temporarily point the debug interface to the null one.
6495
6496 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
6497
6498         * dwarf2out.c (round_up_to_align): New static function.
6499         (field_byte_offset): Use it to round the offset.
6500
6501 2007-02-12  Richard Henderson  <rth@redhat.com>
6502
6503         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
6504         (inswl_const): Export.
6505
6506 2007-02-12  Richard Henderson  <rth@redhat.com>
6507
6508         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
6509         result mode of the libcall, convert back to outmode.
6510
6511 2007-02-12  Roger Sayle  <roger@eyesopen.com>
6512
6513         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
6514         (bswapdi2): New define_expand to implement 32-bit implementation.
6515
6516 2007-02-12  Nick Clifton  <nickc@redhat.com>
6517
6518         * doc/invoke.texi (Overall Options): Document --help=.
6519         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
6520         (cc1_options): Pass --help= on to cc1.
6521         (display_help): Add description of --help=.
6522         (process_command): Add code to handle --help=.  Allow translated
6523         --help and --target-help switches to be passed on to compiler
6524         sub-process.
6525         (main): Remove unused if statement.
6526         * opts.c (columns): Remove.
6527         (LEFT_COLUMN): Define.
6528         (wrap_help): Add columns argument.
6529         (print_filtered_help): Change parameters to be an include bitmask,
6530         an exclude bitmask, an any bitmask and the column width.  Move the
6531         code to display the params list here.  Add code to display the
6532         status of options rather than their descriptions if the quiet flag
6533         is not active.
6534         (print_specific_help): Change parameters to be an include bitmask,
6535         an exclude bitmask and an any bitmask.  Move code to look up the
6536         column width here.  Decide upon the title for an options listing.
6537         (common_handle_options): Add code to handle --help=.  Adapt code
6538         for --help and --target-help to use the revised form of the
6539         print_specific_help function.
6540         (print_help): Delete.
6541         (print_param_help): Delete.
6542         (print_switch): Delete.
6543         * opts.h (cl_lang_count): Add prototype.
6544         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
6545         CL_MAX_OPTION_CLASS): New defines.
6546         * optc-gen.awk: Add construction of cl_lang_count.
6547         * c.opt: Add Warning attribute to warning options and Optimization
6548         attribute to optimization options.
6549         * common.opt: Likewise.
6550         Add --help=.
6551         Add -fhelp and -ftarget-help as aliases for the transformed --help
6552         and --target-help options.
6553         * opt-functions.awk: Add code to handle Warning and Optimization
6554         attributes.
6555
6556 2007-02-12  Richard Henderson  <rth@redhat.com>
6557
6558         * config/alpha/constraints.md: New file.
6559         * config/alpha/alpha.c: Include tm-constrs.h.
6560         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
6561         alpha_extra_constraint): Remove.
6562         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
6563         * config/alpha/alpha-protos.h: Update.
6564         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
6565         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
6566         (EXTRA_CONSTRAINT): Remove.
6567         * config/alpha/alpha.md: Include constraints.md.
6568         (adddi splitter): Use satisfies_constraint_*.
6569         * config/alpha/predicates.md (add_operand): Likewise.
6570         (sext_add_operand, addition_operation): Likewise.
6571
6572 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
6573
6574         PR tree-optimization/29145
6575         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
6576         in our handling of restrict qualified pointers.
6577
6578 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6579
6580         PR middle-end/7651
6581         * doc/invoke.texi (Wunused-value): Update description.
6582         (Wextra): Delete item.
6583         * opts.c (set_Wextra): Don't use the value of Wextra to set the
6584         value of Wunused-value.
6585         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
6586         (c_finish_stmt_expr): Don't check extra_warnings.
6587         (emit_side_effect_warnings): The caller is responsible to check
6588         warn_unused_value.
6589
6590 2007-02-11  Roger Sayle  <roger@eyesopen.com>
6591             Matt Thomas  <matt@3am-software.com>
6592
6593         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
6594
6595 2007-02-11  Roger Sayle  <roger@eyesopen.com>
6596
6597         * simplify-rtx.c (simplify_relational_operation_1): Optimize
6598         comparisons of POPCOUNT against zero.
6599         (simplify_const_relational_operation): Likewise.
6600
6601 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6602
6603         * doc/invoke.texi (Wextra): Delete outdated paragraph.
6604
6605 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6606
6607         * dwarf2out.c (root_type): Delete unused function.
6608
6609 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6610
6611         * genattrtab.c (contained_in_p): Delete unused function.
6612         (write_expr_attr_cache): Likewise.
6613
6614 2007-02-11  Jan Hubicka  <jh@suse.cz>
6615
6616         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
6617         previous patch.
6618
6619 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
6620
6621         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
6622         to add the REG_EQ* note.
6623         * see.c (see_merge_one_use_extension): Likewise.
6624         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
6625         turn REG_EQUAL notes into REG_EQUIV notes if the target
6626         register may have more than one set.
6627         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
6628         * gcse.c (try_replace_reg): Likewise.
6629         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
6630         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
6631         more than one REG_EQUIV note.
6632         * reload1.c (gen_reload): Use set_unique_reg_note.
6633
6634 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
6635
6636         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
6637         (ix86_builtin_conversion): New function.
6638
6639 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
6640
6641         PR target/29487
6642         * tree.h (DECL_REPLACEABLE_P): New macro.
6643         * except.c (set_nothrow_function_flags): Likewise.
6644
6645 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
6646             Ira Rosen  <irar@il.ibm.com>
6647             Dorit Nuzman  <dorit@il.ibm.com>
6648
6649         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
6650         * targhooks.c (default_builtin_vectorized_conversion): New.
6651         * targhooks.h (default_builtin_vectorized_function): New declaration.
6652         * target.h (struct vectorize): Add builtin_conversion field.
6653         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
6654         stmt_vec_info_type value.
6655         (vectorizable_conversion): New declaration.
6656         * tree-vect-analyze.c (vect_analyze_operations): Add
6657         vectorizable_conversion call.
6658         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
6659         * tree-vect-transform.c (vectorizable_conversion): New function.
6660         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
6661         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
6662         mode.
6663         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
6664         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
6665         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
6666         or ALTIVEC_BUILTIN_VCFSX.
6667
6668 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6669
6670         PR target/30634
6671         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
6672         CONST_DOUBLE and operand 0 is a hard register.
6673         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
6674         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
6675         is a hard floating-point register.
6676
6677 2007-02-10  Richard Henderson  <rth@redhat.com>
6678             Jakub Jelinek  <jakub@redhat.com>
6679             Alexandre Oliva  <aoliva@redhat.com>
6680
6681         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
6682         * builtin-types.def (BT_WORD): Make unsigned.
6683         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
6684         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
6685         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
6686         * c-decl.c (grokdeclarator): Don't error if !have_tls.
6687         * c-parser.c (c_parser_omp_threadprivate): Likewise.
6688         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
6689         emulated tls.
6690         * expr.c (emutls_var_address): New.
6691         (expand_expr_real_1): Expand emulated tls.
6692         (expand_expr_addr_expr_1): Likewise.
6693         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
6694         * output.h (emutls_finish): Declare.
6695         * toplev.c (compile_file): Call it.
6696         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
6697         address before wrapping in CONST.
6698         * varasm.c (emutls_htab, emutls_object_type): New.
6699         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
6700         (get_emutls_object_name, get_emutls_object_type): New.
6701         (get_emutls_init_templ_addr, emutls_decl): New.
6702         (emutls_common_1, emutls_finish): New.
6703         (assemble_variable): When emulating tls, swap decls; generate
6704         constructor for the emutls objects.
6705         (do_assemble_alias): When emulating tls, swap decl and target name.
6706         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
6707         for emulated tls.
6708         * varpool.c (decide_is_variable_needed): Look at force_output.
6709         Recurse for emulated tls.
6710         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
6711         with decide_is_variable_needed.
6712         * emutls.c: New file.
6713         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
6714         tls_object for real tls.
6715
6716 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
6717
6718         PR rtl-optimization/29599
6719         * reload1.c (eliminate_regs_in_insn): Take the destination
6720         mode into account when computing the offset.
6721
6722 2007-02-09  Stuart Hastings  <stuart@apple.com>
6723             Richard Henderson  <rth@redhat.com>
6724
6725         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
6726         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
6727         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
6728         fixuns_truncdfhi2): New.
6729         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
6730         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
6731         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
6732         (floatunssidf2): Allow nonimmediate source.
6733         * config/i386/sse.md (movdi_to_sse): New.
6734         (vec_concatv2di): Drop '*'.
6735         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
6736         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
6737         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
6738         New.
6739         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
6740         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
6741         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
6742         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
6743         (ix86_build_signbit_mask): Fix decl of v, refactor to call
6744         ix86_build_const_vector.
6745         (x86_emit_floatuns): Rewrite.
6746
6747 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6748
6749         * genautomata.c (longest_path_length): Delete unused function.
6750         (struct state): Delete unused longest_path_length.
6751         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
6752         (get_free_state): Delete unused.
6753
6754 2007-02-09  Jan Hubicka  <jh@suse.cz>
6755
6756         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
6757         * doc/invoke.texi (inline-unit-growth): Update default value.
6758
6759         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
6760         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
6761         (rebuild_cgraph_edges): Likewise.
6762         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
6763         (dump_cgraph_node): Dump frequencies.
6764         (cgraph_clone_edge): Add frequency scales.
6765         (cgraph_clone_node): Add freuqnecy.
6766         * cgraph.h (cgraph_edge): Add freuqnecy argument.
6767         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
6768         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
6769         * tree-pass.h (TODO_rebuild_frequencies): New constant.
6770         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
6771         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
6772         (save_inline_function_body): Likewise.
6773         * ipa-inline.c: inluce rtl.h
6774         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
6775         (cgraph_edge_badness): Use frequencies.
6776         (cgraph_decide_recursive_inlining): Update clonning.
6777         (cgraph_decide_inlining_of_small_function): Dump frequency.
6778         * predict.c (estimate_bb_frequencies): Export.
6779         * predict.h (estimate_bb_frequencies): Declare.
6780         * tree-inline.c (copy_bb): Watch overflows.
6781         (expand_call_inline): Update call of cgraph_create_edge.
6782         (optimize_inline_calls): Use TODO flags to update frequnecies.
6783         * passes.h: Include predict.h
6784         (init_optimization_passes): Move profile ahead.
6785         (execute_function_todo): Handle TODO_rebuild_frequencies.
6786
6787 2007-02-09  Roger Sayle  <roger@eyesopen.com>
6788
6789         * config/alpha/alpha.c (emit_insxl): Force the first operand of
6790         the insbl or inswl pattern into a register.
6791
6792 2007-02-09  Roger Sayle  <roger@eyesopen.com>
6793
6794         * config/ia64/ia64.md (bswapdi2): New define_insn.
6795
6796 2007-02-09  Richard Henderson  <rth@redhat.com>
6797
6798         * config/i386/constraints.md (Ym): New constraint.
6799         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
6800         (movdi_1_rex64): Split sse and xmm general register moves from
6801         memory move alternatives.  Use conditional register constraints.
6802         (movsf_1, movdf_integer): Likewise.
6803         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
6804         (movdf_integer_rex64): New.
6805         (pushsf_rex64): Fix output constraints.
6806         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
6807         (sse2_stored): Likewise.
6808         (sse2_storeq_rex64): New.
6809         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
6810         amd and not generic.
6811         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
6812         for optimize_size.  Remove SF/DFmode hack.
6813
6814 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6815
6816         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
6817         (bit_SSE4a): New.
6818
6819 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
6820             Richard Sandiford  <richard@codesourcery.com>
6821
6822         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
6823         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
6824         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
6825         m68k/t-mlib to tmake_file.
6826         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
6827         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
6828         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
6829         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
6830         variable is not empty, add t-$m68k_arch_family to tmake_file.
6831         Add t-mlibs to tmake_file.
6832         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
6833         * config/m68k/t-cf: New file.
6834         * config/m68k/t-m68k: Likewise.
6835         * config/m68k/t-mlibs: Likewise.
6836         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6837         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6838         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
6839         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6840         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
6841         Delete.
6842         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
6843         (INSTALL_LIBGCC): Delete.
6844         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
6845         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6846         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6847         (M68K_MLIB_CPU): Define.
6848         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6849         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6850         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
6851
6852 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
6853             Richard Guenther  <rguenther@suse.de>
6854
6855         PR middle-end/23361
6856         * fold-const.c (fold_comparison): Handle obfuscated comparisons
6857         against INT_MIN/INT_MAX.
6858         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
6859         file if a loop is removed.
6860
6861 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
6862
6863         * calls.c (store_one_arg): Pass correct alignment to
6864         emit_push_insn for non-BLKmode values.
6865         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
6866         unaligned stack slot via a suitably aligned slot.
6867
6868 2007-02-08  DJ Delorie  <dj@redhat.com>
6869
6870         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
6871         warnings.
6872         (legal_subregs): Use unsigned char, make const.
6873         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
6874
6875 2007-02-08  Paul Brook  <paul@codesourcery.com>
6876
6877         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
6878         special interworking needed.
6879
6880 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
6881
6882         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
6883         conditional to __SSE2__.
6884         (Entries below should have been added to first ChangeLog
6885         entry for amdfam10 dated 2007-02-05)
6886         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
6887         defined.
6888         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
6889         defined.
6890         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
6891         defined.
6892
6893 2007-02-08  DJ Delorie  <dj@redhat.com>
6894
6895         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
6896         * config/m32c/m32c.c (legal_subregs): New.
6897         (m32c_illegal_subreg_p): New.
6898         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
6899         unsupported subregs of hard regs.
6900
6901 2007-02-08  Jan Hubicka  <jh@suse.cz>
6902
6903         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
6904         the same one; always update histograms.
6905
6906 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
6907
6908         * passes.c (init_optimization_passes): Tidy comment.
6909
6910 2007-02-08  Roger Sayle  <roger@eyesopen.com>
6911
6912         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
6913         strip zero_extend, bswap and rotates from POCOUNT's argument.
6914         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
6915         zero_extend and rotates from PARITY's argument.
6916         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
6917         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
6918         of an integer constant at compile-time.
6919
6920 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
6921
6922         PR 30562
6923         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
6924         Update all users.
6925         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
6926         users.
6927         (init_alias_info):
6928         * tree-ssa-live.c (remove_unused_locals): Do not remove
6929         TREE_ADDRESSABLE variables.
6930         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
6931         * tree-ssa-operands.c (add_virtual_operand): Remove argument
6932         FOR_CLOBBER.  Update all users.
6933         If VAR has an associated alias set, add a virtual operand for
6934         it if no alias is found to conflict with the memory reference.
6935
6936 2007-02-07  Jan Hubicka  <jh@suse.cz>
6937             Robert Kidd <rkidd@crhc.uiuc.edu>
6938
6939         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
6940
6941 2007-02-07  Ian Lance Taylor  <iant@google.com>
6942
6943         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
6944
6945 2007-02-07  Roger Sayle  <roger@eyesopen.com>
6946
6947         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
6948         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
6949         tablejumpdi, movsi_to_cr_one): Remove constraints from
6950         define_expand's match_operands.
6951
6952 2007-02-07  Roger Sayle  <roger@eyesopen.com>
6953
6954         * global.c (compute_regsets): Move declatation of "i" inside of
6955         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
6956
6957 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
6958
6959         PR c++/30703
6960         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
6961         of INDIRECT_REF <RESULT_DECL>.
6962
6963         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
6964
6965 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
6966             Kaz Kojima  <kkojima@gcc.gnu.org>
6967
6968         PR target/29746
6969         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
6970         properly.
6971         (sh_initialize_trampoline): Add parentheses to avoid a warning.
6972
6973 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
6974
6975         * doc/loop.texi: Document possibility not to perform disambiguation
6976         of loops with multiple latches.
6977         * cfgloopmanip.c (alp_enum_p): Removed.
6978         (add_loop): Handle subloops.  Use get_loop_body_with_size.
6979         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
6980         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
6981         the new forwarder block.
6982         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
6983         Handle the case latch is NULL.
6984         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
6985         when marking loop exits.
6986         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
6987         be modified.
6988         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
6989         disambiguate_loops_with_multiple_latches.
6990         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
6991         before fix_loop_structure.
6992         * cfgloop.c: Include pointer-set.h and output.h.
6993         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
6994         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
6995         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
6996         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
6997         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
6998         disambiguate_multiple_latches, get_loop_body_with_size,
6999         disambiguate_loops_with_multiple_latches): New functions.
7000         (flow_loop_dump): Dump multiple latch edges.
7001         (flow_loop_nodes_find): Handle loops with multiple latches.
7002         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
7003         (glb_enum_p): Modified.
7004         (get_loop_body): Use get_loop_body_with_size.
7005         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
7006         (AVOID_CFG_MODIFICATIONS): New constant.
7007         (disambiguate_loops_with_multiple_latches, add_loop,
7008         get_loop_body_with_size): Declare.
7009         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
7010
7011 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
7012
7013         PR inline-asm/28686
7014         * global.c (compute_regsets): New function.
7015         (global_alloc): Refactored ELIMINABLE_REGSET
7016         and NO_GLOBAL_ALLOC_REGS computation out.
7017         (rest_of_handle_global_alloc): Call compute_regsets()
7018         for non-optimizing case.
7019
7020 2007-02-06  Richard Henderson  <rth@redhat.com>
7021
7022         * config/i386/constraints.md (Y2): Rename from Y.
7023         (Yi): New constraint.
7024         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
7025         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
7026         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
7027         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
7028         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
7029         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
7030         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
7031         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
7032         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
7033         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
7034         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
7035         vec_extractv2si_1): Change Y constraints to Y2.
7036         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
7037         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
7038         Change Y constraints to Y2.
7039         (sse2_loadld): Change Y constraints to x.
7040
7041 2007-02-06  Roger Sayle  <roger@eyesopen.com>
7042
7043         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
7044         (parity<mode>2): New define_expand using rs6000_emit_parity.
7045         * config/rs6000/rs6000.c (rs6000_emit_popcount,
7046         rs6000_emit_parity): New functions.
7047         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
7048         rs6000_emit_parity): Prototype here.
7049
7050 2007-02-06  Ian Lance Taylor  <iant@google.com>
7051
7052         * lower-subreg.c (simple_move_operand): Reject CONST.
7053         (resolve_clobber): Call validate_change rather than directly
7054         assigning to XEXP (pat, 0).
7055
7056 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
7057
7058         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
7059         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
7060         (tree-cfg.o): Remove hashtab.h dependency.
7061
7062         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
7063         (struct ivopts_data): Change niters to pointer_map_t.
7064         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
7065         (niter_for_exit): Create pointer_map on demand.  Change for
7066         pointer_map API.
7067         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
7068         (free_loop_data): Destroy data->niters if created and reset field.
7069         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
7070         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
7071
7072         * tree-ssa-reassoc.c: Include pointer-set.h.
7073         (bb_rank): Change to long *.
7074         (operand_rank): Change to pointer_map_t.
7075         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
7076         (insert_operand_rank): Accept long.
7077         (operand_entry_hash, operand_entry_eq): Remove.
7078         (get_rank): Return long.  Adjust for changes above.
7079         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
7080         and operand_rank.
7081         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
7082
7083         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
7084         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
7085         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
7086         is not NULL.
7087         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
7088         directly since it cannot be NULL.
7089         (get_vi_for_tree): Rewrite for pointer_map API.
7090         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
7091         (init_alias_vars): Create vi_for_tree as pointer_map.
7092         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
7093
7094         * tree-cfg.c: Don't include hashtab.h.
7095         (edge_to_cases): Declare as pointer_map.
7096         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
7097         Delete.
7098         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
7099         (start_recording_case_labels): Create edge_to_cases as pointer_map.
7100         (end_recoding_case_labels): Cleanup edge_to_cases manually before
7101         destroying it.
7102         (record_switch_edge): Delete.
7103         (get_cases_for_edge): Adjust for pointer_map API, inline
7104         record_switch_edge (rewritten for new API), remove goto.
7105
7106 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
7107
7108         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
7109         * tree-nested.c: Include pointer-set.h.
7110         (var_map_elt, var_map_eq, var_map_hash): Delete.
7111         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
7112         to pointer_map_t's.
7113         (nesting_info_bitmap_obstack): New.
7114         (lookup_field_for_decl): Adjust for pointer_map API.
7115         (lookup_tramp_for_decl): Adjust for pointer_map API.
7116         (get_nonlocal_debug_decl): Adjust for pointer_map API.
7117         (get_local_debug_decl): Adjust for pointer_map API.
7118         (convert_nl_goto_reference): Adjust for pointer_map API.
7119         (convert_nl_goto_receiver): Adjust for pointer_map API.
7120         (create_nesting_tree): Create outside GGC space.  Create bitmap on
7121         the new obstack.  Create field_map and var_map as pointer_maps.
7122         (free_nesting_tree): Adjust for changes to create_nesting_tree.
7123         (root): Delete.
7124         (lower_nested_functions): Move root here, no need to NULL it.
7125         Initialize and release the obstack.
7126
7127 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
7128
7129         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
7130         Remove prototypes and make them non-static.
7131         (struct tree_int_map): Remove.
7132         * tree.h (struct tree_int_map): Move here, turning TO into an
7133         unsigned int.
7134         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
7135
7136         * tree.h (TREE_COMPLEXITY): Remove.
7137         (struct tree_exp): Remove complexity field.
7138         * tree.c (build1_stat): Don't set it.
7139
7140 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
7141             Victor Kaplansky  <victork@il.ibm.com>
7142
7143         * tree-vectorizer.c (vect_is_simple_use): Support induction.
7144         (vect_is_simple_reduction): Support reduction with induction as
7145         one of the operands.
7146         (vect_is_simple_iv_evolution): Fix formatting.
7147         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
7148         formatting.  Don't mark induction phis for vectorization.
7149         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
7150         * tree-vect-transform.c (get_initial_def_for_induction): New function.
7151         (vect_get_vec_def_for_operand): Support induction.
7152         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
7153         induction case.
7154         (vectorizable_reduction): Support reduction with induction as one of
7155         the operands.
7156         (vectorizable_type_demotion): Use def-type of stmt argument rather
7157         than dummy def-type.
7158
7159         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
7160         flag_tree_scev_cprop.
7161         * common.opt (tree-scev-cprop): New flag.
7162
7163         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
7164         call to vect_get_new_vect_var.
7165
7166 2007-02-06  Ira Rosen  <irar@il.ibm.com>
7167
7168         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
7169         vectype is not NULL.
7170         (vect_pattern_recog_1): Likewise.
7171
7172 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7173
7174         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
7175         (fold_negate_expr): Likewise.
7176
7177 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
7178
7179         PR debug/30189
7180         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
7181         even if cv-qualification is the same.
7182
7183 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
7184
7185         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
7186         __enable_execute_stack on completion.
7187
7188 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7189
7190         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
7191         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
7192         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
7193         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
7194         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
7195         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
7196         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
7197         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
7198
7199 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7200
7201         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
7202         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
7203         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
7204         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
7205         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
7206         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
7207         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
7208         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
7209         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
7210         umuldi3_highpart_rex64, umulsi3_highpart_insn,
7211         umulsi3_highpart_zext, smuldi3_highpart_rex64,
7212         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
7213         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
7214         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
7215         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
7216         sqrtextenddfxf2_i387): Added amdfam10_decode.
7217
7218         * config/i386/athlon.md (athlon_idirect_amdfam10,
7219         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
7220         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
7221         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
7222         athlon_ivector_store_amdfam10): New define_insn_reservation.
7223         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
7224         amdfam10.
7225
7226 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7227
7228         * config/i386/athlon.md (athlon_call_amdfam10,
7229         athlon_pop_amdfam10, athlon_lea_amdfam10): New
7230         define_insn_reservation.
7231         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
7232         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
7233         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
7234
7235 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7236
7237         * config/i386/athlon.md (athlon_sseld_amdfam10,
7238         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
7239         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
7240
7241 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7242
7243         * config/i386/athlon.md (athlon_sseins_amdfam10): New
7244         define_insn_reservation.
7245         * config/i386/i386.md (sseins): Added sseins to define_attr type
7246         and define_attr unit.
7247         * config/i386/sse.md: Set type attribute to sseins for insertq
7248         and insertqi.
7249
7250 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7251
7252         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
7253         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
7254         ssecomi_load_amdfam10, ssecomi_amdfam10,
7255         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
7256         define_insn_reservation.
7257         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
7258
7259 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7260
7261         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
7262         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
7263         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
7264         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
7265         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
7266         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
7267         define_insn_reservation.
7268
7269         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
7270         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
7271         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
7272         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
7273         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
7274
7275 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7276
7277         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
7278         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
7279         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
7280         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
7281         athlon_ssemul_load_k8): Added amdfam10.
7282
7283 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7284
7285         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
7286         (x86_sse_unaligned_move_optimal): New variable.
7287
7288         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
7289         m_AMDFAM10.
7290         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
7291         for unaligned vector SSE double/single precision loads for AMDFAM10.
7292
7293 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7294
7295         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
7296         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
7297         Define TARGET_CPU_DEFAULT_amdfam10.
7298         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
7299         (processor_type): Add PROCESSOR_AMDFAM10.
7300
7301         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
7302         processor_type in config/i386/i386.h.
7303         Enable imul peepholes for TARGET_AMDFAM10.
7304
7305         * config.gcc: Add support for --with-cpu option for amdfam10.
7306
7307         * config/i386/i386.c (amdfam10_cost): New variable.
7308         (m_AMDFAM10): New macro.
7309         (m_ATHLON_K8_AMDFAM10): New macro.
7310         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
7311         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
7312         x86_promote_QImode, x86_integer_DFmode_moves,
7313         x86_partial_reg_dependency, x86_memory_mismatch_stall,
7314         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7315         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
7316         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
7317         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
7318         Enable/disable for amdfam10.
7319         (override_options): Add amdfam10_cost to processor_target_table.
7320         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
7321         processor_alias_table.
7322         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
7323         (ix86_adjust_cost): Add code for amdfam10.
7324
7325 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7326
7327         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
7328         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
7329         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
7330         * config/i386/i386.h: Add builtin definition for SSE4A.
7331         * config/i386/i386.md: Add support for ABM instructions
7332         (popcnt and lzcnt).
7333         * config/i386/sse.md: Add support for SSE4A instructions
7334         (movntss, movntsd, extrq, insertq).
7335         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
7336         Add -march=amdfam10 flag.
7337         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
7338         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
7339         and amdfam10.
7340         * doc/extend.texi: Add documentation for SSE4A builtins.
7341
7342 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
7343
7344         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
7345
7346 2007-02-05  Richard Guenther  <rguenther@suse.de>
7347
7348         * tree-vectorizer.h (vectorizable_function): Add argument type
7349         argument, change return type.
7350         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
7351         * tree-vect-transform.c (vectorizable_function): Handle extra
7352         argument, return vectorized function decl.
7353         (build_vectorized_function_call): Remove.
7354         (vectorizable_call): Handle calls with result and argument types
7355         differing.  Handle loop vectorization factor correctly.
7356         * targhooks.c (default_builtin_vectorized_function): Adjust for
7357         extra argument.
7358         * targhooks.h (default_builtin_vectorized_function): Likewise.
7359         * target.h (builtin_vectorized_function): Add argument type
7360         argument.
7361         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
7362         extra argument, allow vectorizing of lrintf.
7363         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
7364         documentation of target hook.
7365
7366 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
7367
7368         PR target/30665
7369         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
7370         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
7371         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
7372
7373 2007-02-05  Roger Sayle  <roger@eyesopen.com>
7374
7375         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
7376         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
7377         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
7378         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
7379         before canonicalizing sincos to cexpi.
7380         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
7381
7382 2007-02-05  Roger Sayle  <roger@eyesopen.com>
7383
7384         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
7385         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
7386         (alpha_init_builtins): Use alpha_add_builtins to process tables.
7387
7388 2007-02-05  Roger Sayle  <roger@eyesopen.com>
7389
7390         * mips-tfile.c (initialize_init_file): Correct endianness test.
7391
7392 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
7393
7394         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
7395         the 'y' constraint.
7396
7397 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
7398
7399         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
7400         saves in a PARALLEL before the register assignments.
7401
7402 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
7403
7404         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
7405         DWARF_FRAME_RETURN_COLUMN to be a general register.
7406         * dwarf2out.c (init_return_column_size): New function, split from...
7407         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
7408         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
7409         to be nongeneral registers.
7410         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
7411         integer registers.
7412         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
7413         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
7414
7415 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
7416
7417         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
7418
7419 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
7420
7421         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
7422         (remove_path): Use can_remove_branch_p and remove_branch instead
7423         of loop_delete_branch_edge.
7424         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
7425         (tree_transform_and_unroll_loop): Remove dead branches immediately.
7426         Update profile using scale_dominated_blocks_in_loop.
7427         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
7428         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
7429         (can_remove_branch_p, remove_branch): Declare.
7430         * tree-cfg.c (tree_can_remove_branch_p): New function.
7431         (tree_cfg_hooks): Add tree_can_remove_branch_p.
7432         * cfgrtl.c (rtl_can_remove_branch_p): New function.
7433         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
7434
7435 2007-02-05  Jan Hubicka  <jh@suse.cz>
7436
7437         PR middle-end/30696
7438         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
7439         nodes in cgraph, don't remove offline copy of the function.
7440
7441 2007-02-04  Jan Hubicka  <jh@suse.cz>
7442
7443         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
7444         vectors might cause maybe_lookup_element_for_expr to be called
7445         on non-sra-candidate.
7446
7447 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
7448
7449         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
7450         config/bfin/bfin.md, config/bfin/predicates.md: Follow
7451         spelling conventions.
7452
7453 2007-02-04  Richard Guenther  <rguenther@suse.de>
7454
7455         PR middle-end/30636
7456         * fold-const.c (try_move_mult_to_index): Make sure to not
7457         overflow one dimension of a multi-dimensional array access.
7458
7459 2007-02-04  Jan Hubicka  <jh@suse.cz>
7460
7461         * passes.c (init_optimization_passes): Reindent.
7462
7463 2007-02-04  Jan Hubicka  <jh@suse.cz>
7464             Eric Botcazou  <ebotcazou@adacore.com>
7465
7466         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
7467         (execute_fixup_cfg): Break out the abnormal goto code.
7468         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
7469         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
7470         (optimize_inline_calls): Call make_nonlocal_label_edges.
7471
7472 2007-02-04  Jan Hubicka  <jh@suse.cz>
7473
7474         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
7475         true when something was changed.
7476         (rename_ssa_copies): When something was changed, do
7477         TODO_remove_unused_locals.
7478         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
7479         add TODO_remove_unused_locals when instruction was removed.
7480
7481 2007-02-04  Jan Hubicka  <jh@suse.cz>
7482
7483         * ipa-inline.c (try_inline): Improve debug output; work on already
7484         inline edges too.
7485         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
7486         call try_inline for already inlined edges too when flattening;
7487         inline also functions that make callee growth but overall unit size
7488         reduce.
7489
7490 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
7491
7492         * config/m32c/bitops.md, config/m32c/jump.md,
7493         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
7494         config/m32r/m32r.h, config/m32r/m32r.md,
7495         config/m32r/predicates.md, config/m68hc11/larith.asm,
7496         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7497         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
7498         config/mips/mips-protos.h, config/mips/mips.c,
7499         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
7500         config/mn10300/mn10300.h, config/mn10300/predicates.md,
7501         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
7502         spelling conventions.
7503
7504         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
7505         Follow spelling conventions.
7506
7507 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
7508
7509         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
7510         warn about C++0x compatibility.
7511
7512 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
7513
7514         * config/h8300/h8300.c, config/h8300/h8300.h,
7515         config/h8300/h8300.md: Follow spelling conventions.
7516
7517 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
7518
7519         PR middle-end/30667
7520         * combine.c (try_combine): Do not substitute source operand
7521         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
7522
7523 2007-02-03  Jan Hubicka  <jh@suse.cz>
7524
7525         PR gcov-profile/30650
7526         * value-prof.c (stringop_block_profile): Fix handling of size counter;
7527         do not divide by zero for never executed counters.
7528         (tree_find_values_to_profile): Fix counters.
7529         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
7530
7531 2007-02-03  Ian Lance Taylor  <iant@google.com>
7532
7533         * lower-subreg.c (simple_move_operand): New static function,
7534         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
7535         operands.
7536         (simple_move): Call simple_move_operand.
7537         (find_decomposable_subregs): Add special handling of MEMs.
7538         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
7539         meaning of return value.  If we see a hard register, test whether
7540         it can store a word_mode value.  Change all callers.
7541
7542 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7543
7544         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
7545         ftrapv insns and expanders.
7546         (subdi3): Change define_expand operand 1 to arith11_operand, and
7547         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
7548         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
7549         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
7550         respectively.
7551
7552         PR middle-end/30174
7553         * varasm.c (notice_global_symbol): Treat global objects as weak when
7554         flag_shlib is true.
7555
7556 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7557
7558         * emit-rtl.c (dconstpi): Delete.
7559         (dconstsqrt2): New.
7560         (init_emit_once): Delete dconstpi and init dconstsqrt2.
7561         * real.h (dconstpi): Delete.
7562         (dconstsqrt2): New.
7563         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
7564         (fold_builtin_hypot): Likewise.
7565
7566 2007-02-03  Tom Tromey  <tromey@redhat.com>
7567
7568         PR driver/30246
7569         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
7570         -gcoff3, -gxcoff3, -gvms3 implies -dD.
7571
7572 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
7573
7574         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
7575         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
7576         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
7577         config/rs6000/cell.md, config/rs6000/darwin.h,
7578         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
7579         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
7580         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
7581         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
7582         typos.  Follow spelling conventions.
7583         * doc/invoke.texi: Follow spelling conventions.
7584
7585 2007-02-03  Roger Sayle  <roger@eyesopen.com>
7586
7587         * simplify-rtx.c (simplify_relational_operation_1): Implement some
7588         canonicalization transformations that attempt to simplify integer
7589         constant comparisons to become comparisons against zero.
7590
7591 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7592
7593         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
7594         fabs(x)*sqrt(2).
7595         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
7596         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
7597
7598 2007-02-02  Mike Stump  <mrs@apple.com>
7599
7600         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
7601         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
7602         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
7603         generate a branch island.
7604
7605 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
7606
7607         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
7608         (xtensa_legitimate_address_p): New.
7609         (xtensa_legitimize_address): New.
7610         (xtensa_output_addr_const_extra): New.
7611         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
7612         (BASE_REG_P): New.
7613         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
7614         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
7615         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
7616         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
7617         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
7618         (xtensa_legitimize_address): New.
7619         (xtensa_output_addr_const_extra): New.
7620
7621 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
7622
7623         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
7624
7625 2007-02-02  Ian Lance Taylor  <iant@google.com>
7626
7627         * expmed.c (expand_divmod): Add comment.
7628
7629 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
7630
7631         * emit-rtl.c (renumber_insns): Remove.
7632         * flags.h: Remove the extern for flag_renumber_insns.
7633         * rtl.h: Remove the prototype for renumber_insns.
7634         * toplev.c (flag_renumber_insns): Remove.
7635
7636 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
7637
7638         Revert for x86 darwin:
7639         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
7640
7641         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
7642         code before the following patch under TARGET_MACHO.
7643         (ix86_function_value_regno_p): Likewise.
7644
7645 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7646
7647         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
7648         COMPLEX_EXPR.
7649
7650 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7651
7652         PR target/29682
7653         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
7654         general or fp registers.  Add comments.
7655         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
7656
7657 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
7658
7659         * pointer-set.c (insert_aux): Only return insertion slot.
7660         (pointer_set_insert): Adjust.
7661         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
7662         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
7663         pointer_map_traverse): New.
7664         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
7665         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
7666         pointer_map_contains, pointer_map_traverse): Declare.
7667
7668 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7669
7670         PR middle-end/30473
7671         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
7672         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
7673
7674 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7675
7676         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
7677
7678         (struct _dep): New type.
7679         (dep_t): New typedef.
7680         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
7681         (DEP_STATUS): New access macro.  The macro with the same name was
7682         renamed to DEP_LINK_STATUS.
7683         (dep_init): Declare function
7684
7685         (struct _dep_link): New type.
7686         (dep_link_t): New typedef.
7687         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
7688         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
7689         (DEP_LINK_STATUS): New macro.
7690         (debug_dep_links): New debug function.
7691
7692         (struct _deps_list): New type.
7693         (deps_list_t): New typedef.
7694         (DEPS_LIST_FIRST): New access macro.
7695         (FOR_EACH_DEP_LINK): New cycle macro.
7696         (create_deps_list, free_deps_list, delete_deps_list): Declare
7697         functions.
7698         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
7699         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
7700         (copy_deps_list_change_con): Ditto.
7701
7702         (move_dep_link): Declare function.
7703
7704         (struct _dep_node): New type.
7705         (dep_node_t): New typedef.
7706         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
7707
7708         (struct haifa_insn_data.back_deps): New field to hold backward
7709         dependencies of the insn.
7710         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
7711         to deps_list_t.
7712         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
7713         Change its type to deps_list_t.
7714         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
7715         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
7716         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
7717
7718         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
7719
7720         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
7721
7722         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
7723         all callers.
7724         (dep_cost): Declare.
7725
7726         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
7727         (ds_to_dk, dk_to_ds): New functions.
7728
7729         (init_dep_1): New static function.
7730         (init_dep): New function.
7731         (copy_dep): New static function.
7732
7733         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
7734         functions.
7735         (detach_dep_link): New static function.
7736         (move_dep_link): New function.
7737
7738         (dep_links_consistent_p, dump_dep_links): New static functions.
7739         (debug_dep_links): New debugging function.
7740
7741         (deps_obstack, dl_obstack, dn_obstack): New static variables.
7742
7743         (alloc_deps_list, init_deps_list): New static functions.
7744         (create_deps_list): New function.
7745         (clear_deps_list): New static function.
7746         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
7747         (deps_list_consistent_p, dump_deps_list): New static functions.
7748         (debug_deps_list): New function.
7749         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
7750         functions.
7751         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
7752
7753         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
7754         use new scheduler dependencies lists.
7755         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
7756         (sched_analyze): Ditto.  Initialize dependencies lists.
7757         (add_forw_dep, compute_forward_dependences): Update to use new
7758         scheduler dependencies lists.
7759
7760         (init_dependency_caches): Init deps_obstack.
7761         (free_dependency_caches): Free deps_obstack.
7762
7763         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
7764         new scheduler dependencies lists.
7765         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
7766         (add_back_forw_dep, delete_back_forw_dep): Ditto.
7767
7768         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
7769         Update to use new scheduler dependencies lists.
7770         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
7771         (debug_dependencies): Ditto.
7772         (schedule_region): Update comments.
7773
7774         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
7775         scheduler dependencies lists.
7776         (schedule_ebb): Update comments.
7777
7778         * rtl.def (DEPS_LIST): Remove.
7779
7780         * lists.c (unused_deps_list): Remove.
7781         (free_list): Update assertions.
7782
7783         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
7784         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
7785
7786         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
7787         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
7788
7789         * haifa-sched.c (comments): Update.
7790         (insn_cost1): Remove.  Inline the code into insn_cost ().
7791         (insn_cost): Update to use new scheduler dependencies lists.  Move
7792         processing of the dependency cost to dep_cost ().
7793         (dep_cost): New function.  Use it instead of insn_cost () when
7794         evaluating cost of the dependency.  Use compatible interface to
7795         interact with the target.
7796         (priority): Update to use new scheduler dependencies lists.
7797         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
7798         with greater number of insns that depend on the insn.
7799         (schedule_insn): Update to use new scheduler dependencies lists.  Add
7800         code to free backward dependencies lists.  Inline and optimize code
7801         from resolve_dep () - see PR28071.
7802         (ok_for_early_queue_removal): Update to use new scheduler dependencies
7803         lists.  Update call to targetm.sched.is_costly_dependence hook.
7804
7805         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
7806         scheduler dependencies lists.
7807
7808         (resolve_dep): Remove.  Move the logic to schedule_insn ().
7809         (init_h_i_d): Initialize dependencies lists.
7810
7811         (process_insn_depend_be_in_spec): Rename to
7812         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
7813         dependencies lists.
7814         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
7815         Update to use new scheduler dependencies lists.
7816         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
7817
7818         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
7819         new scheduler dependencies lists.
7820         (build_intra_loop_deps): Ditto.
7821
7822         * target.h (struct _dep): Declare to use in
7823         gcc_target.sched.is_costly_dependence.
7824         (struct gcc_target.sched.adjust_cost): Fix typo.
7825         (struct gcc_target.sched.is_costly_dependence): Change signature to use
7826         single dep_t parameter instead of an equivalent triad.
7827         (struct gcc_target.sched.adjust_cost_2): Remove.
7828
7829         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
7830
7831         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
7832
7833         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
7834         documentation.
7835         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
7836
7837         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
7838         (REG_DEP_TRUE): Document.
7839
7840         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
7841         Change signature to correspond to the targetm.sched.adjust_cost hook.
7842         Update use in TARGET_SCHED_ADJUST_COST_2.
7843         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
7844         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
7845         new scheduler dependencies lists.
7846         (ia64_gen_check): Ditto.
7847
7848         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
7849         dependencies lists.
7850
7851         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
7852         signature to correspond to the targetm.sched.is_costly_dependence hook.
7853         (is_costly_group): Update to use new scheduler dependencies lists.
7854
7855         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
7856         instead of INSN_COST () macro.
7857
7858 2007-02-01  Ian Lance Taylor  <iant@google.com>
7859
7860         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
7861
7862 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
7863
7864         * pa.md (tp_load): Correct mfctl instruction syntax.
7865
7866 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
7867
7868         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
7869         altivec_padding_size calculation on AIX.  Improve comment, add
7870         assert to verify that it's right.
7871
7872         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
7873         64-bit.
7874
7875 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
7876
7877         PR inline-asm/28686
7878         * global.c (global_alloc): Add mising initialization of
7879         ELIMINABLE_REGSET.
7880
7881 2007-02-01  Roger Sayle  <roger@eyesopen.com>
7882
7883         * alias.c (init_alias_analysis): Correct whitespace.
7884         * bb-reorder.c (fix_edges_for_rarely_executed_code,
7885         partition_hot_cold_basic_blocks): Likewise.
7886         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
7887         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
7888         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
7889         fold_builtin_snprintf_chk, fold_builtin_printf,
7890         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
7891         do_mpfr_arg3, do_mpfr_sincos): Likewise.
7892         * cfgcleanup.c (cleanup_cfg): Likewise.
7893         * cfgexpand.c (tree_expand_cfg): Likewise.
7894         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
7895         * function.c (get_next_funcdef_no): Likewise.
7896         * gengtype.c (main): Likewise.
7897         * genmodes.c (main): Likewise.
7898         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
7899         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
7900         * ifcvt.c (noce_emit_move_insn): Likewise.
7901         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
7902         Likewise.
7903         * stor-layout.c (get_best_mode): Likewise.
7904         * tree-ssa-loop-niter.c (get_val_for): Likewise.
7905         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
7906         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
7907         perform_var_substitution, solve_graph): Likewise.
7908         * tree-vrp.c (vrp_finalize): Likewise.
7909
7910 2007-02-01  Ian Lance Taylor  <iant@google.com>
7911
7912         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
7913         high part of a paradoxical subreg, return a constant zero.
7914
7915 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
7916
7917         * toplev.c (lang_dependent_init): Call init_set_costs.
7918         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
7919
7920 2007-02-01  Richard Guenther  <rguenther@suse.de>
7921
7922         PR middle-end/30656
7923         * fold-const.c (fold_negate_expr): Allow negating a
7924         constant if overflow does not change.
7925
7926 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7927
7928         * doc/c-tree.texi (Expression trees): Improve markup.
7929         * doc/tm.texi (Register Classes, Addressing Modes)
7930         (Floating Point): Fix spacing after abbreviations.  Fix some
7931         typos.
7932
7933 2007-02-01  Ben Elliston  <bje@au.ibm.com>
7934
7935         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
7936         * doc/contrib.texi: Likewise.
7937         * doc/install.texi: Likewise.
7938
7939 2007-01-31  Richard Henderson  <rth@redhat.com>
7940             Ian Lance Taylor  <iant@google.com>
7941
7942         * lower-subreg.c: New file.
7943         * rtl.def (CONCATN): Define.
7944         * passes.c (init_optimization_passes): Add pass_lower_subreg and
7945         pass_lower_subreg2.
7946         * emit-rtl.c (update_reg_offset): New static function, broken out
7947         of gen_rtx_REG_offset.
7948         (gen_rtx_REG_offset): Call update_reg_offset.
7949         (gen_reg_rtx_offset): New function.
7950         * regclass.c: Revert patch of 2006-03-05, restoring
7951         reg_scan_update.
7952         (clear_reg_info_regno): New function.
7953         * dwarf2out.c (concatn_loc_descriptor): New static function.
7954         (loc_descriptor): Handle CONCATN.
7955         * common.opt (fsplit_wide_types): New option.
7956         * opts.c (decode_options): Set flag_split_wide_types when
7957         optimizing.
7958         * timevar.def (TV_LOWER_SUBREG): Define.
7959         * rtl.h (gen_reg_rtx_offset): Declare.
7960         (reg_scan_update): Declare.
7961         * regs.h (clear_reg_info_regno): Declare.
7962         * tree-pass.h (pass_lower_subreg): Declare.
7963         (pass_lower_subreg2): Declare.
7964         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
7965         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
7966         -fsplit-wide-types.
7967         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
7968         * Makefile.in (OBJS-common): Add lower-subreg.o.
7969         (lower-subreg.o): New target.
7970
7971 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
7972
7973         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
7974
7975 2007-01-31  Anatoly Sokolov <aesok@post.ru>
7976
7977         PR target/19087
7978         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
7979
7980 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7981
7982         PR middle-end/29335
7983         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
7984
7985 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
7986
7987         * cfgloop.h: Include vec-prim.h.
7988         (enum li_flags): Remove LI_ONLY_OLD.
7989         (loop_iterator): Changed.
7990         (fel_next, fel_init): Iterate over loop tree.
7991         (FOR_EACH_LOOP_BREAK): New macro.
7992         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
7993         FOR_EACH_LOOP.
7994         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
7995         * modulo-sched.c (sms_schedule): Ditto.
7996         * tree-vectorizer.c (vectorize_loops): Ditto.
7997         * doc/loop.texi: Update information on loop numbering and behavior of
7998         FOR_EACH_LOOP wrto new loops.
7999         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
8000         add_to_evolution_1): Test nestedness of loops instead of comparing
8001         their numbers.
8002         * tree-chrec.c (chrec_fold_plus_poly_poly,
8003         chrec_fold_multiply_poly_poly, chrec_evaluate,
8004         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
8005         reset_evolution_in_loop): Ditto.
8006         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
8007
8008 2007-01-31  Dirk Mueller  <dmueller@suse.de>
8009
8010         * c-common.c (warn_about_parentheses): Separate warning about
8011         un-parenthized sequence of comparison operators from the one
8012         which is supposed to warn about x <= y <= z.
8013
8014 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
8015
8016         * optabs.h (enum optab_index): Add new OTI_isinf.
8017         (isinf_optab): Define corresponding macro.
8018         * optabs.c (init_optabs): Initialize isinf_optab.
8019         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
8020         patterns.
8021         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
8022         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
8023         using isinf_optab.
8024         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
8025         expand_builtin_interclass_mathfn.
8026         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
8027         * config/i386/i386.md (UNSPEC_FXAM): New constant.
8028         (fxam<mode>2_i387): New insn pattern.
8029         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
8030         built-in functions as x87 inline asm.
8031
8032 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
8033
8034         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
8035
8036 2007-01-30  Eric Christopher  <echristo@apple.com>
8037
8038         * config.gcc: Add geode.
8039
8040 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
8041
8042         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
8043         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
8044         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
8045         value-prof.c: Fix comment typos.
8046
8047 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8048
8049         PR c++/24745
8050         * doc/invoke.texi (Wpointer-arith): Document warning.
8051
8052 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
8053
8054         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
8055         the list of discrepancies from the draft TR.
8056
8057 2007-01-30  Dirk Mueller  <dmueller@suse.de>
8058
8059         PR c++/30601
8060         * doc/invoke.texi (-Wreturn-type): Update description to
8061         match new behavior.
8062
8063 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
8064
8065         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
8066
8067 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
8068
8069         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
8070         to handle optabs that operate on floating point input argument and
8071         output to integer output.
8072         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
8073         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
8074         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
8075         expand_builtin_interclass_mathfn ().
8076         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
8077         (ilogbsi2): Remove.
8078         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
8079         ilogbl built-in functions as x87 intrinsics.
8080
8081 2007-01-30  Richard Guenther  <rguenther@suse.de>
8082
8083         PR middle-end/27657
8084         * dwarf2out.c (reference_to_unused): Query varpool if the
8085         variable was output.
8086
8087 2007-01-30  Richard Guenther  <rguenther@suse.de>
8088
8089         PR middle-end/30313
8090         * passes.c (execute_one_pass): Reset in_gimple_form to not
8091         confuse non-unit-at-a-time mode.
8092
8093 2007-01-29  Roger Sayle  <roger@eyesopen.com>
8094             Richard Guenther  <rguenther@suse.de>
8095
8096         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
8097         avoid undefined behaviour on overflow.  Use force_fit_type_double
8098         to construct the constant with the specified TREE_OVERFLOW.
8099
8100 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
8101
8102         * config/dfp-bit.c: Add parameterized support for fp exceptions.
8103         * config/dfp-bit.h: Ditto.
8104
8105 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8106
8107         * c-decl.c (pop_scope): Replace warnings with call to
8108         warn_for_unused_label.
8109         * c-common.h (warn_for_unused_label): Declare.
8110         * c-common.c (warn_for_unused_label): Define.
8111
8112 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8113
8114         * tree-optimize.c (update_inlined_to_pointers): Delete unused
8115         function.
8116
8117 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
8118
8119         * Makefile.in (USER_H): Remove decfloat.h.
8120         * ginclude/decfloat.h: Delete, moving contents to ...
8121         * ginclude/float.h: Add support for decimal floating point,
8122         guarded by __STDC_WANT_DEC_FP__.
8123
8124 2007-01-29  Mike Stump  <mrs@apple.com>
8125
8126         * doc/gccint.texi (Top): Rename Loop Representation to Loop
8127         Analysis and Representation to resolve case insensitive conflict.
8128         * doc/loop.texi (Loop Analysis and Representation): Likewise.
8129
8130 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
8131
8132         * tree.h (struct tree_memory_tag): Add aliases member.
8133         (MTAG_ALIASES): New macro.
8134         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
8135         (add_may_alias): Remove pointer-set. Update for may_aliases being
8136         a bitmap.
8137         (mark_aliases_call_clobbered): Update for may_aliases being a
8138         bitmap.
8139         (compute_tag_properties): Ditto.
8140         (create_partition_for): Ditto.
8141         (compute_memory_partitions): Ditto.
8142         (dump_may_aliases_for): Ditto.
8143         (is_aliased_with): Ditto.
8144         (add_may_alias_for_new_tag): Ditto.
8145         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
8146         (compute_is_aliased): New function.
8147         (compute_may_aliases): Call compute_is_aliased).
8148         (init_alias_info): Initialize alias_bitmap_obstack.
8149         (union_alias_set_into): New function.
8150         (compute_flow_sensitive_aliasing): Use union_aliases_into.
8151         (have_common_aliases_p): Rewrite to take two bitmaps and use
8152         intersection.
8153         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
8154         Update for bitmaps.
8155         (finalize_ref_all_pointers): Update for add_may_alias changes.
8156         (new_type_alias): Ditto.
8157         * tree-flow-inline.h (may_aliases): Return a bitmap.
8158         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
8159         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
8160         may_aliases being a bitmap.
8161         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
8162         may_aliases now returns a bitmap.
8163         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
8164         being a bitmap.
8165         * tree-ssa-operands.c (add_virtual_operand): Update for
8166         may_aliases being a bitmap.
8167
8168 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
8169
8170         PR tree-optimization/30630
8171         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
8172         variable as changed.
8173
8174 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
8175
8176         PR c++/28266
8177         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
8178         expanded only once even if an error occurs.
8179
8180 2007-01-29  Ben Elliston  <bje@au.ibm.com>
8181
8182         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
8183         (__gcov_average_profiler): Likewise.
8184         (__gcov_ior_profiler): Likewise.
8185         (__gcov_merge_ior): Likewise.
8186
8187 2007-01-28  Jan Hubicka  <jh@suse.cz>
8188
8189         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
8190         * value-prof.c (stringop_block_profile): Likewise.
8191
8192 2007-01-28  Jan Hubicka  <jh@suse.cz>
8193
8194         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
8195         variant handling histograms; add wrapper.
8196         (clear_storage_via_libcall): Export.
8197         (emit_block_move_hints): Break out from ...; add histograms.
8198         (emit_block_move): ... this one.
8199         (clear_storage_hints): Break out from ...; add histograms.
8200         (clear_storage): ... this one.
8201         (set_storage_via_memset): Handle histogram.
8202         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
8203         (clear_storage_hints, clear_storage_via_libcall): Declare.
8204         (set_storage_via_setmem): Update prototype.
8205         * doc/md.texi (movmem, setmem): Document new arguments.
8206
8207         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
8208         new histograms.
8209         (stringop_block_profile): New global function.
8210         (tree_stringops_values_to_profile): Profile block size and alignment.
8211         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
8212         HIST_TYPE_IOR.
8213         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
8214         (stringop_block_profile): Declare.
8215         * builtins.c: Include value-prof.h.
8216         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
8217         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
8218         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
8219         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
8220         * profile.c (instrument_values): Add new counters.
8221         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
8222         calls.
8223         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
8224         (tree_init_edge_profiler): Build new profilers.
8225         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
8226         (pass_tree_profile): Add dump.
8227         (tree_profile_hooks): Update.
8228         * Makefile.in (LIBGCOV): Add new constants.
8229         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
8230         __gcov_ior_profiler): New.
8231         * i386.md (movmem/setmem expanders): Add new optional arguments.
8232
8233 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
8234
8235         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
8236
8237 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
8238
8239         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
8240         (tree_unswitch_single_loop): Pass eni_size_weights to
8241         tree_num_loop_insns.
8242         * tree-ssa-loop-manip.c: Include tree-inline.h.
8243         (can_unroll_loop_p): Pass eni_size_weights to
8244         tree_num_loop_insns.
8245         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
8246         Pass eni_size_weights to estimate_num_insns.
8247         * tree.h (init_inline_once): Export.
8248         * toplev.c (backend_init): Call init_inline_once.
8249         * cgraphunit.c (cgraph_process_new_functions,
8250         cgraph_analyze_function): Pass eni_inlining_weights to
8251         estimate_num_insns.
8252         * ipa-inline.c (compute_inline_parameters): Ditto.
8253         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
8254         to estimate_num_insns.
8255         (try_unroll_loop_completely): Pass eni_size_weights to
8256         tree_num_loop_insns.
8257         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
8258         ot estimate_num_insns.
8259         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
8260         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
8261         * tree-inline.c (eni_inlining_weights, eni_size_weights,
8262         eni_time_weights): New variables.
8263         (init_inline_once): Initialize them.
8264         (struct eni_data): Mew.
8265         (estimate_num_insns_1, estimate_num_insns): Use weights.
8266         * tree-inline.h (struct eni_weights_d): New.
8267         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
8268         (estimate_num_insns): Declaration changed.
8269         * cfgloop.h (tree_num_loop_insns): Declaration changed.
8270         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
8271         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
8272
8273 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
8274
8275         * tree-data-ref.c (conflict_fn): Assert that the number of affine
8276         relations in the conflict function is valid.
8277
8278 2007-01-27  Ian Lance Taylor  <iant@google.com>
8279
8280         * common.opt: Add fstrict-overflow.
8281         * opts.c (decode_options): Set flag_strict_overflow if -O2.
8282         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
8283         (TYPE_OVERFLOW_UNDEFINED): Define.
8284         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
8285         Replace all uses.
8286         * tree.h (TYPE_TRAP_SIGNED): Don't define.
8287         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
8288         (fold_negate_expr): Likewise.
8289         (make_range): Likewise.
8290         (extract_muldiv_1): Likewise.
8291         (maybe_canonicalize_comparison): Likewise.
8292         (fold_comparison): Likewise.
8293         (fold_binary): Likewise.
8294         (tree_expr_nonnegative_p): Likewise.
8295         (tree_expr_nonzero_p): Likewise.
8296         * tree-vrp.c (compare_values): Likewise.
8297         (extract_range_from_binary_expr): Likewise.
8298         (extract_range_from_unary_expr): Likewise.
8299         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
8300         Likewise.
8301         (nowrap_type_p): Likewise.
8302         * tree-scalar-evolution.c (simple_iv): Likewise.
8303         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
8304         (build_range_check): Likewise.
8305         (extract_muldiv_1): Likewise.
8306         (fold_comparison): Likewise.
8307         * tree-vrp.c (vrp_int_const_binop): Likewise.
8308         (extract_range_from_unary_expr): Likewise.
8309         * convert.c (convert_to_integer): Likewise.
8310         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
8311         (fold_comparison): Likewise.
8312         (fold_binary): Likewise.
8313         * optabs.c (optab_for_tree_code): Likewise.
8314         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
8315         * simplify-rtx.c (simplify_const_relational_operation): Check
8316         flag_strict_overflow and flag_trapv.
8317         (simplify_const_relational_operation): Likewise.
8318         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
8319         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
8320         -fstrict-overflow.
8321
8322 2007-01-27  Roger Sayle  <roger@eyesopen.com>
8323
8324         * tree.c (tree_fold_gcd): Delete.
8325         * tree.h (tree_fold_gcd): Remove prototype.
8326         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
8327         test whether one constant integer is a multiple of another.  Instead
8328         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
8329         * fold-const.c (multiple_of_p):  We've determined both TOP and
8330         BOTTOM are integer constants so we can call int_const_binop directly
8331         instead of the more generic const_binop.
8332
8333 2007-01-27  Roger Sayle  <roger@eyesopen.com>
8334
8335         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
8336         1*X check that the constant hasn't overflowed, to preserve the
8337         TREE_OVERFLOW bit.
8338         (round_up): Provide an efficient implementation when rouding-up an
8339         INTEGER_CST to a power-of-two.
8340
8341 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8342
8343         * doc/sourcebuild.texi: Add comma for clarity.
8344         * doc/extend.texi: Fix some typos.
8345         * doc/passes.texi: Likewise.
8346         * doc/cppinternals.texi: Likewise.
8347         * doc/c-tree.texi: Likewise.
8348         * doc/tree-ssa.texi: Likewise.
8349         * doc/install.texi: Likewise.
8350
8351 2007-01-27  Jan Hubicka  <jh@suse.cz>
8352
8353         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
8354         (pass_sra): Do not require alias information.
8355         * passes.c (init_optimization_passes): Add SRA
8356
8357 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
8358
8359         * tracer.c (rest_of_handle_tracer): We already cleaned
8360         up the CFG in tracer() so don't do it here again.
8361         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
8362         cleanup_cfg here, either.  And don't call renumber_insns.
8363
8364         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
8365         and BB_HEAD are in the insn stream here.  Instead make sure
8366         that BB_INSN is valid on all insns.  Also, do check here that
8367         there are no pending branch predictions...
8368         (rtl_verify_flow_info): ...instead of doing it here.  Checks
8369         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
8370         here.
8371
8372 2007-01-26  Roger Sayle  <roger@eyesopen.com>
8373
8374         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
8375         function to simplify/factorize operand order canonicalization.
8376         (ix86_fixup_binary_operands): Reorganize using the above function.
8377         (ix86_binary_operator_ok): Likewise.
8378
8379 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
8380
8381         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
8382         file scope from optimize_attrs.
8383         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
8384         up search.
8385         (optimize_attrs): Clear insn_code_values after freeing it.
8386
8387 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
8388
8389         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
8390         a parts.base assignment.
8391
8392 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
8393
8394         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
8395         (compute_subscript_distance, initialize_data_dependence_relation,
8396         finalize_ddr_dependent, analyze_ziv_subscript,
8397         analyze_siv_subscript_cst_affine,
8398         compute_overlap_steps_for_affine_univar,
8399         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8400         analyze_siv_subscript, analyze_miv_subscript,
8401         analyze_overlapping_iterations, subscript_dependence_tester_1,
8402         compute_self_dependence, free_dependence_relation): Work
8403         with affine_fn instead of chrecs.
8404         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
8405         common_affine_function, affine_function_base,
8406         affine_function_constant_p, affine_fn_op, affine_fn_plus,
8407         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
8408         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
8409         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
8410         (all_chrecs_equal_p): Removed.
8411         * tree-data-ref.h (affine_fn, conflict_function): New types.
8412         (struct subscript): Change type of conflicting_iterations_in_a
8413         and conflicting_iterations_in_b.
8414
8415 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
8416
8417         PR other/30182
8418         * config/pa/pa.h (TARGET_HPUX_11): New.
8419         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
8420         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
8421
8422 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
8423         Richard Guenther  <rguenther@suse.de>
8424
8425         * tree-ssa-structalias.c (solve_graph): Handle case
8426         we merged the variable to another.
8427
8428 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8429
8430         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
8431         functions.
8432
8433         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
8434         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
8435
8436 2007-01-25  DJ Delorie  <dj@redhat.com>
8437
8438         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
8439         allow changes to modes which don't fit in those registers.
8440
8441         * reload1.c (choose_reload_regs): Check for invalid subregs before
8442         computing their locations, not after.
8443
8444 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
8445
8446         PR 25127
8447         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
8448         save Altivec registers in an eh_return function.
8449         (compute_vrsave_mask): Likewise.
8450         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
8451         for saving Altivec registers.
8452         (rs6000_emit_prologue): Don't allocate stack twice in
8453         eh_return function.  Correct expected value of altivec_save_offset
8454         when using save_world.  Describe save of R0 to stack when using
8455         save_world.  Describe stack pointer adjustment when using
8456         save_world.  Remove duplicated eh_return parameter register saving.
8457         Update sp_offset variable after save_world.
8458         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
8459         darwin-world.asm.
8460         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
8461         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
8462         implies Altivec.
8463
8464 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
8465
8466         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
8467
8468 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
8469
8470         PR other/30182
8471         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
8472         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
8473
8474 2007-01-25  Richard Guenther  <rguenther@suse.de>
8475
8476         * doc/invoke.texi (-Wcoverage-mismatch): Document.
8477         * common.opt (-Wcoverage-mismatch): New warning option.
8478         * coverage.c (get_coverage_counts): Ignore coverage mismatch
8479         if -Wcoverage-mismatch is given.
8480
8481 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
8482
8483         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
8484         (ipcp_driver): Change to static definition.
8485         Add dumping of the ifunctions.
8486         (constant_val_insert): Remove unused parameter. Support for SSA.
8487         (ipcp_propagate_const): Support for SSA.
8488         (ipcp_profile_bb_print): Print only analyzed nodes.
8489         (ipcp_replace_map_create): Remove support for Fortran constant
8490         for now.
8491         * ipa-prop.c (ipa_method_modify_stmt,
8492         ipa_callsite_compute_param): Support for SSA.
8493         * ipa-prop.h (ipcp_driver): Remove declaration.
8494         (IS_VALID_TREE_MAP_INDEX): Add define.
8495
8496 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
8497
8498         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
8499
8500 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8501
8502         PR middle-end/30447
8503         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
8504         constant argument to cabs and do it without checking for
8505         -funsafe-math-optimizations.
8506
8507 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
8508
8509         * c-common.h (RID_FIRST_CXX0X): New.
8510         (RID_LAST_CXX0X): New.
8511         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
8512         by -Wall.
8513         * c.opt (Wc++0x-compat): New.
8514         * doc/invoke.texi (-Wc++0x-compat): Document.
8515
8516 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8517
8518         * builtins.c (fold_builtin_carg): New.
8519         (fold_builtin_1): Use it.
8520
8521 2007-01-24  Jan Hubicka  <jh@suse.cz>
8522
8523         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
8524
8525         * ipa-inline.c (initial_insns, max_insns): Delete.
8526         (compute_max_insns): New function.
8527         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
8528         of insns as base for code growth.
8529         (cgraph_decide_inlining): Make initial_insns local; do not compute
8530         max_insns.
8531         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
8532         * doc/invoke.texi (inline-unit-growth): Update docs.
8533
8534 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8535
8536         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
8537         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
8538         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
8539         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
8540         for CPUs that have PTA_CX16 set.
8541
8542         PR middle-end/27416
8543         * gimplify.c (omp_check_private): New function.
8544         (gimplify_scan_omp_clauses): Use it for
8545         firstprivate/lastprivate/reduction.
8546
8547         PR middle-end/30494
8548         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
8549         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
8550
8551         PR middle-end/30421
8552         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
8553         If lower_lastprivate_clauses emits some statements, append them
8554         to dlist rather than body_p and to body_p append an initializer.
8555         (lower_omp_for): Adjust caller.
8556
8557 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
8558
8559         * target.h (globalize_decl_name): New.
8560         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
8561         * output.h (default_globalize_decl_name): New.
8562         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
8563         globalize_label.
8564         (globalize_decl): Ditto.
8565         (default_globalize_decl_name): New.
8566         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
8567         (ia64_handle_version_id_attribute): New.
8568         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
8569         (ia64_asm_output_external): Use globalize_decl_name instead
8570         of globalize_label.
8571         * doc/extend.texi (version_id): New pragma.
8572         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
8573
8574 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8575
8576         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
8577         _uleb128_t and _Unwind_SWord with _sleb128_t.
8578         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
8579         uw_frame_state_for, uw_update_context_1): Likewise.
8580         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
8581         * unwind-pe.h (read_uleb128, read_sleb128,
8582         read_encoded_value_with_base): Likewise.
8583         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
8584
8585 2007-01-24  Richard Guenther  <rguenther@suse.de>
8586
8587         * builtins.c (expand_builtin_cexpi): Get the fndecl
8588         for cexp in the correct way.
8589
8590 2007-01-24  Jan Hubicka  <jh@suse.cz>
8591
8592         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
8593
8594 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8595
8596         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
8597         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
8598         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
8599         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
8600         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
8601         __SIZEOF_PTRDIFF_T__.
8602         * doc/cpp.texi: Documentation for the new builtin macros added.
8603
8604 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
8605
8606         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
8607         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
8608         instead of operands[2] to avoid access past the end of array.
8609
8610 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
8611
8612         * reload1.c (emit_reload_insns): Pass the reload register
8613         for a non-spill output reload through forget_old_reloads_1.
8614
8615 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
8616
8617         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8618         _SOFT_DOUBLE if doubles use software floating-point.
8619         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
8620         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
8621         * config/rs6000/darwin-ldouble.c: Also compile functions for
8622         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
8623         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
8624         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
8625         commented-out long double override.
8626         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
8627         * config/rs6000/eabispe.h: Likewise.
8628         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
8629         long double for non-SPE.
8630         (rs6000_handle_option): Likewise.
8631         (invalid_e500_subreg): Disallow more subregs involding DImode,
8632         DFmode, TImode or TFmode.
8633         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
8634         E500 double.
8635         (legitimate_lo_sum_address_p): Also check for TFmode for E500
8636         double.
8637         (rs6000_legitimize_address): Also handle TFmode for E500 double.
8638         (rs6000_legitimize_reload_address): Also handle TFmode for E500
8639         double.
8640         (rs6000_legitimate_address): Also check for TFmode for E500
8641         double.
8642         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
8643         (spe_build_register_parallel): Handle TFmode and TCmode.
8644         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
8645         double.
8646         (function_arg): Handle TFmode and TCmode for E500 double.
8647         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
8648         in general.
8649         (print_operand): Handle TFmode and TImode for %y.
8650         (rs6000_generate_compare): Handle TFmode comparisons for E500
8651         double.
8652         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
8653         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
8654         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
8655         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
8656         TFmode for E500 double.
8657         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
8658         (floatsidf2): Enable for E500 double.
8659         (movtf_softfloat): Use rs6000_nonimmediate_operand.
8660         (extenddftf2): Change to extenddftf2_fprs.
8661         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
8662         depending on TARGET_E500_DOUBLE.
8663         (extendsftf2): Enable for E500 double.
8664         (trunctfdf2): Enable for E500 double.
8665         (trunctfsf2): Change to trunctfsf2_fprs.
8666         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
8667         depending on TARGET_E500_DOUBLE.
8668         (floatsitf2): Enable for E500 double.
8669         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
8670         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
8671         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
8672         (negtf2): Change to negtf2_internal.
8673         (negtf2): New expander.
8674         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
8675         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
8676         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
8677         (movdi_internal32): Use rs6000_nonimmediate_operand.
8678         (unnamed splitter): Likewise.
8679         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
8680         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
8681         (SPE64TF, DITI): New mode macros.
8682         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
8683         modes.
8684         (frob_tf_ti): New.
8685         (frob_<mode>_di_2): New.
8686         (frob_tf_di_8_2): New.
8687         (frob_di_df): Change to frob_di_<mode>; allow more modes.
8688         (frob_ti_tf): New.
8689         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
8690         more modes.
8691         (frob_ti_<mode>_8_2): New.
8692         (frob_ti_tf_2): New.
8693         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
8694         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
8695         TFmode.
8696         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
8697         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
8698         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
8699         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
8700         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
8701         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
8702         tsttflt_gp): New.
8703
8704 2007-01-23  Ian Lance Taylor  <iant@google.com>
8705
8706         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
8707         insn-*.o first.
8708         (OBJS-archive): Reformat, alphabetize.
8709         (OBJS): Change out_object_file to OBJS-md.
8710
8711 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
8712
8713         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
8714         JUMP_P and CALL_P predicates where applicable.
8715         * config/i386/i386.c: Ditto.
8716         * config/i386/i386.md: Ditto.
8717         * config/i386/mmx.md: Ditto.
8718         * config/i386/predicates.md: Ditto.
8719
8720 2007-01-22  Andreas Schwab  <schwab@suse.de>
8721
8722         * config/m68k/m68k.h: Fix comment.
8723
8724 2007-01-22  Jan Hubicka  <jh@suse.cz>
8725
8726         * passes.c (init_optimization_passes): Do not rerun
8727         pass_early_warn_uninitialized.
8728
8729 2007-01-22  Richard Guenther  <rguenther@suse.de>
8730
8731         PR tree-optimization/30038
8732         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
8733         function.
8734         (execute_cse_sincos_1): Likewise.
8735         (execute_cse_sincos): Likewise.
8736         (gate_cse_sincos): Likewise.
8737         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
8738         the cexpi() canonicalization of sincos().
8739         * tree-pass.h (pass_cse_sincos): Declare.
8740         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
8741
8742 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
8743
8744         PR rtl-optimization/29329
8745         * combine.c (replaced_rhs_insn): Rename to i2mod.
8746         (replaced_rhs_value): Rename to i2mod_new_rhs.
8747         (i2mod_old_rhs): New global variable.
8748         (combine_instructions): Adjust for above change.  Save a copy of
8749         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
8750         note are substituted in the second instruction.
8751         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
8752         ditch the note if it pertains to the second eliminated register
8753         and this register is mentioned in i2mod_old_rhs.
8754
8755         Revert:
8756         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8757
8758         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
8759         the insn to which the note was originally attached.
8760
8761 2007-01-21  Jan Hubicka  <jh@suse.cz>
8762
8763         * ipa-inline.c (inlining_mode): Comment, move up.
8764         (cgraph_decide_inlining_incrementally): Do not perform inlining
8765         itself; fix handling of flattening of self recursive functions.
8766         (cgraph_find_cycles): Remove.
8767         (cgraph_flatten_node): Remove.
8768         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
8769         (try_inline): New function.
8770         (cgraph_early_inlining): Update call of
8771         cgraph_decide_inlining_incrementally.  Apply inlining here.
8772         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
8773
8774 2007-01-21  Dirk Mueller  <dmueller@suse.de>
8775
8776         PR bootstrap/30511
8777         * tree-vrp.c (check_array_bounds): do not warn
8778         about ADDR_EXPR's of ARRAY_REF's which are immediately
8779         used in binary expressions.
8780
8781 2007-01-21  Ira Rosen  <irar@il.ibm.com>
8782
8783         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
8784         read_write_dep and macros for its access.
8785         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
8786         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
8787         argument, call vect_check_interleaving for every independent pair of
8788         data-refs. Mark loads that access the same memory location as a store
8789         in the loop.
8790         (vect_check_dependences): Remove.
8791         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
8792         call, fix the call to vect_analyze_data_ref_dependence.
8793         (vect_analyze_data_ref_access): For statements that access the same
8794         data-ref, check that they are not stores; for loads, check that there
8795         is no store that access the same location.
8796
8797 2007-01-20  Roger Sayle  <roger@eyesopen.com>
8798             Joseph Myers  <joseph@codesourcery.com>
8799
8800         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
8801         (-fdump-rtl-stack): Likewise.
8802         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
8803         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
8804         (-mpt-fixed): Use @minus{} for minus sign.
8805         (Using Precompiled Headers): Fix under/overfull hbox.
8806
8807 2007-01-20  Jan Hubicka  <jh@suse.cz>
8808
8809         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
8810         place within annotation.
8811
8812 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8813
8814         * pa.c (output_move_double): Change array size of xoperands to 4.
8815
8816 2007-01-20  Jan Hubicka  <jh@suse.cz>
8817
8818         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
8819         as temporary.
8820
8821 2007-01-19  Ian Lance Taylor  <iant@google.com>
8822
8823         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
8824         constant to unsigned HOST_WIDE_INT before negating.
8825
8826 2007-01-19  Ian Lance Taylor  <iant@google.com>
8827
8828         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
8829         to unsigned.
8830         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
8831         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
8832         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
8833         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
8834         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
8835         (realloc_vdef, realloc_vuse): Change second parameter to
8836         unsigned.
8837         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
8838         fields to unsigned.
8839         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
8840         unsigned. Change x and lim locals to unsigned.
8841         (realloc_vdef, realloc_vuse): Change num_elem parameter to
8842         unsigned.
8843         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
8844         (copy_virtual_operands): Change i and n locals to unsigned.
8845
8846 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8847
8848         PR middle-end/29335
8849         * builtins.c (fold_builtin_1): Handle builtin fdim.
8850
8851 2007-01-20  Jan Hubicka  <jh@suse.cz>
8852
8853         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
8854         * tree-ssa-structalias.c (compute_points_to_sets): Do call
8855         init_alias_heapvars.
8856         (init_alias_heapvars): Initialize only when not already initialized.
8857         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
8858
8859 2007-01-19  Roger Sayle  <roger@eyesopen.com>
8860
8861         * common.opt (fsigned-zeros): New command line option.
8862         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
8863         of flag_unsafe_math_optimizations.
8864         * opts.c (set_fast_math_flags): The -ffast-math command line option
8865         implies -fno-signed-zeros.
8866         (fast_math_flags_set_p): Likewise.
8867
8868         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
8869         the documentation of -ffast-math appropriately.  Wrap long lines.
8870
8871 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
8872
8873         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
8874         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
8875
8876 2007-01-19  Tomas Bily  <tbily@suse.cz>
8877
8878         * cgraphunit.c (cgraph_finalize_function): Updating of pid
8879         * tree-profile.c:
8880         (tree_init_ic_make_global_vars): New function
8881         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
8882         (tree_gen_ic_profiler): New function
8883         (tree_gen_ic_func_profiler): New function
8884         (tree_profiling): Added calling of tree_gen_ic_func_profiler
8885         (tree_profile_hooks): Added hook for indirec/virtual calls
8886         * value-prof.c (tree_find_values_to_profile): New case for
8887         indirect calls
8888         (tree_values_to_profile): Call for determining indirect/virtual
8889         counters
8890         (tree_indirect_call_to_profile): New function
8891         (tree_ic_transform): New function
8892         (tree_ic): New function
8893         (find_func_by_pid): New function
8894         (init_pid_map): New function
8895         (tree_value_profile_transformations): Added check for
8896         indirect/virtual call transformation
8897         * value-prof.h (enum hist_type): New counter type for
8898         indirect/virtual calls
8899         (profile_hooks): Added new hook for profiling indirect/virtual
8900         calls
8901         * profile.c (instrument_values): New case for indirect/virtual
8902         call added
8903         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
8904         (GCOV_COUNTER_V_INDIR): New counter type
8905         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
8906         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
8907         call added
8908         * cgraph.c: Definition of cgraph_max_pid
8909         (cgraph_create_node): Default init of pid attribute
8910         * cgraph.h: Declaration of cgraph_max_pid
8911         (struct cgraph_node): Added pid attribute
8912         * libgcov.c (__gcov_indirect_call_profiler): New function
8913         (__gcov_one_value_profiler_body): New function
8914         (__gcov_one_value_profiler): Body was moved to
8915         __gcov_one_value_profiler_body and calls it
8916
8917 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
8918
8919         * doc/gty.texi (Options): Document the mark_hook option to GTY.
8920         * gengtype.c (write_types_data, write_func_for_structure,
8921         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
8922         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
8923         (walk_type, write_func_for_structure): Generate the mark_hook if
8924         needed.
8925
8926 2007-01-19  Jan Hubicka  <jh@suse.cz>
8927
8928         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
8929         'early' argument take inlining mode argument specifying whether to
8930         inline for size/speeed or all functions; add support for flattening;
8931         improve dumpting.
8932         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
8933
8934 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8935
8936         PR c++/17947
8937         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
8938         the name of the declared identifier.
8939
8940 2007-01-19  Dirk Mueller  <dmueller@suse.de>
8941
8942         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
8943         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
8944         duplicate evaluation.
8945
8946 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
8947
8948         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
8949         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
8950         to XFMode, use acosxf2 and truncate result to requested mode.
8951         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
8952         (asin<mode>2): Similarly, with asin expanders.
8953         (*fscalexf4_i387): Rename from *fscalexf4.
8954         (expNcorexf3): New expander.
8955         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
8956         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
8957         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
8958         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
8959         patterns for SSE math.
8960         (exp10<mode>2): Similarly, with exp10 expanders.
8961         (exp2<mode>2): Similarly, with exp2 expanders.
8962         (expm1<mode>2): Similarly, with expm1 expanders.
8963         (ldexp<mode>3): Similarly, with ldexp expanders.
8964         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
8965         Use gen_truncxf<mode>2_i387_noop to truncate result.
8966
8967 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8968
8969         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
8970         for ColdFire targets.
8971
8972 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
8973             Richard Sandiford  <richard@codesourcery.com>
8974
8975         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
8976         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
8977         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
8978         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
8979         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
8980         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
8981
8982 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8983
8984         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
8985         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
8986         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
8987         (*adddi_dilshr32_cf): New pattern.
8988         (adddi3, subdi3): Remove first alternatives.
8989
8990 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8991
8992         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
8993         implemented using move.l, do not use its cc result for floating-point
8994         comparisons.
8995
8996 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8997
8998         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
8999         from accepting 's' constraints if flag_pic.
9000
9001 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
9002
9003         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
9004         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
9005         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
9006         condition from TARGET_68881 to TARGET_HARD_FLOAT.
9007
9008 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
9009
9010         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
9011         ColdFire alternatives.
9012         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
9013         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
9014         architectures that support ff1 instruction.
9015
9016 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
9017             Julian Brown  <julian@codesourcery.com>
9018
9019         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
9020         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
9021         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
9022         Add commentary.
9023
9024 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
9025
9026         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
9027         and return a bool.
9028         (output_move_const_into_data_reg, output_move_simode_const): Delete.
9029         * config/m68k/m68k.c (const_method, const_int_cost): Take a
9030         HOST_WIDE_INT instead of an rtx.
9031         (m68k_rtx_costs): Update call accordingly.
9032         (output_move_const_into_data_reg): Likewise.  Fix formatting.
9033         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
9034         Return a bool.
9035         (output_move_simode_const): Update calls after above changes.
9036         Rework to use automatic variables and predicates like MEM_P.
9037         * config/m68k/m68k.md (pushexthisi_const): Update call to
9038         valid_mov3q_const.
9039
9040 2007-01-19  Dirk Mueller  <dmueller@suse.de>
9041
9042         * tree-ssa-alias.c (perform_var_substitution): Fix typo
9043         in dump_flags test.
9044
9045 2007-01-19  Richard Guenther  <rguenther@suse.de>
9046
9047         * builtins.c (expand_builtin_cexpi): Fall back to expanding
9048         via cexp in case sincos is not available.
9049
9050 2007-01-19  Richard Guenther  <rguenther@suse.de>
9051
9052         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
9053         * defaults.h (TARGET_HAS_SINCOS): Default to off.
9054         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
9055         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
9056         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
9057         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
9058         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
9059         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
9060
9061 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
9062
9063         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
9064         New insn patterns.
9065         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
9066         (atan2xf3): Directly generate RTL pattern.
9067         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
9068         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
9069         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
9070         disable patterns for SSE math.
9071         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
9072         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
9073         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
9074         disable patterns for SSE math.
9075
9076 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
9077
9078         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
9079
9080 2007-01-18  Roger Sayle  <roger@eyesopen.com>
9081
9082         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
9083         VIEW_CONVERT_EXPR to the same type as it's operand.
9084
9085 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
9086
9087         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
9088         configured for long double 128.
9089
9090 2007-01-18  Mike Stump  <mrs@apple.com>
9091
9092         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
9093         error.
9094
9095 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
9096
9097         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
9098         type correct.
9099
9100 2007-01-18  Jan Hubicka  <jh@suse.cz>
9101
9102         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
9103         greater than NUM_VOP_FREE_BUCKETS.
9104
9105 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
9106
9107         * tree-ssa-structalias.c: Update comments.
9108         (ptabitmap_obstack): Removed.
9109         (pta_obstack): New.
9110         (oldpta_obstack): Ditto.
9111         (stats): Add a few members.
9112         (struct variable_info): Remove node, complex, address_taken, and
9113         indirect_target members. Add oldsolution member.
9114         (new_var_info): Do not initialize removed members.
9115         (constraint_expr_type): Remove INCLUDES.
9116         (constraint_graph): Add size, implicit_preds, rep,
9117         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
9118         (FIRST_REF_NODE): New macro.
9119         (LAST_REF_NODE): Ditto.
9120         (FIRST_ADDR_NODE): Ditto.
9121         (find): New function.
9122         (unite): Ditto.
9123         (dump_constraint): Do not handle INCLUDES.
9124         (insert_into_complex): Do not insert duplicate constraints.
9125         (condense_varmap_nodes): Renamed and rewritten into ...
9126         (merge_node_constraints): This. Also fix bug in handling of
9127         offseted copy constraints.
9128         (clear_edges_for_node): No longer need to deal with preds at all,
9129         or removing associated preds/succs.
9130         (merge_graph_nodes): Deal with indirect_cycles.
9131         Don't deal with predecessors.
9132         (add_implicit_graph_edge): New function.
9133         (add_pred_graph_edge): Ditto.
9134         (add_graph_edge): Don't deal with predecessors.
9135         (build_constraint_graph): Removed.
9136         (build_pred_graph): New function.
9137         (build_succ_graph): Ditto.
9138         (struct scc_info): Removed in_component. Added roots, dfs, and
9139         node_mapping. Remove visited_index, unification_queue.
9140         (scc_visit): Deal with union-find we do now.
9141         Deal with cycles with REF nodes.
9142         (collapse_nodes): Renamed and rewritten to ...
9143         (unify_nodes): This.
9144         (process_unification_queue): Removed.
9145         (topo_visit): Cleanup
9146         (do_da_constraint): Use find.
9147         (do_sd_constraint): Ditto.
9148         (do_ds_constraint): Ditto.
9149         (do_complex_constraint): Ditto.
9150         (init_scc_info): Update for removed and added members.
9151         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
9152         (find_indirect_cycles): This.
9153         (equivalence_class): New variable.
9154         (label_visit): New function.
9155         (perform_variable_substitution): Rewritten.
9156         (free_var_substitution_info): New function.
9157         (find_equivalent_node): Ditto.
9158         (move_complex_constraints): Ditto.
9159         (eliminate_indirect_cycles): Ditto.
9160         (solve_graph): Only propagate changed bits.
9161         Use indirect cycle elimination.
9162         Use find.
9163         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
9164         (tree_id_eq): Renamed to ...
9165         (tree_vi_eq): This. Update for member change
9166         (insert_id_for_tree): Renamed and rewritten to ...
9167         (insert_vi_for_tree): This.
9168         (lookup_id_for_tree): Renamed and rewritten to ...
9169         (lookup_vi_for_tree): This.
9170         (get_id_for_tree): Renamed and rewritten to ...
9171         (get_vi_for_tree): Ditto.
9172         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
9173         (process_constraint): Don't handle INCLUDES.
9174         Remove special ADDRESSOF case.
9175         (find_func_aliases): Rewrite to use vi functions instead of id
9176         ones.
9177         (create_function_info_for): Ditto.
9178         (create_variable_info_for): Ditto.
9179         (intra_create_variable_infos): Ditto.
9180         (merge_smts_into): Ditto.
9181         (find_what_p_points_to): Ditto.
9182         (init_base_vars): Ditto.
9183         (init_alias_vars): Ditto.
9184         (remove_preds_and_fake_succs): New function.
9185         (dump_sa_points_to_info): Dump new stats.
9186         (dump_solution_for_var): Use find.
9187         (set_used_smts): Fix formatting.
9188         (compute_points_to_sets): Updated for new functions.
9189         (ipa_pta_execute): Ditto.
9190
9191 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9192             Richard Sandiford  <richard@codesourcery.com>
9193
9194         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
9195         parallels.
9196         * calls.c (expand_call): If the return value is a PARALLEL,
9197         extract its first member.
9198         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
9199         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
9200         use FUNCTION_EXTRA_EPILOGUE.
9201         (m68k_function_value): Return a PARALLEL if the return value
9202         is of a pointer type.
9203         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
9204         (FUNCTION_EXTRA_EPILOGUE): Remove.
9205         * config/m68k/m68k.md (D0_REG): New constant.
9206
9207 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9208
9209         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
9210         output a NOP for empty epilogues.
9211
9212 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9213
9214         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
9215         before function.  Extend register save check to include all
9216         registers, not just integer ones.
9217
9218 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9219
9220         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
9221         (m68k_use_return_insn): ...this.
9222         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
9223         * config/m68k/m68k.c (use_return_insn): Rename to...
9224         (m68k_use_return_insn): ...this.
9225         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
9226         of USE_RETURN_INSN.
9227
9228 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9229
9230         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
9231         nearest even, fix denormal rounding overflow.
9232
9233 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9234
9235         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
9236         f%$smove and f%$move.
9237         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
9238         (extendsfdf2_cf): Use fdmove instead of f%&move.
9239         (truncdfsf2_cf): Use fsmove instead of f%$smove.
9240         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
9241
9242 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9243
9244         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
9245         GPR<-GPR moves.
9246
9247 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9248
9249         * real.h (real_format): Add a canonical_nan_lsbs_set field.
9250         (coldfire_single_format): Declare.
9251         (coldfire_double_format): Likewise.
9252         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
9253         of qnan_msb_set to determine the lower bits of a canonical
9254         NaN significand.
9255         (encode_ieee_double): Likewise.
9256         (encode_ieee_quad): Likewise.
9257         (ieee_single_format): Initialize canonical_nan_lsbs_set.
9258         (mips_single_format): Likewise.
9259         (ieee_double_format): Likewise.
9260         (mips_double_format): Likewise.
9261         (ieee_extended_motorola_format): Likewise.
9262         (ieee_extended_intel_96_format): Likewise.
9263         (ieee_extended_intel_128_format): Likewise.
9264         (ieee_extended_intel_96_round_53_format): Likewise.
9265         (ibm_extended_format): Likewise.
9266         (mips_extended_format): Likewise.
9267         (ieee_quad_format): Likewise.
9268         (mips_quad_format): Likewise.
9269         (vax_f_format): Likewise.
9270         (vax_d_format): Likewise.
9271         (vax_g_format): Likewise.
9272         (i370_single_format): Likewise.
9273         (i370_double_format): Likewise.
9274         (decimal_single_format): Likewise.
9275         (decimal_double_format): Likewise.
9276         (decimal_quad_format): Likewise.
9277         (c4x_single_format): Likewise.
9278         (c4x_extended_format): Likewise.
9279         (real_internal_format): Likewise.
9280         (coldfire_single_format): New real_format.
9281         (coldfire_double_format): Likewise.
9282         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
9283         canonical_nan_lsbs_set.
9284         (pdp11_d_format): Likewise.
9285         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
9286         if TARGET_COLDFIRE_CPU.
9287
9288 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9289
9290         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
9291         (output_call, m68k_legitimize_call_address): Declare.
9292         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
9293         parenthesees.  Add support for a 'W' constraint.
9294         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
9295         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
9296         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
9297         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
9298         variables.
9299         (override_options): Initialize them.  Do not set flag_no_function_cse
9300         for TARGET_ID_SHARED_LIBRARY.
9301         (m68k_output_pic_call): Delete.
9302         (m68k_legitimize_call_address): New function.
9303         (print_operand): Remove the %o prefix.  Handle the %p prefix.
9304         (output_call): New function.
9305         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
9306         target address from the GOT if symbolic jumps are not allowed.
9307         * config/m68k/m68k.md (call, general_operand): Do not set
9308         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
9309         Merge separate flag_pic and !flag_pic define_insns into...
9310         (*call, *call_value): ...these new patterns.  Match the address
9311         rather than the containing MEM and require it to be a call_operand.
9312         Use output_call to generate the asm template.
9313         * config/m68k/predicates.md (const_call_operand): New predicate.
9314         (call_operand): Likewise.
9315
9316 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9317
9318         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
9319         (STACK_GROWS_DOWNWARD): Define to 1.
9320         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
9321         comments, emphasizing that these values are only defaults.
9322         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
9323         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
9324
9325 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9326
9327         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
9328
9329 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9330             Richard Sandiford  <richard@codesourcery.com>
9331
9332         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
9333         (FP_REGNO_P): New macros.
9334         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
9335         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
9336         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
9337         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
9338
9339 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9340
9341         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
9342         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
9343         to $tmake_file.
9344         * config/m68k/t-floatlib: New file, extracting common code from...
9345         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
9346         * config/m68k/t-uclinux: Here.
9347         * config/m68k/fpgnulib.c: Do not compile extendeed precision
9348         routines on ColdFire targets.
9349
9350 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9351
9352         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
9353         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
9354         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
9355         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
9356         explicitly set MOTOROLA to 1.
9357         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
9358
9359 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9360             Nathan Sidwell  <nathan@codesourcery.com>
9361
9362         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
9363         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
9364         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
9365         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
9366         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
9367         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
9368         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
9369         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
9370         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
9371         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
9372         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
9373         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
9374         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
9375         (DBX_REGISTER_NUMBER): Delete.
9376         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
9377         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
9378         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
9379
9380 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9381
9382         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
9383         * config/flat.h: New file.
9384         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
9385         OBJECT_FORMAT_FLAT.
9386         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
9387         indirect references for -msep-data or -mid-shared-library.
9388         Do not use PC-relative code addresses either.
9389         * config/m68k/m68k.c (override_options): Restrict -fPIC error
9390         to -mpcrel.
9391         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
9392         for shared libraries and crt1.o for executables.  Use crti.o and
9393         crtbegin.o.
9394         (ENDFILE_SPEC): Use crtend.o and crtn.o.
9395         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
9396         Do not add -elf2flt or -shared-lib-id options here.
9397         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
9398         Pass -shared-lib-id if -mid-shared-library, taking the library
9399         identifier from -mshared-library-id if given, otherwise
9400         defaulting to 0.
9401         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
9402         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
9403         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
9404         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
9405         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
9406         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
9407         and crtend.o.
9408         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
9409         jump sequence for ISA A and ISA A+.
9410         (PICJUMP): Likewise.
9411
9412 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9413
9414         * config.gcc (m68k-*-uclinux*): Base the port on the common
9415         and m68k GNU/Linux files rather than on the generic ELF ones.
9416         * config/m68k/uclinux.h (TARGET_VERSION): Override.
9417         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
9418
9419 2007-01-18  Julian Brown  <julian@codesourcery.com>
9420             Richard Sandiford  <richard@codesourcery.com>
9421
9422         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
9423         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9424         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
9425         before redefining.
9426         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
9427         80 unconditionally.
9428         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9429
9430 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9431
9432         * doc/install.texi: Document m68k-uclinuxoldabi.
9433         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
9434         * config/m68k/uclinux-oldabi.h: New file, copied from
9435         config/m68k/uclinux.h.
9436
9437 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9438
9439         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
9440         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
9441         (m32r_compute_frame_size): Use unsigned for regno.
9442         (m32r_reload_lr): Use gen_frame_mem.
9443         (pop): New.
9444         (m32r_output_function_epilogue): Don't output the function epilogue
9445         textually here.
9446         (m32r_expand_epilogue): New.
9447         (direct_return): Return false if the function has the interrupt
9448         attribute.
9449         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
9450         * config/m32r/m32r.md (epilogue): New expander.
9451         (return_lr, return_rte): New insns.
9452         (return): Make it expander.
9453         (return_normal): New expander.
9454
9455 2007-01-18  Josh Conner  <jconner@apple.com>
9456
9457         PR target/30485
9458         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
9459         support for UNLE, UNLT, UNGE, and UNGT.
9460
9461 2007-01-18  Jan Hubicka  <jh@suse.cz>
9462
9463         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
9464         * tree-tailcall (add_virtual_phis): Likewise.
9465         (optimize_tail_call): Return TODOs.
9466         (execute_tail_calls): Return TODOs.
9467         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
9468         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
9469         changed.
9470         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
9471         Cleanup cfg using TODO.
9472         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
9473         * passes.c (execute_function_todo): When cleanup did something, remove
9474         unused locals.
9475         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
9476         (make_edges): Don't cleanup_cfg.
9477
9478 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
9479
9480         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
9481         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
9482         operate on the top of stack.
9483         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
9484         register handling of instructions that output to the second
9485         stack slot.
9486         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
9487         (move_for_stack_reg): Special-case check for dead destination
9488         stack slot for constant load of 1.0 inside UNSPEC_TAN.
9489
9490         * config/i386/i386.md (UNSPEC_TAN): New constant.
9491         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
9492         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
9493         to correctly model move of constant 1.0 to top stack slot.
9494         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
9495         (unnamed peephole2 pattern): Remove corresponding peephole2
9496         pattern that optimizes tan insn and loading of constant 1.0.
9497         (tanxf2): Use fptanxf4_i387.
9498         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
9499         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
9500         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
9501         disable patterns for SSE math.
9502         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
9503         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
9504
9505 2007-01-18  Dirk Mueller  <dmueller@suse.de>
9506             Richard Guenther <rguenther@suse.de>
9507
9508         PR diagnostic/8268
9509         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
9510         * common.opt (Warray-bounds): Add new warning option.
9511         * c-opts.c (c_common_handle_option): Define -Warray-bounds
9512         if -Wall is given.
9513         * Makefile.in: make tree-vrp.o depend on toplev.h
9514         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
9515         is enabled.
9516         (check_array_refs, check_array_bounds, check_array_ref): New.
9517
9518 2007-01-18  Jan Hubicka  <jh@suse.cz>
9519
9520         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
9521         (execute_ssa_ccp): Return flags conditionally.
9522         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
9523         changed.
9524         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
9525
9526 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
9527
9528         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
9529         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
9530
9531         * Makefile.c (GTFILES): Add cfglayout.h.
9532         * gengtype.c (open_base_files): Likewise.
9533         * cfglayout.c (cfg_layout_function_footer,
9534         cfg_layout_function_header) Reindent to make gengtype happy.
9535         * cfglayout.h (cfg_layout_function_footer,
9536         cfg_layout_function_header): Add GTY(()) marker.
9537
9538         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
9539
9540 2007-01-18  Ben Elliston  <bje@au.ibm.com>
9541
9542         * genautomata.c (write_automata): Include xstrerror output in the
9543         error message if writing the DFA description file fails.
9544
9545 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9546
9547         * config/mips/mips-protos.h (mips_output_external): Make it
9548         return void.
9549         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
9550         * config/mips/mips.c (irix_output_external_libcall): Likewise.
9551         (extern_list): Likewise.
9552         (extern_head): Likewise.
9553         (TARGET_ASM_FILE_END): Likewise.
9554         (mips_file_end): Likewise.
9555         (mips_output_external): Rewritten.
9556
9557 2007-01-18  Ben Elliston  <bje@au.ibm.com>
9558
9559         * genpreds.c (write_insn_preds_c): Only write out the function
9560         body for regclass_for_constraint if we have register constraints.
9561
9562 2007-01-17  Tom Tromey  <tromey@redhat.com>
9563
9564         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
9565         * doc/install.texi (Testing): Use sourceware.org.
9566         (Binaries): Likewise.
9567         (Specific): Likewise.
9568         * doc/contrib.texi (Contributors): Use sourceware.org.
9569
9570 2007-01-17  Anatoly Sokolov <aesok@post.ru>
9571
9572         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
9573         (AVR_ENHANCED): Rename to ...
9574         (AVR_HAVE_MUL): ... new.
9575         (avr_enhanced_p): Rename to ...
9576         (avr_have_mul_p): ... new.
9577         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
9578         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
9579         * config/avr/avr.c (avr_enhanced_p): Rename to ...
9580         (avr_have_mul_p): ... new.
9581         (base_arch_s): Rename 'enhanced' to 'have_mul'.
9582         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
9583         'avr_enhanced_p' and 'enhanced'.
9584         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
9585         AVR_HAVE_MUL instead of AVR_ENHANCED.
9586         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
9587         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
9588         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
9589         instead of AVR_ENHANCED.
9590         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
9591         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
9592         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
9593
9594 2007-01-17  Ian Lance Taylor  <iant@google.com>
9595
9596         * vec.h (VEC_reserve_exact): Define.
9597         (vec_gc_p_reserve_exact): Declare.
9598         (vec_gc_o_reserve_exact): Declare.
9599         (vec_heap_p_reserve_exact): Declare.
9600         (vec_heap_o_reserve_exact): Declare.
9601         (VEC_OP (T,A,reserve_exact)): New static inline function, three
9602         versions.
9603         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
9604         negative parameter.
9605         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
9606         (VEC_OP (T,A,copy)) [all versions]: Likewise.
9607         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
9608         * vec.c (calculate_allocation): Add exact parameter.  Change all
9609         callers.
9610         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
9611         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
9612         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
9613         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
9614         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
9615         (vec_heap_p_reserve_exact): New function.
9616         (vec_heap_o_reserve_exact): New function.
9617
9618 2007-01-17  Jan Hubicka  <jh@suse.cz>
9619
9620         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
9621
9622 2007-01-17  Eric Christopher  <echristo@apple.com>
9623
9624         * config.gcc: Support core2 processor.
9625
9626 2007-01-16  Jan Hubicka  <jh@suse.cz>
9627
9628         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
9629         the names, just unlink the chain so we don't crash on dangling pointers
9630         to dead SSA names.
9631
9632 2007-01-16  Jan Hubicka  <jh@suse.cz>
9633
9634         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
9635         * tree-pass.h: Reorder to make IPA passes appear toegher.
9636         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
9637         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
9638         parameters, do not call early inliner.
9639         * ipa-inline.c: Update comments.  Include tree-flow.h
9640         (cgraph_decide_inlining): Do not compute inlining parameters.
9641         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
9642         be called with function context set up.
9643         (pass_ipa_inline): Remove unreachable functions before pass.
9644         (cgraph_early_inlining): Simplify assuming to be called from the
9645         PM as local pass.
9646         (pass_early_inline): New pass.
9647         (cgraph_gate_ipa_early_inlining): New gate.
9648         (pass_ipa_early_inline): Turn into simple wrapper.
9649         (compute_inline_parameters): New function.
9650         (gate_inline_passes): New gate.
9651         (pass_inline_parameters): New pass.
9652         (apply_inline): Move here from tree-optimize.c
9653         (pass_apply_inline): New pass.
9654         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
9655         transforming.
9656         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
9657         doing them by hand.
9658         (tree_function_versioning): Do not allocate dummy struct function.
9659         * tree-inline.h (optimize_inline_calls): Update prototype.
9660         * tree-optimize.c (execute_fixup_cfg): Export.
9661         (pass_fixup_cfg): Remove
9662         (tree_rest_of_compilation): Do not apply inlines.
9663         * tree-flow.h (execute_fixup_cfg): Declare.
9664         * Makefile.in (gt-passes.c): New.
9665         * passes.c: Include gt-passes.h
9666         (init_optimization_passes): New passes.
9667         (nnodes, order): New static vars.
9668         (do_per_function_toporder): New function.
9669         (execute_one_pass): Dump current pass here.
9670         (execute_ipa_pass_list): Don't dump current pass here.
9671
9672 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
9673
9674         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
9675         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
9676
9677 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
9678
9679         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
9680         (strong_alias): Define.
9681         (__gcc_qmul): Provide non-FMA for soft-float.
9682         (__gcc_qdiv): Same.
9683         (__gcc_qneg): New.
9684         (__gcc_qeq): New.
9685         (__gcc_qle): New.
9686         (__gcc_qge): New.
9687         (__gcc_qunord): New.
9688         (__gcc_stoq): New.
9689         (__gcc_dtoq): New.
9690         (__gcc_qtos): New.
9691         (__gcc_qtod): New.
9692         (__gcc_qtoi): New.
9693         (__gcc_qtou): New.
9694         (__gcc_itoq): New.
9695         (__gcc_utoq): New.
9696         (fmsub): New.
9697         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
9698         soft-float functions.
9699         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
9700         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
9701         about long double soft float.
9702
9703 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
9704             Tehila Meyzels  <tehila@il.ibm.com>
9705
9706         * tree-vectorizer.h (is_pattern_stmt_p): New.
9707         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
9708         formatting (tabs instead of spaces). Cleanup and clarify setting
9709         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
9710         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
9711         (vectorizable_type_demotion): Check that types are integral.
9712         (vectorizable_type_promotion): Likewise.
9713         (vectorizable_store): Fix typo.  Eliminate new-line at end of
9714         comments.
9715
9716 2007-01-16  Jan Hubicka  <jh@suse.cz>
9717
9718         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
9719         cgraph edges too.
9720
9721 2007-01-15  Eric Christopher  <echristo@apple.com>
9722
9723         * ifcvt.c: Include vec.h, vecprim.h.
9724         (check_cond_move_block): New argument regs.
9725         Reorganize. Add registers used to regs.
9726         (cond_move_process_if_block): Use regs set above as
9727         loop bounds.
9728
9729 2007-01-15  Eric Christopher  <echristo@apple.com>
9730
9731         * config/darwin.h: Update copyright.
9732         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
9733         (LINK_COMMAND_SPEC): Add -u.
9734         (LINK_SPEC): Fix umbrella for above.
9735
9736 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
9737
9738         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
9739         glibc CVS.
9740
9741 2007-01-15  Tom Tromey  <tromey@redhat.com>
9742
9743         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
9744         * doc/install.texi (Testing): Don't mention jacks.
9745         (Configuration): Document --enable-java-maintainer-mode.  Move
9746         --with-java-home to libgcj-specific section.  Document
9747         --with-ecj-jar.
9748         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
9749
9750 2007-01-15  Jan Hubicka  <jh@suse.cz>
9751
9752         * tree-ssa-dce.c (DCE_TODOs): New.
9753         (propagate_necessity): Return if something changed.
9754         (eliminate_unnecessary_stmts): Likewise.
9755         (perform_tree_ssa_dce): Return TODO flags when needed.
9756         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
9757
9758 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
9759
9760         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
9761         (fyl2x_extend<mode>xf3_i387): New insn pattern.
9762         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
9763         patterns using X87MODEF12 mode macro.  Extend operand 1
9764         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
9765         (log10<mode>2): Ditto.
9766         (log2<mode>2): Ditto.
9767         (log1p<mode>2): Ditto.
9768         (logb<mode>2): Ditto.
9769         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
9770         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
9771         (*fxtractxf3_i387): Rename from *fxtractxf3.
9772         (fxtract_extend<mode>xf3_i387): New insn pattern.
9773         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
9774         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
9775         and gen_fyl2xxf3_i387().
9776
9777 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
9778
9779         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
9780         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
9781         get_loop_exit_edges.  Changed return type to bool.
9782         * cfgloop.h (fix_loop_placement): Declaration removed.
9783
9784 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
9785
9786         * param.h (MIN_VECT_LOOP_BOUND): New.
9787         * params.def (MIN_VECT_LOOP_BOUND): New.
9788         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
9789         argument - minimum threshold for number of iterations.
9790         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
9791         argument to declaration.
9792         * tree-vect-analyze.c (vect_analyze_operations): Check value of
9793         MIN_VECT_LOOP_BOUND.
9794         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
9795         slpeel_tree_peel_loop_to_edge with additional argument.
9796         (vect_do_peeling_for_alignment): Likewise.
9797         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
9798
9799 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
9800
9801         PR target/30413
9802         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
9803         operands of size 1.
9804
9805 2007-01-14  Jan Hubicka  <jh@suse.cz>
9806
9807         * tree-dfa.c (remove_referenced_var): New function.
9808         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
9809         prune referenced vars list too.
9810         * tree-flow.h (remove_referenced_var): Declare.
9811
9812 2007-01-14  Jan Hubicka  <jh@suse.cz>
9813
9814         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
9815         separately.
9816         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
9817         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
9818         * except.h (verify_eh_throw_table_statements): Kill prototype.
9819         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
9820         into call exrepssions.
9821         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
9822         eh trhow verifier.
9823         * tree-cfg.c: Include pointer-set.h.
9824         (verify_node_sharing): Work on pointer set.
9825         (verify_eh_throw_stmt_node): New.
9826         (verify_stmts): Use pointers sets, verify throw_stmt.
9827
9828 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
9829
9830         * ipa-reference.c (analyze_function): Consider also addresses taken
9831         in phi nodes.
9832
9833 2007-01-12  Roger Sayle  <roger@eyesopen.com>
9834
9835         * c-typeck.c (null_pointer_constant_p): Replace use of
9836         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9837         (build_c_cast): Likewise.
9838
9839 2007-01-12  Roger Sayle  <roger@eyesopen.com>
9840
9841         * tree.h (force_fit_type_double): Remove unused final argument.
9842         * c-common.c (constant_expression_warning): Replace use of
9843         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9844         (convert_and_check): Likewise.
9845         (shorten_compare): Update call to force_fit_type_double.
9846         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
9847         * convert.c (convert_to_pointer): Update call to
9848         force_fit_type_double.
9849         * fold-const.c (force_fit_type_double): Remove overflowed_const
9850         argument.
9851         (int_const_binop, fold_convert_const_int_from_int,
9852         fold_convert_const_int_from_real, fold_div_compare,
9853         fold_sign_changed_comparison, fold_unary, fold_negate_const,
9854         fold_abs_const, fold_not_const): Remove the final argument from
9855         calls to force_fit_type_double.
9856
9857 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9858
9859         * configure.ac: Set insn to "nop" for spu-*-* also.
9860         * configure: Regenerate.
9861
9862 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
9863
9864         * builtins.def : Add BUILT_IN_FREE.
9865
9866 2007-01-12  Jan Hubicka  <jh@suse.cz>
9867
9868         PR tree-optimization/30443
9869         * tree-inline.c (tree_function_versioning): Do not optimize when
9870         cloning for inlining.
9871
9872 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
9873
9874         * doc/loop.texi: Document recording of loop exits.
9875         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
9876         (update_single_exits_after_duplication,
9877         update_single_exit_for_duplicated_loop,
9878         update_single_exit_for_duplicated_loops): Removed.
9879         (duplicate_loop_to_header_edge): Do not call
9880         update_single_exits_after_duplication and
9881         update_single_exit_for_duplicated_loops.
9882         (loop_version): Do not update single_exit information.
9883         (fix_loop_structure): Use record_loop_exits instead of
9884         mark_single_exit_loops.
9885         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
9886         the lists of loop exits.
9887         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
9888         split_edge, merge_blocks): Update the lists of loop exits.
9889         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
9890         loop_optimizer_init.
9891         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
9892         of mark_single_exit_loops.
9893         (loop_optimizer_finalize): Call release_recorded_exits.
9894         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
9895         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
9896         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
9897         update single exit information.
9898         * lambda-code.c (perfect_nestify): Ditto.
9899         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
9900         (mark_single_exit_loops): Removed.
9901         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
9902         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
9903         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
9904         functions.
9905         (get_loop_exit_edges, single_exit): Use recorded exit lists.
9906         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
9907         (verify_loop_structure): Verify consistency of the exit lists.
9908         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
9909         (set_single_exit): Removed.
9910         * cfgloop.h (struct loop_exit): New function.
9911         (struct loop): single_exit_ field replaced by exits field.
9912         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
9913         (struct loops): Added exits hash.
9914         (mark_single_exit_loops, set_single_exit): Declaration removed.
9915         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
9916
9917 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9918
9919         * doc/invoke.texi: Avoid use of @headitem.
9920
9921 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9922
9923         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
9924
9925 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9926
9927         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
9928         list of targets.
9929
9930 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
9931             Richard Sandiford  <richard@codesourcery.com>
9932
9933         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
9934         * config/m68k/m68k.opt: Resort options.
9935         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
9936
9937 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
9938             Richard Sandiford  <richard@codesourcery.com>
9939
9940         * doc/invoke.texi: Document the macros that are defined by
9941         m68k's -mtune and -mhard-float options.
9942         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
9943         (m68k_cpp_cpu_family): Likewise.
9944         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
9945         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
9946         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
9947         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
9948         (m68k_cpp_cpu_family): Likewise.
9949
9950 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9951
9952         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
9953         macros besides mc68000 as tuning macros.  Use a switch statement
9954         to set them and mcpu32.
9955
9956 2007-01-12  Julian Brown  <julian@codesourcery.com>
9957
9958         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
9959         (TARGET_68040_ONLY): Rename to...
9960         (TARGET_68040): ...this.
9961         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
9962         * config/m68k/m68k.md: Likewise.
9963
9964 2007-01-12  Julian Brown  <julian@codesourcery.com>
9965             Nathan Sidwell  <nathan@codesourcery.com>
9966             Richard Sandiford  <richard@codesourcery.com>
9967
9968         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
9969         the -mcpu= argument associated with the --with-cpu setting.
9970         Define M68K_DEFAULT_TUNE to the default -mtune= option,
9971         if different from the one implied by the -mcpu setting.
9972         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
9973         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
9974         * doc/invoke.texi: Mention ColdFire in the introduction to the
9975         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
9976         -mno-div and -mhard-float options.  Make -m68881 a synonym for
9977         -mhard-float.  Document the previously-undocumented -m5206e,
9978         -m528x, -m5307 and -m5407 options.  Tweak the existing option
9979         documentation for consistency.
9980         * doc/install.texi: Mention new --with-cpu arguments.
9981         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
9982         default CPU if neither -mcpu nor -march are specified.
9983         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
9984         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
9985         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
9986         using m68k_tune to decide between families that implement the
9987         same ISA.  Use m68k_tune to set __mcfv4e__.
9988         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
9989         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
9990         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
9991         (FL_ISA_C, FL_ISA_MMU): New macros.
9992         (MASK_COLDFIRE): Delete.
9993         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
9994         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
9995         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
9996         (TARGET_HARD_FLOAT): Do not define here.
9997         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
9998         (TUNE_68000): New macro.
9999         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
10000         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
10001         (TUNE_CFV2): Redefine in terms of m68k_tune.
10002         (uarch_type, target_device, fpu_type): New enums.
10003         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
10004         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
10005         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
10006         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
10007         (FL_FOR_isa_c): New macros.
10008         (m68k_isa): New enum.
10009         (m68k_target_selection): New structure.
10010         (all_devices, all_isas, all_microarchs): New tables.
10011         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
10012         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
10013         (MASK_ALL_CPU_BITS): Delete.
10014         (m68k_find_selection): New function.
10015         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
10016         Map the legacy target options to a combination of the new ones.
10017         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
10018         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
10019         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
10020         settings.
10021         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
10022         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
10023         properties.
10024         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
10025         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
10026         * config/m68k/m68k-devices.def: New file.
10027
10028 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
10029             Nathan Sidwell  <nathan@codesourcery.com>
10030
10031         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
10032         (SUBTARGET_EXTRA_SPECS): New macros.
10033         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
10034         use %(asm_cpu_spec) instead.
10035         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
10036         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
10037         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
10038         (EXTRA_SPECS): Rename to...
10039         (SUBTARGET_EXTRA_SPECS): ...this.
10040
10041 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
10042             Richard Sandiford  <richard@codesourcery.com>
10043             Julian Brown  <julian@codesourcery.com>
10044
10045         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
10046         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
10047         to the configuration's default CPU.
10048         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
10049         Remove default masks.
10050         (m680[012]0-*-*): Set the default with_cpu to the first part of
10051         the target name.
10052         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
10053         (m68k*-*-linux): Extend the --with-cpu handling to...
10054         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
10055         and m68010.  Don't set target_cpu_default2.
10056         * doc/install.texi: Document --with-cpu for m68k.
10057         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
10058         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
10059         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
10060         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
10061         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
10062         (ASM_SPEC): Remove use of %(asm_cpu_default).
10063         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
10064         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
10065         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
10066         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
10067         __HAVE_FPU__ if TARGET_HARD_FLOAT.
10068         (TARGET_DEFAULT): Delete.
10069         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
10070         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
10071         (CPP_CPU_SPEC): Delete.
10072         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
10073         the appropriate string.
10074         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
10075         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
10076         (ASM_SPEC): Don't use %(asm_default_spec).
10077         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
10078         TARGET_DEFAULT and add MASK_68881.
10079         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
10080
10081 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
10082
10083         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
10084         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
10085         MASK_68010 alongside MASK_68020.
10086         * doc/invoke.texi: Document -m68010.
10087         * config/m68k/m68k.opt (m68010): New.
10088         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
10089         if TUNE_68010.
10090         (TUNE_68010): New macro.
10091         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
10092         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
10093         (M68K_CPU_m68332): Add MASK_68010.
10094         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
10095         fallback definition.
10096         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
10097         defines.
10098         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
10099         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
10100         to all entries that use MASK_68020.
10101         (output_move_simode_const, output_move_himode, output_move_qimode)
10102         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
10103         instead of TARGET_68020 to select clr behavior.  Remove comment
10104         about there being no TARGET_68010.
10105         * config/m68k/m68k.md: Likewise throughout.
10106
10107 2007-01-12  Julian Brown  <julian@codesourcery.com>
10108
10109         * config/m68k/m68k.h (TARGET_ISAB): New macro.
10110         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
10111         * config/m68k/m68k.md: Likewise.
10112
10113 2007-01-12  Julian Brown  <julian@codesourcery.com>
10114
10115         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
10116         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
10117
10118 2007-01-12  Julian Brown  <julian@codesourcery.com>
10119
10120         * config/m68k/m68k.h (TUNE_68040_60): New macro.
10121         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
10122         * config/m68k/m68k.md: Likewise.
10123
10124 2007-01-12  Julian Brown  <julian@codesourcery.com>
10125             Richard Sandiford  <richard@codesourcery.com>
10126
10127         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
10128         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
10129         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
10130         TARGET_CPU32.
10131         (TARGET_CPU32): Rename to...
10132         (TUNE_CPU32): ...this.
10133         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
10134         (TUNE_CFV2): New macros.
10135         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
10136         remove conditions that are implied by TARGET_68020.
10137         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
10138         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
10139         (m68k_output_function_epilogue): Likewise.
10140         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
10141         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
10142         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
10143         non-68000 timings.  Refactor multiplication and division costs.
10144         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
10145         TUNE_CPU32 instead of TARGET_CPU32.
10146         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
10147         and TUNE_68060 instead of TARGET_68060.
10148         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
10149         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
10150         TARGET_CPU32.
10151         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
10152         && !TARGET_COLDFIRE" to choose between moveq and clr.
10153         Likewise in the unnamed movsf pattern.
10154         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
10155         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
10156         ashiftrt pattern.
10157
10158 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
10159
10160         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
10161         of tabbing before backslashes.
10162
10163 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10164
10165         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
10166         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
10167         (ASM_OUTPUT_INTERNAL_LABEL): Define.
10168
10169 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
10170
10171         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
10172         find_interesting_uses_cond.
10173         (find_interesting_uses_cond): Use extract_cond_operands.
10174         (rewrite_use_compare): Use extract_cond_operands and
10175         force_gimple_operand_bsi.  Do not call update_stmt.
10176         (determine_use_iv_cost_condition): Use extract_cond_operands.
10177         Return cheaper of using original bound and changing the exit bound.
10178
10179 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
10180
10181         PR tree-optimization/29516
10182         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
10183         most_expensive_mult_to_index, addr_to_parts,
10184         create_mem_ref, maybe_fold_tmr): Make the type of
10185         fields of TARGET_MEM_REF sizetype.
10186         (move_fixed_address_to_symbol, move_pointer_to_base):
10187         New functions.
10188         * tree.def (TARGET_MEM_REF): Add comment on types of
10189         the operands.
10190
10191 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
10192
10193         * c-common.c (vector_types_convertible_p): Treat opaque types as
10194         always convertible if they have the same size, but not otherwise.
10195
10196 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
10197
10198         * ifcvt.c (struct noce_if_info): Add comments to the fields.
10199         Remove the b_unconditional field.
10200         (noce_try_sign_mask): Do not look at b_unconditional.
10201         (noce_process_if_block): Do not use merge_if_blocks.  Update
10202         the CFG here.  Do not set b_unconditional.
10203         (cond_move_process_if_block): Likewise.
10204         (find_cond_trap): Likewise.
10205         (check_cond_move_block): Require simple jump insns at the end
10206         of the basic block.
10207
10208 2007-01-11  Jan Hubicka  <jh@suse.cz>
10209
10210         PR tree-optimization/1046
10211         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
10212         when alias info is not ready.
10213         (pass_tail_recursion): Do not require aliasing.
10214         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
10215         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
10216         * tree-ssa-copy.c (pass_copy_prop): Likewise.
10217         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
10218         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
10219         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
10220         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
10221         before inlining.
10222         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
10223         When aliasing is not build, mark statement as volatile.
10224
10225 2007-01-11  Tom Tromey  <tromey@redhat.com>
10226
10227         PR preprocessor/15185, PR preprocessor/20989:
10228         * doc/cppopts.texi <-MT>: Update description of algorithm for
10229         computing default target.
10230         <-M, -MD>: Reword "basename" text.
10231
10232 2007-01-11  Roger Sayle  <roger@eyesopen.com>
10233
10234         * builtins.c (expand_builtin_pow, expand_builtin_powi,
10235         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
10236         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
10237         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
10238         fold_builtin_bswap, real_constp, fold_builtin_pow,
10239         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
10240         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
10241         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
10242         * convert.c (convert_to_pointer): Likewise.
10243         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
10244         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
10245         const_binop, fold_convert_const_int_from_int,
10246         fold_convert_const_int_from_real,
10247         fold_convert_const_real_from_real, sign_bit_p,
10248         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
10249         fold_sign_changed_comparison, fold_unary, fold_comparison,
10250         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
10251         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
10252         * print-tree.c (print_node_brief, print_node): Likewise.
10253         * stor-layout.c (place_field, layout_type): Likewise.
10254         * tree-chrec.c (keep_cast): Likewise.
10255         * tree.c (build_vector, build_real, build_real_from_int_cst,
10256         build_complex): Likewise.
10257
10258 2007-01-11  Roger Sayle  <roger@eyesopen.com>
10259
10260         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
10261         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
10262
10263 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
10264
10265         * configure.ac (strict1_warn): Rename to strict_warn.
10266         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
10267         cc_set_by_configure, quoted_cc_set_by_configure,
10268         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
10269         all_boot_languages, all_stagestuff): Remove.
10270         (target_list): Remove bootstrap targets.
10271         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
10272         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
10273         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
10274         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
10275         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
10276         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
10277         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
10278         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
10279         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
10280         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
10281         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
10282         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
10283         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
10284         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
10285         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
10286         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
10287         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
10288         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
10289         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
10290         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
10291         (mostlyclean): Adjust.
10292         (clean, distclean): Don't mention bootstrap stuff.
10293         * configure: Regenerate.
10294         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
10295         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
10296         treelang/config-lang.in (stagestuff): Remove.
10297         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
10298         stageprofile, stagefeedback, stagestuff): Remove mention.
10299
10300 2007-01-11  Nick Clifton  <nickc@redhat.com>
10301
10302         * config/mcore/predicates.md (mcore_general_movesrc_operand):
10303         Accept CONSTs.
10304         (mcore_general_movdst_operand): Do not accept CONST_INTs.
10305         (mcore_arith_K_S_operand): Run the test for the S constraint not
10306         the test for the M constraint.
10307         (mcore_addsub_operand): Do not accept integer values that are
10308         larger than 32 bits.
10309         * config/mcore/mcore.md: Remove unused constraints from split.
10310         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
10311         (addsi3): Likewise.
10312         (allocate_stack): Likewise.
10313         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
10314         operands to 32 bits.
10315         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
10316         INTVAL.
10317         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
10318         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
10319         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
10320         mcore_output_bclri, mcore_output_andn, output_inline_const,
10321         mcore_output_move, mcore_output_movedouble): Likewise.
10322         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
10323         (output_inline_const): Likewise.
10324         (output_inline_const): Fix format strings used in sprintf
10325         statements.
10326         * config/mcore/mcore-protos.h: Update prototypes for changed
10327         functions in mcore.c.
10328         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
10329         HOST_WIDE_INT and not int.
10330         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
10331         CONST_OK_FOR_N): Likewise.
10332         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
10333         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
10334         an INTVAL.
10335
10336 2007-01-10  Jan Hubicka  <jh@suse.cz>
10337
10338         * tree-vrp.c (remove_range_assertions): Release defs.
10339         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
10340         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
10341
10342 2007-01-10  Paul Brook  <paul@codesourcery.com>
10343
10344         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
10345         * config/arm/arm.md (mulsi3subsi): New insn.
10346
10347 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
10348
10349         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
10350         (tree_transform_and_unroll_loop): New.
10351         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
10352         Declare.
10353
10354 2007-01-10  Robert Kennedy <jimbob@google.com>
10355
10356         * fold-const.c (fold_comparison): Fold comparisons like (x *
10357         1000 < 0) to (x < 0).
10358
10359 2007-01-10  Ian Lance Taylor  <iant@google.com>
10360
10361         * tree-pretty-print.c (dump_generic_node): Print parentheses when
10362         operands have the same priority.
10363
10364 2007-01-10  Tom Tromey  <tromey@redhat.com>
10365
10366         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
10367         (fold_binary): Likewise.
10368         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
10369         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
10370         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
10371         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
10372         * langhooks.h (struct lang_hooks): Removed field
10373         'can_use_bit_fields_p'.
10374
10375 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
10376
10377         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
10378
10379 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
10380
10381         * function.c (get_last_funcdef_no): New function.
10382         * function.h (get_last_funcdef_no): Declare.
10383         * tree-inline.c (initialize_cfun): Add initialization.
10384         (tree_function_versioning): Cleanup.
10385
10386 2007-01-10  Jan Hubicka  <jh@suse.cz>
10387
10388         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
10389         PHIs.
10390
10391 2007-01-10  Sa Liu  <saliu@de.ibm.com>
10392             Ben Elliston  <bje@au.ibm.com>
10393
10394         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
10395         for SAVE_NONLOCAL and Pmode for any other save level.
10396         * spu-protos.h (spu_restore_stack_block): Declare.
10397         * spu.md (save_stack_block): Remove.
10398         (restore_stack_block): Call spu_restore_stack_block.
10399         * spu.c (spu_restore_stack_block): New function.
10400         (spu_expand_epilogue): Remove old comment.
10401
10402 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
10403
10404         PR tree-optimization/30322
10405         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
10406         (cand_value_at): Return the value as aff_tree.
10407         (may_eliminate_iv): Convert the bound from aff_tree to tree.
10408         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
10409         aff_combination_mult): New functions.
10410         (aff_combination_add): Use aff_combination_add_cst.
10411         (aff_combination_convert): Allow conversions to a wider type.
10412         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
10413         * tree-affine.h (aff_combination_mult): Declare.
10414
10415 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
10416
10417         * doc/tm.texi: Update documentation to reflect reality of exec
10418         and start file search behaviours. Update copyright year.
10419         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
10420         header file directories.
10421
10422 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
10423
10424         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
10425         (*cosxf2): Rename to cosxf2_i387.
10426         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
10427         using X87MODEF12 mode macro. Rename patterns to
10428         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
10429         for SSE math.
10430         (*cosdf2, *cossf2): Ditto.
10431         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
10432         to match extended input operands.
10433         (sincos<mode>3): New expander.
10434         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
10435         insn patterns and corresponding splitters.
10436
10437 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10438
10439         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
10440         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
10441
10442 2007-01-09  Nicolas Pitre  <nico@cam.org>
10443
10444         PR target/30173
10445         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
10446
10447 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
10448
10449         * target.h (struct gcc_target): New field library_rtti_comdat.
10450         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
10451         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
10452         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
10453         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
10454
10455 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
10456
10457         * doc/invoke.texi (Optimize Options): Correct description of -O0.
10458
10459 2007-01-08  Richard Guenther  <rguenther@suse.de>
10460
10461         * tree.h (force_fit_type_double): Export.
10462         (force_fit_type): Remove.
10463         * fold-const.c (force_fit_type_double): New function.
10464         (force_fit_type): Remove.
10465         (int_const_binop): Use it.
10466         (fold_convert_const_int_from_int): Likewise.
10467         (fold_convert_const_int_from_real): Likewise.
10468         (fold_div_compare): Likewise.
10469         (fold_sign_changed_comparison): Likewise.
10470         (fold_unary): Likewise.
10471         (fold_negate_const): Likewise.
10472         (fold_abs_const): Likewise.
10473         (fold_not_const): Likewise.
10474         * c-common.c (shorten_compare): Use force_fit_type_double.
10475         * convert.c (convert_to_pointer): Likewise.
10476
10477 2007-01-08  Richard Guenther  <rguenther@suse.de>
10478
10479         * tree.h (build_int_cst_wide_type): Export.
10480         * tree.c (build_int_cst_wide_type): New function.
10481         (build_int_cst_wide): Fix comment.
10482         * builtins.c (fold_builtin_object_size): Use build_int_cst
10483         to build -1 or 0 of the correct type.  Use fit_double_type
10484         to check for overflow.
10485         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
10486         to build the mask.
10487         (decode_field_reference): Likewise.
10488         (all_ones_mask_p): Likewise.
10489         (native_interpret_int): Use build_int_cst_wide_type.
10490         (fold_binary): Use build_int_cst_type to build an all-ones
10491         value.
10492         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
10493
10494 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
10495
10496         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
10497
10498 2007-01-09  Ben Elliston  <bje@au.ibm.com>
10499
10500         * genautomata.c (STATS_OPTION): New option.
10501         (stats_flag): New flag.
10502         (gen_automata_option): Handle it.
10503         (initiate_automaton_gen): Ditto.
10504         (write_automata): Output statistics only if stats_flag is
10505         set. Likewise, output time statistics only if time_flag is set.
10506         * doc/md.texi (Processor pipeline description): Document new flag.
10507
10508 2007-01-08  Richard Guenther  <rguenther@suse.de>
10509
10510         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
10511         * tree.c (build_int_cst_type): Likewise.
10512         (size_in_bytes): Don't call force_fit_type on the result.
10513         (int_fits_type_p): Use fit_double_type.
10514         * fold-const.c (fit_double_type): New function.
10515         (force_fit_type): Use it.
10516         * tree.h (fit_double_type): Export.
10517
10518 2007-01-08  Jan Hubicka  <jh@suse.cz>
10519
10520         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
10521         * ipa.c (function_and_variable_visibility): Fix return type.
10522
10523 2007-01-08  Richard Guenther  <rguenther@suse.de>
10524
10525         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
10526         of offset to build the index.
10527         * tree-pretty-print.c (dump_generic_node): Don't build negated
10528         const just for printing.
10529         * c-pretty-print.c (pp_c_integer_constant): Likewise.
10530         * builtins.c (fold_builtin_int_roundingfn): Check if result
10531         fits the type by using force_fit_type and comparing the result.
10532         * predict.c (predict_loops): Use compare_tree_int for comparison.
10533         * tree.c (build_int_cst): Fall back to integer_type_node for
10534         NULL_TREE type.
10535         (build_int_cst_wide): Assert type is non-null.
10536
10537 2007-01-08  Roberto Costa  <roberto.costa@st.com>
10538
10539         * tree-vrp.c (extract_range_from_cond_expr): New.
10540         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
10541         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
10542         as expressions.
10543         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
10544         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
10545         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
10546         used as expressions.
10547         * tree-object-size.c (cond_expr_object_size): New.
10548         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
10549
10550 2007-01-08  Jan Hubicka  <jh@suse.cz>
10551
10552         * tree-ssa-forwprop.c (forward_propagate_into_cond,
10553         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
10554         statement.
10555
10556 2007-01-08  Richard Guenther  <rguenther@suse.de>
10557
10558         PR tree-optimization/23603
10559         * tree-vrp.c (set_value_range_to_truthvalue): New function.
10560         (extract_range_from_binary): Fall back to truthvalue instead of
10561         varying for TRUTH_*_EXPR.
10562         (extract_range_from_comparison): Fall back to truthvalue instead of
10563         varying.
10564         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
10565         if all visited PHI values were constant.
10566
10567 2007-01-08  Jan Hubicka  <jh@suse.cz>
10568
10569         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
10570         (cgraph_analyze_function): break out from ...
10571         (cgraph_finalize_compilation_unit): ... here.
10572         (cgraph_expand_function): Remove forgoten commented out line.
10573         (cgraph_optimize): Analyze functions.
10574
10575 2007-01-08  Jan Hubicka  <jh@suse.cz>
10576
10577         * tree-pas.h (TODO_remove_function): New flag.
10578         (TODO_update*): Renumber.
10579         (pass_ipa_increase_alignment,
10580         pass_ipa_function_and_variable_visibility): New passes.
10581         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
10582         (cgraph_function_and_variable_visibility): Move to ipa.c
10583         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
10584         cgraph_increase_alignment.
10585         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
10586         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
10587         calling tree-inline.
10588         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
10589         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
10590         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
10591         (gate_increase_alignment): New function.
10592         (pass_ipa_increase_alignment): New pass.
10593         * ipa.c: Inline tree-pass.h and timevar.h
10594         (function_and_variable_visibility): Move here from cgraphunit.c
10595         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
10596         * passes.c (init_optimization_passes): Add the two new passes.
10597         (execute_todo): Handle cgraph_remove_functions.
10598
10599 2007-01-08  Nick Clifton  <nickc@redhat.com>
10600
10601         * config/frv/predicates.md (reg_or_0_operand): Accept
10602         CONST_DOUBLEs.
10603
10604 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
10605
10606         * config/bfin/rtems.h, config/bfin/t-rtems: New.
10607         * config.gcc: Add bfin*-rtems*.
10608
10609 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
10610
10611         * c.opt: Add -flax-vector-conversions.
10612         * c-typeck.c (convert_for_assignment): Pass flag to
10613         vector_types_convertible_p to allow emission of note.
10614         (digest_init): Likewise.
10615         * c-opts.c: Handle -flax-vector-conversions.
10616         * c-common.c (flag_lax_vector_conversions): New.
10617         (vector_types_convertible_p): Unless -flax-vector conversions
10618         has been passed, disallow conversions between vectors with
10619         differing numbers of subparts and/or element types.  If such
10620         a conversion is disallowed, possibly emit a note on the first
10621         occasion only to inform the user of -flax-vector-conversions.
10622         The new last argument specifies this.
10623         * c-common.h (flag_lax_vector_conversions): New.
10624         (vector_types_convertible_p): Add extra argument.
10625         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
10626         char_type_node for V*QI type vectors.
10627         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
10628         Update to satisfy new typechecking rules.
10629         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
10630         C and C++ variants.
10631         * doc/invoke.texi (C Dialect Options): Document
10632         -flax-vector-conversions.
10633
10634 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
10635
10636         PR tree-optimization/29877
10637         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
10638         a register variable on the RHS to not be replaceable.
10639
10640 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
10641         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
10642         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
10643         const_simm15, const_pow2, const_npow2): Added.
10644         * config/score/misc.md (insv, extv, extzv, movmemsi,
10645         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
10646         * config/score/score.c (score_address_cost, score_select_cc_mode):
10647         Added.
10648         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
10649         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
10650         Update score_print_operand.
10651         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
10652         Adjust register allocate order and update some macro define.
10653         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
10654         mdx_block_move_straight, mdx_block_move_loop_head,
10655         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
10656         mdx_block_move): Added.
10657         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
10658         mdp_limm): Updated and fix some bug and typo.
10659         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
10660         (movsf, movdf, doloop_end): Added.
10661
10662 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
10663
10664         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
10665         config/arm/thumb2.md: Fix comment typos.
10666         * doc/extend.texi: Fix a typo.
10667
10668 2007-01-07  Eric Christopher  <echristo@apple.com>
10669
10670         * configure.ac: Check for __stack_chk_fail for darwin.
10671         * configure: Regenerate.
10672
10673 2007-01-07  Richard Guenther  <rguenther@suse.de>
10674
10675         * tree-vrp.c (extract_range_from_assert): CSE calls to
10676         compare_values where possible.
10677         (extract_range_from_unary_expr): Likewise.
10678
10679 2007-01-07  Anatoly Sokolov <aesok@post.ru>
10680
10681         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
10682         * config/avr/avr.c (call_insn_operand): Delete function.
10683         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
10684         instead of register number. Use predicates.
10685         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
10686         call_insn_operand): Add.
10687
10688 2007-01-06  Jan Hubicka  <jh@suse.cz>
10689
10690         * tree-pass.h (pass_build_cgraph_edges): Declare.
10691         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
10692         (visited_nodes): Remove.
10693         (cgraph_create_edges): Move to cgraphbuild.c; rename to
10694         build_cgrpah_edges; make visited_nodes local.
10695         (cgraph_process_new_functions): DO not call initialize_inline_failed.
10696         (record_references_in_initializer): Move to cgraphbuild.c
10697         (initialize_inline_failed, rebuild_cgraph_edges,
10698         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
10699         (verify_cgraph_node): Make visited_nodes local.
10700         (cgraph_analyze_function): Do not call cgraph_create_edges and
10701         initialize_inline_failed.
10702         (cgraph_expand_function): Do not call cgraph_lower_function;
10703         assert that function is already lowered.
10704         * Makefile.in (cgraphbuild.o): New.
10705         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
10706         at the end of lowering passes.
10707
10708 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
10709
10710         * ifcvt.c (cond_move_convert_if_block): New function, code
10711         factored out from...
10712         (cond_move_process_if_block): ...here.  Call the new function
10713         on the THEN and ELSE blocks.
10714         (merge_if_block): Do not copy global_live_at_end, merge_blocks
10715         already takes care of this.
10716
10717 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10718
10719         PR c/19978
10720         * tree.h (TREE_OVERFLOW_P): New.
10721         * c-typeck.c (parser_build_unary_op): Warn only if result
10722         overflowed and operands did not.
10723         (parser_build_binary_op): Likewise.
10724         (convert_for_assignment): Remove redundant overflow_warning.
10725         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
10726
10727 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10728
10729         * c-typeck.c (store_init_value): Split over two lines to follow
10730         the GNU coding style.
10731
10732 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
10733
10734         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
10735         __GXX_EXPERIMENTAL_CXX0X__.
10736         * doc/cpp.texi: Same.
10737
10738 2007-01-05  Richard Guenther  <rguenther@suse.de>
10739
10740         PR middle-end/27826
10741         * tree.c (get_narrower): Do not construct COMPONENT_REFs
10742         with mismatched types.  Instead explicitly build a
10743         conversion NOP_EXPR.
10744
10745 2007-01-05  Ian Lance Taylor  <iant@google.com>
10746
10747         * c-common.c (decl_with_nonnull_addr_p): New function.
10748         (c_common_truthvalue_conversion): Call it.
10749         * c-typeck.c (build_binary_op): Likewise.
10750         * c-common.h (decl_with_nonnull_addr_p): Declare.
10751
10752 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
10753
10754         PR c/30360
10755         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
10756         denom against 0.0.
10757
10758 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
10759
10760         * doc/install.texi (Final install): Document the fact that
10761         the GNAT runtime should not be stripped.
10762
10763 2007-01-04  Jan Hubicka  <jh@suse.cz>
10764
10765         * tree-inline.c (fold_marked_statements): Update operand caches
10766         and EH after folding
10767
10768 2007-01-04  Ian Lance Taylor  <iant@google.com>
10769
10770         * c-common.c (check_function_nonnull): Whitespace fix.
10771
10772 2007-01-04  Jan Hubicka  <jh@suse.cz>
10773
10774         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
10775         comitted older version of patch.
10776         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
10777         function, celanup cfg and collect garbage.
10778
10779 2007-01-04  Mike Stump  <mrs@apple.com>
10780
10781         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
10782         (clean): Likewise.
10783
10784 2007-01-04  Eric Christopher  <echristo@apple.com>
10785
10786         * libgcc2.c (__bswapsi2): Use SItype.
10787         (__bswapdi2): Use DItype.
10788         * libgcc2.h: Update for above.
10789
10790 2007-01-04  Paul Brook  <paul@codesourcery.com>
10791
10792         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
10793         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
10794         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
10795         umulsidi3, umulsidi3adddi, smulsi3_highpart,
10796         umulsi3_highpart): Make conditional on !arm_arch6.
10797         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
10798         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
10799         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
10800         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
10801         umulsi3_highpart_v6): New insns.
10802
10803 2007-01-04  Roger Sayle  <roger@eyesopen.com>
10804
10805         * fold-const.c (fold_convert): When casting an expression to void,
10806         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
10807         have a type.  Instead of attempting to build a NOP_EXPR, return
10808         these "special" trees directly.
10809
10810 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
10811
10812         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
10813         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
10814         rs6000_cost->fp not 0 as adjustment for outer NEG.
10815
10816 2007-01-04  Jan Hubicka  <jh@suse.cz>
10817
10818         * cgraph.c (cgraph_release_function_body): New function.
10819         (cgraph_remove_node): Use it.
10820         * cgraph.h (cgraph_release_function_body): Declare.
10821         * cgraphunit.c (cgraph_expand_function): Use it.
10822         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
10823         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
10824         is initialized and while compilation of other function is running.
10825         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
10826         statement CFG annotations from here to ...
10827         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
10828
10829 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
10830
10831         * cfgloop.h (enum li_flags): Make the constants powers of two.
10832
10833 2007-01-04  Jan Hubicka  <jh@suse.cz>
10834
10835         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
10836         set.
10837         (fold_marked_statements): New function.
10838         (optimize_inline_calls, tree_function_versioning): Fold new statements.
10839         * tree-inline.h (copy_body_data): Add statements_to_fold.
10840
10841 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
10842
10843         * config.gcc: Mention libgcc/config.host.
10844         * Makefile.in: Update comments mentioning libgcc.
10845         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
10846         (all.cross, start.encap, rest.encap, rest.cross): Update
10847         dependencies for libgcc move.
10848         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
10849         (clean-target, clean-target-libgcc): Delete.
10850         (srcdirify, GCC_EXTRA_PARTS): New macros.
10851         (libgcc-support, libgcc.mvars): New rules.
10852         (distclean): Remove mention of mklibgcc.
10853         (install): Don't reference INSTALL_LIBGCC.
10854         (install-common): Don't reference EXTRA_PARTS.
10855         (install-libgcc, install-multilib): Delete rules.
10856         * mklibgcc.in: Delete file.
10857         * doc/configfiles.texi: Don't mention mklibgcc.
10858
10859         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
10860         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
10861         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
10862         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
10863         (mklibgcc, ldblspecs): Likewise.
10864
10865         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
10866         (posixpre.def): Use $(T).
10867         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
10868         (SHLIB_SRC, SHLIB_INSTALL): Delete.
10869         (SHLIB_LINK): Make dummy.
10870         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
10871
10872         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
10873
10874         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
10875         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
10876         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
10877         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
10878
10879         * configure.ac (all_outputs): Remove mklibgcc.
10880         * configure: Regenerated.
10881
10882 2007-01-03  Josh Conner  <jconner@apple.com>
10883
10884         PR middle-end/29683
10885         * calls.c (compute_argument_addresses): Set stack and stack_slot
10886         for partial args, too.
10887         (store_one_arg): Use locate.size.constant for the size when
10888         generating a save_area.
10889
10890 2007-01-03  Robert Kennedy <jimbob@google.com>
10891
10892         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
10893         whose definitions are deleted due to basic block merging.
10894
10895 2007-01-03  Paul Brook  <paul@codesourcery.com>
10896
10897         PR target/16634
10898         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
10899         functions.
10900         (use_return_insn): Return 0 for Thumb interrupt functions.
10901         (print_multi_reg): Add rfe argument for IRQ returns.
10902         (arm_output_epilogue): Pop interrupt return address directly into PC.
10903         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
10904
10905 2007-01-03  Paul Brook  <paul@codesourcery.com>
10906
10907         Merge from sourcerygxx-4_1.
10908         * config/arm/thumb2.md: New file.
10909         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
10910         Thumb-2.
10911         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
10912         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
10913         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
10914         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
10915         tables.
10916         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
10917         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
10918         comptibility.
10919         * config/arm/ieee754-sf.S: Ditto.
10920         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
10921         (thumb1_base_register_rtx_p): ... to this.
10922         (thumb_index_register_rtx_p): Rename...
10923         (thumb1_index_register_rtx_p): ... to this.
10924         (thumb_output_function_prologue): Rename...
10925         (thumb1_output_function_prologue): ... to this.
10926         (thumb_legitimate_address_p): Rename...
10927         (thumb1_legitimate_address_p): ... to this.
10928         (thumb_rtx_costs): Rename...
10929         (thumb1_rtx_costs): ... to this.
10930         (thumb_compute_save_reg_mask): Rename...
10931         (thumb1_compute_save_reg_mask): ... to this.
10932         (thumb_final_prescan_insn): Rename...
10933         (thumb1_final_prescan_insn): ... to this.
10934         (thumb_expand_epilogue): Rename...
10935         (thumb1_expand_epilogue): ... to this.
10936         (arm_unwind_emit_stm): Rename...
10937         (arm_unwind_emit_sequence): ... to this.
10938         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
10939         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
10940         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
10941         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
10942         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
10943         thumb2_output_casesi): New functions.
10944         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
10945         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
10946         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
10947         THUMB2_WORK_REGS): Define.
10948         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
10949         arm_condexec_mask, arm_condexec_masklen)): New variables.
10950         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
10951         (arm_override_options): Check new CPU capabilities.
10952         Set new architecture flag variables.
10953         (arm_isr_value): Handle v7m interrupt functions.
10954         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
10955         Thumb-2.
10956         (const_ok_for_arm): Handle Thumb-2 constants.
10957         (arm_gen_constant): Ditto.  Use movw when available.
10958         (arm_function_ok_for_sibcall): Return false for v7m interrupt
10959         functions.
10960         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
10961         (thumb_find_work_register, arm_load_pic_register,
10962         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
10963         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
10964         print_multi_reg, output_mov_long_double_fpa_from_arm,
10965         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
10966         output_mov_double_fpa_from_arm, output_move_double,
10967         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
10968         output_return_instruction, arm_output_function_prologue,
10969         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
10970         arm_output_mi_thunk, thumb_set_return_address): Ditto.
10971         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
10972         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
10973         (arithmetic_instr, shift_op): Use arm_shift_nmem.
10974         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
10975         '!' and 'L'.
10976         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
10977         (thumb_expand_prologue): Use thumb_set_frame_pointer.
10978         (arm_file_start): Output directive for unified syntax.
10979         (arm_unwind_emit_set): Handle stack alignment instruction.
10980         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
10981         Add v6t2, v7, v7a, v7r and v7m.
10982         (RETLDM): Add Thumb-2 code.
10983         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
10984         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
10985         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
10986         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
10987         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
10988         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
10989         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
10990         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
10991         ADJUST_INSN_LENGTH): Define.
10992         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
10993         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
10994         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
10995         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
10996         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
10997         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
10998         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
10999         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
11000         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
11001         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
11002         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
11003         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
11004         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
11005         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
11006         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
11007         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
11008         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
11009         cortex-m3.
11010         * config/arm/arm-tune.md: Regenerate.
11011         * config/arm/arm-protos.h: Update prototypes.
11012         * config/arm/vfp.md: Enable patterns for Thumb-2.
11013         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
11014         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
11015         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
11016         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
11017         * config/arm/libunwind.S: Add Thumb-2 code.
11018         * config/arm/constraints.md: Update include Thumb-2.
11019         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
11020         * config/arm/ieee754-df.S: Ditto.
11021         * config/arm/bpabi.S: Ditto.
11022         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
11023         * config/arm/predicates.md (low_register_operand,
11024         low_reg_or_int_operand, thumb_16bit_operator): New.
11025         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
11026         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
11027         * config/arm/t-arm-elf: Add armv7 multilib.
11028         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
11029         Include thumb2.md.
11030         (UNSPEC_STACK_ALIGN, ce_count): New.
11031         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
11032         arm_zero_extendsidi2, arm_zero_extendqidi2): New
11033         insns/expanders.
11034         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
11035         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
11036         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
11037         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
11038         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
11039         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
11040         insns.
11041         * doc/extend.texi: Document ARMv7-M interrupt functions.
11042         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
11043
11044 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11045
11046         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
11047         (struct _Unwind_Context): Rename args_size to flags, remove
11048         signal_frame field, add a new args_size field and version field.
11049         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
11050         _Unwind_IsExtendedContext): New inline functions.
11051         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
11052         Assume by_value array is only present if _Unwind_IsExtendedContext.
11053         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
11054         _Unwind_IsSignalFrame.
11055         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
11056         (uw_update_context_1): Use _Unwind_SetSignalFrame.
11057         (uw_init_context_1): Initialize context->flags to
11058         EXTENDED_CONTEXT_BIT.
11059         * config/rs6000/linux-unwind.h (frob_update_context): Use
11060         _Unwind_SetSignalFrame.
11061
11062 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11063
11064         PR middle-end/30353
11065         * gimplify.c (gimplify_modify_expr_complex_part): Move below
11066         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
11067         the value.
11068
11069 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
11070
11071         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
11072         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
11073         RET, AT_SP): Remove.
11074         * config/i386/i386.md (*sse_prologue_save_insn): Use return
11075         instead of RET.
11076
11077         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
11078         * cfgbuild.c (find_basic_blocks): Likewise.
11079         * cfgrtl.c (rtl_create_basic_block): Likewise.
11080         * function.c (temp_slots_at_level): Likewise.
11081         * reg-stack.c (stack_regs_mentioned): Likewise.
11082         * regclass.c (allocate_reg_info): Likewise.
11083         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
11084         set_bb_for_stmt, move_block_to_fn): Likewise.
11085         * tree-complex.c (tree_lower_complex): Likewise.
11086         * vec.h (VEC_safe_grow_cleared): New.
11087
11088         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
11089
11090 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
11091
11092         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
11093         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
11094         to loop_version.
11095         * cfgloopmanip.c (scale_loop_frequencies): Export.
11096         (loopify): Scale the frequencies by prescribed coefficients.
11097         (set_zero_probability): New function.
11098         (duplicate_loop_to_header_edge): Improve updating of frequencies.
11099         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
11100         and frequencies according to arguments.
11101         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
11102         correctly.
11103         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
11104         * modulo-sched.c (sms_schedule): Set probabilities for entering
11105         versioned loop correctly.
11106         * tree-vect-transform.c (vect_transform_loop): Ditto.
11107         * cfgloop.h (loopify, loop_version): Declaration changed.
11108         (scale_loop_frequencies): Declared.
11109
11110 2007-01-02  Jan Hubicka  <jh@suse.cz>
11111
11112         * cgraph.c: Include tree-flow.h
11113         (cgraph_add_new-function): Handle IPA_SSA mode; execute
11114         early_local_passes.
11115         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
11116         * tree-pass.h (pass_all_early_optimizations): Declare.
11117         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
11118         early_local_passes.
11119         (cgraph_analyze_function): Do early_local_passes.
11120         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
11121         Do not add referenced vars.
11122         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
11123         SSA form.
11124         (gate_all_early_local_passes): New gate.
11125         (pass_early_local_passes): Use new gate.
11126         (execute_early_local_optimizations): New functions.
11127         (gate_all_early_optimizations): New gate.
11128         (pass_all_early_optimizations): New pass.
11129         (execute_free_datastructures): Free SSA only when initialized.
11130         (gate_init_datastructures): Init only when optimizing.
11131         (tree_lowering_passes): Do early local passes when called late.
11132         * tree-profile.c (do_tree_profiling): Don't profile functions added
11133         late.
11134         (do_early_tree_profiling, pass_early_tree_profile): Kill.
11135         * tree-cfg.c (update_modified_stmts): Do not update when operands are
11136         not active.
11137         * passes.c (init_optimizations_passes): Reorder so we go into SSA
11138         during early_local_passes.
11139         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
11140
11141
11142 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
11143
11144         * Makefile.in: Update copyright year.
11145
11146 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
11147
11148         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
11149         in $(lang_checks) and check-consistency targets.
11150
11151 2007-01-02  Jan Hubicka  <jh@suse.cz>
11152
11153         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
11154         Do not add referenced vars.
11155         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
11156         are not active.
11157         * passes.c (init_optimization_passes): Put mudflap_2 after
11158         free_datastructures.
11159
11160 2007-01-02  Jan Hubicka  <jh@suse.cz>
11161
11162         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
11163         Set NOTHROW flag on call statements proved to be nothrow.
11164         Update statement of local calls so new pure/const functions are
11165         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
11166         goto receivers.
11167         (tree_rest_of_compilation): Register hooks and initialize bitmap
11168         early. Do not set after_inlining flag.
11169
11170 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
11171
11172         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
11173         HOST_BITS_PER_LONGLONG
11174
11175 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11176
11177         PR c/19977
11178         * c-typeck.c (store_init_value): Don't emit pedantic overflow
11179         warning for non-static initializers.
11180
11181 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
11182
11183         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
11184         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
11185         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
11186         Always use set_unique_reg_note to add REG_EQUAL notes.
11187
11188 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
11189
11190         Revert:
11191         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
11192
11193         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
11194         * cfgbuild.c (find_basic_blocks): Likewise.
11195         * cfgrtl.c (rtl_create_basic_block): Likewise.
11196         * function.c (temp_slots_at_level): Likewise.
11197         * reg-stack.c (stack_regs_mentioned): Likewise.
11198         * regclass.c (allocate_reg_info): Likewise.
11199         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
11200         set_bb_for_stmt, move_block_to_fn): Likewise.
11201         * tree-complex.c (tree_lower_complex): Likewise.
11202         * vec.h (VEC_safe_grow_cleared): New.
11203
11204 2007-01-02  Ian Lance Taylor  <iant@google.com>
11205
11206         * c-common.c (c_common_truthvalue_conversion): When warning about
11207         using an assignment as a truth value, set TREE_NO_WARNING.
11208
11209 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11210
11211         PR middle-end/7651
11212         * c.opt (Wold-style-declaration): New.
11213         * doc/invoke.texi (C-only Warning Options): New.
11214         (Wold-style-declaration): Document it.
11215         (Wextra): Enabled by -Wextra.
11216         * c-opts.c (c_common_post_options): Enabled by -Wextra.
11217         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
11218         -Wold-style-declaration.
11219
11220 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
11221
11222         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
11223         * cfgbuild.c (find_basic_blocks): Likewise.
11224         * cfgrtl.c (rtl_create_basic_block): Likewise.
11225         * function.c (temp_slots_at_level): Likewise.
11226         * reg-stack.c (stack_regs_mentioned): Likewise.
11227         * regclass.c (allocate_reg_info): Likewise.
11228         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
11229         set_bb_for_stmt, move_block_to_fn): Likewise.
11230         * tree-complex.c (tree_lower_complex): Likewise.
11231         * vec.h (VEC_safe_grow_cleared): New.
11232
11233 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
11234
11235         * c-common.c (c_common_nodes_and_builtins): Since variants of
11236         void_type_node get built before it is given a name, we need to
11237         give those variants the name, too.
11238         (complete_array_type): We need to work with the canonical main
11239         type of the array, from which we will build the qualified version.
11240         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
11241         * print-tree.c (print_node): Display canonical type information
11242         for each type.
11243         * stor-layout.c (layout_type): When we don't know the
11244         alignment of a type for which we're building an array, we end up
11245         guessing wrong, so make the type require structural equality.
11246         * tree.c (make_node_stat): When we build a new type, it is its
11247         own canonical type.
11248         (build_type_attribute_qual_variant): When building an attribute
11249         variant, its canonical type is the non-attribute variant. However,
11250         if the attributes are target-dependent and they differ, we need to
11251         use structural equality checks for this type.
11252         (build_qualified_type): A qualified type is not equivalent to its
11253         unqualified variant; set the canonical type appropriately.
11254         (build_distinct_type_copy): When building a distinct type from
11255         another type, the new type is its own canonical type.
11256         (build_variant_type_copy): When building a new type variant, we
11257         assume that it is equivalent to the original type.
11258         (build_pointer_type_for_mode): When building a pointer type, also
11259         build a canonical type pointer.
11260         (build_reference_type_for_mode): When building a reference type,
11261         also build a canonical type reference.
11262         (build_index_type): When we can't hash an index type (e.g.,
11263         because its maximum value is negative), the index type requires
11264         structural equality tests.
11265         (build_array_type): Build the canonical form of an array type.
11266         (build_function_type): Function types require structural equality,
11267         because they contain default arguments, attributes, etc.
11268         (build_method_type_directly): Ditto for method types.
11269         (build_offset_type): Build the canonical offset type.
11270         (build_complex_type): Build the canonical vector type.
11271         (make_vector_type): Build the canonical vector type.
11272         * tree.h (TYPE_CANONICAL): New.
11273         (TYPE_STRUCTURAL_EQUALITY_P): New.
11274         (SET_TYPE_STRUCTURAL_EQUALITY): New.
11275         (struct tree_type): Added "canonical" field.
11276         * params.h (VERIFY_CANONICAL_TYPES): New.
11277         * doc/c-tree.texi (TYPE_CANONICAL): Document.
11278         (TYPE_STRUCTURAL_EQUALITY_P): Document.
11279         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
11280         * doc/invoke.texi (verify-canonical-types): Document --param
11281         parameter for verifying canonical types.
11282
11283 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
11284
11285         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
11286         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
11287         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
11288         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
11289         tm_file.
11290         * config/rs6000/e500.h: New.
11291         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
11292         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
11293         Remove.
11294         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
11295         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
11296         TARGET_E500_DOUBLE): Remove.
11297         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
11298         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
11299         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
11300         * config/rs6000/rs6000.c (rs6000_override_options): Use
11301         CHECK_E500_OPTIONS.
11302
11303 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
11304
11305         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
11306         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
11307         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
11308         rs6000_emit_cmove): Don't check TARGET_E500.
11309         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
11310         sordered): Don't check TARGET_E500.
11311
11312 2007-01-01  Eric Christopher  <echristo@apple.com>
11313
11314         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
11315         HARD_REGISTER_NUM_P.
11316
11317 2007-01-01  Roger Sayle  <roger@eyesopen.com>
11318
11319         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
11320         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
11321         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
11322         eq/ne Y".
11323
11324 2007-01-01  Mike Stump  <mrs@apple.com>
11325
11326         * configure.ac: Remove support for building with Apple's gcc-3.1.
11327
11328 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
11329
11330         PR middle-end/30311
11331         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
11332         REG is a hard register.  Do not modify REG before calling
11333         subreg_nregs.
11334         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
11335         multiple of the size of YMODE for certain lowpart cases.
11336
11337 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
11338
11339         PR middle-end/30253
11340         * gimplify (voidify_wrapper_expr): Update for
11341         GIMPLE_MODIFY_STMT.
11342
11343 2007-01-01  Andreas Schwab  <schwab@suse.de>
11344
11345         PR target/29166
11346         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
11347         save of BR0 in extra_spill_size instead of spill_size.
11348         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
11349         area.
11350         (ia64_expand_epilogue): Restore BR0 from its new location.
11351
11352 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
11353
11354         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
11355         Use a temporary variable if the left hand side is not a gimple
11356         register.
11357
11358 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
11359
11360         * gimplify.c (gimplify_return_expr): Make the temporary variable
11361         for the return expression, a gimple register variable.
11362
11363 2007-01-01  Jan Hubicka  <jh@suse.cz>
11364
11365         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
11366         INSN_LIST.
11367
11368 2007-01-01  Mike Stump  <mrs@apple.com>
11369
11370         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
11371         .literal16.
11372         * config/darwin.c (machopic_select_rtx_section): Use
11373         HAVE_GAS_LITERAL16.
11374         (darwin_mergeable_constant_section): Likewise.
11375         * configure: Regenerate.
11376         * config.in: Regenerate.
11377
11378 2007-01-01  Jan Hubicka  <jh@suse.cz>
11379             Andrew Pinski  <pinskia@gmail.com>
11380
11381         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
11382         before starting IPA passes.