OSDN Git Service

2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2
3         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
4         (GENERIC_NEXT): New function macro.
5         (PHI_CHAIN): Use phi_node's new chain variable.
6         (tree_phi_node): Change tree_common to tree_base
7         and add the chain field.
8         * tree-phinodes.c (make_phi_node): Don't set
9         TREE_TYPE on the new node.
10         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
11         instead of checking GIMPLE_TUPLE_P in chain_next.
12         * tree-vect-transform.c
13         (get_initial_def_for_induction): Look at
14         PHI_RESULT_TREE for the type of the phi node.
15         (update_vuses_to_preheader): Use PHI_CHAIN
16         instead of TREE_CHAIN on the phi node.
17         * tree-ssa-structalias.c (compute_points_to_sets):
18         Likewise.
19         (ipa_pta_execute): Likewise.
20
21 2007-04-21  Richard Guenther  <rguenther@suse.de>
22
23         PR middle-end/31136
24         * fold-const.c (fold_unary): Call fold_convert_const on the
25         original tree.
26
27 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
28
29         * gcse.c (store_killed_in_insn): Handle PARALLELs.
30         (store_killed_in_pat): New.
31
32 2007-04-20  Richard Henderson  <rth@redhat.com>
33
34         PR target/31628
35         * config/i386/i386.c (type_has_variadic_args_p): Look for any
36         TREE_LIST with a void_type_node value, not void_list_node exactly.
37
38 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
39
40         * doc/standards.texi: Re-arrange into language-specific
41         subsections. Add a C++ section, documenting which standards we
42         support.
43
44 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
45
46         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
47         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
48
49 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
50
51         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
52         ecrti.o and crtbegin.o.
53         (LIB_DEFAULT_SPEC): Include -lc.
54         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
55
56 2007-04-20  Richard Henderson  <rth@redhat.com>
57
58         PR target/28623
59         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
60         argument; update all callers.
61         (get_unaligned_offset): New.
62         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
63         get_unaligned_address, just pass on the address directly.
64         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
65         the subreg in the helper patterns.
66         (unaligned_extendqidi_le): Use get_unaligned_offset.
67         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
68         (unaligned_extendhidi_be): Likewise.
69         (unaligned_extendhidi): Tidy.
70         * config/alpha/alpha-protos.h: Update.
71
72 2007-04-20  Richard Henderson  <rth@redhat.com>
73
74         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
75         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
76         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
77         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
78         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
79         (CPP_SPEC): Don't include %(cpp_subtarget).
80         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
81         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
82         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
83
84 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
85
86         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
87         for __builtin_ia32_cmpordss.
88
89         PR tree-optimization/31632
90         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
91         and arg1 for optimizations of comparison against min/max values.
92         Fold arg0 to arg1's type for optimizations of comparison against
93         min+1 and max-1 values.
94
95 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
96
97         * reload.c (combine_reloads): When trying to use a dying register,
98         check whether it's uninitialized and don't use if so.
99
100 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
101
102         * fold-const.c: Remove prototypes for native_encode_expr and
103         native_interpret_expr.
104         (native_encode_expr): Make non-static.
105         (native_interpret_expr): Likewise.
106         * tree.h: Add prototypes for the above.
107
108 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
109
110         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
111         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
112         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
113         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
114         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
115         Add length attributes.
116
117 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
118
119         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
120         not that it is 1.
121
122         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
123         __STDC_WANT_DEC_FP__.
124
125 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
126
127         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
128         for long double compatibility.
129         * configure: Regenerate.
130
131 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
132
133         PR rtl-optimization/29841
134         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
135         trap instructions.
136         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
137         that may cause control flow transfer from being moved.
138
139 2007-04-18  Jan Hubicka  <jh@suse.cz>
140
141         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
142         types.
143
144 2007-04-18  Eric Christopher  <echristo@apple.com>
145
146         * config/rs6000/darwin.md (load_macho_picbase): Use link register
147         only. Update operands.
148         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
149         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
150         link register to pic register.
151
152 2007-04-18  Dirk Mueller  <dmueller@suse.de>
153
154         PR diagnostic/31227
155         * tree-vrp.c (search_for_addr_array): New.
156         (check_array_bounds): Suppress warning about
157         address taken of array refs if its not de-referenced.
158
159 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
160
161         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
162         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
163
164         * tree-vectorizer.h (NITERS_KNOWN_P): New.
165         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
166         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
167
168         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
169         dump print.
170         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
171         print message.
172         (vect_analyze_scalar_cycles): Fix indentation.
173         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
174         (vect_mark_relevant): Include phis in relevance analysis.
175
176         * tree-vect-transform.c (vect_transform_loop): Add an assert.
177
178 2007-04-18  Anatoly Sokolov <aesok@post.ru>
179
180         * config/avr/avr.c (ptrreg_to_str): Replace error() with
181         output_operand_lossage().
182
183 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
184
185         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
186         the unused code for reduction without adjust-in-epilog to simplify the
187         function.
188
189 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
190
191         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
192         (S390_TDC_NEGATIVE_ZERO): New constant.
193         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
194         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
195         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
196         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
197         (S390_TDC_POSITIVE_INFINITY): New constant.
198         (S390_TDC_NEGATIVE_INFINITY): New constant.
199         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
200         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
201         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
202         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
203         (S390_TDC_INFINITY): New constant.
204         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
205         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
206         optimization for UNSPEC_CCZ_TO_INT.
207         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
208         ("*ccz_to_int"): New insn.
209         ("isinf<mode>2"): New insn.
210         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
211         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
212         (UNSPEC_CCZ_TO_INT): New constant.
213
214 2007-04-18  Richard Guenther  <rguenther@suse.de>
215
216         PR tree-optimization/19431
217         PR tree-optimization/21463
218         * tree-pass.h (pass_phiprop): Declare.
219         * passes.c (init_optimization_passes): New phiprop pass.
220         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
221         (phivn_valid_p): New helper function.
222         (phiprop_insert_phi): Likewise.
223         (propagate_with_phi): Likewise.
224         (tree_ssa_phiprop): New propagator propagating loads
225         through phi nodes if profitable.
226
227 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
228
229         * tree-vect-analyze.c (process_use): New function.
230         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
231         Check phis in all bbs.
232         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
233         assert.
234
235 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
236
237         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
238         we use REG_EQUAL.
239
240 2007-04-17  Anatoly Sokolov <aesok@post.ru>
241
242         PR target/30483
243         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
244         error().
245
246 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
247
248         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
249         on "0".
250         (sse_vmmulv4sf3): Likewise.
251         (sse2_vmaddv2df3): Likewise.
252         (sse2_vmmulv2df3): Likewise.
253
254 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
255
256         PR rtl-optimization/31360
257         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
258         (target_reg_cost): New.
259         (init_set_costs): Initialize target_reg_cost.  Add comments
260         regarding the rationale of the costs.
261         (global_cost_for_size): Renamed to...
262         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
263         of register pressure.
264         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
265         estimate_reg_pressure_cost.  Add number of ivs.
266         (determine_set_costs): Dump target_reg_cost.
267         * loop-invariant.c (gain_for_invariant):  Use
268         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
269         (best_gain_for_invariant, find_invariants_to_move): Remove
270         n_inv_uses.
271         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
272         (target_reg_cost): Declare.
273         (global_cost_for_size): Declaration removed.
274         (estimate_reg_pressure_cost): Declare.
275
276 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
277
278         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
279         regnos into even/odd register pairs.
280         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
281         TDmode similar to the other floating point modes.
282         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
283         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
284         define_expand's.
285         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
286         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
287         (movdd_hardfloat64): Use TARGET_MFPGPR.
288
289 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
290
291         * reload1.c (delete_output_reload): Don't count output in n_inherited.
292
293         Revert
294         2005-01-05  Richard Henderson  <rth@redhat.com>
295         PR rtl-opt/10692
296         * reload1.c (do_input_reload): Restrict the optimization deleteing
297         a previous output reload to RELOAD_FOR_INPUT.
298
299 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
300
301         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
302         induc_vec_info_type.
303         (vectorizable_induction): New function declaration.
304         * tree-vect-transform.c (get_initial_def_for_induction): No need to
305         check if already vectorized.  Find first place in BB where new stmts
306         can be inserted.  Takes only one argument.
307         (vectorizable_induction): New function.
308         (vect_transform_stmt): Add case for induc_vec_info_type to call
309         vectorizable_induction.
310         (vect_transform_loop): Consider phis for vectorization.
311         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
312         condition.
313         (analyze_operations): Call vectorizable_induction when analyzing phis.
314         Fix comment.
315         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
316         (vect_mark_relevant): Include phis in relevance analysis.
317         (vect_mark_stmts_to_be_vectorize): Likewise.
318         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
319
320 2007-04-16  Lawrence Crowl  <crowl@google.com>
321
322         * doc/invoke.texi (Debugging Options): Add documentation for the
323         -femit-struct-debug options -femit-struct-debug-baseonly,
324         -femit-struct-debug-reduced, and
325         -femit-struct-debug-detailed[=...].
326
327         * c-opts.c (c_common_handle_option): Add
328         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
329         and OPT_femit_struct_debug_detailed_.
330         * c.opt: Add specifications for
331         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
332         and -femit-struct-debug-detailed[=...].
333         * opts.c (set_struct_debug_option): Parse the
334         -femit-struct-debug-... options.
335         * opts.c (matches_main_base, main_input_basename,
336         main_input_baselength, base_of_path, matches_main_base): Add
337         variables and functions to compare header base name to compilation
338         unit base name.
339         * opts.c (should_emit_struct_debug): Add to determine to emit a
340         structure based on the option.
341         (dump_struct_debug) Also disabled function to debug this
342         function.
343         * opts.c (handle_options): Save the base name of the
344         compilation unit.
345
346         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
347         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
348         This hook indicates if a type is generic.  Set it by default
349         to "never generic".
350         * langhooks.h (struct lang_hooks_for_types): Add a new hook
351         to determine if a struct type is generic or not.
352         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
353         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
354         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
355         with live C++ hook.
356
357         * flags.h (enum debug_info_usage): Add an enumeration to describe
358         a program's use of a structure type.
359         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
360         to indicate the program's usage of the type.  Filter structs based
361         on the -femit-struct-debug-... specification.
362         (gen_type_die): Split into two routines, gen_type_die and
363         gen_type_die_with_usage.  gen_type_die is now a wrapper
364         that assumes direct usage.
365         (gen_type_die_with_usage): Replace calls to gen_type_die
366         with gen_type_die_with_usage adding the program usage of
367         the referenced type.
368         (dwarf2out_imported_module_or_decl): Suppress struct debug
369         information using should_emit_struct_debug when appropriate.
370
371 2007-04-16  Ian Lance Taylor  <iant@google.com>
372
373         PR tree-optimization/31522
374         * tree-vrp.c (vr_phi_edge_counts): New static variable.
375         (vrp_initialize): Allocate vr_phi_edge_counts.
376         (vrp_visit_phi_node): Don't push to infinity if we saw a new
377         executable edge.  Drop test for all constants.
378         (vrp_finalize): Free vrp_phi_edge_counts.
379
380         * doc/cpp.texi (Common Predefined Macros): Clarify description of
381         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
382
383         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
384         predecessors at head rather than tail.
385
386 2007-04-16  Matthias Klose  <doko@debian.org>
387
388         * config/alpha/linux.h (CPP_SPEC): Define.
389         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
390
391 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
392
393         * function.h: Remove sequence_stack extern declaration.
394
395 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
396
397         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
398         TARGET_FIDOA.
399         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
400         defined.
401
402 2007-04-16  Anatoly Sokolov <aesok@post.ru>
403
404         * config/avr/avr.c (avr_arch_types): Rearranging  array.
405         (enum avr_arch): Add.
406         (avr_mcu_types): Use avr_arch enumeration constants instead of
407         numbers.
408         * config/avr/avr.h (LINK_SPEC): Simplify.
409
410 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
411
412         * config/m68k/m68k.c (m68k_libcall_value,
413         m68k_function_value): Use macros for register names more.
414
415         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
416         instead.
417         (M68K_REGNAME): Use A6_REG.
418         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
419
420 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
421
422         PR middle-end/28071
423         * sched-int.h (struct deps): Split field 'pending_lists_length' into
424         'pending_read_list_length' and 'pending_write_list_length'.  Update
425         comment.
426         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
427         to handle two length counters instead of one.  Update all uses.
428         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
429         two length counters instead of one.
430         * sched-rgn.c (propagate_deps): Update to handle two length counters
431         instead of one.
432
433 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
434
435         PR target/31582
436         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
437         copy of source, pass it to ix86_expand_vector_set and return
438         it as target.
439
440 2007-04-16  David Ung  <davidu@mips.com>
441             Joseph Myers  <joseph@codesourcery.com>
442
443         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
444         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
445         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
446         Add 74K processor information.
447         * config/mips/mips.md: Include 74k.md.
448         (cpu): Add 74kc,74kf,74kx.
449         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
450         * config/mips/74k.md: New.
451         * doc/invoke.texi (MIPS Options): Document 74K support.
452
453 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
454
455         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
456         vectorizable_* functions.
457         * tree-vect-transform.c (vectorizable_call): Add check for
458         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
459         (vectorizable_store): likewise.
460         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
461         Add comments.
462         (vectorizable_operation, vectorizable_type_demotion): Likewise.
463         (vectorizable_type_promotion, vectorizable_load): Likewise.
464         (vectorizable_live_operation, vectorizable_condition): Likewise.
465         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
466         STMT_VINFO_LIVE_P.
467         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
468
469 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
470
471         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
472         register numbers more.
473         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
474         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
475         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
476         FUNCTION_VALUE_REGNO_P): Likewise.
477         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
478         STATIC_CHAIN_REGNUM): Likewise.
479         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
480         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
481         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
482         * config/m68k/m68k.md (FP_REG): New.
483
484 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
485
486         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
487         alignment on fido.
488
489 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
490
491         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
492         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
493         comment typos.
494
495 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
496
497         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
498         cold loops.
499
500 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
501
502         PR c/31520
503         * c-decl.c (finish_decl): Grab the type of the decl after the call
504         to store_init_value.
505
506 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
507
508         * common.opt (fforward-propagate): Fix "Optimization" annotation.
509
510 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
511
512         PR c++/25874
513         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
514         post dominators and cleanup cfg before returning.
515
516 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
517
518         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
519         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
520
521 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
522
523         * config.gcc: Recognize fido.
524         * config/m68k/m68k-devices.def (fidoa): New.
525         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
526         __mfido__.
527         (FL_FIDOA, TARGET_FIDOA): New.
528         * config/m68k/m68k.opt (mfidoa): New.
529
530 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
531
532         PR middle-end/31322
533         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
534         when a personality function is used.
535
536 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
537
538         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
539
540 2007-04-13  Mike Stump  <mrs@apple.com>
541
542         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
543         we can...
544         * config/darwin.opt (fapple-kext): Make C++ only.
545         * config/darwin.c (darwin_override_options): Remove code to ensure
546         -fapple-kext is given for C++ only.
547
548 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
549
550         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
551         * config/mips/mips.c (override_options): Call
552         SUBTARGET_OVERRIDE_OPTIONS, if defined.
553
554 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
555
556         * config/i386/i386.opt (msvr3-shlib): Removed.
557
558         * doc/invoke.texi: Remove -msvr3-shlib.
559
560 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
561
562         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
563         with "popcnt" instruction.
564
565 2007-04-13  Richard Guenther  <rguenther@suse.de>
566
567         PR tree-optimization/21258
568         * tree-vrp.c (compare_case_labels): New helper.
569         (find_switch_asserts): New function.
570         (find_assert_locations): Call it for SWITCH_EXPRs.
571
572 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
573
574         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
575         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
576         check is now implied in X87_FLOAT_MODE_P.
577         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
578         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
579         (fix_trunc<mode>_i386_fisttp): Ditto.
580         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
581         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
582         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
583         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
584         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
585         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
586         (unnamed_splitters): Ditto.
587         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
588         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
589         FIRST_SSE_REG for local functions when SSE math is enabled or
590         for functions with sseregparm attribute.
591         (standard_80387_constant_p): Return -1 if mode is not
592         X87_FLOAT_MODE_P.
593         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
594         (ix86_expand_compare): Ditto.
595         (ix86_expand_carry_flag_compare): Ditto.
596         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
597         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
598         DECIMAL_FLOAT_MODE_P.
599         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
600         of SCALAR_FLOAT_MODE_P.
601         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
602         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
603         checks before FLOAT_MODE_P.
604         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
605         before FLOAT_MODE_P.
606         [DIV]: Ditto.
607         [NEG]: Ditto.
608         [ABS]: Ditto.
609         [SQRT]: Ditto.
610         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
611
612 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
613             Charles Wilson  <libtool@cwilson.fastmail.fm>
614
615         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
616         (libgcc.mvars): Don't depend on them.
617         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
618         * exec-tool.in: New.
619
620 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
621
622         * doc/invoke.text (--help): Document --help=common.
623
624 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
625
626         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
627
628 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
629
630         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
631         * genemit.c (main): Emit #include "integrate.h".
632         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
633         (LOADGP_RTP): New mips_loadgp_style.
634         * config/mips/mips.h: Include config/vxworks-dummy.h.
635         (TARGET_RTP_PIC): New macro.
636         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
637         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
638         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
639         for TARGET_RTP_PIC.
640         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
641         -mvxworks-pic when using -mrtp and a PIC option.
642         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
643         for RTP PIC.
644         (mips_symbolic_constant_p, mips_symbolic_address_p)
645         (mips_symbol_insns): Handle SYMBOL_HALF.
646         (override_options): Warn about -G and -mrtp being used together.
647         Initialize mips_lo_relocs[SYMBOL_HALF].
648         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
649         (mips_emit_loadgp): Handle LOADGP_RTP.
650         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
651         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
652         (tablejump): Handle function-relative case table entries if
653         TARGET_RTP_PIC.
654         * config/mips/predicates.md (symbol_ref_operand): New predicate.
655
656 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
657
658         * config/mips/mips.md (load_call<mode>): Allow any general register.
659         destination.
660         (sibcall_value_internal, sibcall_value_multiple_internal)
661         (call_value_internal, call_value_split, call_value_multiple_internal)
662         (call_value_multiple_split): Remove constraints from operand 0.
663
664 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
665
666         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
667         rather than loadgp_noshared.
668         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
669         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
670         gen_loadgp.
671         * config/mips/mips.md (loadgp): Rename to...
672         (loadgp_newabi): ...this.
673         (loadgp_noshared): Rename to...
674         (loadgp_absolute): ...this.
675
676 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
677
678         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
679         false for locally-binding symbols.
680         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
681
682 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
683
684         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
685         (SYMBOL_GOT_PAGE_OFST): ...this.
686         (SYMBOL_GOT_GLOBAL): Rename to...
687         (SYMBOL_GOT_DISP): ...this.
688         (SYMBOL_GOTOFF_GLOBAL): Rename to...
689         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
690         * config/mips/mips.c (mips_global_symbol_p): New function.
691         (mips_symbol_binds_local_p): Likewise.
692         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
693         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
694         and mips_symbol_binds_local_p.
695         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
696         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
697         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
698         SYMBOL_GOTOFF_DISP.
699         (mips_ok_for_lazy_binding_p): New function.
700         (mips_load_call_address, mips_expand_call): Use it.
701         (mips_dangerous_for_la25_p): Likewise.
702         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
703         (*got_disp<mode>): Use got_disp_operand instead of
704         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
705         SYMBOL_GOTOFF_GLOBAL.
706         (*got_page<mode>): Use got_page_ofst_operand instead of
707         local_got_operand.
708         * config/mips/predicates.md (const_call_insn_operand): Use
709         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
710         (global_got_operand): Rename to...
711         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
712         SYMBOL_GOT_GLOBAL.
713         (local_got_operand): Rename to...
714         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
715         of SYMBOL_GOT_LOCAL.
716
717 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
718
719         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
720         TARGET_CALL_CLOBBERED_GP.
721         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
722         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
723         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
724         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
725         of TARGET_ABICALLS && !TARGET_NEWABI.
726         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
727         * config/mips/mips.c (mips_load_call_address): Check
728         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
729         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
730         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
731         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
732         TARGET_ABICALLS && TARGET_NEWABI.
733         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
734         TARGET_ABICALLS.
735         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
736         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
737         TARGET_ABICALLS && TARGET_NEWABI.
738         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
739         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
740         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
741         whether indirect calls must use $25.
742         (mips_extra_live_on_entry): Check TARGET_GOT instead of
743         TARGET_ABICALLS.
744         * config/mips/mips.md (jal_macro): Check flag_pic and
745         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
746         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
747         instead of TARGET_ABICALLS.
748         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
749         TARGET_ABICALLS && TARGET_OLDABI.
750         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
751         (sibcall): In the comment above the define_insn, mention
752         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
753         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
754         instead of TARGET_ABICALLS.
755
756 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
757
758         * doc/md.texi (Blackfin family constraints): Document PA and PB.
759         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
760         (MACFLAGS_MATCH_P): New macro.
761         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
762         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
763         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
764         the other MACFLAG constants.
765         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
766         (flag_machi): Tighten constraints.  Renumber some of the operands.
767         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
768         output template.
769         (flag_machi_parts_acconly): New pattern.
770         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
771         used.
772         (flag_macinit1hi): Tighten constraints.
773         (flag_mul_macv2hi_parts_acconly): New pattern.
774
775         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
776         Use a more efficient implementation.
777         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
778         inline sequences when not optimizing for size.
779
780         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
781         movhi_high2low): Delete, merge functionality into...
782         (packv2hi): ... this pattern.
783
784         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
785         * config/bfin/bfin.opt (msim): New option.
786         (mcpu=): New option.
787         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
788         (bfin_cpu_t): Typedef of enum bfin_cpu.
789         (bfin_cpu_type): New declaration.
790         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
791         -msim and -mcpu= options.
792         (LIB_SPEC): Likewise.
793         * config/bfin/bfin.c (bfin_cpu_type): Define.
794         (bfin_handle_option): Handle -mcpu= option.
795         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
796         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
797         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
798
799 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
800
801         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
802         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
803         (powerpc-wrs-vxworksae): Use ${tm_file}.
804         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
805         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
806         * config/i386/vx-common.h: New file.
807
808 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
809
810         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
811         of crt0.o%s.
812
813 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
814
815         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
816         ldxtr.
817
818 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
819
820         PR c++/31078
821         PR c++/31103
822         * c-common.c (c_build_qualified_type): Set canonical type
823         appropriately.
824
825 2007-04-12  Richard Guenther  <rguenther@suse.de>
826
827         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
828         lower bound and element size if lower bound is not zero
829         or either of the ARRAY_REF operands is set.
830
831 2007-04-12  Richard Guenther  <rguenther@suse.de>
832
833         PR tree-optimization/24689
834         PR tree-optimization/31307
835         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
836         indices by value.
837         * gimplify.c (canonicalize_addr_expr): To be consistent with
838         gimplify_compound_lval only set operands two and three of
839         ARRAY_REFs if they are not gimple_min_invariant.  This makes
840         it never at this place.
841         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
842
843 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
844
845         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
846         null before emitting a .nsubspa directive.
847
848 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
849
850         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
851         need_to_partition_p if there are no memory statements in the
852         function.
853
854 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
855
856         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
857         (gcd_of_steps_may_divide_p): New function.
858         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
859
860 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
861
862         * reload.c (find_reloads_toplev, find_reloads_address,
863         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
864         not a pointer equality test, to decide if we need to call
865         push_reg_equiv_alt_mem.
866
867 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
868
869         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
870         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
871         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
872
873 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
874
875         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
876         vector to be positive.
877
878 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
879
880         PR 30735
881         PR 31090
882         * doc/invoke.texi: Document --params max-aliased-vops and
883         avg-aliased-vops.
884         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
885         debug_memory_partitions): Move to tree-flow.h
886         * params.h (AVG_ALIASED_VOPS): Define.
887         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
888         users.
889         (mp_info_t): Likewise.
890         (get_mem_sym_stats_for): New.
891         (set_memory_partition): Move from tree-flow-inline.h.
892         (mark_non_addressable): Only clear the set of symbols for the
893         partition if it exists.
894         (dump_memory_partitions): Move from tree-ssa-operands.c
895         (debug_memory_partitions): Likewise.
896         (need_to_partition_p): New.
897         (dump_mem_ref_stats): New.
898         (debug_mem_ref_stats): New.
899         (dump_mem_sym_stats): New.
900         (debug_mem_sym_stats): New.
901         (update_mem_sym_stats_from_stmt): New.
902         (compare_mp_info_entries): New.
903         (mp_info_cmp): Call it.
904         (sort_mp_info): Change argument to a list of mem_sym_stats_t
905         objects.
906         (get_mpt_for): Move from tree-ssa-operands.c.
907         (find_partition_for): New.
908         (create_partition_for): Remove.
909         (estimate_vop_reduction): New.
910         (update_reference_counts): New.
911         (build_mp_info): New.
912         (compute_memory_partitions): Refactor.
913         Document new heuristic.
914         Call build_mp_info, update_reference_counts,
915         find_partition_for and estimate_vop_reduction.
916         (compute_may_aliases): Populate virtual operands before
917         calling debugging dumps.
918         (delete_mem_sym_stats): New.
919         (delete_mem_ref_stats): New.
920         (init_mem_ref_stats): New.
921         (init_alias_info): Call it.
922         (maybe_create_global_var): Remove alias_info argument.
923         Get number of call sites and number of pure/const call sites
924         from gimple_mem_ref_stats().
925         (dump_alias_info): Call dump_memory_partitions first.
926         (dump_points_to_info_for): Show how many times a pointer has
927         been dereferenced.
928         * opts.c (decode_options): For -O2 set --param
929         max-aliased-vops to 500.
930         For -O3 set --param max-aliased-vops to 1000 and --param
931         avg-aliased-vops to 3.
932         * fortran/options.c (gfc_init_options): Remove assignment to
933         MAX_ALIASED_VOPS.
934         * tree-flow-inline.h (gimple_mem_ref_stats): New.
935         * tree-dfa.c (dump_variable): Dump memory reference
936         statistics.
937         Dump NO_ALIAS* settings.
938         (referenced_var_lookup): Tidy.
939         (mem_sym_stats): New.
940         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
941         and ORIG are different SSA names for a memory partition.
942         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
943         * tree-flow.h (struct mem_sym_stats_d): Define.
944         (mem_sym_stats_t): Define.
945         (struct mem_ref_stats_d): Define.
946         (struct gimple_df): Add field mem_ref_stats.
947         (enum noalias_state): Define.
948         (struct var_ann_d): Add bitfield noalias_state.
949         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
950         debug_mem_ref_stats, debug_memory_partitions,
951         debug_mem_sym_stats): Declare.
952         * tree-ssa-structalias.c (update_alias_info): Update call
953         sites, pure/const call sites and asm sites in structure
954         returned by gimple_mem_ref_stats.
955         Remove local variable IS_POTENTIAL_DEREF.
956         Increase NUM_DEREFS if the memory expression is a potential
957         dereference.
958         Call update_mem_sym_stats_from_stmt.
959         If the memory references memory, call
960         update_mem_sym_stats_from_stmt for all the direct memory
961         symbol references found.
962         (intra_create_variable_infos): Set noalias_state field for
963         pointer arguments according to the value of
964         flag_argument_noalias.
965         * tree-ssa-structalias.h (struct alias_info): Remove fields
966         num_calls_found and num_pure_const_calls_found.
967         (update_mem_sym_stats_from_stmt): Declare.
968         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
969         Set default value to 100.
970         (PARAM_AVG_ALIASED_VOPS): Define.
971
972 2007-04-11  Richard Guenther  <rguenther@suse.de>
973
974         PR middle-end/31530
975         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
976         a * -b + c as c - a * b if we honor sign dependent rounding.
977
978 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
979
980         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
981         bfin_expand_strmov.
982         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
983         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
984         variables.
985         (initialize_trampoline): Don't use old-style function definition.
986         (bfin_secondary_reload): Mark IN_P argument as unused.
987
988 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
989
990         PR tree-optimization/31343
991         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
992         (build_polynomial_chrec): Return a scalar when the evolution is zero.
993         * testsuite/gcc.dg/vect/pr31343.c: New.
994
995 2007-04-10  Eric Christopher  <echristo@apple.com>
996
997         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
998         * config/i386/i386.md (*cmpfp0): Use.
999         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
1000         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
1001         (fix_trunc<mode>_i386_fisttp): Ditto.
1002         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
1003         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
1004         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
1005         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
1006         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
1007         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
1008         (unnamed_splitters): Ditto.
1009         * config/i386/i386.c (output_fix_trunc): Assert that
1010         we're not being passed a TFmode operand.
1011
1012 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
1013
1014         PR tree-optimization/31526
1015         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
1016         n_basic_blocks to find newly added blocks.
1017
1018 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
1019
1020         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
1021         alternative.
1022         (fix_trunc<mode>si_sse): Ditto.
1023         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
1024         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
1025         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
1026         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
1027         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
1028         expander using SSEMODEF mode macro.
1029         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
1030         expander using SSEMODEF mode macro.
1031         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
1032         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
1033         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
1034         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
1035         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
1036         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
1037         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
1038         Macroize insn using X87MODEF mode macro.
1039
1040 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * config/i386/sse.md (sse2_pinsrw): Removed.
1043         (sse2_pextrw): Renamed to ...
1044         (*sse2_pextrw): This.
1045
1046 2007-04-09  Jan Hubicka  <jh@suse.cz>
1047
1048         PR target/27869
1049         * config/i386/sse.md
1050         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
1051         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
1052         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
1053         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
1054
1055 2007-04-09  Jan Hubicka  <jh@suse.cz>
1056
1057         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
1058         multiple fields of union.
1059
1060 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
1061
1062         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
1063         (create_preheaders): Check that loops are available.
1064         (fix_loop_structure): Clean up, improve comments.
1065         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
1066         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
1067         state flags.
1068         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
1069         * predict.c (tree_estimate_probability): Do not call
1070         calculate_dominance_info.  Call create_preheaders.
1071         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
1072         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
1073         flags.
1074         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
1075         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
1076         * tree-cfg.c (tree_split_edge): Make an assert more precise.
1077         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
1078         arguments.
1079
1080 2007-04-08  Jan Hubicka  <jh@suse.cz>
1081
1082         * tree.h (maybe_fold_offset_to_component_ref): Declare.
1083         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
1084         * fold-const.c (fold_unary): Use it.
1085
1086 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1087
1088         * varasm.c (assemble_variable): Remove call to
1089         lang_hooks.decls.prepare_assemble_variable.
1090         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
1091         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
1092         * langhooks.h (lang_hooks_for_decls): Remove
1093         prepare_assemble_variable.
1094
1095 2007-04-08  Mike Stump  <mrs@apple.com>
1096
1097         * config/i386/i386.c: Use inc/dec on Core2.
1098
1099 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
1100
1101         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
1102         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
1103         lhd_tree_inlining_end_inlining): Remove.
1104         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
1105         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
1106         end_inlining hooks.
1107         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
1108         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
1109         lhd_tree_inlining_end_inlining): Remove prototypes.
1110         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
1111         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
1112         LANG_HOOKS_TREE_INLINING_START_INLINING,
1113         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
1114
1115         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
1116         not set it.
1117
1118 2007-04-08  Anatoly Sokolov <aesok@post.ru>
1119
1120         PR target/29932
1121         * config/avr/predicates.md (io_address_operand): Delete predicate.
1122         (low_io_address_operand): Don't use 'mode' argument.
1123         (higth_io_address_operand): Rename ...
1124         (high_io_address_operand): ... to this. Don't use 'mode' argument.
1125         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
1126         for above change.
1127
1128 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
1129
1130         Revert change removing staticp.
1131
1132 2007-04-07  Anatoly Sokolov <aesok@post.ru>
1133
1134         PR target/30289
1135         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
1136         earlyclobber.
1137
1138 2007-04-07  Bruce Korb  <bkorb@gnu.org>
1139
1140         * c.opt: Add -Wformat-contains-nul.
1141         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
1142           -Wformat setting.
1143         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
1144         the NUL byte warning.
1145
1146 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1147
1148         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
1149
1150 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
1151
1152         * tree.c (staticp): No longer use staticp langhook.
1153         * langhooks.c (lhd_staticp): Removed.
1154         * langhooks.h (struct lang_hooks): Remove staticp.
1155         * c-common.c (c_staticp): Remove.
1156         * c-common.h (c_staticp): Ditto.
1157         * langhooks-defs.h (lhd_staticp): Ditto.
1158         (LHD_HOOKS_STATICP): Ditto
1159         * tree.h (gcc_assert_lowered): New macro.
1160
1161 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
1162
1163         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
1164         argument "reliable".
1165         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
1166         Add argument "reliable".  Propagate it through calls.
1167         (infer_loop_bounds_from_undefined):  Derive number of iterations
1168         estimates from references in blocks that do not dominate loop latch.
1169         (gcov_type_to_double_int): New function.
1170         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
1171         and expected_loop_iterations_unbounded.
1172         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
1173         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
1174         * tree-data-ref.c (estimated_loop_iterations): Export.
1175         (get_references_in_stmt): Fix -- do not return addresses of local
1176         objects.
1177         * cfgloop.h (expected_loop_iterations_unbounded,
1178         estimated_loop_iterations): Declare.
1179
1180 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
1181
1182         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
1183
1184 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
1185
1186         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
1187         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
1188         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
1189         Use output_387_reg_move().
1190         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
1191         expander using X87MODEF12 mode macro.
1192         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
1193         choosing register preferences.  Use output_387_reg_move().
1194         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
1195         instead of "x".  Use output_387_reg_move().
1196         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
1197         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
1198         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
1199         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
1200         Use output_387_reg_move().
1201         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
1202         mode macro.
1203         (*truncxf?f_i387 splitter): Ditto.
1204
1205 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
1206
1207         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1208         LANG_HOOKS_SAFE_FROM_P.
1209         * expr.c (safe_from_p): Remove langhook call.
1210         * langhooks.h (lang_hooks): Remove safe_from_p.
1211         (lhd_safe_from_p): Remove prototype.
1212         * langhooks.c (lhd_safe_from_p): Remove.
1213
1214 2007-04-06  Jan Hubicka  <jh@suse.cz>
1215
1216         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
1217         functions.
1218
1219 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
1220
1221         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
1222         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
1223         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
1224         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
1225         alternative.
1226         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
1227         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
1228
1229 2007-04-05  Richard Henderson  <rth@redhat.com>
1230
1231         * config/alpha/alpha.c (print_operand) [+]: Remove.
1232         (alpha_end_function): Print nop if call at end of function.
1233         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
1234         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
1235         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
1236         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
1237         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
1238         the call pattern. Update peepholes to match.
1239
1240 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
1241
1242         * doc/extend.texi (Other Builtins): Add decimal float variants
1243         of signbit.
1244         * builtins.def: Ditto.
1245         * builtins.c (expand_builtin): Ditto.
1246
1247 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
1248             H.J. Lu  <hongjiu.lu@intel.com>
1249
1250         PR target/31478
1251         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
1252         of V8HImode when calling ix86_binary_operator_ok.
1253         (sse2_pmaddwd): Call ix86_binary_operator_ok.
1254         (sdot_prodv8hi): Operands 1 and 2 must be register.
1255
1256 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
1257
1258         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
1259         initialize align to silence bogus warning.
1260
1261 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
1262
1263         PR middle-end/22156
1264         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
1265         all_no_warning.
1266         (struct sra_walk_fns): Remove use_all parameter from use.
1267         (sra_hash_tree): Handle BIT_FIELD_REFs.
1268         (sra_elt_hash): Don't hash bitfld blocks.
1269         (sra_elt_eq): Skip them in parent compares as well.  Handle
1270         BIT_FIELD_REFs.
1271         (sra_walk_expr): Don't maintain or pass down use_all_p.
1272         (scan_use): Remove use_all parameter.
1273         (scalarize_use): Likewise.  Re-expand assignment to
1274         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
1275         output, and re-scalarize after output.  Don't mark anything
1276         for no warning.
1277         (scalarize_ldst): Adjust.
1278         (scalarize_walk_gimple_modify_statement): Likewise.
1279         (build_element_name_1): Handle BIT_FIELD_REFs.
1280         (instantiate_element): Don't warn for any element whose parent
1281         is used as a whole.
1282         (instantiate_missing_elements_1): Return the sra_elt.
1283         (canon_type_for_field): New.
1284         (try_instantiate_multiple_fields): New.
1285         (instantiate_missing_elemnts): Use them.
1286         (mark_no_warning): Removed.
1287         (generate_one_element_ref): Handle BIT_FIELD_REFs.
1288         (REPLDUP, sra_build_elt_assignment): New.
1289         (generate_copy_inout): Use them.
1290         (generate_element_copy): Likewise.  Handle bitfld differences.
1291         (generate_element_zero): Don't recurse for blocks.  Use
1292         sra_build_elt_assignment.
1293         (generate_one_element_int): Take elt instead of var.  Use
1294         sra_build_elt_assignment.
1295         (generate_element_init_1): Adjust.
1296         (scalarize_use, scalarize_copy): Use REPLDUP.
1297         (scalarize_ldst): Move assert before dereference.
1298         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
1299
1300 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1301
1302         * regmove.c: Fix unused variable warnings due to previous commit.
1303
1304 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1305
1306         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
1307         (regmove_bb_head): Remove.
1308         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
1309         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
1310         problems with fixup_match_1.
1311         Don't initialize/free regmove_bb_head.
1312
1313         (reg_is_remote_constant_p): If an insn is in the same basic block
1314         but not before INSN, consider it remote, too.
1315
1316 2007-04-05  Anatoly Sokolov <aesok@post.ru>
1317
1318         PR target/25448
1319         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
1320         DECL_ASSEMBLER_NAME, not the DECL_NAME.
1321
1322 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
1325         (CONDITIONAL_REGISTER_USAGE): Likewise.
1326
1327 2007-04-04  Richard Henderson  <rth@redhat.com>
1328
1329         * config/alpha/lib1funcs.asm: Remove unused file.
1330
1331 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
1332
1333         PR other/31356
1334         * opts.c (print_specific_help): Fix --help=<language>
1335         header line.
1336         (common_handle_option): Support --help=common.
1337
1338 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
1339
1340         PR other/31353
1341         * gcc.c (main): Do not run the linker if
1342         print_subprocess_help indicates that it shouldn't be
1343         run.
1344
1345 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
1346
1347         PR doc/31355
1348         * doc/invoke.texi (--help=): Document <languages> value, fix
1349         formatting in tables of values.
1350
1351 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
1352
1353         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
1354         dllimport attribute of virtual methods.
1355
1356 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
1357
1358         * config/score/crti.asm: Change _bss_start to __bss_start.
1359         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
1360         (OUTGOING_REG_PARM_STACK_SPACE) update.
1361         * config/score/score.opt: add options to make backend support
1362         score5, score5u, score7 and score7d.
1363         * config/score/score.md: Likewise.
1364         * config/score/misc.md: Likewise.
1365         * config/score/mac.md: Likewise.
1366         * doc/invoke.texi: Likewise.
1367         * doc/md.texi: update constraints define.
1368
1369 2007-04-03  Richard Henderson  <rth@redhat.com>
1370
1371         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
1372         an appropriate type, use the mode instead.
1373
1374 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
1375
1376         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
1377         Set the default --with-arch setting to mips2.
1378         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
1379         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
1380         (MULTILIB_OSDIRNAMES): Delete.
1381         (MULTILIB_DIRNAMES): Define.
1382         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
1383         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
1384         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
1385         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
1386         VXWORKS_OS_CPP_BUILTINS.
1387         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
1388         (MIPS_DEBUGGING_INFO): Undefine.
1389         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
1390
1391 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
1392
1393         PR middle-end/30704
1394         * fold-const.c (native_encode_real): Encode real.c provided longs
1395         as a series of 32-bit native integers.
1396         (native_interpret_real): Interpret buffer as a series of 32-bit
1397         native integers.
1398
1399 2007-04-03  Richard Guenther  <rguenther@suse.de>
1400
1401         * genpreds.c (write_insn_constraint_len): Write function
1402         optimized for CONSTRAINT_LEN implementation.
1403         (write_tm_preds_h): Output insn_constraint_len inline and
1404         use it for CONSTRAINT_LEN.
1405         (write_insn_preds_c): Don't output insn_constraint_len.
1406         * doc/md.texi (define_register_constraint): Document multi-letter
1407         constraints shall have the same length if they start with the same
1408         letter.
1409
1410 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
1411
1412         PR target/31175
1413         * config/i386/i386.md (isinf<mode>2): Expand only when
1414         TARGET_C99_FUNCTIONS is set.
1415
1416 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
1417
1418         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
1419         (x86_64-*-linux*): Ditto.
1420         * config/i386/i386.opt (mpc): New option.
1421         * config/i386/i386.c (overrride_options): Handle
1422         ix87_precision_string.
1423         * config/i386/crtprec.c: New file.
1424         * config/i386/t-crtpc: Ditto.
1425         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
1426         and -mpc80 options.
1427         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
1428         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1429         crtprec32.o, crtprec64.o and crtprec80.o.
1430
1431         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
1432         and -mpc80 options.
1433         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
1434
1435 2007-04-02  Eric Christopher  <echristo@apple.com>
1436
1437         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
1438         limitations on darwin.
1439
1440 2007-04-02  Anatoly Sokolov <aesok@post.ru>
1441
1442         PR target/31137
1443         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
1444
1445 2007-04-02  Dave Korn  <dave.korn@artimi.com>
1446
1447         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
1448
1449 2007-04-02  Dave Korn  <dave.korn@artimi.com>
1450
1451         * libgcc2.h (exception_descriptor): Don't forward-declare.
1452         (__get_eh_table_language, __get_eh_table_version): Delete
1453         prototypes of long-dead functions.
1454
1455 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
1456
1457         * ebitmap.h: New file
1458         * ebitmap.c: New file
1459         * Makefile.in (ebitmap.o): New target.
1460
1461 2007-04-01  Jan Hubicka  <jh@suse.cz>
1462
1463         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
1464         before very first instruction.
1465
1466 2007-04-01  Jan Hubicka  <jh@suse.cz>
1467
1468         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
1469         waring on 64bit hosts.
1470         * bitmap.h: Fix typo in bitmap_head_def.
1471
1472 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1473
1474         PR rtl-optimization/31391
1475         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
1476         into a DELETED_LABEL note, and the label is in an empty basic
1477         block, update BB_END as well as BB_HEAD.
1478
1479 2007-04-01  Richard Henderson  <rth@redhat.com>
1480
1481         PR tree-optimization/31169
1482         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
1483         to varying if the range is outside [0,  prec-1].
1484
1485 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
1486
1487         PR target/31388
1488         * config/mips/mips.md (load_const_gp): New insn.
1489         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
1490         the MIPS16 GP pseudo register if no_new_pseudos.
1491         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
1492
1493 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1494
1495         PR target/31364
1496         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
1497         secureplt.
1498         (call_value): Likewise.
1499
1500 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
1501             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1502
1503         PR 14737
1504         * doc/invoke.texi: (optimization options): Reword description
1505         of -ffast-math. Document its primary purpose.
1506
1507 2007-03-31  Richard Guenther  <rguenther@suse.de>
1508
1509         * omp-low.c (splay-tree.h): Include.
1510         (lookup_decl): Replace splay-tree usage by pointer-map.
1511         (maybe_lookup_decl): Likewise.
1512         (new_omp_context): Likewise.
1513         (delete_omp_context): Likewise.
1514         * gimplify.c (splay-tree.h): Include.
1515         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
1516         pointer-map.
1517         (remap_ssa_name): Likewise.
1518         (remap_decl): Likewise.
1519         (remap_type_1): Likewise.
1520         (remap_type): Likewise.
1521         (copy_body_r): Likewise.
1522         (expand_call_inline): Likewise.
1523         (clone_body): Likewise.
1524         (copy_tree_r): Likewise.
1525         (remap_save_expr): Likewise.
1526         (unsave_r): Likewise.
1527         (unsave_expr_now): Likewise.
1528         (tree_function_versioning): Likewise.
1529         (build_duplicate_type): Likewise.
1530         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
1531         (struct copy_body_data): Replace splay-tree by pointer-map.
1532         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
1533         not $(SPLAY_TREE_H).
1534         (gimplify.o): Depend on $(SPLAY_TREE_H).
1535         (omp-low.p): Likewise.
1536
1537 2007-03-31  Anatoly Sokolov <aesok@post.ru>
1538
1539         * config/avr/predicates.md (even_register_operand,
1540         odd_register_operand): New predicates.
1541         * config/avr/avr.md (movw peephole2): New.
1542         (movw_r peephole2): New.
1543
1544 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
1545
1546         * tree.h (get_signed_or_unsigned_type): New.
1547         * fold-const.c (operand_equal_for_comparison_p): Use
1548         get_signed_or_unsigned_type instead of
1549         lang_hooks.types.signed_or_unsigned_type.
1550         * expr.c (store_expr): Ditto.
1551         * langhooks.c (get_signed_or_unsigned_type): New.
1552         (lhd_signed_or_unsigned_type): New.
1553         * langhooks.h (lhd_signed_or_unsigned_type): New.
1554         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
1555
1556 2007-03-30  Richard Henderson  <rth@redhat.com>
1557
1558         * tree-ssa-loop-ivopts.c: Include target.h.
1559         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
1560         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
1561         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
1562         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
1563
1564 2007-03-30  Richard Henderson  <rth@redhat.com>
1565             Kai Tietz  <kai.tietz@onevision.com>
1566
1567         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
1568         default for 64-bit.
1569         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
1570         (TARGET_64BIT_MS_ABI): New.
1571         (DBX_REGISTER_NUMBER): Handle 64-bit.
1572         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
1573         (LONG_TYPE_SIZE): Force to 32.
1574         (REG_PARM_STACK_SPACE): New.
1575         (OUTGOING_REG_PARM_STACK_SPACE): New.
1576         (REGPARM_MAX, SSE_REGPARM_MAX): New.
1577         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1578         (STACK_BOUNDARY): Use 128 for 64-bit.
1579         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
1580         Add 64-bit implementation.
1581         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
1582         argument unused.
1583         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
1584         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
1585         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
1586         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
1587         (ix86_handle_cconv_attribute): Don't warn when ignoring if
1588         TARGET_64BIT_MS_ABI.
1589         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
1590         (ix86_pass_by_reference): Likewise.
1591         (ix86_function_value_regno_p): Likewise.
1592         (ix86_build_builtin_va_list): Likewise.
1593         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1594         (function_arg_advance_ms_64): New.
1595         (function_arg_advance): Call it.
1596         (function_arg_ms_64): New.
1597         (function_arg): Call it.
1598         (function_value_ms_64): New.
1599         (ix86_function_value_1): Call it.
1600         (return_in_memory_ms_64): New.
1601         (ix86_return_in_memory): Call it.
1602         (setup_incoming_varargs_ms_64): New.
1603         (ix86_setup_incoming_varargs): Call it.
1604         (ix86_expand_prologue): Handle 64-bit stack probing.
1605         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
1606         (output_pic_addr_const): Likewise.
1607         (x86_this_parameter): Likewise.
1608         (x86_output_mi_thunk): Likewise.
1609         (x86_function_profiler): Likewise.
1610         (TARGET_STRICT_ARGUMENT_NAMING): New.
1611         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
1612         (TARGET_64BIT_MS_ABI): New.
1613         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
1614         * config/i386/i386.md (allocate_stack_worker): Remove.
1615         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
1616         describe the clobber of eax without a match_scratch.
1617         (allocate_stack_worker_postreload): Remove.
1618         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
1619         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
1620         (allocate_stack_worker_rex64_postreload): Remove.
1621         (allocate_stack): Handle 64-bit.
1622         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
1623         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
1624         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
1625         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
1626         (STANDARD_STARTFILE_PREFIX_1): Likewise.
1627         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
1628         * config.build (x86_64-*-mingw*): New host.
1629         * config.host (x86_64-*-mingw*): New host.
1630         * config.gcc (x86_64-*-mingw*): New target.
1631         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
1632
1633 2007-03-30  Richard Henderson  <rth@redhat.com>
1634             Kai Tietz  <kai.tietz@onevision.com>
1635
1636         * c-pragma.c (struct def_pragma_macro_value): New.
1637         (struct def_pragma_macro): New.
1638         (pushed_macro_table): New.
1639         (dpm_hash, dpm_eq): New.
1640         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
1641         (init_pragma): Install them.
1642         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
1643
1644 2007-03-30  Anatoly Sokolov <aesok@post.ru>
1645
1646         * config/avr/avr.c (avr_override_options): Clear
1647         'flag_delete_null_pointer_checks'.
1648
1649 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
1650
1651         PR c++/26099
1652         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
1653         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
1654         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
1655         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
1656         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
1657         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
1658         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
1659         C++ extensions.
1660         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
1661
1662 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
1663
1664         * regmove.c: Move all of pass_stack_adjustments from here...
1665         * combine-stack-adj.c: ...to this new file.
1666         * Makefile.in: Add rules for combine-stack-adj.o.
1667
1668 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
1669
1670         PR tree-optimization/31383
1671         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
1672         to have the same length.
1673
1674 2007-03-30  Jan Hubicka  <jh@suse.cz>
1675
1676         PR middle-end/30700
1677         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
1678         availablility; add more sanity checking; ask varpool only about
1679         VAR_DECL.
1680
1681 2007-03-29  Richard Henderson  <rth@redhat.com>
1682
1683         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
1684         to decide, but __SIZEOF_LONG_LONG__.
1685
1686 2007-03-29  Richard Henderson  <rth@redhat.com>
1687
1688         * emutls.c (struct __emutls_array): New.
1689         (emutls_destroy): Use it instead of casting element 0 from void*.
1690         (__emutls_get_address): Likewise.
1691
1692 2007-03-29  Richard Henderson  <rth@redhat.com>
1693
1694         * varasm.c (initializer_constant_valid_p): Don't deny
1695         DECL_DLLIMPORT_P on functions.
1696
1697         * config/i386/cygming.h: Remove function declarations.
1698         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
1699         (ASM_OUTPUT_LABELREF): Remove.
1700         (COMMON_ASM_OP): Remove.
1701         (ASM_OUTPUT_COMMON): Remove.
1702         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1703         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
1704         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1705         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
1706         Rename from TARGET_ENCODE_SECTION_INFO.
1707         * config/i386/netware.h: Likewise.
1708         * config/i386/i386-protos.h: Update.
1709         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
1710         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
1711         (legitimate_constant_p): Reject dllimports.
1712         (dllimport_map, get_dllimport_decl): New.
1713         (legitimize_dllimport_symbol): New.
1714         (legitimize_address, ix86_expand_move): Use it.
1715         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1716         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
1717         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
1718         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
1719         * config/i386/predicates.md (constant_call_address_operand): Only
1720         accept symbols; reject dllimport_p symbols.
1721         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1722         i386_pe_maybe_record_exported_symbol.
1723         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
1724         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
1725         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
1726         trust the setting of DECL_DLLIMPORT_P.
1727         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
1728         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
1729         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
1730         tidy the argument scanning loop.
1731         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
1732         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
1733         (i386_pe_strip_name_encoding): Remove.
1734         (i386_pe_binds_local_p): New.
1735         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
1736         (i386_pe_output_labelref): Remove.
1737         (i386_pe_asm_output_aligned_decl_common): New.
1738         (i386_pe_maybe_record_exported_symbol): Rename from
1739         i386_pe_record_exported_symbol; check for dllexported symbols.
1740
1741 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
1742
1743         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
1744         add comment explaining why vsnprintf cannot be used.
1745
1746 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
1747
1748         PR tree-optimization/30666
1749         * tree.c (build_complex_type): When creating type names for DWARF2
1750         debug info, create TYPE_DECLs for TYPE_NAME instead of
1751         IDENTIFIER_NODEs.
1752         (build_common_tree_nodes_2): Use build_complex_type when building
1753         predefined complex types, to preserve canonical types.
1754
1755 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
1756
1757         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
1758         (noce_get_alt_condition): Look at it to determine whether to
1759         reverse the condition or not.
1760         (noce_get_condition): Substitute the truth for lies.
1761         (noce_find_if_block): Set the then_else_reversed field.
1762
1763 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
1764
1765         * config/fr30/fr30.md (movdi): Do not accept immediates as the
1766         destination of this insn.
1767         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
1768         than calling gen_rtx_SET directly.  Use r0 to hold the value of
1769         'address + 4' rather than a stack based temporary which can be
1770         mis-optimized away.
1771
1772 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1773
1774         * config/s390/s390.c (s390_secondary_input_reload_class,
1775         s390_secondary_output_reload_class): Functions removed.
1776         (s390_secondary_reload): New function.
1777         (TARGET_SECONDARY_RELOAD): Target macro defined.
1778         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
1779         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
1780         * config/s390/s390.md ("reload_outti", "reload_outdi",
1781         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
1782         "reload_out<mode>"): Expanders removed.
1783         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
1784         "reload<mode>_nonoffmem_out"): Expanders added.
1785
1786 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1787
1788         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
1789         SRC->DEST replacement failed anyway.
1790
1791 2007-03-28  Mike Stump  <mrs@apple.com>
1792
1793         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
1794         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
1795         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
1796
1797 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1798
1799         * config.gcc: Accept barcelona as a variant of amdfam10.
1800         * config/i386/i386.c (override_options): Likewise.
1801         * doc/invoke.texi: Likewise.
1802
1803 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1804
1805         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
1806         offsets for BIT_FIELD_REF and COMPONENT_REF.
1807
1808 2007-03-28  Richard Guenther  <rguenther@suse.de>
1809
1810         * tree.c (is_global_var): Move ...
1811         * tree-flow-inline.h (is_global_var): ... here.
1812         * tree.h (is_global_var): Remove declaration.
1813
1814 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
1815
1816         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
1817         option.
1818         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
1819         * config/i386/i386.c (ix86_tune_features): Initialize new
1820         tuning option.
1821         * config/i386/predicates.md (promotable_binary_operator): Use
1822         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
1823
1824 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
1825
1826         PR target/31380
1827         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
1828
1829 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
1830
1831         * config/fr30/fr30.md (movsi_internal): Change destination
1832         constraint from m to V and add m to the end.
1833
1834 2007-03-28  Christian Bruel  <christian.bruel@st.com>
1835
1836         * config/sh/sh.md (movsi_i): Fix type attribute.
1837
1838 2007-03-28  Christian Bruel  <christian.bruel@st.com>
1839
1840         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
1841         (movsf_ie): Likewise.
1842
1843 2007-03-28  Christian Bruel  <christian.bruel@st.com>
1844
1845         * config.gcc: Add sh4-300 to multilib.
1846         * config/sh/t-mlib-sh4-300: New file.
1847
1848 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1849
1850         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
1851         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
1852         fix_trunc<mode>di2.
1853         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
1854         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
1855         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
1856         "fixuns_trunctddi2"): Whitespace fix.
1857
1858 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1859
1860         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
1861         the definition of struct sh_args.
1862         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
1863         CALL_COOKIE_INT_REG_GET): Likewise.
1864
1865 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
1866
1867         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
1868         transformations are applied successfully.
1869
1870 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
1871
1872         * tree.c (tree_contains_struct): Permit 512 tree codes.
1873         * tree.h (tree_contains_struct): Ditto.
1874         (MAX_TREE_CODES): Ditto.
1875         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
1876         SPARE member to store remaining padding bits.
1877
1878 2007-03-27  Anatoly Sokolov <aesok@post.ru>
1879
1880         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
1881         architecture.
1882
1883 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
1884
1885         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
1886         * configure: Regenerate.
1887
1888         * configure: Regenerate using the correct version of autoconf.
1889
1890 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
1891
1892         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
1893         pointer regs.
1894         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
1895         regs to "__SP_L__" and "__SP_H__".
1896
1897 2007-03-27  Richard Guenther  <rguenther@suse.de>
1898
1899         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
1900         computations with it with a HOST_WIDE_INT variable.
1901
1902 2007-03-26  Mike Stump  <mrs@apple.com>
1903
1904         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
1905         objective-c-header, objective-c++-header and objc++-cpp-output
1906         support.
1907         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1908
1909 2007-03-26  Richard Henderson  <rth@redhat.com>
1910
1911         PR target/31361
1912         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
1913         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
1914         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
1915         IX86_BUILTIN_PSRLQ128): New.
1916         (ix86_init_mmx_sse_builtins): Add them.
1917         (ix86_expand_builtin): Expand them.
1918         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
1919         operand 2 be TImode.
1920         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
1921         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1922         _mm_srli_epi64): Mark __B const.
1923         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
1924         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
1925         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
1926         new two-vector shift builtins.
1927
1928 2007-03-26  Ian Lance Taylor  <iant@google.com>
1929
1930         PR tree-optimization/31345
1931         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
1932         [+INF, +INF(OVF)] into VARYING.
1933
1934 2007-03-26  Zack Weinberg  <zackw@panix.com>
1935
1936         * gengtype-parse.c: New file.
1937         * gengtype-yacc.y: Delete.
1938         * gengtype-lex.l: Don't include gengtype-yacc.h.
1939         Define YY_DECL and yyterminate appropriately for recursive
1940         descent parser.  yylval is now a string out-parameter to yylex.
1941         (HWS, EOID): New shorthand.
1942         (IWORD): Add a couple more types.
1943         (yylex): Add a setup stanza.  Remove the complex rules for
1944         detecting GTY'ed types and typedefs; replace with simple
1945         keyword detectors.  Adjust everything for the changed
1946         definition of yylval.  Ignore all pp-directives, not just #define.
1947         (yyerror): Delete.
1948         (parse_file): Rename yybegin; do not call yyparse.
1949         (yyend): New.
1950         * gengtype.c (xasprintf): Export again.
1951         (this_file): New.  Use everywhere __FILE__ was being used.
1952         (get_lang_bitmap): Special case types defined in gengtype.c.
1953         (do_typedef, new_structure): Suppress definition of certain types.
1954         (new_structure): Improve diagnostics of duplicate definitions.
1955         Make sure location_s is associated with input.h.
1956         (nreverse_pairs, define_location_structures): New functions.
1957         (main): Improve tagging of kludge types.  Remove old kludges
1958         for input.h types; use define_location_structures.
1959         * gengtype.h: Update prototypes.  Define token codes here.
1960         * Makefile.in: Remove all references to gengtype-yacc.
1961         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
1962         and gengtype.
1963         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
1964         add GTY((skip)) to the field that's only conditionally there.
1965         * doc/install.texi: Document that Bison is no longer required
1966         unless building treelang.
1967
1968         * gengtype.c: Don't include gtyp-gen.h.
1969         (srcdir): Declare here.
1970         (base_files, lang_dir_names): Allocate dynamically.
1971         (gt_files, num_gt_files, num_lang_dirs): New globals.
1972         (measure_input_list, read_input_line, read_input_list)
1973         (set_lang_bitmap): New functions.
1974         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
1975         simplify, relying on read_input_list to set up the bitmaps.
1976         (main): Arguments are no longer unused.  Check for correct number
1977         of command line arguments, set srcdir and srcdir_len, then call
1978         read_input_list, before doing anything else.  No need to worry
1979         about duplicates in main loop.
1980         * configure.ac: Simplify the calculation of all_gtfiles.
1981         Put language tags in there.  Don't set or substitute
1982         all_gtfiles_files_langs or all_gtfiles_files_frags.
1983         * Makefile.in: Revamp the way gengtype is invoked, now that it
1984         takes a file on its command line with a much simpler format.
1985         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
1986         (GTFILES): Remove duplicates and C source files.
1987         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
1988         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
1989         * configure: Regenerate.
1990
1991         * gengtype.h: Remove all type definitions to gengtype.c; leave
1992         only definitions of options_p, type_p, and pair_p as opaque
1993         pointers.  Update prototypes.
1994         * gengtype.c: Many type definitions moved here from gengtype.h.
1995         Consolidate type definitions at the top of the file.
1996         (xvasprintf): Delete.
1997         (xasprintf): Make static.
1998         (create_nested_pointer_option): Add 'next' parameter.
1999         (create_field_all, create_field_at): New functions.
2000         (create_field): Now a thin wrapper around create_field_all.
2001         (create_optional_field): Rename create_optional_field_ and add
2002         line argument.  Original name is now a macro which supplies
2003         __LINE__.
2004         (oprintf): Use vsnprintf directly.
2005         (close_output_files): Use fatal rather than perror/exit.
2006         (note_def_vec, note_def_vec_alloc): Use create_field_at.
2007         (main): Set progname.  Don't use exit.
2008         * gengtype-yacc.y (struct_fields): Use create_field_at.
2009         (option, optionseqopt): Delete.
2010         (optionseq): Consolidate productions from option here so we
2011         can use the first argument to create_option.
2012
2013         * gengtype-lex.l: Distinguish unions from structures in the
2014         token type.  Don't call find_structure; return the tag as a string.
2015         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
2016         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
2017         Reorganize typedef_struct production accordingly.
2018         Use create_nested_ptr_option.
2019         * gengtype.c (create_nested_ptr_option): New function.
2020         * gengtype.h: Declare it.
2021
2022         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
2023         (string_type): Don't declare.
2024         (do_scalar_typedef): Declare.
2025         (create_scalar_type): Update prototype.
2026         * gengtype.c (string_type): Make static.
2027         (scalar_nonchar, scalar_char): New.
2028         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
2029         (resolve_typedef): Use scalar_nonchar for error recovery.
2030         (create_scalar_type): Remove name_len field.  Return scalar_char
2031         or scalar_nonchar as appropriate.
2032         (adjust_field_type): Look at scalar_is_char boolean to decide whether
2033         to use string_type.
2034         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
2035         whenever possible.
2036         (main): Initialize scalar_char and scalar_nonchar before calling
2037         gen_rtx_next.
2038         * gengtype-lex.l: Adjust for removal of second argument to
2039         create_scalar_type.  Use yylval.s instead of yylval.t when
2040         returning SCALAR.
2041         * gengtype-yacc.y: Type of SCALAR is string.  Call
2042         create_scalar_type from type:SCALAR rule.  Adjust for removal of
2043         second argument to create_scalar_type.
2044
2045         * vec.h: Remove all #if IN_GENGTYPE blocks.
2046         Add comment saying that changes may require adjustments to gengtype.
2047         * gengtype.c: Don't include coretypes.h or tm.h.
2048         Add comment to inclusion of errors.h.
2049         (note_def_vec, note_def_vec_alloc): New functions.
2050         * gengtype.h: Declare new functions.
2051         * gengtype-lex.l: Don't include coretypes.h.
2052         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
2053         Delete.
2054         (update_lineno): Remove unnecessary prototype.
2055         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
2056         (VEC rule): Just return VEC_TOKEN.
2057         * gengtype-yacc.y (VEC_TOKEN): New token type.
2058         (type): Add a production for VEC(a,b).
2059         * Makefile.in: Update dependencies.
2060
2061         * gengtype-lex.l: Remove rules for parsing pointer-to-function
2062         typedefs that use the old PARAMS macro.
2063
2064         * gengtype-lex.l: Remove all rules and states relating to yacc
2065         input files.
2066         * gengtype-yacc.y: Similarly.
2067         * gengtype.c (note_yacc_type): Delete function.
2068         * gengtype.h: Update prototypes.
2069
2070 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
2071
2072         * tree-pretty-print.c (dump_generic_node): Report precision of
2073         unnamed integer types.
2074
2075 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
2076
2077         * ifcvt.c (noce_try_store_flag_constants): Don't check
2078         no_new_pseudos here.
2079         (noce_try_store_flag_constants): Don't check no_new_pseudos.
2080         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
2081         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2082         noce_try_sign_mask): Likewise.
2083         (if_convert): Check no_new_pseudos here.
2084
2085         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
2086         Remove prototypes.
2087         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
2088         (noce_get_condition): Handle new then_else_reversed argument.
2089         (noce_init_if_info): Remove, fold into noce_find_if_block.
2090         (noce_process_if_block): Take a struct noce_if_info as the
2091         argument.  Don't set up one based on ce_if_info.  Update pointer
2092         references accordingly.
2093         (cond_move_process_if_block): Likewise.
2094         (process_if_block): Removed.
2095         (find_if_block): Removed.  Move functionality two new functions,
2096         noce_find_if_block and cond_exec_find_if_block.
2097         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
2098         blocks and the symmetric IF-ELSE-JOIN case.
2099         (cond_exec_find_if_block): Also new function mostly based on old
2100         find_if_block and process_if_block.
2101         (find_if_header): Replace find_if_block call with separately
2102         guarded calls to noce_find_if_block and cond_exec_find_if_block.
2103         (find_cond_trap): Update noce_get_condition call.
2104         (dead_or_predicable): Likewise.
2105
2106 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
2107
2108         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
2109         Remove.
2110         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
2111         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
2112         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
2113         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
2114         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
2115         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
2116         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
2117         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
2118         __builtin_ia32_psrad128 builtins.
2119
2120 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
2123         * config/i386/constraints.md
2124         (define_constraint "I"): Use IN_RANGE macro.
2125         (define_constraint "J"): Ditto.
2126         (define_constraint "K"): Ditto.
2127         (define_constraint "M"): Ditto.
2128         (define_constraint "N"): Ditto.
2129         (define_constraint "O"): Ditto.
2130         * config/i386/predicates.md
2131         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
2132         (define_predicate "const_0_to_3_operand"): Ditto.
2133         (define_predicate "const_0_to_7_operand"): Ditto.
2134         (define_predicate "const_0_to_15_operand"): Ditto.
2135         (define_predicate "const_0_to_63_operand"): Ditto.
2136         (define_predicate "const_0_to_255_operand"): Ditto.
2137         (define_predicate "const_1_to_31_operand"): Ditto.
2138         (define_predicate "const_2_to_3_operand"): Ditto.
2139         (define_predicate "const_4_to_7_operand"): Ditto.
2140
2141 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
2142
2143         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
2144         in SImode for save_world.
2145         * config/rs6000/altivec.md (save_world, restore_world): Convert to
2146         LR hard reg.
2147
2148 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
2149
2150         PR tree-optimization/30784
2151         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
2152         BIT_FIELD_REF.
2153
2154 2007-03-25  Revital Eres  <eres@il.ibm.com>
2155
2156         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
2157           Fold movement_possibility function into it.
2158
2159 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
2160
2161         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
2162         (load_macho_picbase_{si,di}): Convert to LR hard reg.
2163         (call_indirect_nonlocal_darwin64): Same.
2164         (call_nonlocal_darwin64): Same.
2165         (call_value_indirect_nonlocal_darwin64): Same.
2166         (call_value_nonlocal_darwin64): Same.
2167         (sibcall_nonlocal_darwin64): Same.
2168         (sibcall_value_nonlocal_darwin64): Same.
2169         (sibcall_symbolic_64): Same.
2170         (sibcall_value_symbolic_64): Same.
2171         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
2172         LR pseudo.
2173         (rs6000_emit_load_toc_table): Same.
2174         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
2175         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
2176         (mull_call): Same.
2177         (divss_call): Same.
2178         (divus_call): Same.
2179         (quoss_call): Same.
2180         (quous_call): Same.
2181         (load_toc_v4_pic_si): Same
2182         (load_toc_v4_PIC_1): Same.
2183         (load_toc_v4_PIC_1b): Same.
2184         (call_indirect_aix{32,64}): Same.
2185         (call_value_indirect_aix{32,64}): Same.
2186         (call): Same.
2187         (call_value): Same.
2188         (call_local{32,64}): Same.
2189         (call_value_local{32,64}): Same.
2190         (call_indirect_nonlocal_aix{32,64}): Same.
2191         (call_nonlocal_aix{32,64}): Same.
2192         (call_value_indirect_nonlocal_aix{32,64}): Same.
2193         (call_value_nonlocal_aix{32,64}): Same.
2194         (call_indirect_nonlocal_sysv<mode>): Same.
2195         (call_nonlocal_sysv<mode>): Same.
2196         (call_value_indirect_nonlocal_sysv<mode>): Same.
2197         (call_value_nonlocal_sysv<mode>): Same.
2198         (sibcall): Same.
2199         (sibcall_local{32,64}): Same.
2200         (sibcall_value_local{32,64}): Same.
2201         (sibcall_nonlocal_aix{32,64}): Same.
2202         (sibcall_value_nonlocal_aix{32,64}): Same.
2203         (sibcall_nonlocal_sysv<mode>): Same.
2204         (sibcall_value): Same.
2205         (sibcall_value_nonlocal_sysv<mode>): Same.
2206
2207 2007-03-24  Paul Brook  <paul@codesourcery.com>
2208
2209         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
2210         * config/arm/linux-eabi.h: Remove legacy syscall hack.
2211
2212 2007-03-24  Richard Henderson  <rth@redhat.com>
2213
2214         * config/ia64/constraints.md: New file.
2215         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
2216         satisfies_constraint_?.
2217         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
2218         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
2219         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
2220         ia64_output_mi_thunk): Likewise.
2221         (ia64_const_ok_for_letter_p): Remove.
2222         (ia64_const_double_ok_for_letter_p): Remove.
2223         (ia64_extra_constraint): Remove.
2224         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
2225         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
2226         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
2227         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
2228         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
2229         EXTRA_MEMORY_CONSTRAINT): Remove.
2230         * config/ia64/ia64.md: Include constriants.md.  Replace
2231         CONST_OK_FOR_? with satisfies_constraint_?.
2232
2233 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
2234             H.J. Lu  <hongjiu.lu@intel.com>
2235
2236         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
2237         DPD or BID name.
2238         (name macros): Use DPD_BID_NAME to convert names properly.
2239
2240         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
2241         decimal floating point format.
2242         (init_floating_libfuncs): Change decimal functions so that they
2243         have a "bid_" prefix if the decimal system uses the BID format,
2244         and "dpd_" prefix if the decimal system uses the DPD format.
2245         (init_interclass_conv_libfuncs): Ditto.
2246         (init_intraclass_conv_libfuncs): Ditto.
2247
2248         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
2249         using the BID format.
2250
2251         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
2252         whether we are using the BID decimal format.
2253         * configure: Regenerate.
2254
2255         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
2256         the compiler has decimal floating point enabled.  Define
2257         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
2258         instead of DPD.
2259
2260         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
2261         using the BID format.
2262
2263         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
2264         whether we are using the BID decimal format.
2265         * configure: Regenerate.
2266
2267         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
2268         the compiler has decimal floating point enabled.  Define
2269         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
2270         instead of DPD.
2271
2272         * doc/install.texi (--enable-decimal-float): Document BID and DPD
2273         options, and that it is enabled for i386/x86_64 systems.
2274
2275         * Makefile.in (enable_decimal_float): New.
2276         (DECNUMFMT): New.
2277         (DECNUMINC): Add  -I$(DECNUMFMT).
2278         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
2279         to $(DECNUMFMT) from $(DECNUM).
2280
2281         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
2282         Substitute enable_decimal_float.
2283         * configure: Regenerated.
2284
2285         PR other/30529
2286         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
2287         unsigned long.
2288
2289         * configure.ac: Enable decimal float for x86_64-*-linux*.
2290         * configure: Regenerated.
2291
2292         PR other/30530
2293         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
2294         decimal128ClearSign to flip and clear the sign bit in decimal128.
2295         (decimal_real_maxval): Set decimal128SetSign to set the sign
2296         bit in decimal128.
2297
2298 2007-03-23  Ian Lance Taylor  <iant@google.com>
2299
2300         * fold-const.c (fold_binary): Correct warning for X - c >= X.
2301
2302 2007-03-23  Ian Lance Taylor  <iant@google.com>
2303
2304         * tree-dump.c (dump_files): Correct comment.
2305
2306 2007-03-23  Ian Lance Taylor  <iant@google.com>
2307
2308         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
2309
2310 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2311
2312         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
2313         in cfglayout mode.  Don't go into and out of cfglayout mode.
2314         Link the blocks in the order of the constructed traces.
2315         (rest_of_handle_tracer): Adjust call to tracer.
2316         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
2317         Don't go into cfglayout mode.
2318         (rtl_loop_done): Don't go out of cfglayout mode.
2319         * cfglayout.c (relink_block_chain): New function, split out from...
2320         (fixup_reorder_chain): ...here.  Remove redundant checking.
2321         (cfg_layout_finalize): Don't clear the header, footer, and aux
2322         fields here, move the code to do so to relink_block_chain.  Likewise
2323         for free_original_copy_tables.
2324         * rtl.h (tracer): Update prototype.
2325         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
2326         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
2327         mode.  Use relink_block_chain to serialize the CFG according to the
2328         new basic block order.  Move targetm.cannot_modify_jumps_p check from
2329         here...
2330         (gate_handle_reorder_blocks): ...to here.
2331         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
2332         from here...
2333         (gate_duplicate_computed_gotos): ...to here.
2334         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
2335         something always changes when going into and out of cfglayout mode.
2336         Perform an expensive cfg cleanup while going into cfglayout mode.
2337         Always update liveness information on HAVE_conditional_execution
2338         targets.  Reserialize the basic blocks and go out of cfglayout mode.
2339         * reg-stack.c: Include cfglayout.h.
2340         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
2341         the call to reorder_basic_blocks.
2342         * basic-block.h (reorder_basic_blocks): Update prototype.
2343         (relink_block_chain): New prototype.
2344         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
2345
2346 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
2347
2348         * config/mips/mips.md (type, hazard, *movdi_32bit,
2349         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
2350         *movhi_internal, *movqi_internal, *movsf_hardfloat,
2351         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
2352         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
2353         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
2354         applicable.
2355         (movcc): Change first xfer to multi.
2356         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
2357         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
2358         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
2359         config/mips/generic.md: Change reservations using "xfer" to use
2360         "mfc,mtc".
2361         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
2362         using match_operand.
2363         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
2364         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
2365         examining mode.
2366         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
2367
2368 2007-03-22  Richard Henderson  <rth@redhat.com>
2369
2370         * config/i386/i386.c: Remove unnecessary function declarations.
2371         Move targetm definition, and all related macros, to the end of
2372         the file.  Resort some functions to put definitions before uses.
2373         (ix86_attribute_table): Make static.  Move to end of file.
2374         (ix86_gimplify_va_arg): Make static.
2375
2376 2007-03-22  Richard Henderson  <rth@redhat.com>
2377
2378         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
2379         don't increase local_regparm with force_align_arg_pointer check.
2380         (ix86_function_sseregparm): Assert 32-bit.
2381         (type_has_variadic_args_p): New.
2382         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
2383         type_has_variadic_args_p.
2384         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
2385         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
2386         use memset instead.  Do maybe_vaarg check first; skip attribute
2387         tests if true; skip attribute tests for 64-bit.
2388         (construct_container): Remove TARGET_DEBUG_ARG.
2389         (function_arg_advance_32, function_arg_advance_64): Split out ...
2390         (function_arg_advance): ... from here.
2391         (function_arg_32, function_arg_64): Split out ...
2392         (function_arg): ... from here.
2393         (ix86_pass_by_reference): Tidy.
2394         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
2395         (function_value_32): New, from parts of ix86_function_value
2396         and ix86_value_regno.
2397         (function_value_64): New, from parts of ix86_function_value
2398         and ix86_libcall_value.
2399         (ix86_function_value_1): New.
2400         (ix86_function_value, ix86_libcall_value): Use it.
2401         (return_in_memory_32, return_in_memory_64): Split out ...
2402         (ix86_return_in_memory): ... from here.
2403         (ix86_struct_value_rtx): Skip for 64-bit.
2404         (ix86_libcall_value, ix86_value_regno): Remove.
2405         (setup_incoming_varargs_64): Split out ...
2406         (ix86_setup_incoming_varargs): ... from here.
2407         (ix86_va_start): Remove TARGET_DEBUG_ARG.
2408         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
2409         * config/i386/i386-protos.h (ix86_function_value): Remove.
2410         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
2411
2412 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2413
2414         PR other/23572
2415         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
2416         infinities not supported, otherwise emit warning if -Woverflow. On
2417         underflow, emit warning if -Woverflow.
2418         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
2419         and 0 otherwise.
2420         * real.h (real_from_string): Update declaration
2421
2422 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
2423             Richard Henderson  <rth@redhat.com>
2424
2425         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
2426         * calls.c (compute_argument_block_size, expand_call,
2427         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
2428         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2429         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
2430         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
2431         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
2432         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
2433         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
2434         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
2435         Set to 1.
2436
2437 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
2438
2439         * c-incpath.c (add_sysroot_to_chain): New.
2440         (merge_include_chains): Add sysroot argument.  Call
2441         add_sysroot_to_chain if sysrooted.
2442         (register_include_chains): Update call to merge_include_chains.
2443         * doc/cppopts.texi: Document use of '=' in include directory
2444         arguments.
2445
2446 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
2447
2448         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
2449         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
2450         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
2451         insn pattern using X87MODEF12 mode macro.
2452
2453 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
2454
2455         * regmove.c (regmove_optimize): Use reg_mentioned_p
2456         instead of reg_overlap_mentioned_p for DST.
2457
2458 2007-03-21  Mike Stump  <mrs@apple.com>
2459
2460         * c.opt: Fixup for Objective-C/C++.
2461
2462 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
2463
2464         * explow.c (convert_memory_address): Fold memory reference when
2465         POINTERS_EXTEND_UNSIGNED < 0
2466
2467 2007-03-21  Richard Henderson  <rth@redhat.com>
2468
2469         PR target/31245
2470         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
2471         * config/i386/mmintrin.h (__m64): Likewise.
2472         * config/i386/xmmintrin.h (__m128): Likewise.
2473
2474 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
2475
2476         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
2477         (VXWORKS_OS_CPP_BUILTINS): Define.
2478         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
2479         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
2480
2481 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
2482
2483         * rtl.h (constant_pool_reference_p): Delete.
2484         (find_constant_src): Declare.
2485         * rtlanal.c (find_constant_src): New function.
2486         * simplify-rtx.c (constant_pool_reference_p): Delete.
2487         * config/i386/i386.md: Use find_constant_src instead of
2488         constant_pool_reference_p/avoid_constant_pool_reference pairs.
2489
2490 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
2491
2492         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
2493         * c-cppbuiltin.c (c_cpp_builtins): Define them.
2494
2495 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
2496
2497         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
2498         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
2499         (arm_elf_asm_constructor): Use it.
2500         (arm_elf_asm_destructor): New function.
2501
2502 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2503
2504         * jump.c (mark_jump_label): Treat SEQUENCE specially.
2505
2506 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
2507
2508         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
2509
2510 2007-03-19  Andrew Haley  <aph@redhat.com>
2511
2512         PR tree-optimization/31264
2513         * tree-vrp.c (register_edge_assert_for_1): Don't look though
2514         VIEW_CONVERT_EXPRs.
2515
2516 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
2517
2518         PR rtl-optimization/30907
2519         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
2520         (fwprop_init): Always call loop_optimizer_initialize.
2521         (fwprop_done): Always call loop_optimizer_finalize.
2522         (fwprop): We always have loop info now.
2523         (gate_fwprop_addr): Remove.
2524         (pass_fwprop_addr): Use gate_fwprop as gate.
2525
2526         PR rtl-optimization/30841
2527         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
2528         df_chain_alloc): Call df_reorganize_refs unconditionally.
2529         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
2530         refs_organized to refs_organized_size.
2531         (df_ref_create_structure): Use refs_organized_size instead of
2532         bitmap_size if refs had been organized, and keep refs_organized_size
2533         up-to-date.
2534         * df.h (struct df_ref_info): Change refs_organized to
2535         refs_organized_size.
2536         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
2537         bitmap_size.
2538
2539 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
2540
2541         * except.c (output_function_exception_table): Do not reference the
2542         EH personality routine for functions that do not require an
2543         exception table.
2544
2545 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
2546
2547         PR c/30762
2548         * c-typeck.c (convert_for_assignment): Call comptypes for
2549         RECORD_TYPE or UNION_TYPE.
2550
2551         PR inline-asm/30505
2552         * reload1.c (reload): Do invalid ASM checking after
2553         cleanup_subreg_operands.
2554
2555 2007-03-19  Jeff Law  <law@redhat.com>
2556
2557         * tree-cfg.c (find_taken_edge): Tighten conditions for
2558         optimizing computed gotos.
2559
2560 2007-03-19  Michael Matz  <matz@suse.de>
2561
2562         * builtins.c (expand_builtin_sync_operation,
2563         expand_builtin_compare_and_swap,
2564         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
2565         correctly.
2566
2567         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
2568         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
2569         for operand 3.
2570
2571 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2572
2573         * doc/tm.texi: Add brackets around the return type of
2574         TARGET_SECONDARY_RELOAD.
2575
2576 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2577         Richard Guenther  <rguenther@suse.de>
2578
2579         PR tree-optimization/31254
2580         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
2581         Use handled_component_p () where appropriate.  Continue
2582         propagating into the rhs if we propagated into an INDIRECT_REF
2583         on the lhs.
2584
2585 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2586
2587         * config/s390/s390.md (op_type attribute): RRR instruction type added.
2588         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
2589         (xde, xdee): Mode attributes adjusted to support DFP modes.
2590         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
2591         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
2592         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
2593         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
2594         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
2595         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2596         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
2597         numbers.
2598         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
2599         "movsf"): Insn definitions removed.
2600         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
2601         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
2602         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
2603         definitions added.
2604         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
2605         "reload_in<mode>", "reload_out<mode>"): Expander added.
2606         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
2607         Expander removed.
2608
2609 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2610
2611         * config/s390/s390.md: Only non-functional changes.  Renamed
2612         FPR mode macro to BFP all over the file.
2613
2614 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2615
2616         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
2617         (op_type attribute): RRF instruction type added.
2618         (fT0): New mode attribute.
2619         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
2620         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
2621         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
2622         no secondary memory is needed when moving DFmode values between GPRs
2623         and FPRs.
2624
2625 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2626
2627         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
2628         inverted and documentation adjusted.
2629         ("mhard-dfp", "msoft-dfp"): New options.
2630         * config/s390/s390.c (s390_handle_arch_option): New architecture
2631         switch: z9-ec.
2632         (override_options): Sanity checks for the new options added.
2633         * config.gcc: New architecture switch: z9-ec.
2634         * config/s390/s390.h (processor_flags): PF_DFP added.
2635         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
2636         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
2637         when the bit is NOT set so remove it from the defaults.
2638
2639 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2640
2641         * genemit.c (main): Print include statement for dfp.h.
2642         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
2643         is not available.
2644
2645 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
2646
2647         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
2648
2649 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2650
2651         PR target/31022
2652         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
2653         instead of PATTERN.
2654
2655 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2656
2657         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
2658         attr_length_call, output_call, output_indirect_call): Cleanup
2659         formatting of targetm calls.
2660
2661 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
2662
2663         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
2664
2665 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2666
2667         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
2668         reservation, bypass and anti-bypass descriptions for these instructions.
2669         Update move patterns.
2670         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
2671         TYPE_FPSTORE.
2672
2673 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
2674
2675         * tree-vect-transform.c (get_initial_def_for_induction): Replace
2676         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
2677         (get_initial_def_for_reduction): Likewise.
2678
2679 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
2680
2681         Fix PR tree-optimization/29922
2682         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
2683         (get_representative): Removed.
2684         (value_dies_in_block_x): Update for rvuse removal.
2685         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
2686         (compute_antic_aux): Handle when PHI nodes appear in
2687         non-single-successors.
2688         (dump_bitmap_of_names): Removed.
2689         (compute_antic_safe): Renamed and removed rvuse calculation.
2690         Calculate only antic safe.
2691         (insert_into_preds_of_block): Remove assert.
2692         (execute_pre): Update for renamed functions.
2693         (defer_or_phi_translate_block): New function.
2694
2695 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
2696
2697         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
2698         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
2699         typos.
2700         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
2701         Follow spelling conventions.
2702
2703         * tree-data-ref.h: Remove the prototype for analyze_array.
2704
2705 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
2706
2707         PR tree-optimization/31041
2708         * tree-vect-transform.c (get_initial_def_for_induction): Call
2709         force_gimple_operand.
2710
2711 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
2712
2713         * ipa-type-escape.c (look_for_casts) : Revert code to use
2714         handled_component_p due to ada test a-numaux.adb.
2715
2716 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
2717
2718         * final.c (final_scan_insn): Alter the condition of a
2719         conditional trap if we have nonstandard CC.
2720
2721 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
2722
2723         * configure.ac: Remove excess quoting from asm line 0 test.
2724         * configure: Rebuilt.
2725
2726 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2727
2728         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
2729         * c-common.c (convert_and_check): Move warning logic to...
2730         (warnings_for_convert_and_check): ...here. Define.
2731         * c-common.h (warnings_for_convert_and_check): Declare.
2732
2733 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2734
2735         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
2736         (output_call): Likewise.
2737
2738 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
2739
2740         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
2741
2742 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
2743
2744         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
2745
2746 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
2747
2748         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
2749         opteron, athlon-64 and athlon-fx processor_alias_table entries.
2750
2751 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
2752
2753         PR tree-optimization/31183
2754         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
2755         Use double_int instead of unsigned int for representing access_strides.
2756         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
2757
2758 2007-03-16  Richard Guenther  <rguenther@suse.de>
2759
2760         PR tree-optimization/31146
2761         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
2762         to allow recursion of forward_propagate_addr_expr.
2763         (forward_propagate_addr_into_variable_array_index): Likewise.
2764         (forward_propagate_addr_expr): Likewise.
2765         (tree_ssa_forward_propagate_single_use_vars): Likewise.
2766         (forward_propagate_addr_expr_1): Recurse on simple copies
2767         instead of propagating into them.  Do so for useless conversions
2768         as well.
2769         (forward_propagate_addr_expr): Clean up unused statements after
2770         recursion.
2771
2772 2007-03-16  Richard Guenther  <rguenther@suse.de>
2773
2774         * builtins.c (expand_builtin_cexpi): Use the right argument
2775         for the expansion via cexp.
2776
2777 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
2778
2779         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
2780         * configure: Rebuilt.
2781
2782 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
2783
2784         PR debug/29906
2785         * dwarf2out.c (force_type_die): Adjust comment.
2786         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
2787
2788 2007-03-15  DJ Delorie  <dj@redhat.com>
2789
2790         * config/frv/predicates.md (minmax_operator): Don't check operands
2791         here.
2792
2793 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
2794
2795         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
2796         Update constant estimates of number of iterations.
2797         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
2798         argument renamed to "realistic".
2799         (compute_estimated_nb_iterations): Removed.
2800         (record_niter_bound): New function.
2801         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
2802         call record_nonwrapping_iv with upper = false.
2803         (infer_loop_bounds_from_signedness): Pass upper argument to
2804         record_nonwrapping_iv.
2805         (estimate_numbers_of_iterations_loop): Do not call
2806         compute_estimated_nb_iterations.  Record estimate based on profile
2807         information.  Initialize the constant estimates of number of
2808         iterations.
2809         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
2810         estimates.
2811         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
2812         number of iterations is too small.
2813         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
2814         (EST_NOT_AVAILABLE): Removed.
2815         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
2816         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
2817         fields.
2818
2819 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
2820
2821         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
2822         Handle NE_EXPR guards.
2823
2824 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2825
2826         PR c++/24924
2827         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
2828         Set also -pedantic-errors by default for the  preprocessor unless
2829         -fpermissive is given.
2830
2831 2007-03-15  Richard Guenther  <rguenther@suse.de>
2832
2833         PR middle-end/29719
2834         PR middle-end/31161
2835         * builtins.c (expand_builtin_cexpi): As a fallback if we
2836         don't have builtins for sincos or cexp create a function
2837         declaration for cexp and expand to a call to that.
2838         (expand_builtin_int_roundingfn): Always fall
2839         back to floor/ceil and its variants even if they may be
2840         not available.
2841
2842 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
2843
2844         PR middle-end/31159
2845         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
2846         jump tables, move the call to delete_dead_jumptables from here...
2847         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
2848         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
2849         don't allow merging of blocks that try_redirect_by_replacing_jump
2850         also does not handle when not optimizing.
2851
2852 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
2853             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2854
2855         * config/i386/i386.md (x86_sahf_1): Correctly handle
2856         HAVE_AS_IX86_SAHF.
2857
2858 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
2859
2860         PR target/31167
2861         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
2862         x86_64_general_operand as operand[2] predicate.  Remove "iF"
2863         from operand constraints and use "e" constraint instead.
2864         (*subti3_1, *subti3_1 splitter): Ditto.
2865         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
2866         operand[1] predicate.
2867
2868 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
2869
2870         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
2871         arrays, multiply the access strides by the size of the sub-array.
2872         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
2873
2874 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
2875
2876         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
2877         the configured assembler supports the sahf mnemonic.
2878         * configure: Regenerate.
2879         * config.in: Regenerate.
2880
2881         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
2882         emit "sahf" or ".byte\t0x9e" as asm template.
2883
2884 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
2885
2886         PR 31018
2887         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
2888         option to replace hard coded TARGET_xxx in md file.
2889         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
2890         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2891         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
2892         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
2893         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
2894         (X86_TUNE_NOT_VECTORMODE): Ditto.
2895         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
2896         (TUNE_AVOID_VECTOR_DECODE): Ditto.
2897         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
2898         (TUNE_SLOW_IMUL_IMM8): Ditto.
2899         (TUNE_MOVE_M1_VIA_OR): Ditto.
2900         (TUNE_NOT_UNPAIRABLE): Ditto.
2901         (TUNE_NOT_VECTORMODE): Ditto.
2902
2903         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
2904         options.
2905
2906         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
2907         tuning options instead of hard coded TARGET_xxx.
2908         (fix ssemode peephole2's): Ditto.
2909         (imul peephole2's): Ditto.
2910         (movsi_or): Ditto.
2911         (movdi_or_rex64): Ditto.
2912         (move peephole2): Ditto.
2913         (not peephole2's): Ditto.
2914
2915 2007-03-14  Dirk Mueller  <dmueller@suse.de>
2916
2917         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
2918         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
2919         * c-parser.c (c_parser_if_body): Always add an empty statement in case
2920         of empty body.
2921         * c-parser.c (c_parser_do_statement): Warn about empty body in
2922         do/while statement.
2923         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
2924         * doc/invoke.texi (-Wempty-body): Update documentation.
2925
2926 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2927
2928         PR c/21438
2929         * c-common.h (warn_for_div_by_zero): Declare.
2930         * c-common.c (warn_for_div_by_zero): Define.
2931         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
2932         warning.
2933
2934 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
2935
2936         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
2937         to PREFIX and STANDARD_PREFIX.
2938
2939 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
2940             Phil Edwards  <phil@codesourcery.com>
2941
2942         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
2943         (__gthread_once_t): Remove busy field for RTPs.
2944         (__GTHREAD_ONCE_INIT): Update accordingly.
2945
2946 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
2947
2948         * doc/invoke.texi: Document VxWorks options.
2949
2950 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
2951
2952         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
2953
2954 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
2955
2956         PR tree-optimization/30590
2957         * tree-nrv.c (tree_nrv): Check for the partial update of the
2958         return value.
2959
2960 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
2961
2962         * flags.h (flag_random_seed): Remove declaration, in favor of...
2963         * toplev.h (get_random_seed, set_random_seed): ... these.
2964         * tree.c (get_file_function_name): Use the former.
2965         * opts.c (common_handle_option): Use the latter.
2966         * toplev.c
2967
2968 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
2969
2970         PR middle-end/31127
2971         * cse.c (cse_find_path): Do not bail out if a basic block that
2972         we already visited now becomes part of a path that starts at a
2973         different basic block.  Just disallow this, to make sure we
2974         visit each basic block at most once.
2975
2976 2007-03-13  Jan Hubicka  <jh@suse.cz>
2977
2978         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
2979         when profile esitmate is present, calls with very low frequency are
2980         cold.
2981
2982 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
2983
2984         PR tree-optimization/30730
2985         PR tree-optimization/26900
2986         * tree-ssa-loop-niter.c: Include gmp.h.
2987         (bounds): New type.
2988         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
2989         split_to_var_and_offset, determine_value_range,
2990         bound_difference_of_offsetted_base, refine_bounds_using_guard,
2991         bound_difference, bounds_add, bounds_negate,
2992         number_of_iterations_ne_max, dump_affine_iv): New functions.
2993         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
2994         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
2995         difference of initial and final value of control iv to validate
2996         results.
2997         (number_of_iterations_cond): Add loop parameter.  Determine bounds
2998         on the difference of the extremes of the control iv.  Add dumps.
2999         (expand_simple_operations): Handle phi nodes.
3000         (simplify_using_initial_conditions): Do not record used conditions.
3001         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
3002         Do not set additional_info.
3003         (implies_nonnegative_p, implies_ge_p): Removed.
3004         (derive_constant_upper_bound): Do not use parameter `additional'.
3005         (record_estimate): Parameter `additional' removed.  Parameter
3006         `i_bound' added.  Do not call derive_constant_upper_bound.
3007         (record_nonwrapping_iv): Use derive_constant_upper_bound to
3008         bound the number of iterations estimate.
3009         (estimate_numbers_of_iterations_loop): Pass the estimate from
3010         the number of iterations analysis to record_estimate.
3011         * tree.h (multiple_of_p): Declare.
3012         * tree-scalar-evolution.c (expression_expensive_p): Removed.
3013         (scev_const_prop): Do not check expression_expensive_p.
3014         * fold-const.c (multiple_of_p): Exported.
3015         * double-int.c (double_int_mask): Exported.
3016         * double-int.h (double_int_mask): Declare.
3017         * tree-flow.h (struct tree_niter_desc): Removed additional_info
3018         field.  Added max field.
3019
3020 2007-03-13  David Taylor  <taylor@candd.org>
3021
3022         PR driver/12448:
3023         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
3024         default -MQ.
3025
3026 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3027
3028         PR target/31123
3029         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
3030         two unamed patterns.
3031
3032 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
3033
3034         * config/i386/i386.opt (mcx16, msahf): New options.
3035         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
3036         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
3037
3038         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
3039         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
3040         Output -mcx16 and -msahf options when corresponding bit is set.
3041
3042         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
3043         and -msahf options.
3044
3045 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
3046
3047         * configure.ac: Test for assembler tolerance to # 0 "".
3048         * configure, config.in: Rebuilt.
3049         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
3050
3051 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
3052
3053         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
3054
3055         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
3056         (handle_syscall): Handle direct system calls.
3057         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
3058
3059 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
3060
3061         * doc/invoke.texi: Fix cpp.info cross-reference.
3062         * doc/passes.texi: Fix gcc.info cross-reference.
3063
3064 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
3065
3066         PR tree-optimization/30835
3067         * lambda-code.c (can_convert_to_perfect_nest): Check whether
3068         bb_for_stmt is not NULL before accessing it.
3069
3070 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
3071
3072         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
3073         some multilibs.
3074
3075 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
3076
3077         PR 30635
3078         * doc/install.texi: Document --enable-stage1-languages
3079
3080 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
3081
3082         * tree-pass.h (pass_into_cfg_layout_mode,
3083         pass_outof_cfg_layout_mode): Declare.
3084         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
3085         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
3086         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
3087         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
3088
3089 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
3090
3091         * c-decl.c (warn_variable_length_array): New function.
3092         Refactored from grokdeclarator to handle warn_vla
3093         and handle unnamed array case.
3094         (grokdeclarator): Refactored VLA warning case.
3095         * c.opt (Wvla): New flag.
3096         * doc/invoke.texi (Wvla): New warning.
3097
3098 2007-03-12  Richard Henderson  <rth@redhat.com>
3099
3100         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
3101         (TARGET_SECTION_TYPE_FLAGS): New.
3102
3103 2007-03-12  Richard Henderson  <rth@redhat.com>
3104
3105         * config/darwin.c (machopic_reloc_rw_mask): New.
3106         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
3107         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
3108
3109 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
3110
3111         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
3112         * cppdefault.h (cpp_PREFIX): Document.
3113         (cpp_PREFIX_len): Likewise.
3114         (cpp_EXEC_PREFIX): New variable.
3115         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
3116         * c-incpath.c (add_standard_paths): Correct logic for relocating
3117         paths within prefix.
3118
3119 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
3120
3121         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
3122         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
3123         mode macro.
3124         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
3125         fix_truncdfdi_sse using SSEMODEF mode macro.
3126         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
3127         fix_truncdfsi_sse using SSEMODEF mode macro.
3128         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
3129         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
3130
3131 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
3132
3133         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
3134         elfos.h to tm_file.
3135
3136 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
3137
3138         * tree.h : Add multiple_of_p declaration.
3139         * fold-const.c (multiple_of_p): Make multiple_of_p public.
3140         * ipa-type-escape.c (results_of_malloc): Redundant.
3141         (visited_stmts): New. Visited stmt for walk_use_def_chains.
3142         (cast_type): Extended with new members.
3143         (check_cast): Returns cast_type.
3144         (cast): New structure for data of walk_use_def_chains.
3145         (is_malloc_result, is_cast_from_non_pointer_1,
3146         is_cast_from_non_pointer,
3147         is_array_access_through_pointer_and_index): New functions.
3148         (look_for_casts): Returns cast types.
3149         (check_call): Returns void.
3150         (okay_pointer_operation): Use support of pointer plus index,
3151         pointer plus constant and allow all multiplications.
3152
3153 2007-03-11  Richard Guenther  <rguenther@suse.de>
3154
3155         PR tree-optimization/31115
3156         * tree-vrp.c (extract_range_from_binary_expr): Make sure
3157         the shift count is positive and non-anti-range for RSHIFT_EXPR.
3158         A shift count of zero is not special as with *_DIV_EXPR.
3159         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
3160         direction.
3161
3162 2007-03-11  Ian Lance Taylor  <iant@google.com>
3163
3164         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
3165         the *_DIV_EXPR codes correctly with overflow infinities.
3166
3167 2007-03-11  Ira Rosen  <irar@il.ibm.com>
3168
3169         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
3170         indicate success/failure of the analysis. Add negation to subtrahend
3171         in case of subtraction. Fail if both operands contain constants.
3172         (create_data_ref): Fail if analyze_offset fails.
3173
3174 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
3175
3176         * config/i386/i386.md (frndintxf2): Rename to ...
3177         (rintxf2): ... this. Remove expander having same name.
3178         (rintsf2, rintdf2): Implement using SSEMODEF macro.
3179         (roundsf2, rounddf2): Ditto.
3180         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
3181         (lround<mode>di2, lround<mode>si2): Ditto.
3182
3183 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
3184
3185         * lower-subreg.c: Include except.h.
3186         (decompose_multiword_subregs): Verify that the only control flow
3187         insns we can split are loads to multi-words pseudos.
3188         Handle breaking such blocks after splitting, instead of calling
3189         find_many_sub_basic_blocks.
3190
3191         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
3192         on the new basic block.  Add a lengthy comment explaining why we
3193         thought this was necessary.
3194         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
3195
3196 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
3197
3198         PR c++/30924
3199         * tree.c (walk_type_fields): Recurse into the element type of
3200         ARRAY_TYPEs if there is a pointer set.
3201
3202 2007-03-10  Dirk Mueller  <dmueller@suse.de>
3203
3204         * c-common.c (warn_logical_operator): Fix condition.
3205
3206 2007-03-10  Tobias Schlüter  <tobi@gcc.gnu.org>
3207
3208         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
3209         quotation mark.
3210         * config/darwin.c (machopic_select_section): Remove superfluous
3211         argument in call to categorize_decl_for_section.  Remove unused
3212         variable shlib.
3213
3214 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
3215
3216         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
3217         defined.
3218         * configure: Regenerate.
3219
3220 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
3221
3222         PR target/31101
3223         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
3224         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
3225         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
3226         Add LABEL_NUSES to emitted label.
3227         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
3228         branch probability value to emitted jump insn.
3229         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
3230         Do not check life information and do not re-arrange input operands
3231         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
3232
3233 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3234
3235         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
3236         the change of decode_asm_operands.
3237
3238 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3239
3240         * mode-switching.c (create_pre_exit): Skip blockage insn.
3241
3242 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
3243
3244         * tree-pass.h (TODO_update_smt_usage): Remove.
3245         Update all users.
3246         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
3247         argument SOME.
3248         Update all users.
3249
3250 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3251
3252         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
3253         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
3254         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
3255         SOM target.
3256
3257 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
3258
3259         * gcc.c: Document %{, in big comment at top.
3260         (input_suffix_matches): Remove special handling for .s and
3261         .S.
3262         (input_spec_matches): New.
3263         (handle_braces): Handle %{,.
3264         (validate_switches): ',' indicates a value which is not a switch.
3265         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
3266         to detect assembler input.
3267         * config/i386/sol2.h (CPP_SPEC): Likewise.
3268         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
3269         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
3270         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
3271         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
3272         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
3273         -m64 causes deployment target to default to 10.5.
3274         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
3275
3276 2007-03-09  Richard Henderson  <rth@redhat.com>
3277
3278         PR target/26090
3279         * target.h (targetm.asm.out.reloc_rw_mask): New.
3280         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
3281         (TARGET_ASM_OUT): Use it.
3282         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
3283         * varasm.c (categorize_decl_for_section): Remove shlib argument;
3284         use the new reloc_rw_mask target hook instead.
3285         (default_section_type_flags_1): Merge into...
3286         (default_section_type_flags): ... here.
3287         (decl_readonly_section_1): Merge into...
3288         (decl_readonly_section): ... here.
3289         (default_elf_select_section_1): Merge into...
3290         (default_elf_select_section): ... here.
3291         (default_unique_section_1): Merge into...
3292         (default_unique_section): ... here.
3293         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
3294         (default_select_rtx_section): Use it.
3295         (default_elf_select_rtx_section): Likewise.
3296         * output.h: Update to match.
3297         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
3298         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
3299         (TARGET_ASM_RELOC_RW_MASK): New.
3300         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
3301         to categorize_decl_for_section.
3302         (x86_64_elf_unique_section): Likewise.
3303         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
3304         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
3305         (TARGET_ASM_RELOC_RW_MASK): New.
3306         * config/ia64/ia64.c (ia64_rwreloc_select_section,
3307         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
3308         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
3309         (TARGET_RWRELOC): Remove.
3310         (ia64_section_type_flags): Adjust call to default_section_type_flags.
3311         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
3312         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
3313         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
3314         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
3315         (rs6000_xcoff_select_section): Use decl_readonly_section.
3316         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
3317         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
3318         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
3319         (TARGET_SECTION_TYPE_FLAGS): Remove.
3320         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
3321
3322 2007-03-09  Roger Sayle  <roger@eyesopen.com>
3323
3324         * fold-const.c (fold_comparison): Remove compile-time evaluation of
3325         complex constant equality/inequality comparisons for here.
3326         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
3327         known at compile-time or can be simplified to a scalar comparison.
3328         (fold_relational_const): Move compile-time evaluation of complex
3329         constant equality/inequality comparisons to here.
3330
3331 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3332
3333         PR rtl-optimization/30643
3334         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
3335         dest_addr_elt.
3336         (fold_rtx): Recurse, like before 2006-11-03.
3337
3338 2007-03-09  DJ Delorie  <dj@redhat.com>
3339
3340         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
3341         m32c-pragma.o.
3342
3343 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
3344
3345         PR tree-optimization/30375
3346         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
3347         LHS of statements is not the same.
3348         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
3349
3350 2007-03-09  Chao-ying Fu  <fu@mips.com>
3351
3352         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
3353         REV 2.
3354         * doc/invoke.texi (-mdspr2): Document new option.
3355         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
3356         New unspec for DSP REV 2.
3357         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
3358         these instructions are extended in DSP REV 2.
3359         (mips-dspr2.md): Include.
3360         * config/mips/mips.opt (mdspr2): New option.
3361         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
3362         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
3363         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
3364         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
3365         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
3366         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
3367         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
3368         and 2 builtins.
3369         (bdesc_map): Add one field of unsupported_target_flags.
3370         (bdesc_arrays):  Update entries to have extra fields.  Add
3371         dsp_32only_bdesc.
3372         (mips_init_builtins): Initialize new function types.
3373         Check unsupported_target_fileds to filter out builtins.
3374         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
3375         TARGET_DSPR2.
3376         (ASM_SPEC): Pass mdspr2 to the assembler.
3377         * config/mips/mips-dspr2.md: New file.
3378
3379 2007-03-09  Sa Liu  <saliu@de.ibm.com>
3380
3381         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
3382
3383 2007-03-09  Ian Lance Taylor  <iant@google.com>
3384
3385         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
3386         argument) like -Wstrict-overflow=2.
3387         * doc/invoke.texi (Warning Options): Update documentation.
3388
3389 2007-03-09  Dirk Mueller  <dmueller@suse.de>
3390
3391         PR c++/17946
3392         * doc/invoke.texi (-Wlogical-op): Document.
3393         * common.opt (-Wlogical-op): New.
3394         * c-common.h (warn_logical_operator): Declare.
3395         * c-common.c (warn_logical_operator): Define.
3396         * c-typeck.c (parser_build_binary_op): Call
3397         warn_logical_operator.
3398
3399 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3400
3401         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
3402         * final.c (final_scan_insn): Test for non-"" file name.
3403
3404 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
3405
3406         * doc/loop.texi: Document the Omega linear constraints solver.
3407         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
3408         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
3409         omega-hash-table-size, omega-max-keys, and
3410         omega-eliminate-redundant-constraints.
3411         * tree-pass.h (pass_check_data_deps): Declared.
3412         * omega.c: New.
3413         * omega.h: New.
3414         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
3415         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
3416         pass_check_data_deps): New.
3417         * tree-data-ref.c (init_data_ref): Remove declaration.
3418         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
3419         (analyze_array): Renamed init_array_ref, move up initializations.
3420         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
3421         Removed arguments that are set to NULL.
3422         (analyze_indirect_ref): Correct indentation, correct call to
3423         init_pointer_ref.
3424         (object_analysis): Call init_array_ref instead of analyze_array.
3425         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
3426         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
3427         of DR_ACCESS_FNS_ADDR.
3428         (init_omega_eq_with_af, omega_extract_distance_vectors,
3429         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
3430         ddr_consistent_p): New.
3431         (compute_affine_dependence): Check consistency of ddrs when
3432         flag_check_data_deps is passed.
3433         (analyze_all_data_dependences): Uncomment.
3434         (tree_check_data_deps): New.
3435         * tree-data-ref.h: Include omega.h.
3436         (DR_ACCESS_FNS_ADDR): Removed.
3437         (data_dependence_relation): Add inner_loop.
3438         (DDR_INNER_LOOP): New.
3439         * common.opt (fcheck-data-deps): New.
3440         * tree-flow.h (tree_check_data_deps): Declare.
3441         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
3442         (OBJS-common): Depend on omega.o.
3443         (omega.o): Define.
3444         * passes.c (pass_check_data_deps): Scheduled.
3445         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3446         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3447         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
3448         PARAM_VECT_MAX_VERSION_CHECKS,
3449         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
3450
3451 2007-03-09  Richard Guenther  <rguenther@suse.de>
3452
3453         PR tree-optimization/30904
3454         PR middle-end/31058
3455         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
3456         the same way as *_DIV_EXPR.
3457
3458 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3459
3460         * recog.c (decode_asm_operands): No mixed declarations and code.
3461
3462 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
3463
3464         * rtl.def (ASM_INPUT): Add location.
3465         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
3466         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
3467         (decode_asm_operands): Add loc operand.
3468         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
3469         * stmt.c (expand_asm): Rename to...
3470         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
3471         gen_rtx_ASM_INPUT_loc.
3472         (expand_asm_expr): Adjust.
3473         * recog.c (decode_asm_operands): Add loc operand.
3474         (check_asm_operands, extract_insn): Adjust.
3475         * reload1.c (maybe_fix_stack_asms): Likewise.
3476         * final.c (asm_insn_count): Likewise.
3477         (final_scan_insn): Output # line before and after asm.
3478
3479 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
3480
3481         * tree-ssa-structalias.c (variable_info): Remove
3482         finished_solution.
3483         (new_var_info): Ditto.
3484         (shared_bitmap_info_t): New structure.
3485         (shared_bitmap_table): New variable.
3486         (shared_bitmap_hash): New function.
3487         (shared_bitmap_eq): Ditto
3488         (shared_bitmap_lookup): Ditto.
3489         (shared_bitmap_add): Ditto.
3490         (merge_smts_into): Change to take bitmap directly.
3491         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
3492         (init_alias_vars): Init shared bitmap hashtable.
3493         (delete_points_to_sets): Delete shared bitmap hashtable.
3494         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
3495         is_aliased removal as a change that was still necessary was
3496         deleted.
3497
3498 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
3499
3500         * config/i386/i386.h (override_options): Conditionally disable
3501         x86_sahf for 64bit targets only.
3502
3503 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3504
3505         PR C/31072
3506         * c-decl.c (merge_decls): Don't call make_var_volatile.
3507         * varasm.c (make_var_volatile): Remove.
3508         * output.h (make_var_volatile): Remove.
3509
3510 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
3511
3512         PR tree-optimization/31085
3513         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
3514
3515 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3516
3517         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
3518         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
3519         ATTR_CONST_NOTHROW_LIST.
3520
3521         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3522         FIX_TRUNC_EXPR.
3523
3524 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
3525
3526         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
3527
3528 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
3529
3530         PR 31013
3531         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
3532         is declared.
3533         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
3534         passed, use shared libgcc.
3535
3536 2007-03-08  Roger Sayle  <roger@eyesopen.com>
3537
3538         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
3539         instead of calling build2 with a GIMPLE_MODIFY_STMT.
3540         (honor_protect_cleanup_actions, lower_try_finally_switch):
3541         Likewise.
3542         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
3543         ifc_temp_var): Likewise.
3544         * tree-inline.c (setup_one_parameter): Likewise.
3545         * tree-mudflap.c (mf_decl_cache_locals,
3546         mf_build_check_statement_for): Likewise.
3547         * tree-nested.c (init_tmp_var, save_tmp_var,
3548         finalize_nesting_tree_1): Likewise.
3549         * tree-outof-ssa.c (insert_copy_on_edge,
3550         insert_backedge_copies): Likewise.
3551         * tree-profile.c (tree_gen_edge_profiler,
3552         tree_gen_ic_profiler): Likewise.
3553         * tree-scalar-evolution.c (scev_const_prop): Likewise.
3554         * tree-sra.c (sra_build_assignment): Likewise.
3555         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
3556         * tree-ssa-math-opts.c (insert_reciprocals,
3557         execute_cse_sincos_1): Likewise.
3558         * tree-tailcall.c (adjust_accumulator_values,
3559         adjust_return_value): Likewise.
3560         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
3561         * tree-vect-transform.c (vect_create_data_ref_ptr,
3562         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
3563         vect_create_epilog_for_reduction, vectorizable_reduction,
3564         vectorizable_call, vectorizable_conversion,
3565         vectorizable_assignment, vectorizable_operation,
3566         vectorizable_type_demotion, vect_gen_widened_results_half,
3567         vect_permute_store_chain, vectorizable_store,
3568         vect_setup_realignment, vect_permute_load_chain,
3569         vectorizable_load, vectorizable_condition,
3570         vect_create_cond_for_align_checks): Likewise.
3571         * tree-vrp.c (build_assert_expr_for): Likewise.
3572
3573 2007-03-08  Ian Lance Taylor  <iant@google.com>
3574
3575         * tree-vrp.c: Include "intl.h".
3576         (usable_range_p): New static function.
3577         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
3578         overflowed values, juts set *strict_overflow_p.
3579         (compare_values): Only return -2 if one of the operands is not a
3580         constant.
3581         (compare_ranges): Call usable_range_p.
3582         (compare_range_with_value): Likewise.
3583         (vrp_evaluate_conditional_warnv): Rename from
3584         vrp_evaluate_conditional.  Make static.  Change all callers.
3585         (vrp_evaluate_conditional): New function.
3586         (simplify_div_or_mod_using_ranges): Issue warning about reliance
3587         on signed overflow.
3588         (simplify_abs_using_ranges): Likewise.
3589         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
3590         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
3591         within_stmt parameter.
3592         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3593         vrp_evaluate_conditional.
3594         * tree-ssa-threadedge.c
3595         (record_temporary_equivalences_from_stmts_at_dest): Change
3596         simplify parameter to take a second tree parameter.
3597         (simplify_control_stmt_condition): Likewise.
3598         (thread_across_edge): Likewise.
3599         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3600         (thread_across_edge): Likewise.
3601         * Makefile.in (tree-vrp.o): Depend upon intl.h.
3602
3603 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
3604
3605         * config/i386/i386.h (TARGET_SAHF): New define.
3606         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
3607         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
3608         (x86_sahf): New global variable.
3609         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
3610         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
3611         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
3612         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
3613         for 64-bit.
3614         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
3615         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
3616         when expanding fcomi/sahf based tests.
3617         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
3618         expanding sahf based alternative. Emit sahf based sequence when
3619         optimizing for code size.
3620         * config/i386/i386.md (x86_sahf_1): Do not disable for
3621         TARGET_64BIT, enable for TARGET_SAHF.
3622
3623 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
3624
3625         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
3626         spurious whitespace from error message.
3627
3628 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
3629
3630         PR c++/30852
3631         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
3632
3633 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
3634
3635         * c-decl.c (grokdeclarator): Disable warnings for anonymous
3636         bitfields.
3637         * tree-sra.c (instantiate_element): Propagate disabled warnings
3638         from the element itself to the created variable.
3639
3640 2007-03-07  Richard Henderson  <rth@redhat.com>
3641
3642         PR target/30848
3643         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
3644         silently fix up the stack in the case of a missing register.
3645
3646 2007-03-07  Paul Brook  <paul@codesourcery.com>
3647
3648         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
3649
3650 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
3651
3652         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
3653         New.
3654         (phase1_vrs): Use them.
3655         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
3656         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
3657         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
3658         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
3659         __gnu_Unwind_Restore_WMMXC if required.
3660         (_Unwind_VRS_Pop): Implement iWMMXt support.
3661         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
3662         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
3663         gnu_Unwind_Save_WMMXC): Define.
3664
3665 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
3666
3667         * config/vxworks.h (vxworks_override_options): Declare.
3668         (VXWORKS_OVERRIDE_OPTIONS): Use it.
3669         * config/vxworks.c: Include target.h and toplev.h.
3670         (vxworks_override_options): New function.
3671         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
3672
3673 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
3674
3675         * config/s390/s390.c (override_options): Don't emit an error when
3676         -mstack-size is used without providing -mstack-guard.
3677         (s390_emit_prologue): Choose stack_guard value automatically if not
3678         provided via command line.
3679         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
3680
3681 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
3682
3683         * config/i386/i386.c (output_set_got): Add a GOT initialization
3684         sequence for VxWorks PIC.
3685         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
3686         around labels as well as symbols.  Use gotoff_operand instead
3687         of local_symbolic_operand.
3688         (legitimize_pic_address): Use gotoff_operand instead of
3689         local_symbolic_operand.  Use @GOT accesses for labels as
3690         well as symbols.
3691         (ix86_output_addr_diff_elt): Use PC-relative rather than
3692         GP-relative offsets for VxWorks PIC.
3693         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
3694         no_new_pseudos.  Check whether the returned register is op0.
3695         * config/i386/i386.md (tablejump): Use PC-relative rather than
3696         GP-relative offsets for VxWorks PIC.
3697         * config/i386/predicates.md (gotoff_operand): New predicate.
3698
3699 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3700
3701         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
3702         before defining.
3703         * config/vxworks-dummy.h: New file.
3704         * config/i386/i386.h: Include it.
3705
3706 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
3707
3708         * dwarf2out.c (is_inlined_entry_point): New
3709         (add_high_low_attributes): Emit DW_AT_entry_pc along with
3710         DW_AT_ranges if the first subblock is the entry point.
3711
3712 2007-03-06  David Daney  <ddaney@avtrex.com>
3713
3714         * doc/install.texi (mips-*-*): Change recommended binutils
3715         version.
3716
3717 2007-03-06  Anatoly Sokolov <aesok@post.ru>
3718
3719         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
3720         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
3721         devices.
3722         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3723         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3724
3725 2007-03-06  Jan Hubicka  <jh@suse.cz>
3726
3727         * errors.h (warning, error, fatal, internal_error): Mark as cold.
3728         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
3729         are hot.
3730         (probably_cold_bb_p): Cold functions are cold.
3731         (probably_never_executed_bb_p): Cold functions are cold.
3732         (tree_bb_level_predictions): Predict calls to cold functions as not
3733         taken.
3734         (compute_function_frequency): Check hot/cold attributes.
3735         * function.h (function_frequency): Update comments.
3736         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
3737         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
3738         (c_common_att): Add cold and hot.
3739
3740         * doc/extend.texi (hot,cold attributes): Document.
3741
3742 2007-03-06  Andrew Haley  <aph@redhat.com>
3743
3744         * function.c (expand_function_end): Move blockage to just after we
3745         emit the label for the naked return from the function.
3746
3747 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3748
3749         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
3750         before redefining.
3751
3752 2007-03-06  Jan Hubicka  <jh@suse.cz>
3753
3754         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
3755         loaded for constant large models.  Non-large 64bit PIC can do.
3756         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
3757         * cmodel.h: Add LARGE PIC.
3758         * i386.md (UNSPEC_PLTOFF): New.
3759         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
3760         needed.
3761         (*call_1_rex64): Disable for large models.
3762         (*call_1_rex64_large): New.
3763         (*call_value_1_rex64): Disable for large models.
3764         (*call_value_1_rex64_large): New.
3765         (set_rip_rex4): New.
3766         (set_got_offset_rex64): New.
3767         * predicates.md (constant_call_address_operand): For large model
3768         constant calls are not possible.
3769         * i386-protos.h (construct_plt_address): Declare.
3770         * i386.c (override_options): Accept large models.
3771         (ix86_expand_prologue): Expand large PIC GOT pointer load.
3772         (legitimate_constant_p): Add new UNSPECs.
3773         (legitimate_pic_operand_p): Likewise.
3774         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
3775         (legitimize_pic_address): Do easy RIP relative way for TLS only for
3776         non-large model.
3777         (output_pic_addr_const): Add PLTOFF.
3778         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
3779         (ix86_expand_move): Legitimize pic address when in PIC mode.
3780         (construct_plt_address): New function.
3781         (ix86_expand_call): Offload the address to register and use GOT pointer
3782         for large model.
3783         * invoke.texi (mcmodel=large): Update documentation.
3784
3785 2007-03-06  Richard Henderson  <rth@redhat.com>
3786
3787         * config/i386/i386.c (x86_use_leave, x86_push_memory,
3788         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
3789         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
3790         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
3791         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
3792         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
3793         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
3794         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
3795         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
3796         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
3797         x86_partial_reg_dependency, x86_memory_mismatch_stall,
3798         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
3799         x86_sse_partial_reg_dependency, x86_sse_split_regs,
3800         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
3801         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
3802         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
3803         x86_schedule, x86_use_bt, x86_pad_returns,
3804         x86_use_xchgb): Merge into ...
3805         (ix86_tune_features): ... here.  New array.
3806         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
3807         x86_bswap): Merge into ...
3808         (ix86_arch_features): ... here.  New array.
3809         (x86_3dnow_a): Remove.
3810         (x86_accumulate_outgoing_args): Make static.
3811         (x86_arch_always_fancy_math_387): Make static.
3812         (ix86_tune_mask, ix86_arch_mask): Move ...
3813         (override_options): ... to local variables here.  Apply the
3814         appropriate mask to each element of ix86_arch_features and
3815         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
3816         as were done in the old macros.
3817         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
3818         * config/i386/i386.h (x86_use_leave, x86_push_memory,
3819         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
3820         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
3821         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
3822         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
3823         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
3824         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
3825         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
3826         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
3827         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
3828         x86_partial_reg_dependency, x86_memory_mismatch_stall,
3829         x86_accumulate_outgoing_args, x86_prologue_using_move,
3830         x86_epilogue_using_move, x86_decompose_lea,
3831         x86_arch_always_fancy_math_387, x86_shift1,
3832         x86_sse_partial_reg_dependency, x86_sse_split_regs,
3833         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
3834         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
3835         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
3836         x86_use_incdec, x86_pad_returns, x86_bswap,
3837         x86_partial_flag_reg_stall): Remove.
3838         (enum ix86_tune_indices): New.
3839         (ix86_tune_features): New.
3840         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
3841         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
3842         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
3843         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
3844         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
3845         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
3846         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
3847         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
3848         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
3849         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
3850         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
3851         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
3852         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
3853         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
3854         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
3855         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
3856         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
3857         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
3858         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
3859         TARGET_EXT_80387_CONSTANTS): Use it.
3860         (enum ix86_arch_indices): New.
3861         (ix86_arch_features): New.
3862         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
3863         TARGET_BSWAP): Use it.
3864         (ix86_tune_mask, ix86_arch_mask): Remove.
3865
3866 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
3867
3868         PR bootstrap/31020
3869         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
3870         Define using $${sysroot_headers_suffix}.
3871         * configure: Regenerate.
3872         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
3873         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
3874         defined.
3875         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
3876         * gcc.c (print_sysroot_headers_suffix): New.
3877         (option_map): Include --print-sysroot-headers-suffix.
3878         (display_help): Mention -print-sysroot-headers-suffix.
3879         (process_command): Handle -print-sysroot-headers-suffix.
3880         (do_spec_1): Append multilib directory to include-fixed path if
3881         sysroot suffixes in use.
3882         (main): Handle -print-sysroot-headers-suffix.
3883         * Makefile.in (start.encap): Don't depend on xlimits.h
3884         (xlimits.h): Remove.
3885         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
3886         limits.h for each multilib in fixinc_list.
3887         (fixinc_list, s-fixinc_list): New.
3888         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
3889         generate them for each multilib in fixinc_list.
3890         (stmp-fixproto): Use include-fixed.  Run fixproto for each
3891         multilib in fixinc_list.
3892         (mostlyclean): Don't remove xlimits.h.
3893         (clean): Remove include-fixed.
3894         (real-install-headers-tar, real-install-headers-cpio,
3895         real-install-headers-cp): Don't copy include, only include-fixed.
3896         (install-mkheaders): Depend on fixinc_list.  Don't depend on
3897         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
3898         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
3899         SYSTEM_HEADER_DIR setting in mkheaders.conf.
3900
3901 2007-03-06  Jan Hubicka  <jh@suse.cz>
3902
3903         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
3904         NANs easilly.
3905
3906 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3907
3908         * configure.ac: Allow tm_file to contain build-directory files.
3909         * configure: Regenerate.
3910         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
3911         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
3912         * config/m68k/print-sysroot-suffix.sh: New file.
3913
3914 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3915
3916         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
3917         of pic_offset_table_rtx if reload_completed.
3918         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
3919         PIC_OFFSET_TABLE_REGNUM.
3920         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
3921         return true.
3922         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
3923         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
3924
3925 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3926
3927         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
3928         functions that call eh_return.
3929
3930 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3931
3932         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
3933         functions that need a constant pool.
3934
3935 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3936
3937         PR target/28181
3938         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
3939         (m68k_preferred_reload_class): Likewise.
3940         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
3941         (SECONDARY_RELOAD_CLASS): Define.
3942         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
3943         (LIMIT_RELOAD_CLASS): Delete.
3944         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
3945         registers from storing bytes.
3946         (m68k_secondary_reload_class): New function.
3947         (m68k_preferred_reload_class): Likewise.
3948
3949 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3950
3951         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
3952         leaf functions.
3953         (m68k_expand_prologue): Likewise.
3954
3955 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3956
3957         * config/m68k/m68k-protos.h (output_sibcall): Declare.
3958         (mips_expand_epilogue): Add a bool parameter.
3959         (m68k_legitimize_sibcall_address): Declare.
3960         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
3961         (m68k_expand_epilogue): Add a parameter to select between sibling
3962         and normal epilogues.  Only generate a return for the latter.
3963         (m68k_ok_for_sibcall_p): New function.
3964         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
3965         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
3966         (sibcall_value, *sibcall_value): Likewise.
3967         (*call, *call_value): Require !SIBLING_CALL_P.
3968         (epilogue): Update call to m68k_expand_epilogue.
3969         (sibcall_epilogue): New pattern.
3970         * config/m68k/predicates.md (const_call_operand): Say that this
3971         predicate applies to sibling calls too.
3972         (sibcall_operand): New predicate.
3973
3974 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
3975
3976         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
3977         alternatives as movsi_cf.
3978         (movsf_cf_hard): Add commentary.
3979
3980 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
3981             Richard Sandiford  <richard@codesourcery.com>
3982
3983         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
3984         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
3985         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
3986         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
3987         as being live on exit from an interrupt function.
3988         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
3989         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
3990         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
3991         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
3992         (m68k_interrupt_function_p): Globalize.
3993         (m68k_compute_frame_layout): Remove reverse mask code.
3994         (m68k_emit_movem, m68k_set_frame_related): New functions.
3995         (m68k_output_function_prologue): Delete in favor of...
3996         (m68k_expand_prologue): ...this new function.
3997         (m68k_output_function_epilogue): Delete in favor of...
3998         (m68k_expand_epilogue): ...this new function.
3999         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
4000         functions.
4001         (print_operand): Handle %?.
4002         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
4003         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
4004         (prologue, epilogue): New patterns.
4005         (return): Turn into a define_expand.
4006         (*return): New pattern, derived from old "return" pattern.  Use rte
4007         rather than rts for interrupt functions.  Only use rtd if the pop
4008         count is nonzero.
4009         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
4010         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
4011         (link, *link, unlink, *unlink, load_got): Likewise.
4012
4013 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
4014
4015         PR target/23482
4016         PR target/17114
4017         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
4018         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
4019         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
4020         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
4021         and m68k_matches_u_p.
4022         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
4023         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
4024         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
4025         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
4026         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
4027         (REG_STRICT_P): New macro.
4028         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
4029         PCREL_GENERAL_OPERAND_OK.
4030         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
4031         m68k_legitimate_base_reg_p.
4032         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
4033         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
4034         (PIC_CASE_VECTOR_ADDRESS): Update comment.
4035         * config/m68k/m68k.c (m68k_address): New structure.
4036         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
4037         (m68k_decompose_index, m68k_legitimate_constant_address_p)
4038         (m68k_jump_table_ref_p, m68k_decompose_address)
4039         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
4040         (m68k_matches_u_p): New functions.
4041         (print_operand_address): Rewrite to use m68k_decompose_index.
4042
4043 2007-03-05  David Taylor  <dtaylor@emc.com>
4044
4045         * gcc.c: Correct copyright date in --version output.
4046
4047 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4048
4049         * pa.md: In unamed move patterns, disparge copies between general
4050         and floating point registers using '?' modifier.  Don't include 'f'
4051         constraint for register preferences in DImode, SImode, HImode and
4052         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
4053         Remove constraints for copies between general and floating registers
4054         in soft-float DFmode pattern.
4055         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
4056         floating register.
4057         (movsf): Likewise.
4058
4059 2007-03-05  Mike Stump  <mrs@apple.com>
4060
4061         * c-common.c (targetcm): Add.
4062         * c-opts.c (c_common_handle_option): Handle language specific
4063         target options.
4064         * opts.c (handle_option): Verify language for target options, if
4065         any are given.
4066         * opth-gen.awk: Add CL_LANG_ALL.
4067         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
4068         (TARGETCM_INITIALIZER): Add.
4069         * target.h (struct gcc_targetcm): Add.
4070         (targetcm): Add.
4071         * targhooks.c (default_handle_c_option): Add.
4072         * targhooks.h (default_handle_c_option): Add.
4073         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
4074
4075         * config/darwin.opt (iframework): Add.
4076         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
4077         * config/darwin-c.c (handle_c_option): Add.
4078         (TARGET_HANDLE_C_OPTION): Add.
4079         (targetcm): Add.
4080         * doc/invoke.texi (Darwin Options): Add -iframework.
4081
4082 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4083
4084         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
4085         conversion.
4086
4087 2007-03-05  Ian Lance Taylor  <iant@google.com>
4088
4089         * c.opt (fgnu89-inline): New option.
4090         * c-opts.c (c_common_post_options): Set default value for
4091         flag_gnu89_inline.
4092         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
4093         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
4094         inline functions.
4095         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
4096         (grokdeclarator, start_function): Likewise.
4097         * c-cppbuiltin.c (c_cpp_builtins): Define either
4098         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
4099         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
4100         (C Dialect Options): Document -fgnu89-inline.
4101         * doc/extend.texi (Function Attributes): Explain what the
4102         gnu_inline attribute does.
4103         * doc/cpp.texi (Common Predefined Macros): Document
4104         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
4105
4106 2007-03-05  Ian Lance Taylor  <iant@google.com>
4107
4108         PR tree-optimization/31034
4109         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
4110         half-range if the other side is an overflow infinity.
4111
4112 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4113
4114         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
4115         (bfin*-linux-uclibc*): New configuration.
4116         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
4117         defining.
4118         * config/bfin/linux.h: New file.
4119         * config/bfin/libgcc-bfin.ver: New file.
4120         * config/bfin/t-bfin-uclinux: New file.
4121         * config/bfin/t-bfin-linux: New file.
4122         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
4123         (TARGET_OS_CPP_BUILTINS): New macro.
4124
4125 2007-03-05  Richard Guenther  <rguenther@suse.de>
4126
4127         * fold-const.c (fold_binary): Remove duplicate folding
4128         of comparison of non-null ADDR_EXPR against null.
4129
4130 2007-03-05  Richard Guenther  <rguenther@suse.de>
4131             Dorit Nuzman  <dorit@il.ibm.com>
4132
4133         PR tree-optimization/26420
4134         * tree-vectorizer.c (vectorize_loops): Bail out early if there
4135         are no loops in the function.  Only print the number of
4136         vectorized loops if it is greater than zero or we are supposed
4137         to print information about unvectorized loops.
4138
4139 2007-03-05  Revital Eres  <eres@il.ibm.com>
4140
4141         * gcc.dg/var-expand1.c: New test.
4142         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
4143         when an accumulator is expanded.
4144
4145 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4146
4147         PR other/30465
4148         * c-common.c (convert_and_check): Don't give warnings for
4149         conversion if 'expr' already overflowed.
4150
4151 2007-03-04  Roger Sayle  <roger@eyesopen.com>
4152
4153         PR middle-end/30744
4154         * fold-const.c (fold_comparison): Enforce type consistency when
4155         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
4156
4157 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
4158
4159         * tree-ssa-address.c (create_mem_ref): Do not put an expression
4160         containing a cast to the base of TARGET_MEM_REF.
4161
4162 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
4163
4164         * tree.c (tree_contains_struct_check_failed): Remove spurious
4165         whitespace from error message.
4166
4167 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
4168
4169         PR target/30406
4170         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
4171         instead of precision.
4172
4173 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
4174             Nathan Sidwell  <nathan@codesourcery.com>
4175
4176         * emit-rtl.c (find_auto_inc): New.
4177         (try_split): recreate REG_INC notes,
4178         Use regular for loops rather than whiles.
4179
4180 2007-03-03  Andreas Schwab  <schwab@suse.de>
4181
4182         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
4183         * configure: Regenerate.
4184
4185 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4186
4187         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
4188         flag_rounding_math, not flag_unsafe_math_optimizations.
4189
4190         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
4191         fold_build2.
4192         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
4193         alpha_fold_vector_minmax): Likewise.
4194         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4195         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4196
4197 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
4198
4199         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
4200         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
4201         if the lhs has side-effects.
4202         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
4203
4204 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
4205
4206         * config/i386/i386.h (TUNEMASK): Remove define.
4207         (ARCHMASK): Remove define.
4208         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
4209          Use ix86_arch_mask variable instead of ARCHMASK.
4210         * config/i386/i386.c (override_options): Ditto.
4211         (standard_80387_constant_p): Ditto.
4212
4213 2007-03-02  Ian Lance Taylor  <iant@google.com>
4214
4215         Used signed infinities in VRP.
4216         * tree-vrp.c (uses_overflow_infinity): New static function.
4217         (supports_overflow_infinity): New static function.
4218         (make_overflow_infinity): New static function.
4219         (negative_overflow_infinity): New static function.
4220         (positive_overflow_infinity): New static function.
4221         (is_negative_overflow_infinity): New static function.
4222         (is_positive_overflow_infinity): New static function.
4223         (is_overflow_infinity): New static function.
4224         (overflow_infinity_range_p): New static function.
4225         (compare_values_warnv): New function split out of compare_values.
4226         (compare_value): Call it.
4227         (set_value_range_to_nonnegative): Add overflow_infinity
4228         parameter.  Change caller.
4229         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
4230         Change callers.
4231         (vrp_expr_computes_nonzero): Likewise.
4232         (compare_ranges, compare_range_with_value): Likewise.
4233         (compare_name_with_value, compare_names): Likewise.
4234         (vrp_evaluate_conditional): Likewise.
4235         (set_value_range): Handle infinity
4236         (vrp_operand_equal_p, operand_less_p): Likewise.
4237         (extract_range_from_assert): Likewise.
4238         (vrp_int_const_binop): Likewise.
4239         (extract_range_from_binary_expr): Likewise.
4240         (extract_range_from_unary_expr): Likewise.
4241         (extract_range_from_comparison): Likewise.
4242         (extract_range_from_expr): Likewise.
4243         (dump_value_range): Likewise.
4244         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
4245         (test_for_singularity): Likewise.
4246         (vrp_int_const_binop): Remove inline qualifier.
4247         (adjust_range_with_scev): Add comment.
4248         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
4249
4250 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
4251
4252         * tree-ssa-structalias.c (could_have_pointers): Tidy.
4253         (get_constraint_for): Likewise.
4254         (do_structure_copy): Likewise.
4255         (find_func_aliases): Fix references to MODIFY_EXPR.
4256         (intra_create_variable_infos): Tidy.
4257         * tree-ssa-operands.c (add_virtual_operand): Add argument
4258         IS_CALL_SITE.
4259         When adding members of alias sets, if IS_CALL_SITE is true and
4260         the symbol is not call-clobbered, skip it.
4261         Adjust all callers.
4262
4263 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
4264
4265         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
4266         entry by means of emit_insn_at_entry.
4267
4268 2007-03-02  Richard Henderson  <rth@redhat.com>
4269
4270         * expr.h (promoted_input_arg): Remove decl.
4271         * function.c (promoted_input_arg): Merge into ...
4272         * combine.c (setup_incoming_promotions): ... only caller.
4273         Rearrange to avoid double loop.
4274
4275 2007-03-02  Ben Elliston  <bje@au.ibm.com>
4276             Peter Bergner  <bergner@vnet.ibm.com>
4277             Janis Johnson  <janis187@us.ibm.com>
4278
4279         * config/rs6000/dfp.md: New file.
4280         * config/rs6000/rs6000.md: Include dfp.md.
4281         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
4282         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
4283         and TDmode decimal float modes in FP registers.
4284         (num_insns_constant): Likewise.
4285         (rs6000_legitimate_offset_address_p): Likewise.
4286         (rs6000_legitimize_address): Likewise.
4287         (rs6000_legitimize_reload_address): Likewise.
4288         (rs6000_legitimate_address): Likewise.
4289         (rs6000_emit_move): Likewise.
4290         (function_arg_boundary): Likewise.
4291         (function_arg_advance): Likewise.
4292         (rs6000_darwin64_record_arg_recurse): Likewise.
4293         (function_arg): Likewise.
4294         (rs6000_gimplify_va_arg): Likewise.
4295         (rs6000_split_multireg_move): Likewise.
4296         (rs6000_output_function_epilogue): Likewise.
4297         (rs6000_output_function_epilogue): Likewise.
4298         (rs6000_register_move_cost): Likewise.
4299         (rs6000_function_value): Likewise.
4300         (rs6000_libcall_value): Likewise.
4301
4302 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
4303
4304         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
4305
4306 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
4307
4308         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
4309         Use $MULTIDIR to choose between the kernel and RTP headers,
4310         and use $WIND_BASE and $WIND_USR to locate them.
4311
4312 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
4313
4314         * config/i386/i386.c (override_options): Put initialization of
4315         ix86_tune_mask and ix86_arch_mask to the correct place.
4316
4317 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
4318             Michael Meissner  <michael.meissner@amd.com>
4319
4320         PR target/31019
4321         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
4322         (ARCHMASK): Define.
4323         (TARGET_CMOVE): Use ARCHMASK.
4324         (TARGET_CMPXCHG): Ditto.
4325         (TARGET_CMPXCHG8B): Ditto.
4326         (TARGET_XADD): Ditto.
4327         (TARGET_BSWAP): Ditto.
4328         * config/i386/i386.c (ix86_tune_mask): New global variable.
4329         (ix86_arch_mask): Ditto.
4330         (override_options): Initialize ix86_tune_mask and
4331         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
4332         target_flags.
4333
4334 2007-03-02  Ben Elliston  <bje@au.ibm.com>
4335
4336         PR 30992
4337         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
4338
4339 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
4340
4341         * target.h (init_dwarf_reg_sizes_extra): New target hook.
4342         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
4343         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
4344         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
4345         hook.
4346         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
4347         rs6000_init_dwarf_reg_sizes_extra): New.
4348         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
4349         SPE register high parts.
4350
4351 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
4352
4353         * Makefile.in: Add install-pdf target as
4354         copied from automake v1.10 rules.
4355         * configure.ac: Add install-pdf to target list.
4356         * configure: Regenerate.
4357
4358 2007-03-01  Paul Brook  <paul@codesourcery.com>
4359
4360         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
4361         modes to LDRD for DImode.
4362         (output_move_double): Fixup out of range ldrd/strd.
4363         (vfp_secondary_reload_class): Rename...
4364         (coproc_secondary_reload_class): ... to this.  Add wb argument.
4365         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
4366         coproc_secondary_reload_class for CLASS_IWMMXT.
4367         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
4368         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
4369
4370 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
4371
4372         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
4373         factor by the estimated number of iterations.
4374         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
4375         prefetch latency.
4376
4377         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
4378         decode_caches_intel, detect_caches_intel): New functions.
4379         (host_detect_local_cpu): Use detect_caches_amd and
4380         detect_caches_intel.
4381
4382 2007-03-01  Richard Henderson  <rth@redhat.com>
4383
4384         * expr.c (emit_move_complex_push): Export.
4385         (emit_move_complex_parts): Split out from ...
4386         (emit_move_complex): ... here.
4387         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
4388         * config/i386/i386.md (movcdi): New.
4389
4390 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
4391
4392         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
4393         size of mode1 to check for tieable modes in MMX case.
4394
4395 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
4396
4397         * Makefile.in (rtlanal.o): Depend on tree.h.
4398         * rtl.h (offset_within_section_p, split_const): Declare.
4399         * rtlanal.c: Include tree.h.
4400         (offset_within_block_p): New function, taken from
4401         mips_offset_within_object_p.
4402         (split_const): New function, taken from mips_split_const.
4403         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
4404         Declare.
4405         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
4406         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
4407         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
4408         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4409         (m68k_illegitimate_symbolic_constant_p): New function.
4410         * config/m68k/m68k.md (movsi): Remove misleading predicates.
4411         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
4412         symbolic constant that might be outside the symbol's section,
4413         move the symbol first and then add the offset.
4414         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
4415         Override.
4416         * config/mips/mips.c (mips_split_const): Delete.
4417         (mips_offset_within_object_p): Delete.
4418         (mips_symbolic_constant_p): Use offset_within_section_p and
4419         split_const instead of mips_offset_within_object_p and
4420         mips_split_const.
4421         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
4422         (mips_legitimize_const_move, print_operand_reloc)
4423         (mips_dangerous_for_la25_p): Use split_const instead of
4424         mips_split_const.
4425
4426 2007-02-28  Eric Christopher  <echristo@apple.com>
4427
4428         * Makefile.in (install-include-dir): Don't rm -rf include.
4429
4430 2007-02-28  Richard Guenther  <rguenther@suse.de>
4431
4432         PR middle-end/30364
4433         * fold-const.c (fold_binary): Do not associate expressions
4434         with more than one variable for integer types that do not wrap.
4435
4436 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
4437
4438         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
4439         Delete, and replace with...
4440         (fold_builtin_call_array): This.  Update callers to use it.
4441         * fold-const.c (fold_build_call_list): Delete, and replace with...
4442         (fold_build_call_array): This.
4443         (fold_build_call_list_initializer): Delete, and replace with...
4444         (fold_build_call_array_initializer): This.
4445         * tree.h: Update declarations to reflect above changes.
4446
4447         * c-typeck.c (build_function_call): Store converted arguments
4448         in a stack-allocated array instead of building a list.
4449         (convert_arguments): Store arguments in the array passed in as an
4450         argument, and return the actual number of arguments.
4451         * c-format.c: (check_function_format): Pass arguments in an
4452         array instead of a list.
4453         * c-common.c (check_function_nonnull): Likewise.
4454         (check_function_sentinel): Likewise.
4455         (check_function_arguments): Likewise.
4456         * c-common.h: Update declarations to reflect above changes.
4457
4458 2007-02-28  Jan Hubicka  <jh@suse.cz>
4459
4460         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
4461         PRED_NEGATIVE_RETURN): Update outcomes.
4462
4463 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
4464
4465         * calls.c (emit_library_call_value_1): Handle partial registers
4466         correctly when building up CALL_INSN_FUNCTION_USAGE.
4467
4468 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4469
4470         * pa/predicates.md (move_src_operand): Allow zero for mode.
4471         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
4472         move pattern.
4473
4474 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
4475
4476         PR target/30970
4477         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
4478         *movv2df_internal): Enable pattern only for valid operand
4479         combinations.
4480         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
4481         tie only 128bit modes. For MMX registers, tie only 64bit modes.
4482
4483 2007-02-27  Mike Stump  <mrs@apple.com>
4484
4485         * config/darwin-crt3.c: Avoid compilation when compiling for a
4486         kext multilib.
4487
4488 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
4489
4490         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
4491         FIXED_INCLUDE_DIR.
4492         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
4493         for fixed headers and limits.h.
4494         (install-include-dir, install-headers-tar, install-headers-cpio,
4495         install-headers-cp, real-install-headers-tar,
4496         real-install-headers-cpio, real-install-headers-cp): Handle
4497         include-fixed as well as include.
4498         (install-mkheaders): Don't install files that go only in include
4499         not include-fixed.
4500         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
4501         from GCC_INCLUDE_DIR.
4502         * gcc.c (process_command): Remove special -BstageN/ handling.
4503         (do_spec_1): Add include-fixed directories.
4504
4505 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4506
4507         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
4508         _smulsi3_highpart.
4509         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
4510         New functions.
4511         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
4512         patterns.
4513
4514 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
4515
4516         * c-common.c (get_priority): Add check for
4517         SUPPORTS_INIT_PRIORITY.
4518
4519 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4520
4521         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
4522
4523         * config/bfin/bfin.c: Include "cfglayout.h".
4524         (MAX_LSETUP_DISTANCE): New macro.
4525         (struct loop_info): New members incoming, incoming_src and
4526         incoming_dest.  Delete member predecessor.
4527         (length_for_loop): New function.
4528         (bfin_optimize_loop): Handle more different loop structures.
4529         (bfin_discover_loop): Rework detection of predecessor blocks by
4530         examining incoming edges.
4531         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
4532         bfin_reorg_loops.
4533         (bfin_reorder_loops): New function.
4534         (bfin_reorg_loops): Use these three new functions.
4535
4536         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
4537         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
4538         (CONSTRAINT_LEN): Add entry for 'q'.
4539         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
4540         Add 'q' constraints.
4541         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
4542         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
4543
4544         * config/bfin/bfin.md (add_with_carry): New pattern.
4545         (s_or_u, su_optab, su_modifier): New code macros/attrs.
4546         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
4547         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
4548         support unsigned multiplies too.  Removed incorrect commutativity from
4549         operand 1 constraint where appropriate.
4550         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
4551         patterns.
4552         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
4553         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
4554         New patterns.
4555         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
4556         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
4557         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
4558         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
4559         usmulhisi_hh_huh): New patterns.
4560
4561         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
4562         lshifthi3): Fix output template to use half reg for operand 2.
4563
4564         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
4565         instead of R2.
4566
4567         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
4568
4569 2007-02-27  Andreas Schwab  <schwab@suse.de>
4570
4571         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
4572
4573 2007-02-27  Jan Hubicka  <jh@suse.cz>
4574
4575         * predict.c (last_basic_block_p): Remove.
4576         (tree_estimate_probability): Update return heuristic for commonized
4577         return blocks.
4578
4579 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
4580
4581         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
4582
4583 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
4584
4585         * doc/include/gcc-common.texi (versionsubtitle): New macro.
4586         * doc/cpp.texi: Standardize title page.
4587         * doc/cppinternals.texi: Likewise.
4588         * doc/gcc.texi: Standardize title page, remove version number
4589         from copyright page.
4590         * doc/gccint.texi: Likewise.
4591         * doc/install.texi: Standardize title page, add table of
4592         contents.
4593
4594 2007-02-26  Jan Hubicka  <jh@suse.cz>
4595
4596         * predict.def: Set outcomes according to more recent results.
4597         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
4598         Remove dead predictors.
4599         * predict.c (return_prediction): Fix pasto.
4600
4601 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4602
4603         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
4604         change; avoid a memory leak when returning early.
4605
4606 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
4607
4608         * c-decl.c (static_ctors): Move to c-common.c.
4609         (static_dtors): Likewise.
4610         (finish_function): Use c_record_cdtor_fn.
4611         (build_cdtor): Move to c-common.c.
4612         (c_write_global_declarations): Use c_build_cdtor_fns.
4613         * c-common.h (static_ctors): Declare.
4614         (static_dtors): Likewise.
4615         (c_record_cdtor_fn): Likewise.
4616         (c_build_cdtor_fns): Likewise.
4617         * c-common.c (static_ctors): New variable.
4618         (static_dtors): Likewise.
4619         (c_record_cdtor_fn): New function.
4620         (build_cdtor): Move from c-decl.c
4621         (c_build_cdtor_fns): New function.
4622
4623         * output.h (assemble_addr_to_section): Declare.
4624         (get_cdtor_priority_section): Likewise.
4625         * varasm.c (assemble_addr_to_section): New function.
4626         (get_cdtor_priority_section): Likewise.
4627         (default_named_section_asm_out_destructor): Use them.
4628         (destor_dtor_section_asm_out_destructor): Likewise.
4629         (default_named_section_asm_out_constructor): Likewise.
4630         (default_ctor_section_asm_out_constructor): Likewise.
4631         * config.gcc (*-*-vxworks*): Include vxworks.o.
4632         * config/t-vxworks (vxworks.o): New target.
4633         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
4634         (TARGET_ASM_CONSTRUCTOR): Define.
4635         (TARGET_ASM_DESTRUCTOR): Likewise.
4636         (vxworks_asm_out_constructor): Declare.
4637         (vxworks_asm_out_destructor): Likewise.
4638
4639         * c-common.c (get_priority): Check that we have not just an
4640         INTEGER_CST, but an integer constant with integeral type.
4641
4642 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
4643
4644         PR tree-optimization/30938
4645         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
4646         use &dt[nargs-1] instead of &dt[nargs] in the call to
4647         vect_is_simple_use().
4648
4649 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
4650
4651         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
4652         from register elimination as PRE_MODIFY / POST_MODIFY increments.
4653         Do not attempt to handle MEM inside auto-inc expressions.
4654         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
4655         of a register modified by an auto-inc expression.  However, do handle
4656         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
4657         (elimination_effects): Prohibit elimination of a register modified
4658         by an auto-inc expression.  Disable register elimination rules whose
4659         target register is modified by an auto-inc expression with variable
4660         increment.
4661
4662 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
4663
4664         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
4665         off-by-one error.
4666         (array_at_struct_end_p): New function.
4667         (idx_infer_loop_bounds): Use it.
4668         (estimate_numbers_of_iterations_loop): Export.
4669         * predict.c (predict_loops): Use estimated_loop_iterations_int.
4670         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
4671         (tree_estimate_probability): Call record_loop_exits.
4672         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
4673         (estimated_loop_iterations, estimated_loop_iterations_int,
4674         estimated_loop_iterations_tree): New functions.
4675         (analyze_siv_subscript_cst_affine,
4676         compute_overlap_steps_for_affine_1_2,
4677         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
4678         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
4679         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
4680         (PRED_LOOP_ITERATIONS_GUESSED): New.
4681         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
4682         * cfgloop.h (estimate_numbers_of_iterations_loop,
4683         estimated_loop_iterations_int): Declare.
4684
4685 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
4686
4687         * doc/extend.texi: Document optional priority argument to
4688         constructors and destructors.
4689         * tree.c (init_priority_for_decl): Adjust GTY markers.
4690         (init_ttree): Use priority-info hash functions for
4691         init_priority_for_decl.
4692         (tree_map_eq): Rename to ...
4693         (tree_map_base_eq): ... this.
4694         (tree_map_marked_p): Rename to ...
4695         (tree_map_base_marked_p): ... this.
4696         (tree_map_base_hash): New function.
4697         (decl_init_priority_lookup): Rework.
4698         (decl_fini_priority_lookup): New function.
4699         (decl_priority_info): New function.
4700         (decl_init_priority_insert): Use it.
4701         (decl_fini_priority_insert): Likewise.
4702         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
4703         hierarchy.
4704         (decl_restrict_base_insert): Likewise.
4705         (decl_debug_expr_insert): Likewise.
4706         (decl_value_expr_lookup): Likewise.
4707         (decl_value_expr_insert): Likewise.
4708         * tree.h (priority_type): New type.
4709         (decl_init_priority_lookup): Use priority_type.
4710         (decl_fini_priority_lookup): New function.
4711         (decl_init_priority_insert): Use priority_type.
4712         (decl_fini_priority_insert): New function.
4713         (DECL_HAS_INIT_PRIORITY): Tweak comments.
4714         (DECL_INIT_PRIORITY): Likewise.
4715         (SET_DECL_INIT_PRIORITY): Add comment.
4716         (DECL_FINI_PRIORITY): New macro.
4717         (SET_DECL_FINI_PRIORITY): Likewise.
4718         (DEFAULT_INIT_PRIORITY): Document.
4719         (MAX_INIT_PRIORITY): Likewise.
4720         (MAX_RESERVED_INIT_PRIORITY): Likewise.
4721         (tree_map_base): New type.
4722         (tree_map_base_eq): New function.
4723         (tree_map_base_hash): Likewise.
4724         (tree_map_base_marked_p): Likewise.
4725         (tree_map): Inherit from tree_map_base.
4726         (tree_map_eq): Make it a macro.
4727         (tree_map_marked_p): Likewise.
4728         (tree_int_map): Inherit from tree_map_base.
4729         (tree_int_map_eq): Make it a macro.
4730         (tree_int_map_hash): Likewise.
4731         (tree_int_map_marked_p): Likewise.
4732         (tree_priority_map): New type.
4733         (tree_priority_map_eq): New macro.
4734         (tree_priority_map_hash): Likewise.
4735         (tree_priority_map_marked_p): Likewise.
4736         * varasm.c (emults_decl): Adjust for refactoring of tree_map
4737         hierarchy.
4738         (emutls_common_1): Likewise.
4739         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4740         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
4741         of tree_map hierarchy.
4742         * tree-cfg.c (move_stmt_r): Likewise.
4743         (new_label_mapper): Likewise.
4744         * c-tree.h (c_expand_body): Move to ...
4745         * c-common.h (c_expand_body): ... here.
4746         * c-decl.c (c_expand_body): Move to ...
4747         * c-common.c (c_expand_body): ... here.
4748         (c_common_attribute_table): Allow 1 argument for the constructor
4749         and destructor attributes.
4750         (get_priority): New function.
4751         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
4752         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
4753
4754 2007-02-24  Jan Hubicka  <jh@suse.cz>
4755
4756         PR middle-end/30509
4757         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
4758
4759 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
4760             Jan Hubicka  <jh@suse.cz>
4761
4762         PR target/30778
4763         * i386.c (counter_mode): New function.
4764         (expand_set_or_movmem_via_loop): Use it.
4765         (expand_movmem_epilogue): Likewise; fix pasto.
4766         (ix86_expand_movmem): Do emit guard even for constant counts.
4767         (ix86_expand_setmem): Likewise.
4768
4769 2007-02-25  Nick Clifton  <nickc@redhat.com>
4770
4771         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
4772         (JUMP_TABLES_IN_TEXT_SECTION): Define.
4773
4774 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
4775
4776         PR target/30770
4777         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
4778         count argument with 0x10, not with 0x16.
4779         (expand_setmem_epilogue): Ditto.
4780
4781 2007-02-24  Mike Stump  <mrs@apple.com>
4782
4783         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
4784         symbols.
4785
4786 2007-02-24  Richard Guenther  <rguenther@suse.de>
4787
4788         PR middle-end/30951
4789         * fold-const.c (fold_binary): Fold x +- CST op x for
4790         EQ_EXPR and NE_EXPR.
4791
4792 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4793
4794         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
4795
4796 2007-02-24  Jan Hubicka  <jh@suse.cz>
4797
4798         * cgraphunit.c (decide_is_function_needed): Honor
4799         -fkeep-inline-functions.
4800
4801 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4802
4803         * builtins.c (fold_builtin_modf): New.
4804         (fold_builtin_2): Use it.
4805
4806 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
4807
4808         * loop-iv.c (implies_p): Detect additional cases where A implies B.
4809         (determine_max_iter): Take additional LOOP arg; all callers changed.
4810         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
4811         one using simplifications.
4812         (simplify_using_initial_values): Return if the expression becomes
4813         invalid due to altered regs.
4814
4815 2007-02-23  DJ Delorie  <dj@redhat.com>
4816
4817         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
4818
4819 2007-02-23  Mike Stump  <mrs@apple.com>
4820
4821         * tlink.c (scan_linker_output): Parse linker messages from
4822         darwin9's linker better.
4823
4824 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
4825
4826         PR debug/29614
4827         * varpool.c (varpool_assemble_pending_decls):  Set
4828         varpool_last_needed_node to null.
4829
4830 2007-02-23  DJ Delorie  <dj@redhat.com>
4831
4832         * config/i386/i386.c (ix86_data_alignment): Don't specify an
4833         alignment bigger than the object file can handle.
4834
4835 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
4836
4837         PR target/30825
4838         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
4839         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
4840         (*movsf_1): Penalize MMX moves.
4841
4842 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
4843
4844         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
4845         2^32-1 or more times unless flag_unsafe_loop_optimizations.
4846
4847         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
4848
4849 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4850
4851         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
4852         (fold_builtin_1): Use them.
4853         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
4854         BUILT_IN_SIGNIFICAND.
4855
4856 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
4857
4858         * config/i386/i386.c (bdesc_1arg): Initialize
4859         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
4860         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
4861         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
4862         and IX86_BUILTIN_MOVSLDUP.
4863
4864 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
4865
4866         PR rtl-optimization/30841
4867         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
4868
4869 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4870
4871         * builtins.c (fold_builtin_frexp): New.
4872         (fold_builtin_2): Use it.
4873
4874 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
4875
4876         * doc/invoke.texi (Spec Files): Document getenv spec function.
4877
4878         * gcc.c (getenv_spec_function): New function.
4879         (static_spec_functions): Add it.
4880         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
4881         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
4882         header files.
4883
4884 2007-02-22  Michael Matz  <matz@suse.de
4885
4886         PR c++/29433
4887         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
4888         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
4889
4890 2007-02-22  Ian Lance Taylor  <iant@google.com>
4891
4892         PR debug/30898
4893         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
4894         (mem_loc_descriptor): Call it.
4895
4896 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
4897             Ira Rosen  <irar@il.ibm.com>
4898
4899         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
4900
4901 2007-02-22  Ira Rosen  <irar@il.ibm.com>
4902
4903         PR tree-optimization/30843
4904         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
4905         stores only after all the group is vectorized.
4906
4907 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
4908
4909         PR tree-optimization/30858
4910         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
4911         in the reduction cycle have a single use in the loop.
4912         * tree-vectorizer.h (relevant): Add documentation.
4913
4914 2007-02-20  Mike Stump  <mrs@apple.com>
4915
4916         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
4917         * configure: Regenerate.
4918
4919 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4920
4921         Change the defaults of some parameters and options.
4922         * config/spu/spu-protos.h (spu_optimization_options): Declare.
4923         * config/spu/spu.c (spu_optimization_options): Add.
4924         (spu_override_options): Change params in spu_optimization_options.
4925         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
4926
4927         Register 127 is only 16 byte aligned when used as a frame pointer.
4928         * config/spu/spu-protos.h (spu_init_expanders): Declare.
4929         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
4930         HARD_FRAME_POINTER_REGNUM.
4931         (spu_legitimate_address):  Use regno_aligned_for_reload.
4932         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
4933         aligned when frame_pointer_needed is true.
4934         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
4935         to 8 bits.
4936         * config/spu/spu.h (INIT_EXPANDERS): Define.
4937
4938         Make sure shift and rotate instructions have valid immediate operands.
4939         * config/spu/predicates.md (spu_shift_operand): Remove.
4940         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
4941         * config/spu/constraints.md (W, O): Extend range.
4942         * config/spu/spu.md (umask, nmask): Define.
4943         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
4944         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
4945         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
4946         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
4947         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
4948         (lshr<mode>3_reg):  Fix rtl description.
4949
4950         Make sure mulhisi immediate operands are valid.
4951         * config/spu/predicates.md (imm_K_operand): Add.
4952         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
4953
4954         Generate constants using fsmbi and andi.
4955         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
4956         (print_operand, spu_split_immediate, classify_immediate,
4957         fsmbi_const_p): Handle IC_FSMBI2.
4958
4959         Correctly handle a CONST_VECTOR containing symbols.
4960         * config/spu/spu.c (print_operand): Handle HIGH correctly.
4961         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
4962         (immediate_load_p): Allow symbols that use 2 instructions to create.
4963         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
4964         with symbols when flag_pic is set.
4965         (const_vector_immediate_p): New.
4966         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
4967         accept a CONST_VECTOR with symbols.
4968         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
4969         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
4970         correctly.
4971         * config/spu/spu.md (high, low): Delete.
4972         (low_<mode>): Define.
4973
4974         Remove INTRmode and INTR_REGNUM, which didn't work.
4975         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
4976         of INTR_REGNUM.
4977         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
4978         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
4979         peephole2 pattern): Don't use INTR or 131.
4980         (movintrcc): Delete.
4981         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
4982         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
4983         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
4984         (UNSPEC_SET_INTR): Add.
4985         * config/spu/spu-modes.def (INTR): Remove.
4986
4987         More accurate warnings about run-time relocations.
4988         * config/spu/spu.c (reloc_diagnostic): Test in_section.
4989
4990         Correctly warn about immediate arguments to specific intrinsics.
4991         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
4992         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
4993         the instruction predicate.
4994
4995         Fix tree check errors with latest update.
4996         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
4997         CALL_EXPR_ARG.
4998         (spu_expand_builtin): Use CALL_EXPR_FN.
4999
5000         Add missing specific intrinsics.
5001         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
5002         si_bislede.
5003         * config/spu/spu_internals.h: Ditto.
5004
5005         Fix incorrect operand modifiers.
5006         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
5007         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
5008
5009         Optimize one case of zero_extend of a vec_select.
5010         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
5011
5012         Accept any immediate for hbr.
5013         * config/spu/spu.md (hbr):  Change s constraints to i.
5014
5015 2007-02-21  Paul Brook  <paul@codesourcery.com>
5016
5017         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
5018         condexec_count when skipping USE and CLOBBER.
5019
5020 2007-02-21  Nick Clifton  <nickc@redhat.com>
5021
5022         * common.opt (Warray-bounds): Add Warning attribute.
5023         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
5024         Likewise.
5025         (fsized-zeroes): Add Optimization attribute.
5026         (fsplit-wide-types, ftree-scev-cprop): Likewise.
5027         * c.opt (Wc++0x-compat): Add Warning attribute.
5028
5029 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
5030
5031         PR middle-end/30761
5032         * reload1.c (eliminate_regs_in_insn): In the single_set special
5033         case, attempt to re-recognize the insn before falling back to
5034         having reload fix it up.
5035
5036 2007-02-20  Eric Christopher  <echristo@gmail.com>
5037
5038         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
5039         Rewrite accordingly.
5040         (frv_read_iacc_argument): Ditto.
5041         (frv_expand_set_builtin): Take a call instead of arglist, update for
5042         above changes.
5043         (frv_expand_unop_builtin): Ditto.
5044         (frv_expand_binop_builtin): Ditto.
5045         (frv_expand_cut_builtin): Ditto.
5046         (frv_expand_binopimm_builtin): Ditto.
5047         (frv_expand_voidbinop_builtin): Ditto.
5048         (frv_expand_int_void2arg): Ditto.
5049         (frv_expand_prefetches): Ditto.
5050         (frv_expand_voidtriop_builtin): Ditto.
5051         (frv_expand_voidaccop_builtin): Ditto.
5052         (frv_expand_load_builtin): Ditto.
5053         (frv_expand_store_builtin): Ditto.
5054         (frv_expand_mdpackh_builtin): Ditto.
5055         (frv_expand_mclracc_builtin): Ditto.
5056         (frv_expand_mrdacc_builtin): Ditto.
5057         (frv_expand_mwtacc_builtin): Ditto.
5058         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
5059         calls for above.
5060
5061 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
5062
5063         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
5064         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
5065         cmpb instruction.
5066         (HAVE_GAS_DFP): Check for assembler support of decimal floating
5067         point instructions.
5068         * configure: Regenerate.
5069         * config.in: Regenerate.
5070         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
5071         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
5072         masks to power6 and power6x and to POWERPC_MASKS.
5073         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5074         _ARCH_PWR6.
5075         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
5076         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
5077         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5078         Access PROTOTYPE as variable, not mask.
5079
5080 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
5081
5082         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
5083         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
5084         * combine.c (adjust_for_new_dest): Use it.
5085         * postreload.c (reload_combine): Likewise.
5086
5087 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
5088
5089         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
5090         notes on an insn with multiple sets, even if single_set returns
5091         non-NULL for that insn.
5092
5093 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5094
5095         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
5096         scalbn and scalbln.
5097
5098 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
5099
5100         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
5101         if user didn't pass it.
5102         * config/i386/darwin.h (CC1_SPEC): Likewise.
5103         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
5104         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
5105         -mmacosx-version-min.
5106
5107 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5108             Uros Bizjak  <ubizjak@gmail.com>
5109
5110         * optabs.h (enum optab_index): Add new OTI_scalb.
5111         (scalb_optab): Define corresponding macro.
5112         * optabs.c (init_optabs): Initialize scalb_optab.
5113         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
5114         patterns.
5115         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
5116         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
5117         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
5118         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
5119         flag_unsafe_math_optimizations is set.
5120
5121         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
5122         to implement scalbf, scalb and scalbl built-ins as inline x87
5123         intrinsics.
5124
5125 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5126             DJ Delorie <dj@redhat.com>
5127
5128         PR other/30824
5129         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
5130         (diagnostic_report_diagnostic): ... here, and turn them into real
5131         errors. If warnings are inhibited, no need to do anything.
5132
5133 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
5134
5135         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
5136         better code generation.
5137
5138 2007-02-20  Ben Elliston  <bje@au.ibm.com>
5139
5140         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
5141
5142 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
5143
5144         * config/alpha/alpha.c, config/alpha/alpha.md,
5145         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
5146         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
5147         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
5148         config/arm/lib1funcs.asm: Follow spelling conventions.
5149
5150         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
5151         config/fr30/fr30.md, config/i386/i386.h,
5152         config/iq2000/iq2000.h, config/iq2000/predicates.md,
5153         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
5154         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
5155         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
5156         config/rs6000/altivec.md, config/rs6000/rs6000.c,
5157         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
5158         config/sparc/sparc.c, config/sparc/sparc.h,
5159         config/sparc/sparc.md, config/spu/constraints.md,
5160         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
5161         conventions.
5162
5163 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
5164
5165         PR target/29943
5166         * varasm.c (use_blocks_for_decl_p): Return false for decls with
5167         alias attribute.
5168
5169 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
5170
5171         * doc/invoke.texi (-ftree-lrs): Remove.
5172
5173 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
5174
5175         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
5176         NULL.
5177
5178 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
5179
5180         * config/ia64/ia64.c (ia64_expand_builtin): Use the
5181         new CALL_EXPR_FN macro for retrieving the function
5182         declaration of the input expression.
5183
5184 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5185
5186         * c.opt (Waddress): New.
5187         * common.opt (Walways-true): Delete.
5188         (Wstring-literal-comparison): Delete.
5189         * doc/invoke.texi (Warning Options): Delete -Walways-true and
5190         -Wstring-literal-comparison. Add -Waddress.
5191         (Waddress): New.
5192         (Walways-true): Delete.
5193         (Wstring-literal-comparison): Delete.
5194         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
5195         consistently instead of -Walways-true in example.
5196         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
5197         * c-typeck.c (parser_build_binary_op): Replace
5198         -Wstring-literal-comparison and -Walways-true with -Waddress.
5199         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
5200         with -Waddress.
5201
5202 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
5203
5204         * tree-cfg.c (dump_function_to_file): Be prepared for functions
5205         without DECL_STRUCT_FUNCTION initialized.
5206
5207 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
5208
5209         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
5210         due to calls to functions taking pointers as parameters.
5211
5212 2007-02-19  Richard Henderson  <rth@redhat.com>
5213
5214         PR debug/29558
5215         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
5216         in memory.
5217
5218 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5219
5220         * config/s390/s390.c (s390_call_saved_register_used,
5221         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
5222         accessed to the new scheme.
5223
5224 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5225
5226         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
5227         (cris_print_index, cris_print_operand, cris_print_operand_address)
5228         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
5229         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
5230         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
5231         GET_CODE () == xxx.
5232         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
5233         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
5234         GO_IF_LEGITIMATE_ADDRESS): Ditto.
5235         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
5236         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
5237         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
5238         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
5239         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
5240         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
5241         (uminsi3, call, call_value): Ditto.
5242         (define_split: indir_to_reg_split, unnamed): Ditto.
5243
5244 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
5245
5246         PR tree-optimization/30975
5247         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
5248         wrong assert.
5249
5250 2007-02-18  Eric Christopher  <echristo@gmail.com>
5251
5252         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
5253         Remove use of arglist.
5254         (mips_expand_builtin): Remove use of arglist, pass in expr.
5255         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
5256         (mips_expand_builtin_movtf): Ditto.
5257         (mips_expand_builtin_compare): Ditto.
5258
5259 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
5260
5261         * tree-sra.c (sra_build_assignment): Replace assertion
5262         checking with a comment explaining why it can't be done.
5263
5264 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
5265
5266         PR middle-end/30833
5267         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
5268         during CALL_EXPR representation conversion.
5269         * tree-ssa-propagate.c (set_rhs): Likewise.
5270
5271 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
5272
5273         * tree-sra.c (sra_build_assignment): Disable assertion checking
5274         for now.
5275
5276 2007-02-18  Roger Sayle  <roger@eyesopen.com>
5277
5278         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
5279         instead of calling build2 with a GIMPLE_MODIFY_STMT.
5280         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
5281         Likewise.
5282         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
5283         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
5284         gimplify_init_ctor_eval_range, gimple_push_cleanup,
5285         gimplify_omp_for, gimplify_omp_atomic_pipeline,
5286         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
5287         force_gimple_operand): Likewise.
5288         * ipa-cp.c (constant_val_insert): Likewise.
5289         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
5290         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
5291         perfect_nestify): Likewise.
5292         * langhooks.c (lhd_omp_assignment): Likewise.
5293         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
5294         lower_copyprivate_clauses, lower_send_clauses,
5295         lower_send_shared_vars, expand_parallel_call,
5296         expand_omp_for_generic, expand_omp_for_static_nochunk,
5297         expand_omp_for_static_chunk, expand_omp_sections,
5298         lower_omp_single_copy, lower_omp_for_lastprivate,
5299         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
5300         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
5301         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
5302         Likewise.
5303
5304 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
5305
5306         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
5307         config/sh/sh.md: Follow spelling conventions.
5308
5309         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
5310         config/frv/predicates.md: Follow spelling conventions.
5311
5312         * config/m68k/linux-unwind.h: Fix a comment typo.
5313         * target.h: Follow spelling conventions.
5314
5315 2007-02-18  Roger Sayle  <roger@eyesopen.com>
5316
5317         PR rtl-optimization/28173
5318         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
5319         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
5320         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
5321         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
5322         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
5323
5324 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5325
5326         * builtins.c (fold_builtin_load_exponent): New.
5327         (fold_builtin_2): Use it.
5328
5329 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
5330
5331         PR rtl-optimization/30773
5332         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
5333         if we fail to attach a REG_EQUIV note.
5334
5335 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
5336             Roger Sayle  <roger@eyesopen.com>
5337
5338         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
5339
5340 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
5341
5342         * calls.c (initialize_argument_information): Pass original EXP
5343         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
5344         code to split complex arguments here, as part of initializing the
5345         ARGS array.
5346         (expand_call): Remove code that builds a list of arguments and
5347         inserts implicit arguments into it.  Instead, just count how many
5348         implicit arguments there will be so we can determine the size of
5349         the ARGS array, and let initialize_argument_information do the work.
5350         (split_complex_values): Delete unused function.
5351
5352 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
5353
5354         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
5355
5356 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
5357
5358         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
5359         for arg pointer based indexed addressing.
5360
5361 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
5362
5363         * config/ia64/ia64.h, config/ia64/ia64.md,
5364         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
5365         spelling conventions.
5366
5367 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
5368
5369         * config/m68k/m68k.c (split_di): New.
5370         * config/m68k/m68k-protos.h: Declare split_di.
5371         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
5372           Improve predicate handling and split constant shifts.
5373
5374 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
5375
5376         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
5377         parameter for register bitfield operations, general predicates
5378         cleanup
5379
5380 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
5381
5382         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
5383         * config/m68k/linux-unwind.h: New file.
5384
5385 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
5386
5387         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
5388         config/i386/athlon.md, config/ia64/ia64.md,
5389         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
5390         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
5391         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
5392         tree-ssa-loop-niter.c, tree-vect-analyze.c,
5393         tree-vect-transform.c: Fix comment typos.
5394
5395 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
5396
5397         * sched-deps.c (find_insn_list): Remove.
5398         * sched-int.h: Remove the prototype for find_insn_list.
5399
5400 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
5401
5402         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
5403         to linker.
5404         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
5405         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
5406         darwin_rs6000_override_options.
5407         (C_COMMON_OVERRIDE_OPTIONS): Expect
5408         darwin_macosx_version_min to be non-NULL always.
5409         (TARGET_C99_FUNCTIONS): Likewise.
5410         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
5411         (DARWIN_MINVERSION_SPEC): New.
5412         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
5413         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
5414         to cc1*.
5415         (DARWIN_MINVERSION_SPEC): New.
5416         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
5417         value.
5418         * config/darwin-c.c (darwin_cpp_builtins): Expect
5419         darwin_macosx_version_min to be non-NULL always.
5420
5421         * config/rs6000/rs6000.c: Clean up trailing whitespace.
5422
5423 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
5424
5425         * config/i386/i386.h (x86_use_xchgb): New.
5426         (TARGET_USE_XCHGB): New macro.
5427         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
5428         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
5429         Split after reload into bswaphi for shifts of 8.
5430         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
5431         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
5432         or when optimizing for size.
5433
5434 2007-02-16  Richard Guenther  <rguenther@suse.de>
5435             Christian Bruel  <christian.bruel@st.com>
5436
5437         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
5438         DECLs but prefer SSA_NAMEs over DECLs.
5439
5440 2007-02-16  Richard Guenther  <rguenther@suse.de>
5441
5442         * tree-flow-inline.h (single_imm_use_p): Remove.
5443         (zero_imm_uses_p): Likewise.
5444         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
5445         instead of single_imm_use_p.
5446         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
5447         zero_imm_uses_p.
5448
5449 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5450
5451         PR other/27843
5452         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
5453         nested double- and backquotes.
5454
5455 2007-02-15  Roger Sayle  <roger@eyesopen.com>
5456
5457         PR middle-end/30391
5458         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
5459         should be unreachable.
5460         (build2_stat): Allow construction of MODIFY_EXPR at any time.
5461         For the time being redirect GIMPLE_MODIFY_STMT to the new
5462         (renamed) build_gimple_modify_stmt_stat.
5463         (build2_gimple_stat): Rename to...
5464         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
5465         Always build a GIMPLE_MODIFY_STMT node.
5466         * tree.h (build2_gimple, build2_gimple_stat): Delete.
5467         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
5468         declarations.
5469
5470         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
5471         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
5472         * tree-complex.c (set_component_ssa_name, expand_complex_move,
5473         expand_complex_div_wide): Likewise.
5474         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
5475         * tree-ssa-loop-im.c (schedule_sm): Likewise.
5476         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
5477         * tree-ssa-loop-manip.c (create_iv): Likewise.
5478         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
5479         abs_replacement): Likewise.
5480         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
5481         realify_fake_stores): Likewise.
5482
5483         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
5484         node rather than a GIMPLE_MODIFY_STMT node.
5485         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
5486         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
5487         Likewise.
5488         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
5489         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
5490         GIMPLE_MODIFY_STMT.
5491
5492 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5493
5494         PR middle-end/30433
5495         * fold-const.c (fold_comparison): Add back the
5496         folding of constant complex comparisions.
5497
5498 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5499
5500         PR middle-end/30729
5501         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
5502         effects unknown to this function, return early.
5503
5504 2007-02-15  Ian Lance Taylor  <iant@google.com>
5505
5506         * lower-subreg.c (move_eh_region_note): New static function.
5507         (resolve_simple_move): Call it.
5508         (decompose_multiword_subregs): Track blocks for which we resolve a
5509         simple move which is also a control flow insn.  Pass them to
5510         find_many_sub_basic_blocks.
5511         (pass_lower_subreg): Add TODO_verify_flow.
5512         (pass_lower_subreg2): Likewise.
5513
5514 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5515             Brooks Moses  <brooks.moses@codesourcery.com>
5516             Lee Millward  <lee.millward@codesourcery.com>
5517
5518         * tree.h (enum tree_code_class): Add tcc_vl_exp.
5519         (VL_EXP_CLASS_P): New.
5520         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
5521         TREE_CODE_LENGTH.
5522         (TREE_OPERAND_CHECK_CODE): Likewise.
5523         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
5524         (TREE_RTL_OPERAND_CHECK): Likewise.
5525         (tree_operand_check_failed): Make second parameter the whole tree
5526         instead of its code.  Fixed callers.
5527         (VL_EXP_CHECK): New.
5528         (TREE_OPERAND_LENGTH): New.
5529         (VL_EXP_OPERAND_LENGTH): New.
5530         (CALL_EXPR_FN): New.
5531         (CALL_EXPR_STATIC_CHAIN): New.
5532         (CALL_EXPR_ARGS): New.
5533         (CALL_EXPR_ARG): New.
5534         (call_expr_nargs): New.
5535         (CALL_EXPR_ARGP): New.
5536         (build_nt_call_list): Declare.
5537         (build_vl_exp_stat): Declare.
5538         (build_vl_exp): New.
5539         (build_call_list): Declare.
5540         (build_call_nary): Declare.
5541         (build_call_valist): Declare.
5542         (build_call_array): Declare.
5543         (call_expr_arg): Declare.
5544         (call_expr_argp): Declare.
5545         (call_expr_arglist): Declare.
5546         (fold_build_call_list): Declare.
5547         (fold_build_call_list_initializer): Declare.
5548         (fold_call_expr): Declare to replace fold_builtin.
5549         (fold_builtin_fputs): Update to agree with modified definition.
5550         (fold_builtin_strcpy): Likewise.
5551         (fold_builtin_strncpy): Likewise.
5552         (fold_builtin_memory_chk): Likewise.
5553         (fold_builtin_stxcpy_chk): Likewise.
5554         (fold_builtin_strncpy_chk): Likewise.
5555         (fold_builtin_next_arg): Likewise.
5556         (fold_build_call_expr): Declare.
5557         (fold_builtin_call_list): Declare.
5558         (fold_builtin_call_valist): Declare.
5559         (build_call_expr): Declare.
5560         (validate_arglist): Update to agree with modified definition.
5561         (tree_operand_length): New.
5562         (call_expr_arg_iterator): New.
5563         (init_call_expr_arg_iterator): New.
5564         (next_call_expr_arg): New.
5565         (first_call_expr_arg): New.
5566         (more_call_expr_args_p): New.
5567         (FOR_EACH_CALL_EXPR_ARG): New.
5568
5569         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
5570         and tcc_gimple_stmt.
5571         (tree_code_size): Update documentation.  Use sizeof (tree) rather
5572         than sizeof (char *).
5573         (tree_size): Likewise.  Add case for tcc_vl_exp.
5574         (tree_node_structure): Add case for tcc_vl_exp.
5575         (contains_placeholder_p): Likewise.
5576         (substitute_in_expr): Likewise.
5577         (substitute_placeholder_in_expr): Likewise.
5578         (stabilize_reference_1): Likewise.
5579         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
5580         to diagnose breakage of this interface for constructing CALL_EXPRs.
5581         (build_nt): Add similar assertion here.
5582         (build_nt_call_list): New.
5583         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
5584         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
5585         TREE_CODE_LENGTH.
5586         (get_callee_fndecl): Use new CALL_EXPR accessors.
5587         (tree_operand_check_failed): Change parameters to pass entire node
5588         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
5589         (process_call_operands): New.
5590         (build_vl_exp_stat): New.
5591         (build_call_list): New.
5592         (build_call_nary): New.
5593         (build_call_valist): New.
5594         (build_call_array): New.
5595         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5596         (call_expr_arglist): New.
5597
5598         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
5599         tcc_vl_exp instead of a fixed-size tcc_expression.
5600
5601         * doc/c-tree.texi (CALL_EXPR): Document new representation and
5602         accessors for CALL_EXPRs.
5603         (AGGR_INIT_EXPR): Likewise.
5604
5605 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5606             Brooks Moses  <brooks.moses@codesourcery.com>
5607             Lee Millward  <lee.millward@codesourcery.com>
5608
5609         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
5610         (expand_builtin_nonlocal_goto): Change parameter to be entire
5611         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
5612         (expand_builtin_prefetch): Likewise.
5613         (expand_builtin_classify_type): Likewise.
5614         (mathfn_built_in): Return NULL_TREE instead of 0.
5615         (expand_errno_check): Use new CALL_EXPR accessors.
5616         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
5617         Return NULL_RTX instead of 0.
5618         (expand_builtin_mathfn_2): Likewise.
5619         (expand_builtin_mathfn_3): Likewise.
5620         (expand_builtin_interclass_mathfn): Likewise.
5621         (expand_builtin_sincos): Likewise.
5622         (expand_builtin_cexpi): Likewise.
5623         (expand_builtin_int_roundingfn): Likewise.
5624         (expand_builtin_int_roundingfn_2): Likewise.
5625         (expand_builtin_pow): Likewise.
5626         (expand_builtin_powi): Likewise.
5627         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
5628         of arglist, fixing callers appropriately.  Use new CALL_EXPR
5629         accessors and constructors.  Return NULL_RTX instead of 0.
5630         (expand_builtin_strstr): Likewise.
5631         (expand_builtin_strchr): Likewise.
5632         (expand_builtin_strrchr): Likewise.
5633         (expand_builtin_strpbrk): Likewise.
5634         (expand_builtin_memcpy): Likewise.
5635         (expand_builtin_mempcpy): Likewise.
5636         (expand_builtin_mempcpy_args): New.
5637         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
5638         (expand_builtin_memmove_args): New.
5639         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
5640         (expand_movstr): Likewise.
5641         (expand_builtin_strcpy): Likewise.
5642         (expand_builtin_strcpy_args): New.
5643         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
5644         (expand_builtin_strncpy): Likewise.
5645         (expand_builtin_memset): Likewise.
5646         (expand_builtin_memset_args): New.
5647         (expand_builtin_bzero): Similarly to expand_builtin_memset.
5648         (expand_builtin_memcmp): Likewise.
5649         (expand_builtin_strcmp): Likewise.
5650         (expand_builtin_strncmp): Likewise.
5651         (expand_builtin_strcat): Likewise.
5652         (expand_builtin_strncat): Likewise.
5653         (expand_builtin_strspn): Likewise.
5654         (expand_builtin_strcspn): Likewise.
5655         (expand_builtin_args_info): Likewise.
5656         (expand_builtin_va_start): Likewise.
5657         (gimplify_va_arg_expr): Likewise.
5658         (expand_builtin_va_end): Likewise.
5659         (expand_builtin_va_copy): Likewise.
5660         (expand_builtin_frame_address): Likewise.
5661         (expand_builtin_alloca): Likewise.
5662         (expand_builtin_bswap): Likewise.
5663         (expand_builtin_unop): Likewise.
5664         (expand_builtin_fputs): Likewise.
5665         (expand_builtin_expect): Likewise.
5666         (expand_builtin_fabs): Likewise.
5667         (expand_builtin_copysign): Likewise.
5668         (expand_builtin_printf): Likewise.
5669         (expand_builtin_fprintf): Likewise.
5670         (expand_builtin_sprintf): Likewise.
5671         (expand_builtin_init_trampoline): Likewise.
5672         (expand_builtin_signbit): Likewise.
5673         (expand_builtin_fork_or_exec): Likewise.
5674         (expand_builtin_sync_operation): Likewise.
5675         (expand_builtin_compare_and_swap): Likewise.
5676         (expand_builtin_lock_test_and_set): Likewise.
5677         (expand_builtin_lock_release): Likewise.
5678         (expand_builtin): Likewise.
5679         (builtin_mathfn_code): Likewise.
5680
5681         (fold_builtin_constant_p): Pass call arguments individually instead
5682         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
5683         accessors and constructors.  Return NULL_TREE instead of 0.
5684         (fold_builtin_expect): Likewise.
5685         (fold_builtin_classify_type): Likewise.
5686         (fold_builtin_strlen): Likewise.
5687         (fold_builtin_nan): Likewise.
5688         (integer_valued_real_p): Likewise.
5689         (fold_trunc_transparent_mathfn): Likewise.
5690         (fold_fixed_mathfn): Likewise.
5691         (fold_builtin_cabs): Likewise.
5692         (fold_builtin_sqrt): Likewise.
5693         (fold_builtin_cbrt): Likewise.
5694         (fold_builtin_cos): Likewise.
5695         (fold_builtin_cosh): Likewise.
5696         (fold_builtin_tan): Likewise.
5697         (fold_builtin_sincos): Likewise.
5698         (fold_builtin_cexp): Likewise.
5699         (fold_builtin_trunc): Likewise.
5700         (fold_builtin_floor): Likewise.
5701         (fold_builtin_ceil): Likewise.
5702         (fold_builtin_round): Likewise.
5703         (fold_builtin_int_roundingfn): Likewise.
5704         (fold_builtin_bitop): Likewise.
5705         (fold_builtin_bswap): Likewise.
5706         (fold_builtin_logarithm): Likewise.
5707         (fold_builtin_hypot): Likewise.
5708         (fold_builtin_pow): Likewise.
5709         (fold_builtin_powi): Likewise.
5710         (fold_builtin_exponent): Likewise.
5711         (fold_builtin_memset): Likewise.
5712         (fold_builtin_bzero): Likewise.
5713         (fold_builtin_memory_op): Likewise.
5714         (fold_builtin_bcopy): Deleted; call site changed to invoke
5715         fold_builtin_memory_op directly.
5716         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
5717         (fold_builtin_strncpy): Likewise.
5718         (fold_builtin_memcmp): Likewise.
5719         (fold_builtin_strcmp): Likewise.
5720         (fold_builtin_strncmp): Likewise.
5721         (fold_builtin_signbit): Likewise.
5722         (fold_builtin_copysign): Likewise.
5723         (fold_builtin_isascii): Likewise.
5724         (fold_builtin_toascii): Likewise.
5725         (fold_builtin_isdigit): Likewise.
5726         (fold_builtin_fabs): Likewise.
5727         (fold_builtin_abs): Likewise.
5728         (fold_builtin_fmin_fmax): Likewise.
5729         (fold_builtin_carg): Likewise.
5730         (fold_builtin_classify): Likewise.
5731         (fold_builtin_unordered_cmp): Likewise.
5732
5733         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
5734         New functions split out from fold_builtin_1.
5735         (fold_builtin_n): New.
5736         (fold_builtin_varargs): New.
5737         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
5738         instead.
5739         (fold_call_expr): New.
5740         (build_function_call_expr): Rewrite to use new helper function.
5741         (fold_builtin_call_list): New.
5742         (build_call_expr): New.
5743         (fold_builtin_call_valist): New.
5744         (rewrite_call_expr): New.
5745         (validate_arg): New.
5746         (validate_arglist): Change parameter to be entire CALL_EXPR instead
5747         of an arglist.  Change return type to bool.  Use new CALL_EXPR
5748         accessors.
5749
5750         (fold_builtin_strstr):  Pass call arguments individually instead
5751         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
5752         accessors and constructors.  Return NULL_TREE instead of 0.
5753         (fold_builtin_strchr): Likewise.
5754         (fold_builtin_strrchr): Likewise.
5755         (fold_builtin_strpbrk): Likewise.
5756         (fold_builtin_strcat): Likewise.
5757         (fold_builtin_strncat): Likewise.
5758         (fold_builtin_strspn): Likewise.
5759         (fold_builtin_strcspn): Likewise.
5760         (fold_builtin_fputs): Likewise.
5761         (fold_builtin_next_arg): Likewise.
5762         (fold_builtin_sprintf): Likewise.
5763
5764         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
5765         NULL_RTX instead of 0.
5766         (expand_builtin_memory_chk): Likewise.
5767         (maybe_emit_chk_warning): Likewise.
5768         (maybe_emit_sprintf_chk_warning): Likewise.
5769
5770         (fold_builtin_object_size): Pass call arguments individually instead
5771         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
5772         accessors and constructors.  Return NULL_TREE instead of 0.
5773         (fold_builtin_memory_chk): Likewise.
5774         (fold_builtin_stxcpy_chk): Likewise.
5775         (fold_builtin_strncpy_chk): Likewise.
5776         (fold_builtin_strcat_chk): Likewise.
5777         (fold_builtin_strcat_chk): Likewise.
5778         (fold_builtin_strncat_chk): Likewise.
5779         (fold_builtin_sprintf_chk): Likewise.
5780         (fold_builtin_snprintf_chk): Likewise.
5781         (fold_builtin_printf): Likewise.
5782         (fold_builtin_vprintf): Likewise.
5783
5784         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
5785         constructors.
5786         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
5787         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5788         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
5789         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
5790         (fold_unary): Likewise.
5791         (fold_binary): Likewise.
5792         (fold_ternary): Remove CALL_EXPR case, since they are no longer
5793         ternary expressions.
5794         (fold): Add logic for tcc_vl_exp.
5795         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
5796         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5797         (fold_build3_stat): Add assertion to flag broken interface for
5798         constructing CALL_EXPRs.
5799         (fold_build_call_list): New.
5800         (fold_build_call_list_initializer): New.
5801         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
5802         constructors.
5803         (fold_strip_sign_ops): Likewise.
5804
5805 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5806             Brooks Moses  <brooks.moses@codesourcery.com>
5807             Lee Millward  <lee.millward@codesourcery.com>
5808
5809         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
5810         accessors and dump arguments explicitly.
5811
5812         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
5813         TREE_CODE_LENGTH.
5814         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
5815         explicitly.
5816         (print_call_name): Use new CALL_EXPR accessors.
5817
5818         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
5819         CALL_EXPR arguments explicitly instead of as a list.  Use
5820         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5821
5822         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
5823         (vrp_visit_stmt): Likewise.
5824
5825         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
5826         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
5827         TREE_CODE_LENGTH.
5828         (force_move_till_expr): Likewise.
5829
5830         * targhooks.c (default_external_stack_protect_fail): Use
5831         build_call_expr instead of build_function_call_expr.
5832         (default_hidden_stack_protect_fail): Likewise.
5833
5834         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
5835         build the call.
5836
5837         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
5838         and walk arguments explicitly.
5839
5840         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
5841         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5842         (expand_simple_operations): Likewise.
5843         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
5844
5845         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
5846         of TREE_CODE_LENGTH.
5847         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
5848
5849         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
5850         instead of TREE_CODE_LENGTH.
5851
5852         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
5853         (tree_ic_transform): Likewise.
5854         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
5855         parameter instead of arglist.  Fix callers.
5856         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
5857         (tree_stringops_transform): Likewise.
5858         (tree_indirect_call_to_profile): Likewise.
5859         (tree_stringops_values_to_profile): Likewise.
5860
5861         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
5862         (eliminate_tail_call): Likewise.
5863
5864         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
5865
5866         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5867         Use TREE_OPERAND_LENGTH and generalize to handle any number of
5868         operands.
5869         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
5870
5871         * omp-low.c (build_omp_barrier): Use build_call_expr.
5872         (lower_rec_input_clauses): Likewise.
5873         (lower_reduction_clauses): Likewise.
5874         (expand_parallel_call): Likewise.
5875         (maybe_catch_exception): Likewise.
5876         (expand_omp_for_generic): Likewise.
5877         (expand_omp_for_static_nochunk): Likewise.
5878         (expand_omp_sections): Likewise.
5879         (lower_omp_single_simple): Likewise.
5880         (lower_omp_single_copy): Likewise.
5881         (lower_omp_master): Likewise.
5882         (lower_omp_ordered): Likewise.
5883         (lower_omp_critical): Likewise.
5884
5885         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
5886         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
5887
5888         * tree-gimple.c (is_gimple_call_addr): Fix doc.
5889         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
5890         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
5891
5892         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
5893         and generalize to handle any number of operands.
5894         (chrec_contains_undetermined): Likewise.
5895         (tree_contains_chrecs): Likewise.
5896         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
5897
5898         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
5899
5900         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
5901         fold_call_expr instead of fold_builtin.
5902         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
5903         match declarations there.
5904         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
5905         updates.
5906
5907         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
5908         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5909
5910         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
5911         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
5912
5913         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
5914         accessors.
5915
5916         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
5917         (execute_cse_sincos): Use new CALL_EXPR accessors.
5918
5919         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
5920
5921         * gimple-low.c (lower_function_body): Use build_call_expr.
5922         (lower_builtin_setjmp): Likewise.
5923
5924         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
5925         (set_storage_via_libcall): Likewise.
5926         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
5927         instead of TREE_CODE_LENGTH.
5928         (expand_expr_real_1): Use new CALL_EXPR accessors.
5929
5930         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
5931         generalize to handle any number of operands.
5932         (TB_parent_eq): Likewise.
5933
5934         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
5935         (strip_builtin_expect): Likewise.
5936
5937         * function.c (gimplify_parameters): Use build_call_expr.
5938
5939         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
5940         instead of TREE_CODE_LENGTH.
5941
5942         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
5943         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
5944
5945         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
5946         iterators.
5947
5948         * gimplify.c (build_stack_save_restore): Use build_call_expr.
5949         (gimplify_decl_expr): Likewise.
5950         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
5951         Use new CALL_EXPR iterators.
5952         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
5953         (gimplify_modify_expr_to_memset): Likewise.
5954         (gimplify_variable_sized_compare): Likewise.
5955         (gimplify_omp_atomic_fetch_op): Likewise.
5956         (gimplify_omp_atomic_pipeline): Likewise.
5957         (gimplify_omp_atomic_mutex): Likewise.
5958         (gimplify_function_tree): Likewise.
5959
5960         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
5961         (call_expr_flags): Likewise.
5962         (expand_call): Likewise.
5963
5964         * except.c (expand_builtin_eh_return_data_regno): Pass entire
5965         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
5966         accessors.
5967
5968         * coverage.c (create_coverage): Use build_call_expr.
5969
5970         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
5971         (temp_call_expr_obstack): New.
5972         (pool_copy_list): Delete.
5973         (temp_copy_call_expr): New.
5974         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
5975         CALL_EXPR accessors.  Get rid of special goo for copying argument
5976         lists and use temp_copy_call_expr instead.
5977         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
5978         CALL_EXPR accessors.
5979         (create_expression_by_pieces): Likewise.  Use build_call_array
5980         to construct the result instead of fold_build3.
5981         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
5982         dealing with argument lists.
5983         (init_pre): Remove references to expression_node_pool and
5984         list_node_pool.  Init temp_call_expr_obstack instead.
5985         (fini_pre): Remove references to expression_node_pool and
5986         list_node_pool.
5987
5988         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
5989         and walk arguments explicitly instead of as a list.
5990
5991         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
5992         (mx_register_decls): Likewise.
5993         (mudflap_register_call): Likewise.
5994         (mudflap_finish_file): Likewise.
5995
5996         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
5997         (ipa_callsite_compute_param): Likewise.
5998
5999         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
6000         accessors and constructor.
6001
6002         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
6003         accessors and constructor.
6004         (convert_tramp_reference): Likewise.
6005         (convert_call_expr): Likewise.
6006         (finalize_nesting_tree_1): Likewise.
6007
6008         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
6009         accessors.
6010
6011         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
6012
6013         * tree-inline.c (initialize_inlined_parameters): Pass entire
6014         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
6015         accessors.
6016         (estimate_num_insns_1): Use new CALL_EXPR accessors.
6017         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
6018
6019         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
6020         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
6021         (vectorizable_reduction): Likewise.
6022         (vectorizable_call): Use new CALL_EXPR iterators.
6023         (vectorizable_conversion): Use build_call_expr.
6024         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
6025         (vect_gen_widened_results_half): Use build_call_expr.
6026         (vect_setup_realignment): Likewise.
6027         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
6028
6029         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
6030         (pass_through_call): Likewise.
6031         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
6032         fold_builtin.
6033
6034         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
6035         (tree_gen_pow2_profiler): Likewise.
6036         (tree_gen_one_value_profiler): Likewise.
6037         (tree_gen_ic_func_profiler): Likewise.
6038         (tree_gen_average_profiler): Likewise.
6039         (tree_gen_ior_profiler): Likewise.
6040
6041         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
6042         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
6043         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
6044
6045         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
6046         of TREE_CODE_LENGTH.
6047
6048         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
6049         of TREE_CODE_LENGTH.
6050
6051         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
6052         constructor.
6053         (convert_to_integer): Likewise.
6054
6055         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
6056         accessors.
6057
6058 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
6059             Brooks Moses  <brooks.moses@codesourcery.com>
6060             Lee Millward  <lee.millward@codesourcery.com>
6061
6062         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
6063         accessors.
6064         * config/frv/frv.c (frv_expand_builtin): Likewise.
6065         * config/s390/s390.c (s390_expand_builtin): Likewise.
6066
6067         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
6068         (sparc_expand_builtin): Use new CALL_EXPR accessors.
6069
6070         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
6071         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
6072         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
6073         (ix86_expand_store_builtin): Likewise.
6074         (ix86_expand_unop_builtin): Likewise.
6075         (ix86_expand_unop1_builtin): Likewise.
6076         (ix86_expand_sse_compare): Likewise.
6077         (ix86_expand_sse_comi): Likewise.
6078         (ix86_expand_vec_init_builtin): Likewise.
6079         (ix86_expand_vec_ext_builtin): Likewise.
6080         (ix86_expand_vec_set_builtin): Likewise.
6081         (ix86_expand_builtin): Use new CALL_EXPR accessors.
6082
6083         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
6084         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
6085
6086         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
6087         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
6088         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
6089
6090         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
6091         build_call_expr.
6092         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
6093         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
6094         arglist.  Use new CALL_EXPR accessors.  Fix callers.
6095         (altivec_expand_abs_builtin): Likewise.
6096         (rs6000_expand_binop_builtin): Likewise.
6097         (altivec_expand_predicate_builtin): Likewise.
6098         (altivec_expand_lv_builtin): Likewise.
6099         (spe_expand_stv_builtin): Likewise.
6100         (altivec_expand_stv_builtin): Likewise.
6101         (rs6000_expand_ternop_builtin): Likewise.
6102         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
6103         (altivec_expand_st_builtin): Likewise.
6104         (altivec_expand_dst_builtin): Likewise.
6105         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
6106         arglist.  Use new CALL_EXPR accessors.  Fix callers.
6107         (altivec_expand_vec_set_builtin): Likewise.
6108         (altivec_expand_vec_ext_builtin): Likewise.
6109         (altivec_expand_builtin): Use new CALL_EXPR accessors.
6110         (spe_expand_builtin): Likewise.
6111         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
6112         arglist.  Use new CALL_EXPR accessors.  Fix callers.
6113         (spe_expand_evsel_builtin): Likewise.
6114         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
6115         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
6116
6117         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
6118         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
6119         (arm_expand_unop_builtin): Likewise.
6120         (arm_expand_builtin): Use new CALL_EXPR accessors.
6121
6122         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
6123         accessors.
6124
6125         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
6126         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
6127         (bfin_expand_unop_builtin): Likewise.
6128         (bfin_expand_builtin): Use new CALL_EXPR accessors.
6129
6130 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
6131             Brooks Moses  <brooks.moses@codesourcery.com>
6132             Lee Millward  <lee.millward@codesourcery.com>
6133
6134         * c-semantics.c (build_stmt): Add internal diagnostic check.
6135
6136         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
6137         accessors.  Print arguments explicitly instead of as a list.
6138
6139         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
6140
6141         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
6142         (c_finish_omp_flish): Likewise.
6143
6144         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
6145         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
6146         instead of TREE_CODE_LENGTH.
6147         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
6148         (c_warn_unused_result): Likewise.
6149
6150 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6151
6152         PR c/26494
6153         * doc/invoke.texi (Warning Options): Remove
6154         -Werror-implicit-function-declaration.
6155         (Wimplicit-function-declaration): Update description.
6156         * opts.c (common_handle_option): Move handling of -Werror=* to...
6157         (enable_warning_as_error): ...here.
6158         * opts.h (enable_warning_as_error): Declare.
6159         * c-decl.c (implicit_decl_warning): Unless
6160         -Wno-implicit-function-declaration is given, emit a pedwarn if
6161         -std=c99 or emit a warning if -Wimplicit-function-declaration.
6162         * c.opt (Wimplicit-function-declaration): Replace
6163         mesg_implicit_function_declaration with
6164         warn_implicit_function_declaration.
6165         * c-opts.c (c_common_handle_option):
6166         -Werror-implicit-function-declaration is exactly equal as
6167         -Werror=implicit-function-declaration.
6168         (set_Wimplicit): Replace mesg_implicit_function_declaration with
6169         warn_implicit_function_declaration.
6170         (c_common_post_options): -Wimplict-function-declaration is enabled
6171         by default by -std=c99, otherwise is disabled by default.
6172         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
6173
6174 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
6175
6176         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
6177         DECL on the rhs to a DECL on the lhs for debug info purposes if the
6178         former is ignored but not the latter.
6179
6180 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
6181
6182         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
6183         is made and the reference doesn't use the alias set of its type,
6184         do not create the temporary using that type.
6185
6186 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
6187
6188         * jump.c: Remove prototypes for delete_computation and
6189         delete_prior_computation.
6190
6191 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
6192
6193         * jump.c (get_label_after): Delete.
6194         (get_label_before, delete_computation, delete_jump,
6195         delete_prior_computation, follow_jumps): Move...
6196         * reorg.c (delete_computation, delete_prior_computation): ... here...
6197         (get_label_before, delete_jump): ... making these static ...
6198         (follow_jumps): ... and simplifying this since it only runs after
6199         reload.
6200         * rtl.h (get_label_after, get_label_before, delete_jump,
6201         follow_jumps): Delete prototypes.
6202
6203 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
6204
6205         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
6206
6207 2007-02-15  Nick Clifton  <nickc@redhat.com>
6208
6209         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
6210         order to prevent it from being munged by the target.
6211
6212 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
6213
6214         * config/i386/i386.md: Remove misleading comment.
6215
6216 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6217
6218         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
6219         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
6220         invalid patterns.
6221
6222 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6223
6224         * tree-sra.c (instantiate_missing_elements): Canonicalize
6225         bit-field types.
6226         (sra_build_assignment): New.
6227         (generate_copy_inout, generate_element_copy,
6228         generate_element_zero, generate_one_element_init): Use it.
6229
6230 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6231
6232         * tree-sra.c (instantiate_missing_elements): Canonicalize
6233         bit-field types.
6234         (sra_build_assignment): New.
6235         (generate_copy_inout, generate_element_copy,
6236         generate_element_zero, generate_one_element_init): Use it.
6237
6238 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
6239
6240         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
6241         limbo die nodes.
6242
6243 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
6244
6245         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
6246         types as aggregates not scalars.
6247         * function.c (assign_stack_temp_for_type): Likewise.
6248
6249 2007-02-14  Roger Sayle  <roger@eyesopen.com>
6250             Zdenek Dvorak  <dvorakz@suse.cz>
6251
6252         * tree-dump.c (dump_switch_p_1): Require exact match of the option
6253         name.
6254
6255 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
6256
6257         * passes.c (next_pass_1): Clear the next field of the copied
6258         pass structure.
6259
6260 2007-02-14  Richard Henderson  <rth@redhat.com>
6261
6262         * tree-sra.c (early_sra): New.
6263         (decl_can_be_decomposed_p): Deny va_list if early_sra.
6264         (tree_sra_early, pass_sra_early): New.
6265         * tree-pass.h (pass_sra_early): Declare.
6266         * passes.c (init_optimization_passes): Use it.
6267
6268 2007-02-14  Richard Guenther  <rguenther@suse.de>
6269
6270         * flags.h (issue_strict_overflow_warning): Convert to a macro.
6271
6272 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
6273
6274          PR tree-optimization/30771
6275         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
6276         also phi nodes.
6277         (vect_analyze_operations): Induction phis can now be marked as
6278         used_in_loop.
6279         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
6280         Update documentation accordingly.
6281
6282 2007-02-14  Nick Clifton  <nickc@redhat.com>
6283
6284         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
6285         most 3 arguments are supported.
6286         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
6287
6288 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
6289
6290         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
6291         Ensure dst->current is valid.
6292
6293 2007-02-13  Paul Brook  <paul@codesourcery.com>
6294
6295         * config.gcc: Add arm*-*-uclinux-*eabi.
6296         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6297         (SUBTARGET_EXTRA_LINK_SPEC): Define.
6298         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
6299         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
6300         (LINK_SPEC): Define.
6301         (LIB_SPEC): Define.
6302         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
6303         register.
6304         * config/arm/uclinux-eabi.h: New file.
6305         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
6306         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
6307         based targets.
6308
6309 2007-02-13  Ian Lance Taylor  <iant@google.com>
6310
6311         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
6312         * flags.h (warn_strict_overflow): Declare.
6313         (enum warn_strict_overflow_code): Define.
6314         (issue_strict_overflow_warning): New static inline function.
6315         * opts.c (warn_strict_overflow): New variable.
6316         (common_handle_option): Handle OPT_Wstrict_overflow and
6317         OPT_Wstrict_overflow_.
6318         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
6319         OPT_Wall.
6320         * fold-const.c: Include intl.h.
6321         (fold_deferring_overflow_warnings): New static variable.
6322         (fold_deferred_overflow_warning): New static variable.
6323         (fold_deferred_overflow_code): New static variable.
6324         (fold_defer_overflow_warnings): New function.
6325         (fold_undefer_overflow_warnings): New function.
6326         (fold_undefer_and_ignore_overflow_warnings): New function.
6327         (fold_deferring_overflow_warnings_p): New function.
6328         (fold_overflow_warning): New static function.
6329         (make_range): Add strict_overflow_p parameter.  Change all
6330         callers.
6331         (extract_muldiv, extract_muldiv_1): Likewise.
6332         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
6333         tree_expr_nonnegative_p.
6334         (fold_negate_expr): Call fold_overflow_warning.
6335         (fold_range_test): Likewise.
6336         (fold_comparison): Likewise.
6337         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
6338         instead of tree_expr_nonnegative_p.
6339         (tree_expr_nonnegative_warnv_p): Rename from
6340         tree_expr_nonnegative_p, add strict_overflow_p parameter.
6341         (tree_expr_nonnegative_p): New function.
6342         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
6343         strict_overflow_p parameter.
6344         (tree_expr_nonzero_p): New function.
6345         * passes.c (verify_interpass_invariants): New static function.
6346         (execute_one_pass): Call it.
6347         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
6348         warnings.
6349         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
6350         (estimate_numbers_of_iterations): Likewise.
6351         (scev_probably_wraps_p): Likewise.
6352         * tree-ssa-ccp.c: Include "toplev.h".
6353         (evaluate_stmt): Defer fold overflow warnings until we know we are
6354         going to optimize.
6355         (struct fold_stmt_r_data): Add stmt field.
6356         (fold_stmt_r): Defer fold overflow warnings until we know we
6357         optimized.
6358         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
6359         (fold_stmt_inplace): Likewise.
6360         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
6361         (cleanup_control_expr_graph): Defer fold overflow warnings until
6362         we know we are going to optimize.
6363         * tree-cfg.c (fold_cond_expr_cond): Likewise.
6364         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
6365         Likewise.
6366         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6367         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
6368         * tree-ssa-loop-manip.c (create_iv): Likewise.
6369         * c-typeck.c (build_conditional_expr): Likewise.
6370         (build_binary_op): Likewise.
6371         * tree-vrp.c (vrp_expr_computes_nonzero): Call
6372         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
6373         (extract_range_from_unary_expr): Likewise.
6374         * simplify-rtx.c (simplify_const_relational_operation): Warn when
6375         assuming that signed overflow does not occur.
6376         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
6377         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
6378         (fold_defer_overflow_warnings): Declare.
6379         (fold_undefer_overflow_warnings): Declare.
6380         (fold_undefer_and_ignore_overflow_warnings): Declare.
6381         (fold_deferring_overflow_warnings_p): Declare.
6382         (tree_expr_nonzero_warnv_p): Declare.
6383         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
6384         of warning options.
6385         (Warning Options): Document -Wstrict-overflow.
6386         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
6387         (tree-ssa-ccp.o): Likewise.
6388         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
6389         (fold-const.o): Depend on intl.h.
6390
6391 2007-02-13  Ian Lance Taylor  <iant@google.com>
6392
6393         PR middle-end/30751
6394         * lower-subreg.c (resolve_simple_move): Decompose subregs in
6395         addresses.
6396
6397 2007-02-13  Stuart Hastings  <stuart@apple.com>
6398
6399         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
6400
6401 2007-02-13  Richard Henderson  <rth@redhat.com>
6402
6403         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
6404         handled_component_p before looking for the indirect_ref.
6405
6406 2007-02-13  Richard Henderson  <rth@redhat.com>
6407
6408         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
6409         remove flags clobber.
6410         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
6411         (bswaphi_lowpart): New.
6412         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
6413         remove TARGET_BSWAP test.  Delete expander of the same name.
6414
6415         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
6416         (expand_unop): Use them.
6417
6418 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
6419
6420         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
6421         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
6422         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
6423         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
6424         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
6425         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
6426         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
6427         assembler dialect choice from asm templates.
6428
6429 2007-02-12  Richard Henderson  <rth@redhat.com>
6430
6431         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
6432         (fixuns_trunc<SSEMODEF>si2): Use it.
6433         * config/i386/sse.md (vec_setv4sf_0): Export.
6434         * config/i386/i386.c (ix86_build_const_vector): Export.
6435         (ix86_split_convert_uns_si_sse): Rename from
6436         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
6437         * config/i386/i386-protos.h: Update.
6438
6439 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6440
6441         PR c/29521
6442         * c-typeck.c (c_finish_return): Improve warning message.
6443
6444 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6445
6446         * alias.c (find_symbolic_term): Delete unused function.
6447
6448 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
6449
6450         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
6451         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
6452         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
6453
6454 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
6455
6456         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6457         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
6458         the function, temporarily point the debug interface to the null one.
6459
6460 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
6461
6462         * dwarf2out.c (round_up_to_align): New static function.
6463         (field_byte_offset): Use it to round the offset.
6464
6465 2007-02-12  Richard Henderson  <rth@redhat.com>
6466
6467         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
6468         (inswl_const): Export.
6469
6470 2007-02-12  Richard Henderson  <rth@redhat.com>
6471
6472         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
6473         result mode of the libcall, convert back to outmode.
6474
6475 2007-02-12  Roger Sayle  <roger@eyesopen.com>
6476
6477         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
6478         (bswapdi2): New define_expand to implement 32-bit implementation.
6479
6480 2007-02-12  Nick Clifton  <nickc@redhat.com>
6481
6482         * doc/invoke.texi (Overall Options): Document --help=.
6483         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
6484         (cc1_options): Pass --help= on to cc1.
6485         (display_help): Add description of --help=.
6486         (process_command): Add code to handle --help=.  Allow translated
6487         --help and --target-help switches to be passed on to compiler
6488         sub-process.
6489         (main): Remove unused if statement.
6490         * opts.c (columns): Remove.
6491         (LEFT_COLUMN): Define.
6492         (wrap_help): Add columns argument.
6493         (print_filtered_help): Change parameters to be an include bitmask,
6494         an exclude bitmask, an any bitmask and the column width.  Move the
6495         code to display the params list here.  Add code to display the
6496         status of options rather than their descriptions if the quiet flag
6497         is not active.
6498         (print_specific_help): Change parameters to be an include bitmask,
6499         an exclude bitmask and an any bitmask.  Move code to look up the
6500         column width here.  Decide upon the title for an options listing.
6501         (common_handle_options): Add code to handle --help=.  Adapt code
6502         for --help and --target-help to use the revised form of the
6503         print_specific_help function.
6504         (print_help): Delete.
6505         (print_param_help): Delete.
6506         (print_switch): Delete.
6507         * opts.h (cl_lang_count): Add prototype.
6508         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
6509         CL_MAX_OPTION_CLASS): New defines.
6510         * optc-gen.awk: Add construction of cl_lang_count.
6511         * c.opt: Add Warning attribute to warning options and Optimization
6512         attribute to optimization options.
6513         * common.opt: Likewise.
6514         Add --help=.
6515         Add -fhelp and -ftarget-help as aliases for the transformed --help
6516         and --target-help options.
6517         * opt-functions.awk: Add code to handle Warning and Optimization
6518         attributes.
6519
6520 2007-02-12  Richard Henderson  <rth@redhat.com>
6521
6522         * config/alpha/constraints.md: New file.
6523         * config/alpha/alpha.c: Include tm-constrs.h.
6524         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
6525         alpha_extra_constraint): Remove.
6526         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
6527         * config/alpha/alpha-protos.h: Update.
6528         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
6529         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
6530         (EXTRA_CONSTRAINT): Remove.
6531         * config/alpha/alpha.md: Include constraints.md.
6532         (adddi splitter): Use satisfies_constraint_*.
6533         * config/alpha/predicates.md (add_operand): Likewise.
6534         (sext_add_operand, addition_operation): Likewise.
6535
6536 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
6537
6538         PR tree-optimization/29145
6539         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
6540         in our handling of restrict qualified pointers.
6541
6542 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6543
6544         PR middle-end/7651
6545         * doc/invoke.texi (Wunused-value): Update description.
6546         (Wextra): Delete item.
6547         * opts.c (set_Wextra): Don't use the value of Wextra to set the
6548         value of Wunused-value.
6549         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
6550         (c_finish_stmt_expr): Don't check extra_warnings.
6551         (emit_side_effect_warnings): The caller is responsible to check
6552         warn_unused_value.
6553
6554 2007-02-11  Roger Sayle  <roger@eyesopen.com>
6555             Matt Thomas  <matt@3am-software.com>
6556
6557         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
6558
6559 2007-02-11  Roger Sayle  <roger@eyesopen.com>
6560
6561         * simplify-rtx.c (simplify_relational_operation_1): Optimize
6562         comparisons of POPCOUNT against zero.
6563         (simplify_const_relational_operation): Likewise.
6564
6565 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6566
6567         * doc/invoke.texi (Wextra): Delete outdated paragraph.
6568
6569 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6570
6571         * dwarf2out.c (root_type): Delete unused function.
6572
6573 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6574
6575         * genattrtab.c (contained_in_p): Delete unused function.
6576         (write_expr_attr_cache): Likewise.
6577
6578 2007-02-11  Jan Hubicka  <jh@suse.cz>
6579
6580         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
6581         previous patch.
6582
6583 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
6584
6585         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
6586         to add the REG_EQ* note.
6587         * see.c (see_merge_one_use_extension): Likewise.
6588         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
6589         turn REG_EQUAL notes into REG_EQUIV notes if the target
6590         register may have more than one set.
6591         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
6592         * gcse.c (try_replace_reg): Likewise.
6593         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
6594         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
6595         more than one REG_EQUIV note.
6596         * reload1.c (gen_reload): Use set_unique_reg_note.
6597
6598 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
6599
6600         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
6601         (ix86_builtin_conversion): New function.
6602
6603 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
6604
6605         PR target/29487
6606         * tree.h (DECL_REPLACEABLE_P): New macro.
6607         * except.c (set_nothrow_function_flags): Likewise.
6608
6609 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
6610             Ira Rosen  <irar@il.ibm.com>
6611             Dorit Nuzman  <dorit@il.ibm.com>
6612
6613         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
6614         * targhooks.c (default_builtin_vectorized_conversion): New.
6615         * targhooks.h (default_builtin_vectorized_function): New declaration.
6616         * target.h (struct vectorize): Add builtin_conversion field.
6617         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
6618         stmt_vec_info_type value.
6619         (vectorizable_conversion): New declaration.
6620         * tree-vect-analyze.c (vect_analyze_operations): Add
6621         vectorizable_conversion call.
6622         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
6623         * tree-vect-transform.c (vectorizable_conversion): New function.
6624         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
6625         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
6626         mode.
6627         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
6628         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
6629         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
6630         or ALTIVEC_BUILTIN_VCFSX.
6631
6632 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6633
6634         PR target/30634
6635         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
6636         CONST_DOUBLE and operand 0 is a hard register.
6637         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
6638         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
6639         is a hard floating-point register.
6640
6641 2007-02-10  Richard Henderson  <rth@redhat.com>
6642             Jakub Jelinek  <jakub@redhat.com>
6643             Alexandre Oliva  <aoliva@redhat.com>
6644
6645         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
6646         * builtin-types.def (BT_WORD): Make unsigned.
6647         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
6648         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
6649         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
6650         * c-decl.c (grokdeclarator): Don't error if !have_tls.
6651         * c-parser.c (c_parser_omp_threadprivate): Likewise.
6652         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
6653         emulated tls.
6654         * expr.c (emutls_var_address): New.
6655         (expand_expr_real_1): Expand emulated tls.
6656         (expand_expr_addr_expr_1): Likewise.
6657         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
6658         * output.h (emutls_finish): Declare.
6659         * toplev.c (compile_file): Call it.
6660         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
6661         address before wrapping in CONST.
6662         * varasm.c (emutls_htab, emutls_object_type): New.
6663         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
6664         (get_emutls_object_name, get_emutls_object_type): New.
6665         (get_emutls_init_templ_addr, emutls_decl): New.
6666         (emutls_common_1, emutls_finish): New.
6667         (assemble_variable): When emulating tls, swap decls; generate
6668         constructor for the emutls objects.
6669         (do_assemble_alias): When emulating tls, swap decl and target name.
6670         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
6671         for emulated tls.
6672         * varpool.c (decide_is_variable_needed): Look at force_output.
6673         Recurse for emulated tls.
6674         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
6675         with decide_is_variable_needed.
6676         * emutls.c: New file.
6677         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
6678         tls_object for real tls.
6679
6680 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
6681
6682         PR rtl-optimization/29599
6683         * reload1.c (eliminate_regs_in_insn): Take the destination
6684         mode into account when computing the offset.
6685
6686 2007-02-09  Stuart Hastings  <stuart@apple.com>
6687             Richard Henderson  <rth@redhat.com>
6688
6689         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
6690         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
6691         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
6692         fixuns_truncdfhi2): New.
6693         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
6694         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
6695         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
6696         (floatunssidf2): Allow nonimmediate source.
6697         * config/i386/sse.md (movdi_to_sse): New.
6698         (vec_concatv2di): Drop '*'.
6699         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
6700         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
6701         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
6702         New.
6703         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
6704         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
6705         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
6706         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
6707         (ix86_build_signbit_mask): Fix decl of v, refactor to call
6708         ix86_build_const_vector.
6709         (x86_emit_floatuns): Rewrite.
6710
6711 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6712
6713         * genautomata.c (longest_path_length): Delete unused function.
6714         (struct state): Delete unused longest_path_length.
6715         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
6716         (get_free_state): Delete unused.
6717
6718 2007-02-09  Jan Hubicka  <jh@suse.cz>
6719
6720         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
6721         * doc/invoke.texi (inline-unit-growth): Update default value.
6722
6723         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
6724         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
6725         (rebuild_cgraph_edges): Likewise.
6726         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
6727         (dump_cgraph_node): Dump frequencies.
6728         (cgraph_clone_edge): Add frequency scales.
6729         (cgraph_clone_node): Add freuqnecy.
6730         * cgraph.h (cgraph_edge): Add freuqnecy argument.
6731         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
6732         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
6733         * tree-pass.h (TODO_rebuild_frequencies): New constant.
6734         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
6735         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
6736         (save_inline_function_body): Likewise.
6737         * ipa-inline.c: inluce rtl.h
6738         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
6739         (cgraph_edge_badness): Use frequencies.
6740         (cgraph_decide_recursive_inlining): Update clonning.
6741         (cgraph_decide_inlining_of_small_function): Dump frequency.
6742         * predict.c (estimate_bb_frequencies): Export.
6743         * predict.h (estimate_bb_frequencies): Declare.
6744         * tree-inline.c (copy_bb): Watch overflows.
6745         (expand_call_inline): Update call of cgraph_create_edge.
6746         (optimize_inline_calls): Use TODO flags to update frequnecies.
6747         * passes.h: Include predict.h
6748         (init_optimization_passes): Move profile ahead.
6749         (execute_function_todo): Handle TODO_rebuild_frequencies.
6750
6751 2007-02-09  Roger Sayle  <roger@eyesopen.com>
6752
6753         * config/alpha/alpha.c (emit_insxl): Force the first operand of
6754         the insbl or inswl pattern into a register.
6755
6756 2007-02-09  Roger Sayle  <roger@eyesopen.com>
6757
6758         * config/ia64/ia64.md (bswapdi2): New define_insn.
6759
6760 2007-02-09  Richard Henderson  <rth@redhat.com>
6761
6762         * config/i386/constraints.md (Ym): New constraint.
6763         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
6764         (movdi_1_rex64): Split sse and xmm general register moves from
6765         memory move alternatives.  Use conditional register constraints.
6766         (movsf_1, movdf_integer): Likewise.
6767         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
6768         (movdf_integer_rex64): New.
6769         (pushsf_rex64): Fix output constraints.
6770         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
6771         (sse2_stored): Likewise.
6772         (sse2_storeq_rex64): New.
6773         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
6774         amd and not generic.
6775         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
6776         for optimize_size.  Remove SF/DFmode hack.
6777
6778 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6779
6780         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
6781         (bit_SSE4a): New.
6782
6783 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
6784             Richard Sandiford  <richard@codesourcery.com>
6785
6786         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
6787         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
6788         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
6789         m68k/t-mlib to tmake_file.
6790         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
6791         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
6792         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
6793         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
6794         variable is not empty, add t-$m68k_arch_family to tmake_file.
6795         Add t-mlibs to tmake_file.
6796         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
6797         * config/m68k/t-cf: New file.
6798         * config/m68k/t-m68k: Likewise.
6799         * config/m68k/t-mlibs: Likewise.
6800         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6801         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6802         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
6803         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6804         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
6805         Delete.
6806         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
6807         (INSTALL_LIBGCC): Delete.
6808         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
6809         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6810         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6811         (M68K_MLIB_CPU): Define.
6812         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
6813         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
6814         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
6815
6816 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
6817             Richard Guenther  <rguenther@suse.de>
6818
6819         PR middle-end/23361
6820         * fold-const.c (fold_comparison): Handle obfuscated comparisons
6821         against INT_MIN/INT_MAX.
6822         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
6823         file if a loop is removed.
6824
6825 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
6826
6827         * calls.c (store_one_arg): Pass correct alignment to
6828         emit_push_insn for non-BLKmode values.
6829         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
6830         unaligned stack slot via a suitably aligned slot.
6831
6832 2007-02-08  DJ Delorie  <dj@redhat.com>
6833
6834         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
6835         warnings.
6836         (legal_subregs): Use unsigned char, make const.
6837         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
6838
6839 2007-02-08  Paul Brook  <paul@codesourcery.com>
6840
6841         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
6842         special interworking needed.
6843
6844 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
6845
6846         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
6847         conditional to __SSE2__.
6848         (Entries below should have been added to first ChangeLog
6849         entry for amdfam10 dated 2007-02-05)
6850         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
6851         defined.
6852         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
6853         defined.
6854         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
6855         defined.
6856
6857 2007-02-08  DJ Delorie  <dj@redhat.com>
6858
6859         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
6860         * config/m32c/m32c.c (legal_subregs): New.
6861         (m32c_illegal_subreg_p): New.
6862         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
6863         unsupported subregs of hard regs.
6864
6865 2007-02-08  Jan Hubicka  <jh@suse.cz>
6866
6867         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
6868         the same one; always update histograms.
6869
6870 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
6871
6872         * passes.c (init_optimization_passes): Tidy comment.
6873
6874 2007-02-08  Roger Sayle  <roger@eyesopen.com>
6875
6876         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
6877         strip zero_extend, bswap and rotates from POCOUNT's argument.
6878         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
6879         zero_extend and rotates from PARITY's argument.
6880         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
6881         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
6882         of an integer constant at compile-time.
6883
6884 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
6885
6886         PR 30562
6887         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
6888         Update all users.
6889         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
6890         users.
6891         (init_alias_info):
6892         * tree-ssa-live.c (remove_unused_locals): Do not remove
6893         TREE_ADDRESSABLE variables.
6894         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
6895         * tree-ssa-operands.c (add_virtual_operand): Remove argument
6896         FOR_CLOBBER.  Update all users.
6897         If VAR has an associated alias set, add a virtual operand for
6898         it if no alias is found to conflict with the memory reference.
6899
6900 2007-02-07  Jan Hubicka  <jh@suse.cz>
6901             Robert Kidd <rkidd@crhc.uiuc.edu>
6902
6903         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
6904
6905 2007-02-07  Ian Lance Taylor  <iant@google.com>
6906
6907         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
6908
6909 2007-02-07  Roger Sayle  <roger@eyesopen.com>
6910
6911         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
6912         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
6913         tablejumpdi, movsi_to_cr_one): Remove constraints from
6914         define_expand's match_operands.
6915
6916 2007-02-07  Roger Sayle  <roger@eyesopen.com>
6917
6918         * global.c (compute_regsets): Move declatation of "i" inside of
6919         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
6920
6921 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
6922
6923         PR c++/30703
6924         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
6925         of INDIRECT_REF <RESULT_DECL>.
6926
6927         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
6928
6929 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
6930             Kaz Kojima  <kkojima@gcc.gnu.org>
6931
6932         PR target/29746
6933         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
6934         properly.
6935         (sh_initialize_trampoline): Add parentheses to avoid a warning.
6936
6937 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
6938
6939         * doc/loop.texi: Document possibility not to perform disambiguation
6940         of loops with multiple latches.
6941         * cfgloopmanip.c (alp_enum_p): Removed.
6942         (add_loop): Handle subloops.  Use get_loop_body_with_size.
6943         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
6944         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
6945         the new forwarder block.
6946         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
6947         Handle the case latch is NULL.
6948         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
6949         when marking loop exits.
6950         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
6951         be modified.
6952         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
6953         disambiguate_loops_with_multiple_latches.
6954         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
6955         before fix_loop_structure.
6956         * cfgloop.c: Include pointer-set.h and output.h.
6957         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
6958         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
6959         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
6960         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
6961         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
6962         disambiguate_multiple_latches, get_loop_body_with_size,
6963         disambiguate_loops_with_multiple_latches): New functions.
6964         (flow_loop_dump): Dump multiple latch edges.
6965         (flow_loop_nodes_find): Handle loops with multiple latches.
6966         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
6967         (glb_enum_p): Modified.
6968         (get_loop_body): Use get_loop_body_with_size.
6969         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
6970         (AVOID_CFG_MODIFICATIONS): New constant.
6971         (disambiguate_loops_with_multiple_latches, add_loop,
6972         get_loop_body_with_size): Declare.
6973         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
6974
6975 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
6976
6977         PR inline-asm/28686
6978         * global.c (compute_regsets): New function.
6979         (global_alloc): Refactored ELIMINABLE_REGSET
6980         and NO_GLOBAL_ALLOC_REGS computation out.
6981         (rest_of_handle_global_alloc): Call compute_regsets()
6982         for non-optimizing case.
6983
6984 2007-02-06  Richard Henderson  <rth@redhat.com>
6985
6986         * config/i386/constraints.md (Y2): Rename from Y.
6987         (Yi): New constraint.
6988         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
6989         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
6990         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
6991         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
6992         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
6993         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
6994         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
6995         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
6996         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
6997         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
6998         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
6999         vec_extractv2si_1): Change Y constraints to Y2.
7000         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
7001         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
7002         Change Y constraints to Y2.
7003         (sse2_loadld): Change Y constraints to x.
7004
7005 2007-02-06  Roger Sayle  <roger@eyesopen.com>
7006
7007         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
7008         (parity<mode>2): New define_expand using rs6000_emit_parity.
7009         * config/rs6000/rs6000.c (rs6000_emit_popcount,
7010         rs6000_emit_parity): New functions.
7011         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
7012         rs6000_emit_parity): Prototype here.
7013
7014 2007-02-06  Ian Lance Taylor  <iant@google.com>
7015
7016         * lower-subreg.c (simple_move_operand): Reject CONST.
7017         (resolve_clobber): Call validate_change rather than directly
7018         assigning to XEXP (pat, 0).
7019
7020 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
7021
7022         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
7023         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
7024         (tree-cfg.o): Remove hashtab.h dependency.
7025
7026         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
7027         (struct ivopts_data): Change niters to pointer_map_t.
7028         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
7029         (niter_for_exit): Create pointer_map on demand.  Change for
7030         pointer_map API.
7031         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
7032         (free_loop_data): Destroy data->niters if created and reset field.
7033         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
7034         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
7035
7036         * tree-ssa-reassoc.c: Include pointer-set.h.
7037         (bb_rank): Change to long *.
7038         (operand_rank): Change to pointer_map_t.
7039         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
7040         (insert_operand_rank): Accept long.
7041         (operand_entry_hash, operand_entry_eq): Remove.
7042         (get_rank): Return long.  Adjust for changes above.
7043         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
7044         and operand_rank.
7045         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
7046
7047         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
7048         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
7049         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
7050         is not NULL.
7051         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
7052         directly since it cannot be NULL.
7053         (get_vi_for_tree): Rewrite for pointer_map API.
7054         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
7055         (init_alias_vars): Create vi_for_tree as pointer_map.
7056         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
7057
7058         * tree-cfg.c: Don't include hashtab.h.
7059         (edge_to_cases): Declare as pointer_map.
7060         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
7061         Delete.
7062         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
7063         (start_recording_case_labels): Create edge_to_cases as pointer_map.
7064         (end_recoding_case_labels): Cleanup edge_to_cases manually before
7065         destroying it.
7066         (record_switch_edge): Delete.
7067         (get_cases_for_edge): Adjust for pointer_map API, inline
7068         record_switch_edge (rewritten for new API), remove goto.
7069
7070 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
7071
7072         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
7073         * tree-nested.c: Include pointer-set.h.
7074         (var_map_elt, var_map_eq, var_map_hash): Delete.
7075         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
7076         to pointer_map_t's.
7077         (nesting_info_bitmap_obstack): New.
7078         (lookup_field_for_decl): Adjust for pointer_map API.
7079         (lookup_tramp_for_decl): Adjust for pointer_map API.
7080         (get_nonlocal_debug_decl): Adjust for pointer_map API.
7081         (get_local_debug_decl): Adjust for pointer_map API.
7082         (convert_nl_goto_reference): Adjust for pointer_map API.
7083         (convert_nl_goto_receiver): Adjust for pointer_map API.
7084         (create_nesting_tree): Create outside GGC space.  Create bitmap on
7085         the new obstack.  Create field_map and var_map as pointer_maps.
7086         (free_nesting_tree): Adjust for changes to create_nesting_tree.
7087         (root): Delete.
7088         (lower_nested_functions): Move root here, no need to NULL it.
7089         Initialize and release the obstack.
7090
7091 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
7092
7093         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
7094         Remove prototypes and make them non-static.
7095         (struct tree_int_map): Remove.
7096         * tree.h (struct tree_int_map): Move here, turning TO into an
7097         unsigned int.
7098         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
7099
7100         * tree.h (TREE_COMPLEXITY): Remove.
7101         (struct tree_exp): Remove complexity field.
7102         * tree.c (build1_stat): Don't set it.
7103
7104 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
7105             Victor Kaplansky  <victork@il.ibm.com>
7106
7107         * tree-vectorizer.c (vect_is_simple_use): Support induction.
7108         (vect_is_simple_reduction): Support reduction with induction as
7109         one of the operands.
7110         (vect_is_simple_iv_evolution): Fix formatting.
7111         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
7112         formatting.  Don't mark induction phis for vectorization.
7113         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
7114         * tree-vect-transform.c (get_initial_def_for_induction): New function.
7115         (vect_get_vec_def_for_operand): Support induction.
7116         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
7117         induction case.
7118         (vectorizable_reduction): Support reduction with induction as one of
7119         the operands.
7120         (vectorizable_type_demotion): Use def-type of stmt argument rather
7121         than dummy def-type.
7122
7123         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
7124         flag_tree_scev_cprop.
7125         * common.opt (tree-scev-cprop): New flag.
7126
7127         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
7128         call to vect_get_new_vect_var.
7129
7130 2007-02-06  Ira Rosen  <irar@il.ibm.com>
7131
7132         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
7133         vectype is not NULL.
7134         (vect_pattern_recog_1): Likewise.
7135
7136 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7137
7138         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
7139         (fold_negate_expr): Likewise.
7140
7141 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
7142
7143         PR debug/30189
7144         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
7145         even if cv-qualification is the same.
7146
7147 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
7148
7149         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
7150         __enable_execute_stack on completion.
7151
7152 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7153
7154         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
7155         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
7156         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
7157         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
7158         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
7159         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
7160         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
7161         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
7162
7163 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7164
7165         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
7166         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
7167         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
7168         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
7169         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
7170         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
7171         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
7172         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
7173         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
7174         umuldi3_highpart_rex64, umulsi3_highpart_insn,
7175         umulsi3_highpart_zext, smuldi3_highpart_rex64,
7176         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
7177         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
7178         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
7179         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
7180         sqrtextenddfxf2_i387): Added amdfam10_decode.
7181
7182         * config/i386/athlon.md (athlon_idirect_amdfam10,
7183         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
7184         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
7185         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
7186         athlon_ivector_store_amdfam10): New define_insn_reservation.
7187         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
7188         amdfam10.
7189
7190 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7191
7192         * config/i386/athlon.md (athlon_call_amdfam10,
7193         athlon_pop_amdfam10, athlon_lea_amdfam10): New
7194         define_insn_reservation.
7195         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
7196         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
7197         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
7198
7199 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7200
7201         * config/i386/athlon.md (athlon_sseld_amdfam10,
7202         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
7203         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
7204
7205 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7206
7207         * config/i386/athlon.md (athlon_sseins_amdfam10): New
7208         define_insn_reservation.
7209         * config/i386/i386.md (sseins): Added sseins to define_attr type
7210         and define_attr unit.
7211         * config/i386/sse.md: Set type attribute to sseins for insertq
7212         and insertqi.
7213
7214 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7215
7216         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
7217         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
7218         ssecomi_load_amdfam10, ssecomi_amdfam10,
7219         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
7220         define_insn_reservation.
7221         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
7222
7223 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7224
7225         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
7226         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
7227         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
7228         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
7229         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
7230         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
7231         define_insn_reservation.
7232
7233         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
7234         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
7235         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
7236         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
7237         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
7238
7239 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7240
7241         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
7242         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
7243         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
7244         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
7245         athlon_ssemul_load_k8): Added amdfam10.
7246
7247 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7248
7249         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
7250         (x86_sse_unaligned_move_optimal): New variable.
7251
7252         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
7253         m_AMDFAM10.
7254         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
7255         for unaligned vector SSE double/single precision loads for AMDFAM10.
7256
7257 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7258
7259         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
7260         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
7261         Define TARGET_CPU_DEFAULT_amdfam10.
7262         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
7263         (processor_type): Add PROCESSOR_AMDFAM10.
7264
7265         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
7266         processor_type in config/i386/i386.h.
7267         Enable imul peepholes for TARGET_AMDFAM10.
7268
7269         * config.gcc: Add support for --with-cpu option for amdfam10.
7270
7271         * config/i386/i386.c (amdfam10_cost): New variable.
7272         (m_AMDFAM10): New macro.
7273         (m_ATHLON_K8_AMDFAM10): New macro.
7274         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
7275         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
7276         x86_promote_QImode, x86_integer_DFmode_moves,
7277         x86_partial_reg_dependency, x86_memory_mismatch_stall,
7278         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7279         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
7280         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
7281         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
7282         Enable/disable for amdfam10.
7283         (override_options): Add amdfam10_cost to processor_target_table.
7284         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
7285         processor_alias_table.
7286         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
7287         (ix86_adjust_cost): Add code for amdfam10.
7288
7289 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
7290
7291         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
7292         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
7293         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
7294         * config/i386/i386.h: Add builtin definition for SSE4A.
7295         * config/i386/i386.md: Add support for ABM instructions
7296         (popcnt and lzcnt).
7297         * config/i386/sse.md: Add support for SSE4A instructions
7298         (movntss, movntsd, extrq, insertq).
7299         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
7300         Add -march=amdfam10 flag.
7301         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
7302         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
7303         and amdfam10.
7304         * doc/extend.texi: Add documentation for SSE4A builtins.
7305
7306 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
7307
7308         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
7309
7310 2007-02-05  Richard Guenther  <rguenther@suse.de>
7311
7312         * tree-vectorizer.h (vectorizable_function): Add argument type
7313         argument, change return type.
7314         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
7315         * tree-vect-transform.c (vectorizable_function): Handle extra
7316         argument, return vectorized function decl.
7317         (build_vectorized_function_call): Remove.
7318         (vectorizable_call): Handle calls with result and argument types
7319         differing.  Handle loop vectorization factor correctly.
7320         * targhooks.c (default_builtin_vectorized_function): Adjust for
7321         extra argument.
7322         * targhooks.h (default_builtin_vectorized_function): Likewise.
7323         * target.h (builtin_vectorized_function): Add argument type
7324         argument.
7325         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
7326         extra argument, allow vectorizing of lrintf.
7327         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
7328         documentation of target hook.
7329
7330 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
7331
7332         PR target/30665
7333         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
7334         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
7335         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
7336
7337 2007-02-05  Roger Sayle  <roger@eyesopen.com>
7338
7339         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
7340         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
7341         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
7342         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
7343         before canonicalizing sincos to cexpi.
7344         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
7345
7346 2007-02-05  Roger Sayle  <roger@eyesopen.com>
7347
7348         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
7349         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
7350         (alpha_init_builtins): Use alpha_add_builtins to process tables.
7351
7352 2007-02-05  Roger Sayle  <roger@eyesopen.com>
7353
7354         * mips-tfile.c (initialize_init_file): Correct endianness test.
7355
7356 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
7357
7358         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
7359         the 'y' constraint.
7360
7361 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
7362
7363         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
7364         saves in a PARALLEL before the register assignments.
7365
7366 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
7367
7368         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
7369         DWARF_FRAME_RETURN_COLUMN to be a general register.
7370         * dwarf2out.c (init_return_column_size): New function, split from...
7371         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
7372         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
7373         to be nongeneral registers.
7374         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
7375         integer registers.
7376         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
7377         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
7378
7379 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
7380
7381         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
7382
7383 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
7384
7385         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
7386         (remove_path): Use can_remove_branch_p and remove_branch instead
7387         of loop_delete_branch_edge.
7388         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
7389         (tree_transform_and_unroll_loop): Remove dead branches immediately.
7390         Update profile using scale_dominated_blocks_in_loop.
7391         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
7392         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
7393         (can_remove_branch_p, remove_branch): Declare.
7394         * tree-cfg.c (tree_can_remove_branch_p): New function.
7395         (tree_cfg_hooks): Add tree_can_remove_branch_p.
7396         * cfgrtl.c (rtl_can_remove_branch_p): New function.
7397         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
7398
7399 2007-02-05  Jan Hubicka  <jh@suse.cz>
7400
7401         PR middle-end/30696
7402         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
7403         nodes in cgraph, don't remove offline copy of the function.
7404
7405 2007-02-04  Jan Hubicka  <jh@suse.cz>
7406
7407         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
7408         vectors might cause maybe_lookup_element_for_expr to be called
7409         on non-sra-candidate.
7410
7411 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
7412
7413         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
7414         config/bfin/bfin.md, config/bfin/predicates.md: Follow
7415         spelling conventions.
7416
7417 2007-02-04  Richard Guenther  <rguenther@suse.de>
7418
7419         PR middle-end/30636
7420         * fold-const.c (try_move_mult_to_index): Make sure to not
7421         overflow one dimension of a multi-dimensional array access.
7422
7423 2007-02-04  Jan Hubicka  <jh@suse.cz>
7424
7425         * passes.c (init_optimization_passes): Reindent.
7426
7427 2007-02-04  Jan Hubicka  <jh@suse.cz>
7428             Eric Botcazou  <ebotcazou@adacore.com>
7429
7430         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
7431         (execute_fixup_cfg): Break out the abnormal goto code.
7432         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
7433         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
7434         (optimize_inline_calls): Call make_nonlocal_label_edges.
7435
7436 2007-02-04  Jan Hubicka  <jh@suse.cz>
7437
7438         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
7439         true when something was changed.
7440         (rename_ssa_copies): When something was changed, do
7441         TODO_remove_unused_locals.
7442         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
7443         add TODO_remove_unused_locals when instruction was removed.
7444
7445 2007-02-04  Jan Hubicka  <jh@suse.cz>
7446
7447         * ipa-inline.c (try_inline): Improve debug output; work on already
7448         inline edges too.
7449         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
7450         call try_inline for already inlined edges too when flattening;
7451         inline also functions that make callee growth but overall unit size
7452         reduce.
7453
7454 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
7455
7456         * config/m32c/bitops.md, config/m32c/jump.md,
7457         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
7458         config/m32r/m32r.h, config/m32r/m32r.md,
7459         config/m32r/predicates.md, config/m68hc11/larith.asm,
7460         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7461         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
7462         config/mips/mips-protos.h, config/mips/mips.c,
7463         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
7464         config/mn10300/mn10300.h, config/mn10300/predicates.md,
7465         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
7466         spelling conventions.
7467
7468         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
7469         Follow spelling conventions.
7470
7471 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
7472
7473         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
7474         warn about C++0x compatibility.
7475
7476 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
7477
7478         * config/h8300/h8300.c, config/h8300/h8300.h,
7479         config/h8300/h8300.md: Follow spelling conventions.
7480
7481 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
7482
7483         PR middle-end/30667
7484         * combine.c (try_combine): Do not substitute source operand
7485         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
7486
7487 2007-02-03  Jan Hubicka  <jh@suse.cz>
7488
7489         PR gcov-profile/30650
7490         * value-prof.c (stringop_block_profile): Fix handling of size counter;
7491         do not divide by zero for never executed counters.
7492         (tree_find_values_to_profile): Fix counters.
7493         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
7494
7495 2007-02-03  Ian Lance Taylor  <iant@google.com>
7496
7497         * lower-subreg.c (simple_move_operand): New static function,
7498         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
7499         operands.
7500         (simple_move): Call simple_move_operand.
7501         (find_decomposable_subregs): Add special handling of MEMs.
7502         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
7503         meaning of return value.  If we see a hard register, test whether
7504         it can store a word_mode value.  Change all callers.
7505
7506 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7507
7508         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
7509         ftrapv insns and expanders.
7510         (subdi3): Change define_expand operand 1 to arith11_operand, and
7511         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
7512         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
7513         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
7514         respectively.
7515
7516         PR middle-end/30174
7517         * varasm.c (notice_global_symbol): Treat global objects as weak when
7518         flag_shlib is true.
7519
7520 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7521
7522         * emit-rtl.c (dconstpi): Delete.
7523         (dconstsqrt2): New.
7524         (init_emit_once): Delete dconstpi and init dconstsqrt2.
7525         * real.h (dconstpi): Delete.
7526         (dconstsqrt2): New.
7527         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
7528         (fold_builtin_hypot): Likewise.
7529
7530 2007-02-03  Tom Tromey  <tromey@redhat.com>
7531
7532         PR driver/30246
7533         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
7534         -gcoff3, -gxcoff3, -gvms3 implies -dD.
7535
7536 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
7537
7538         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
7539         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
7540         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
7541         config/rs6000/cell.md, config/rs6000/darwin.h,
7542         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
7543         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
7544         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
7545         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
7546         typos.  Follow spelling conventions.
7547         * doc/invoke.texi: Follow spelling conventions.
7548
7549 2007-02-03  Roger Sayle  <roger@eyesopen.com>
7550
7551         * simplify-rtx.c (simplify_relational_operation_1): Implement some
7552         canonicalization transformations that attempt to simplify integer
7553         constant comparisons to become comparisons against zero.
7554
7555 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7556
7557         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
7558         fabs(x)*sqrt(2).
7559         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
7560         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
7561
7562 2007-02-02  Mike Stump  <mrs@apple.com>
7563
7564         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
7565         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
7566         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
7567         generate a branch island.
7568
7569 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
7570
7571         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
7572         (xtensa_legitimate_address_p): New.
7573         (xtensa_legitimize_address): New.
7574         (xtensa_output_addr_const_extra): New.
7575         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
7576         (BASE_REG_P): New.
7577         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
7578         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
7579         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
7580         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
7581         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
7582         (xtensa_legitimize_address): New.
7583         (xtensa_output_addr_const_extra): New.
7584
7585 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
7586
7587         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
7588
7589 2007-02-02  Ian Lance Taylor  <iant@google.com>
7590
7591         * expmed.c (expand_divmod): Add comment.
7592
7593 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
7594
7595         * emit-rtl.c (renumber_insns): Remove.
7596         * flags.h: Remove the extern for flag_renumber_insns.
7597         * rtl.h: Remove the prototype for renumber_insns.
7598         * toplev.c (flag_renumber_insns): Remove.
7599
7600 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
7601
7602         Revert for x86 darwin:
7603         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
7604
7605         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
7606         code before the following patch under TARGET_MACHO.
7607         (ix86_function_value_regno_p): Likewise.
7608
7609 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7610
7611         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
7612         COMPLEX_EXPR.
7613
7614 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7615
7616         PR target/29682
7617         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
7618         general or fp registers.  Add comments.
7619         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
7620
7621 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
7622
7623         * pointer-set.c (insert_aux): Only return insertion slot.
7624         (pointer_set_insert): Adjust.
7625         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
7626         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
7627         pointer_map_traverse): New.
7628         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
7629         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
7630         pointer_map_contains, pointer_map_traverse): Declare.
7631
7632 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7633
7634         PR middle-end/30473
7635         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
7636         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
7637
7638 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7639
7640         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
7641
7642         (struct _dep): New type.
7643         (dep_t): New typedef.
7644         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
7645         (DEP_STATUS): New access macro.  The macro with the same name was
7646         renamed to DEP_LINK_STATUS.
7647         (dep_init): Declare function
7648
7649         (struct _dep_link): New type.
7650         (dep_link_t): New typedef.
7651         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
7652         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
7653         (DEP_LINK_STATUS): New macro.
7654         (debug_dep_links): New debug function.
7655
7656         (struct _deps_list): New type.
7657         (deps_list_t): New typedef.
7658         (DEPS_LIST_FIRST): New access macro.
7659         (FOR_EACH_DEP_LINK): New cycle macro.
7660         (create_deps_list, free_deps_list, delete_deps_list): Declare
7661         functions.
7662         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
7663         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
7664         (copy_deps_list_change_con): Ditto.
7665
7666         (move_dep_link): Declare function.
7667
7668         (struct _dep_node): New type.
7669         (dep_node_t): New typedef.
7670         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
7671
7672         (struct haifa_insn_data.back_deps): New field to hold backward
7673         dependencies of the insn.
7674         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
7675         to deps_list_t.
7676         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
7677         Change its type to deps_list_t.
7678         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
7679         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
7680         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
7681
7682         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
7683
7684         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
7685
7686         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
7687         all callers.
7688         (dep_cost): Declare.
7689
7690         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
7691         (ds_to_dk, dk_to_ds): New functions.
7692
7693         (init_dep_1): New static function.
7694         (init_dep): New function.
7695         (copy_dep): New static function.
7696
7697         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
7698         functions.
7699         (detach_dep_link): New static function.
7700         (move_dep_link): New function.
7701
7702         (dep_links_consistent_p, dump_dep_links): New static functions.
7703         (debug_dep_links): New debugging function.
7704
7705         (deps_obstack, dl_obstack, dn_obstack): New static variables.
7706
7707         (alloc_deps_list, init_deps_list): New static functions.
7708         (create_deps_list): New function.
7709         (clear_deps_list): New static function.
7710         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
7711         (deps_list_consistent_p, dump_deps_list): New static functions.
7712         (debug_deps_list): New function.
7713         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
7714         functions.
7715         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
7716
7717         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
7718         use new scheduler dependencies lists.
7719         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
7720         (sched_analyze): Ditto.  Initialize dependencies lists.
7721         (add_forw_dep, compute_forward_dependences): Update to use new
7722         scheduler dependencies lists.
7723
7724         (init_dependency_caches): Init deps_obstack.
7725         (free_dependency_caches): Free deps_obstack.
7726
7727         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
7728         new scheduler dependencies lists.
7729         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
7730         (add_back_forw_dep, delete_back_forw_dep): Ditto.
7731
7732         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
7733         Update to use new scheduler dependencies lists.
7734         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
7735         (debug_dependencies): Ditto.
7736         (schedule_region): Update comments.
7737
7738         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
7739         scheduler dependencies lists.
7740         (schedule_ebb): Update comments.
7741
7742         * rtl.def (DEPS_LIST): Remove.
7743
7744         * lists.c (unused_deps_list): Remove.
7745         (free_list): Update assertions.
7746
7747         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
7748         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
7749
7750         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
7751         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
7752
7753         * haifa-sched.c (comments): Update.
7754         (insn_cost1): Remove.  Inline the code into insn_cost ().
7755         (insn_cost): Update to use new scheduler dependencies lists.  Move
7756         processing of the dependency cost to dep_cost ().
7757         (dep_cost): New function.  Use it instead of insn_cost () when
7758         evaluating cost of the dependency.  Use compatible interface to
7759         interact with the target.
7760         (priority): Update to use new scheduler dependencies lists.
7761         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
7762         with greater number of insns that depend on the insn.
7763         (schedule_insn): Update to use new scheduler dependencies lists.  Add
7764         code to free backward dependencies lists.  Inline and optimize code
7765         from resolve_dep () - see PR28071.
7766         (ok_for_early_queue_removal): Update to use new scheduler dependencies
7767         lists.  Update call to targetm.sched.is_costly_dependence hook.
7768
7769         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
7770         scheduler dependencies lists.
7771
7772         (resolve_dep): Remove.  Move the logic to schedule_insn ().
7773         (init_h_i_d): Initialize dependencies lists.
7774
7775         (process_insn_depend_be_in_spec): Rename to
7776         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
7777         dependencies lists.
7778         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
7779         Update to use new scheduler dependencies lists.
7780         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
7781
7782         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
7783         new scheduler dependencies lists.
7784         (build_intra_loop_deps): Ditto.
7785
7786         * target.h (struct _dep): Declare to use in
7787         gcc_target.sched.is_costly_dependence.
7788         (struct gcc_target.sched.adjust_cost): Fix typo.
7789         (struct gcc_target.sched.is_costly_dependence): Change signature to use
7790         single dep_t parameter instead of an equivalent triad.
7791         (struct gcc_target.sched.adjust_cost_2): Remove.
7792
7793         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
7794
7795         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
7796
7797         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
7798         documentation.
7799         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
7800
7801         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
7802         (REG_DEP_TRUE): Document.
7803
7804         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
7805         Change signature to correspond to the targetm.sched.adjust_cost hook.
7806         Update use in TARGET_SCHED_ADJUST_COST_2.
7807         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
7808         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
7809         new scheduler dependencies lists.
7810         (ia64_gen_check): Ditto.
7811
7812         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
7813         dependencies lists.
7814
7815         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
7816         signature to correspond to the targetm.sched.is_costly_dependence hook.
7817         (is_costly_group): Update to use new scheduler dependencies lists.
7818
7819         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
7820         instead of INSN_COST () macro.
7821
7822 2007-02-01  Ian Lance Taylor  <iant@google.com>
7823
7824         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
7825
7826 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
7827
7828         * pa.md (tp_load): Correct mfctl instruction syntax.
7829
7830 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
7831
7832         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
7833         altivec_padding_size calculation on AIX.  Improve comment, add
7834         assert to verify that it's right.
7835
7836         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
7837         64-bit.
7838
7839 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
7840
7841         PR inline-asm/28686
7842         * global.c (global_alloc): Add mising initialization of
7843         ELIMINABLE_REGSET.
7844
7845 2007-02-01  Roger Sayle  <roger@eyesopen.com>
7846
7847         * alias.c (init_alias_analysis): Correct whitespace.
7848         * bb-reorder.c (fix_edges_for_rarely_executed_code,
7849         partition_hot_cold_basic_blocks): Likewise.
7850         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
7851         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
7852         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
7853         fold_builtin_snprintf_chk, fold_builtin_printf,
7854         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
7855         do_mpfr_arg3, do_mpfr_sincos): Likewise.
7856         * cfgcleanup.c (cleanup_cfg): Likewise.
7857         * cfgexpand.c (tree_expand_cfg): Likewise.
7858         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
7859         * function.c (get_next_funcdef_no): Likewise.
7860         * gengtype.c (main): Likewise.
7861         * genmodes.c (main): Likewise.
7862         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
7863         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
7864         * ifcvt.c (noce_emit_move_insn): Likewise.
7865         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
7866         Likewise.
7867         * stor-layout.c (get_best_mode): Likewise.
7868         * tree-ssa-loop-niter.c (get_val_for): Likewise.
7869         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
7870         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
7871         perform_var_substitution, solve_graph): Likewise.
7872         * tree-vrp.c (vrp_finalize): Likewise.
7873
7874 2007-02-01  Ian Lance Taylor  <iant@google.com>
7875
7876         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
7877         high part of a paradoxical subreg, return a constant zero.
7878
7879 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
7880
7881         * toplev.c (lang_dependent_init): Call init_set_costs.
7882         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
7883
7884 2007-02-01  Richard Guenther  <rguenther@suse.de>
7885
7886         PR middle-end/30656
7887         * fold-const.c (fold_negate_expr): Allow negating a
7888         constant if overflow does not change.
7889
7890 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7891
7892         * doc/c-tree.texi (Expression trees): Improve markup.
7893         * doc/tm.texi (Register Classes, Addressing Modes)
7894         (Floating Point): Fix spacing after abbreviations.  Fix some
7895         typos.
7896
7897 2007-02-01  Ben Elliston  <bje@au.ibm.com>
7898
7899         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
7900         * doc/contrib.texi: Likewise.
7901         * doc/install.texi: Likewise.
7902
7903 2007-01-31  Richard Henderson  <rth@redhat.com>
7904             Ian Lance Taylor  <iant@google.com>
7905
7906         * lower-subreg.c: New file.
7907         * rtl.def (CONCATN): Define.
7908         * passes.c (init_optimization_passes): Add pass_lower_subreg and
7909         pass_lower_subreg2.
7910         * emit-rtl.c (update_reg_offset): New static function, broken out
7911         of gen_rtx_REG_offset.
7912         (gen_rtx_REG_offset): Call update_reg_offset.
7913         (gen_reg_rtx_offset): New function.
7914         * regclass.c: Revert patch of 2006-03-05, restoring
7915         reg_scan_update.
7916         (clear_reg_info_regno): New function.
7917         * dwarf2out.c (concatn_loc_descriptor): New static function.
7918         (loc_descriptor): Handle CONCATN.
7919         * common.opt (fsplit_wide_types): New option.
7920         * opts.c (decode_options): Set flag_split_wide_types when
7921         optimizing.
7922         * timevar.def (TV_LOWER_SUBREG): Define.
7923         * rtl.h (gen_reg_rtx_offset): Declare.
7924         (reg_scan_update): Declare.
7925         * regs.h (clear_reg_info_regno): Declare.
7926         * tree-pass.h (pass_lower_subreg): Declare.
7927         (pass_lower_subreg2): Declare.
7928         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
7929         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
7930         -fsplit-wide-types.
7931         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
7932         * Makefile.in (OBJS-common): Add lower-subreg.o.
7933         (lower-subreg.o): New target.
7934
7935 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
7936
7937         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
7938
7939 2007-01-31  Anatoly Sokolov <aesok@post.ru>
7940
7941         PR target/19087
7942         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
7943
7944 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7945
7946         PR middle-end/29335
7947         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
7948
7949 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
7950
7951         * cfgloop.h: Include vec-prim.h.
7952         (enum li_flags): Remove LI_ONLY_OLD.
7953         (loop_iterator): Changed.
7954         (fel_next, fel_init): Iterate over loop tree.
7955         (FOR_EACH_LOOP_BREAK): New macro.
7956         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
7957         FOR_EACH_LOOP.
7958         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
7959         * modulo-sched.c (sms_schedule): Ditto.
7960         * tree-vectorizer.c (vectorize_loops): Ditto.
7961         * doc/loop.texi: Update information on loop numbering and behavior of
7962         FOR_EACH_LOOP wrto new loops.
7963         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
7964         add_to_evolution_1): Test nestedness of loops instead of comparing
7965         their numbers.
7966         * tree-chrec.c (chrec_fold_plus_poly_poly,
7967         chrec_fold_multiply_poly_poly, chrec_evaluate,
7968         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
7969         reset_evolution_in_loop): Ditto.
7970         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
7971
7972 2007-01-31  Dirk Mueller  <dmueller@suse.de>
7973
7974         * c-common.c (warn_about_parentheses): Separate warning about
7975         un-parenthized sequence of comparison operators from the one
7976         which is supposed to warn about x <= y <= z.
7977
7978 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
7979
7980         * optabs.h (enum optab_index): Add new OTI_isinf.
7981         (isinf_optab): Define corresponding macro.
7982         * optabs.c (init_optabs): Initialize isinf_optab.
7983         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
7984         patterns.
7985         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
7986         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
7987         using isinf_optab.
7988         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
7989         expand_builtin_interclass_mathfn.
7990         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
7991         * config/i386/i386.md (UNSPEC_FXAM): New constant.
7992         (fxam<mode>2_i387): New insn pattern.
7993         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
7994         built-in functions as x87 inline asm.
7995
7996 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
7997
7998         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
7999
8000 2007-01-30  Eric Christopher  <echristo@apple.com>
8001
8002         * config.gcc: Add geode.
8003
8004 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
8005
8006         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
8007         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
8008         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
8009         value-prof.c: Fix comment typos.
8010
8011 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8012
8013         PR c++/24745
8014         * doc/invoke.texi (Wpointer-arith): Document warning.
8015
8016 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
8017
8018         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
8019         the list of discrepancies from the draft TR.
8020
8021 2007-01-30  Dirk Mueller  <dmueller@suse.de>
8022
8023         PR c++/30601
8024         * doc/invoke.texi (-Wreturn-type): Update description to
8025         match new behavior.
8026
8027 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
8028
8029         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
8030
8031 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
8032
8033         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
8034         to handle optabs that operate on floating point input argument and
8035         output to integer output.
8036         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
8037         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
8038         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
8039         expand_builtin_interclass_mathfn ().
8040         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
8041         (ilogbsi2): Remove.
8042         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
8043         ilogbl built-in functions as x87 intrinsics.
8044
8045 2007-01-30  Richard Guenther  <rguenther@suse.de>
8046
8047         PR middle-end/27657
8048         * dwarf2out.c (reference_to_unused): Query varpool if the
8049         variable was output.
8050
8051 2007-01-30  Richard Guenther  <rguenther@suse.de>
8052
8053         PR middle-end/30313
8054         * passes.c (execute_one_pass): Reset in_gimple_form to not
8055         confuse non-unit-at-a-time mode.
8056
8057 2007-01-29  Roger Sayle  <roger@eyesopen.com>
8058             Richard Guenther  <rguenther@suse.de>
8059
8060         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
8061         avoid undefined behaviour on overflow.  Use force_fit_type_double
8062         to construct the constant with the specified TREE_OVERFLOW.
8063
8064 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
8065
8066         * config/dfp-bit.c: Add parameterized support for fp exceptions.
8067         * config/dfp-bit.h: Ditto.
8068
8069 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8070
8071         * c-decl.c (pop_scope): Replace warnings with call to
8072         warn_for_unused_label.
8073         * c-common.h (warn_for_unused_label): Declare.
8074         * c-common.c (warn_for_unused_label): Define.
8075
8076 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8077
8078         * tree-optimize.c (update_inlined_to_pointers): Delete unused
8079         function.
8080
8081 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
8082
8083         * Makefile.in (USER_H): Remove decfloat.h.
8084         * ginclude/decfloat.h: Delete, moving contents to ...
8085         * ginclude/float.h: Add support for decimal floating point,
8086         guarded by __STDC_WANT_DEC_FP__.
8087
8088 2007-01-29  Mike Stump  <mrs@apple.com>
8089
8090         * doc/gccint.texi (Top): Rename Loop Representation to Loop
8091         Analysis and Representation to resolve case insensitive conflict.
8092         * doc/loop.texi (Loop Analysis and Representation): Likewise.
8093
8094 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
8095
8096         * tree.h (struct tree_memory_tag): Add aliases member.
8097         (MTAG_ALIASES): New macro.
8098         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
8099         (add_may_alias): Remove pointer-set. Update for may_aliases being
8100         a bitmap.
8101         (mark_aliases_call_clobbered): Update for may_aliases being a
8102         bitmap.
8103         (compute_tag_properties): Ditto.
8104         (create_partition_for): Ditto.
8105         (compute_memory_partitions): Ditto.
8106         (dump_may_aliases_for): Ditto.
8107         (is_aliased_with): Ditto.
8108         (add_may_alias_for_new_tag): Ditto.
8109         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
8110         (compute_is_aliased): New function.
8111         (compute_may_aliases): Call compute_is_aliased).
8112         (init_alias_info): Initialize alias_bitmap_obstack.
8113         (union_alias_set_into): New function.
8114         (compute_flow_sensitive_aliasing): Use union_aliases_into.
8115         (have_common_aliases_p): Rewrite to take two bitmaps and use
8116         intersection.
8117         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
8118         Update for bitmaps.
8119         (finalize_ref_all_pointers): Update for add_may_alias changes.
8120         (new_type_alias): Ditto.
8121         * tree-flow-inline.h (may_aliases): Return a bitmap.
8122         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
8123         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
8124         may_aliases being a bitmap.
8125         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
8126         may_aliases now returns a bitmap.
8127         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
8128         being a bitmap.
8129         * tree-ssa-operands.c (add_virtual_operand): Update for
8130         may_aliases being a bitmap.
8131
8132 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
8133
8134         PR tree-optimization/30630
8135         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
8136         variable as changed.
8137
8138 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
8139
8140         PR c++/28266
8141         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
8142         expanded only once even if an error occurs.
8143
8144 2007-01-29  Ben Elliston  <bje@au.ibm.com>
8145
8146         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
8147         (__gcov_average_profiler): Likewise.
8148         (__gcov_ior_profiler): Likewise.
8149         (__gcov_merge_ior): Likewise.
8150
8151 2007-01-28  Jan Hubicka  <jh@suse.cz>
8152
8153         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
8154         * value-prof.c (stringop_block_profile): Likewise.
8155
8156 2007-01-28  Jan Hubicka  <jh@suse.cz>
8157
8158         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
8159         variant handling histograms; add wrapper.
8160         (clear_storage_via_libcall): Export.
8161         (emit_block_move_hints): Break out from ...; add histograms.
8162         (emit_block_move): ... this one.
8163         (clear_storage_hints): Break out from ...; add histograms.
8164         (clear_storage): ... this one.
8165         (set_storage_via_memset): Handle histogram.
8166         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
8167         (clear_storage_hints, clear_storage_via_libcall): Declare.
8168         (set_storage_via_setmem): Update prototype.
8169         * doc/md.texi (movmem, setmem): Document new arguments.
8170
8171         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
8172         new histograms.
8173         (stringop_block_profile): New global function.
8174         (tree_stringops_values_to_profile): Profile block size and alignment.
8175         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
8176         HIST_TYPE_IOR.
8177         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
8178         (stringop_block_profile): Declare.
8179         * builtins.c: Include value-prof.h.
8180         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
8181         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
8182         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
8183         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
8184         * profile.c (instrument_values): Add new counters.
8185         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
8186         calls.
8187         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
8188         (tree_init_edge_profiler): Build new profilers.
8189         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
8190         (pass_tree_profile): Add dump.
8191         (tree_profile_hooks): Update.
8192         * Makefile.in (LIBGCOV): Add new constants.
8193         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
8194         __gcov_ior_profiler): New.
8195         * i386.md (movmem/setmem expanders): Add new optional arguments.
8196
8197 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
8198
8199         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
8200
8201 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
8202
8203         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
8204         (tree_unswitch_single_loop): Pass eni_size_weights to
8205         tree_num_loop_insns.
8206         * tree-ssa-loop-manip.c: Include tree-inline.h.
8207         (can_unroll_loop_p): Pass eni_size_weights to
8208         tree_num_loop_insns.
8209         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
8210         Pass eni_size_weights to estimate_num_insns.
8211         * tree.h (init_inline_once): Export.
8212         * toplev.c (backend_init): Call init_inline_once.
8213         * cgraphunit.c (cgraph_process_new_functions,
8214         cgraph_analyze_function): Pass eni_inlining_weights to
8215         estimate_num_insns.
8216         * ipa-inline.c (compute_inline_parameters): Ditto.
8217         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
8218         to estimate_num_insns.
8219         (try_unroll_loop_completely): Pass eni_size_weights to
8220         tree_num_loop_insns.
8221         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
8222         ot estimate_num_insns.
8223         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
8224         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
8225         * tree-inline.c (eni_inlining_weights, eni_size_weights,
8226         eni_time_weights): New variables.
8227         (init_inline_once): Initialize them.
8228         (struct eni_data): Mew.
8229         (estimate_num_insns_1, estimate_num_insns): Use weights.
8230         * tree-inline.h (struct eni_weights_d): New.
8231         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
8232         (estimate_num_insns): Declaration changed.
8233         * cfgloop.h (tree_num_loop_insns): Declaration changed.
8234         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
8235         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
8236
8237 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
8238
8239         * tree-data-ref.c (conflict_fn): Assert that the number of affine
8240         relations in the conflict function is valid.
8241
8242 2007-01-27  Ian Lance Taylor  <iant@google.com>
8243
8244         * common.opt: Add fstrict-overflow.
8245         * opts.c (decode_options): Set flag_strict_overflow if -O2.
8246         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
8247         (TYPE_OVERFLOW_UNDEFINED): Define.
8248         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
8249         Replace all uses.
8250         * tree.h (TYPE_TRAP_SIGNED): Don't define.
8251         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
8252         (fold_negate_expr): Likewise.
8253         (make_range): Likewise.
8254         (extract_muldiv_1): Likewise.
8255         (maybe_canonicalize_comparison): Likewise.
8256         (fold_comparison): Likewise.
8257         (fold_binary): Likewise.
8258         (tree_expr_nonnegative_p): Likewise.
8259         (tree_expr_nonzero_p): Likewise.
8260         * tree-vrp.c (compare_values): Likewise.
8261         (extract_range_from_binary_expr): Likewise.
8262         (extract_range_from_unary_expr): Likewise.
8263         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
8264         Likewise.
8265         (nowrap_type_p): Likewise.
8266         * tree-scalar-evolution.c (simple_iv): Likewise.
8267         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
8268         (build_range_check): Likewise.
8269         (extract_muldiv_1): Likewise.
8270         (fold_comparison): Likewise.
8271         * tree-vrp.c (vrp_int_const_binop): Likewise.
8272         (extract_range_from_unary_expr): Likewise.
8273         * convert.c (convert_to_integer): Likewise.
8274         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
8275         (fold_comparison): Likewise.
8276         (fold_binary): Likewise.
8277         * optabs.c (optab_for_tree_code): Likewise.
8278         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
8279         * simplify-rtx.c (simplify_const_relational_operation): Check
8280         flag_strict_overflow and flag_trapv.
8281         (simplify_const_relational_operation): Likewise.
8282         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
8283         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
8284         -fstrict-overflow.
8285
8286 2007-01-27  Roger Sayle  <roger@eyesopen.com>
8287
8288         * tree.c (tree_fold_gcd): Delete.
8289         * tree.h (tree_fold_gcd): Remove prototype.
8290         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
8291         test whether one constant integer is a multiple of another.  Instead
8292         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
8293         * fold-const.c (multiple_of_p):  We've determined both TOP and
8294         BOTTOM are integer constants so we can call int_const_binop directly
8295         instead of the more generic const_binop.
8296
8297 2007-01-27  Roger Sayle  <roger@eyesopen.com>
8298
8299         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
8300         1*X check that the constant hasn't overflowed, to preserve the
8301         TREE_OVERFLOW bit.
8302         (round_up): Provide an efficient implementation when rouding-up an
8303         INTEGER_CST to a power-of-two.
8304
8305 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8306
8307         * doc/sourcebuild.texi: Add comma for clarity.
8308         * doc/extend.texi: Fix some typos.
8309         * doc/passes.texi: Likewise.
8310         * doc/cppinternals.texi: Likewise.
8311         * doc/c-tree.texi: Likewise.
8312         * doc/tree-ssa.texi: Likewise.
8313         * doc/install.texi: Likewise.
8314
8315 2007-01-27  Jan Hubicka  <jh@suse.cz>
8316
8317         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
8318         (pass_sra): Do not require alias information.
8319         * passes.c (init_optimization_passes): Add SRA
8320
8321 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
8322
8323         * tracer.c (rest_of_handle_tracer): We already cleaned
8324         up the CFG in tracer() so don't do it here again.
8325         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
8326         cleanup_cfg here, either.  And don't call renumber_insns.
8327
8328         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
8329         and BB_HEAD are in the insn stream here.  Instead make sure
8330         that BB_INSN is valid on all insns.  Also, do check here that
8331         there are no pending branch predictions...
8332         (rtl_verify_flow_info): ...instead of doing it here.  Checks
8333         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
8334         here.
8335
8336 2007-01-26  Roger Sayle  <roger@eyesopen.com>
8337
8338         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
8339         function to simplify/factorize operand order canonicalization.
8340         (ix86_fixup_binary_operands): Reorganize using the above function.
8341         (ix86_binary_operator_ok): Likewise.
8342
8343 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
8344
8345         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
8346         file scope from optimize_attrs.
8347         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
8348         up search.
8349         (optimize_attrs): Clear insn_code_values after freeing it.
8350
8351 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
8352
8353         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
8354         a parts.base assignment.
8355
8356 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
8357
8358         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
8359         (compute_subscript_distance, initialize_data_dependence_relation,
8360         finalize_ddr_dependent, analyze_ziv_subscript,
8361         analyze_siv_subscript_cst_affine,
8362         compute_overlap_steps_for_affine_univar,
8363         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8364         analyze_siv_subscript, analyze_miv_subscript,
8365         analyze_overlapping_iterations, subscript_dependence_tester_1,
8366         compute_self_dependence, free_dependence_relation): Work
8367         with affine_fn instead of chrecs.
8368         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
8369         common_affine_function, affine_function_base,
8370         affine_function_constant_p, affine_fn_op, affine_fn_plus,
8371         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
8372         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
8373         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
8374         (all_chrecs_equal_p): Removed.
8375         * tree-data-ref.h (affine_fn, conflict_function): New types.
8376         (struct subscript): Change type of conflicting_iterations_in_a
8377         and conflicting_iterations_in_b.
8378
8379 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
8380
8381         PR other/30182
8382         * config/pa/pa.h (TARGET_HPUX_11): New.
8383         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
8384         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
8385
8386 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
8387         Richard Guenther  <rguenther@suse.de>
8388
8389         * tree-ssa-structalias.c (solve_graph): Handle case
8390         we merged the variable to another.
8391
8392 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8393
8394         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
8395         functions.
8396
8397         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
8398         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
8399
8400 2007-01-25  DJ Delorie  <dj@redhat.com>
8401
8402         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
8403         allow changes to modes which don't fit in those registers.
8404
8405         * reload1.c (choose_reload_regs): Check for invalid subregs before
8406         computing their locations, not after.
8407
8408 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
8409
8410         PR 25127
8411         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
8412         save Altivec registers in an eh_return function.
8413         (compute_vrsave_mask): Likewise.
8414         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
8415         for saving Altivec registers.
8416         (rs6000_emit_prologue): Don't allocate stack twice in
8417         eh_return function.  Correct expected value of altivec_save_offset
8418         when using save_world.  Describe save of R0 to stack when using
8419         save_world.  Describe stack pointer adjustment when using
8420         save_world.  Remove duplicated eh_return parameter register saving.
8421         Update sp_offset variable after save_world.
8422         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
8423         darwin-world.asm.
8424         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
8425         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
8426         implies Altivec.
8427
8428 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
8429
8430         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
8431
8432 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
8433
8434         PR other/30182
8435         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
8436         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
8437
8438 2007-01-25  Richard Guenther  <rguenther@suse.de>
8439
8440         * doc/invoke.texi (-Wcoverage-mismatch): Document.
8441         * common.opt (-Wcoverage-mismatch): New warning option.
8442         * coverage.c (get_coverage_counts): Ignore coverage mismatch
8443         if -Wcoverage-mismatch is given.
8444
8445 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
8446
8447         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
8448         (ipcp_driver): Change to static definition.
8449         Add dumping of the ifunctions.
8450         (constant_val_insert): Remove unused parameter. Support for SSA.
8451         (ipcp_propagate_const): Support for SSA.
8452         (ipcp_profile_bb_print): Print only analyzed nodes.
8453         (ipcp_replace_map_create): Remove support for Fortran constant
8454         for now.
8455         * ipa-prop.c (ipa_method_modify_stmt,
8456         ipa_callsite_compute_param): Support for SSA.
8457         * ipa-prop.h (ipcp_driver): Remove declaration.
8458         (IS_VALID_TREE_MAP_INDEX): Add define.
8459
8460 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
8461
8462         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
8463
8464 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8465
8466         PR middle-end/30447
8467         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
8468         constant argument to cabs and do it without checking for
8469         -funsafe-math-optimizations.
8470
8471 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
8472
8473         * c-common.h (RID_FIRST_CXX0X): New.
8474         (RID_LAST_CXX0X): New.
8475         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
8476         by -Wall.
8477         * c.opt (Wc++0x-compat): New.
8478         * doc/invoke.texi (-Wc++0x-compat): Document.
8479
8480 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8481
8482         * builtins.c (fold_builtin_carg): New.
8483         (fold_builtin_1): Use it.
8484
8485 2007-01-24  Jan Hubicka  <jh@suse.cz>
8486
8487         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
8488
8489         * ipa-inline.c (initial_insns, max_insns): Delete.
8490         (compute_max_insns): New function.
8491         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
8492         of insns as base for code growth.
8493         (cgraph_decide_inlining): Make initial_insns local; do not compute
8494         max_insns.
8495         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
8496         * doc/invoke.texi (inline-unit-growth): Update docs.
8497
8498 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8499
8500         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
8501         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
8502         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
8503         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
8504         for CPUs that have PTA_CX16 set.
8505
8506         PR middle-end/27416
8507         * gimplify.c (omp_check_private): New function.
8508         (gimplify_scan_omp_clauses): Use it for
8509         firstprivate/lastprivate/reduction.
8510
8511         PR middle-end/30494
8512         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
8513         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
8514
8515         PR middle-end/30421
8516         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
8517         If lower_lastprivate_clauses emits some statements, append them
8518         to dlist rather than body_p and to body_p append an initializer.
8519         (lower_omp_for): Adjust caller.
8520
8521 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
8522
8523         * target.h (globalize_decl_name): New.
8524         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
8525         * output.h (default_globalize_decl_name): New.
8526         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
8527         globalize_label.
8528         (globalize_decl): Ditto.
8529         (default_globalize_decl_name): New.
8530         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
8531         (ia64_handle_version_id_attribute): New.
8532         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
8533         (ia64_asm_output_external): Use globalize_decl_name instead
8534         of globalize_label.
8535         * doc/extend.texi (version_id): New pragma.
8536         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
8537
8538 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8539
8540         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
8541         _uleb128_t and _Unwind_SWord with _sleb128_t.
8542         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
8543         uw_frame_state_for, uw_update_context_1): Likewise.
8544         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
8545         * unwind-pe.h (read_uleb128, read_sleb128,
8546         read_encoded_value_with_base): Likewise.
8547         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
8548
8549 2007-01-24  Richard Guenther  <rguenther@suse.de>
8550
8551         * builtins.c (expand_builtin_cexpi): Get the fndecl
8552         for cexp in the correct way.
8553
8554 2007-01-24  Jan Hubicka  <jh@suse.cz>
8555
8556         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
8557
8558 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8559
8560         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
8561         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
8562         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
8563         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
8564         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
8565         __SIZEOF_PTRDIFF_T__.
8566         * doc/cpp.texi: Documentation for the new builtin macros added.
8567
8568 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
8569
8570         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
8571         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
8572         instead of operands[2] to avoid access past the end of array.
8573
8574 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
8575
8576         * reload1.c (emit_reload_insns): Pass the reload register
8577         for a non-spill output reload through forget_old_reloads_1.
8578
8579 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
8580
8581         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8582         _SOFT_DOUBLE if doubles use software floating-point.
8583         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
8584         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
8585         * config/rs6000/darwin-ldouble.c: Also compile functions for
8586         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
8587         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
8588         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
8589         commented-out long double override.
8590         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
8591         * config/rs6000/eabispe.h: Likewise.
8592         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
8593         long double for non-SPE.
8594         (rs6000_handle_option): Likewise.
8595         (invalid_e500_subreg): Disallow more subregs involding DImode,
8596         DFmode, TImode or TFmode.
8597         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
8598         E500 double.
8599         (legitimate_lo_sum_address_p): Also check for TFmode for E500
8600         double.
8601         (rs6000_legitimize_address): Also handle TFmode for E500 double.
8602         (rs6000_legitimize_reload_address): Also handle TFmode for E500
8603         double.
8604         (rs6000_legitimate_address): Also check for TFmode for E500
8605         double.
8606         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
8607         (spe_build_register_parallel): Handle TFmode and TCmode.
8608         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
8609         double.
8610         (function_arg): Handle TFmode and TCmode for E500 double.
8611         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
8612         in general.
8613         (print_operand): Handle TFmode and TImode for %y.
8614         (rs6000_generate_compare): Handle TFmode comparisons for E500
8615         double.
8616         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
8617         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
8618         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
8619         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
8620         TFmode for E500 double.
8621         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
8622         (floatsidf2): Enable for E500 double.
8623         (movtf_softfloat): Use rs6000_nonimmediate_operand.
8624         (extenddftf2): Change to extenddftf2_fprs.
8625         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
8626         depending on TARGET_E500_DOUBLE.
8627         (extendsftf2): Enable for E500 double.
8628         (trunctfdf2): Enable for E500 double.
8629         (trunctfsf2): Change to trunctfsf2_fprs.
8630         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
8631         depending on TARGET_E500_DOUBLE.
8632         (floatsitf2): Enable for E500 double.
8633         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
8634         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
8635         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
8636         (negtf2): Change to negtf2_internal.
8637         (negtf2): New expander.
8638         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
8639         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
8640         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
8641         (movdi_internal32): Use rs6000_nonimmediate_operand.
8642         (unnamed splitter): Likewise.
8643         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
8644         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
8645         (SPE64TF, DITI): New mode macros.
8646         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
8647         modes.
8648         (frob_tf_ti): New.
8649         (frob_<mode>_di_2): New.
8650         (frob_tf_di_8_2): New.
8651         (frob_di_df): Change to frob_di_<mode>; allow more modes.
8652         (frob_ti_tf): New.
8653         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
8654         more modes.
8655         (frob_ti_<mode>_8_2): New.
8656         (frob_ti_tf_2): New.
8657         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
8658         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
8659         TFmode.
8660         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
8661         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
8662         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
8663         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
8664         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
8665         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
8666         tsttflt_gp): New.
8667
8668 2007-01-23  Ian Lance Taylor  <iant@google.com>
8669
8670         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
8671         insn-*.o first.
8672         (OBJS-archive): Reformat, alphabetize.
8673         (OBJS): Change out_object_file to OBJS-md.
8674
8675 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
8676
8677         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
8678         JUMP_P and CALL_P predicates where applicable.
8679         * config/i386/i386.c: Ditto.
8680         * config/i386/i386.md: Ditto.
8681         * config/i386/mmx.md: Ditto.
8682         * config/i386/predicates.md: Ditto.
8683
8684 2007-01-22  Andreas Schwab  <schwab@suse.de>
8685
8686         * config/m68k/m68k.h: Fix comment.
8687
8688 2007-01-22  Jan Hubicka  <jh@suse.cz>
8689
8690         * passes.c (init_optimization_passes): Do not rerun
8691         pass_early_warn_uninitialized.
8692
8693 2007-01-22  Richard Guenther  <rguenther@suse.de>
8694
8695         PR tree-optimization/30038
8696         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
8697         function.
8698         (execute_cse_sincos_1): Likewise.
8699         (execute_cse_sincos): Likewise.
8700         (gate_cse_sincos): Likewise.
8701         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
8702         the cexpi() canonicalization of sincos().
8703         * tree-pass.h (pass_cse_sincos): Declare.
8704         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
8705
8706 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
8707
8708         PR rtl-optimization/29329
8709         * combine.c (replaced_rhs_insn): Rename to i2mod.
8710         (replaced_rhs_value): Rename to i2mod_new_rhs.
8711         (i2mod_old_rhs): New global variable.
8712         (combine_instructions): Adjust for above change.  Save a copy of
8713         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
8714         note are substituted in the second instruction.
8715         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
8716         ditch the note if it pertains to the second eliminated register
8717         and this register is mentioned in i2mod_old_rhs.
8718
8719         Revert:
8720         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8721
8722         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
8723         the insn to which the note was originally attached.
8724
8725 2007-01-21  Jan Hubicka  <jh@suse.cz>
8726
8727         * ipa-inline.c (inlining_mode): Comment, move up.
8728         (cgraph_decide_inlining_incrementally): Do not perform inlining
8729         itself; fix handling of flattening of self recursive functions.
8730         (cgraph_find_cycles): Remove.
8731         (cgraph_flatten_node): Remove.
8732         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
8733         (try_inline): New function.
8734         (cgraph_early_inlining): Update call of
8735         cgraph_decide_inlining_incrementally.  Apply inlining here.
8736         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
8737
8738 2007-01-21  Dirk Mueller  <dmueller@suse.de>
8739
8740         PR bootstrap/30511
8741         * tree-vrp.c (check_array_bounds): do not warn
8742         about ADDR_EXPR's of ARRAY_REF's which are immediately
8743         used in binary expressions.
8744
8745 2007-01-21  Ira Rosen  <irar@il.ibm.com>
8746
8747         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
8748         read_write_dep and macros for its access.
8749         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
8750         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
8751         argument, call vect_check_interleaving for every independent pair of
8752         data-refs. Mark loads that access the same memory location as a store
8753         in the loop.
8754         (vect_check_dependences): Remove.
8755         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
8756         call, fix the call to vect_analyze_data_ref_dependence.
8757         (vect_analyze_data_ref_access): For statements that access the same
8758         data-ref, check that they are not stores; for loads, check that there
8759         is no store that access the same location.
8760
8761 2007-01-20  Roger Sayle  <roger@eyesopen.com>
8762             Joseph Myers  <joseph@codesourcery.com>
8763
8764         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
8765         (-fdump-rtl-stack): Likewise.
8766         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
8767         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
8768         (-mpt-fixed): Use @minus{} for minus sign.
8769         (Using Precompiled Headers): Fix under/overfull hbox.
8770
8771 2007-01-20  Jan Hubicka  <jh@suse.cz>
8772
8773         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
8774         place within annotation.
8775
8776 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8777
8778         * pa.c (output_move_double): Change array size of xoperands to 4.
8779
8780 2007-01-20  Jan Hubicka  <jh@suse.cz>
8781
8782         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
8783         as temporary.
8784
8785 2007-01-19  Ian Lance Taylor  <iant@google.com>
8786
8787         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
8788         constant to unsigned HOST_WIDE_INT before negating.
8789
8790 2007-01-19  Ian Lance Taylor  <iant@google.com>
8791
8792         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
8793         to unsigned.
8794         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
8795         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
8796         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
8797         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
8798         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
8799         (realloc_vdef, realloc_vuse): Change second parameter to
8800         unsigned.
8801         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
8802         fields to unsigned.
8803         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
8804         unsigned. Change x and lim locals to unsigned.
8805         (realloc_vdef, realloc_vuse): Change num_elem parameter to
8806         unsigned.
8807         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
8808         (copy_virtual_operands): Change i and n locals to unsigned.
8809
8810 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8811
8812         PR middle-end/29335
8813         * builtins.c (fold_builtin_1): Handle builtin fdim.
8814
8815 2007-01-20  Jan Hubicka  <jh@suse.cz>
8816
8817         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
8818         * tree-ssa-structalias.c (compute_points_to_sets): Do call
8819         init_alias_heapvars.
8820         (init_alias_heapvars): Initialize only when not already initialized.
8821         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
8822
8823 2007-01-19  Roger Sayle  <roger@eyesopen.com>
8824
8825         * common.opt (fsigned-zeros): New command line option.
8826         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
8827         of flag_unsafe_math_optimizations.
8828         * opts.c (set_fast_math_flags): The -ffast-math command line option
8829         implies -fno-signed-zeros.
8830         (fast_math_flags_set_p): Likewise.
8831
8832         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
8833         the documentation of -ffast-math appropriately.  Wrap long lines.
8834
8835 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
8836
8837         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
8838         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
8839
8840 2007-01-19  Tomas Bily  <tbily@suse.cz>
8841
8842         * cgraphunit.c (cgraph_finalize_function): Updating of pid
8843         * tree-profile.c:
8844         (tree_init_ic_make_global_vars): New function
8845         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
8846         (tree_gen_ic_profiler): New function
8847         (tree_gen_ic_func_profiler): New function
8848         (tree_profiling): Added calling of tree_gen_ic_func_profiler
8849         (tree_profile_hooks): Added hook for indirec/virtual calls
8850         * value-prof.c (tree_find_values_to_profile): New case for
8851         indirect calls
8852         (tree_values_to_profile): Call for determining indirect/virtual
8853         counters
8854         (tree_indirect_call_to_profile): New function
8855         (tree_ic_transform): New function
8856         (tree_ic): New function
8857         (find_func_by_pid): New function
8858         (init_pid_map): New function
8859         (tree_value_profile_transformations): Added check for
8860         indirect/virtual call transformation
8861         * value-prof.h (enum hist_type): New counter type for
8862         indirect/virtual calls
8863         (profile_hooks): Added new hook for profiling indirect/virtual
8864         calls
8865         * profile.c (instrument_values): New case for indirect/virtual
8866         call added
8867         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
8868         (GCOV_COUNTER_V_INDIR): New counter type
8869         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
8870         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
8871         call added
8872         * cgraph.c: Definition of cgraph_max_pid
8873         (cgraph_create_node): Default init of pid attribute
8874         * cgraph.h: Declaration of cgraph_max_pid
8875         (struct cgraph_node): Added pid attribute
8876         * libgcov.c (__gcov_indirect_call_profiler): New function
8877         (__gcov_one_value_profiler_body): New function
8878         (__gcov_one_value_profiler): Body was moved to
8879         __gcov_one_value_profiler_body and calls it
8880
8881 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
8882
8883         * doc/gty.texi (Options): Document the mark_hook option to GTY.
8884         * gengtype.c (write_types_data, write_func_for_structure,
8885         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
8886         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
8887         (walk_type, write_func_for_structure): Generate the mark_hook if
8888         needed.
8889
8890 2007-01-19  Jan Hubicka  <jh@suse.cz>
8891
8892         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
8893         'early' argument take inlining mode argument specifying whether to
8894         inline for size/speeed or all functions; add support for flattening;
8895         improve dumpting.
8896         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
8897
8898 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8899
8900         PR c++/17947
8901         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
8902         the name of the declared identifier.
8903
8904 2007-01-19  Dirk Mueller  <dmueller@suse.de>
8905
8906         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
8907         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
8908         duplicate evaluation.
8909
8910 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
8911
8912         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
8913         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
8914         to XFMode, use acosxf2 and truncate result to requested mode.
8915         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
8916         (asin<mode>2): Similarly, with asin expanders.
8917         (*fscalexf4_i387): Rename from *fscalexf4.
8918         (expNcorexf3): New expander.
8919         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
8920         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
8921         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
8922         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
8923         patterns for SSE math.
8924         (exp10<mode>2): Similarly, with exp10 expanders.
8925         (exp2<mode>2): Similarly, with exp2 expanders.
8926         (expm1<mode>2): Similarly, with expm1 expanders.
8927         (ldexp<mode>3): Similarly, with ldexp expanders.
8928         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
8929         Use gen_truncxf<mode>2_i387_noop to truncate result.
8930
8931 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8932
8933         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
8934         for ColdFire targets.
8935
8936 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
8937             Richard Sandiford  <richard@codesourcery.com>
8938
8939         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
8940         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
8941         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
8942         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
8943         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
8944         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
8945
8946 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8947
8948         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
8949         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
8950         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
8951         (*adddi_dilshr32_cf): New pattern.
8952         (adddi3, subdi3): Remove first alternatives.
8953
8954 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8955
8956         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
8957         implemented using move.l, do not use its cc result for floating-point
8958         comparisons.
8959
8960 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8961
8962         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
8963         from accepting 's' constraints if flag_pic.
8964
8965 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8966
8967         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
8968         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
8969         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
8970         condition from TARGET_68881 to TARGET_HARD_FLOAT.
8971
8972 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
8973
8974         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
8975         ColdFire alternatives.
8976         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
8977         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
8978         architectures that support ff1 instruction.
8979
8980 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8981             Julian Brown  <julian@codesourcery.com>
8982
8983         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
8984         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
8985         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
8986         Add commentary.
8987
8988 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
8989
8990         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
8991         and return a bool.
8992         (output_move_const_into_data_reg, output_move_simode_const): Delete.
8993         * config/m68k/m68k.c (const_method, const_int_cost): Take a
8994         HOST_WIDE_INT instead of an rtx.
8995         (m68k_rtx_costs): Update call accordingly.
8996         (output_move_const_into_data_reg): Likewise.  Fix formatting.
8997         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
8998         Return a bool.
8999         (output_move_simode_const): Update calls after above changes.
9000         Rework to use automatic variables and predicates like MEM_P.
9001         * config/m68k/m68k.md (pushexthisi_const): Update call to
9002         valid_mov3q_const.
9003
9004 2007-01-19  Dirk Mueller  <dmueller@suse.de>
9005
9006         * tree-ssa-alias.c (perform_var_substitution): Fix typo
9007         in dump_flags test.
9008
9009 2007-01-19  Richard Guenther  <rguenther@suse.de>
9010
9011         * builtins.c (expand_builtin_cexpi): Fall back to expanding
9012         via cexp in case sincos is not available.
9013
9014 2007-01-19  Richard Guenther  <rguenther@suse.de>
9015
9016         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
9017         * defaults.h (TARGET_HAS_SINCOS): Default to off.
9018         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
9019         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
9020         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
9021         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
9022         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
9023         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
9024
9025 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
9026
9027         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
9028         New insn patterns.
9029         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
9030         (atan2xf3): Directly generate RTL pattern.
9031         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
9032         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
9033         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
9034         disable patterns for SSE math.
9035         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
9036         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
9037         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
9038         disable patterns for SSE math.
9039
9040 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
9041
9042         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
9043
9044 2007-01-18  Roger Sayle  <roger@eyesopen.com>
9045
9046         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
9047         VIEW_CONVERT_EXPR to the same type as it's operand.
9048
9049 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
9050
9051         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
9052         configured for long double 128.
9053
9054 2007-01-18  Mike Stump  <mrs@apple.com>
9055
9056         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
9057         error.
9058
9059 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
9060
9061         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
9062         type correct.
9063
9064 2007-01-18  Jan Hubicka  <jh@suse.cz>
9065
9066         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
9067         greater than NUM_VOP_FREE_BUCKETS.
9068
9069 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
9070
9071         * tree-ssa-structalias.c: Update comments.
9072         (ptabitmap_obstack): Removed.
9073         (pta_obstack): New.
9074         (oldpta_obstack): Ditto.
9075         (stats): Add a few members.
9076         (struct variable_info): Remove node, complex, address_taken, and
9077         indirect_target members. Add oldsolution member.
9078         (new_var_info): Do not initialize removed members.
9079         (constraint_expr_type): Remove INCLUDES.
9080         (constraint_graph): Add size, implicit_preds, rep,
9081         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
9082         (FIRST_REF_NODE): New macro.
9083         (LAST_REF_NODE): Ditto.
9084         (FIRST_ADDR_NODE): Ditto.
9085         (find): New function.
9086         (unite): Ditto.
9087         (dump_constraint): Do not handle INCLUDES.
9088         (insert_into_complex): Do not insert duplicate constraints.
9089         (condense_varmap_nodes): Renamed and rewritten into ...
9090         (merge_node_constraints): This. Also fix bug in handling of
9091         offseted copy constraints.
9092         (clear_edges_for_node): No longer need to deal with preds at all,
9093         or removing associated preds/succs.
9094         (merge_graph_nodes): Deal with indirect_cycles.
9095         Don't deal with predecessors.
9096         (add_implicit_graph_edge): New function.
9097         (add_pred_graph_edge): Ditto.
9098         (add_graph_edge): Don't deal with predecessors.
9099         (build_constraint_graph): Removed.
9100         (build_pred_graph): New function.
9101         (build_succ_graph): Ditto.
9102         (struct scc_info): Removed in_component. Added roots, dfs, and
9103         node_mapping. Remove visited_index, unification_queue.
9104         (scc_visit): Deal with union-find we do now.
9105         Deal with cycles with REF nodes.
9106         (collapse_nodes): Renamed and rewritten to ...
9107         (unify_nodes): This.
9108         (process_unification_queue): Removed.
9109         (topo_visit): Cleanup
9110         (do_da_constraint): Use find.
9111         (do_sd_constraint): Ditto.
9112         (do_ds_constraint): Ditto.
9113         (do_complex_constraint): Ditto.
9114         (init_scc_info): Update for removed and added members.
9115         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
9116         (find_indirect_cycles): This.
9117         (equivalence_class): New variable.
9118         (label_visit): New function.
9119         (perform_variable_substitution): Rewritten.
9120         (free_var_substitution_info): New function.
9121         (find_equivalent_node): Ditto.
9122         (move_complex_constraints): Ditto.
9123         (eliminate_indirect_cycles): Ditto.
9124         (solve_graph): Only propagate changed bits.
9125         Use indirect cycle elimination.
9126         Use find.
9127         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
9128         (tree_id_eq): Renamed to ...
9129         (tree_vi_eq): This. Update for member change
9130         (insert_id_for_tree): Renamed and rewritten to ...
9131         (insert_vi_for_tree): This.
9132         (lookup_id_for_tree): Renamed and rewritten to ...
9133         (lookup_vi_for_tree): This.
9134         (get_id_for_tree): Renamed and rewritten to ...
9135         (get_vi_for_tree): Ditto.
9136         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
9137         (process_constraint): Don't handle INCLUDES.
9138         Remove special ADDRESSOF case.
9139         (find_func_aliases): Rewrite to use vi functions instead of id
9140         ones.
9141         (create_function_info_for): Ditto.
9142         (create_variable_info_for): Ditto.
9143         (intra_create_variable_infos): Ditto.
9144         (merge_smts_into): Ditto.
9145         (find_what_p_points_to): Ditto.
9146         (init_base_vars): Ditto.
9147         (init_alias_vars): Ditto.
9148         (remove_preds_and_fake_succs): New function.
9149         (dump_sa_points_to_info): Dump new stats.
9150         (dump_solution_for_var): Use find.
9151         (set_used_smts): Fix formatting.
9152         (compute_points_to_sets): Updated for new functions.
9153         (ipa_pta_execute): Ditto.
9154
9155 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9156             Richard Sandiford  <richard@codesourcery.com>
9157
9158         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
9159         parallels.
9160         * calls.c (expand_call): If the return value is a PARALLEL,
9161         extract its first member.
9162         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
9163         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
9164         use FUNCTION_EXTRA_EPILOGUE.
9165         (m68k_function_value): Return a PARALLEL if the return value
9166         is of a pointer type.
9167         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
9168         (FUNCTION_EXTRA_EPILOGUE): Remove.
9169         * config/m68k/m68k.md (D0_REG): New constant.
9170
9171 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9172
9173         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
9174         output a NOP for empty epilogues.
9175
9176 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9177
9178         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
9179         before function.  Extend register save check to include all
9180         registers, not just integer ones.
9181
9182 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9183
9184         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
9185         (m68k_use_return_insn): ...this.
9186         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
9187         * config/m68k/m68k.c (use_return_insn): Rename to...
9188         (m68k_use_return_insn): ...this.
9189         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
9190         of USE_RETURN_INSN.
9191
9192 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9193
9194         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
9195         nearest even, fix denormal rounding overflow.
9196
9197 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9198
9199         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
9200         f%$smove and f%$move.
9201         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
9202         (extendsfdf2_cf): Use fdmove instead of f%&move.
9203         (truncdfsf2_cf): Use fsmove instead of f%$smove.
9204         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
9205
9206 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9207
9208         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
9209         GPR<-GPR moves.
9210
9211 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9212
9213         * real.h (real_format): Add a canonical_nan_lsbs_set field.
9214         (coldfire_single_format): Declare.
9215         (coldfire_double_format): Likewise.
9216         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
9217         of qnan_msb_set to determine the lower bits of a canonical
9218         NaN significand.
9219         (encode_ieee_double): Likewise.
9220         (encode_ieee_quad): Likewise.
9221         (ieee_single_format): Initialize canonical_nan_lsbs_set.
9222         (mips_single_format): Likewise.
9223         (ieee_double_format): Likewise.
9224         (mips_double_format): Likewise.
9225         (ieee_extended_motorola_format): Likewise.
9226         (ieee_extended_intel_96_format): Likewise.
9227         (ieee_extended_intel_128_format): Likewise.
9228         (ieee_extended_intel_96_round_53_format): Likewise.
9229         (ibm_extended_format): Likewise.
9230         (mips_extended_format): Likewise.
9231         (ieee_quad_format): Likewise.
9232         (mips_quad_format): Likewise.
9233         (vax_f_format): Likewise.
9234         (vax_d_format): Likewise.
9235         (vax_g_format): Likewise.
9236         (i370_single_format): Likewise.
9237         (i370_double_format): Likewise.
9238         (decimal_single_format): Likewise.
9239         (decimal_double_format): Likewise.
9240         (decimal_quad_format): Likewise.
9241         (c4x_single_format): Likewise.
9242         (c4x_extended_format): Likewise.
9243         (real_internal_format): Likewise.
9244         (coldfire_single_format): New real_format.
9245         (coldfire_double_format): Likewise.
9246         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
9247         canonical_nan_lsbs_set.
9248         (pdp11_d_format): Likewise.
9249         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
9250         if TARGET_COLDFIRE_CPU.
9251
9252 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9253
9254         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
9255         (output_call, m68k_legitimize_call_address): Declare.
9256         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
9257         parenthesees.  Add support for a 'W' constraint.
9258         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
9259         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
9260         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
9261         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
9262         variables.
9263         (override_options): Initialize them.  Do not set flag_no_function_cse
9264         for TARGET_ID_SHARED_LIBRARY.
9265         (m68k_output_pic_call): Delete.
9266         (m68k_legitimize_call_address): New function.
9267         (print_operand): Remove the %o prefix.  Handle the %p prefix.
9268         (output_call): New function.
9269         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
9270         target address from the GOT if symbolic jumps are not allowed.
9271         * config/m68k/m68k.md (call, general_operand): Do not set
9272         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
9273         Merge separate flag_pic and !flag_pic define_insns into...
9274         (*call, *call_value): ...these new patterns.  Match the address
9275         rather than the containing MEM and require it to be a call_operand.
9276         Use output_call to generate the asm template.
9277         * config/m68k/predicates.md (const_call_operand): New predicate.
9278         (call_operand): Likewise.
9279
9280 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9281
9282         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
9283         (STACK_GROWS_DOWNWARD): Define to 1.
9284         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
9285         comments, emphasizing that these values are only defaults.
9286         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
9287         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
9288
9289 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9290
9291         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
9292
9293 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
9294             Richard Sandiford  <richard@codesourcery.com>
9295
9296         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
9297         (FP_REGNO_P): New macros.
9298         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
9299         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
9300         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
9301         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
9302
9303 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9304
9305         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
9306         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
9307         to $tmake_file.
9308         * config/m68k/t-floatlib: New file, extracting common code from...
9309         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
9310         * config/m68k/t-uclinux: Here.
9311         * config/m68k/fpgnulib.c: Do not compile extendeed precision
9312         routines on ColdFire targets.
9313
9314 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
9315
9316         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
9317         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
9318         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
9319         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
9320         explicitly set MOTOROLA to 1.
9321         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
9322
9323 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9324             Nathan Sidwell  <nathan@codesourcery.com>
9325
9326         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
9327         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
9328         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
9329         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
9330         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
9331         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
9332         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
9333         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
9334         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
9335         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
9336         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
9337         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
9338         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
9339         (DBX_REGISTER_NUMBER): Delete.
9340         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
9341         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
9342         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
9343
9344 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9345
9346         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
9347         * config/flat.h: New file.
9348         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
9349         OBJECT_FORMAT_FLAT.
9350         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
9351         indirect references for -msep-data or -mid-shared-library.
9352         Do not use PC-relative code addresses either.
9353         * config/m68k/m68k.c (override_options): Restrict -fPIC error
9354         to -mpcrel.
9355         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
9356         for shared libraries and crt1.o for executables.  Use crti.o and
9357         crtbegin.o.
9358         (ENDFILE_SPEC): Use crtend.o and crtn.o.
9359         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
9360         Do not add -elf2flt or -shared-lib-id options here.
9361         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
9362         Pass -shared-lib-id if -mid-shared-library, taking the library
9363         identifier from -mshared-library-id if given, otherwise
9364         defaulting to 0.
9365         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
9366         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
9367         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
9368         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
9369         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
9370         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
9371         and crtend.o.
9372         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
9373         jump sequence for ISA A and ISA A+.
9374         (PICJUMP): Likewise.
9375
9376 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9377
9378         * config.gcc (m68k-*-uclinux*): Base the port on the common
9379         and m68k GNU/Linux files rather than on the generic ELF ones.
9380         * config/m68k/uclinux.h (TARGET_VERSION): Override.
9381         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
9382
9383 2007-01-18  Julian Brown  <julian@codesourcery.com>
9384             Richard Sandiford  <richard@codesourcery.com>
9385
9386         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
9387         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9388         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
9389         before redefining.
9390         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
9391         80 unconditionally.
9392         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9393
9394 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
9395
9396         * doc/install.texi: Document m68k-uclinuxoldabi.
9397         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
9398         * config/m68k/uclinux-oldabi.h: New file, copied from
9399         config/m68k/uclinux.h.
9400
9401 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9402
9403         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
9404         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
9405         (m32r_compute_frame_size): Use unsigned for regno.
9406         (m32r_reload_lr): Use gen_frame_mem.
9407         (pop): New.
9408         (m32r_output_function_epilogue): Don't output the function epilogue
9409         textually here.
9410         (m32r_expand_epilogue): New.
9411         (direct_return): Return false if the function has the interrupt
9412         attribute.
9413         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
9414         * config/m32r/m32r.md (epilogue): New expander.
9415         (return_lr, return_rte): New insns.
9416         (return): Make it expander.
9417         (return_normal): New expander.
9418
9419 2007-01-18  Josh Conner  <jconner@apple.com>
9420
9421         PR target/30485
9422         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
9423         support for UNLE, UNLT, UNGE, and UNGT.
9424
9425 2007-01-18  Jan Hubicka  <jh@suse.cz>
9426
9427         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
9428         * tree-tailcall (add_virtual_phis): Likewise.
9429         (optimize_tail_call): Return TODOs.
9430         (execute_tail_calls): Return TODOs.
9431         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
9432         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
9433         changed.
9434         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
9435         Cleanup cfg using TODO.
9436         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
9437         * passes.c (execute_function_todo): When cleanup did something, remove
9438         unused locals.
9439         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
9440         (make_edges): Don't cleanup_cfg.
9441
9442 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
9443
9444         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
9445         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
9446         operate on the top of stack.
9447         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
9448         register handling of instructions that output to the second
9449         stack slot.
9450         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
9451         (move_for_stack_reg): Special-case check for dead destination
9452         stack slot for constant load of 1.0 inside UNSPEC_TAN.
9453
9454         * config/i386/i386.md (UNSPEC_TAN): New constant.
9455         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
9456         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
9457         to correctly model move of constant 1.0 to top stack slot.
9458         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
9459         (unnamed peephole2 pattern): Remove corresponding peephole2
9460         pattern that optimizes tan insn and loading of constant 1.0.
9461         (tanxf2): Use fptanxf4_i387.
9462         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
9463         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
9464         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
9465         disable patterns for SSE math.
9466         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
9467         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
9468
9469 2007-01-18  Dirk Mueller  <dmueller@suse.de>
9470             Richard Guenther <rguenther@suse.de>
9471
9472         PR diagnostic/8268
9473         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
9474         * common.opt (Warray-bounds): Add new warning option.
9475         * c-opts.c (c_common_handle_option): Define -Warray-bounds
9476         if -Wall is given.
9477         * Makefile.in: make tree-vrp.o depend on toplev.h
9478         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
9479         is enabled.
9480         (check_array_refs, check_array_bounds, check_array_ref): New.
9481
9482 2007-01-18  Jan Hubicka  <jh@suse.cz>
9483
9484         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
9485         (execute_ssa_ccp): Return flags conditionally.
9486         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
9487         changed.
9488         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
9489
9490 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
9491
9492         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
9493         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
9494
9495         * Makefile.c (GTFILES): Add cfglayout.h.
9496         * gengtype.c (open_base_files): Likewise.
9497         * cfglayout.c (cfg_layout_function_footer,
9498         cfg_layout_function_header) Reindent to make gengtype happy.
9499         * cfglayout.h (cfg_layout_function_footer,
9500         cfg_layout_function_header): Add GTY(()) marker.
9501
9502         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
9503
9504 2007-01-18  Ben Elliston  <bje@au.ibm.com>
9505
9506         * genautomata.c (write_automata): Include xstrerror output in the
9507         error message if writing the DFA description file fails.
9508
9509 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9510
9511         * config/mips/mips-protos.h (mips_output_external): Make it
9512         return void.
9513         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
9514         * config/mips/mips.c (irix_output_external_libcall): Likewise.
9515         (extern_list): Likewise.
9516         (extern_head): Likewise.
9517         (TARGET_ASM_FILE_END): Likewise.
9518         (mips_file_end): Likewise.
9519         (mips_output_external): Rewritten.
9520
9521 2007-01-18  Ben Elliston  <bje@au.ibm.com>
9522
9523         * genpreds.c (write_insn_preds_c): Only write out the function
9524         body for regclass_for_constraint if we have register constraints.
9525
9526 2007-01-17  Tom Tromey  <tromey@redhat.com>
9527
9528         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
9529         * doc/install.texi (Testing): Use sourceware.org.
9530         (Binaries): Likewise.
9531         (Specific): Likewise.
9532         * doc/contrib.texi (Contributors): Use sourceware.org.
9533
9534 2007-01-17  Anatoly Sokolov <aesok@post.ru>
9535
9536         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
9537         (AVR_ENHANCED): Rename to ...
9538         (AVR_HAVE_MUL): ... new.
9539         (avr_enhanced_p): Rename to ...
9540         (avr_have_mul_p): ... new.
9541         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
9542         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
9543         * config/avr/avr.c (avr_enhanced_p): Rename to ...
9544         (avr_have_mul_p): ... new.
9545         (base_arch_s): Rename 'enhanced' to 'have_mul'.
9546         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
9547         'avr_enhanced_p' and 'enhanced'.
9548         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
9549         AVR_HAVE_MUL instead of AVR_ENHANCED.
9550         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
9551         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
9552         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
9553         instead of AVR_ENHANCED.
9554         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
9555         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
9556         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
9557
9558 2007-01-17  Ian Lance Taylor  <iant@google.com>
9559
9560         * vec.h (VEC_reserve_exact): Define.
9561         (vec_gc_p_reserve_exact): Declare.
9562         (vec_gc_o_reserve_exact): Declare.
9563         (vec_heap_p_reserve_exact): Declare.
9564         (vec_heap_o_reserve_exact): Declare.
9565         (VEC_OP (T,A,reserve_exact)): New static inline function, three
9566         versions.
9567         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
9568         negative parameter.
9569         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
9570         (VEC_OP (T,A,copy)) [all versions]: Likewise.
9571         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
9572         * vec.c (calculate_allocation): Add exact parameter.  Change all
9573         callers.
9574         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
9575         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
9576         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
9577         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
9578         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
9579         (vec_heap_p_reserve_exact): New function.
9580         (vec_heap_o_reserve_exact): New function.
9581
9582 2007-01-17  Jan Hubicka  <jh@suse.cz>
9583
9584         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
9585
9586 2007-01-17  Eric Christopher  <echristo@apple.com>
9587
9588         * config.gcc: Support core2 processor.
9589
9590 2007-01-16  Jan Hubicka  <jh@suse.cz>
9591
9592         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
9593         the names, just unlink the chain so we don't crash on dangling pointers
9594         to dead SSA names.
9595
9596 2007-01-16  Jan Hubicka  <jh@suse.cz>
9597
9598         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
9599         * tree-pass.h: Reorder to make IPA passes appear toegher.
9600         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
9601         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
9602         parameters, do not call early inliner.
9603         * ipa-inline.c: Update comments.  Include tree-flow.h
9604         (cgraph_decide_inlining): Do not compute inlining parameters.
9605         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
9606         be called with function context set up.
9607         (pass_ipa_inline): Remove unreachable functions before pass.
9608         (cgraph_early_inlining): Simplify assuming to be called from the
9609         PM as local pass.
9610         (pass_early_inline): New pass.
9611         (cgraph_gate_ipa_early_inlining): New gate.
9612         (pass_ipa_early_inline): Turn into simple wrapper.
9613         (compute_inline_parameters): New function.
9614         (gate_inline_passes): New gate.
9615         (pass_inline_parameters): New pass.
9616         (apply_inline): Move here from tree-optimize.c
9617         (pass_apply_inline): New pass.
9618         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
9619         transforming.
9620         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
9621         doing them by hand.
9622         (tree_function_versioning): Do not allocate dummy struct function.
9623         * tree-inline.h (optimize_inline_calls): Update prototype.
9624         * tree-optimize.c (execute_fixup_cfg): Export.
9625         (pass_fixup_cfg): Remove
9626         (tree_rest_of_compilation): Do not apply inlines.
9627         * tree-flow.h (execute_fixup_cfg): Declare.
9628         * Makefile.in (gt-passes.c): New.
9629         * passes.c: Include gt-passes.h
9630         (init_optimization_passes): New passes.
9631         (nnodes, order): New static vars.
9632         (do_per_function_toporder): New function.
9633         (execute_one_pass): Dump current pass here.
9634         (execute_ipa_pass_list): Don't dump current pass here.
9635
9636 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
9637
9638         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
9639         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
9640
9641 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
9642
9643         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
9644         (strong_alias): Define.
9645         (__gcc_qmul): Provide non-FMA for soft-float.
9646         (__gcc_qdiv): Same.
9647         (__gcc_qneg): New.
9648         (__gcc_qeq): New.
9649         (__gcc_qle): New.
9650         (__gcc_qge): New.
9651         (__gcc_qunord): New.
9652         (__gcc_stoq): New.
9653         (__gcc_dtoq): New.
9654         (__gcc_qtos): New.
9655         (__gcc_qtod): New.
9656         (__gcc_qtoi): New.
9657         (__gcc_qtou): New.
9658         (__gcc_itoq): New.
9659         (__gcc_utoq): New.
9660         (fmsub): New.
9661         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
9662         soft-float functions.
9663         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
9664         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
9665         about long double soft float.
9666
9667 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
9668             Tehila Meyzels  <tehila@il.ibm.com>
9669
9670         * tree-vectorizer.h (is_pattern_stmt_p): New.
9671         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
9672         formatting (tabs instead of spaces). Cleanup and clarify setting
9673         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
9674         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
9675         (vectorizable_type_demotion): Check that types are integral.
9676         (vectorizable_type_promotion): Likewise.
9677         (vectorizable_store): Fix typo.  Eliminate new-line at end of
9678         comments.
9679
9680 2007-01-16  Jan Hubicka  <jh@suse.cz>
9681
9682         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
9683         cgraph edges too.
9684
9685 2007-01-15  Eric Christopher  <echristo@apple.com>
9686
9687         * ifcvt.c: Include vec.h, vecprim.h.
9688         (check_cond_move_block): New argument regs.
9689         Reorganize. Add registers used to regs.
9690         (cond_move_process_if_block): Use regs set above as
9691         loop bounds.
9692
9693 2007-01-15  Eric Christopher  <echristo@apple.com>
9694
9695         * config/darwin.h: Update copyright.
9696         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
9697         (LINK_COMMAND_SPEC): Add -u.
9698         (LINK_SPEC): Fix umbrella for above.
9699
9700 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
9701
9702         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
9703         glibc CVS.
9704
9705 2007-01-15  Tom Tromey  <tromey@redhat.com>
9706
9707         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
9708         * doc/install.texi (Testing): Don't mention jacks.
9709         (Configuration): Document --enable-java-maintainer-mode.  Move
9710         --with-java-home to libgcj-specific section.  Document
9711         --with-ecj-jar.
9712         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
9713
9714 2007-01-15  Jan Hubicka  <jh@suse.cz>
9715
9716         * tree-ssa-dce.c (DCE_TODOs): New.
9717         (propagate_necessity): Return if something changed.
9718         (eliminate_unnecessary_stmts): Likewise.
9719         (perform_tree_ssa_dce): Return TODO flags when needed.
9720         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
9721
9722 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
9723
9724         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
9725         (fyl2x_extend<mode>xf3_i387): New insn pattern.
9726         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
9727         patterns using X87MODEF12 mode macro.  Extend operand 1
9728         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
9729         (log10<mode>2): Ditto.
9730         (log2<mode>2): Ditto.
9731         (log1p<mode>2): Ditto.
9732         (logb<mode>2): Ditto.
9733         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
9734         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
9735         (*fxtractxf3_i387): Rename from *fxtractxf3.
9736         (fxtract_extend<mode>xf3_i387): New insn pattern.
9737         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
9738         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
9739         and gen_fyl2xxf3_i387().
9740
9741 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
9742
9743         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
9744         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
9745         get_loop_exit_edges.  Changed return type to bool.
9746         * cfgloop.h (fix_loop_placement): Declaration removed.
9747
9748 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
9749
9750         * param.h (MIN_VECT_LOOP_BOUND): New.
9751         * params.def (MIN_VECT_LOOP_BOUND): New.
9752         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
9753         argument - minimum threshold for number of iterations.
9754         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
9755         argument to declaration.
9756         * tree-vect-analyze.c (vect_analyze_operations): Check value of
9757         MIN_VECT_LOOP_BOUND.
9758         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
9759         slpeel_tree_peel_loop_to_edge with additional argument.
9760         (vect_do_peeling_for_alignment): Likewise.
9761         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
9762
9763 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
9764
9765         PR target/30413
9766         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
9767         operands of size 1.
9768
9769 2007-01-14  Jan Hubicka  <jh@suse.cz>
9770
9771         * tree-dfa.c (remove_referenced_var): New function.
9772         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
9773         prune referenced vars list too.
9774         * tree-flow.h (remove_referenced_var): Declare.
9775
9776 2007-01-14  Jan Hubicka  <jh@suse.cz>
9777
9778         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
9779         separately.
9780         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
9781         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
9782         * except.h (verify_eh_throw_table_statements): Kill prototype.
9783         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
9784         into call exrepssions.
9785         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
9786         eh trhow verifier.
9787         * tree-cfg.c: Include pointer-set.h.
9788         (verify_node_sharing): Work on pointer set.
9789         (verify_eh_throw_stmt_node): New.
9790         (verify_stmts): Use pointers sets, verify throw_stmt.
9791
9792 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
9793
9794         * ipa-reference.c (analyze_function): Consider also addresses taken
9795         in phi nodes.
9796
9797 2007-01-12  Roger Sayle  <roger@eyesopen.com>
9798
9799         * c-typeck.c (null_pointer_constant_p): Replace use of
9800         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9801         (build_c_cast): Likewise.
9802
9803 2007-01-12  Roger Sayle  <roger@eyesopen.com>
9804
9805         * tree.h (force_fit_type_double): Remove unused final argument.
9806         * c-common.c (constant_expression_warning): Replace use of
9807         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9808         (convert_and_check): Likewise.
9809         (shorten_compare): Update call to force_fit_type_double.
9810         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
9811         * convert.c (convert_to_pointer): Update call to
9812         force_fit_type_double.
9813         * fold-const.c (force_fit_type_double): Remove overflowed_const
9814         argument.
9815         (int_const_binop, fold_convert_const_int_from_int,
9816         fold_convert_const_int_from_real, fold_div_compare,
9817         fold_sign_changed_comparison, fold_unary, fold_negate_const,
9818         fold_abs_const, fold_not_const): Remove the final argument from
9819         calls to force_fit_type_double.
9820
9821 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9822
9823         * configure.ac: Set insn to "nop" for spu-*-* also.
9824         * configure: Regenerate.
9825
9826 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
9827
9828         * builtins.def : Add BUILT_IN_FREE.
9829
9830 2007-01-12  Jan Hubicka  <jh@suse.cz>
9831
9832         PR tree-optimization/30443
9833         * tree-inline.c (tree_function_versioning): Do not optimize when
9834         cloning for inlining.
9835
9836 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
9837
9838         * doc/loop.texi: Document recording of loop exits.
9839         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
9840         (update_single_exits_after_duplication,
9841         update_single_exit_for_duplicated_loop,
9842         update_single_exit_for_duplicated_loops): Removed.
9843         (duplicate_loop_to_header_edge): Do not call
9844         update_single_exits_after_duplication and
9845         update_single_exit_for_duplicated_loops.
9846         (loop_version): Do not update single_exit information.
9847         (fix_loop_structure): Use record_loop_exits instead of
9848         mark_single_exit_loops.
9849         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
9850         the lists of loop exits.
9851         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
9852         split_edge, merge_blocks): Update the lists of loop exits.
9853         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
9854         loop_optimizer_init.
9855         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
9856         of mark_single_exit_loops.
9857         (loop_optimizer_finalize): Call release_recorded_exits.
9858         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
9859         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
9860         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
9861         update single exit information.
9862         * lambda-code.c (perfect_nestify): Ditto.
9863         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
9864         (mark_single_exit_loops): Removed.
9865         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
9866         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
9867         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
9868         functions.
9869         (get_loop_exit_edges, single_exit): Use recorded exit lists.
9870         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
9871         (verify_loop_structure): Verify consistency of the exit lists.
9872         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
9873         (set_single_exit): Removed.
9874         * cfgloop.h (struct loop_exit): New function.
9875         (struct loop): single_exit_ field replaced by exits field.
9876         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
9877         (struct loops): Added exits hash.
9878         (mark_single_exit_loops, set_single_exit): Declaration removed.
9879         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
9880
9881 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9882
9883         * doc/invoke.texi: Avoid use of @headitem.
9884
9885 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9886
9887         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
9888
9889 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9890
9891         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
9892         list of targets.
9893
9894 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
9895             Richard Sandiford  <richard@codesourcery.com>
9896
9897         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
9898         * config/m68k/m68k.opt: Resort options.
9899         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
9900
9901 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
9902             Richard Sandiford  <richard@codesourcery.com>
9903
9904         * doc/invoke.texi: Document the macros that are defined by
9905         m68k's -mtune and -mhard-float options.
9906         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
9907         (m68k_cpp_cpu_family): Likewise.
9908         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
9909         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
9910         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
9911         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
9912         (m68k_cpp_cpu_family): Likewise.
9913
9914 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9915
9916         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
9917         macros besides mc68000 as tuning macros.  Use a switch statement
9918         to set them and mcpu32.
9919
9920 2007-01-12  Julian Brown  <julian@codesourcery.com>
9921
9922         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
9923         (TARGET_68040_ONLY): Rename to...
9924         (TARGET_68040): ...this.
9925         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
9926         * config/m68k/m68k.md: Likewise.
9927
9928 2007-01-12  Julian Brown  <julian@codesourcery.com>
9929             Nathan Sidwell  <nathan@codesourcery.com>
9930             Richard Sandiford  <richard@codesourcery.com>
9931
9932         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
9933         the -mcpu= argument associated with the --with-cpu setting.
9934         Define M68K_DEFAULT_TUNE to the default -mtune= option,
9935         if different from the one implied by the -mcpu setting.
9936         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
9937         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
9938         * doc/invoke.texi: Mention ColdFire in the introduction to the
9939         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
9940         -mno-div and -mhard-float options.  Make -m68881 a synonym for
9941         -mhard-float.  Document the previously-undocumented -m5206e,
9942         -m528x, -m5307 and -m5407 options.  Tweak the existing option
9943         documentation for consistency.
9944         * doc/install.texi: Mention new --with-cpu arguments.
9945         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
9946         default CPU if neither -mcpu nor -march are specified.
9947         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
9948         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
9949         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
9950         using m68k_tune to decide between families that implement the
9951         same ISA.  Use m68k_tune to set __mcfv4e__.
9952         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
9953         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
9954         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
9955         (FL_ISA_C, FL_ISA_MMU): New macros.
9956         (MASK_COLDFIRE): Delete.
9957         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
9958         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
9959         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
9960         (TARGET_HARD_FLOAT): Do not define here.
9961         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
9962         (TUNE_68000): New macro.
9963         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
9964         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
9965         (TUNE_CFV2): Redefine in terms of m68k_tune.
9966         (uarch_type, target_device, fpu_type): New enums.
9967         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
9968         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
9969         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
9970         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
9971         (FL_FOR_isa_c): New macros.
9972         (m68k_isa): New enum.
9973         (m68k_target_selection): New structure.
9974         (all_devices, all_isas, all_microarchs): New tables.
9975         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
9976         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
9977         (MASK_ALL_CPU_BITS): Delete.
9978         (m68k_find_selection): New function.
9979         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
9980         Map the legacy target options to a combination of the new ones.
9981         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
9982         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
9983         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
9984         settings.
9985         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
9986         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
9987         properties.
9988         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
9989         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
9990         * config/m68k/m68k-devices.def: New file.
9991
9992 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
9993             Nathan Sidwell  <nathan@codesourcery.com>
9994
9995         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
9996         (SUBTARGET_EXTRA_SPECS): New macros.
9997         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
9998         use %(asm_cpu_spec) instead.
9999         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
10000         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
10001         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
10002         (EXTRA_SPECS): Rename to...
10003         (SUBTARGET_EXTRA_SPECS): ...this.
10004
10005 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
10006             Richard Sandiford  <richard@codesourcery.com>
10007             Julian Brown  <julian@codesourcery.com>
10008
10009         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
10010         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
10011         to the configuration's default CPU.
10012         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
10013         Remove default masks.
10014         (m680[012]0-*-*): Set the default with_cpu to the first part of
10015         the target name.
10016         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
10017         (m68k*-*-linux): Extend the --with-cpu handling to...
10018         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
10019         and m68010.  Don't set target_cpu_default2.
10020         * doc/install.texi: Document --with-cpu for m68k.
10021         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
10022         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
10023         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
10024         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
10025         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
10026         (ASM_SPEC): Remove use of %(asm_cpu_default).
10027         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
10028         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
10029         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
10030         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
10031         __HAVE_FPU__ if TARGET_HARD_FLOAT.
10032         (TARGET_DEFAULT): Delete.
10033         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
10034         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
10035         (CPP_CPU_SPEC): Delete.
10036         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
10037         the appropriate string.
10038         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
10039         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
10040         (ASM_SPEC): Don't use %(asm_default_spec).
10041         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
10042         TARGET_DEFAULT and add MASK_68881.
10043         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
10044
10045 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
10046
10047         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
10048         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
10049         MASK_68010 alongside MASK_68020.
10050         * doc/invoke.texi: Document -m68010.
10051         * config/m68k/m68k.opt (m68010): New.
10052         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
10053         if TUNE_68010.
10054         (TUNE_68010): New macro.
10055         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
10056         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
10057         (M68K_CPU_m68332): Add MASK_68010.
10058         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
10059         fallback definition.
10060         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
10061         defines.
10062         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
10063         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
10064         to all entries that use MASK_68020.
10065         (output_move_simode_const, output_move_himode, output_move_qimode)
10066         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
10067         instead of TARGET_68020 to select clr behavior.  Remove comment
10068         about there being no TARGET_68010.
10069         * config/m68k/m68k.md: Likewise throughout.
10070
10071 2007-01-12  Julian Brown  <julian@codesourcery.com>
10072
10073         * config/m68k/m68k.h (TARGET_ISAB): New macro.
10074         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
10075         * config/m68k/m68k.md: Likewise.
10076
10077 2007-01-12  Julian Brown  <julian@codesourcery.com>
10078
10079         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
10080         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
10081
10082 2007-01-12  Julian Brown  <julian@codesourcery.com>
10083
10084         * config/m68k/m68k.h (TUNE_68040_60): New macro.
10085         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
10086         * config/m68k/m68k.md: Likewise.
10087
10088 2007-01-12  Julian Brown  <julian@codesourcery.com>
10089             Richard Sandiford  <richard@codesourcery.com>
10090
10091         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
10092         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
10093         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
10094         TARGET_CPU32.
10095         (TARGET_CPU32): Rename to...
10096         (TUNE_CPU32): ...this.
10097         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
10098         (TUNE_CFV2): New macros.
10099         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
10100         remove conditions that are implied by TARGET_68020.
10101         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
10102         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
10103         (m68k_output_function_epilogue): Likewise.
10104         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
10105         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
10106         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
10107         non-68000 timings.  Refactor multiplication and division costs.
10108         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
10109         TUNE_CPU32 instead of TARGET_CPU32.
10110         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
10111         and TUNE_68060 instead of TARGET_68060.
10112         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
10113         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
10114         TARGET_CPU32.
10115         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
10116         && !TARGET_COLDFIRE" to choose between moveq and clr.
10117         Likewise in the unnamed movsf pattern.
10118         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
10119         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
10120         ashiftrt pattern.
10121
10122 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
10123
10124         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
10125         of tabbing before backslashes.
10126
10127 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10128
10129         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
10130         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
10131         (ASM_OUTPUT_INTERNAL_LABEL): Define.
10132
10133 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
10134
10135         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
10136         find_interesting_uses_cond.
10137         (find_interesting_uses_cond): Use extract_cond_operands.
10138         (rewrite_use_compare): Use extract_cond_operands and
10139         force_gimple_operand_bsi.  Do not call update_stmt.
10140         (determine_use_iv_cost_condition): Use extract_cond_operands.
10141         Return cheaper of using original bound and changing the exit bound.
10142
10143 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
10144
10145         PR tree-optimization/29516
10146         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
10147         most_expensive_mult_to_index, addr_to_parts,
10148         create_mem_ref, maybe_fold_tmr): Make the type of
10149         fields of TARGET_MEM_REF sizetype.
10150         (move_fixed_address_to_symbol, move_pointer_to_base):
10151         New functions.
10152         * tree.def (TARGET_MEM_REF): Add comment on types of
10153         the operands.
10154
10155 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
10156
10157         * c-common.c (vector_types_convertible_p): Treat opaque types as
10158         always convertible if they have the same size, but not otherwise.
10159
10160 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
10161
10162         * ifcvt.c (struct noce_if_info): Add comments to the fields.
10163         Remove the b_unconditional field.
10164         (noce_try_sign_mask): Do not look at b_unconditional.
10165         (noce_process_if_block): Do not use merge_if_blocks.  Update
10166         the CFG here.  Do not set b_unconditional.
10167         (cond_move_process_if_block): Likewise.
10168         (find_cond_trap): Likewise.
10169         (check_cond_move_block): Require simple jump insns at the end
10170         of the basic block.
10171
10172 2007-01-11  Jan Hubicka  <jh@suse.cz>
10173
10174         PR tree-optimization/1046
10175         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
10176         when alias info is not ready.
10177         (pass_tail_recursion): Do not require aliasing.
10178         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
10179         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
10180         * tree-ssa-copy.c (pass_copy_prop): Likewise.
10181         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
10182         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
10183         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
10184         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
10185         before inlining.
10186         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
10187         When aliasing is not build, mark statement as volatile.
10188
10189 2007-01-11  Tom Tromey  <tromey@redhat.com>
10190
10191         PR preprocessor/15185, PR preprocessor/20989:
10192         * doc/cppopts.texi <-MT>: Update description of algorithm for
10193         computing default target.
10194         <-M, -MD>: Reword "basename" text.
10195
10196 2007-01-11  Roger Sayle  <roger@eyesopen.com>
10197
10198         * builtins.c (expand_builtin_pow, expand_builtin_powi,
10199         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
10200         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
10201         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
10202         fold_builtin_bswap, real_constp, fold_builtin_pow,
10203         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
10204         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
10205         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
10206         * convert.c (convert_to_pointer): Likewise.
10207         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
10208         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
10209         const_binop, fold_convert_const_int_from_int,
10210         fold_convert_const_int_from_real,
10211         fold_convert_const_real_from_real, sign_bit_p,
10212         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
10213         fold_sign_changed_comparison, fold_unary, fold_comparison,
10214         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
10215         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
10216         * print-tree.c (print_node_brief, print_node): Likewise.
10217         * stor-layout.c (place_field, layout_type): Likewise.
10218         * tree-chrec.c (keep_cast): Likewise.
10219         * tree.c (build_vector, build_real, build_real_from_int_cst,
10220         build_complex): Likewise.
10221
10222 2007-01-11  Roger Sayle  <roger@eyesopen.com>
10223
10224         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
10225         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
10226
10227 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
10228
10229         * configure.ac (strict1_warn): Rename to strict_warn.
10230         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
10231         cc_set_by_configure, quoted_cc_set_by_configure,
10232         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
10233         all_boot_languages, all_stagestuff): Remove.
10234         (target_list): Remove bootstrap targets.
10235         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
10236         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
10237         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
10238         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
10239         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
10240         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
10241         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
10242         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
10243         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
10244         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
10245         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
10246         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
10247         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
10248         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
10249         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
10250         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
10251         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
10252         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
10253         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
10254         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
10255         (mostlyclean): Adjust.
10256         (clean, distclean): Don't mention bootstrap stuff.
10257         * configure: Regenerate.
10258         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
10259         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
10260         treelang/config-lang.in (stagestuff): Remove.
10261         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
10262         stageprofile, stagefeedback, stagestuff): Remove mention.
10263
10264 2007-01-11  Nick Clifton  <nickc@redhat.com>
10265
10266         * config/mcore/predicates.md (mcore_general_movesrc_operand):
10267         Accept CONSTs.
10268         (mcore_general_movdst_operand): Do not accept CONST_INTs.
10269         (mcore_arith_K_S_operand): Run the test for the S constraint not
10270         the test for the M constraint.
10271         (mcore_addsub_operand): Do not accept integer values that are
10272         larger than 32 bits.
10273         * config/mcore/mcore.md: Remove unused constraints from split.
10274         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
10275         (addsi3): Likewise.
10276         (allocate_stack): Likewise.
10277         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
10278         operands to 32 bits.
10279         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
10280         INTVAL.
10281         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
10282         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
10283         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
10284         mcore_output_bclri, mcore_output_andn, output_inline_const,
10285         mcore_output_move, mcore_output_movedouble): Likewise.
10286         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
10287         (output_inline_const): Likewise.
10288         (output_inline_const): Fix format strings used in sprintf
10289         statements.
10290         * config/mcore/mcore-protos.h: Update prototypes for changed
10291         functions in mcore.c.
10292         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
10293         HOST_WIDE_INT and not int.
10294         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
10295         CONST_OK_FOR_N): Likewise.
10296         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
10297         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
10298         an INTVAL.
10299
10300 2007-01-10  Jan Hubicka  <jh@suse.cz>
10301
10302         * tree-vrp.c (remove_range_assertions): Release defs.
10303         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
10304         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
10305
10306 2007-01-10  Paul Brook  <paul@codesourcery.com>
10307
10308         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
10309         * config/arm/arm.md (mulsi3subsi): New insn.
10310
10311 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
10312
10313         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
10314         (tree_transform_and_unroll_loop): New.
10315         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
10316         Declare.
10317
10318 2007-01-10  Robert Kennedy <jimbob@google.com>
10319
10320         * fold-const.c (fold_comparison): Fold comparisons like (x *
10321         1000 < 0) to (x < 0).
10322
10323 2007-01-10  Ian Lance Taylor  <iant@google.com>
10324
10325         * tree-pretty-print.c (dump_generic_node): Print parentheses when
10326         operands have the same priority.
10327
10328 2007-01-10  Tom Tromey  <tromey@redhat.com>
10329
10330         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
10331         (fold_binary): Likewise.
10332         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
10333         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
10334         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
10335         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
10336         * langhooks.h (struct lang_hooks): Removed field
10337         'can_use_bit_fields_p'.
10338
10339 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
10340
10341         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
10342
10343 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
10344
10345         * function.c (get_last_funcdef_no): New function.
10346         * function.h (get_last_funcdef_no): Declare.
10347         * tree-inline.c (initialize_cfun): Add initialization.
10348         (tree_function_versioning): Cleanup.
10349
10350 2007-01-10  Jan Hubicka  <jh@suse.cz>
10351
10352         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
10353         PHIs.
10354
10355 2007-01-10  Sa Liu  <saliu@de.ibm.com>
10356             Ben Elliston  <bje@au.ibm.com>
10357
10358         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
10359         for SAVE_NONLOCAL and Pmode for any other save level.
10360         * spu-protos.h (spu_restore_stack_block): Declare.
10361         * spu.md (save_stack_block): Remove.
10362         (restore_stack_block): Call spu_restore_stack_block.
10363         * spu.c (spu_restore_stack_block): New function.
10364         (spu_expand_epilogue): Remove old comment.
10365
10366 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
10367
10368         PR tree-optimization/30322
10369         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
10370         (cand_value_at): Return the value as aff_tree.
10371         (may_eliminate_iv): Convert the bound from aff_tree to tree.
10372         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
10373         aff_combination_mult): New functions.
10374         (aff_combination_add): Use aff_combination_add_cst.
10375         (aff_combination_convert): Allow conversions to a wider type.
10376         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
10377         * tree-affine.h (aff_combination_mult): Declare.
10378
10379 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
10380
10381         * doc/tm.texi: Update documentation to reflect reality of exec
10382         and start file search behaviours. Update copyright year.
10383         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
10384         header file directories.
10385
10386 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
10387
10388         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
10389         (*cosxf2): Rename to cosxf2_i387.
10390         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
10391         using X87MODEF12 mode macro. Rename patterns to
10392         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
10393         for SSE math.
10394         (*cosdf2, *cossf2): Ditto.
10395         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
10396         to match extended input operands.
10397         (sincos<mode>3): New expander.
10398         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
10399         insn patterns and corresponding splitters.
10400
10401 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10402
10403         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
10404         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
10405
10406 2007-01-09  Nicolas Pitre  <nico@cam.org>
10407
10408         PR target/30173
10409         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
10410
10411 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
10412
10413         * target.h (struct gcc_target): New field library_rtti_comdat.
10414         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
10415         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
10416         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
10417         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
10418
10419 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
10420
10421         * doc/invoke.texi (Optimize Options): Correct description of -O0.
10422
10423 2007-01-08  Richard Guenther  <rguenther@suse.de>
10424
10425         * tree.h (force_fit_type_double): Export.
10426         (force_fit_type): Remove.
10427         * fold-const.c (force_fit_type_double): New function.
10428         (force_fit_type): Remove.
10429         (int_const_binop): Use it.
10430         (fold_convert_const_int_from_int): Likewise.
10431         (fold_convert_const_int_from_real): Likewise.
10432         (fold_div_compare): Likewise.
10433         (fold_sign_changed_comparison): Likewise.
10434         (fold_unary): Likewise.
10435         (fold_negate_const): Likewise.
10436         (fold_abs_const): Likewise.
10437         (fold_not_const): Likewise.
10438         * c-common.c (shorten_compare): Use force_fit_type_double.
10439         * convert.c (convert_to_pointer): Likewise.
10440
10441 2007-01-08  Richard Guenther  <rguenther@suse.de>
10442
10443         * tree.h (build_int_cst_wide_type): Export.
10444         * tree.c (build_int_cst_wide_type): New function.
10445         (build_int_cst_wide): Fix comment.
10446         * builtins.c (fold_builtin_object_size): Use build_int_cst
10447         to build -1 or 0 of the correct type.  Use fit_double_type
10448         to check for overflow.
10449         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
10450         to build the mask.
10451         (decode_field_reference): Likewise.
10452         (all_ones_mask_p): Likewise.
10453         (native_interpret_int): Use build_int_cst_wide_type.
10454         (fold_binary): Use build_int_cst_type to build an all-ones
10455         value.
10456         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
10457
10458 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
10459
10460         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
10461
10462 2007-01-09  Ben Elliston  <bje@au.ibm.com>
10463
10464         * genautomata.c (STATS_OPTION): New option.
10465         (stats_flag): New flag.
10466         (gen_automata_option): Handle it.
10467         (initiate_automaton_gen): Ditto.
10468         (write_automata): Output statistics only if stats_flag is
10469         set. Likewise, output time statistics only if time_flag is set.
10470         * doc/md.texi (Processor pipeline description): Document new flag.
10471
10472 2007-01-08  Richard Guenther  <rguenther@suse.de>
10473
10474         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
10475         * tree.c (build_int_cst_type): Likewise.
10476         (size_in_bytes): Don't call force_fit_type on the result.
10477         (int_fits_type_p): Use fit_double_type.
10478         * fold-const.c (fit_double_type): New function.
10479         (force_fit_type): Use it.
10480         * tree.h (fit_double_type): Export.
10481
10482 2007-01-08  Jan Hubicka  <jh@suse.cz>
10483
10484         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
10485         * ipa.c (function_and_variable_visibility): Fix return type.
10486
10487 2007-01-08  Richard Guenther  <rguenther@suse.de>
10488
10489         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
10490         of offset to build the index.
10491         * tree-pretty-print.c (dump_generic_node): Don't build negated
10492         const just for printing.
10493         * c-pretty-print.c (pp_c_integer_constant): Likewise.
10494         * builtins.c (fold_builtin_int_roundingfn): Check if result
10495         fits the type by using force_fit_type and comparing the result.
10496         * predict.c (predict_loops): Use compare_tree_int for comparison.
10497         * tree.c (build_int_cst): Fall back to integer_type_node for
10498         NULL_TREE type.
10499         (build_int_cst_wide): Assert type is non-null.
10500
10501 2007-01-08  Roberto Costa  <roberto.costa@st.com>
10502
10503         * tree-vrp.c (extract_range_from_cond_expr): New.
10504         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
10505         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
10506         as expressions.
10507         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
10508         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
10509         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
10510         used as expressions.
10511         * tree-object-size.c (cond_expr_object_size): New.
10512         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
10513
10514 2007-01-08  Jan Hubicka  <jh@suse.cz>
10515
10516         * tree-ssa-forwprop.c (forward_propagate_into_cond,
10517         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
10518         statement.
10519
10520 2007-01-08  Richard Guenther  <rguenther@suse.de>
10521
10522         PR tree-optimization/23603
10523         * tree-vrp.c (set_value_range_to_truthvalue): New function.
10524         (extract_range_from_binary): Fall back to truthvalue instead of
10525         varying for TRUTH_*_EXPR.
10526         (extract_range_from_comparison): Fall back to truthvalue instead of
10527         varying.
10528         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
10529         if all visited PHI values were constant.
10530
10531 2007-01-08  Jan Hubicka  <jh@suse.cz>
10532
10533         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
10534         (cgraph_analyze_function): break out from ...
10535         (cgraph_finalize_compilation_unit): ... here.
10536         (cgraph_expand_function): Remove forgoten commented out line.
10537         (cgraph_optimize): Analyze functions.
10538
10539 2007-01-08  Jan Hubicka  <jh@suse.cz>
10540
10541         * tree-pas.h (TODO_remove_function): New flag.
10542         (TODO_update*): Renumber.
10543         (pass_ipa_increase_alignment,
10544         pass_ipa_function_and_variable_visibility): New passes.
10545         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
10546         (cgraph_function_and_variable_visibility): Move to ipa.c
10547         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
10548         cgraph_increase_alignment.
10549         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
10550         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
10551         calling tree-inline.
10552         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
10553         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
10554         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
10555         (gate_increase_alignment): New function.
10556         (pass_ipa_increase_alignment): New pass.
10557         * ipa.c: Inline tree-pass.h and timevar.h
10558         (function_and_variable_visibility): Move here from cgraphunit.c
10559         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
10560         * passes.c (init_optimization_passes): Add the two new passes.
10561         (execute_todo): Handle cgraph_remove_functions.
10562
10563 2007-01-08  Nick Clifton  <nickc@redhat.com>
10564
10565         * config/frv/predicates.md (reg_or_0_operand): Accept
10566         CONST_DOUBLEs.
10567
10568 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
10569
10570         * config/bfin/rtems.h, config/bfin/t-rtems: New.
10571         * config.gcc: Add bfin*-rtems*.
10572
10573 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
10574
10575         * c.opt: Add -flax-vector-conversions.
10576         * c-typeck.c (convert_for_assignment): Pass flag to
10577         vector_types_convertible_p to allow emission of note.
10578         (digest_init): Likewise.
10579         * c-opts.c: Handle -flax-vector-conversions.
10580         * c-common.c (flag_lax_vector_conversions): New.
10581         (vector_types_convertible_p): Unless -flax-vector conversions
10582         has been passed, disallow conversions between vectors with
10583         differing numbers of subparts and/or element types.  If such
10584         a conversion is disallowed, possibly emit a note on the first
10585         occasion only to inform the user of -flax-vector-conversions.
10586         The new last argument specifies this.
10587         * c-common.h (flag_lax_vector_conversions): New.
10588         (vector_types_convertible_p): Add extra argument.
10589         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
10590         char_type_node for V*QI type vectors.
10591         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
10592         Update to satisfy new typechecking rules.
10593         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
10594         C and C++ variants.
10595         * doc/invoke.texi (C Dialect Options): Document
10596         -flax-vector-conversions.
10597
10598 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
10599
10600         PR tree-optimization/29877
10601         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
10602         a register variable on the RHS to not be replaceable.
10603
10604 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
10605         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
10606         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
10607         const_simm15, const_pow2, const_npow2): Added.
10608         * config/score/misc.md (insv, extv, extzv, movmemsi,
10609         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
10610         * config/score/score.c (score_address_cost, score_select_cc_mode):
10611         Added.
10612         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
10613         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
10614         Update score_print_operand.
10615         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
10616         Adjust register allocate order and update some macro define.
10617         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
10618         mdx_block_move_straight, mdx_block_move_loop_head,
10619         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
10620         mdx_block_move): Added.
10621         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
10622         mdp_limm): Updated and fix some bug and typo.
10623         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
10624         (movsf, movdf, doloop_end): Added.
10625
10626 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
10627
10628         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
10629         config/arm/thumb2.md: Fix comment typos.
10630         * doc/extend.texi: Fix a typo.
10631
10632 2007-01-07  Eric Christopher  <echristo@apple.com>
10633
10634         * configure.ac: Check for __stack_chk_fail for darwin.
10635         * configure: Regenerate.
10636
10637 2007-01-07  Richard Guenther  <rguenther@suse.de>
10638
10639         * tree-vrp.c (extract_range_from_assert): CSE calls to
10640         compare_values where possible.
10641         (extract_range_from_unary_expr): Likewise.
10642
10643 2007-01-07  Anatoly Sokolov <aesok@post.ru>
10644
10645         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
10646         * config/avr/avr.c (call_insn_operand): Delete function.
10647         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
10648         instead of register number. Use predicates.
10649         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
10650         call_insn_operand): Add.
10651
10652 2007-01-06  Jan Hubicka  <jh@suse.cz>
10653
10654         * tree-pass.h (pass_build_cgraph_edges): Declare.
10655         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
10656         (visited_nodes): Remove.
10657         (cgraph_create_edges): Move to cgraphbuild.c; rename to
10658         build_cgrpah_edges; make visited_nodes local.
10659         (cgraph_process_new_functions): DO not call initialize_inline_failed.
10660         (record_references_in_initializer): Move to cgraphbuild.c
10661         (initialize_inline_failed, rebuild_cgraph_edges,
10662         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
10663         (verify_cgraph_node): Make visited_nodes local.
10664         (cgraph_analyze_function): Do not call cgraph_create_edges and
10665         initialize_inline_failed.
10666         (cgraph_expand_function): Do not call cgraph_lower_function;
10667         assert that function is already lowered.
10668         * Makefile.in (cgraphbuild.o): New.
10669         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
10670         at the end of lowering passes.
10671
10672 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
10673
10674         * ifcvt.c (cond_move_convert_if_block): New function, code
10675         factored out from...
10676         (cond_move_process_if_block): ...here.  Call the new function
10677         on the THEN and ELSE blocks.
10678         (merge_if_block): Do not copy global_live_at_end, merge_blocks
10679         already takes care of this.
10680
10681 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10682
10683         PR c/19978
10684         * tree.h (TREE_OVERFLOW_P): New.
10685         * c-typeck.c (parser_build_unary_op): Warn only if result
10686         overflowed and operands did not.
10687         (parser_build_binary_op): Likewise.
10688         (convert_for_assignment): Remove redundant overflow_warning.
10689         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
10690
10691 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10692
10693         * c-typeck.c (store_init_value): Split over two lines to follow
10694         the GNU coding style.
10695
10696 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
10697
10698         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
10699         __GXX_EXPERIMENTAL_CXX0X__.
10700         * doc/cpp.texi: Same.
10701
10702 2007-01-05  Richard Guenther  <rguenther@suse.de>
10703
10704         PR middle-end/27826
10705         * tree.c (get_narrower): Do not construct COMPONENT_REFs
10706         with mismatched types.  Instead explicitly build a
10707         conversion NOP_EXPR.
10708
10709 2007-01-05  Ian Lance Taylor  <iant@google.com>
10710
10711         * c-common.c (decl_with_nonnull_addr_p): New function.
10712         (c_common_truthvalue_conversion): Call it.
10713         * c-typeck.c (build_binary_op): Likewise.
10714         * c-common.h (decl_with_nonnull_addr_p): Declare.
10715
10716 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
10717
10718         PR c/30360
10719         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
10720         denom against 0.0.
10721
10722 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
10723
10724         * doc/install.texi (Final install): Document the fact that
10725         the GNAT runtime should not be stripped.
10726
10727 2007-01-04  Jan Hubicka  <jh@suse.cz>
10728
10729         * tree-inline.c (fold_marked_statements): Update operand caches
10730         and EH after folding
10731
10732 2007-01-04  Ian Lance Taylor  <iant@google.com>
10733
10734         * c-common.c (check_function_nonnull): Whitespace fix.
10735
10736 2007-01-04  Jan Hubicka  <jh@suse.cz>
10737
10738         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
10739         comitted older version of patch.
10740         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
10741         function, celanup cfg and collect garbage.
10742
10743 2007-01-04  Mike Stump  <mrs@apple.com>
10744
10745         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
10746         (clean): Likewise.
10747
10748 2007-01-04  Eric Christopher  <echristo@apple.com>
10749
10750         * libgcc2.c (__bswapsi2): Use SItype.
10751         (__bswapdi2): Use DItype.
10752         * libgcc2.h: Update for above.
10753
10754 2007-01-04  Paul Brook  <paul@codesourcery.com>
10755
10756         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
10757         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
10758         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
10759         umulsidi3, umulsidi3adddi, smulsi3_highpart,
10760         umulsi3_highpart): Make conditional on !arm_arch6.
10761         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
10762         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
10763         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
10764         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
10765         umulsi3_highpart_v6): New insns.
10766
10767 2007-01-04  Roger Sayle  <roger@eyesopen.com>
10768
10769         * fold-const.c (fold_convert): When casting an expression to void,
10770         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
10771         have a type.  Instead of attempting to build a NOP_EXPR, return
10772         these "special" trees directly.
10773
10774 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
10775
10776         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
10777         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
10778         rs6000_cost->fp not 0 as adjustment for outer NEG.
10779
10780 2007-01-04  Jan Hubicka  <jh@suse.cz>
10781
10782         * cgraph.c (cgraph_release_function_body): New function.
10783         (cgraph_remove_node): Use it.
10784         * cgraph.h (cgraph_release_function_body): Declare.
10785         * cgraphunit.c (cgraph_expand_function): Use it.
10786         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
10787         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
10788         is initialized and while compilation of other function is running.
10789         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
10790         statement CFG annotations from here to ...
10791         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
10792
10793 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
10794
10795         * cfgloop.h (enum li_flags): Make the constants powers of two.
10796
10797 2007-01-04  Jan Hubicka  <jh@suse.cz>
10798
10799         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
10800         set.
10801         (fold_marked_statements): New function.
10802         (optimize_inline_calls, tree_function_versioning): Fold new statements.
10803         * tree-inline.h (copy_body_data): Add statements_to_fold.
10804
10805 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
10806
10807         * config.gcc: Mention libgcc/config.host.
10808         * Makefile.in: Update comments mentioning libgcc.
10809         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
10810         (all.cross, start.encap, rest.encap, rest.cross): Update
10811         dependencies for libgcc move.
10812         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
10813         (clean-target, clean-target-libgcc): Delete.
10814         (srcdirify, GCC_EXTRA_PARTS): New macros.
10815         (libgcc-support, libgcc.mvars): New rules.
10816         (distclean): Remove mention of mklibgcc.
10817         (install): Don't reference INSTALL_LIBGCC.
10818         (install-common): Don't reference EXTRA_PARTS.
10819         (install-libgcc, install-multilib): Delete rules.
10820         * mklibgcc.in: Delete file.
10821         * doc/configfiles.texi: Don't mention mklibgcc.
10822
10823         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
10824         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
10825         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
10826         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
10827         (mklibgcc, ldblspecs): Likewise.
10828
10829         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
10830         (posixpre.def): Use $(T).
10831         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
10832         (SHLIB_SRC, SHLIB_INSTALL): Delete.
10833         (SHLIB_LINK): Make dummy.
10834         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
10835
10836         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
10837
10838         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
10839         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
10840         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
10841         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
10842
10843         * configure.ac (all_outputs): Remove mklibgcc.
10844         * configure: Regenerated.
10845
10846 2007-01-03  Josh Conner  <jconner@apple.com>
10847
10848         PR middle-end/29683
10849         * calls.c (compute_argument_addresses): Set stack and stack_slot
10850         for partial args, too.
10851         (store_one_arg): Use locate.size.constant for the size when
10852         generating a save_area.
10853
10854 2007-01-03  Robert Kennedy <jimbob@google.com>
10855
10856         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
10857         whose definitions are deleted due to basic block merging.
10858
10859 2007-01-03  Paul Brook  <paul@codesourcery.com>
10860
10861         PR target/16634
10862         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
10863         functions.
10864         (use_return_insn): Return 0 for Thumb interrupt functions.
10865         (print_multi_reg): Add rfe argument for IRQ returns.
10866         (arm_output_epilogue): Pop interrupt return address directly into PC.
10867         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
10868
10869 2007-01-03  Paul Brook  <paul@codesourcery.com>
10870
10871         Merge from sourcerygxx-4_1.
10872         * config/arm/thumb2.md: New file.
10873         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
10874         Thumb-2.
10875         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
10876         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
10877         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
10878         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
10879         tables.
10880         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
10881         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
10882         comptibility.
10883         * config/arm/ieee754-sf.S: Ditto.
10884         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
10885         (thumb1_base_register_rtx_p): ... to this.
10886         (thumb_index_register_rtx_p): Rename...
10887         (thumb1_index_register_rtx_p): ... to this.
10888         (thumb_output_function_prologue): Rename...
10889         (thumb1_output_function_prologue): ... to this.
10890         (thumb_legitimate_address_p): Rename...
10891         (thumb1_legitimate_address_p): ... to this.
10892         (thumb_rtx_costs): Rename...
10893         (thumb1_rtx_costs): ... to this.
10894         (thumb_compute_save_reg_mask): Rename...
10895         (thumb1_compute_save_reg_mask): ... to this.
10896         (thumb_final_prescan_insn): Rename...
10897         (thumb1_final_prescan_insn): ... to this.
10898         (thumb_expand_epilogue): Rename...
10899         (thumb1_expand_epilogue): ... to this.
10900         (arm_unwind_emit_stm): Rename...
10901         (arm_unwind_emit_sequence): ... to this.
10902         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
10903         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
10904         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
10905         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
10906         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
10907         thumb2_output_casesi): New functions.
10908         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
10909         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
10910         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
10911         THUMB2_WORK_REGS): Define.
10912         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
10913         arm_condexec_mask, arm_condexec_masklen)): New variables.
10914         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
10915         (arm_override_options): Check new CPU capabilities.
10916         Set new architecture flag variables.
10917         (arm_isr_value): Handle v7m interrupt functions.
10918         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
10919         Thumb-2.
10920         (const_ok_for_arm): Handle Thumb-2 constants.
10921         (arm_gen_constant): Ditto.  Use movw when available.
10922         (arm_function_ok_for_sibcall): Return false for v7m interrupt
10923         functions.
10924         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
10925         (thumb_find_work_register, arm_load_pic_register,
10926         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
10927         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
10928         print_multi_reg, output_mov_long_double_fpa_from_arm,
10929         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
10930         output_mov_double_fpa_from_arm, output_move_double,
10931         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
10932         output_return_instruction, arm_output_function_prologue,
10933         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
10934         arm_output_mi_thunk, thumb_set_return_address): Ditto.
10935         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
10936         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
10937         (arithmetic_instr, shift_op): Use arm_shift_nmem.
10938         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
10939         '!' and 'L'.
10940         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
10941         (thumb_expand_prologue): Use thumb_set_frame_pointer.
10942         (arm_file_start): Output directive for unified syntax.
10943         (arm_unwind_emit_set): Handle stack alignment instruction.
10944         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
10945         Add v6t2, v7, v7a, v7r and v7m.
10946         (RETLDM): Add Thumb-2 code.
10947         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
10948         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
10949         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
10950         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
10951         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
10952         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
10953         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
10954         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
10955         ADJUST_INSN_LENGTH): Define.
10956         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
10957         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
10958         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
10959         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
10960         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
10961         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
10962         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
10963         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
10964         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
10965         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
10966         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
10967         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
10968         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
10969         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
10970         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
10971         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
10972         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
10973         cortex-m3.
10974         * config/arm/arm-tune.md: Regenerate.
10975         * config/arm/arm-protos.h: Update prototypes.
10976         * config/arm/vfp.md: Enable patterns for Thumb-2.
10977         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
10978         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
10979         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
10980         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
10981         * config/arm/libunwind.S: Add Thumb-2 code.
10982         * config/arm/constraints.md: Update include Thumb-2.
10983         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
10984         * config/arm/ieee754-df.S: Ditto.
10985         * config/arm/bpabi.S: Ditto.
10986         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
10987         * config/arm/predicates.md (low_register_operand,
10988         low_reg_or_int_operand, thumb_16bit_operator): New.
10989         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
10990         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
10991         * config/arm/t-arm-elf: Add armv7 multilib.
10992         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
10993         Include thumb2.md.
10994         (UNSPEC_STACK_ALIGN, ce_count): New.
10995         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
10996         arm_zero_extendsidi2, arm_zero_extendqidi2): New
10997         insns/expanders.
10998         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
10999         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
11000         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
11001         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
11002         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
11003         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
11004         insns.
11005         * doc/extend.texi: Document ARMv7-M interrupt functions.
11006         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
11007
11008 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11009
11010         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
11011         (struct _Unwind_Context): Rename args_size to flags, remove
11012         signal_frame field, add a new args_size field and version field.
11013         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
11014         _Unwind_IsExtendedContext): New inline functions.
11015         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
11016         Assume by_value array is only present if _Unwind_IsExtendedContext.
11017         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
11018         _Unwind_IsSignalFrame.
11019         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
11020         (uw_update_context_1): Use _Unwind_SetSignalFrame.
11021         (uw_init_context_1): Initialize context->flags to
11022         EXTENDED_CONTEXT_BIT.
11023         * config/rs6000/linux-unwind.h (frob_update_context): Use
11024         _Unwind_SetSignalFrame.
11025
11026 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11027
11028         PR middle-end/30353
11029         * gimplify.c (gimplify_modify_expr_complex_part): Move below
11030         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
11031         the value.
11032
11033 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
11034
11035         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
11036         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
11037         RET, AT_SP): Remove.
11038         * config/i386/i386.md (*sse_prologue_save_insn): Use return
11039         instead of RET.
11040
11041         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
11042         * cfgbuild.c (find_basic_blocks): Likewise.
11043         * cfgrtl.c (rtl_create_basic_block): Likewise.
11044         * function.c (temp_slots_at_level): Likewise.
11045         * reg-stack.c (stack_regs_mentioned): Likewise.
11046         * regclass.c (allocate_reg_info): Likewise.
11047         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
11048         set_bb_for_stmt, move_block_to_fn): Likewise.
11049         * tree-complex.c (tree_lower_complex): Likewise.
11050         * vec.h (VEC_safe_grow_cleared): New.
11051
11052         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
11053
11054 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
11055
11056         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
11057         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
11058         to loop_version.
11059         * cfgloopmanip.c (scale_loop_frequencies): Export.
11060         (loopify): Scale the frequencies by prescribed coefficients.
11061         (set_zero_probability): New function.
11062         (duplicate_loop_to_header_edge): Improve updating of frequencies.
11063         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
11064         and frequencies according to arguments.
11065         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
11066         correctly.
11067         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
11068         * modulo-sched.c (sms_schedule): Set probabilities for entering
11069         versioned loop correctly.
11070         * tree-vect-transform.c (vect_transform_loop): Ditto.
11071         * cfgloop.h (loopify, loop_version): Declaration changed.
11072         (scale_loop_frequencies): Declared.
11073
11074 2007-01-02  Jan Hubicka  <jh@suse.cz>
11075
11076         * cgraph.c: Include tree-flow.h
11077         (cgraph_add_new-function): Handle IPA_SSA mode; execute
11078         early_local_passes.
11079         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
11080         * tree-pass.h (pass_all_early_optimizations): Declare.
11081         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
11082         early_local_passes.
11083         (cgraph_analyze_function): Do early_local_passes.
11084         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
11085         Do not add referenced vars.
11086         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
11087         SSA form.
11088         (gate_all_early_local_passes): New gate.
11089         (pass_early_local_passes): Use new gate.
11090         (execute_early_local_optimizations): New functions.
11091         (gate_all_early_optimizations): New gate.
11092         (pass_all_early_optimizations): New pass.
11093         (execute_free_datastructures): Free SSA only when initialized.
11094         (gate_init_datastructures): Init only when optimizing.
11095         (tree_lowering_passes): Do early local passes when called late.
11096         * tree-profile.c (do_tree_profiling): Don't profile functions added
11097         late.
11098         (do_early_tree_profiling, pass_early_tree_profile): Kill.
11099         * tree-cfg.c (update_modified_stmts): Do not update when operands are
11100         not active.
11101         * passes.c (init_optimizations_passes): Reorder so we go into SSA
11102         during early_local_passes.
11103         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
11104
11105
11106 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
11107
11108         * Makefile.in: Update copyright year.
11109
11110 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
11111
11112         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
11113         in $(lang_checks) and check-consistency targets.
11114
11115 2007-01-02  Jan Hubicka  <jh@suse.cz>
11116
11117         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
11118         Do not add referenced vars.
11119         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
11120         are not active.
11121         * passes.c (init_optimization_passes): Put mudflap_2 after
11122         free_datastructures.
11123
11124 2007-01-02  Jan Hubicka  <jh@suse.cz>
11125
11126         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
11127         Set NOTHROW flag on call statements proved to be nothrow.
11128         Update statement of local calls so new pure/const functions are
11129         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
11130         goto receivers.
11131         (tree_rest_of_compilation): Register hooks and initialize bitmap
11132         early. Do not set after_inlining flag.
11133
11134 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
11135
11136         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
11137         HOST_BITS_PER_LONGLONG
11138
11139 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11140
11141         PR c/19977
11142         * c-typeck.c (store_init_value): Don't emit pedantic overflow
11143         warning for non-static initializers.
11144
11145 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
11146
11147         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
11148         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
11149         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
11150         Always use set_unique_reg_note to add REG_EQUAL notes.
11151
11152 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
11153
11154         Revert:
11155         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
11156
11157         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
11158         * cfgbuild.c (find_basic_blocks): Likewise.
11159         * cfgrtl.c (rtl_create_basic_block): Likewise.
11160         * function.c (temp_slots_at_level): Likewise.
11161         * reg-stack.c (stack_regs_mentioned): Likewise.
11162         * regclass.c (allocate_reg_info): Likewise.
11163         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
11164         set_bb_for_stmt, move_block_to_fn): Likewise.
11165         * tree-complex.c (tree_lower_complex): Likewise.
11166         * vec.h (VEC_safe_grow_cleared): New.
11167
11168 2007-01-02  Ian Lance Taylor  <iant@google.com>
11169
11170         * c-common.c (c_common_truthvalue_conversion): When warning about
11171         using an assignment as a truth value, set TREE_NO_WARNING.
11172
11173 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11174
11175         PR middle-end/7651
11176         * c.opt (Wold-style-declaration): New.
11177         * doc/invoke.texi (C-only Warning Options): New.
11178         (Wold-style-declaration): Document it.
11179         (Wextra): Enabled by -Wextra.
11180         * c-opts.c (c_common_post_options): Enabled by -Wextra.
11181         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
11182         -Wold-style-declaration.
11183
11184 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
11185
11186         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
11187         * cfgbuild.c (find_basic_blocks): Likewise.
11188         * cfgrtl.c (rtl_create_basic_block): Likewise.
11189         * function.c (temp_slots_at_level): Likewise.
11190         * reg-stack.c (stack_regs_mentioned): Likewise.
11191         * regclass.c (allocate_reg_info): Likewise.
11192         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
11193         set_bb_for_stmt, move_block_to_fn): Likewise.
11194         * tree-complex.c (tree_lower_complex): Likewise.
11195         * vec.h (VEC_safe_grow_cleared): New.
11196
11197 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
11198
11199         * c-common.c (c_common_nodes_and_builtins): Since variants of
11200         void_type_node get built before it is given a name, we need to
11201         give those variants the name, too.
11202         (complete_array_type): We need to work with the canonical main
11203         type of the array, from which we will build the qualified version.
11204         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
11205         * print-tree.c (print_node): Display canonical type information
11206         for each type.
11207         * stor-layout.c (layout_type): When we don't know the
11208         alignment of a type for which we're building an array, we end up
11209         guessing wrong, so make the type require structural equality.
11210         * tree.c (make_node_stat): When we build a new type, it is its
11211         own canonical type.
11212         (build_type_attribute_qual_variant): When building an attribute
11213         variant, its canonical type is the non-attribute variant. However,
11214         if the attributes are target-dependent and they differ, we need to
11215         use structural equality checks for this type.
11216         (build_qualified_type): A qualified type is not equivalent to its
11217         unqualified variant; set the canonical type appropriately.
11218         (build_distinct_type_copy): When building a distinct type from
11219         another type, the new type is its own canonical type.
11220         (build_variant_type_copy): When building a new type variant, we
11221         assume that it is equivalent to the original type.
11222         (build_pointer_type_for_mode): When building a pointer type, also
11223         build a canonical type pointer.
11224         (build_reference_type_for_mode): When building a reference type,
11225         also build a canonical type reference.
11226         (build_index_type): When we can't hash an index type (e.g.,
11227         because its maximum value is negative), the index type requires
11228         structural equality tests.
11229         (build_array_type): Build the canonical form of an array type.
11230         (build_function_type): Function types require structural equality,
11231         because they contain default arguments, attributes, etc.
11232         (build_method_type_directly): Ditto for method types.
11233         (build_offset_type): Build the canonical offset type.
11234         (build_complex_type): Build the canonical vector type.
11235         (make_vector_type): Build the canonical vector type.
11236         * tree.h (TYPE_CANONICAL): New.
11237         (TYPE_STRUCTURAL_EQUALITY_P): New.
11238         (SET_TYPE_STRUCTURAL_EQUALITY): New.
11239         (struct tree_type): Added "canonical" field.
11240         * params.h (VERIFY_CANONICAL_TYPES): New.
11241         * doc/c-tree.texi (TYPE_CANONICAL): Document.
11242         (TYPE_STRUCTURAL_EQUALITY_P): Document.
11243         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
11244         * doc/invoke.texi (verify-canonical-types): Document --param
11245         parameter for verifying canonical types.
11246
11247 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
11248
11249         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
11250         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
11251         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
11252         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
11253         tm_file.
11254         * config/rs6000/e500.h: New.
11255         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
11256         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
11257         Remove.
11258         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
11259         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
11260         TARGET_E500_DOUBLE): Remove.
11261         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
11262         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
11263         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
11264         * config/rs6000/rs6000.c (rs6000_override_options): Use
11265         CHECK_E500_OPTIONS.
11266
11267 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
11268
11269         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
11270         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
11271         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
11272         rs6000_emit_cmove): Don't check TARGET_E500.
11273         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
11274         sordered): Don't check TARGET_E500.
11275
11276 2007-01-01  Eric Christopher  <echristo@apple.com>
11277
11278         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
11279         HARD_REGISTER_NUM_P.
11280
11281 2007-01-01  Roger Sayle  <roger@eyesopen.com>
11282
11283         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
11284         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
11285         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
11286         eq/ne Y".
11287
11288 2007-01-01  Mike Stump  <mrs@apple.com>
11289
11290         * configure.ac: Remove support for building with Apple's gcc-3.1.
11291
11292 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
11293
11294         PR middle-end/30311
11295         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
11296         REG is a hard register.  Do not modify REG before calling
11297         subreg_nregs.
11298         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
11299         multiple of the size of YMODE for certain lowpart cases.
11300
11301 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
11302
11303         PR middle-end/30253
11304         * gimplify (voidify_wrapper_expr): Update for
11305         GIMPLE_MODIFY_STMT.
11306
11307 2007-01-01  Andreas Schwab  <schwab@suse.de>
11308
11309         PR target/29166
11310         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
11311         save of BR0 in extra_spill_size instead of spill_size.
11312         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
11313         area.
11314         (ia64_expand_epilogue): Restore BR0 from its new location.
11315
11316 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
11317
11318         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
11319         Use a temporary variable if the left hand side is not a gimple
11320         register.
11321
11322 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
11323
11324         * gimplify.c (gimplify_return_expr): Make the temporary variable
11325         for the return expression, a gimple register variable.
11326
11327 2007-01-01  Jan Hubicka  <jh@suse.cz>
11328
11329         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
11330         INSN_LIST.
11331
11332 2007-01-01  Mike Stump  <mrs@apple.com>
11333
11334         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
11335         .literal16.
11336         * config/darwin.c (machopic_select_rtx_section): Use
11337         HAVE_GAS_LITERAL16.
11338         (darwin_mergeable_constant_section): Likewise.
11339         * configure: Regenerate.
11340         * config.in: Regenerate.
11341
11342 2007-01-01  Jan Hubicka  <jh@suse.cz>
11343             Andrew Pinski  <pinskia@gmail.com>
11344
11345         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
11346         before starting IPA passes.