OSDN Git Service

2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2
3         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
4         inverted and documentation adjusted.
5         ("mhard-dfp", "msoft-dfp"): New options.
6         * config/s390/s390.c (s390_handle_arch_option): New architecture
7         switch: z9-ec.
8         (override_options): Sanity checks for the new options added.
9         * config.gcc: New architecture switch: z9-ec.
10         * config/s390/s390.h (processor_flags): PF_DFP added.
11         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
12         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
13         when the bit is NOT set so remove it from the defaults.
14
15 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
16
17         * genemit.c (main): Print include statement for dfp.h.
18         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
19         is not available.
20
21 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
22
23         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
24
25 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26
27         PR target/31022
28         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
29         instead of PATTERN.
30
31 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32
33         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
34         attr_length_call, output_call, output_indirect_call): Cleanup
35         formatting of targetm calls.
36
37 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
38
39         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
40
41 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
42
43         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
44         reservation, bypass and anti-bypass descriptions for these instructions.
45         Update move patterns.
46         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
47         TYPE_FPSTORE.
48         
49 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
50
51         * tree-vect-transform.c (get_initial_def_for_induction): Replace
52         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
53         (get_initial_def_for_reduction): Likewise.
54
55 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
56
57         Fix PR tree-optimization/29922
58         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
59         (get_representative): Removed.
60         (value_dies_in_block_x): Update for rvuse removal.
61         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
62         (compute_antic_aux): Handle when PHI nodes appear in
63         non-single-successors. 
64         (dump_bitmap_of_names): Removed.
65         (compute_antic_safe): Renamed and removed rvuse calculation.
66         Calculate only antic safe.
67         (insert_into_preds_of_block): Remove assert.
68         (execute_pre): Update for renamed functions.
69         (defer_or_phi_translate_block): New function.
70         
71 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
72
73         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
74         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
75         typos.
76         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
77         Follow spelling conventions.
78
79         * tree-data-ref.h: Remove the prototype for analyze_array.
80
81 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
82
83         PR tree-optimization/31041
84         * tree-vect-transform.c (get_initial_def_for_induction): Call
85         force_gimple_operand.
86         
87 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
88   
89         * ipa-type-escape.c (look_for_casts) : Revert code to use
90         handled_component_p due to ada test a-numaux.adb.
91
92 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
93
94         * final.c (final_scan_insn): Alter the condition of a
95         conditional trap if we have nonstandard CC.
96
97 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
98
99         * configure.ac: Remove excess quoting from asm line 0 test.
100         * configure: Rebuilt.
101
102 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
103
104         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
105         * c-common.c (convert_and_check): Move warning logic to...
106         (warnings_for_convert_and_check): ...here. Define.
107         * c-common.h (warnings_for_convert_and_check): Declare.
108         
109 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
110
111         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
112         (output_call): Likewise.
113
114 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
115
116         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
117
118 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
119
120         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
121
122 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
123
124         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
125         opteron, athlon-64 and athlon-fx processor_alias_table entries.
126
127 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
128
129         PR tree-optimization/31183
130         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops): 
131         Use double_int instead of unsigned int for representing access_strides.
132         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
133
134 2007-03-16  Richard Guenther  <rguenther@suse.de>
135
136         PR tree-optimization/31146
137         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
138         to allow recursion of forward_propagate_addr_expr.
139         (forward_propagate_addr_into_variable_array_index): Likewise.
140         (forward_propagate_addr_expr): Likewise.
141         (tree_ssa_forward_propagate_single_use_vars): Likewise.
142         (forward_propagate_addr_expr_1): Recurse on simple copies
143         instead of propagating into them.  Do so for useless conversions
144         as well.
145         (forward_propagate_addr_expr): Clean up unused statements after
146         recursion.
147
148 2007-03-16  Richard Guenther  <rguenther@suse.de>
149
150         * builtins.c (expand_builtin_cexpi): Use the right argument
151         for the expansion via cexp.
152
153 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
154
155         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
156         * configure: Rebuilt.
157
158 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
159
160         PR debug/29906
161         * dwarf2out.c (force_type_die): Adjust comment.
162         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
163
164 2007-03-15  DJ Delorie  <dj@redhat.com>
165
166         * config/frv/predicates.md (minmax_operator): Don't check operands
167         here.
168
169 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
170
171         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
172         Update constant estimates of number of iterations.
173         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
174         argument renamed to "realistic".
175         (compute_estimated_nb_iterations): Removed.
176         (record_niter_bound): New function.
177         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
178         call record_nonwrapping_iv with upper = false.
179         (infer_loop_bounds_from_signedness): Pass upper argument to
180         record_nonwrapping_iv.
181         (estimate_numbers_of_iterations_loop): Do not call
182         compute_estimated_nb_iterations.  Record estimate based on profile
183         information.  Initialize the constant estimates of number of
184         iterations.
185         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
186         estimates.
187         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
188         number of iterations is too small.
189         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
190         (EST_NOT_AVAILABLE): Removed.
191         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
192         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
193         fields.
194
195 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
196
197         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
198         Handle NE_EXPR guards.
199
200 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
201
202         PR c++/24924
203         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
204         Set also -pedantic-errors by default for the  preprocessor unless
205         -fpermissive is given.
206         
207 2007-03-15  Richard Guenther  <rguenther@suse.de>
208
209         PR middle-end/29719
210         PR middle-end/31161
211         * builtins.c (expand_builtin_cexpi): As a fallback if we
212         don't have builtins for sincos or cexp create a function
213         declaration for cexp and expand to a call to that.
214         (expand_builtin_int_roundingfn): Always fall
215         back to floor/ceil and its variants even if they may be
216         not available.
217
218 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
219
220         PR middle-end/31159
221         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
222         jump tables, move the call to delete_dead_jumptables from here...
223         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
224         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
225         don't allow merging of blocks that try_redirect_by_replacing_jump
226         also does not handle when not optimizing.
227
228 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
229             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
230
231         * config/i386/i386.md (x86_sahf_1): Correctly handle
232         HAVE_AS_IX86_SAHF.
233
234 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
235
236         PR target/31167
237         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
238         x86_64_general_operand as operand[2] predicate.  Remove "iF"
239         from operand constraints and use "e" constraint instead.
240         (*subti3_1, *subti3_1 splitter): Ditto.
241         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
242         operand[1] predicate.
243
244 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
245
246         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
247         arrays, multiply the access strides by the size of the sub-array.
248         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
249
250 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
251
252         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
253         the configured assembler supports the sahf mnemonic.
254         * configure: Regenerate.
255         * config.in: Regenerate.
256
257         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
258         emit "sahf" or ".byte\t0x9e" as asm template.
259
260 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
261
262         PR 31018
263         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
264         option to replace hard coded TARGET_xxx in md file.
265         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
266         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
267         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
268         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
269         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
270         (X86_TUNE_NOT_VECTORMODE): Ditto.
271         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
272         (TUNE_AVOID_VECTOR_DECODE): Ditto.
273         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
274         (TUNE_SLOW_IMUL_IMM8): Ditto.
275         (TUNE_MOVE_M1_VIA_OR): Ditto.
276         (TUNE_NOT_UNPAIRABLE): Ditto.
277         (TUNE_NOT_VECTORMODE): Ditto.
278         
279         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
280         options.
281
282         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
283         tuning options instead of hard coded TARGET_xxx.
284         (fix ssemode peephole2's): Ditto.
285         (imul peephole2's): Ditto.
286         (movsi_or): Ditto.
287         (movdi_or_rex64): Ditto.
288         (move peephole2): Ditto.
289         (not peephole2's): Ditto.
290
291 2007-03-14  Dirk Mueller  <dmueller@suse.de>
292
293         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
294         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
295         * c-parser.c (c_parser_if_body): Always add an empty statement in case
296         of empty body.
297         * c-parser.c (c_parser_do_statement): Warn about empty body in
298         do/while statement.
299         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
300         * doc/invoke.texi (-Wempty-body): Update documentation.
301
302 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
303
304         PR c/21438
305         * c-common.h (warn_for_div_by_zero): Declare.
306         * c-common.c (warn_for_div_by_zero): Define.
307         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
308         warning.
309
310 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
311
312         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
313         to PREFIX and STANDARD_PREFIX.
314
315 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
316             Phil Edwards  <phil@codesourcery.com>
317
318         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
319         (__gthread_once_t): Remove busy field for RTPs.
320         (__GTHREAD_ONCE_INIT): Update accordingly.
321
322 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
323
324         * doc/invoke.texi: Document VxWorks options.
325
326 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
327
328         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
329
330 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
331
332         PR tree-optimization/30590
333         * tree-nrv.c (tree_nrv): Check for the partial update of the
334         return value.
335
336 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
337
338         * flags.h (flag_random_seed): Remove declaration, in favor of...
339         * toplev.h (get_random_seed, set_random_seed): ... these.
340         * tree.c (get_file_function_name): Use the former.
341         * opts.c (common_handle_option): Use the latter.
342         * toplev.c
343
344 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
345
346         PR middle-end/31127
347         * cse.c (cse_find_path): Do not bail out if a basic block that
348         we already visited now becomes part of a path that starts at a
349         different basic block.  Just disallow this, to make sure we
350         visit each basic block at most once.
351
352 2007-03-13  Jan Hubicka  <jh@suse.cz>
353
354         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
355         when profile esitmate is present, calls with very low frequency are
356         cold.
357
358 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
359
360         PR tree-optimization/30730
361         PR tree-optimization/26900
362         * tree-ssa-loop-niter.c: Include gmp.h.
363         (bounds): New type.
364         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
365         split_to_var_and_offset, determine_value_range,
366         bound_difference_of_offsetted_base, refine_bounds_using_guard,
367         bound_difference, bounds_add, bounds_negate,
368         number_of_iterations_ne_max, dump_affine_iv): New functions.
369         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
370         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
371         difference of initial and final value of control iv to validate
372         results.
373         (number_of_iterations_cond): Add loop parameter.  Determine bounds
374         on the difference of the extremes of the control iv.  Add dumps.
375         (expand_simple_operations): Handle phi nodes.
376         (simplify_using_initial_conditions): Do not record used conditions.
377         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
378         Do not set additional_info.
379         (implies_nonnegative_p, implies_ge_p): Removed.
380         (derive_constant_upper_bound): Do not use parameter `additional'.
381         (record_estimate): Parameter `additional' removed.  Parameter
382         `i_bound' added.  Do not call derive_constant_upper_bound.
383         (record_nonwrapping_iv): Use derive_constant_upper_bound to
384         bound the number of iterations estimate.
385         (estimate_numbers_of_iterations_loop): Pass the estimate from
386         the number of iterations analysis to record_estimate.
387         * tree.h (multiple_of_p): Declare.
388         * tree-scalar-evolution.c (expression_expensive_p): Removed.
389         (scev_const_prop): Do not check expression_expensive_p.
390         * fold-const.c (multiple_of_p): Exported.
391         * double-int.c (double_int_mask): Exported.
392         * double-int.h (double_int_mask): Declare.
393         * tree-flow.h (struct tree_niter_desc): Removed additional_info
394         field.  Added max field.
395
396 2007-03-13  David Taylor  <taylor@candd.org>
397
398         PR driver/12448:
399         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
400         default -MQ.
401
402 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
403
404         PR target/31123
405         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
406         two unamed patterns.
407         
408 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
409
410         * config/i386/i386.opt (mcx16, msahf): New options.
411         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
412         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
413
414         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
415         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
416         Output -mcx16 and -msahf options when corresponding bit is set.
417
418         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
419         and -msahf options.
420
421 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
422
423         * configure.ac: Test for assembler tolerance to # 0 "".
424         * configure, config.in: Rebuilt.
425         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
426
427 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
428
429         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
430
431         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
432         (handle_syscall): Handle direct system calls.
433         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
434
435 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
436
437         * doc/invoke.texi: Fix cpp.info cross-reference.
438         * doc/passes.texi: Fix gcc.info cross-reference.
439
440 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
441
442         PR tree-optimization/30835
443         * lambda-code.c (can_convert_to_perfect_nest): Check whether
444         bb_for_stmt is not NULL before accessing it.
445
446 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
447
448         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
449         some multilibs.
450
451 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
452
453         PR 30635
454         * doc/install.texi: Document --enable-stage1-languages
455
456 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
457
458         * tree-pass.h (pass_into_cfg_layout_mode,
459         pass_outof_cfg_layout_mode): Declare.
460         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
461         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
462         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
463         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
464
465 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
466
467         * c-decl.c (warn_variable_length_array): New function.
468         Refactored from grokdeclarator to handle warn_vla
469         and handle unnamed array case.
470         (grokdeclarator): Refactored VLA warning case.
471         * c.opt (Wvla): New flag.
472         * doc/invoke.texi (Wvla): New warning.
473
474 2007-03-12  Richard Henderson  <rth@redhat.com>
475
476         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
477         (TARGET_SECTION_TYPE_FLAGS): New.
478
479 2007-03-12  Richard Henderson  <rth@redhat.com>
480
481         * config/darwin.c (machopic_reloc_rw_mask): New.
482         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
483         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
484
485 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
486
487         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
488         * cppdefault.h (cpp_PREFIX): Document.
489         (cpp_PREFIX_len): Likewise.
490         (cpp_EXEC_PREFIX): New variable.
491         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
492         * c-incpath.c (add_standard_paths): Correct logic for relocating
493         paths within prefix.
494
495 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
496
497         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
498         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
499         mode macro.
500         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
501         fix_truncdfdi_sse using SSEMODEF mode macro.
502         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
503         fix_truncdfsi_sse using SSEMODEF mode macro.
504         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
505         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
506
507 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
508
509         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
510         elfos.h to tm_file.
511
512 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
513   
514         * tree.h : Add multiple_of_p declaration.
515         * fold-const.c (multiple_of_p): Make multiple_of_p public. 
516         * ipa-type-escape.c (results_of_malloc): Redundant.
517         (visited_stmts): New. Visited stmt for walk_use_def_chains.
518         (cast_type): Extended with new members.
519         (check_cast): Returns cast_type.
520         (cast): New structure for data of walk_use_def_chains.
521         (is_malloc_result, is_cast_from_non_pointer_1,
522         is_cast_from_non_pointer, 
523         is_array_access_through_pointer_and_index): New functions.
524         (look_for_casts): Returns cast types.
525         (check_call): Returns void.
526         (okay_pointer_operation): Use support of pointer plus index,
527         pointer plus constant and allow all multiplications.
528         
529 2007-03-11  Richard Guenther  <rguenther@suse.de>
530
531         PR tree-optimization/31115
532         * tree-vrp.c (extract_range_from_binary_expr): Make sure
533         the shift count is positive and non-anti-range for RSHIFT_EXPR.
534         A shift count of zero is not special as with *_DIV_EXPR.
535         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
536         direction.
537
538 2007-03-11  Ian Lance Taylor  <iant@google.com>
539
540         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
541         the *_DIV_EXPR codes correctly with overflow infinities.
542
543 2007-03-11  Ira Rosen  <irar@il.ibm.com>
544
545         * tree-data-ref.c (analyze_offset): Add a return value (bool) to 
546         indicate success/failure of the analysis. Add negation to subtrahend
547         in case of subtraction. Fail if both operands contain constants.
548         (create_data_ref): Fail if analyze_offset fails.
549
550 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
551
552         * config/i386/i386.md (frndintxf2): Rename to ...
553         (rintxf2): ... this. Remove expander having same name.
554         (rintsf2, rintdf2): Implement using SSEMODEF macro.
555         (roundsf2, rounddf2): Ditto.
556         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
557         (lround<mode>di2, lround<mode>si2): Ditto.
558
559 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
560
561         * lower-subreg.c: Include except.h.
562         (decompose_multiword_subregs): Verify that the only control flow
563         insns we can split are loads to multi-words pseudos.
564         Handle breaking such blocks after splitting, instead of calling
565         find_many_sub_basic_blocks.
566
567         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
568         on the new basic block.  Add a lengthy comment explaining why we
569         thought this was necessary.
570         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
571
572 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
573
574         PR c++/30924
575         * tree.c (walk_type_fields): Recurse into the element type of
576         ARRAY_TYPEs if there is a pointer set.
577
578 2007-03-10  Dirk Mueller  <dmueller@suse.de>
579
580         * c-common.c (warn_logical_operator): Fix condition.
581
582 2007-03-10  Tobias Schlüter  <tobi@gcc.gnu.org>
583
584         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
585         quotation mark.
586         * config/darwin.c (machopic_select_section): Remove superfluous
587         argument in call to categorize_decl_for_section.  Remove unused
588         variable shlib.
589
590 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
591
592         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
593         defined.
594         * configure: Regenerate.
595
596 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
597
598         PR target/31101
599         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
600         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
601         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
602         Add LABEL_NUSES to emitted label.
603         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
604         branch probability value to emitted jump insn.
605         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
606         Do not check life information and do not re-arrange input operands
607         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
608
609 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
610
611         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
612         the change of decode_asm_operands.
613
614 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
615
616         * mode-switching.c (create_pre_exit): Skip blockage insn.
617
618 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
619
620         * tree-pass.h (TODO_update_smt_usage): Remove.
621         Update all users.
622         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
623         argument SOME.
624         Update all users.
625
626 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
627
628         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
629         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
630         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
631         SOM target.
632
633 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
634
635         * gcc.c: Document %{, in big comment at top.
636         (input_suffix_matches): Remove special handling for .s and
637         .S.
638         (input_spec_matches): New.
639         (handle_braces): Handle %{,.
640         (validate_switches): ',' indicates a value which is not a switch.
641         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
642         to detect assembler input.
643         * config/i386/sol2.h (CPP_SPEC): Likewise.
644         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
645         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
646         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
647         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
648         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
649         -m64 causes deployment target to default to 10.5.
650         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
651
652 2007-03-09  Richard Henderson  <rth@redhat.com>
653
654         PR target/26090
655         * target.h (targetm.asm.out.reloc_rw_mask): New.
656         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
657         (TARGET_ASM_OUT): Use it.
658         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
659         * varasm.c (categorize_decl_for_section): Remove shlib argument;
660         use the new reloc_rw_mask target hook instead.
661         (default_section_type_flags_1): Merge into...
662         (default_section_type_flags): ... here.
663         (decl_readonly_section_1): Merge into...
664         (decl_readonly_section): ... here.
665         (default_elf_select_section_1): Merge into...
666         (default_elf_select_section): ... here.
667         (default_unique_section_1): Merge into...
668         (default_unique_section): ... here.
669         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
670         (default_select_rtx_section): Use it.
671         (default_elf_select_rtx_section): Likewise.
672         * output.h: Update to match.
673         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
674         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
675         (TARGET_ASM_RELOC_RW_MASK): New.
676         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
677         to categorize_decl_for_section.
678         (x86_64_elf_unique_section): Likewise.
679         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
680         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
681         (TARGET_ASM_RELOC_RW_MASK): New.
682         * config/ia64/ia64.c (ia64_rwreloc_select_section,
683         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
684         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
685         (TARGET_RWRELOC): Remove.
686         (ia64_section_type_flags): Adjust call to default_section_type_flags.
687         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
688         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
689         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
690         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
691         (rs6000_xcoff_select_section): Use decl_readonly_section.
692         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
693         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
694         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
695         (TARGET_SECTION_TYPE_FLAGS): Remove.
696         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
697
698 2007-03-09  Roger Sayle  <roger@eyesopen.com>
699
700         * fold-const.c (fold_comparison): Remove compile-time evaluation of
701         complex constant equality/inequality comparisons for here.
702         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
703         known at compile-time or can be simplified to a scalar comparison.
704         (fold_relational_const): Move compile-time evaluation of complex
705         constant equality/inequality comparisons to here.
706
707 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
708
709         PR rtl-optimization/30643
710         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
711         dest_addr_elt.
712         (fold_rtx): Recurse, like before 2006-11-03.
713
714 2007-03-09  DJ Delorie  <dj@redhat.com>
715
716         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
717         m32c-pragma.o.
718
719 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
720
721         PR tree-optimization/30375
722         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
723         LHS of statements is not the same.
724         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
725
726 2007-03-09  Chao-ying Fu  <fu@mips.com>
727
728         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
729         REV 2.
730         * doc/invoke.texi (-mdspr2): Document new option.
731         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
732         New unspec for DSP REV 2.
733         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
734         these instructions are extended in DSP REV 2.
735         (mips-dspr2.md): Include.
736         * config/mips/mips.opt (mdspr2): New option.
737         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
738         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
739         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
740         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
741         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
742         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
743         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
744         and 2 builtins.
745         (bdesc_map): Add one field of unsupported_target_flags.
746         (bdesc_arrays):  Update entries to have extra fields.  Add
747         dsp_32only_bdesc.
748         (mips_init_builtins): Initialize new function types.
749         Check unsupported_target_fileds to filter out builtins.
750         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
751         TARGET_DSPR2.
752         (ASM_SPEC): Pass mdspr2 to the assembler.
753         * config/mips/mips-dspr2.md: New file.
754
755 2007-03-09  Sa Liu  <saliu@de.ibm.com>
756
757         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
758
759 2007-03-09  Ian Lance Taylor  <iant@google.com>
760
761         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
762         argument) like -Wstrict-overflow=2.
763         * doc/invoke.texi (Warning Options): Update documentation.
764
765 2007-03-09  Dirk Mueller  <dmueller@suse.de>
766
767         PR c++/17946
768         * doc/invoke.texi (-Wlogical-op): Document.
769         * common.opt (-Wlogical-op): New.
770         * c-common.h (warn_logical_operator): Declare.
771         * c-common.c (warn_logical_operator): Define.
772         * c-typeck.c (parser_build_binary_op): Call
773         warn_logical_operator.
774
775 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
776
777         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
778         * final.c (final_scan_insn): Test for non-"" file name.
779
780 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
781
782         * doc/loop.texi: Document the Omega linear constraints solver.
783         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
784         omega-max-geqs, omega-max-eqs, omega-max-wild-cards, 
785         omega-hash-table-size, omega-max-keys, and 
786         omega-eliminate-redundant-constraints.
787         * tree-pass.h (pass_check_data_deps): Declared.
788         * omega.c: New.
789         * omega.h: New.
790         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
791         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps, 
792         pass_check_data_deps): New.
793         * tree-data-ref.c (init_data_ref): Remove declaration.
794         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
795         (analyze_array): Renamed init_array_ref, move up initializations.
796         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
797         Removed arguments that are set to NULL.
798         (analyze_indirect_ref): Correct indentation, correct call to 
799         init_pointer_ref.
800         (object_analysis): Call init_array_ref instead of analyze_array.
801         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
802         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
803         of DR_ACCESS_FNS_ADDR.
804         (init_omega_eq_with_af, omega_extract_distance_vectors, 
805         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
806         ddr_consistent_p): New.
807         (compute_affine_dependence): Check consistency of ddrs when 
808         flag_check_data_deps is passed.
809         (analyze_all_data_dependences): Uncomment.
810         (tree_check_data_deps): New.
811         * tree-data-ref.h: Include omega.h.
812         (DR_ACCESS_FNS_ADDR): Removed.
813         (data_dependence_relation): Add inner_loop.
814         (DDR_INNER_LOOP): New.
815         * common.opt (fcheck-data-deps): New.
816         * tree-flow.h (tree_check_data_deps): Declare.
817         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
818         (OBJS-common): Depend on omega.o.
819         (omega.o): Define.
820         * passes.c (pass_check_data_deps): Scheduled.
821         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS, 
822         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
823         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
824         PARAM_VECT_MAX_VERSION_CHECKS,
825         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
826
827 2007-03-09  Richard Guenther  <rguenther@suse.de>
828
829         PR tree-optimization/30904
830         PR middle-end/31058
831         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
832         the same way as *_DIV_EXPR.
833
834 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
835
836         * recog.c (decode_asm_operands): No mixed declarations and code.
837
838 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
839
840         * rtl.def (ASM_INPUT): Add location.
841         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
842         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
843         (decode_asm_operands): Add loc operand.
844         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
845         * stmt.c (expand_asm): Rename to...
846         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
847         gen_rtx_ASM_INPUT_loc.
848         (expand_asm_expr): Adjust.
849         * recog.c (decode_asm_operands): Add loc operand.
850         (check_asm_operands, extract_insn): Adjust.
851         * reload1.c (maybe_fix_stack_asms): Likewise.
852         * final.c (asm_insn_count): Likewise.
853         (final_scan_insn): Output # line before and after asm.
854
855 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
856
857         * tree-ssa-structalias.c (variable_info): Remove
858         finished_solution.
859         (new_var_info): Ditto.
860         (shared_bitmap_info_t): New structure.
861         (shared_bitmap_table): New variable.
862         (shared_bitmap_hash): New function.
863         (shared_bitmap_eq): Ditto
864         (shared_bitmap_lookup): Ditto.
865         (shared_bitmap_add): Ditto.
866         (merge_smts_into): Change to take bitmap directly.
867         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
868         (init_alias_vars): Init shared bitmap hashtable.
869         (delete_points_to_sets): Delete shared bitmap hashtable.
870         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
871         is_aliased removal as a change that was still necessary was
872         deleted.
873
874 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
875
876         * config/i386/i386.h (override_options): Conditionally disable
877         x86_sahf for 64bit targets only.
878
879 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
880
881         PR C/31072
882         * c-decl.c (merge_decls): Don't call make_var_volatile.
883         * varasm.c (make_var_volatile): Remove.
884         * output.h (make_var_volatile): Remove.
885
886 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
887
888         PR tree-optimization/31085
889         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
890
891 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
892
893         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
894         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
895         ATTR_CONST_NOTHROW_LIST.
896         
897         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
898         FIX_TRUNC_EXPR.
899
900 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
901
902         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
903
904 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
905
906         PR 31013
907         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
908         is declared.
909         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
910         passed, use shared libgcc.
911
912 2007-03-08  Roger Sayle  <roger@eyesopen.com>
913
914         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
915         instead of calling build2 with a GIMPLE_MODIFY_STMT.
916         (honor_protect_cleanup_actions, lower_try_finally_switch):
917         Likewise.
918         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
919         ifc_temp_var): Likewise.
920         * tree-inline.c (setup_one_parameter): Likewise.
921         * tree-mudflap.c (mf_decl_cache_locals,
922         mf_build_check_statement_for): Likewise.
923         * tree-nested.c (init_tmp_var, save_tmp_var,
924         finalize_nesting_tree_1): Likewise.
925         * tree-outof-ssa.c (insert_copy_on_edge,
926         insert_backedge_copies): Likewise.
927         * tree-profile.c (tree_gen_edge_profiler,
928         tree_gen_ic_profiler): Likewise.
929         * tree-scalar-evolution.c (scev_const_prop): Likewise.
930         * tree-sra.c (sra_build_assignment): Likewise.
931         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
932         * tree-ssa-math-opts.c (insert_reciprocals,
933         execute_cse_sincos_1): Likewise.
934         * tree-tailcall.c (adjust_accumulator_values,
935         adjust_return_value): Likewise.
936         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
937         * tree-vect-transform.c (vect_create_data_ref_ptr,
938         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
939         vect_create_epilog_for_reduction, vectorizable_reduction,
940         vectorizable_call, vectorizable_conversion,
941         vectorizable_assignment, vectorizable_operation,
942         vectorizable_type_demotion, vect_gen_widened_results_half,
943         vect_permute_store_chain, vectorizable_store,
944         vect_setup_realignment, vect_permute_load_chain,
945         vectorizable_load, vectorizable_condition,
946         vect_create_cond_for_align_checks): Likewise.
947         * tree-vrp.c (build_assert_expr_for): Likewise.
948
949 2007-03-08  Ian Lance Taylor  <iant@google.com>
950
951         * tree-vrp.c: Include "intl.h".
952         (usable_range_p): New static function.
953         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
954         overflowed values, juts set *strict_overflow_p.
955         (compare_values): Only return -2 if one of the operands is not a
956         constant.
957         (compare_ranges): Call usable_range_p.
958         (compare_range_with_value): Likewise.
959         (vrp_evaluate_conditional_warnv): Rename from
960         vrp_evaluate_conditional.  Make static.  Change all callers.
961         (vrp_evaluate_conditional): New function.
962         (simplify_div_or_mod_using_ranges): Issue warning about reliance
963         on signed overflow.
964         (simplify_abs_using_ranges): Likewise.
965         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
966         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
967         within_stmt parameter.
968         * tree-ssa-propagate.c (fold_predicate_in): Update call to
969         vrp_evaluate_conditional.
970         * tree-ssa-threadedge.c
971         (record_temporary_equivalences_from_stmts_at_dest): Change
972         simplify parameter to take a second tree parameter.
973         (simplify_control_stmt_condition): Likewise.
974         (thread_across_edge): Likewise.
975         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
976         (thread_across_edge): Likewise.
977         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
978
979 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
980
981         * config/i386/i386.h (TARGET_SAHF): New define.
982         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
983         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
984         (x86_sahf): New global variable.
985         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
986         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
987         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
988         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
989         for 64-bit.
990         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
991         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
992         when expanding fcomi/sahf based tests.
993         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
994         expanding sahf based alternative. Emit sahf based sequence when
995         optimizing for code size.
996         * config/i386/i386.md (x86_sahf_1): Do not disable for
997         TARGET_64BIT, enable for TARGET_SAHF. 
998
999 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
1000
1001         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
1002         spurious whitespace from error message.
1003
1004 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
1005
1006         PR c++/30852
1007         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
1008
1009 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
1010
1011         * c-decl.c (grokdeclarator): Disable warnings for anonymous
1012         bitfields.
1013         * tree-sra.c (instantiate_element): Propagate disabled warnings
1014         from the element itself to the created variable.
1015
1016 2007-03-07  Richard Henderson  <rth@redhat.com>
1017
1018         PR target/30848
1019         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
1020         silently fix up the stack in the case of a missing register.
1021
1022 2007-03-07  Paul Brook  <paul@codesourcery.com>
1023
1024         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
1025
1026 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
1027
1028         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
1029         New.
1030         (phase1_vrs): Use them.
1031         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
1032         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
1033         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
1034         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
1035         __gnu_Unwind_Restore_WMMXC if required.
1036         (_Unwind_VRS_Pop): Implement iWMMXt support.
1037         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
1038         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
1039         gnu_Unwind_Save_WMMXC): Define.
1040
1041 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
1042
1043         * config/vxworks.h (vxworks_override_options): Declare.
1044         (VXWORKS_OVERRIDE_OPTIONS): Use it.
1045         * config/vxworks.c: Include target.h and toplev.h.
1046         (vxworks_override_options): New function.
1047         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
1048
1049 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
1050
1051         * config/s390/s390.c (override_options): Don't emit an error when
1052         -mstack-size is used without providing -mstack-guard.
1053         (s390_emit_prologue): Choose stack_guard value automatically if not
1054         provided via command line.
1055         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
1056
1057 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
1058
1059         * config/i386/i386.c (output_set_got): Add a GOT initialization
1060         sequence for VxWorks PIC.
1061         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
1062         around labels as well as symbols.  Use gotoff_operand instead
1063         of local_symbolic_operand.
1064         (legitimize_pic_address): Use gotoff_operand instead of
1065         local_symbolic_operand.  Use @GOT accesses for labels as
1066         well as symbols.
1067         (ix86_output_addr_diff_elt): Use PC-relative rather than
1068         GP-relative offsets for VxWorks PIC.
1069         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
1070         no_new_pseudos.  Check whether the returned register is op0.
1071         * config/i386/i386.md (tablejump): Use PC-relative rather than
1072         GP-relative offsets for VxWorks PIC.
1073         * config/i386/predicates.md (gotoff_operand): New predicate.
1074
1075 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1076
1077         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
1078         before defining.
1079         * config/vxworks-dummy.h: New file.
1080         * config/i386/i386.h: Include it.
1081
1082 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
1083
1084         * dwarf2out.c (is_inlined_entry_point): New
1085         (add_high_low_attributes): Emit DW_AT_entry_pc along with
1086         DW_AT_ranges if the first subblock is the entry point.
1087
1088 2007-03-06  David Daney  <ddaney@avtrex.com>
1089
1090         * doc/install.texi (mips-*-*): Change recommended binutils
1091         version.
1092
1093 2007-03-06  Anatoly Sokolov <aesok@post.ru>
1094
1095         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
1096         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162 
1097         devices.
1098         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1099         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1100
1101 2007-03-06  Jan Hubicka  <jh@suse.cz>
1102
1103         * errors.h (warning, error, fatal, internal_error): Mark as cold.
1104         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
1105         are hot.
1106         (probably_cold_bb_p): Cold functions are cold.
1107         (probably_never_executed_bb_p): Cold functions are cold.
1108         (tree_bb_level_predictions): Predict calls to cold functions as not
1109         taken.
1110         (compute_function_frequency): Check hot/cold attributes.
1111         * function.h (function_frequency): Update comments.
1112         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
1113         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
1114         (c_common_att): Add cold and hot.
1115
1116         * doc/extend.texi (hot,cold attributes): Document.
1117
1118 2007-03-06  Andrew Haley  <aph@redhat.com>
1119
1120         * function.c (expand_function_end): Move blockage to just after we
1121         emit the label for the naked return from the function.
1122
1123 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1124
1125         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
1126         before redefining.
1127
1128 2007-03-06  Jan Hubicka  <jh@suse.cz>
1129
1130         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
1131         loaded for constant large models.  Non-large 64bit PIC can do.
1132         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
1133         * cmodel.h: Add LARGE PIC.
1134         * i386.md (UNSPEC_PLTOFF): New.
1135         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
1136         needed.
1137         (*call_1_rex64): Disable for large models.
1138         (*call_1_rex64_large): New.
1139         (*call_value_1_rex64): Disable for large models.
1140         (*call_value_1_rex64_large): New.
1141         (set_rip_rex4): New.
1142         (set_got_offset_rex64): New.
1143         * predicates.md (constant_call_address_operand): For large model
1144         constant calls are not possible.
1145         * i386-protos.h (construct_plt_address): Declare.
1146         * i386.c (override_options): Accept large models.
1147         (ix86_expand_prologue): Expand large PIC GOT pointer load.
1148         (legitimate_constant_p): Add new UNSPECs.
1149         (legitimate_pic_operand_p): Likewise.
1150         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
1151         (legitimize_pic_address): Do easy RIP relative way for TLS only for
1152         non-large model.
1153         (output_pic_addr_const): Add PLTOFF.
1154         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
1155         (ix86_expand_move): Legitimize pic address when in PIC mode.
1156         (construct_plt_address): New function.
1157         (ix86_expand_call): Offload the address to register and use GOT pointer
1158         for large model.
1159         * invoke.texi (mcmodel=large): Update documentation.
1160
1161 2007-03-06  Richard Henderson  <rth@redhat.com>
1162
1163         * config/i386/i386.c (x86_use_leave, x86_push_memory,
1164         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
1165         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
1166         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
1167         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
1168         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
1169         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix, 
1170         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
1171         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
1172         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves, 
1173         x86_partial_reg_dependency, x86_memory_mismatch_stall, 
1174         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
1175         x86_sse_partial_reg_dependency, x86_sse_split_regs, 
1176         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
1177         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
1178         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
1179         x86_schedule, x86_use_bt, x86_pad_returns,
1180         x86_use_xchgb): Merge into ...
1181         (ix86_tune_features): ... here.  New array.
1182         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1183         x86_bswap): Merge into ...
1184         (ix86_arch_features): ... here.  New array.
1185         (x86_3dnow_a): Remove.
1186         (x86_accumulate_outgoing_args): Make static.
1187         (x86_arch_always_fancy_math_387): Make static.
1188         (ix86_tune_mask, ix86_arch_mask): Move ...
1189         (override_options): ... to local variables here.  Apply the
1190         appropriate mask to each element of ix86_arch_features and
1191         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
1192         as were done in the old macros.
1193         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
1194         * config/i386/i386.h (x86_use_leave, x86_push_memory,
1195         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
1196         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
1197         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
1198         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
1199         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
1200         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
1201         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
1202         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
1203         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
1204         x86_partial_reg_dependency, x86_memory_mismatch_stall,
1205         x86_accumulate_outgoing_args, x86_prologue_using_move,
1206         x86_epilogue_using_move, x86_decompose_lea,
1207         x86_arch_always_fancy_math_387, x86_shift1,
1208         x86_sse_partial_reg_dependency, x86_sse_split_regs,
1209         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,        
1210         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
1211         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1212         x86_use_incdec, x86_pad_returns, x86_bswap,
1213         x86_partial_flag_reg_stall): Remove.
1214         (enum ix86_tune_indices): New.
1215         (ix86_tune_features): New.
1216         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
1217         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
1218         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
1219         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
1220         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
1221         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
1222         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
1223         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
1224         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
1225         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
1226         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
1227         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
1228         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
1229         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
1230         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
1231         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
1232         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
1233         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
1234         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
1235         TARGET_EXT_80387_CONSTANTS): Use it.
1236         (enum ix86_arch_indices): New.
1237         (ix86_arch_features): New.
1238         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
1239         TARGET_BSWAP): Use it.
1240         (ix86_tune_mask, ix86_arch_mask): Remove.
1241
1242 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
1243
1244         PR bootstrap/31020
1245         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
1246         Define using $${sysroot_headers_suffix}.
1247         * configure: Regenerate.
1248         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
1249         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
1250         defined.
1251         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
1252         * gcc.c (print_sysroot_headers_suffix): New.
1253         (option_map): Include --print-sysroot-headers-suffix.
1254         (display_help): Mention -print-sysroot-headers-suffix.
1255         (process_command): Handle -print-sysroot-headers-suffix.
1256         (do_spec_1): Append multilib directory to include-fixed path if
1257         sysroot suffixes in use.
1258         (main): Handle -print-sysroot-headers-suffix.
1259         * Makefile.in (start.encap): Don't depend on xlimits.h
1260         (xlimits.h): Remove.
1261         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
1262         limits.h for each multilib in fixinc_list.
1263         (fixinc_list, s-fixinc_list): New.
1264         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
1265         generate them for each multilib in fixinc_list.
1266         (stmp-fixproto): Use include-fixed.  Run fixproto for each
1267         multilib in fixinc_list.
1268         (mostlyclean): Don't remove xlimits.h.
1269         (clean): Remove include-fixed.
1270         (real-install-headers-tar, real-install-headers-cpio,
1271         real-install-headers-cp): Don't copy include, only include-fixed.
1272         (install-mkheaders): Depend on fixinc_list.  Don't depend on
1273         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
1274         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
1275         SYSTEM_HEADER_DIR setting in mkheaders.conf.
1276
1277 2007-03-06  Jan Hubicka  <jh@suse.cz>
1278
1279         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
1280         NANs easilly.
1281
1282 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1283
1284         * configure.ac: Allow tm_file to contain build-directory files.
1285         * configure: Regenerate.
1286         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
1287         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
1288         * config/m68k/print-sysroot-suffix.sh: New file.
1289
1290 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1291
1292         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
1293         of pic_offset_table_rtx if reload_completed.
1294         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
1295         PIC_OFFSET_TABLE_REGNUM.
1296         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
1297         return true.
1298         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
1299         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
1300
1301 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1302
1303         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
1304         functions that call eh_return.
1305
1306 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1307
1308         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
1309         functions that need a constant pool.
1310
1311 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1312
1313         PR target/28181
1314         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
1315         (m68k_preferred_reload_class): Likewise.
1316         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
1317         (SECONDARY_RELOAD_CLASS): Define.
1318         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
1319         (LIMIT_RELOAD_CLASS): Delete.
1320         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
1321         registers from storing bytes.
1322         (m68k_secondary_reload_class): New function.
1323         (m68k_preferred_reload_class): Likewise.
1324
1325 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1326
1327         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
1328         leaf functions.
1329         (m68k_expand_prologue): Likewise.
1330
1331 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1332
1333         * config/m68k/m68k-protos.h (output_sibcall): Declare.
1334         (mips_expand_epilogue): Add a bool parameter.
1335         (m68k_legitimize_sibcall_address): Declare.
1336         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1337         (m68k_expand_epilogue): Add a parameter to select between sibling
1338         and normal epilogues.  Only generate a return for the latter.
1339         (m68k_ok_for_sibcall_p): New function.
1340         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
1341         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
1342         (sibcall_value, *sibcall_value): Likewise.
1343         (*call, *call_value): Require !SIBLING_CALL_P.
1344         (epilogue): Update call to m68k_expand_epilogue.
1345         (sibcall_epilogue): New pattern.
1346         * config/m68k/predicates.md (const_call_operand): Say that this
1347         predicate applies to sibling calls too.
1348         (sibcall_operand): New predicate.
1349
1350 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1351
1352         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
1353         alternatives as movsi_cf.
1354         (movsf_cf_hard): Add commentary.
1355
1356 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
1357             Richard Sandiford  <richard@codesourcery.com>
1358
1359         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
1360         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
1361         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
1362         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
1363         as being live on exit from an interrupt function.
1364         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
1365         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
1366         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
1367         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
1368         (m68k_interrupt_function_p): Globalize.
1369         (m68k_compute_frame_layout): Remove reverse mask code.
1370         (m68k_emit_movem, m68k_set_frame_related): New functions.
1371         (m68k_output_function_prologue): Delete in favor of...
1372         (m68k_expand_prologue): ...this new function.
1373         (m68k_output_function_epilogue): Delete in favor of...
1374         (m68k_expand_epilogue): ...this new function.
1375         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
1376         functions.
1377         (print_operand): Handle %?.
1378         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
1379         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
1380         (prologue, epilogue): New patterns.
1381         (return): Turn into a define_expand.
1382         (*return): New pattern, derived from old "return" pattern.  Use rte
1383         rather than rts for interrupt functions.  Only use rtd if the pop
1384         count is nonzero.
1385         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
1386         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
1387         (link, *link, unlink, *unlink, load_got): Likewise.
1388
1389 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1390
1391         PR target/23482
1392         PR target/17114
1393         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
1394         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
1395         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
1396         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
1397         and m68k_matches_u_p.
1398         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
1399         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
1400         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
1401         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
1402         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
1403         (REG_STRICT_P): New macro.
1404         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
1405         PCREL_GENERAL_OPERAND_OK.
1406         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
1407         m68k_legitimate_base_reg_p.
1408         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
1409         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
1410         (PIC_CASE_VECTOR_ADDRESS): Update comment.
1411         * config/m68k/m68k.c (m68k_address): New structure.
1412         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
1413         (m68k_decompose_index, m68k_legitimate_constant_address_p)
1414         (m68k_jump_table_ref_p, m68k_decompose_address)
1415         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
1416         (m68k_matches_u_p): New functions.
1417         (print_operand_address): Rewrite to use m68k_decompose_index.
1418
1419 2007-03-05  David Taylor  <dtaylor@emc.com>
1420
1421         * gcc.c: Correct copyright date in --version output.
1422
1423 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1424
1425         * pa.md: In unamed move patterns, disparge copies between general
1426         and floating point registers using '?' modifier.  Don't include 'f'
1427         constraint for register preferences in DImode, SImode, HImode and
1428         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
1429         Remove constraints for copies between general and floating registers
1430         in soft-float DFmode pattern.
1431         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
1432         floating register.
1433         (movsf): Likewise. 
1434
1435 2007-03-05  Mike Stump  <mrs@apple.com>
1436
1437         * c-common.c (targetcm): Add.
1438         * c-opts.c (c_common_handle_option): Handle language specific
1439         target options.
1440         * opts.c (handle_option): Verify language for target options, if
1441         any are given.
1442         * opth-gen.awk: Add CL_LANG_ALL.
1443         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
1444         (TARGETCM_INITIALIZER): Add.
1445         * target.h (struct gcc_targetcm): Add.
1446         (targetcm): Add.
1447         * targhooks.c (default_handle_c_option): Add.
1448         * targhooks.h (default_handle_c_option): Add.
1449         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
1450
1451         * config/darwin.opt (iframework): Add.
1452         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
1453         * config/darwin-c.c (handle_c_option): Add.
1454         (TARGET_HANDLE_C_OPTION): Add.
1455         (targetcm): Add.
1456         * doc/invoke.texi (Darwin Options): Add -iframework.
1457
1458 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1459
1460         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
1461         conversion.
1462
1463 2007-03-05  Ian Lance Taylor  <iant@google.com>
1464
1465         * c.opt (fgnu89-inline): New option.
1466         * c-opts.c (c_common_post_options): Set default value for
1467         flag_gnu89_inline.
1468         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
1469         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
1470         inline functions.
1471         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
1472         (grokdeclarator, start_function): Likewise.
1473         * c-cppbuiltin.c (c_cpp_builtins): Define either
1474         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
1475         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
1476         (C Dialect Options): Document -fgnu89-inline.
1477         * doc/extend.texi (Function Attributes): Explain what the
1478         gnu_inline attribute does.
1479         * doc/cpp.texi (Common Predefined Macros): Document
1480         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
1481
1482 2007-03-05  Ian Lance Taylor  <iant@google.com>
1483
1484         PR tree-optimization/31034
1485         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
1486         half-range if the other side is an overflow infinity.
1487
1488 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1489
1490         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
1491         (bfin*-linux-uclibc*): New configuration.
1492         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
1493         defining.
1494         * config/bfin/linux.h: New file.
1495         * config/bfin/libgcc-bfin.ver: New file.
1496         * config/bfin/t-bfin-uclinux: New file.
1497         * config/bfin/t-bfin-linux: New file.
1498         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
1499         (TARGET_OS_CPP_BUILTINS): New macro.
1500
1501 2007-03-05  Richard Guenther  <rguenther@suse.de>
1502
1503         * fold-const.c (fold_binary): Remove duplicate folding
1504         of comparison of non-null ADDR_EXPR against null.
1505
1506 2007-03-05  Richard Guenther  <rguenther@suse.de>
1507             Dorit Nuzman  <dorit@il.ibm.com>
1508
1509         PR tree-optimization/26420
1510         * tree-vectorizer.c (vectorize_loops): Bail out early if there
1511         are no loops in the function.  Only print the number of
1512         vectorized loops if it is greater than zero or we are supposed
1513         to print information about unvectorized loops.
1514
1515 2007-03-05  Revital Eres  <eres@il.ibm.com>
1516
1517         * gcc.dg/var-expand1.c: New test.
1518         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
1519         when an accumulator is expanded.
1520
1521 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1522
1523         PR other/30465
1524         * c-common.c (convert_and_check): Don't give warnings for
1525         conversion if 'expr' already overflowed.
1526         
1527 2007-03-04  Roger Sayle  <roger@eyesopen.com>
1528
1529         PR middle-end/30744
1530         * fold-const.c (fold_comparison): Enforce type consistency when
1531         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
1532
1533 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
1534
1535         * tree-ssa-address.c (create_mem_ref): Do not put an expression
1536         containing a cast to the base of TARGET_MEM_REF.
1537
1538 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
1539
1540         * tree.c (tree_contains_struct_check_failed): Remove spurious
1541         whitespace from error message.
1542
1543 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1544
1545         PR target/30406
1546         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
1547         instead of precision.
1548
1549 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
1550             Nathan Sidwell  <nathan@codesourcery.com>
1551
1552         * emit-rtl.c (find_auto_inc): New.
1553         (try_split): recreate REG_INC notes,
1554         Use regular for loops rather than whiles.
1555
1556 2007-03-03  Andreas Schwab  <schwab@suse.de>
1557
1558         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
1559         * configure: Regenerate.
1560
1561 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1562
1563         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
1564         flag_rounding_math, not flag_unsafe_math_optimizations.
1565
1566         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
1567         fold_build2.
1568         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
1569         alpha_fold_vector_minmax): Likewise.
1570         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1571         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1572
1573 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1574
1575         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1576         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1577         if the lhs has side-effects.
1578         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1579
1580 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1581
1582         * config/i386/i386.h (TUNEMASK): Remove define.
1583         (ARCHMASK): Remove define.
1584         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1585          Use ix86_arch_mask variable instead of ARCHMASK.
1586         * config/i386/i386.c (override_options): Ditto.
1587         (standard_80387_constant_p): Ditto.
1588
1589 2007-03-02  Ian Lance Taylor  <iant@google.com>
1590
1591         Used signed infinities in VRP.
1592         * tree-vrp.c (uses_overflow_infinity): New static function.
1593         (supports_overflow_infinity): New static function.
1594         (make_overflow_infinity): New static function.
1595         (negative_overflow_infinity): New static function.
1596         (positive_overflow_infinity): New static function.
1597         (is_negative_overflow_infinity): New static function.
1598         (is_positive_overflow_infinity): New static function.
1599         (is_overflow_infinity): New static function.
1600         (overflow_infinity_range_p): New static function.
1601         (compare_values_warnv): New function split out of compare_values.
1602         (compare_value): Call it.
1603         (set_value_range_to_nonnegative): Add overflow_infinity
1604         parameter.  Change caller.
1605         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1606         Change callers.
1607         (vrp_expr_computes_nonzero): Likewise.
1608         (compare_ranges, compare_range_with_value): Likewise.
1609         (compare_name_with_value, compare_names): Likewise.
1610         (vrp_evaluate_conditional): Likewise.
1611         (set_value_range): Handle infinity
1612         (vrp_operand_equal_p, operand_less_p): Likewise.
1613         (extract_range_from_assert): Likewise.
1614         (vrp_int_const_binop): Likewise.
1615         (extract_range_from_binary_expr): Likewise.
1616         (extract_range_from_unary_expr): Likewise.
1617         (extract_range_from_comparison): Likewise.
1618         (extract_range_from_expr): Likewise.
1619         (dump_value_range): Likewise.
1620         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1621         (test_for_singularity): Likewise.
1622         (vrp_int_const_binop): Remove inline qualifier.
1623         (adjust_range_with_scev): Add comment.
1624         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1625
1626 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
1627
1628         * tree-ssa-structalias.c (could_have_pointers): Tidy.
1629         (get_constraint_for): Likewise.
1630         (do_structure_copy): Likewise.
1631         (find_func_aliases): Fix references to MODIFY_EXPR.
1632         (intra_create_variable_infos): Tidy.
1633         * tree-ssa-operands.c (add_virtual_operand): Add argument
1634         IS_CALL_SITE.
1635         When adding members of alias sets, if IS_CALL_SITE is true and
1636         the symbol is not call-clobbered, skip it.
1637         Adjust all callers.
1638
1639 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1640
1641         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1642         entry by means of emit_insn_at_entry.
1643
1644 2007-03-02  Richard Henderson  <rth@redhat.com>
1645
1646         * expr.h (promoted_input_arg): Remove decl.
1647         * function.c (promoted_input_arg): Merge into ...
1648         * combine.c (setup_incoming_promotions): ... only caller.
1649         Rearrange to avoid double loop.
1650
1651 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1652             Peter Bergner  <bergner@vnet.ibm.com>
1653             Janis Johnson  <janis187@us.ibm.com>
1654
1655         * config/rs6000/dfp.md: New file.
1656         * config/rs6000/rs6000.md: Include dfp.md.
1657         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1658         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1659         and TDmode decimal float modes in FP registers.
1660         (num_insns_constant): Likewise.
1661         (rs6000_legitimate_offset_address_p): Likewise.
1662         (rs6000_legitimize_address): Likewise.
1663         (rs6000_legitimize_reload_address): Likewise.
1664         (rs6000_legitimate_address): Likewise.
1665         (rs6000_emit_move): Likewise.
1666         (function_arg_boundary): Likewise.
1667         (function_arg_advance): Likewise.
1668         (rs6000_darwin64_record_arg_recurse): Likewise.
1669         (function_arg): Likewise.
1670         (rs6000_gimplify_va_arg): Likewise.
1671         (rs6000_split_multireg_move): Likewise.
1672         (rs6000_output_function_epilogue): Likewise.
1673         (rs6000_output_function_epilogue): Likewise.
1674         (rs6000_register_move_cost): Likewise.
1675         (rs6000_function_value): Likewise.
1676         (rs6000_libcall_value): Likewise.
1677
1678 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1679
1680         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1681
1682 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1683
1684         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1685         Use $MULTIDIR to choose between the kernel and RTP headers,
1686         and use $WIND_BASE and $WIND_USR to locate them.
1687
1688 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1689
1690         * config/i386/i386.c (override_options): Put initialization of
1691         ix86_tune_mask and ix86_arch_mask to the correct place.
1692
1693 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1694             Michael Meissner  <michael.meissner@amd.com>
1695
1696         PR target/31019
1697         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1698         (ARCHMASK): Define.
1699         (TARGET_CMOVE): Use ARCHMASK.
1700         (TARGET_CMPXCHG): Ditto.
1701         (TARGET_CMPXCHG8B): Ditto.
1702         (TARGET_XADD): Ditto.
1703         (TARGET_BSWAP): Ditto.
1704         * config/i386/i386.c (ix86_tune_mask): New global variable.
1705         (ix86_arch_mask): Ditto.
1706         (override_options): Initialize ix86_tune_mask and
1707         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1708         target_flags.
1709
1710 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1711
1712         PR 30992
1713         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1714
1715 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
1716
1717         * target.h (init_dwarf_reg_sizes_extra): New target hook.
1718         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1719         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1720         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1721         hook.
1722         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1723         rs6000_init_dwarf_reg_sizes_extra): New.
1724         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1725         SPE register high parts.
1726
1727 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1728
1729         * Makefile.in: Add install-pdf target as
1730         copied from automake v1.10 rules.
1731         * configure.ac: Add install-pdf to target list.
1732         * configure: Regenerate.
1733
1734 2007-03-01  Paul Brook  <paul@codesourcery.com>
1735
1736         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1737         modes to LDRD for DImode.
1738         (output_move_double): Fixup out of range ldrd/strd.
1739         (vfp_secondary_reload_class): Rename...
1740         (coproc_secondary_reload_class): ... to this.  Add wb argument.
1741         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1742         coproc_secondary_reload_class for CLASS_IWMMXT.
1743         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1744         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1745
1746 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
1747
1748         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
1749         factor by the estimated number of iterations.
1750         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1751         prefetch latency.
1752
1753         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1754         decode_caches_intel, detect_caches_intel): New functions.
1755         (host_detect_local_cpu): Use detect_caches_amd and
1756         detect_caches_intel.
1757
1758 2007-03-01  Richard Henderson  <rth@redhat.com>
1759
1760         * expr.c (emit_move_complex_push): Export.
1761         (emit_move_complex_parts): Split out from ...
1762         (emit_move_complex): ... here.
1763         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1764         * config/i386/i386.md (movcdi): New.
1765
1766 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
1767
1768         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1769         size of mode1 to check for tieable modes in MMX case.
1770
1771 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
1772
1773         * Makefile.in (rtlanal.o): Depend on tree.h.
1774         * rtl.h (offset_within_section_p, split_const): Declare.
1775         * rtlanal.c: Include tree.h.
1776         (offset_within_block_p): New function, taken from
1777         mips_offset_within_object_p.
1778         (split_const): New function, taken from mips_split_const.
1779         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1780         Declare.
1781         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1782         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1783         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1784         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1785         (m68k_illegitimate_symbolic_constant_p): New function.
1786         * config/m68k/m68k.md (movsi): Remove misleading predicates.
1787         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1788         symbolic constant that might be outside the symbol's section,
1789         move the symbol first and then add the offset.
1790         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1791         Override.
1792         * config/mips/mips.c (mips_split_const): Delete.
1793         (mips_offset_within_object_p): Delete.
1794         (mips_symbolic_constant_p): Use offset_within_section_p and
1795         split_const instead of mips_offset_within_object_p and
1796         mips_split_const.
1797         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1798         (mips_legitimize_const_move, print_operand_reloc)
1799         (mips_dangerous_for_la25_p): Use split_const instead of
1800         mips_split_const.
1801
1802 2007-02-28  Eric Christopher  <echristo@apple.com>
1803
1804         * Makefile.in (install-include-dir): Don't rm -rf include.
1805
1806 2007-02-28  Richard Guenther  <rguenther@suse.de>
1807
1808         PR middle-end/30364
1809         * fold-const.c (fold_binary): Do not associate expressions
1810         with more than one variable for integer types that do not wrap.
1811
1812 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
1813
1814         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1815         Delete, and replace with...
1816         (fold_builtin_call_array): This.  Update callers to use it.
1817         * fold-const.c (fold_build_call_list): Delete, and replace with...
1818         (fold_build_call_array): This.
1819         (fold_build_call_list_initializer): Delete, and replace with...
1820         (fold_build_call_array_initializer): This.
1821         * tree.h: Update declarations to reflect above changes.
1822
1823         * c-typeck.c (build_function_call): Store converted arguments
1824         in a stack-allocated array instead of building a list.
1825         (convert_arguments): Store arguments in the array passed in as an
1826         argument, and return the actual number of arguments.
1827         * c-format.c: (check_function_format): Pass arguments in an
1828         array instead of a list.
1829         * c-common.c (check_function_nonnull): Likewise.
1830         (check_function_sentinel): Likewise.
1831         (check_function_arguments): Likewise.
1832         * c-common.h: Update declarations to reflect above changes.
1833
1834 2007-02-28  Jan Hubicka  <jh@suse.cz>
1835
1836         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1837         PRED_NEGATIVE_RETURN): Update outcomes.
1838
1839 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1840
1841         * calls.c (emit_library_call_value_1): Handle partial registers
1842         correctly when building up CALL_INSN_FUNCTION_USAGE.
1843
1844 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1845
1846         * pa/predicates.md (move_src_operand): Allow zero for mode.
1847         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1848         move pattern.
1849
1850 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
1851
1852         PR target/30970
1853         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1854         *movv2df_internal): Enable pattern only for valid operand
1855         combinations.
1856         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1857         tie only 128bit modes. For MMX registers, tie only 64bit modes.
1858
1859 2007-02-27  Mike Stump  <mrs@apple.com>
1860
1861         * config/darwin-crt3.c: Avoid compilation when compiling for a
1862         kext multilib.
1863
1864 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
1865
1866         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1867         FIXED_INCLUDE_DIR.
1868         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1869         for fixed headers and limits.h.
1870         (install-include-dir, install-headers-tar, install-headers-cpio,
1871         install-headers-cp, real-install-headers-tar,
1872         real-install-headers-cpio, real-install-headers-cp): Handle
1873         include-fixed as well as include.
1874         (install-mkheaders): Don't install files that go only in include
1875         not include-fixed.
1876         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1877         from GCC_INCLUDE_DIR.
1878         * gcc.c (process_command): Remove special -BstageN/ handling.
1879         (do_spec_1): Add include-fixed directories.
1880
1881 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1882
1883         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1884         _smulsi3_highpart.
1885         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1886         New functions.
1887         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1888         patterns.
1889
1890 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
1891
1892         * c-common.c (get_priority): Add check for
1893         SUPPORTS_INIT_PRIORITY.
1894
1895 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1896
1897         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1898
1899         * config/bfin/bfin.c: Include "cfglayout.h".
1900         (MAX_LSETUP_DISTANCE): New macro.
1901         (struct loop_info): New members incoming, incoming_src and
1902         incoming_dest.  Delete member predecessor.
1903         (length_for_loop): New function.
1904         (bfin_optimize_loop): Handle more different loop structures.
1905         (bfin_discover_loop): Rework detection of predecessor blocks by
1906         examining incoming edges.
1907         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1908         bfin_reorg_loops.
1909         (bfin_reorder_loops): New function.
1910         (bfin_reorg_loops): Use these three new functions.
1911
1912         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1913         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1914         (CONSTRAINT_LEN): Add entry for 'q'.
1915         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1916         Add 'q' constraints.
1917         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1918         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1919
1920         * config/bfin/bfin.md (add_with_carry): New pattern.
1921         (s_or_u, su_optab, su_modifier): New code macros/attrs.
1922         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1923         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1924         support unsigned multiplies too.  Removed incorrect commutativity from
1925         operand 1 constraint where appropriate.
1926         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1927         patterns.
1928         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1929         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1930         New patterns.
1931         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1932         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1933         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1934         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1935         usmulhisi_hh_huh): New patterns.
1936
1937         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1938         lshifthi3): Fix output template to use half reg for operand 2.
1939
1940         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1941         instead of R2.
1942
1943         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1944
1945 2007-02-27  Andreas Schwab  <schwab@suse.de>
1946
1947         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1948
1949 2007-02-27  Jan Hubicka  <jh@suse.cz>
1950
1951         * predict.c (last_basic_block_p): Remove.
1952         (tree_estimate_probability): Update return heuristic for commonized
1953         return blocks.
1954
1955 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1956
1957         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1958
1959 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1960
1961         * doc/include/gcc-common.texi (versionsubtitle): New macro.
1962         * doc/cpp.texi: Standardize title page.
1963         * doc/cppinternals.texi: Likewise.
1964         * doc/gcc.texi: Standardize title page, remove version number
1965         from copyright page.
1966         * doc/gccint.texi: Likewise.
1967         * doc/install.texi: Standardize title page, add table of
1968         contents.
1969
1970 2007-02-26  Jan Hubicka  <jh@suse.cz>
1971
1972         * predict.def: Set outcomes according to more recent results.
1973         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1974         Remove dead predictors.
1975         * predict.c (return_prediction): Fix pasto.
1976
1977 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1978
1979         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1980         change; avoid a memory leak when returning early.
1981
1982 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
1983
1984         * c-decl.c (static_ctors): Move to c-common.c.
1985         (static_dtors): Likewise.
1986         (finish_function): Use c_record_cdtor_fn.
1987         (build_cdtor): Move to c-common.c.
1988         (c_write_global_declarations): Use c_build_cdtor_fns.
1989         * c-common.h (static_ctors): Declare.
1990         (static_dtors): Likewise.
1991         (c_record_cdtor_fn): Likewise.
1992         (c_build_cdtor_fns): Likewise.
1993         * c-common.c (static_ctors): New variable.
1994         (static_dtors): Likewise.
1995         (c_record_cdtor_fn): New function.
1996         (build_cdtor): Move from c-decl.c
1997         (c_build_cdtor_fns): New function.
1998
1999         * output.h (assemble_addr_to_section): Declare.
2000         (get_cdtor_priority_section): Likewise.
2001         * varasm.c (assemble_addr_to_section): New function.
2002         (get_cdtor_priority_section): Likewise.
2003         (default_named_section_asm_out_destructor): Use them.
2004         (destor_dtor_section_asm_out_destructor): Likewise.
2005         (default_named_section_asm_out_constructor): Likewise.
2006         (default_ctor_section_asm_out_constructor): Likewise.
2007         * config.gcc (*-*-vxworks*): Include vxworks.o.
2008         * config/t-vxworks (vxworks.o): New target.
2009         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
2010         (TARGET_ASM_CONSTRUCTOR): Define.
2011         (TARGET_ASM_DESTRUCTOR): Likewise.
2012         (vxworks_asm_out_constructor): Declare.
2013         (vxworks_asm_out_destructor): Likewise.
2014
2015         * c-common.c (get_priority): Check that we have not just an
2016         INTEGER_CST, but an integer constant with integeral type.
2017
2018 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
2019
2020         PR tree-optimization/30938
2021         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
2022         use &dt[nargs-1] instead of &dt[nargs] in the call to
2023         vect_is_simple_use().
2024
2025 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
2026
2027         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
2028         from register elimination as PRE_MODIFY / POST_MODIFY increments.
2029         Do not attempt to handle MEM inside auto-inc expressions.
2030         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
2031         of a register modified by an auto-inc expression.  However, do handle
2032         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
2033         (elimination_effects): Prohibit elimination of a register modified
2034         by an auto-inc expression.  Disable register elimination rules whose
2035         target register is modified by an auto-inc expression with variable
2036         increment.
2037
2038 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
2039
2040         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
2041         off-by-one error.
2042         (array_at_struct_end_p): New function.
2043         (idx_infer_loop_bounds): Use it.
2044         (estimate_numbers_of_iterations_loop): Export.
2045         * predict.c (predict_loops): Use estimated_loop_iterations_int.
2046         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
2047         (tree_estimate_probability): Call record_loop_exits.
2048         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
2049         (estimated_loop_iterations, estimated_loop_iterations_int,
2050         estimated_loop_iterations_tree): New functions.
2051         (analyze_siv_subscript_cst_affine,
2052         compute_overlap_steps_for_affine_1_2,
2053         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
2054         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
2055         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
2056         (PRED_LOOP_ITERATIONS_GUESSED): New.
2057         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
2058         * cfgloop.h (estimate_numbers_of_iterations_loop,
2059         estimated_loop_iterations_int): Declare.
2060
2061 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
2062
2063         * doc/extend.texi: Document optional priority argument to
2064         constructors and destructors.
2065         * tree.c (init_priority_for_decl): Adjust GTY markers.
2066         (init_ttree): Use priority-info hash functions for
2067         init_priority_for_decl.
2068         (tree_map_eq): Rename to ...
2069         (tree_map_base_eq): ... this.
2070         (tree_map_marked_p): Rename to ...
2071         (tree_map_base_marked_p): ... this.
2072         (tree_map_base_hash): New function.
2073         (decl_init_priority_lookup): Rework.
2074         (decl_fini_priority_lookup): New function.
2075         (decl_priority_info): New function.
2076         (decl_init_priority_insert): Use it.
2077         (decl_fini_priority_insert): Likewise.
2078         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
2079         hierarchy.
2080         (decl_restrict_base_insert): Likewise.
2081         (decl_debug_expr_insert): Likewise.
2082         (decl_value_expr_lookup): Likewise.
2083         (decl_value_expr_insert): Likewise.
2084         * tree.h (priority_type): New type.
2085         (decl_init_priority_lookup): Use priority_type.
2086         (decl_fini_priority_lookup): New function.
2087         (decl_init_priority_insert): Use priority_type.
2088         (decl_fini_priority_insert): New function.
2089         (DECL_HAS_INIT_PRIORITY): Tweak comments.
2090         (DECL_INIT_PRIORITY): Likewise.
2091         (SET_DECL_INIT_PRIORITY): Add comment.
2092         (DECL_FINI_PRIORITY): New macro.
2093         (SET_DECL_FINI_PRIORITY): Likewise.
2094         (DEFAULT_INIT_PRIORITY): Document.
2095         (MAX_INIT_PRIORITY): Likewise.
2096         (MAX_RESERVED_INIT_PRIORITY): Likewise.
2097         (tree_map_base): New type.
2098         (tree_map_base_eq): New function.
2099         (tree_map_base_hash): Likewise.
2100         (tree_map_base_marked_p): Likewise.
2101         (tree_map): Inherit from tree_map_base.
2102         (tree_map_eq): Make it a macro.
2103         (tree_map_marked_p): Likewise.
2104         (tree_int_map): Inherit from tree_map_base.
2105         (tree_int_map_eq): Make it a macro.
2106         (tree_int_map_hash): Likewise.
2107         (tree_int_map_marked_p): Likewise.
2108         (tree_priority_map): New type.
2109         (tree_priority_map_eq): New macro.
2110         (tree_priority_map_hash): Likewise.
2111         (tree_priority_map_marked_p): Likewise.
2112         * varasm.c (emults_decl): Adjust for refactoring of tree_map
2113         hierarchy.
2114         (emutls_common_1): Likewise.
2115         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2116         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
2117         of tree_map hierarchy.
2118         * tree-cfg.c (move_stmt_r): Likewise.
2119         (new_label_mapper): Likewise.
2120         * c-tree.h (c_expand_body): Move to ...
2121         * c-common.h (c_expand_body): ... here.
2122         * c-decl.c (c_expand_body): Move to ...
2123         * c-common.c (c_expand_body): ... here.
2124         (c_common_attribute_table): Allow 1 argument for the constructor
2125         and destructor attributes.
2126         (get_priority): New function.
2127         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
2128         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
2129
2130 2007-02-24  Jan Hubicka  <jh@suse.cz>
2131
2132         PR middle-end/30509
2133         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
2134
2135 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
2136             Jan Hubicka  <jh@suse.cz>
2137
2138         PR target/30778
2139         * i386.c (counter_mode): New function.
2140         (expand_set_or_movmem_via_loop): Use it.
2141         (expand_movmem_epilogue): Likewise; fix pasto.
2142         (ix86_expand_movmem): Do emit guard even for constant counts.
2143         (ix86_expand_setmem): Likewise.
2144
2145 2007-02-25  Nick Clifton  <nickc@redhat.com>
2146
2147         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
2148         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2149
2150 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
2151
2152         PR target/30770
2153         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
2154         count argument with 0x10, not with 0x16.
2155         (expand_setmem_epilogue): Ditto.
2156
2157 2007-02-24  Mike Stump  <mrs@apple.com>
2158
2159         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
2160         symbols.
2161
2162 2007-02-24  Richard Guenther  <rguenther@suse.de>
2163
2164         PR middle-end/30951
2165         * fold-const.c (fold_binary): Fold x +- CST op x for
2166         EQ_EXPR and NE_EXPR.
2167
2168 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2169
2170         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
2171
2172 2007-02-24  Jan Hubicka  <jh@suse.cz>
2173
2174         * cgraphunit.c (decide_is_function_needed): Honor
2175         -fkeep-inline-functions.
2176
2177 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2178
2179         * builtins.c (fold_builtin_modf): New.
2180         (fold_builtin_2): Use it.
2181
2182 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2183
2184         * loop-iv.c (implies_p): Detect additional cases where A implies B.
2185         (determine_max_iter): Take additional LOOP arg; all callers changed.
2186         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
2187         one using simplifications.
2188         (simplify_using_initial_values): Return if the expression becomes
2189         invalid due to altered regs.
2190
2191 2007-02-23  DJ Delorie  <dj@redhat.com>
2192
2193         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
2194
2195 2007-02-23  Mike Stump  <mrs@apple.com>
2196
2197         * tlink.c (scan_linker_output): Parse linker messages from
2198         darwin9's linker better.
2199
2200 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
2201
2202         PR debug/29614
2203         * varpool.c (varpool_assemble_pending_decls):  Set
2204         varpool_last_needed_node to null.
2205
2206 2007-02-23  DJ Delorie  <dj@redhat.com>
2207
2208         * config/i386/i386.c (ix86_data_alignment): Don't specify an
2209         alignment bigger than the object file can handle.
2210
2211 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
2212
2213         PR target/30825
2214         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
2215         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
2216         (*movsf_1): Penalize MMX moves.
2217
2218 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
2219
2220         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
2221         2^32-1 or more times unless flag_unsafe_loop_optimizations.
2222
2223         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
2224
2225 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2226
2227         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
2228         (fold_builtin_1): Use them.
2229         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2230         BUILT_IN_SIGNIFICAND.
2231
2232 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2233
2234         * config/i386/i386.c (bdesc_1arg): Initialize
2235         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
2236         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
2237         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
2238         and IX86_BUILTIN_MOVSLDUP.
2239
2240 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
2241
2242         PR rtl-optimization/30841
2243         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
2244
2245 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2246
2247         * builtins.c (fold_builtin_frexp): New.
2248         (fold_builtin_2): Use it.
2249
2250 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
2251
2252         * doc/invoke.texi (Spec Files): Document getenv spec function.
2253
2254         * gcc.c (getenv_spec_function): New function.
2255         (static_spec_functions): Add it.
2256         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
2257         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
2258         header files.
2259
2260 2007-02-22  Michael Matz  <matz@suse.de
2261
2262         PR c++/29433
2263         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
2264         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
2265
2266 2007-02-22  Ian Lance Taylor  <iant@google.com>
2267
2268         PR debug/30898
2269         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
2270         (mem_loc_descriptor): Call it.
2271
2272 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
2273             Ira Rosen  <irar@il.ibm.com>
2274
2275         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
2276
2277 2007-02-22  Ira Rosen  <irar@il.ibm.com>
2278
2279         PR tree-optimization/30843
2280         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
2281         stores only after all the group is vectorized.
2282
2283 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
2284
2285         PR tree-optimization/30858
2286         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
2287         in the reduction cycle have a single use in the loop.
2288         * tree-vectorizer.h (relevant): Add documentation.
2289
2290 2007-02-20  Mike Stump  <mrs@apple.com>
2291
2292         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
2293         * configure: Regenerate.
2294
2295 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2296
2297         Change the defaults of some parameters and options.
2298         * config/spu/spu-protos.h (spu_optimization_options): Declare.
2299         * config/spu/spu.c (spu_optimization_options): Add.
2300         (spu_override_options): Change params in spu_optimization_options.
2301         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
2302
2303         Register 127 is only 16 byte aligned when used as a frame pointer.
2304         * config/spu/spu-protos.h (spu_init_expanders): Declare.
2305         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
2306         HARD_FRAME_POINTER_REGNUM.
2307         (spu_legitimate_address):  Use regno_aligned_for_reload.
2308         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
2309         aligned when frame_pointer_needed is true.
2310         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
2311         to 8 bits.
2312         * config/spu/spu.h (INIT_EXPANDERS): Define.
2313
2314         Make sure shift and rotate instructions have valid immediate operands.
2315         * config/spu/predicates.md (spu_shift_operand): Remove.
2316         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
2317         * config/spu/constraints.md (W, O): Extend range.
2318         * config/spu/spu.md (umask, nmask): Define.
2319         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
2320         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
2321         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
2322         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
2323         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
2324         (lshr<mode>3_reg):  Fix rtl description.
2325
2326         Make sure mulhisi immediate operands are valid.
2327         * config/spu/predicates.md (imm_K_operand): Add.
2328         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
2329
2330         Generate constants using fsmbi and andi.
2331         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
2332         (print_operand, spu_split_immediate, classify_immediate,
2333         fsmbi_const_p): Handle IC_FSMBI2.
2334
2335         Correctly handle a CONST_VECTOR containing symbols.
2336         * config/spu/spu.c (print_operand): Handle HIGH correctly.
2337         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
2338         (immediate_load_p): Allow symbols that use 2 instructions to create.
2339         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
2340         with symbols when flag_pic is set.
2341         (const_vector_immediate_p): New.
2342         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
2343         accept a CONST_VECTOR with symbols.
2344         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
2345         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
2346         correctly.
2347         * config/spu/spu.md (high, low): Delete.
2348         (low_<mode>): Define.
2349
2350         Remove INTRmode and INTR_REGNUM, which didn't work.
2351         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
2352         of INTR_REGNUM.
2353         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
2354         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
2355         peephole2 pattern): Don't use INTR or 131.
2356         (movintrcc): Delete.
2357         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
2358         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
2359         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
2360         (UNSPEC_SET_INTR): Add.
2361         * config/spu/spu-modes.def (INTR): Remove.
2362
2363         More accurate warnings about run-time relocations.
2364         * config/spu/spu.c (reloc_diagnostic): Test in_section.
2365
2366         Correctly warn about immediate arguments to specific intrinsics.
2367         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
2368         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
2369         the instruction predicate.
2370
2371         Fix tree check errors with latest update.
2372         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
2373         CALL_EXPR_ARG.
2374         (spu_expand_builtin): Use CALL_EXPR_FN.
2375
2376         Add missing specific intrinsics.
2377         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
2378         si_bislede.
2379         * config/spu/spu_internals.h: Ditto.
2380
2381         Fix incorrect operand modifiers.
2382         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
2383         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
2384
2385         Optimize one case of zero_extend of a vec_select.
2386         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
2387
2388         Accept any immediate for hbr.
2389         * config/spu/spu.md (hbr):  Change s constraints to i.
2390
2391 2007-02-21  Paul Brook  <paul@codesourcery.com>
2392
2393         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
2394         condexec_count when skipping USE and CLOBBER.
2395
2396 2007-02-21  Nick Clifton  <nickc@redhat.com>
2397
2398         * common.opt (Warray-bounds): Add Warning attribute.
2399         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
2400         Likewise.
2401         (fsized-zeroes): Add Optimization attribute.
2402         (fsplit-wide-types, ftree-scev-cprop): Likewise.
2403         * c.opt (Wc++0x-compat): Add Warning attribute.
2404
2405 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
2406
2407         PR middle-end/30761
2408         * reload1.c (eliminate_regs_in_insn): In the single_set special
2409         case, attempt to re-recognize the insn before falling back to
2410         having reload fix it up.
2411
2412 2007-02-20  Eric Christopher  <echristo@gmail.com>
2413
2414         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
2415         Rewrite accordingly.
2416         (frv_read_iacc_argument): Ditto.
2417         (frv_expand_set_builtin): Take a call instead of arglist, update for
2418         above changes.
2419         (frv_expand_unop_builtin): Ditto.
2420         (frv_expand_binop_builtin): Ditto.
2421         (frv_expand_cut_builtin): Ditto.
2422         (frv_expand_binopimm_builtin): Ditto.
2423         (frv_expand_voidbinop_builtin): Ditto.
2424         (frv_expand_int_void2arg): Ditto.
2425         (frv_expand_prefetches): Ditto.
2426         (frv_expand_voidtriop_builtin): Ditto.
2427         (frv_expand_voidaccop_builtin): Ditto.
2428         (frv_expand_load_builtin): Ditto.
2429         (frv_expand_store_builtin): Ditto.
2430         (frv_expand_mdpackh_builtin): Ditto.
2431         (frv_expand_mclracc_builtin): Ditto.
2432         (frv_expand_mrdacc_builtin): Ditto.
2433         (frv_expand_mwtacc_builtin): Ditto.
2434         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
2435         calls for above.
2436
2437 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
2438
2439         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
2440         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
2441         cmpb instruction.
2442         (HAVE_GAS_DFP): Check for assembler support of decimal floating
2443         point instructions.
2444         * configure: Regenerate.
2445         * config.in: Regenerate.
2446         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
2447         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
2448         masks to power6 and power6x and to POWERPC_MASKS.
2449         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2450         _ARCH_PWR6.
2451         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
2452         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
2453         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2454         Access PROTOTYPE as variable, not mask.
2455
2456 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
2457
2458         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
2459         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
2460         * combine.c (adjust_for_new_dest): Use it.
2461         * postreload.c (reload_combine): Likewise.
2462
2463 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
2464
2465         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
2466         notes on an insn with multiple sets, even if single_set returns
2467         non-NULL for that insn.
2468
2469 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2470
2471         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
2472         scalbn and scalbln.
2473
2474 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
2475
2476         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
2477         if user didn't pass it.
2478         * config/i386/darwin.h (CC1_SPEC): Likewise.
2479         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
2480         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
2481         -mmacosx-version-min.
2482
2483 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2484             Uros Bizjak  <ubizjak@gmail.com>
2485
2486         * optabs.h (enum optab_index): Add new OTI_scalb.
2487         (scalb_optab): Define corresponding macro.
2488         * optabs.c (init_optabs): Initialize scalb_optab.
2489         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
2490         patterns.
2491         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
2492         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
2493         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
2494         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
2495         flag_unsafe_math_optimizations is set.
2496
2497         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
2498         to implement scalbf, scalb and scalbl built-ins as inline x87
2499         intrinsics.
2500
2501 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2502             DJ Delorie <dj@redhat.com>
2503
2504         PR other/30824
2505         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
2506         (diagnostic_report_diagnostic): ... here, and turn them into real
2507         errors. If warnings are inhibited, no need to do anything.
2508
2509 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
2510
2511         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
2512         better code generation.
2513
2514 2007-02-20  Ben Elliston  <bje@au.ibm.com>
2515
2516         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
2517
2518 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
2519
2520         * config/alpha/alpha.c, config/alpha/alpha.md,
2521         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
2522         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
2523         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
2524         config/arm/lib1funcs.asm: Follow spelling conventions.
2525
2526         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
2527         config/fr30/fr30.md, config/i386/i386.h,
2528         config/iq2000/iq2000.h, config/iq2000/predicates.md,
2529         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
2530         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2531         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
2532         config/rs6000/altivec.md, config/rs6000/rs6000.c,
2533         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
2534         config/sparc/sparc.c, config/sparc/sparc.h,
2535         config/sparc/sparc.md, config/spu/constraints.md,
2536         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
2537         conventions.
2538
2539 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
2540
2541         PR target/29943
2542         * varasm.c (use_blocks_for_decl_p): Return false for decls with
2543         alias attribute.
2544
2545 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
2546
2547         * doc/invoke.texi (-ftree-lrs): Remove.
2548
2549 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
2550
2551         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
2552         NULL.
2553
2554 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
2555
2556         * config/ia64/ia64.c (ia64_expand_builtin): Use the
2557         new CALL_EXPR_FN macro for retrieving the function
2558         declaration of the input expression.
2559
2560 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2561
2562         * c.opt (Waddress): New.
2563         * common.opt (Walways-true): Delete.
2564         (Wstring-literal-comparison): Delete.
2565         * doc/invoke.texi (Warning Options): Delete -Walways-true and
2566         -Wstring-literal-comparison. Add -Waddress.
2567         (Waddress): New.
2568         (Walways-true): Delete.
2569         (Wstring-literal-comparison): Delete.
2570         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
2571         consistently instead of -Walways-true in example.
2572         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2573         * c-typeck.c (parser_build_binary_op): Replace
2574         -Wstring-literal-comparison and -Walways-true with -Waddress.
2575         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2576         with -Waddress.
2577
2578 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
2579
2580         * tree-cfg.c (dump_function_to_file): Be prepared for functions
2581         without DECL_STRUCT_FUNCTION initialized.
2582
2583 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
2584
2585         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2586         due to calls to functions taking pointers as parameters.
2587
2588 2007-02-19  Richard Henderson  <rth@redhat.com>
2589
2590         PR debug/29558
2591         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2592         in memory.
2593
2594 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2595
2596         * config/s390/s390.c (s390_call_saved_register_used,
2597         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2598         accessed to the new scheme.
2599
2600 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2601
2602         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2603         (cris_print_index, cris_print_operand, cris_print_operand_address)
2604         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2605         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2606         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2607         GET_CODE () == xxx.
2608         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2609         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2610         GO_IF_LEGITIMATE_ADDRESS): Ditto.
2611         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2612         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2613         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2614         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2615         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2616         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2617         (uminsi3, call, call_value): Ditto.
2618         (define_split: indir_to_reg_split, unnamed): Ditto.
2619
2620 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
2621
2622         PR tree-optimization/30975
2623         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2624         wrong assert.
2625
2626 2007-02-18  Eric Christopher  <echristo@gmail.com>
2627
2628         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2629         Remove use of arglist.
2630         (mips_expand_builtin): Remove use of arglist, pass in expr.
2631         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2632         (mips_expand_builtin_movtf): Ditto.
2633         (mips_expand_builtin_compare): Ditto.
2634
2635 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2636
2637         * tree-sra.c (sra_build_assignment): Replace assertion
2638         checking with a comment explaining why it can't be done.
2639
2640 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2641
2642         PR middle-end/30833
2643         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2644         during CALL_EXPR representation conversion.
2645         * tree-ssa-propagate.c (set_rhs): Likewise.
2646
2647 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2648
2649         * tree-sra.c (sra_build_assignment): Disable assertion checking
2650         for now.
2651
2652 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2653
2654         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2655         instead of calling build2 with a GIMPLE_MODIFY_STMT.
2656         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2657         Likewise.
2658         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2659         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
2660         gimplify_init_ctor_eval_range, gimple_push_cleanup,
2661         gimplify_omp_for, gimplify_omp_atomic_pipeline,
2662         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2663         force_gimple_operand): Likewise.
2664         * ipa-cp.c (constant_val_insert): Likewise.
2665         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2666         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2667         perfect_nestify): Likewise.
2668         * langhooks.c (lhd_omp_assignment): Likewise.
2669         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2670         lower_copyprivate_clauses, lower_send_clauses,
2671         lower_send_shared_vars, expand_parallel_call,
2672         expand_omp_for_generic, expand_omp_for_static_nochunk,
2673         expand_omp_for_static_chunk, expand_omp_sections,
2674         lower_omp_single_copy, lower_omp_for_lastprivate,
2675         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2676         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2677         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2678         Likewise.
2679
2680 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
2681
2682         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2683         config/sh/sh.md: Follow spelling conventions.
2684
2685         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2686         config/frv/predicates.md: Follow spelling conventions.
2687
2688         * config/m68k/linux-unwind.h: Fix a comment typo.
2689         * target.h: Follow spelling conventions.
2690
2691 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2692
2693         PR rtl-optimization/28173
2694         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
2695         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2696         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2697         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2698         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2699
2700 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2701
2702         * builtins.c (fold_builtin_load_exponent): New.
2703         (fold_builtin_2): Use it.
2704
2705 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
2706
2707         PR rtl-optimization/30773
2708         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2709         if we fail to attach a REG_EQUIV note.
2710
2711 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
2712             Roger Sayle  <roger@eyesopen.com>
2713
2714         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2715
2716 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2717
2718         * calls.c (initialize_argument_information): Pass original EXP
2719         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
2720         code to split complex arguments here, as part of initializing the
2721         ARGS array.
2722         (expand_call): Remove code that builds a list of arguments and
2723         inserts implicit arguments into it.  Instead, just count how many
2724         implicit arguments there will be so we can determine the size of
2725         the ARGS array, and let initialize_argument_information do the work.
2726         (split_complex_values): Delete unused function.
2727
2728 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2729
2730         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2731
2732 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2733
2734         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2735         for arg pointer based indexed addressing.
2736
2737 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2738
2739         * config/ia64/ia64.h, config/ia64/ia64.md,
2740         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2741         spelling conventions.
2742
2743 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2744
2745         * config/m68k/m68k.c (split_di): New.
2746         * config/m68k/m68k-protos.h: Declare split_di.
2747         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2748           Improve predicate handling and split constant shifts.
2749
2750 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2751
2752         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2753         parameter for register bitfield operations, general predicates
2754         cleanup
2755
2756 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2757
2758         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2759         * config/m68k/linux-unwind.h: New file.
2760
2761 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2762
2763         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2764         config/i386/athlon.md, config/ia64/ia64.md,
2765         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2766         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2767         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2768         tree-ssa-loop-niter.c, tree-vect-analyze.c,
2769         tree-vect-transform.c: Fix comment typos.
2770
2771 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
2772
2773         * sched-deps.c (find_insn_list): Remove.
2774         * sched-int.h: Remove the prototype for find_insn_list.
2775
2776 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
2777
2778         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2779         to linker.
2780         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2781         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2782         darwin_rs6000_override_options.
2783         (C_COMMON_OVERRIDE_OPTIONS): Expect
2784         darwin_macosx_version_min to be non-NULL always.
2785         (TARGET_C99_FUNCTIONS): Likewise.
2786         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2787         (DARWIN_MINVERSION_SPEC): New.
2788         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2789         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2790         to cc1*.
2791         (DARWIN_MINVERSION_SPEC): New.
2792         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2793         value.
2794         * config/darwin-c.c (darwin_cpp_builtins): Expect
2795         darwin_macosx_version_min to be non-NULL always.
2796
2797         * config/rs6000/rs6000.c: Clean up trailing whitespace.
2798
2799 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
2800
2801         * config/i386/i386.h (x86_use_xchgb): New.
2802         (TARGET_USE_XCHGB): New macro.
2803         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2804         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2805         Split after reload into bswaphi for shifts of 8.
2806         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2807         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2808         or when optimizing for size.
2809
2810 2007-02-16  Richard Guenther  <rguenther@suse.de>
2811             Christian Bruel  <christian.bruel@st.com>
2812
2813         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2814         DECLs but prefer SSA_NAMEs over DECLs.
2815
2816 2007-02-16  Richard Guenther  <rguenther@suse.de>
2817
2818         * tree-flow-inline.h (single_imm_use_p): Remove.
2819         (zero_imm_uses_p): Likewise.
2820         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2821         instead of single_imm_use_p.
2822         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2823         zero_imm_uses_p.
2824
2825 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2826
2827         PR other/27843
2828         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2829         nested double- and backquotes.
2830
2831 2007-02-15  Roger Sayle  <roger@eyesopen.com>
2832
2833         PR middle-end/30391
2834         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
2835         should be unreachable.
2836         (build2_stat): Allow construction of MODIFY_EXPR at any time.
2837         For the time being redirect GIMPLE_MODIFY_STMT to the new
2838         (renamed) build_gimple_modify_stmt_stat.
2839         (build2_gimple_stat): Rename to...
2840         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2841         Always build a GIMPLE_MODIFY_STMT node.
2842         * tree.h (build2_gimple, build2_gimple_stat): Delete.
2843         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2844         declarations.
2845
2846         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2847         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2848         * tree-complex.c (set_component_ssa_name, expand_complex_move,
2849         expand_complex_div_wide): Likewise.
2850         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2851         * tree-ssa-loop-im.c (schedule_sm): Likewise.
2852         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2853         * tree-ssa-loop-manip.c (create_iv): Likewise.
2854         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2855         abs_replacement): Likewise.
2856         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2857         realify_fake_stores): Likewise.
2858
2859         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2860         node rather than a GIMPLE_MODIFY_STMT node.
2861         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2862         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2863         Likewise.
2864         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2865         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2866         GIMPLE_MODIFY_STMT.
2867
2868 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2869
2870         PR middle-end/30433
2871         * fold-const.c (fold_comparison): Add back the
2872         folding of constant complex comparisions.
2873
2874 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2875
2876         PR middle-end/30729
2877         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2878         effects unknown to this function, return early.
2879
2880 2007-02-15  Ian Lance Taylor  <iant@google.com>
2881
2882         * lower-subreg.c (move_eh_region_note): New static function.
2883         (resolve_simple_move): Call it.
2884         (decompose_multiword_subregs): Track blocks for which we resolve a
2885         simple move which is also a control flow insn.  Pass them to
2886         find_many_sub_basic_blocks.
2887         (pass_lower_subreg): Add TODO_verify_flow.
2888         (pass_lower_subreg2): Likewise.
2889
2890 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2891             Brooks Moses  <brooks.moses@codesourcery.com>
2892             Lee Millward  <lee.millward@codesourcery.com>
2893
2894         * tree.h (enum tree_code_class): Add tcc_vl_exp.
2895         (VL_EXP_CLASS_P): New.
2896         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2897         TREE_CODE_LENGTH.
2898         (TREE_OPERAND_CHECK_CODE): Likewise.
2899         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2900         (TREE_RTL_OPERAND_CHECK): Likewise.
2901         (tree_operand_check_failed): Make second parameter the whole tree
2902         instead of its code.  Fixed callers.
2903         (VL_EXP_CHECK): New.
2904         (TREE_OPERAND_LENGTH): New.
2905         (VL_EXP_OPERAND_LENGTH): New.
2906         (CALL_EXPR_FN): New.
2907         (CALL_EXPR_STATIC_CHAIN): New.
2908         (CALL_EXPR_ARGS): New.
2909         (CALL_EXPR_ARG): New.
2910         (call_expr_nargs): New.
2911         (CALL_EXPR_ARGP): New.
2912         (build_nt_call_list): Declare.
2913         (build_vl_exp_stat): Declare.
2914         (build_vl_exp): New.
2915         (build_call_list): Declare.
2916         (build_call_nary): Declare.
2917         (build_call_valist): Declare.
2918         (build_call_array): Declare.
2919         (call_expr_arg): Declare.
2920         (call_expr_argp): Declare.
2921         (call_expr_arglist): Declare.
2922         (fold_build_call_list): Declare.
2923         (fold_build_call_list_initializer): Declare.
2924         (fold_call_expr): Declare to replace fold_builtin.
2925         (fold_builtin_fputs): Update to agree with modified definition.
2926         (fold_builtin_strcpy): Likewise.
2927         (fold_builtin_strncpy): Likewise.
2928         (fold_builtin_memory_chk): Likewise.
2929         (fold_builtin_stxcpy_chk): Likewise.
2930         (fold_builtin_strncpy_chk): Likewise.
2931         (fold_builtin_next_arg): Likewise.
2932         (fold_build_call_expr): Declare.
2933         (fold_builtin_call_list): Declare.
2934         (fold_builtin_call_valist): Declare.
2935         (build_call_expr): Declare.
2936         (validate_arglist): Update to agree with modified definition.
2937         (tree_operand_length): New.
2938         (call_expr_arg_iterator): New.
2939         (init_call_expr_arg_iterator): New.
2940         (next_call_expr_arg): New.
2941         (first_call_expr_arg): New.
2942         (more_call_expr_args_p): New.
2943         (FOR_EACH_CALL_EXPR_ARG): New.
2944
2945         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2946         and tcc_gimple_stmt.
2947         (tree_code_size): Update documentation.  Use sizeof (tree) rather
2948         than sizeof (char *).
2949         (tree_size): Likewise.  Add case for tcc_vl_exp.
2950         (tree_node_structure): Add case for tcc_vl_exp.
2951         (contains_placeholder_p): Likewise.
2952         (substitute_in_expr): Likewise.
2953         (substitute_placeholder_in_expr): Likewise.
2954         (stabilize_reference_1): Likewise.
2955         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
2956         to diagnose breakage of this interface for constructing CALL_EXPRs.
2957         (build_nt): Add similar assertion here.
2958         (build_nt_call_list): New.
2959         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2960         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2961         TREE_CODE_LENGTH.
2962         (get_callee_fndecl): Use new CALL_EXPR accessors.
2963         (tree_operand_check_failed): Change parameters to pass entire node
2964         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2965         (process_call_operands): New.
2966         (build_vl_exp_stat): New.
2967         (build_call_list): New.
2968         (build_call_nary): New.
2969         (build_call_valist): New.
2970         (build_call_array): New.
2971         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2972         (call_expr_arglist): New.
2973
2974         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2975         tcc_vl_exp instead of a fixed-size tcc_expression.
2976
2977         * doc/c-tree.texi (CALL_EXPR): Document new representation and
2978         accessors for CALL_EXPRs.
2979         (AGGR_INIT_EXPR): Likewise.
2980
2981 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2982             Brooks Moses  <brooks.moses@codesourcery.com>
2983             Lee Millward  <lee.millward@codesourcery.com>
2984
2985         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2986         (expand_builtin_nonlocal_goto): Change parameter to be entire
2987         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
2988         (expand_builtin_prefetch): Likewise.
2989         (expand_builtin_classify_type): Likewise.
2990         (mathfn_built_in): Return NULL_TREE instead of 0.
2991         (expand_errno_check): Use new CALL_EXPR accessors.
2992         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2993         Return NULL_RTX instead of 0.
2994         (expand_builtin_mathfn_2): Likewise.
2995         (expand_builtin_mathfn_3): Likewise.
2996         (expand_builtin_interclass_mathfn): Likewise.
2997         (expand_builtin_sincos): Likewise.
2998         (expand_builtin_cexpi): Likewise.
2999         (expand_builtin_int_roundingfn): Likewise.
3000         (expand_builtin_int_roundingfn_2): Likewise.
3001         (expand_builtin_pow): Likewise.
3002         (expand_builtin_powi): Likewise.
3003         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
3004         of arglist, fixing callers appropriately.  Use new CALL_EXPR
3005         accessors and constructors.  Return NULL_RTX instead of 0.
3006         (expand_builtin_strstr): Likewise.
3007         (expand_builtin_strchr): Likewise.
3008         (expand_builtin_strrchr): Likewise.
3009         (expand_builtin_strpbrk): Likewise.
3010         (expand_builtin_memcpy): Likewise.
3011         (expand_builtin_mempcpy): Likewise.
3012         (expand_builtin_mempcpy_args): New.
3013         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
3014         (expand_builtin_memmove_args): New.
3015         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
3016         (expand_movstr): Likewise.
3017         (expand_builtin_strcpy): Likewise.
3018         (expand_builtin_strcpy_args): New.
3019         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
3020         (expand_builtin_strncpy): Likewise.
3021         (expand_builtin_memset): Likewise.
3022         (expand_builtin_memset_args): New.
3023         (expand_builtin_bzero): Similarly to expand_builtin_memset.
3024         (expand_builtin_memcmp): Likewise.
3025         (expand_builtin_strcmp): Likewise.
3026         (expand_builtin_strncmp): Likewise.
3027         (expand_builtin_strcat): Likewise.
3028         (expand_builtin_strncat): Likewise.
3029         (expand_builtin_strspn): Likewise.
3030         (expand_builtin_strcspn): Likewise.
3031         (expand_builtin_args_info): Likewise.
3032         (expand_builtin_va_start): Likewise.
3033         (gimplify_va_arg_expr): Likewise.
3034         (expand_builtin_va_end): Likewise.
3035         (expand_builtin_va_copy): Likewise.
3036         (expand_builtin_frame_address): Likewise.
3037         (expand_builtin_alloca): Likewise.
3038         (expand_builtin_bswap): Likewise.
3039         (expand_builtin_unop): Likewise.
3040         (expand_builtin_fputs): Likewise.
3041         (expand_builtin_expect): Likewise.
3042         (expand_builtin_fabs): Likewise.
3043         (expand_builtin_copysign): Likewise.
3044         (expand_builtin_printf): Likewise.
3045         (expand_builtin_fprintf): Likewise.
3046         (expand_builtin_sprintf): Likewise.
3047         (expand_builtin_init_trampoline): Likewise.
3048         (expand_builtin_signbit): Likewise.
3049         (expand_builtin_fork_or_exec): Likewise.
3050         (expand_builtin_sync_operation): Likewise.
3051         (expand_builtin_compare_and_swap): Likewise.
3052         (expand_builtin_lock_test_and_set): Likewise.
3053         (expand_builtin_lock_release): Likewise.
3054         (expand_builtin): Likewise.
3055         (builtin_mathfn_code): Likewise.
3056
3057         (fold_builtin_constant_p): Pass call arguments individually instead
3058         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
3059         accessors and constructors.  Return NULL_TREE instead of 0.
3060         (fold_builtin_expect): Likewise.
3061         (fold_builtin_classify_type): Likewise.
3062         (fold_builtin_strlen): Likewise.
3063         (fold_builtin_nan): Likewise.
3064         (integer_valued_real_p): Likewise.
3065         (fold_trunc_transparent_mathfn): Likewise.
3066         (fold_fixed_mathfn): Likewise.
3067         (fold_builtin_cabs): Likewise.
3068         (fold_builtin_sqrt): Likewise.
3069         (fold_builtin_cbrt): Likewise.
3070         (fold_builtin_cos): Likewise.
3071         (fold_builtin_cosh): Likewise.
3072         (fold_builtin_tan): Likewise.
3073         (fold_builtin_sincos): Likewise.
3074         (fold_builtin_cexp): Likewise.
3075         (fold_builtin_trunc): Likewise.
3076         (fold_builtin_floor): Likewise.
3077         (fold_builtin_ceil): Likewise.
3078         (fold_builtin_round): Likewise.
3079         (fold_builtin_int_roundingfn): Likewise.
3080         (fold_builtin_bitop): Likewise.
3081         (fold_builtin_bswap): Likewise.
3082         (fold_builtin_logarithm): Likewise.
3083         (fold_builtin_hypot): Likewise.
3084         (fold_builtin_pow): Likewise.
3085         (fold_builtin_powi): Likewise.
3086         (fold_builtin_exponent): Likewise.
3087         (fold_builtin_memset): Likewise.
3088         (fold_builtin_bzero): Likewise.
3089         (fold_builtin_memory_op): Likewise.
3090         (fold_builtin_bcopy): Deleted; call site changed to invoke
3091         fold_builtin_memory_op directly.
3092         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
3093         (fold_builtin_strncpy): Likewise.
3094         (fold_builtin_memcmp): Likewise.
3095         (fold_builtin_strcmp): Likewise.
3096         (fold_builtin_strncmp): Likewise.
3097         (fold_builtin_signbit): Likewise.
3098         (fold_builtin_copysign): Likewise.
3099         (fold_builtin_isascii): Likewise.
3100         (fold_builtin_toascii): Likewise.
3101         (fold_builtin_isdigit): Likewise.
3102         (fold_builtin_fabs): Likewise.
3103         (fold_builtin_abs): Likewise.
3104         (fold_builtin_fmin_fmax): Likewise.
3105         (fold_builtin_carg): Likewise.
3106         (fold_builtin_classify): Likewise.
3107         (fold_builtin_unordered_cmp): Likewise.
3108
3109         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
3110         New functions split out from fold_builtin_1.
3111         (fold_builtin_n): New.
3112         (fold_builtin_varargs): New.
3113         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
3114         instead.
3115         (fold_call_expr): New.
3116         (build_function_call_expr): Rewrite to use new helper function.
3117         (fold_builtin_call_list): New.
3118         (build_call_expr): New.
3119         (fold_builtin_call_valist): New.
3120         (rewrite_call_expr): New.
3121         (validate_arg): New.
3122         (validate_arglist): Change parameter to be entire CALL_EXPR instead
3123         of an arglist.  Change return type to bool.  Use new CALL_EXPR
3124         accessors.
3125
3126         (fold_builtin_strstr):  Pass call arguments individually instead
3127         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
3128         accessors and constructors.  Return NULL_TREE instead of 0.
3129         (fold_builtin_strchr): Likewise.
3130         (fold_builtin_strrchr): Likewise.
3131         (fold_builtin_strpbrk): Likewise.
3132         (fold_builtin_strcat): Likewise.
3133         (fold_builtin_strncat): Likewise.
3134         (fold_builtin_strspn): Likewise.
3135         (fold_builtin_strcspn): Likewise.
3136         (fold_builtin_fputs): Likewise.
3137         (fold_builtin_next_arg): Likewise.
3138         (fold_builtin_sprintf): Likewise.
3139
3140         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
3141         NULL_RTX instead of 0.
3142         (expand_builtin_memory_chk): Likewise.
3143         (maybe_emit_chk_warning): Likewise.
3144         (maybe_emit_sprintf_chk_warning): Likewise.
3145
3146         (fold_builtin_object_size): Pass call arguments individually instead
3147         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
3148         accessors and constructors.  Return NULL_TREE instead of 0.
3149         (fold_builtin_memory_chk): Likewise.
3150         (fold_builtin_stxcpy_chk): Likewise.
3151         (fold_builtin_strncpy_chk): Likewise.
3152         (fold_builtin_strcat_chk): Likewise.
3153         (fold_builtin_strcat_chk): Likewise.
3154         (fold_builtin_strncat_chk): Likewise.
3155         (fold_builtin_sprintf_chk): Likewise.
3156         (fold_builtin_snprintf_chk): Likewise.
3157         (fold_builtin_printf): Likewise.
3158         (fold_builtin_vprintf): Likewise.
3159
3160         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
3161         constructors.
3162         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
3163         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3164         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
3165         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
3166         (fold_unary): Likewise.
3167         (fold_binary): Likewise.
3168         (fold_ternary): Remove CALL_EXPR case, since they are no longer
3169         ternary expressions.
3170         (fold): Add logic for tcc_vl_exp.
3171         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
3172         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3173         (fold_build3_stat): Add assertion to flag broken interface for
3174         constructing CALL_EXPRs.
3175         (fold_build_call_list): New.
3176         (fold_build_call_list_initializer): New.
3177         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
3178         constructors.
3179         (fold_strip_sign_ops): Likewise.
3180
3181 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3182             Brooks Moses  <brooks.moses@codesourcery.com>
3183             Lee Millward  <lee.millward@codesourcery.com>
3184
3185         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
3186         accessors and dump arguments explicitly.
3187
3188         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
3189         TREE_CODE_LENGTH.
3190         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
3191         explicitly.
3192         (print_call_name): Use new CALL_EXPR accessors.
3193
3194         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
3195         CALL_EXPR arguments explicitly instead of as a list.  Use
3196         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3197
3198         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
3199         (vrp_visit_stmt): Likewise.
3200
3201         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
3202         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
3203         TREE_CODE_LENGTH.
3204         (force_move_till_expr): Likewise.
3205
3206         * targhooks.c (default_external_stack_protect_fail): Use
3207         build_call_expr instead of build_function_call_expr.
3208         (default_hidden_stack_protect_fail): Likewise.
3209
3210         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
3211         build the call.
3212
3213         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
3214         and walk arguments explicitly.
3215
3216         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
3217         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3218         (expand_simple_operations): Likewise.
3219         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
3220
3221         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
3222         of TREE_CODE_LENGTH.
3223         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
3224
3225         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
3226         instead of TREE_CODE_LENGTH.
3227
3228         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
3229         (tree_ic_transform): Likewise.
3230         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
3231         parameter instead of arglist.  Fix callers.
3232         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
3233         (tree_stringops_transform): Likewise.
3234         (tree_indirect_call_to_profile): Likewise.
3235         (tree_stringops_values_to_profile): Likewise.
3236
3237         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
3238         (eliminate_tail_call): Likewise.
3239
3240         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
3241
3242         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3243         Use TREE_OPERAND_LENGTH and generalize to handle any number of
3244         operands.
3245         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
3246
3247         * omp-low.c (build_omp_barrier): Use build_call_expr.
3248         (lower_rec_input_clauses): Likewise.
3249         (lower_reduction_clauses): Likewise.
3250         (expand_parallel_call): Likewise.
3251         (maybe_catch_exception): Likewise.
3252         (expand_omp_for_generic): Likewise.
3253         (expand_omp_for_static_nochunk): Likewise.
3254         (expand_omp_sections): Likewise.
3255         (lower_omp_single_simple): Likewise.
3256         (lower_omp_single_copy): Likewise.
3257         (lower_omp_master): Likewise.
3258         (lower_omp_ordered): Likewise.
3259         (lower_omp_critical): Likewise.
3260
3261         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
3262         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
3263
3264         * tree-gimple.c (is_gimple_call_addr): Fix doc.
3265         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
3266         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
3267
3268         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
3269         and generalize to handle any number of operands.
3270         (chrec_contains_undetermined): Likewise.
3271         (tree_contains_chrecs): Likewise.
3272         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
3273
3274         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
3275
3276         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
3277         fold_call_expr instead of fold_builtin.
3278         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
3279         match declarations there.
3280         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
3281         updates.
3282
3283         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
3284         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3285
3286         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
3287         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
3288
3289         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
3290         accessors.
3291
3292         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
3293         (execute_cse_sincos): Use new CALL_EXPR accessors.
3294
3295         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
3296
3297         * gimple-low.c (lower_function_body): Use build_call_expr.
3298         (lower_builtin_setjmp): Likewise.
3299
3300         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
3301         (set_storage_via_libcall): Likewise.
3302         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
3303         instead of TREE_CODE_LENGTH.
3304         (expand_expr_real_1): Use new CALL_EXPR accessors.
3305
3306         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
3307         generalize to handle any number of operands.
3308         (TB_parent_eq): Likewise.
3309
3310         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
3311         (strip_builtin_expect): Likewise.
3312
3313         * function.c (gimplify_parameters): Use build_call_expr.
3314
3315         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
3316         instead of TREE_CODE_LENGTH.
3317
3318         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
3319         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
3320
3321         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
3322         iterators.
3323
3324         * gimplify.c (build_stack_save_restore): Use build_call_expr.
3325         (gimplify_decl_expr): Likewise.
3326         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
3327         Use new CALL_EXPR iterators.
3328         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
3329         (gimplify_modify_expr_to_memset): Likewise.
3330         (gimplify_variable_sized_compare): Likewise.
3331         (gimplify_omp_atomic_fetch_op): Likewise.
3332         (gimplify_omp_atomic_pipeline): Likewise.
3333         (gimplify_omp_atomic_mutex): Likewise.
3334         (gimplify_function_tree): Likewise.
3335
3336         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
3337         (call_expr_flags): Likewise.
3338         (expand_call): Likewise.
3339
3340         * except.c (expand_builtin_eh_return_data_regno): Pass entire
3341         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
3342         accessors.
3343
3344         * coverage.c (create_coverage): Use build_call_expr.
3345
3346         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
3347         (temp_call_expr_obstack): New.
3348         (pool_copy_list): Delete.
3349         (temp_copy_call_expr): New.
3350         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
3351         CALL_EXPR accessors.  Get rid of special goo for copying argument
3352         lists and use temp_copy_call_expr instead.
3353         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
3354         CALL_EXPR accessors.
3355         (create_expression_by_pieces): Likewise.  Use build_call_array
3356         to construct the result instead of fold_build3.
3357         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
3358         dealing with argument lists.
3359         (init_pre): Remove references to expression_node_pool and
3360         list_node_pool.  Init temp_call_expr_obstack instead.
3361         (fini_pre): Remove references to expression_node_pool and
3362         list_node_pool.
3363
3364         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
3365         and walk arguments explicitly instead of as a list.
3366
3367         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
3368         (mx_register_decls): Likewise.
3369         (mudflap_register_call): Likewise.
3370         (mudflap_finish_file): Likewise.
3371
3372         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
3373         (ipa_callsite_compute_param): Likewise.
3374
3375         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
3376         accessors and constructor.
3377
3378         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
3379         accessors and constructor.
3380         (convert_tramp_reference): Likewise.
3381         (convert_call_expr): Likewise.
3382         (finalize_nesting_tree_1): Likewise.
3383
3384         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
3385         accessors.
3386
3387         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
3388
3389         * tree-inline.c (initialize_inlined_parameters): Pass entire
3390         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
3391         accessors.
3392         (estimate_num_insns_1): Use new CALL_EXPR accessors.
3393         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
3394
3395         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
3396         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3397         (vectorizable_reduction): Likewise.
3398         (vectorizable_call): Use new CALL_EXPR iterators.
3399         (vectorizable_conversion): Use build_call_expr.
3400         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
3401         (vect_gen_widened_results_half): Use build_call_expr.
3402         (vect_setup_realignment): Likewise.
3403         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
3404
3405         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
3406         (pass_through_call): Likewise.
3407         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
3408         fold_builtin.
3409
3410         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
3411         (tree_gen_pow2_profiler): Likewise.
3412         (tree_gen_one_value_profiler): Likewise.
3413         (tree_gen_ic_func_profiler): Likewise.
3414         (tree_gen_average_profiler): Likewise.
3415         (tree_gen_ior_profiler): Likewise.
3416
3417         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
3418         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
3419         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3420
3421         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
3422         of TREE_CODE_LENGTH.
3423
3424         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
3425         of TREE_CODE_LENGTH.
3426
3427         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
3428         constructor.
3429         (convert_to_integer): Likewise.
3430
3431         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
3432         accessors.
3433
3434 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3435             Brooks Moses  <brooks.moses@codesourcery.com>
3436             Lee Millward  <lee.millward@codesourcery.com>
3437
3438         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
3439         accessors.
3440         * config/frv/frv.c (frv_expand_builtin): Likewise.
3441         * config/s390/s390.c (s390_expand_builtin): Likewise.
3442
3443         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
3444         (sparc_expand_builtin): Use new CALL_EXPR accessors.
3445
3446         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
3447         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
3448         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
3449         (ix86_expand_store_builtin): Likewise.
3450         (ix86_expand_unop_builtin): Likewise.
3451         (ix86_expand_unop1_builtin): Likewise.
3452         (ix86_expand_sse_compare): Likewise.
3453         (ix86_expand_sse_comi): Likewise.
3454         (ix86_expand_vec_init_builtin): Likewise.
3455         (ix86_expand_vec_ext_builtin): Likewise.
3456         (ix86_expand_vec_set_builtin): Likewise.
3457         (ix86_expand_builtin): Use new CALL_EXPR accessors.
3458
3459         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
3460         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3461
3462         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
3463         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
3464         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
3465
3466         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
3467         build_call_expr.
3468         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3469         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
3470         arglist.  Use new CALL_EXPR accessors.  Fix callers.
3471         (altivec_expand_abs_builtin): Likewise.
3472         (rs6000_expand_binop_builtin): Likewise.
3473         (altivec_expand_predicate_builtin): Likewise.
3474         (altivec_expand_lv_builtin): Likewise.
3475         (spe_expand_stv_builtin): Likewise.
3476         (altivec_expand_stv_builtin): Likewise.
3477         (rs6000_expand_ternop_builtin): Likewise.
3478         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
3479         (altivec_expand_st_builtin): Likewise.
3480         (altivec_expand_dst_builtin): Likewise.
3481         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
3482         arglist.  Use new CALL_EXPR accessors.  Fix callers.
3483         (altivec_expand_vec_set_builtin): Likewise.
3484         (altivec_expand_vec_ext_builtin): Likewise.
3485         (altivec_expand_builtin): Use new CALL_EXPR accessors.
3486         (spe_expand_builtin): Likewise.
3487         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
3488         arglist.  Use new CALL_EXPR accessors.  Fix callers.
3489         (spe_expand_evsel_builtin): Likewise.
3490         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
3491         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
3492
3493         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
3494         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
3495         (arm_expand_unop_builtin): Likewise.
3496         (arm_expand_builtin): Use new CALL_EXPR accessors.
3497
3498         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
3499         accessors.
3500
3501         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
3502         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
3503         (bfin_expand_unop_builtin): Likewise.
3504         (bfin_expand_builtin): Use new CALL_EXPR accessors.
3505
3506 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3507             Brooks Moses  <brooks.moses@codesourcery.com>
3508             Lee Millward  <lee.millward@codesourcery.com>
3509
3510         * c-semantics.c (build_stmt): Add internal diagnostic check.
3511
3512         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
3513         accessors.  Print arguments explicitly instead of as a list.
3514
3515         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
3516
3517         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
3518         (c_finish_omp_flish): Likewise.
3519
3520         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
3521         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
3522         instead of TREE_CODE_LENGTH.
3523         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
3524         (c_warn_unused_result): Likewise.
3525
3526 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3527
3528         PR c/26494
3529         * doc/invoke.texi (Warning Options): Remove
3530         -Werror-implicit-function-declaration.
3531         (Wimplicit-function-declaration): Update description.
3532         * opts.c (common_handle_option): Move handling of -Werror=* to...
3533         (enable_warning_as_error): ...here.
3534         * opts.h (enable_warning_as_error): Declare.
3535         * c-decl.c (implicit_decl_warning): Unless
3536         -Wno-implicit-function-declaration is given, emit a pedwarn if
3537         -std=c99 or emit a warning if -Wimplicit-function-declaration.
3538         * c.opt (Wimplicit-function-declaration): Replace
3539         mesg_implicit_function_declaration with
3540         warn_implicit_function_declaration.
3541         * c-opts.c (c_common_handle_option):
3542         -Werror-implicit-function-declaration is exactly equal as
3543         -Werror=implicit-function-declaration.
3544         (set_Wimplicit): Replace mesg_implicit_function_declaration with
3545         warn_implicit_function_declaration.
3546         (c_common_post_options): -Wimplict-function-declaration is enabled
3547         by default by -std=c99, otherwise is disabled by default.
3548         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
3549
3550 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
3551
3552         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
3553         DECL on the rhs to a DECL on the lhs for debug info purposes if the
3554         former is ignored but not the latter.
3555
3556 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
3557
3558         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
3559         is made and the reference doesn't use the alias set of its type,
3560         do not create the temporary using that type.
3561
3562 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
3563
3564         * jump.c: Remove prototypes for delete_computation and
3565         delete_prior_computation.
3566
3567 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
3568
3569         * jump.c (get_label_after): Delete.
3570         (get_label_before, delete_computation, delete_jump,
3571         delete_prior_computation, follow_jumps): Move...
3572         * reorg.c (delete_computation, delete_prior_computation): ... here...
3573         (get_label_before, delete_jump): ... making these static ...
3574         (follow_jumps): ... and simplifying this since it only runs after
3575         reload.
3576         * rtl.h (get_label_after, get_label_before, delete_jump,
3577         follow_jumps): Delete prototypes.
3578
3579 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
3580
3581         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
3582
3583 2007-02-15  Nick Clifton  <nickc@redhat.com>
3584
3585         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
3586         order to prevent it from being munged by the target.
3587
3588 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
3589
3590         * config/i386/i386.md: Remove misleading comment.
3591
3592 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3593
3594         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
3595         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
3596         invalid patterns.
3597
3598 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3599
3600         * tree-sra.c (instantiate_missing_elements): Canonicalize
3601         bit-field types.
3602         (sra_build_assignment): New.
3603         (generate_copy_inout, generate_element_copy,
3604         generate_element_zero, generate_one_element_init): Use it.
3605
3606 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3607
3608         * tree-sra.c (instantiate_missing_elements): Canonicalize
3609         bit-field types.
3610         (sra_build_assignment): New.
3611         (generate_copy_inout, generate_element_copy,
3612         generate_element_zero, generate_one_element_init): Use it.
3613
3614 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
3615
3616         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3617         limbo die nodes.
3618
3619 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
3620
3621         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3622         types as aggregates not scalars.
3623         * function.c (assign_stack_temp_for_type): Likewise.
3624
3625 2007-02-14  Roger Sayle  <roger@eyesopen.com>
3626             Zdenek Dvorak  <dvorakz@suse.cz>
3627
3628         * tree-dump.c (dump_switch_p_1): Require exact match of the option
3629         name.
3630
3631 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
3632
3633         * passes.c (next_pass_1): Clear the next field of the copied
3634         pass structure.
3635
3636 2007-02-14  Richard Henderson  <rth@redhat.com>
3637
3638         * tree-sra.c (early_sra): New.
3639         (decl_can_be_decomposed_p): Deny va_list if early_sra.
3640         (tree_sra_early, pass_sra_early): New.
3641         * tree-pass.h (pass_sra_early): Declare.
3642         * passes.c (init_optimization_passes): Use it.
3643
3644 2007-02-14  Richard Guenther  <rguenther@suse.de>
3645
3646         * flags.h (issue_strict_overflow_warning): Convert to a macro.
3647
3648 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
3649
3650          PR tree-optimization/30771
3651         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3652         also phi nodes.
3653         (vect_analyze_operations): Induction phis can now be marked as
3654         used_in_loop.
3655         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3656         Update documentation accordingly.
3657
3658 2007-02-14  Nick Clifton  <nickc@redhat.com>
3659
3660         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3661         most 3 arguments are supported.
3662         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3663
3664 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
3665
3666         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3667         Ensure dst->current is valid.
3668
3669 2007-02-13  Paul Brook  <paul@codesourcery.com>
3670
3671         * config.gcc: Add arm*-*-uclinux-*eabi.
3672         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3673         (SUBTARGET_EXTRA_LINK_SPEC): Define.
3674         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3675         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3676         (LINK_SPEC): Define.
3677         (LIB_SPEC): Define.
3678         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3679         register.
3680         * config/arm/uclinux-eabi.h: New file.
3681         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3682         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3683         based targets.
3684
3685 2007-02-13  Ian Lance Taylor  <iant@google.com>
3686
3687         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3688         * flags.h (warn_strict_overflow): Declare.
3689         (enum warn_strict_overflow_code): Define.
3690         (issue_strict_overflow_warning): New static inline function.
3691         * opts.c (warn_strict_overflow): New variable.
3692         (common_handle_option): Handle OPT_Wstrict_overflow and
3693         OPT_Wstrict_overflow_.
3694         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3695         OPT_Wall.
3696         * fold-const.c: Include intl.h.
3697         (fold_deferring_overflow_warnings): New static variable.
3698         (fold_deferred_overflow_warning): New static variable.
3699         (fold_deferred_overflow_code): New static variable.
3700         (fold_defer_overflow_warnings): New function.
3701         (fold_undefer_overflow_warnings): New function.
3702         (fold_undefer_and_ignore_overflow_warnings): New function.
3703         (fold_deferring_overflow_warnings_p): New function.
3704         (fold_overflow_warning): New static function.
3705         (make_range): Add strict_overflow_p parameter.  Change all
3706         callers.
3707         (extract_muldiv, extract_muldiv_1): Likewise.
3708         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3709         tree_expr_nonnegative_p.
3710         (fold_negate_expr): Call fold_overflow_warning.
3711         (fold_range_test): Likewise.
3712         (fold_comparison): Likewise.
3713         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
3714         instead of tree_expr_nonnegative_p.
3715         (tree_expr_nonnegative_warnv_p): Rename from
3716         tree_expr_nonnegative_p, add strict_overflow_p parameter.
3717         (tree_expr_nonnegative_p): New function.
3718         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3719         strict_overflow_p parameter.
3720         (tree_expr_nonzero_p): New function.
3721         * passes.c (verify_interpass_invariants): New static function.
3722         (execute_one_pass): Call it.
3723         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3724         warnings.
3725         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3726         (estimate_numbers_of_iterations): Likewise.
3727         (scev_probably_wraps_p): Likewise.
3728         * tree-ssa-ccp.c: Include "toplev.h".
3729         (evaluate_stmt): Defer fold overflow warnings until we know we are
3730         going to optimize.
3731         (struct fold_stmt_r_data): Add stmt field.
3732         (fold_stmt_r): Defer fold overflow warnings until we know we
3733         optimized.
3734         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3735         (fold_stmt_inplace): Likewise.
3736         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3737         (cleanup_control_expr_graph): Defer fold overflow warnings until
3738         we know we are going to optimize.
3739         * tree-cfg.c (fold_cond_expr_cond): Likewise.
3740         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3741         Likewise.
3742         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3743         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3744         * tree-ssa-loop-manip.c (create_iv): Likewise.
3745         * c-typeck.c (build_conditional_expr): Likewise.
3746         (build_binary_op): Likewise.
3747         * tree-vrp.c (vrp_expr_computes_nonzero): Call
3748         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3749         (extract_range_from_unary_expr): Likewise.
3750         * simplify-rtx.c (simplify_const_relational_operation): Warn when
3751         assuming that signed overflow does not occur.
3752         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3753         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3754         (fold_defer_overflow_warnings): Declare.
3755         (fold_undefer_overflow_warnings): Declare.
3756         (fold_undefer_and_ignore_overflow_warnings): Declare.
3757         (fold_deferring_overflow_warnings_p): Declare.
3758         (tree_expr_nonzero_warnv_p): Declare.
3759         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3760         of warning options.
3761         (Warning Options): Document -Wstrict-overflow.
3762         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3763         (tree-ssa-ccp.o): Likewise.
3764         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3765         (fold-const.o): Depend on intl.h.
3766
3767 2007-02-13  Ian Lance Taylor  <iant@google.com>
3768
3769         PR middle-end/30751
3770         * lower-subreg.c (resolve_simple_move): Decompose subregs in
3771         addresses.
3772
3773 2007-02-13  Stuart Hastings  <stuart@apple.com>
3774
3775         * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3776
3777 2007-02-13  Richard Henderson  <rth@redhat.com>
3778
3779         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3780         handled_component_p before looking for the indirect_ref.
3781
3782 2007-02-13  Richard Henderson  <rth@redhat.com>
3783
3784         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3785         remove flags clobber.
3786         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3787         (bswaphi_lowpart): New.
3788         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3789         remove TARGET_BSWAP test.  Delete expander of the same name.
3790
3791         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3792         (expand_unop): Use them.
3793
3794 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
3795
3796         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3797         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3798         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3799         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3800         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3801         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3802         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3803         assembler dialect choice from asm templates.
3804
3805 2007-02-12  Richard Henderson  <rth@redhat.com>
3806
3807         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3808         (fixuns_trunc<SSEMODEF>si2): Use it.
3809         * config/i386/sse.md (vec_setv4sf_0): Export.
3810         * config/i386/i386.c (ix86_build_const_vector): Export.
3811         (ix86_split_convert_uns_si_sse): Rename from
3812         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3813         * config/i386/i386-protos.h: Update.
3814
3815 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3816
3817         PR c/29521
3818         * c-typeck.c (c_finish_return): Improve warning message.
3819
3820 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3821
3822         * alias.c (find_symbolic_term): Delete unused function.
3823
3824 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
3825
3826         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3827         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3828         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3829
3830 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3831
3832         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3833         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3834         the function, temporarily point the debug interface to the null one.
3835
3836 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
3837
3838         * dwarf2out.c (round_up_to_align): New static function.
3839         (field_byte_offset): Use it to round the offset.
3840
3841 2007-02-12  Richard Henderson  <rth@redhat.com>
3842
3843         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3844         (inswl_const): Export.
3845
3846 2007-02-12  Richard Henderson  <rth@redhat.com>
3847
3848         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3849         result mode of the libcall, convert back to outmode.
3850
3851 2007-02-12  Roger Sayle  <roger@eyesopen.com>
3852
3853         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3854         (bswapdi2): New define_expand to implement 32-bit implementation.
3855
3856 2007-02-12  Nick Clifton  <nickc@redhat.com>
3857
3858         * doc/invoke.texi (Overall Options): Document --help=.
3859         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3860         (cc1_options): Pass --help= on to cc1.
3861         (display_help): Add description of --help=.
3862         (process_command): Add code to handle --help=.  Allow translated
3863         --help and --target-help switches to be passed on to compiler
3864         sub-process.
3865         (main): Remove unused if statement.
3866         * opts.c (columns): Remove.
3867         (LEFT_COLUMN): Define.
3868         (wrap_help): Add columns argument.
3869         (print_filtered_help): Change parameters to be an include bitmask,
3870         an exclude bitmask, an any bitmask and the column width.  Move the
3871         code to display the params list here.  Add code to display the
3872         status of options rather than their descriptions if the quiet flag
3873         is not active.
3874         (print_specific_help): Change parameters to be an include bitmask,
3875         an exclude bitmask and an any bitmask.  Move code to look up the
3876         column width here.  Decide upon the title for an options listing.
3877         (common_handle_options): Add code to handle --help=.  Adapt code
3878         for --help and --target-help to use the revised form of the
3879         print_specific_help function.
3880         (print_help): Delete.
3881         (print_param_help): Delete.
3882         (print_switch): Delete.
3883         * opts.h (cl_lang_count): Add prototype.
3884         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3885         CL_MAX_OPTION_CLASS): New defines.
3886         * optc-gen.awk: Add construction of cl_lang_count.
3887         * c.opt: Add Warning attribute to warning options and Optimization
3888         attribute to optimization options.
3889         * common.opt: Likewise.
3890         Add --help=.
3891         Add -fhelp and -ftarget-help as aliases for the transformed --help
3892         and --target-help options.
3893         * opt-functions.awk: Add code to handle Warning and Optimization
3894         attributes.
3895
3896 2007-02-12  Richard Henderson  <rth@redhat.com>
3897
3898         * config/alpha/constraints.md: New file.
3899         * config/alpha/alpha.c: Include tm-constrs.h.
3900         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3901         alpha_extra_constraint): Remove.
3902         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3903         * config/alpha/alpha-protos.h: Update.
3904         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3905         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3906         (EXTRA_CONSTRAINT): Remove.
3907         * config/alpha/alpha.md: Include constraints.md.
3908         (adddi splitter): Use satisfies_constraint_*.
3909         * config/alpha/predicates.md (add_operand): Likewise.
3910         (sext_add_operand, addition_operation): Likewise.
3911
3912 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
3913
3914         PR tree-optimization/29145
3915         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3916         in our handling of restrict qualified pointers.
3917
3918 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3919
3920         PR middle-end/7651
3921         * doc/invoke.texi (Wunused-value): Update description.
3922         (Wextra): Delete item.
3923         * opts.c (set_Wextra): Don't use the value of Wextra to set the
3924         value of Wunused-value.
3925         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3926         (c_finish_stmt_expr): Don't check extra_warnings.
3927         (emit_side_effect_warnings): The caller is responsible to check
3928         warn_unused_value.
3929
3930 2007-02-11  Roger Sayle  <roger@eyesopen.com>
3931             Matt Thomas  <matt@3am-software.com>
3932
3933         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3934
3935 2007-02-11  Roger Sayle  <roger@eyesopen.com>
3936
3937         * simplify-rtx.c (simplify_relational_operation_1): Optimize
3938         comparisons of POPCOUNT against zero.
3939         (simplify_const_relational_operation): Likewise.
3940
3941 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3942
3943         * doc/invoke.texi (Wextra): Delete outdated paragraph.
3944
3945 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3946
3947         * dwarf2out.c (root_type): Delete unused function.
3948
3949 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3950
3951         * genattrtab.c (contained_in_p): Delete unused function.
3952         (write_expr_attr_cache): Likewise.
3953
3954 2007-02-11  Jan Hubicka  <jh@suse.cz>
3955
3956         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
3957         previous patch.
3958
3959 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
3960
3961         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
3962         to add the REG_EQ* note.
3963         * see.c (see_merge_one_use_extension): Likewise.
3964         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
3965         turn REG_EQUAL notes into REG_EQUIV notes if the target
3966         register may have more than one set.
3967         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
3968         * gcse.c (try_replace_reg): Likewise.
3969         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
3970         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
3971         more than one REG_EQUIV note.
3972         * reload1.c (gen_reload): Use set_unique_reg_note.
3973
3974 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
3975
3976         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
3977         (ix86_builtin_conversion): New function.
3978
3979 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
3980
3981         PR target/29487
3982         * tree.h (DECL_REPLACEABLE_P): New macro.
3983         * except.c (set_nothrow_function_flags): Likewise.
3984
3985 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
3986             Ira Rosen  <irar@il.ibm.com>
3987             Dorit Nuzman  <dorit@il.ibm.com>
3988
3989         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
3990         * targhooks.c (default_builtin_vectorized_conversion): New.
3991         * targhooks.h (default_builtin_vectorized_function): New declaration.
3992         * target.h (struct vectorize): Add builtin_conversion field.
3993         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
3994         stmt_vec_info_type value.
3995         (vectorizable_conversion): New declaration.
3996         * tree-vect-analyze.c (vect_analyze_operations): Add
3997         vectorizable_conversion call.
3998         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
3999         * tree-vect-transform.c (vectorizable_conversion): New function.
4000         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
4001         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
4002         mode.
4003         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
4004         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
4005         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
4006         or ALTIVEC_BUILTIN_VCFSX.
4007
4008 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4009
4010         PR target/30634
4011         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
4012         CONST_DOUBLE and operand 0 is a hard register.
4013         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
4014         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
4015         is a hard floating-point register.
4016
4017 2007-02-10  Richard Henderson  <rth@redhat.com>
4018             Jakub Jelinek  <jakub@redhat.com>
4019             Alexandre Oliva  <aoliva@redhat.com>
4020
4021         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
4022         * builtin-types.def (BT_WORD): Make unsigned.
4023         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
4024         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
4025         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
4026         * c-decl.c (grokdeclarator): Don't error if !have_tls.
4027         * c-parser.c (c_parser_omp_threadprivate): Likewise.
4028         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
4029         emulated tls.
4030         * expr.c (emutls_var_address): New.
4031         (expand_expr_real_1): Expand emulated tls.
4032         (expand_expr_addr_expr_1): Likewise.
4033         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
4034         * output.h (emutls_finish): Declare.
4035         * toplev.c (compile_file): Call it.
4036         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
4037         address before wrapping in CONST.
4038         * varasm.c (emutls_htab, emutls_object_type): New.
4039         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
4040         (get_emutls_object_name, get_emutls_object_type): New.
4041         (get_emutls_init_templ_addr, emutls_decl): New.
4042         (emutls_common_1, emutls_finish): New.
4043         (assemble_variable): When emulating tls, swap decls; generate
4044         constructor for the emutls objects.
4045         (do_assemble_alias): When emulating tls, swap decl and target name.
4046         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
4047         for emulated tls.
4048         * varpool.c (decide_is_variable_needed): Look at force_output.
4049         Recurse for emulated tls.
4050         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
4051         with decide_is_variable_needed.
4052         * emutls.c: New file.
4053         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
4054         tls_object for real tls.
4055
4056 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
4057
4058         PR rtl-optimization/29599
4059         * reload1.c (eliminate_regs_in_insn): Take the destination
4060         mode into account when computing the offset.
4061
4062 2007-02-09  Stuart Hastings  <stuart@apple.com>
4063             Richard Henderson  <rth@redhat.com>
4064
4065         * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
4066         * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
4067         * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
4068         fixuns_truncdfhi2): New.
4069         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
4070         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
4071         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
4072         (floatunssidf2): Allow nonimmediate source.
4073         * gcc/config/i386/sse.md (movdi_to_sse): New.
4074         (vec_concatv2di): Drop '*'.
4075         * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
4076         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
4077         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
4078         New.
4079         * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
4080         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
4081         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
4082         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
4083         (ix86_build_signbit_mask): Fix decl of v, refactor to call
4084         ix86_build_const_vector.
4085         (x86_emit_floatuns): Rewrite.
4086
4087 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4088
4089         * genautomata.c (longest_path_length): Delete unused function.
4090         (struct state): Delete unused longest_path_length.
4091         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
4092         (get_free_state): Delete unused.
4093
4094 2007-02-09  Jan Hubicka  <jh@suse.cz>
4095
4096         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
4097         * doc/invoke.texi (inline-unit-growth): Update default value.
4098
4099         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
4100         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
4101         (rebuild_cgraph_edges): Likewise.
4102         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
4103         (dump_cgraph_node): Dump frequencies.
4104         (cgraph_clone_edge): Add frequency scales.
4105         (cgraph_clone_node): Add freuqnecy.
4106         * cgraph.h (cgraph_edge): Add freuqnecy argument.
4107         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
4108         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
4109         * tree-pass.h (TODO_rebuild_frequencies): New constant.
4110         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
4111         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
4112         (save_inline_function_body): Likewise.
4113         * ipa-inline.c: inluce rtl.h
4114         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
4115         (cgraph_edge_badness): Use frequencies.
4116         (cgraph_decide_recursive_inlining): Update clonning.
4117         (cgraph_decide_inlining_of_small_function): Dump frequency.
4118         * predict.c (estimate_bb_frequencies): Export.
4119         * predict.h (estimate_bb_frequencies): Declare.
4120         * tree-inline.c (copy_bb): Watch overflows.
4121         (expand_call_inline): Update call of cgraph_create_edge.
4122         (optimize_inline_calls): Use TODO flags to update frequnecies.
4123         * passes.h: Include predict.h
4124         (init_optimization_passes): Move profile ahead.
4125         (execute_function_todo): Handle TODO_rebuild_frequencies.
4126
4127 2007-02-09  Roger Sayle  <roger@eyesopen.com>
4128
4129         * config/alpha/alpha.c (emit_insxl): Force the first operand of
4130         the insbl or inswl pattern into a register.
4131
4132 2007-02-09  Roger Sayle  <roger@eyesopen.com>
4133
4134         * config/ia64/ia64.md (bswapdi2): New define_insn.
4135
4136 2007-02-09  Richard Henderson  <rth@redhat.com>
4137
4138         * config/i386/constraints.md (Ym): New constraint.
4139         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
4140         (movdi_1_rex64): Split sse and xmm general register moves from
4141         memory move alternatives.  Use conditional register constraints.
4142         (movsf_1, movdf_integer): Likewise.
4143         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
4144         (movdf_integer_rex64): New.
4145         (pushsf_rex64): Fix output constraints.
4146         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
4147         (sse2_stored): Likewise.
4148         (sse2_storeq_rex64): New.
4149         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
4150         amd and not generic.
4151         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
4152         for optimize_size.  Remove SF/DFmode hack.
4153
4154 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4155
4156         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
4157         (bit_SSE4a): New.
4158
4159 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
4160             Richard Sandiford  <richard@codesourcery.com>
4161
4162         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
4163         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
4164         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
4165         m68k/t-mlib to tmake_file.
4166         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
4167         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
4168         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
4169         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
4170         variable is not empty, add t-$m68k_arch_family to tmake_file.
4171         Add t-mlibs to tmake_file.
4172         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
4173         * config/m68k/t-cf: New file.
4174         * config/m68k/t-m68k: Likewise.
4175         * config/m68k/t-mlibs: Likewise.
4176         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4177         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
4178         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
4179         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4180         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
4181         Delete.
4182         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
4183         (INSTALL_LIBGCC): Delete.
4184         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
4185         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4186         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
4187         (M68K_MLIB_CPU): Define.
4188         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4189         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
4190         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
4191
4192 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
4193             Richard Guenther  <rguenther@suse.de>
4194
4195         PR middle-end/23361
4196         * fold-const.c (fold_comparison): Handle obfuscated comparisons
4197         against INT_MIN/INT_MAX.
4198         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
4199         file if a loop is removed.
4200
4201 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
4202
4203         * calls.c (store_one_arg): Pass correct alignment to
4204         emit_push_insn for non-BLKmode values.
4205         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
4206         unaligned stack slot via a suitably aligned slot.
4207
4208 2007-02-08  DJ Delorie  <dj@redhat.com>
4209
4210         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
4211         warnings.
4212         (legal_subregs): Use unsigned char, make const.
4213         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
4214
4215 2007-02-08  Paul Brook  <paul@codesourcery.com>
4216
4217         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
4218         special interworking needed.
4219
4220 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
4221
4222         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
4223         conditional to __SSE2__.
4224         (Entries below should have been added to first ChangeLog
4225         entry for amdfam10 dated 2007-02-05)
4226         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
4227         defined.
4228         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
4229         defined.
4230         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
4231         defined.
4232
4233 2007-02-08  DJ Delorie  <dj@redhat.com>
4234
4235         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
4236         * config/m32c/m32c.c (legal_subregs): New.
4237         (m32c_illegal_subreg_p): New.
4238         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
4239         unsupported subregs of hard regs.
4240
4241 2007-02-08  Jan Hubicka  <jh@suse.cz>
4242
4243         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
4244         the same one; always update histograms.
4245
4246 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
4247
4248         * passes.c (init_optimization_passes): Tidy comment.
4249
4250 2007-02-08  Roger Sayle  <roger@eyesopen.com>
4251
4252         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
4253         strip zero_extend, bswap and rotates from POCOUNT's argument.
4254         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
4255         zero_extend and rotates from PARITY's argument.
4256         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
4257         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
4258         of an integer constant at compile-time.
4259
4260 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
4261
4262         PR 30562
4263         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
4264         Update all users.
4265         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
4266         users.
4267         (init_alias_info):
4268         * tree-ssa-live.c (remove_unused_locals): Do not remove
4269         TREE_ADDRESSABLE variables.
4270         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
4271         * tree-ssa-operands.c (add_virtual_operand): Remove argument
4272         FOR_CLOBBER.  Update all users.
4273         If VAR has an associated alias set, add a virtual operand for
4274         it if no alias is found to conflict with the memory reference.
4275
4276 2007-02-07  Jan Hubicka  <jh@suse.cz>
4277             Robert Kidd <rkidd@crhc.uiuc.edu>
4278
4279         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
4280
4281 2007-02-07  Ian Lance Taylor  <iant@google.com>
4282
4283         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
4284
4285 2007-02-07  Roger Sayle  <roger@eyesopen.com>
4286
4287         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4288         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
4289         tablejumpdi, movsi_to_cr_one): Remove constraints from
4290         define_expand's match_operands.
4291
4292 2007-02-07  Roger Sayle  <roger@eyesopen.com>
4293
4294         * global.c (compute_regsets): Move declatation of "i" inside of
4295         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
4296
4297 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
4298
4299         PR c++/30703
4300         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
4301         of INDIRECT_REF <RESULT_DECL>.
4302
4303         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
4304
4305 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
4306             Kaz Kojima  <kkojima@gcc.gnu.org>
4307
4308         PR target/29746
4309         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
4310         properly.
4311         (sh_initialize_trampoline): Add parentheses to avoid a warning.
4312
4313 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
4314
4315         * doc/loop.texi: Document possibility not to perform disambiguation
4316         of loops with multiple latches.
4317         * cfgloopmanip.c (alp_enum_p): Removed.
4318         (add_loop): Handle subloops.  Use get_loop_body_with_size.
4319         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
4320         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
4321         the new forwarder block.
4322         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
4323         Handle the case latch is NULL.
4324         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
4325         when marking loop exits.
4326         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
4327         be modified.
4328         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
4329         disambiguate_loops_with_multiple_latches.
4330         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
4331         before fix_loop_structure.
4332         * cfgloop.c: Include pointer-set.h and output.h.
4333         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
4334         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
4335         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
4336         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
4337         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
4338         disambiguate_multiple_latches, get_loop_body_with_size,
4339         disambiguate_loops_with_multiple_latches): New functions.
4340         (flow_loop_dump): Dump multiple latch edges.
4341         (flow_loop_nodes_find): Handle loops with multiple latches.
4342         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
4343         (glb_enum_p): Modified.
4344         (get_loop_body): Use get_loop_body_with_size.
4345         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
4346         (AVOID_CFG_MODIFICATIONS): New constant.
4347         (disambiguate_loops_with_multiple_latches, add_loop,
4348         get_loop_body_with_size): Declare.
4349         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
4350
4351 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
4352
4353         PR inline-asm/28686
4354         * global.c (compute_regsets): New function.
4355         (global_alloc): Refactored ELIMINABLE_REGSET
4356         and NO_GLOBAL_ALLOC_REGS computation out.
4357         (rest_of_handle_global_alloc): Call compute_regsets()
4358         for non-optimizing case.
4359
4360 2007-02-06  Richard Henderson  <rth@redhat.com>
4361
4362         * config/i386/constraints.md (Y2): Rename from Y.
4363         (Yi): New constraint.
4364         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
4365         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
4366         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
4367         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
4368         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
4369         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
4370         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
4371         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
4372         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
4373         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
4374         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
4375         vec_extractv2si_1): Change Y constraints to Y2.
4376         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
4377         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
4378         Change Y constraints to Y2.
4379         (sse2_loadld): Change Y constraints to x.
4380
4381 2007-02-06  Roger Sayle  <roger@eyesopen.com>
4382
4383         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
4384         (parity<mode>2): New define_expand using rs6000_emit_parity.
4385         * config/rs6000/rs6000.c (rs6000_emit_popcount,
4386         rs6000_emit_parity): New functions.
4387         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
4388         rs6000_emit_parity): Prototype here.
4389
4390 2007-02-06  Ian Lance Taylor  <iant@google.com>
4391
4392         * lower-subreg.c (simple_move_operand): Reject CONST.
4393         (resolve_clobber): Call validate_change rather than directly
4394         assigning to XEXP (pat, 0).
4395
4396 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
4397
4398         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
4399         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
4400         (tree-cfg.o): Remove hashtab.h dependency.
4401
4402         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
4403         (struct ivopts_data): Change niters to pointer_map_t.
4404         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
4405         (niter_for_exit): Create pointer_map on demand.  Change for
4406         pointer_map API.
4407         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
4408         (free_loop_data): Destroy data->niters if created and reset field.
4409         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
4410         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
4411
4412         * tree-ssa-reassoc.c: Include pointer-set.h.
4413         (bb_rank): Change to long *.
4414         (operand_rank): Change to pointer_map_t.
4415         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
4416         (insert_operand_rank): Accept long.
4417         (operand_entry_hash, operand_entry_eq): Remove.
4418         (get_rank): Return long.  Adjust for changes above.
4419         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
4420         and operand_rank.
4421         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
4422
4423         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
4424         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
4425         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
4426         is not NULL.
4427         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
4428         directly since it cannot be NULL.
4429         (get_vi_for_tree): Rewrite for pointer_map API.
4430         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
4431         (init_alias_vars): Create vi_for_tree as pointer_map.
4432         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
4433
4434         * tree-cfg.c: Don't include hashtab.h.
4435         (edge_to_cases): Declare as pointer_map.
4436         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
4437         Delete.
4438         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
4439         (start_recording_case_labels): Create edge_to_cases as pointer_map.
4440         (end_recoding_case_labels): Cleanup edge_to_cases manually before
4441         destroying it.
4442         (record_switch_edge): Delete.
4443         (get_cases_for_edge): Adjust for pointer_map API, inline
4444         record_switch_edge (rewritten for new API), remove goto.
4445
4446 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
4447
4448         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
4449         * tree-nested.c: Include pointer-set.h.
4450         (var_map_elt, var_map_eq, var_map_hash): Delete.
4451         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
4452         to pointer_map_t's.
4453         (nesting_info_bitmap_obstack): New.
4454         (lookup_field_for_decl): Adjust for pointer_map API.
4455         (lookup_tramp_for_decl): Adjust for pointer_map API.
4456         (get_nonlocal_debug_decl): Adjust for pointer_map API.
4457         (get_local_debug_decl): Adjust for pointer_map API.
4458         (convert_nl_goto_reference): Adjust for pointer_map API.
4459         (convert_nl_goto_receiver): Adjust for pointer_map API.
4460         (create_nesting_tree): Create outside GGC space.  Create bitmap on
4461         the new obstack.  Create field_map and var_map as pointer_maps.
4462         (free_nesting_tree): Adjust for changes to create_nesting_tree.
4463         (root): Delete.
4464         (lower_nested_functions): Move root here, no need to NULL it.
4465         Initialize and release the obstack.
4466
4467 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
4468
4469         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
4470         Remove prototypes and make them non-static.
4471         (struct tree_int_map): Remove.
4472         * tree.h (struct tree_int_map): Move here, turning TO into an
4473         unsigned int.
4474         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
4475
4476         * tree.h (TREE_COMPLEXITY): Remove.
4477         (struct tree_exp): Remove complexity field.
4478         * tree.c (build1_stat): Don't set it.
4479
4480 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
4481             Victor Kaplansky  <victork@il.ibm.com>
4482
4483         * tree-vectorizer.c (vect_is_simple_use): Support induction.
4484         (vect_is_simple_reduction): Support reduction with induction as
4485         one of the operands.
4486         (vect_is_simple_iv_evolution): Fix formatting.
4487         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
4488         formatting.  Don't mark induction phis for vectorization.
4489         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
4490         * tree-vect-transform.c (get_initial_def_for_induction): New function.
4491         (vect_get_vec_def_for_operand): Support induction.
4492         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
4493         induction case.
4494         (vectorizable_reduction): Support reduction with induction as one of
4495         the operands.
4496         (vectorizable_type_demotion): Use def-type of stmt argument rather
4497         than dummy def-type.
4498
4499         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
4500         flag_tree_scev_cprop.
4501         * common.opt (tree-scev-cprop): New flag.
4502
4503         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
4504         call to vect_get_new_vect_var.
4505
4506 2007-02-06  Ira Rosen  <irar@il.ibm.com>
4507
4508         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
4509         vectype is not NULL.
4510         (vect_pattern_recog_1): Likewise.
4511
4512 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4513
4514         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
4515         (fold_negate_expr): Likewise.
4516
4517 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
4518
4519         PR debug/30189
4520         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
4521         even if cv-qualification is the same.
4522
4523 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
4524
4525         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
4526         __enable_execute_stack on completion.
4527
4528 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4529
4530         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
4531         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
4532         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
4533         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
4534         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
4535         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
4536         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
4537         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
4538
4539 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4540
4541         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
4542         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
4543         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
4544         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
4545         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
4546         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
4547         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
4548         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
4549         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
4550         umuldi3_highpart_rex64, umulsi3_highpart_insn,
4551         umulsi3_highpart_zext, smuldi3_highpart_rex64,
4552         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
4553         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
4554         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
4555         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
4556         sqrtextenddfxf2_i387): Added amdfam10_decode.
4557
4558         * config/i386/athlon.md (athlon_idirect_amdfam10,
4559         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
4560         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
4561         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
4562         athlon_ivector_store_amdfam10): New define_insn_reservation.
4563         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
4564         amdfam10.
4565
4566 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4567
4568         * config/i386/athlon.md (athlon_call_amdfam10,
4569         athlon_pop_amdfam10, athlon_lea_amdfam10): New
4570         define_insn_reservation.
4571         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
4572         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
4573         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
4574
4575 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4576
4577         * config/i386/athlon.md (athlon_sseld_amdfam10,
4578         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
4579         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
4580
4581 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4582
4583         * config/i386/athlon.md (athlon_sseins_amdfam10): New
4584         define_insn_reservation.
4585         * config/i386/i386.md (sseins): Added sseins to define_attr type
4586         and define_attr unit.
4587         * config/i386/sse.md: Set type attribute to sseins for insertq
4588         and insertqi.
4589
4590 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4591
4592         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
4593         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
4594         ssecomi_load_amdfam10, ssecomi_amdfam10,
4595         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
4596         define_insn_reservation.
4597         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
4598
4599 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4600
4601         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
4602         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
4603         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
4604         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
4605         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
4606         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
4607         define_insn_reservation.
4608
4609         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
4610         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
4611         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
4612         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
4613         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
4614
4615 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4616
4617         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
4618         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
4619         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
4620         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
4621         athlon_ssemul_load_k8): Added amdfam10.
4622
4623 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4624
4625         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
4626         (x86_sse_unaligned_move_optimal): New variable.
4627
4628         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
4629         m_AMDFAM10.
4630         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
4631         for unaligned vector SSE double/single precision loads for AMDFAM10.
4632
4633 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4634
4635         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
4636         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
4637         Define TARGET_CPU_DEFAULT_amdfam10.
4638         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
4639         (processor_type): Add PROCESSOR_AMDFAM10.
4640
4641         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
4642         processor_type in config/i386/i386.h.
4643         Enable imul peepholes for TARGET_AMDFAM10.
4644
4645         * config.gcc: Add support for --with-cpu option for amdfam10.
4646
4647         * config/i386/i386.c (amdfam10_cost): New variable.
4648         (m_AMDFAM10): New macro.
4649         (m_ATHLON_K8_AMDFAM10): New macro.
4650         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
4651         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
4652         x86_promote_QImode, x86_integer_DFmode_moves,
4653         x86_partial_reg_dependency, x86_memory_mismatch_stall,
4654         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
4655         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
4656         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
4657         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
4658         Enable/disable for amdfam10.
4659         (override_options): Add amdfam10_cost to processor_target_table.
4660         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
4661         processor_alias_table.
4662         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
4663         (ix86_adjust_cost): Add code for amdfam10.
4664
4665 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
4666
4667         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
4668         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
4669         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
4670         * config/i386/i386.h: Add builtin definition for SSE4A.
4671         * config/i386/i386.md: Add support for ABM instructions
4672         (popcnt and lzcnt).
4673         * config/i386/sse.md: Add support for SSE4A instructions
4674         (movntss, movntsd, extrq, insertq).
4675         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
4676         Add -march=amdfam10 flag.
4677         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
4678         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
4679         and amdfam10.
4680         * doc/extend.texi: Add documentation for SSE4A builtins.
4681
4682 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
4683
4684         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
4685
4686 2007-02-05  Richard Guenther  <rguenther@suse.de>
4687
4688         * tree-vectorizer.h (vectorizable_function): Add argument type
4689         argument, change return type.
4690         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
4691         * tree-vect-transform.c (vectorizable_function): Handle extra
4692         argument, return vectorized function decl.
4693         (build_vectorized_function_call): Remove.
4694         (vectorizable_call): Handle calls with result and argument types
4695         differing.  Handle loop vectorization factor correctly.
4696         * targhooks.c (default_builtin_vectorized_function): Adjust for
4697         extra argument.
4698         * targhooks.h (default_builtin_vectorized_function): Likewise.
4699         * target.h (builtin_vectorized_function): Add argument type
4700         argument.
4701         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
4702         extra argument, allow vectorizing of lrintf.
4703         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
4704         documentation of target hook.
4705
4706 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
4707
4708         PR target/30665
4709         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
4710         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
4711         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
4712
4713 2007-02-05  Roger Sayle  <roger@eyesopen.com>
4714
4715         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
4716         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
4717         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
4718         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
4719         before canonicalizing sincos to cexpi.
4720         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
4721
4722 2007-02-05  Roger Sayle  <roger@eyesopen.com>
4723
4724         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
4725         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
4726         (alpha_init_builtins): Use alpha_add_builtins to process tables.
4727
4728 2007-02-05  Roger Sayle  <roger@eyesopen.com>
4729
4730         * mips-tfile.c (initialize_init_file): Correct endianness test.
4731
4732 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
4733
4734         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
4735         the 'y' constraint.
4736
4737 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
4738
4739         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
4740         saves in a PARALLEL before the register assignments.
4741
4742 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
4743
4744         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
4745         DWARF_FRAME_RETURN_COLUMN to be a general register.
4746         * dwarf2out.c (init_return_column_size): New function, split from...
4747         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
4748         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
4749         to be nongeneral registers.
4750         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
4751         integer registers.
4752         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
4753         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
4754
4755 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
4756
4757         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
4758
4759 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
4760
4761         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
4762         (remove_path): Use can_remove_branch_p and remove_branch instead
4763         of loop_delete_branch_edge.
4764         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
4765         (tree_transform_and_unroll_loop): Remove dead branches immediately.
4766         Update profile using scale_dominated_blocks_in_loop.
4767         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
4768         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
4769         (can_remove_branch_p, remove_branch): Declare.
4770         * tree-cfg.c (tree_can_remove_branch_p): New function.
4771         (tree_cfg_hooks): Add tree_can_remove_branch_p.
4772         * cfgrtl.c (rtl_can_remove_branch_p): New function.
4773         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
4774
4775 2007-02-05  Jan Hubicka  <jh@suse.cz>
4776
4777         PR middle-end/30696
4778         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
4779         nodes in cgraph, don't remove offline copy of the function.
4780
4781 2007-02-04  Jan Hubicka  <jh@suse.cz>
4782
4783         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
4784         vectors might cause maybe_lookup_element_for_expr to be called
4785         on non-sra-candidate.
4786
4787 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
4788
4789         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
4790         config/bfin/bfin.md, config/bfin/predicates.md: Follow
4791         spelling conventions.
4792
4793 2007-02-04  Richard Guenther  <rguenther@suse.de>
4794
4795         PR middle-end/30636
4796         * fold-const.c (try_move_mult_to_index): Make sure to not
4797         overflow one dimension of a multi-dimensional array access.
4798
4799 2007-02-04  Jan Hubicka  <jh@suse.cz>
4800
4801         * passes.c (init_optimization_passes): Reindent.
4802
4803 2007-02-04  Jan Hubicka  <jh@suse.cz>
4804             Eric Botcazou  <ebotcazou@adacore.com>
4805
4806         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
4807         (execute_fixup_cfg): Break out the abnormal goto code.
4808         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
4809         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
4810         (optimize_inline_calls): Call make_nonlocal_label_edges.
4811
4812 2007-02-04  Jan Hubicka  <jh@suse.cz>
4813
4814         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
4815         true when something was changed.
4816         (rename_ssa_copies): When something was changed, do
4817         TODO_remove_unused_locals.
4818         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
4819         add TODO_remove_unused_locals when instruction was removed.
4820
4821 2007-02-04  Jan Hubicka  <jh@suse.cz>
4822
4823         * ipa-inline.c (try_inline): Improve debug output; work on already
4824         inline edges too.
4825         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
4826         call try_inline for already inlined edges too when flattening;
4827         inline also functions that make callee growth but overall unit size
4828         reduce.
4829
4830 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
4831
4832         * config/m32c/bitops.md, config/m32c/jump.md,
4833         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
4834         config/m32r/m32r.h, config/m32r/m32r.md,
4835         config/m32r/predicates.md, config/m68hc11/larith.asm,
4836         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4837         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
4838         config/mips/mips-protos.h, config/mips/mips.c,
4839         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
4840         config/mn10300/mn10300.h, config/mn10300/predicates.md,
4841         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
4842         spelling conventions.
4843
4844         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
4845         Follow spelling conventions.
4846
4847 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
4848
4849         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
4850         warn about C++0x compatibility.
4851
4852 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
4853
4854         * config/h8300/h8300.c, config/h8300/h8300.h,
4855         config/h8300/h8300.md: Follow spelling conventions.
4856
4857 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
4858
4859         PR middle-end/30667
4860         * combine.c (try_combine): Do not substitute source operand
4861         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
4862
4863 2007-02-03  Jan Hubicka  <jh@suse.cz>
4864
4865         PR gcov-profile/30650
4866         * value-prof.c (stringop_block_profile): Fix handling of size counter;
4867         do not divide by zero for never executed counters.
4868         (tree_find_values_to_profile): Fix counters.
4869         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
4870
4871 2007-02-03  Ian Lance Taylor  <iant@google.com>
4872
4873         * lower-subreg.c (simple_move_operand): New static function,
4874         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
4875         operands.
4876         (simple_move): Call simple_move_operand.
4877         (find_decomposable_subregs): Add special handling of MEMs.
4878         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
4879         meaning of return value.  If we see a hard register, test whether
4880         it can store a word_mode value.  Change all callers.
4881
4882 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4883
4884         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
4885         ftrapv insns and expanders.
4886         (subdi3): Change define_expand operand 1 to arith11_operand, and
4887         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
4888         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
4889         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
4890         respectively.
4891
4892         PR middle-end/30174
4893         * varasm.c (notice_global_symbol): Treat global objects as weak when
4894         flag_shlib is true.
4895
4896 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4897
4898         * emit-rtl.c (dconstpi): Delete.
4899         (dconstsqrt2): New.
4900         (init_emit_once): Delete dconstpi and init dconstsqrt2.
4901         * real.h (dconstpi): Delete.
4902         (dconstsqrt2): New.
4903         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
4904         (fold_builtin_hypot): Likewise.
4905
4906 2007-02-03  Tom Tromey  <tromey@redhat.com>
4907
4908         PR driver/30246
4909         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
4910         -gcoff3, -gxcoff3, -gvms3 implies -dD.
4911
4912 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
4913
4914         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
4915         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
4916         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
4917         config/rs6000/cell.md, config/rs6000/darwin.h,
4918         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
4919         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
4920         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
4921         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
4922         typos.  Follow spelling conventions.
4923         * doc/invoke.texi: Follow spelling conventions.
4924
4925 2007-02-03  Roger Sayle  <roger@eyesopen.com>
4926
4927         * simplify-rtx.c (simplify_relational_operation_1): Implement some
4928         canonicalization transformations that attempt to simplify integer
4929         constant comparisons to become comparisons against zero.
4930
4931 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4932
4933         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
4934         fabs(x)*sqrt(2).
4935         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
4936         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
4937
4938 2007-02-02  Mike Stump  <mrs@apple.com>
4939
4940         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
4941         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
4942         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
4943         generate a branch island.
4944
4945 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
4946
4947         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
4948         (xtensa_legitimate_address_p): New.
4949         (xtensa_legitimize_address): New.
4950         (xtensa_output_addr_const_extra): New.
4951         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
4952         (BASE_REG_P): New.
4953         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
4954         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
4955         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
4956         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
4957         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
4958         (xtensa_legitimize_address): New.
4959         (xtensa_output_addr_const_extra): New.
4960
4961 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
4962
4963         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
4964
4965 2007-02-02  Ian Lance Taylor  <iant@google.com>
4966
4967         * expmed.c (expand_divmod): Add comment.
4968
4969 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
4970
4971         * emit-rtl.c (renumber_insns): Remove.
4972         * flags.h: Remove the extern for flag_renumber_insns.
4973         * rtl.h: Remove the prototype for renumber_insns.
4974         * toplev.c (flag_renumber_insns): Remove.
4975
4976 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
4977
4978         Revert for x86 darwin:
4979         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
4980
4981         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
4982         code before the following patch under TARGET_MACHO.
4983         (ix86_function_value_regno_p): Likewise.
4984
4985 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4986
4987         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
4988         COMPLEX_EXPR.
4989
4990 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
4991
4992         PR target/29682
4993         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
4994         general or fp registers.  Add comments.
4995         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
4996
4997 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
4998
4999         * pointer-set.c (insert_aux): Only return insertion slot.
5000         (pointer_set_insert): Adjust.
5001         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
5002         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
5003         pointer_map_traverse): New.
5004         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
5005         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
5006         pointer_map_contains, pointer_map_traverse): Declare.
5007
5008 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
5009
5010         PR middle-end/30473
5011         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
5012         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
5013
5014 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
5015
5016         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
5017
5018         (struct _dep): New type.
5019         (dep_t): New typedef.
5020         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
5021         (DEP_STATUS): New access macro.  The macro with the same name was
5022         renamed to DEP_LINK_STATUS.
5023         (dep_init): Declare function
5024
5025         (struct _dep_link): New type.
5026         (dep_link_t): New typedef.
5027         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
5028         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
5029         (DEP_LINK_STATUS): New macro.
5030         (debug_dep_links): New debug function.
5031
5032         (struct _deps_list): New type.
5033         (deps_list_t): New typedef.
5034         (DEPS_LIST_FIRST): New access macro.
5035         (FOR_EACH_DEP_LINK): New cycle macro.
5036         (create_deps_list, free_deps_list, delete_deps_list): Declare
5037         functions.
5038         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
5039         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
5040         (copy_deps_list_change_con): Ditto.
5041
5042         (move_dep_link): Declare function.
5043
5044         (struct _dep_node): New type.
5045         (dep_node_t): New typedef.
5046         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
5047
5048         (struct haifa_insn_data.back_deps): New field to hold backward
5049         dependencies of the insn.
5050         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
5051         to deps_list_t.
5052         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
5053         Change its type to deps_list_t.
5054         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
5055         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
5056         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
5057
5058         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
5059
5060         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
5061
5062         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
5063         all callers.
5064         (dep_cost): Declare.
5065
5066         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
5067         (ds_to_dk, dk_to_ds): New functions.
5068
5069         (init_dep_1): New static function.
5070         (init_dep): New function.
5071         (copy_dep): New static function.
5072
5073         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
5074         functions.
5075         (detach_dep_link): New static function.
5076         (move_dep_link): New function.
5077
5078         (dep_links_consistent_p, dump_dep_links): New static functions.
5079         (debug_dep_links): New debugging function.
5080
5081         (deps_obstack, dl_obstack, dn_obstack): New static variables.
5082
5083         (alloc_deps_list, init_deps_list): New static functions.
5084         (create_deps_list): New function.
5085         (clear_deps_list): New static function.
5086         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
5087         (deps_list_consistent_p, dump_deps_list): New static functions.
5088         (debug_deps_list): New function.
5089         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
5090         functions.
5091         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
5092
5093         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
5094         use new scheduler dependencies lists.
5095         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
5096         (sched_analyze): Ditto.  Initialize dependencies lists.
5097         (add_forw_dep, compute_forward_dependences): Update to use new
5098         scheduler dependencies lists.
5099
5100         (init_dependency_caches): Init deps_obstack.
5101         (free_dependency_caches): Free deps_obstack.
5102
5103         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
5104         new scheduler dependencies lists.
5105         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
5106         (add_back_forw_dep, delete_back_forw_dep): Ditto.
5107
5108         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
5109         Update to use new scheduler dependencies lists.
5110         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
5111         (debug_dependencies): Ditto.
5112         (schedule_region): Update comments.
5113
5114         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
5115         scheduler dependencies lists.
5116         (schedule_ebb): Update comments.
5117
5118         * rtl.def (DEPS_LIST): Remove.
5119
5120         * lists.c (unused_deps_list): Remove.
5121         (free_list): Update assertions.
5122
5123         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
5124         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
5125
5126         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
5127         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
5128
5129         * haifa-sched.c (comments): Update.
5130         (insn_cost1): Remove.  Inline the code into insn_cost ().
5131         (insn_cost): Update to use new scheduler dependencies lists.  Move
5132         processing of the dependency cost to dep_cost ().
5133         (dep_cost): New function.  Use it instead of insn_cost () when
5134         evaluating cost of the dependency.  Use compatible interface to
5135         interact with the target.
5136         (priority): Update to use new scheduler dependencies lists.
5137         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
5138         with greater number of insns that depend on the insn.
5139         (schedule_insn): Update to use new scheduler dependencies lists.  Add
5140         code to free backward dependencies lists.  Inline and optimize code
5141         from resolve_dep () - see PR28071.
5142         (ok_for_early_queue_removal): Update to use new scheduler dependencies
5143         lists.  Update call to targetm.sched.is_costly_dependence hook.
5144
5145         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
5146         scheduler dependencies lists.
5147
5148         (resolve_dep): Remove.  Move the logic to schedule_insn ().
5149         (init_h_i_d): Initialize dependencies lists.
5150
5151         (process_insn_depend_be_in_spec): Rename to
5152         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
5153         dependencies lists.
5154         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
5155         Update to use new scheduler dependencies lists.
5156         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
5157
5158         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
5159         new scheduler dependencies lists.
5160         (build_intra_loop_deps): Ditto.
5161
5162         * target.h (struct _dep): Declare to use in
5163         gcc_target.sched.is_costly_dependence.
5164         (struct gcc_target.sched.adjust_cost): Fix typo.
5165         (struct gcc_target.sched.is_costly_dependence): Change signature to use
5166         single dep_t parameter instead of an equivalent triad.
5167         (struct gcc_target.sched.adjust_cost_2): Remove.
5168
5169         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
5170
5171         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
5172
5173         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
5174         documentation.
5175         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
5176
5177         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
5178         (REG_DEP_TRUE): Document.
5179
5180         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
5181         Change signature to correspond to the targetm.sched.adjust_cost hook.
5182         Update use in TARGET_SCHED_ADJUST_COST_2.
5183         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
5184         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
5185         new scheduler dependencies lists.
5186         (ia64_gen_check): Ditto.
5187
5188         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
5189         dependencies lists.
5190
5191         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
5192         signature to correspond to the targetm.sched.is_costly_dependence hook.
5193         (is_costly_group): Update to use new scheduler dependencies lists.
5194
5195         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
5196         instead of INSN_COST () macro.
5197
5198 2007-02-01  Ian Lance Taylor  <iant@google.com>
5199
5200         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
5201
5202 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
5203
5204         * pa.md (tp_load): Correct mfctl instruction syntax.
5205
5206 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
5207
5208         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
5209         altivec_padding_size calculation on AIX.  Improve comment, add
5210         assert to verify that it's right.
5211
5212         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
5213         64-bit.
5214
5215 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
5216
5217         PR inline-asm/28686
5218         * global.c (global_alloc): Add mising initialization of
5219         ELIMINABLE_REGSET.
5220
5221 2007-02-01  Roger Sayle  <roger@eyesopen.com>
5222
5223         * alias.c (init_alias_analysis): Correct whitespace.
5224         * bb-reorder.c (fix_edges_for_rarely_executed_code,
5225         partition_hot_cold_basic_blocks): Likewise.
5226         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
5227         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
5228         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
5229         fold_builtin_snprintf_chk, fold_builtin_printf,
5230         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
5231         do_mpfr_arg3, do_mpfr_sincos): Likewise.
5232         * cfgcleanup.c (cleanup_cfg): Likewise.
5233         * cfgexpand.c (tree_expand_cfg): Likewise.
5234         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
5235         * function.c (get_next_funcdef_no): Likewise.
5236         * gengtype.c (main): Likewise.
5237         * genmodes.c (main): Likewise.
5238         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
5239         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
5240         * ifcvt.c (noce_emit_move_insn): Likewise.
5241         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
5242         Likewise.
5243         * stor-layout.c (get_best_mode): Likewise.
5244         * tree-ssa-loop-niter.c (get_val_for): Likewise.
5245         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
5246         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
5247         perform_var_substitution, solve_graph): Likewise.
5248         * tree-vrp.c (vrp_finalize): Likewise.
5249
5250 2007-02-01  Ian Lance Taylor  <iant@google.com>
5251
5252         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
5253         high part of a paradoxical subreg, return a constant zero.
5254
5255 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
5256
5257         * toplev.c (lang_dependent_init): Call init_set_costs.
5258         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
5259
5260 2007-02-01  Richard Guenther  <rguenther@suse.de>
5261
5262         PR middle-end/30656
5263         * fold-const.c (fold_negate_expr): Allow negating a
5264         constant if overflow does not change.
5265
5266 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5267
5268         * doc/c-tree.texi (Expression trees): Improve markup.
5269         * doc/tm.texi (Register Classes, Addressing Modes)
5270         (Floating Point): Fix spacing after abbreviations.  Fix some
5271         typos.
5272
5273 2007-02-01  Ben Elliston  <bje@au.ibm.com>
5274
5275         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
5276         * doc/contrib.texi: Likewise.
5277         * doc/install.texi: Likewise.
5278
5279 2007-01-31  Richard Henderson  <rth@redhat.com>
5280             Ian Lance Taylor  <iant@google.com>
5281
5282         * lower-subreg.c: New file.
5283         * rtl.def (CONCATN): Define.
5284         * passes.c (init_optimization_passes): Add pass_lower_subreg and
5285         pass_lower_subreg2.
5286         * emit-rtl.c (update_reg_offset): New static function, broken out
5287         of gen_rtx_REG_offset.
5288         (gen_rtx_REG_offset): Call update_reg_offset.
5289         (gen_reg_rtx_offset): New function.
5290         * regclass.c: Revert patch of 2006-03-05, restoring
5291         reg_scan_update.
5292         (clear_reg_info_regno): New function.
5293         * dwarf2out.c (concatn_loc_descriptor): New static function.
5294         (loc_descriptor): Handle CONCATN.
5295         * common.opt (fsplit_wide_types): New option.
5296         * opts.c (decode_options): Set flag_split_wide_types when
5297         optimizing.
5298         * timevar.def (TV_LOWER_SUBREG): Define.
5299         * rtl.h (gen_reg_rtx_offset): Declare.
5300         (reg_scan_update): Declare.
5301         * regs.h (clear_reg_info_regno): Declare.
5302         * tree-pass.h (pass_lower_subreg): Declare.
5303         (pass_lower_subreg2): Declare.
5304         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
5305         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
5306         -fsplit-wide-types.
5307         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
5308         * Makefile.in (OBJS-common): Add lower-subreg.o.
5309         (lower-subreg.o): New target.
5310
5311 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
5312
5313         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
5314
5315 2007-01-31  Anatoly Sokolov <aesok@post.ru>
5316
5317         PR target/19087
5318         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
5319
5320 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5321
5322         PR middle-end/29335
5323         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
5324
5325 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
5326
5327         * cfgloop.h: Include vec-prim.h.
5328         (enum li_flags): Remove LI_ONLY_OLD.
5329         (loop_iterator): Changed.
5330         (fel_next, fel_init): Iterate over loop tree.
5331         (FOR_EACH_LOOP_BREAK): New macro.
5332         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
5333         FOR_EACH_LOOP.
5334         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
5335         * modulo-sched.c (sms_schedule): Ditto.
5336         * tree-vectorizer.c (vectorize_loops): Ditto.
5337         * doc/loop.texi: Update information on loop numbering and behavior of
5338         FOR_EACH_LOOP wrto new loops.
5339         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5340         add_to_evolution_1): Test nestedness of loops instead of comparing
5341         their numbers.
5342         * tree-chrec.c (chrec_fold_plus_poly_poly,
5343         chrec_fold_multiply_poly_poly, chrec_evaluate,
5344         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
5345         reset_evolution_in_loop): Ditto.
5346         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
5347
5348 2007-01-31  Dirk Mueller  <dmueller@suse.de>
5349
5350         * c-common.c (warn_about_parentheses): Separate warning about
5351         un-parenthized sequence of comparison operators from the one
5352         which is supposed to warn about x <= y <= z.
5353
5354 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
5355
5356         * optabs.h (enum optab_index): Add new OTI_isinf.
5357         (isinf_optab): Define corresponding macro.
5358         * optabs.c (init_optabs): Initialize isinf_optab.
5359         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
5360         patterns.
5361         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
5362         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
5363         using isinf_optab.
5364         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
5365         expand_builtin_interclass_mathfn.
5366         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
5367         * config/i386/i386.md (UNSPEC_FXAM): New constant.
5368         (fxam<mode>2_i387): New insn pattern.
5369         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
5370         built-in functions as x87 inline asm.
5371
5372 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
5373
5374         * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
5375
5376 2007-01-30  Eric Christopher  <echristo@apple.com>
5377
5378         * config.gcc: Add geode.
5379
5380 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
5381
5382         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
5383         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
5384         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
5385         value-prof.c: Fix comment typos.
5386
5387 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5388
5389         PR c++/24745
5390         * doc/invoke.texi (Wpointer-arith): Document warning.
5391
5392 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
5393
5394         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
5395         the list of discrepancies from the draft TR.
5396
5397 2007-01-30  Dirk Mueller  <dmueller@suse.de>
5398
5399         PR c++/30601
5400         * doc/invoke.texi (-Wreturn-type): Update description to
5401         match new behavior.
5402
5403 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
5404
5405         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
5406
5407 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
5408
5409         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
5410         to handle optabs that operate on floating point input argument and
5411         output to integer output.
5412         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
5413         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
5414         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
5415         expand_builtin_interclass_mathfn ().
5416         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
5417         (ilogbsi2): Remove.
5418         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
5419         ilogbl built-in functions as x87 intrinsics.
5420
5421 2007-01-30  Richard Guenther  <rguenther@suse.de>
5422
5423         PR middle-end/27657
5424         * dwarf2out.c (reference_to_unused): Query varpool if the
5425         variable was output.
5426
5427 2007-01-30  Richard Guenther  <rguenther@suse.de>
5428
5429         PR middle-end/30313
5430         * passes.c (execute_one_pass): Reset in_gimple_form to not
5431         confuse non-unit-at-a-time mode.
5432
5433 2007-01-29  Roger Sayle  <roger@eyesopen.com>
5434             Richard Guenther  <rguenther@suse.de>
5435
5436         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
5437         avoid undefined behaviour on overflow.  Use force_fit_type_double
5438         to construct the constant with the specified TREE_OVERFLOW.
5439
5440 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
5441
5442         * config/dfp-bit.c: Add parameterized support for fp exceptions.
5443         * config/dfp-bit.h: Ditto.
5444
5445 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5446
5447         * c-decl.c (pop_scope): Replace warnings with call to
5448         warn_for_unused_label.
5449         * c-common.h (warn_for_unused_label): Declare.
5450         * c-common.c (warn_for_unused_label): Define.
5451
5452 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5453
5454         * tree-optimize.c (update_inlined_to_pointers): Delete unused
5455         function.
5456
5457 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
5458
5459         * Makefile.in (USER_H): Remove decfloat.h.
5460         * ginclude/decfloat.h: Delete, moving contents to ...
5461         * ginclude/float.h: Add support for decimal floating point,
5462         guarded by __STDC_WANT_DEC_FP__.
5463
5464 2007-01-29  Mike Stump  <mrs@apple.com>
5465
5466         * doc/gccint.texi (Top): Rename Loop Representation to Loop
5467         Analysis and Representation to resolve case insensitive conflict.
5468         * doc/loop.texi (Loop Analysis and Representation): Likewise.
5469
5470 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
5471
5472         * tree.h (struct tree_memory_tag): Add aliases member.
5473         (MTAG_ALIASES): New macro.
5474         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
5475         (add_may_alias): Remove pointer-set. Update for may_aliases being
5476         a bitmap.
5477         (mark_aliases_call_clobbered): Update for may_aliases being a
5478         bitmap.
5479         (compute_tag_properties): Ditto.
5480         (create_partition_for): Ditto.
5481         (compute_memory_partitions): Ditto.
5482         (dump_may_aliases_for): Ditto.
5483         (is_aliased_with): Ditto.
5484         (add_may_alias_for_new_tag): Ditto.
5485         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
5486         (compute_is_aliased): New function.
5487         (compute_may_aliases): Call compute_is_aliased).
5488         (init_alias_info): Initialize alias_bitmap_obstack.
5489         (union_alias_set_into): New function.
5490         (compute_flow_sensitive_aliasing): Use union_aliases_into.
5491         (have_common_aliases_p): Rewrite to take two bitmaps and use
5492         intersection.
5493         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
5494         Update for bitmaps.
5495         (finalize_ref_all_pointers): Update for add_may_alias changes.
5496         (new_type_alias): Ditto.
5497         * tree-flow-inline.h (may_aliases): Return a bitmap.
5498         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
5499         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
5500         may_aliases being a bitmap.
5501         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
5502         may_aliases now returns a bitmap.
5503         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
5504         being a bitmap.
5505         * tree-ssa-operands.c (add_virtual_operand): Update for
5506         may_aliases being a bitmap.
5507
5508 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
5509
5510         PR tree-optimization/30630
5511         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
5512         variable as changed.
5513
5514 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
5515
5516         PR c++/28266
5517         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
5518         expanded only once even if an error occurs.
5519
5520 2007-01-29  Ben Elliston  <bje@au.ibm.com>
5521
5522         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
5523         (__gcov_average_profiler): Likewise.
5524         (__gcov_ior_profiler): Likewise.
5525         (__gcov_merge_ior): Likewise.
5526
5527 2007-01-28  Jan Hubicka  <jh@suse.cz>
5528
5529         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
5530         * value-prof.c (stringop_block_profile): Likewise.
5531
5532 2007-01-28  Jan Hubicka  <jh@suse.cz>
5533
5534         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
5535         variant handling histograms; add wrapper.
5536         (clear_storage_via_libcall): Export.
5537         (emit_block_move_hints): Break out from ...; add histograms.
5538         (emit_block_move): ... this one.
5539         (clear_storage_hints): Break out from ...; add histograms.
5540         (clear_storage): ... this one.
5541         (set_storage_via_memset): Handle histogram.
5542         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
5543         (clear_storage_hints, clear_storage_via_libcall): Declare.
5544         (set_storage_via_setmem): Update prototype.
5545         * doc/md.texi (movmem, setmem): Document new arguments.
5546
5547         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
5548         new histograms.
5549         (stringop_block_profile): New global function.
5550         (tree_stringops_values_to_profile): Profile block size and alignment.
5551         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
5552         HIST_TYPE_IOR.
5553         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
5554         (stringop_block_profile): Declare.
5555         * builtins.c: Include value-prof.h.
5556         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
5557         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
5558         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
5559         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
5560         * profile.c (instrument_values): Add new counters.
5561         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
5562         calls.
5563         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
5564         (tree_init_edge_profiler): Build new profilers.
5565         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
5566         (pass_tree_profile): Add dump.
5567         (tree_profile_hooks): Update.
5568         * Makefile.in (LIBGCOV): Add new constants.
5569         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
5570         __gcov_ior_profiler): New.
5571         * i386.md (movmem/setmem expanders): Add new optional arguments.
5572
5573 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
5574
5575         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
5576
5577 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
5578
5579         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
5580         (tree_unswitch_single_loop): Pass eni_size_weights to
5581         tree_num_loop_insns.
5582         * tree-ssa-loop-manip.c: Include tree-inline.h.
5583         (can_unroll_loop_p): Pass eni_size_weights to
5584         tree_num_loop_insns.
5585         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
5586         Pass eni_size_weights to estimate_num_insns.
5587         * tree.h (init_inline_once): Export.
5588         * toplev.c (backend_init): Call init_inline_once.
5589         * cgraphunit.c (cgraph_process_new_functions,
5590         cgraph_analyze_function): Pass eni_inlining_weights to
5591         estimate_num_insns.
5592         * ipa-inline.c (compute_inline_parameters): Ditto.
5593         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
5594         to estimate_num_insns.
5595         (try_unroll_loop_completely): Pass eni_size_weights to
5596         tree_num_loop_insns.
5597         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
5598         ot estimate_num_insns.
5599         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
5600         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
5601         * tree-inline.c (eni_inlining_weights, eni_size_weights,
5602         eni_time_weights): New variables.
5603         (init_inline_once): Initialize them.
5604         (struct eni_data): Mew.
5605         (estimate_num_insns_1, estimate_num_insns): Use weights.
5606         * tree-inline.h (struct eni_weights_d): New.
5607         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
5608         (estimate_num_insns): Declaration changed.
5609         * cfgloop.h (tree_num_loop_insns): Declaration changed.
5610         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
5611         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
5612
5613 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
5614
5615         * tree-data-ref.c (conflict_fn): Assert that the number of affine
5616         relations in the conflict function is valid.
5617
5618 2007-01-27  Ian Lance Taylor  <iant@google.com>
5619
5620         * common.opt: Add fstrict-overflow.
5621         * opts.c (decode_options): Set flag_strict_overflow if -O2.
5622         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
5623         (TYPE_OVERFLOW_UNDEFINED): Define.
5624         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
5625         Replace all uses.
5626         * tree.h (TYPE_TRAP_SIGNED): Don't define.
5627         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
5628         (fold_negate_expr): Likewise.
5629         (make_range): Likewise.
5630         (extract_muldiv_1): Likewise.
5631         (maybe_canonicalize_comparison): Likewise.
5632         (fold_comparison): Likewise.
5633         (fold_binary): Likewise.
5634         (tree_expr_nonnegative_p): Likewise.
5635         (tree_expr_nonzero_p): Likewise.
5636         * tree-vrp.c (compare_values): Likewise.
5637         (extract_range_from_binary_expr): Likewise.
5638         (extract_range_from_unary_expr): Likewise.
5639         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
5640         Likewise.
5641         (nowrap_type_p): Likewise.
5642         * tree-scalar-evolution.c (simple_iv): Likewise.
5643         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
5644         (build_range_check): Likewise.
5645         (extract_muldiv_1): Likewise.
5646         (fold_comparison): Likewise.
5647         * tree-vrp.c (vrp_int_const_binop): Likewise.
5648         (extract_range_from_unary_expr): Likewise.
5649         * convert.c (convert_to_integer): Likewise.
5650         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
5651         (fold_comparison): Likewise.
5652         (fold_binary): Likewise.
5653         * optabs.c (optab_for_tree_code): Likewise.
5654         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
5655         * simplify-rtx.c (simplify_const_relational_operation): Check
5656         flag_strict_overflow and flag_trapv.
5657         (simplify_const_relational_operation): Likewise.
5658         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
5659         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
5660         -fstrict-overflow.
5661
5662 2007-01-27  Roger Sayle  <roger@eyesopen.com>
5663
5664         * tree.c (tree_fold_gcd): Delete.
5665         * tree.h (tree_fold_gcd): Remove prototype.
5666         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
5667         test whether one constant integer is a multiple of another.  Instead
5668         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
5669         * fold-const.c (multiple_of_p):  We've determined both TOP and
5670         BOTTOM are integer constants so we can call int_const_binop directly
5671         instead of the more generic const_binop.
5672
5673 2007-01-27  Roger Sayle  <roger@eyesopen.com>
5674
5675         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
5676         1*X check that the constant hasn't overflowed, to preserve the
5677         TREE_OVERFLOW bit.
5678         (round_up): Provide an efficient implementation when rouding-up an
5679         INTEGER_CST to a power-of-two.
5680
5681 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5682
5683         * doc/sourcebuild.texi: Add comma for clarity.
5684         * doc/extend.texi: Fix some typos.
5685         * doc/passes.texi: Likewise.
5686         * doc/cppinternals.texi: Likewise.
5687         * doc/c-tree.texi: Likewise.
5688         * doc/tree-ssa.texi: Likewise.
5689         * doc/install.texi: Likewise.
5690
5691 2007-01-27  Jan Hubicka  <jh@suse.cz>
5692
5693         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
5694         (pass_sra): Do not require alias information.
5695         * passes.c (init_optimization_passes): Add SRA
5696
5697 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
5698
5699         * tracer.c (rest_of_handle_tracer): We already cleaned
5700         up the CFG in tracer() so don't do it here again.
5701         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
5702         cleanup_cfg here, either.  And don't call renumber_insns.
5703
5704         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
5705         and BB_HEAD are in the insn stream here.  Instead make sure
5706         that BB_INSN is valid on all insns.  Also, do check here that
5707         there are no pending branch predictions...
5708         (rtl_verify_flow_info): ...instead of doing it here.  Checks
5709         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
5710         here.
5711
5712 2007-01-26  Roger Sayle  <roger@eyesopen.com>
5713
5714         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
5715         function to simplify/factorize operand order canonicalization.
5716         (ix86_fixup_binary_operands): Reorganize using the above function.
5717         (ix86_binary_operator_ok): Likewise.
5718
5719 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
5720
5721         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
5722         file scope from optimize_attrs.
5723         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
5724         up search.
5725         (optimize_attrs): Clear insn_code_values after freeing it.
5726
5727 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
5728
5729         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
5730         a parts.base assignment.
5731
5732 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
5733
5734         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
5735         (compute_subscript_distance, initialize_data_dependence_relation,
5736         finalize_ddr_dependent, analyze_ziv_subscript,
5737         analyze_siv_subscript_cst_affine,
5738         compute_overlap_steps_for_affine_univar,
5739         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5740         analyze_siv_subscript, analyze_miv_subscript,
5741         analyze_overlapping_iterations, subscript_dependence_tester_1,
5742         compute_self_dependence, free_dependence_relation): Work
5743         with affine_fn instead of chrecs.
5744         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
5745         common_affine_function, affine_function_base,
5746         affine_function_constant_p, affine_fn_op, affine_fn_plus,
5747         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
5748         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
5749         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
5750         (all_chrecs_equal_p): Removed.
5751         * tree-data-ref.h (affine_fn, conflict_function): New types.
5752         (struct subscript): Change type of conflicting_iterations_in_a
5753         and conflicting_iterations_in_b.
5754
5755 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
5756
5757         PR other/30182
5758         * config/pa/pa.h (TARGET_HPUX_11): New.
5759         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
5760         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
5761
5762 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
5763         Richard Guenther  <rguenther@suse.de>
5764
5765         * tree-ssa-structalias.c (solve_graph): Handle case
5766         we merged the variable to another.
5767
5768 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5769
5770         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
5771         functions.
5772
5773         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
5774         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
5775
5776 2007-01-25  DJ Delorie  <dj@redhat.com>
5777
5778         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
5779         allow changes to modes which don't fit in those registers.
5780
5781         * reload1.c (choose_reload_regs): Check for invalid subregs before
5782         computing their locations, not after.
5783
5784 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
5785
5786         PR 25127
5787         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
5788         save Altivec registers in an eh_return function.
5789         (compute_vrsave_mask): Likewise.
5790         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
5791         for saving Altivec registers.
5792         (rs6000_emit_prologue): Don't allocate stack twice in
5793         eh_return function.  Correct expected value of altivec_save_offset
5794         when using save_world.  Describe save of R0 to stack when using
5795         save_world.  Describe stack pointer adjustment when using
5796         save_world.  Remove duplicated eh_return parameter register saving.
5797         Update sp_offset variable after save_world.
5798         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
5799         darwin-world.asm.
5800         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
5801         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
5802         implies Altivec.
5803
5804 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
5805
5806         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
5807
5808 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
5809
5810         PR other/30182
5811         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
5812         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
5813
5814 2007-01-25  Richard Guenther  <rguenther@suse.de>
5815
5816         * doc/invoke.texi (-Wcoverage-mismatch): Document.
5817         * common.opt (-Wcoverage-mismatch): New warning option.
5818         * coverage.c (get_coverage_counts): Ignore coverage mismatch
5819         if -Wcoverage-mismatch is given.
5820
5821 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
5822
5823         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
5824         (ipcp_driver): Change to static definition.
5825         Add dumping of the ifunctions.
5826         (constant_val_insert): Remove unused parameter. Support for SSA.
5827         (ipcp_propagate_const): Support for SSA.
5828         (ipcp_profile_bb_print): Print only analyzed nodes.
5829         (ipcp_replace_map_create): Remove support for Fortran constant
5830         for now.
5831         * ipa-prop.c (ipa_method_modify_stmt,
5832         ipa_callsite_compute_param): Support for SSA.
5833         * ipa-prop.h (ipcp_driver): Remove declaration.
5834         (IS_VALID_TREE_MAP_INDEX): Add define.
5835
5836 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
5837
5838         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
5839
5840 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5841
5842         PR middle-end/30447
5843         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
5844         constant argument to cabs and do it without checking for
5845         -funsafe-math-optimizations.
5846
5847 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
5848
5849         * c-common.h (RID_FIRST_CXX0X): New.
5850         (RID_LAST_CXX0X): New.
5851         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
5852         by -Wall.
5853         * c.opt (Wc++0x-compat): New.
5854         * doc/invoke.texi (-Wc++0x-compat): Document.
5855
5856 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5857
5858         * builtins.c (fold_builtin_carg): New.
5859         (fold_builtin_1): Use it.
5860
5861 2007-01-24  Jan Hubicka  <jh@suse.cz>
5862
5863         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
5864
5865         * ipa-inline.c (initial_insns, max_insns): Delete.
5866         (compute_max_insns): New function.
5867         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
5868         of insns as base for code growth.
5869         (cgraph_decide_inlining): Make initial_insns local; do not compute
5870         max_insns.
5871         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
5872         * doc/invoke.texi (inline-unit-growth): Update docs.
5873
5874 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
5875
5876         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
5877         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
5878         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
5879         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
5880         for CPUs that have PTA_CX16 set.
5881
5882         PR middle-end/27416
5883         * gimplify.c (omp_check_private): New function.
5884         (gimplify_scan_omp_clauses): Use it for
5885         firstprivate/lastprivate/reduction.
5886
5887         PR middle-end/30494
5888         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
5889         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
5890
5891         PR middle-end/30421
5892         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
5893         If lower_lastprivate_clauses emits some statements, append them
5894         to dlist rather than body_p and to body_p append an initializer.
5895         (lower_omp_for): Adjust caller.
5896
5897 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
5898
5899         * target.h (globalize_decl_name): New.
5900         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
5901         * output.h (default_globalize_decl_name): New.
5902         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
5903         globalize_label.
5904         (globalize_decl): Ditto.
5905         (default_globalize_decl_name): New.
5906         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
5907         (ia64_handle_version_id_attribute): New.
5908         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
5909         (ia64_asm_output_external): Use globalize_decl_name instead
5910         of globalize_label.
5911         * doc/extend.texi (version_id): New pragma.
5912         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
5913
5914 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
5915
5916         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
5917         _uleb128_t and _Unwind_SWord with _sleb128_t.
5918         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
5919         uw_frame_state_for, uw_update_context_1): Likewise.
5920         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
5921         * unwind-pe.h (read_uleb128, read_sleb128,
5922         read_encoded_value_with_base): Likewise.
5923         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
5924
5925 2007-01-24  Richard Guenther  <rguenther@suse.de>
5926
5927         * builtins.c (expand_builtin_cexpi): Get the fndecl
5928         for cexp in the correct way.
5929
5930 2007-01-24  Jan Hubicka  <jh@suse.cz>
5931
5932         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
5933
5934 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
5935
5936         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
5937         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
5938         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
5939         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
5940         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
5941         __SIZEOF_PTRDIFF_T__.
5942         * doc/cpp.texi: Documentation for the new builtin macros added.
5943
5944 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
5945
5946         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
5947         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
5948         instead of operands[2] to avoid access past the end of array.
5949
5950 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
5951
5952         * reload1.c (emit_reload_insns): Pass the reload register
5953         for a non-spill output reload through forget_old_reloads_1.
5954
5955 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
5956
5957         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5958         _SOFT_DOUBLE if doubles use software floating-point.
5959         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
5960         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
5961         * config/rs6000/darwin-ldouble.c: Also compile functions for
5962         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
5963         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
5964         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
5965         commented-out long double override.
5966         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
5967         * config/rs6000/eabispe.h: Likewise.
5968         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
5969         long double for non-SPE.
5970         (rs6000_handle_option): Likewise.
5971         (invalid_e500_subreg): Disallow more subregs involding DImode,
5972         DFmode, TImode or TFmode.
5973         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
5974         E500 double.
5975         (legitimate_lo_sum_address_p): Also check for TFmode for E500
5976         double.
5977         (rs6000_legitimize_address): Also handle TFmode for E500 double.
5978         (rs6000_legitimize_reload_address): Also handle TFmode for E500
5979         double.
5980         (rs6000_legitimate_address): Also check for TFmode for E500
5981         double.
5982         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
5983         (spe_build_register_parallel): Handle TFmode and TCmode.
5984         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
5985         double.
5986         (function_arg): Handle TFmode and TCmode for E500 double.
5987         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
5988         in general.
5989         (print_operand): Handle TFmode and TImode for %y.
5990         (rs6000_generate_compare): Handle TFmode comparisons for E500
5991         double.
5992         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
5993         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
5994         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
5995         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
5996         TFmode for E500 double.
5997         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
5998         (floatsidf2): Enable for E500 double.
5999         (movtf_softfloat): Use rs6000_nonimmediate_operand.
6000         (extenddftf2): Change to extenddftf2_fprs.
6001         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
6002         depending on TARGET_E500_DOUBLE.
6003         (extendsftf2): Enable for E500 double.
6004         (trunctfdf2): Enable for E500 double.
6005         (trunctfsf2): Change to trunctfsf2_fprs.
6006         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
6007         depending on TARGET_E500_DOUBLE.
6008         (floatsitf2): Enable for E500 double.
6009         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
6010         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
6011         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
6012         (negtf2): Change to negtf2_internal.
6013         (negtf2): New expander.
6014         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
6015         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
6016         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
6017         (movdi_internal32): Use rs6000_nonimmediate_operand.
6018         (unnamed splitter): Likewise.
6019         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
6020         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
6021         (SPE64TF, DITI): New mode macros.
6022         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
6023         modes.
6024         (frob_tf_ti): New.
6025         (frob_<mode>_di_2): New.
6026         (frob_tf_di_8_2): New.
6027         (frob_di_df): Change to frob_di_<mode>; allow more modes.
6028         (frob_ti_tf): New.
6029         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
6030         more modes.
6031         (frob_ti_<mode>_8_2): New.
6032         (frob_ti_tf_2): New.
6033         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
6034         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
6035         TFmode.
6036         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
6037         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
6038         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
6039         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
6040         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
6041         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
6042         tsttflt_gp): New.
6043
6044 2007-01-23  Ian Lance Taylor  <iant@google.com>
6045
6046         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
6047         insn-*.o first.
6048         (OBJS-archive): Reformat, alphabetize.
6049         (OBJS): Change out_object_file to OBJS-md.
6050
6051 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
6052
6053         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
6054         JUMP_P and CALL_P predicates where applicable.
6055         * config/i386/i386.c: Ditto.
6056         * config/i386/i386.md: Ditto.
6057         * config/i386/mmx.md: Ditto.
6058         * config/i386/predicates.md: Ditto.
6059
6060 2007-01-22  Andreas Schwab  <schwab@suse.de>
6061
6062         * config/m68k/m68k.h: Fix comment.
6063
6064 2007-01-22  Jan Hubicka  <jh@suse.cz>
6065
6066         * passes.c (init_optimization_passes): Do not rerun
6067         pass_early_warn_uninitialized.
6068
6069 2007-01-22  Richard Guenther  <rguenther@suse.de>
6070
6071         PR tree-optimization/30038
6072         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
6073         function.
6074         (execute_cse_sincos_1): Likewise.
6075         (execute_cse_sincos): Likewise.
6076         (gate_cse_sincos): Likewise.
6077         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
6078         the cexpi() canonicalization of sincos().
6079         * tree-pass.h (pass_cse_sincos): Declare.
6080         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
6081
6082 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6083
6084         PR rtl-optimization/29329
6085         * combine.c (replaced_rhs_insn): Rename to i2mod.
6086         (replaced_rhs_value): Rename to i2mod_new_rhs.
6087         (i2mod_old_rhs): New global variable.
6088         (combine_instructions): Adjust for above change.  Save a copy of
6089         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
6090         note are substituted in the second instruction.
6091         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
6092         ditch the note if it pertains to the second eliminated register
6093         and this register is mentioned in i2mod_old_rhs.
6094
6095         Revert:
6096         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
6097
6098         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
6099         the insn to which the note was originally attached.
6100
6101 2007-01-21  Jan Hubicka  <jh@suse.cz>
6102
6103         * ipa-inline.c (inlining_mode): Comment, move up.
6104         (cgraph_decide_inlining_incrementally): Do not perform inlining
6105         itself; fix handling of flattening of self recursive functions.
6106         (cgraph_find_cycles): Remove.
6107         (cgraph_flatten_node): Remove.
6108         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
6109         (try_inline): New function.
6110         (cgraph_early_inlining): Update call of
6111         cgraph_decide_inlining_incrementally.  Apply inlining here.
6112         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
6113
6114 2007-01-21  Dirk Mueller  <dmueller@suse.de>
6115
6116         PR bootstrap/30511
6117         * tree-vrp.c (check_array_bounds): do not warn
6118         about ADDR_EXPR's of ARRAY_REF's which are immediately
6119         used in binary expressions.
6120
6121 2007-01-21  Ira Rosen  <irar@il.ibm.com>
6122
6123         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
6124         read_write_dep and macros for its access.
6125         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
6126         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
6127         argument, call vect_check_interleaving for every independent pair of
6128         data-refs. Mark loads that access the same memory location as a store
6129         in the loop.
6130         (vect_check_dependences): Remove.
6131         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
6132         call, fix the call to vect_analyze_data_ref_dependence.
6133         (vect_analyze_data_ref_access): For statements that access the same
6134         data-ref, check that they are not stores; for loads, check that there
6135         is no store that access the same location.
6136
6137 2007-01-20  Roger Sayle  <roger@eyesopen.com>
6138             Joseph Myers  <joseph@codesourcery.com>
6139
6140         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
6141         (-fdump-rtl-stack): Likewise.
6142         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
6143         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
6144         (-mpt-fixed): Use @minus{} for minus sign.
6145         (Using Precompiled Headers): Fix under/overfull hbox.
6146
6147 2007-01-20  Jan Hubicka  <jh@suse.cz>
6148
6149         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
6150         place within annotation.
6151
6152 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6153
6154         * pa.c (output_move_double): Change array size of xoperands to 4.
6155
6156 2007-01-20  Jan Hubicka  <jh@suse.cz>
6157
6158         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
6159         as temporary.
6160
6161 2007-01-19  Ian Lance Taylor  <iant@google.com>
6162
6163         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
6164         constant to unsigned HOST_WIDE_INT before negating.
6165
6166 2007-01-19  Ian Lance Taylor  <iant@google.com>
6167
6168         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
6169         to unsigned.
6170         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
6171         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
6172         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
6173         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
6174         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
6175         (realloc_vdef, realloc_vuse): Change second parameter to
6176         unsigned.
6177         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
6178         fields to unsigned.
6179         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
6180         unsigned. Change x and lim locals to unsigned.
6181         (realloc_vdef, realloc_vuse): Change num_elem parameter to
6182         unsigned.
6183         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
6184         (copy_virtual_operands): Change i and n locals to unsigned.
6185
6186 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6187
6188         PR middle-end/29335
6189         * builtins.c (fold_builtin_1): Handle builtin fdim.
6190
6191 2007-01-20  Jan Hubicka  <jh@suse.cz>
6192
6193         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
6194         * tree-ssa-structalias.c (compute_points_to_sets): Do call
6195         init_alias_heapvars.
6196         (init_alias_heapvars): Initialize only when not already initialized.
6197         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
6198
6199 2007-01-19  Roger Sayle  <roger@eyesopen.com>
6200
6201         * common.opt (fsigned-zeros): New command line option.
6202         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
6203         of flag_unsafe_math_optimizations.
6204         * opts.c (set_fast_math_flags): The -ffast-math command line option
6205         implies -fno-signed-zeros.
6206         (fast_math_flags_set_p): Likewise.
6207
6208         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
6209         the documentation of -ffast-math appropriately.  Wrap long lines.
6210
6211 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
6212
6213         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
6214         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
6215
6216 2007-01-19  Tomas Bily  <tbily@suse.cz>
6217
6218         * cgraphunit.c (cgraph_finalize_function): Updating of pid
6219         * tree-profile.c:
6220         (tree_init_ic_make_global_vars): New function
6221         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
6222         (tree_gen_ic_profiler): New function
6223         (tree_gen_ic_func_profiler): New function
6224         (tree_profiling): Added calling of tree_gen_ic_func_profiler
6225         (tree_profile_hooks): Added hook for indirec/virtual calls
6226         * value-prof.c (tree_find_values_to_profile): New case for
6227         indirect calls
6228         (tree_values_to_profile): Call for determining indirect/virtual
6229         counters
6230         (tree_indirect_call_to_profile): New function
6231         (tree_ic_transform): New function
6232         (tree_ic): New function
6233         (find_func_by_pid): New function
6234         (init_pid_map): New function
6235         (tree_value_profile_transformations): Added check for
6236         indirect/virtual call transformation
6237         * value-prof.h (enum hist_type): New counter type for
6238         indirect/virtual calls
6239         (profile_hooks): Added new hook for profiling indirect/virtual
6240         calls
6241         * profile.c (instrument_values): New case for indirect/virtual
6242         call added
6243         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
6244         (GCOV_COUNTER_V_INDIR): New counter type
6245         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
6246         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
6247         call added
6248         * cgraph.c: Definition of cgraph_max_pid
6249         (cgraph_create_node): Default init of pid attribute
6250         * cgraph.h: Declaration of cgraph_max_pid
6251         (struct cgraph_node): Added pid attribute
6252         * libgcov.c (__gcov_indirect_call_profiler): New function
6253         (__gcov_one_value_profiler_body): New function
6254         (__gcov_one_value_profiler): Body was moved to
6255         __gcov_one_value_profiler_body and calls it
6256
6257 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
6258
6259         * doc/gty.texi (Options): Document the mark_hook option to GTY.
6260         * gengtype.c (write_types_data, write_func_for_structure,
6261         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
6262         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
6263         (walk_type, write_func_for_structure): Generate the mark_hook if
6264         needed.
6265
6266 2007-01-19  Jan Hubicka  <jh@suse.cz>
6267
6268         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
6269         'early' argument take inlining mode argument specifying whether to
6270         inline for size/speeed or all functions; add support for flattening;
6271         improve dumpting.
6272         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
6273
6274 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6275
6276         PR c++/17947
6277         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
6278         the name of the declared identifier.
6279
6280 2007-01-19  Dirk Mueller  <dmueller@suse.de>
6281
6282         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
6283         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
6284         duplicate evaluation.
6285
6286 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
6287
6288         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
6289         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
6290         to XFMode, use acosxf2 and truncate result to requested mode.
6291         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
6292         (asin<mode>2): Similarly, with asin expanders.
6293         (*fscalexf4_i387): Rename from *fscalexf4.
6294         (expNcorexf3): New expander.
6295         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
6296         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
6297         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
6298         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
6299         patterns for SSE math.
6300         (exp10<mode>2): Similarly, with exp10 expanders.
6301         (exp2<mode>2): Similarly, with exp2 expanders.
6302         (expm1<mode>2): Similarly, with expm1 expanders.
6303         (ldexp<mode>3): Similarly, with ldexp expanders.
6304         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
6305         Use gen_truncxf<mode>2_i387_noop to truncate result.
6306
6307 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6308
6309         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
6310         for ColdFire targets.
6311
6312 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
6313             Richard Sandiford  <richard@codesourcery.com>
6314
6315         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
6316         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
6317         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
6318         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
6319         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
6320         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
6321
6322 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6323
6324         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
6325         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
6326         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
6327         (*adddi_dilshr32_cf): New pattern.
6328         (adddi3, subdi3): Remove first alternatives.
6329
6330 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6331
6332         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
6333         implemented using move.l, do not use its cc result for floating-point
6334         comparisons.
6335
6336 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6337
6338         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
6339         from accepting 's' constraints if flag_pic.
6340
6341 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6342
6343         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
6344         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
6345         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
6346         condition from TARGET_68881 to TARGET_HARD_FLOAT.
6347
6348 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
6349
6350         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
6351         ColdFire alternatives.
6352         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
6353         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
6354         architectures that support ff1 instruction.
6355
6356 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6357             Julian Brown  <julian@codesourcery.com>
6358
6359         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
6360         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
6361         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
6362         Add commentary.
6363
6364 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
6365
6366         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
6367         and return a bool.
6368         (output_move_const_into_data_reg, output_move_simode_const): Delete.
6369         * config/m68k/m68k.c (const_method, const_int_cost): Take a
6370         HOST_WIDE_INT instead of an rtx.
6371         (m68k_rtx_costs): Update call accordingly.
6372         (output_move_const_into_data_reg): Likewise.  Fix formatting.
6373         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
6374         Return a bool.
6375         (output_move_simode_const): Update calls after above changes.
6376         Rework to use automatic variables and predicates like MEM_P.
6377         * config/m68k/m68k.md (pushexthisi_const): Update call to
6378         valid_mov3q_const.
6379
6380 2007-01-19  Dirk Mueller  <dmueller@suse.de>
6381
6382         * tree-ssa-alias.c (perform_var_substitution): Fix typo
6383         in dump_flags test.
6384
6385 2007-01-19  Richard Guenther  <rguenther@suse.de>
6386
6387         * builtins.c (expand_builtin_cexpi): Fall back to expanding
6388         via cexp in case sincos is not available.
6389
6390 2007-01-19  Richard Guenther  <rguenther@suse.de>
6391
6392         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
6393         * defaults.h (TARGET_HAS_SINCOS): Default to off.
6394         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
6395         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
6396         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
6397         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
6398         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
6399         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
6400
6401 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
6402
6403         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
6404         New insn patterns.
6405         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
6406         (atan2xf3): Directly generate RTL pattern.
6407         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
6408         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
6409         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
6410         disable patterns for SSE math.
6411         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
6412         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
6413         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
6414         disable patterns for SSE math.
6415
6416 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
6417
6418         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
6419
6420 2007-01-18  Roger Sayle  <roger@eyesopen.com>
6421
6422         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
6423         VIEW_CONVERT_EXPR to the same type as it's operand.
6424
6425 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
6426
6427         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
6428         configured for long double 128.
6429
6430 2007-01-18  Mike Stump  <mrs@apple.com>
6431
6432         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
6433         error.
6434
6435 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
6436
6437         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
6438         type correct.
6439
6440 2007-01-18  Jan Hubicka  <jh@suse.cz>
6441
6442         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
6443         greater than NUM_VOP_FREE_BUCKETS.
6444
6445 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
6446
6447         * tree-ssa-structalias.c: Update comments.
6448         (ptabitmap_obstack): Removed.
6449         (pta_obstack): New.
6450         (oldpta_obstack): Ditto.
6451         (stats): Add a few members.
6452         (struct variable_info): Remove node, complex, address_taken, and
6453         indirect_target members. Add oldsolution member.
6454         (new_var_info): Do not initialize removed members.
6455         (constraint_expr_type): Remove INCLUDES.
6456         (constraint_graph): Add size, implicit_preds, rep,
6457         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
6458         (FIRST_REF_NODE): New macro.
6459         (LAST_REF_NODE): Ditto.
6460         (FIRST_ADDR_NODE): Ditto.
6461         (find): New function.
6462         (unite): Ditto.
6463         (dump_constraint): Do not handle INCLUDES.
6464         (insert_into_complex): Do not insert duplicate constraints.
6465         (condense_varmap_nodes): Renamed and rewritten into ...
6466         (merge_node_constraints): This. Also fix bug in handling of
6467         offseted copy constraints.
6468         (clear_edges_for_node): No longer need to deal with preds at all,
6469         or removing associated preds/succs.
6470         (merge_graph_nodes): Deal with indirect_cycles.
6471         Don't deal with predecessors.
6472         (add_implicit_graph_edge): New function.
6473         (add_pred_graph_edge): Ditto.
6474         (add_graph_edge): Don't deal with predecessors.
6475         (build_constraint_graph): Removed.
6476         (build_pred_graph): New function.
6477         (build_succ_graph): Ditto.
6478         (struct scc_info): Removed in_component. Added roots, dfs, and
6479         node_mapping. Remove visited_index, unification_queue.
6480         (scc_visit): Deal with union-find we do now.
6481         Deal with cycles with REF nodes.
6482         (collapse_nodes): Renamed and rewritten to ...
6483         (unify_nodes): This.
6484         (process_unification_queue): Removed.
6485         (topo_visit): Cleanup
6486         (do_da_constraint): Use find.
6487         (do_sd_constraint): Ditto.
6488         (do_ds_constraint): Ditto.
6489         (do_complex_constraint): Ditto.
6490         (init_scc_info): Update for removed and added members.
6491         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
6492         (find_indirect_cycles): This.
6493         (equivalence_class): New variable.
6494         (label_visit): New function.
6495         (perform_variable_substitution): Rewritten.
6496         (free_var_substitution_info): New function.
6497         (find_equivalent_node): Ditto.
6498         (move_complex_constraints): Ditto.
6499         (eliminate_indirect_cycles): Ditto.
6500         (solve_graph): Only propagate changed bits.
6501         Use indirect cycle elimination.
6502         Use find.
6503         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
6504         (tree_id_eq): Renamed to ...
6505         (tree_vi_eq): This. Update for member change
6506         (insert_id_for_tree): Renamed and rewritten to ...
6507         (insert_vi_for_tree): This.
6508         (lookup_id_for_tree): Renamed and rewritten to ...
6509         (lookup_vi_for_tree): This.
6510         (get_id_for_tree): Renamed and rewritten to ...
6511         (get_vi_for_tree): Ditto.
6512         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
6513         (process_constraint): Don't handle INCLUDES.
6514         Remove special ADDRESSOF case.
6515         (find_func_aliases): Rewrite to use vi functions instead of id
6516         ones.
6517         (create_function_info_for): Ditto.
6518         (create_variable_info_for): Ditto.
6519         (intra_create_variable_infos): Ditto.
6520         (merge_smts_into): Ditto.
6521         (find_what_p_points_to): Ditto.
6522         (init_base_vars): Ditto.
6523         (init_alias_vars): Ditto.
6524         (remove_preds_and_fake_succs): New function.
6525         (dump_sa_points_to_info): Dump new stats.
6526         (dump_solution_for_var): Use find.
6527         (set_used_smts): Fix formatting.
6528         (compute_points_to_sets): Updated for new functions.
6529         (ipa_pta_execute): Ditto.
6530
6531 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
6532             Richard Sandiford  <richard@codesourcery.com>
6533
6534         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
6535         parallels.
6536         * calls.c (expand_call): If the return value is a PARALLEL,
6537         extract its first member.
6538         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
6539         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
6540         use FUNCTION_EXTRA_EPILOGUE.
6541         (m68k_function_value): Return a PARALLEL if the return value
6542         is of a pointer type.
6543         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
6544         (FUNCTION_EXTRA_EPILOGUE): Remove.
6545         * config/m68k/m68k.md (D0_REG): New constant.
6546
6547 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
6548
6549         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
6550         output a NOP for empty epilogues.
6551
6552 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6553
6554         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
6555         before function.  Extend register save check to include all
6556         registers, not just integer ones.
6557
6558 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
6559
6560         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
6561         (m68k_use_return_insn): ...this.
6562         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
6563         * config/m68k/m68k.c (use_return_insn): Rename to...
6564         (m68k_use_return_insn): ...this.
6565         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
6566         of USE_RETURN_INSN.
6567
6568 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6569
6570         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
6571         nearest even, fix denormal rounding overflow.
6572
6573 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6574
6575         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
6576         f%$smove and f%$move.
6577         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
6578         (extendsfdf2_cf): Use fdmove instead of f%&move.
6579         (truncdfsf2_cf): Use fsmove instead of f%$smove.
6580         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
6581
6582 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6583
6584         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
6585         GPR<-GPR moves.
6586
6587 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6588
6589         * real.h (real_format): Add a canonical_nan_lsbs_set field.
6590         (coldfire_single_format): Declare.
6591         (coldfire_double_format): Likewise.
6592         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
6593         of qnan_msb_set to determine the lower bits of a canonical
6594         NaN significand.
6595         (encode_ieee_double): Likewise.
6596         (encode_ieee_quad): Likewise.
6597         (ieee_single_format): Initialize canonical_nan_lsbs_set.
6598         (mips_single_format): Likewise.
6599         (ieee_double_format): Likewise.
6600         (mips_double_format): Likewise.
6601         (ieee_extended_motorola_format): Likewise.
6602         (ieee_extended_intel_96_format): Likewise.
6603         (ieee_extended_intel_128_format): Likewise.
6604         (ieee_extended_intel_96_round_53_format): Likewise.
6605         (ibm_extended_format): Likewise.
6606         (mips_extended_format): Likewise.
6607         (ieee_quad_format): Likewise.
6608         (mips_quad_format): Likewise.
6609         (vax_f_format): Likewise.
6610         (vax_d_format): Likewise.
6611         (vax_g_format): Likewise.
6612         (i370_single_format): Likewise.
6613         (i370_double_format): Likewise.
6614         (decimal_single_format): Likewise.
6615         (decimal_double_format): Likewise.
6616         (decimal_quad_format): Likewise.
6617         (c4x_single_format): Likewise.
6618         (c4x_extended_format): Likewise.
6619         (real_internal_format): Likewise.
6620         (coldfire_single_format): New real_format.
6621         (coldfire_double_format): Likewise.
6622         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
6623         canonical_nan_lsbs_set.
6624         (pdp11_d_format): Likewise.
6625         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
6626         if TARGET_COLDFIRE_CPU.
6627
6628 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6629
6630         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
6631         (output_call, m68k_legitimize_call_address): Declare.
6632         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
6633         parenthesees.  Add support for a 'W' constraint.
6634         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
6635         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
6636         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
6637         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
6638         variables.
6639         (override_options): Initialize them.  Do not set flag_no_function_cse
6640         for TARGET_ID_SHARED_LIBRARY.
6641         (m68k_output_pic_call): Delete.
6642         (m68k_legitimize_call_address): New function.
6643         (print_operand): Remove the %o prefix.  Handle the %p prefix.
6644         (output_call): New function.
6645         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
6646         target address from the GOT if symbolic jumps are not allowed.
6647         * config/m68k/m68k.md (call, general_operand): Do not set
6648         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
6649         Merge separate flag_pic and !flag_pic define_insns into...
6650         (*call, *call_value): ...these new patterns.  Match the address
6651         rather than the containing MEM and require it to be a call_operand.
6652         Use output_call to generate the asm template.
6653         * config/m68k/predicates.md (const_call_operand): New predicate.
6654         (call_operand): Likewise.
6655
6656 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6657
6658         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
6659         (STACK_GROWS_DOWNWARD): Define to 1.
6660         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
6661         comments, emphasizing that these values are only defaults.
6662         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
6663         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
6664
6665 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6666
6667         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
6668
6669 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
6670             Richard Sandiford  <richard@codesourcery.com>
6671
6672         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
6673         (FP_REGNO_P): New macros.
6674         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
6675         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
6676         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
6677         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
6678
6679 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6680
6681         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6682         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
6683         to $tmake_file.
6684         * config/m68k/t-floatlib: New file, extracting common code from...
6685         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
6686         * config/m68k/t-uclinux: Here.
6687         * config/m68k/fpgnulib.c: Do not compile extendeed precision
6688         routines on ColdFire targets.
6689
6690 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
6691
6692         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6693         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
6694         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
6695         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
6696         explicitly set MOTOROLA to 1.
6697         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
6698
6699 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6700             Nathan Sidwell  <nathan@codesourcery.com>
6701
6702         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
6703         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
6704         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
6705         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
6706         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
6707         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
6708         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6709         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
6710         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
6711         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
6712         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
6713         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
6714         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
6715         (DBX_REGISTER_NUMBER): Delete.
6716         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
6717         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
6718         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
6719
6720 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6721
6722         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
6723         * config/flat.h: New file.
6724         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
6725         OBJECT_FORMAT_FLAT.
6726         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
6727         indirect references for -msep-data or -mid-shared-library.
6728         Do not use PC-relative code addresses either.
6729         * config/m68k/m68k.c (override_options): Restrict -fPIC error
6730         to -mpcrel.
6731         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
6732         for shared libraries and crt1.o for executables.  Use crti.o and
6733         crtbegin.o.
6734         (ENDFILE_SPEC): Use crtend.o and crtn.o.
6735         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
6736         Do not add -elf2flt or -shared-lib-id options here.
6737         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
6738         Pass -shared-lib-id if -mid-shared-library, taking the library
6739         identifier from -mshared-library-id if given, otherwise
6740         defaulting to 0.
6741         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
6742         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
6743         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
6744         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
6745         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
6746         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
6747         and crtend.o.
6748         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
6749         jump sequence for ISA A and ISA A+.
6750         (PICJUMP): Likewise.
6751
6752 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6753
6754         * config.gcc (m68k-*-uclinux*): Base the port on the common
6755         and m68k GNU/Linux files rather than on the generic ELF ones.
6756         * config/m68k/uclinux.h (TARGET_VERSION): Override.
6757         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
6758
6759 2007-01-18  Julian Brown  <julian@codesourcery.com>
6760             Richard Sandiford  <richard@codesourcery.com>
6761
6762         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
6763         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6764         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
6765         before redefining.
6766         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
6767         80 unconditionally.
6768         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6769
6770 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
6771
6772         * doc/install.texi: Document m68k-uclinuxoldabi.
6773         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
6774         * config/m68k/uclinux-oldabi.h: New file, copied from
6775         config/m68k/uclinux.h.
6776
6777 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6778
6779         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
6780         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
6781         (m32r_compute_frame_size): Use unsigned for regno.
6782         (m32r_reload_lr): Use gen_frame_mem.
6783         (pop): New.
6784         (m32r_output_function_epilogue): Don't output the function epilogue
6785         textually here.
6786         (m32r_expand_epilogue): New.
6787         (direct_return): Return false if the function has the interrupt
6788         attribute.
6789         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
6790         * config/m32r/m32r.md (epilogue): New expander.
6791         (return_lr, return_rte): New insns.
6792         (return): Make it expander.
6793         (return_normal): New expander.
6794
6795 2007-01-18  Josh Conner  <jconner@apple.com>
6796
6797         PR target/30485
6798         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
6799         support for UNLE, UNLT, UNGE, and UNGT.
6800
6801 2007-01-18  Jan Hubicka  <jh@suse.cz>
6802
6803         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
6804         * tree-tailcall (add_virtual_phis): Likewise.
6805         (optimize_tail_call): Return TODOs.
6806         (execute_tail_calls): Return TODOs.
6807         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
6808         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
6809         changed.
6810         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
6811         Cleanup cfg using TODO.
6812         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
6813         * passes.c (execute_function_todo): When cleanup did something, remove
6814         unused locals.
6815         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
6816         (make_edges): Don't cleanup_cfg.
6817
6818 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
6819
6820         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
6821         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
6822         operate on the top of stack.
6823         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
6824         register handling of instructions that output to the second
6825         stack slot.
6826         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
6827         (move_for_stack_reg): Special-case check for dead destination
6828         stack slot for constant load of 1.0 inside UNSPEC_TAN.
6829
6830         * config/i386/i386.md (UNSPEC_TAN): New constant.
6831         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
6832         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
6833         to correctly model move of constant 1.0 to top stack slot.
6834         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
6835         (unnamed peephole2 pattern): Remove corresponding peephole2
6836         pattern that optimizes tan insn and loading of constant 1.0.
6837         (tanxf2): Use fptanxf4_i387.
6838         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
6839         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
6840         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
6841         disable patterns for SSE math.
6842         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
6843         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
6844
6845 2007-01-18  Dirk Mueller  <dmueller@suse.de>
6846             Richard Guenther <rguenther@suse.de>
6847
6848         PR diagnostic/8268
6849         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
6850         * common.opt (Warray-bounds): Add new warning option.
6851         * c-opts.c (c_common_handle_option): Define -Warray-bounds
6852         if -Wall is given.
6853         * Makefile.in: make tree-vrp.o depend on toplev.h
6854         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
6855         is enabled.
6856         (check_array_refs, check_array_bounds, check_array_ref): New.
6857
6858 2007-01-18  Jan Hubicka  <jh@suse.cz>
6859
6860         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
6861         (execute_ssa_ccp): Return flags conditionally.
6862         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
6863         changed.
6864         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
6865
6866 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
6867
6868         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
6869         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
6870
6871         * Makefile.c (GTFILES): Add cfglayout.h.
6872         * gengtype.c (open_base_files): Likewise.
6873         * cfglayout.c (cfg_layout_function_footer,
6874         cfg_layout_function_header) Reindent to make gengtype happy.
6875         * cfglayout.h (cfg_layout_function_footer,
6876         cfg_layout_function_header): Add GTY(()) marker.
6877
6878         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
6879
6880 2007-01-18  Ben Elliston  <bje@au.ibm.com>
6881
6882         * genautomata.c (write_automata): Include xstrerror output in the
6883         error message if writing the DFA description file fails.
6884
6885 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6886
6887         * config/mips/mips-protos.h (mips_output_external): Make it
6888         return void.
6889         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
6890         * config/mips/mips.c (irix_output_external_libcall): Likewise.
6891         (extern_list): Likewise.
6892         (extern_head): Likewise.
6893         (TARGET_ASM_FILE_END): Likewise.
6894         (mips_file_end): Likewise.
6895         (mips_output_external): Rewritten.
6896
6897 2007-01-18  Ben Elliston  <bje@au.ibm.com>
6898
6899         * genpreds.c (write_insn_preds_c): Only write out the function
6900         body for regclass_for_constraint if we have register constraints.
6901
6902 2007-01-17  Tom Tromey  <tromey@redhat.com>
6903
6904         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
6905         * doc/install.texi (Testing): Use sourceware.org.
6906         (Binaries): Likewise.
6907         (Specific): Likewise.
6908         * doc/contrib.texi (Contributors): Use sourceware.org.
6909
6910 2007-01-17  Anatoly Sokolov <aesok@post.ru>
6911
6912         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
6913         (AVR_ENHANCED): Rename to ...
6914         (AVR_HAVE_MUL): ... new.
6915         (avr_enhanced_p): Rename to ...
6916         (avr_have_mul_p): ... new.
6917         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
6918         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
6919         * config/avr/avr.c (avr_enhanced_p): Rename to ...
6920         (avr_have_mul_p): ... new.
6921         (base_arch_s): Rename 'enhanced' to 'have_mul'.
6922         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
6923         'avr_enhanced_p' and 'enhanced'.
6924         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
6925         AVR_HAVE_MUL instead of AVR_ENHANCED.
6926         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
6927         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
6928         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
6929         instead of AVR_ENHANCED.
6930         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
6931         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
6932         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
6933
6934 2007-01-17  Ian Lance Taylor  <iant@google.com>
6935
6936         * vec.h (VEC_reserve_exact): Define.
6937         (vec_gc_p_reserve_exact): Declare.
6938         (vec_gc_o_reserve_exact): Declare.
6939         (vec_heap_p_reserve_exact): Declare.
6940         (vec_heap_o_reserve_exact): Declare.
6941         (VEC_OP (T,A,reserve_exact)): New static inline function, three
6942         versions.
6943         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
6944         negative parameter.
6945         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
6946         (VEC_OP (T,A,copy)) [all versions]: Likewise.
6947         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
6948         * vec.c (calculate_allocation): Add exact parameter.  Change all
6949         callers.
6950         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
6951         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
6952         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
6953         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
6954         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
6955         (vec_heap_p_reserve_exact): New function.
6956         (vec_heap_o_reserve_exact): New function.
6957
6958 2007-01-17  Jan Hubicka  <jh@suse.cz>
6959
6960         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
6961
6962 2007-01-17  Eric Christopher  <echristo@apple.com>
6963
6964         * config.gcc: Support core2 processor.
6965
6966 2007-01-16  Jan Hubicka  <jh@suse.cz>
6967
6968         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
6969         the names, just unlink the chain so we don't crash on dangling pointers
6970         to dead SSA names.
6971
6972 2007-01-16  Jan Hubicka  <jh@suse.cz>
6973
6974         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
6975         * tree-pass.h: Reorder to make IPA passes appear toegher.
6976         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
6977         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
6978         parameters, do not call early inliner.
6979         * ipa-inline.c: Update comments.  Include tree-flow.h
6980         (cgraph_decide_inlining): Do not compute inlining parameters.
6981         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
6982         be called with function context set up.
6983         (pass_ipa_inline): Remove unreachable functions before pass.
6984         (cgraph_early_inlining): Simplify assuming to be called from the
6985         PM as local pass.
6986         (pass_early_inline): New pass.
6987         (cgraph_gate_ipa_early_inlining): New gate.
6988         (pass_ipa_early_inline): Turn into simple wrapper.
6989         (compute_inline_parameters): New function.
6990         (gate_inline_passes): New gate.
6991         (pass_inline_parameters): New pass.
6992         (apply_inline): Move here from tree-optimize.c
6993         (pass_apply_inline): New pass.
6994         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
6995         transforming.
6996         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
6997         doing them by hand.
6998         (tree_function_versioning): Do not allocate dummy struct function.
6999         * tree-inline.h (optimize_inline_calls): Update prototype.
7000         * tree-optimize.c (execute_fixup_cfg): Export.
7001         (pass_fixup_cfg): Remove
7002         (tree_rest_of_compilation): Do not apply inlines.
7003         * tree-flow.h (execute_fixup_cfg): Declare.
7004         * Makefile.in (gt-passes.c): New.
7005         * passes.c: Include gt-passes.h
7006         (init_optimization_passes): New passes.
7007         (nnodes, order): New static vars.
7008         (do_per_function_toporder): New function.
7009         (execute_one_pass): Dump current pass here.
7010         (execute_ipa_pass_list): Don't dump current pass here.
7011
7012 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
7013
7014         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
7015         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
7016
7017 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
7018
7019         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
7020         (strong_alias): Define.
7021         (__gcc_qmul): Provide non-FMA for soft-float.
7022         (__gcc_qdiv): Same.
7023         (__gcc_qneg): New.
7024         (__gcc_qeq): New.
7025         (__gcc_qle): New.
7026         (__gcc_qge): New.
7027         (__gcc_qunord): New.
7028         (__gcc_stoq): New.
7029         (__gcc_dtoq): New.
7030         (__gcc_qtos): New.
7031         (__gcc_qtod): New.
7032         (__gcc_qtoi): New.
7033         (__gcc_qtou): New.
7034         (__gcc_itoq): New.
7035         (__gcc_utoq): New.
7036         (fmsub): New.
7037         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
7038         soft-float functions.
7039         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
7040         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
7041         about long double soft float.
7042
7043 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
7044             Tehila Meyzels  <tehila@il.ibm.com>
7045
7046         * tree-vectorizer.h (is_pattern_stmt_p): New.
7047         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
7048         formatting (tabs instead of spaces). Cleanup and clarify setting
7049         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
7050         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
7051         (vectorizable_type_demotion): Check that types are integral.
7052         (vectorizable_type_promotion): Likewise.
7053         (vectorizable_store): Fix typo.  Eliminate new-line at end of
7054         comments.
7055
7056 2007-01-16  Jan Hubicka  <jh@suse.cz>
7057
7058         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
7059         cgraph edges too.
7060
7061 2007-01-15  Eric Christopher  <echristo@apple.com>
7062
7063         * ifcvt.c: Include vec.h, vecprim.h.
7064         (check_cond_move_block): New argument regs.
7065         Reorganize. Add registers used to regs.
7066         (cond_move_process_if_block): Use regs set above as
7067         loop bounds.
7068
7069 2007-01-15  Eric Christopher  <echristo@apple.com>
7070
7071         * config/darwin.h: Update copyright.
7072         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
7073         (LINK_COMMAND_SPEC): Add -u.
7074         (LINK_SPEC): Fix umbrella for above.
7075
7076 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
7077
7078         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
7079         glibc CVS.
7080
7081 2007-01-15  Tom Tromey  <tromey@redhat.com>
7082
7083         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
7084         * doc/install.texi (Testing): Don't mention jacks.
7085         (Configuration): Document --enable-java-maintainer-mode.  Move
7086         --with-java-home to libgcj-specific section.  Document
7087         --with-ecj-jar.
7088         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
7089
7090 2007-01-15  Jan Hubicka  <jh@suse.cz>
7091
7092         * tree-ssa-dce.c (DCE_TODOs): New.
7093         (propagate_necessity): Return if something changed.
7094         (eliminate_unnecessary_stmts): Likewise.
7095         (perform_tree_ssa_dce): Return TODO flags when needed.
7096         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
7097
7098 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
7099
7100         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
7101         (fyl2x_extend<mode>xf3_i387): New insn pattern.
7102         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
7103         patterns using X87MODEF12 mode macro.  Extend operand 1
7104         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
7105         (log10<mode>2): Ditto.
7106         (log2<mode>2): Ditto.
7107         (log1p<mode>2): Ditto.
7108         (logb<mode>2): Ditto.
7109         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
7110         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
7111         (*fxtractxf3_i387): Rename from *fxtractxf3.
7112         (fxtract_extend<mode>xf3_i387): New insn pattern.
7113         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
7114         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
7115         and gen_fyl2xxf3_i387().
7116
7117 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
7118
7119         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
7120         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
7121         get_loop_exit_edges.  Changed return type to bool.
7122         * cfgloop.h (fix_loop_placement): Declaration removed.
7123
7124 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
7125
7126         * param.h (MIN_VECT_LOOP_BOUND): New.
7127         * params.def (MIN_VECT_LOOP_BOUND): New.
7128         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
7129         argument - minimum threshold for number of iterations.
7130         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
7131         argument to declaration.
7132         * tree-vect-analyze.c (vect_analyze_operations): Check value of
7133         MIN_VECT_LOOP_BOUND.
7134         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
7135         slpeel_tree_peel_loop_to_edge with additional argument.
7136         (vect_do_peeling_for_alignment): Likewise.
7137         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
7138
7139 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
7140
7141         PR target/30413
7142         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
7143         operands of size 1.
7144
7145 2007-01-14  Jan Hubicka  <jh@suse.cz>
7146
7147         * tree-dfa.c (remove_referenced_var): New function.
7148         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
7149         prune referenced vars list too.
7150         * tree-flow.h (remove_referenced_var): Declare.
7151
7152 2007-01-14  Jan Hubicka  <jh@suse.cz>
7153
7154         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
7155         separately.
7156         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
7157         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
7158         * except.h (verify_eh_throw_table_statements): Kill prototype.
7159         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
7160         into call exrepssions.
7161         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
7162         eh trhow verifier.
7163         * tree-cfg.c: Include pointer-set.h.
7164         (verify_node_sharing): Work on pointer set.
7165         (verify_eh_throw_stmt_node): New.
7166         (verify_stmts): Use pointers sets, verify throw_stmt.
7167
7168 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
7169
7170         * ipa-reference.c (analyze_function): Consider also addresses taken
7171         in phi nodes.
7172
7173 2007-01-12  Roger Sayle  <roger@eyesopen.com>
7174
7175         * c-typeck.c (null_pointer_constant_p): Replace use of
7176         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
7177         (build_c_cast): Likewise.
7178
7179 2007-01-12  Roger Sayle  <roger@eyesopen.com>
7180
7181         * tree.h (force_fit_type_double): Remove unused final argument.
7182         * c-common.c (constant_expression_warning): Replace use of
7183         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
7184         (convert_and_check): Likewise.
7185         (shorten_compare): Update call to force_fit_type_double.
7186         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
7187         * convert.c (convert_to_pointer): Update call to
7188         force_fit_type_double.
7189         * fold-const.c (force_fit_type_double): Remove overflowed_const
7190         argument.
7191         (int_const_binop, fold_convert_const_int_from_int,
7192         fold_convert_const_int_from_real, fold_div_compare,
7193         fold_sign_changed_comparison, fold_unary, fold_negate_const,
7194         fold_abs_const, fold_not_const): Remove the final argument from
7195         calls to force_fit_type_double.
7196
7197 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7198
7199         * configure.ac: Set insn to "nop" for spu-*-* also.
7200         * configure: Regenerate.
7201
7202 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
7203
7204         * builtins.def : Add BUILT_IN_FREE.
7205
7206 2007-01-12  Jan Hubicka  <jh@suse.cz>
7207
7208         PR tree-optimization/30443
7209         * tree-inline.c (tree_function_versioning): Do not optimize when
7210         cloning for inlining.
7211
7212 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
7213
7214         * doc/loop.texi: Document recording of loop exits.
7215         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
7216         (update_single_exits_after_duplication,
7217         update_single_exit_for_duplicated_loop,
7218         update_single_exit_for_duplicated_loops): Removed.
7219         (duplicate_loop_to_header_edge): Do not call
7220         update_single_exits_after_duplication and
7221         update_single_exit_for_duplicated_loops.
7222         (loop_version): Do not update single_exit information.
7223         (fix_loop_structure): Use record_loop_exits instead of
7224         mark_single_exit_loops.
7225         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
7226         the lists of loop exits.
7227         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
7228         split_edge, merge_blocks): Update the lists of loop exits.
7229         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
7230         loop_optimizer_init.
7231         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
7232         of mark_single_exit_loops.
7233         (loop_optimizer_finalize): Call release_recorded_exits.
7234         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
7235         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
7236         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
7237         update single exit information.
7238         * lambda-code.c (perfect_nestify): Ditto.
7239         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
7240         (mark_single_exit_loops): Removed.
7241         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
7242         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
7243         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
7244         functions.
7245         (get_loop_exit_edges, single_exit): Use recorded exit lists.
7246         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
7247         (verify_loop_structure): Verify consistency of the exit lists.
7248         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
7249         (set_single_exit): Removed.
7250         * cfgloop.h (struct loop_exit): New function.
7251         (struct loop): single_exit_ field replaced by exits field.
7252         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
7253         (struct loops): Added exits hash.
7254         (mark_single_exit_loops, set_single_exit): Declaration removed.
7255         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
7256
7257 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7258
7259         * doc/invoke.texi: Avoid use of @headitem.
7260
7261 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7262
7263         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
7264
7265 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7266
7267         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
7268         list of targets.
7269
7270 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
7271             Richard Sandiford  <richard@codesourcery.com>
7272
7273         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
7274         * config/m68k/m68k.opt: Resort options.
7275         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
7276
7277 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
7278             Richard Sandiford  <richard@codesourcery.com>
7279
7280         * doc/invoke.texi: Document the macros that are defined by
7281         m68k's -mtune and -mhard-float options.
7282         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
7283         (m68k_cpp_cpu_family): Likewise.
7284         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
7285         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
7286         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
7287         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
7288         (m68k_cpp_cpu_family): Likewise.
7289
7290 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7291
7292         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
7293         macros besides mc68000 as tuning macros.  Use a switch statement
7294         to set them and mcpu32.
7295
7296 2007-01-12  Julian Brown  <julian@codesourcery.com>
7297
7298         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
7299         (TARGET_68040_ONLY): Rename to...
7300         (TARGET_68040): ...this.
7301         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
7302         * config/m68k/m68k.md: Likewise.
7303
7304 2007-01-12  Julian Brown  <julian@codesourcery.com>
7305             Nathan Sidwell  <nathan@codesourcery.com>
7306             Richard Sandiford  <richard@codesourcery.com>
7307
7308         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
7309         the -mcpu= argument associated with the --with-cpu setting.
7310         Define M68K_DEFAULT_TUNE to the default -mtune= option,
7311         if different from the one implied by the -mcpu setting.
7312         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
7313         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
7314         * doc/invoke.texi: Mention ColdFire in the introduction to the
7315         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
7316         -mno-div and -mhard-float options.  Make -m68881 a synonym for
7317         -mhard-float.  Document the previously-undocumented -m5206e,
7318         -m528x, -m5307 and -m5407 options.  Tweak the existing option
7319         documentation for consistency.
7320         * doc/install.texi: Mention new --with-cpu arguments.
7321         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
7322         default CPU if neither -mcpu nor -march are specified.
7323         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
7324         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
7325         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
7326         using m68k_tune to decide between families that implement the
7327         same ISA.  Use m68k_tune to set __mcfv4e__.
7328         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
7329         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
7330         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
7331         (FL_ISA_C, FL_ISA_MMU): New macros.
7332         (MASK_COLDFIRE): Delete.
7333         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
7334         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
7335         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
7336         (TARGET_HARD_FLOAT): Do not define here.
7337         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
7338         (TUNE_68000): New macro.
7339         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
7340         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
7341         (TUNE_CFV2): Redefine in terms of m68k_tune.
7342         (uarch_type, target_device, fpu_type): New enums.
7343         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
7344         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
7345         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
7346         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
7347         (FL_FOR_isa_c): New macros.
7348         (m68k_isa): New enum.
7349         (m68k_target_selection): New structure.
7350         (all_devices, all_isas, all_microarchs): New tables.
7351         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
7352         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
7353         (MASK_ALL_CPU_BITS): Delete.
7354         (m68k_find_selection): New function.
7355         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
7356         Map the legacy target options to a combination of the new ones.
7357         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
7358         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
7359         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
7360         settings.
7361         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
7362         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
7363         properties.
7364         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
7365         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
7366         * config/m68k/m68k-devices.def: New file.
7367
7368 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7369             Nathan Sidwell  <nathan@codesourcery.com>
7370
7371         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
7372         (SUBTARGET_EXTRA_SPECS): New macros.
7373         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
7374         use %(asm_cpu_spec) instead.
7375         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
7376         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
7377         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
7378         (EXTRA_SPECS): Rename to...
7379         (SUBTARGET_EXTRA_SPECS): ...this.
7380
7381 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
7382             Richard Sandiford  <richard@codesourcery.com>
7383             Julian Brown  <julian@codesourcery.com>
7384
7385         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
7386         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
7387         to the configuration's default CPU.
7388         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
7389         Remove default masks.
7390         (m680[012]0-*-*): Set the default with_cpu to the first part of
7391         the target name.
7392         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
7393         (m68k*-*-linux): Extend the --with-cpu handling to...
7394         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
7395         and m68010.  Don't set target_cpu_default2.
7396         * doc/install.texi: Document --with-cpu for m68k.
7397         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
7398         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
7399         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
7400         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
7401         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
7402         (ASM_SPEC): Remove use of %(asm_cpu_default).
7403         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
7404         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
7405         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
7406         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
7407         __HAVE_FPU__ if TARGET_HARD_FLOAT.
7408         (TARGET_DEFAULT): Delete.
7409         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
7410         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
7411         (CPP_CPU_SPEC): Delete.
7412         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
7413         the appropriate string.
7414         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
7415         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
7416         (ASM_SPEC): Don't use %(asm_default_spec).
7417         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
7418         TARGET_DEFAULT and add MASK_68881.
7419         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
7420
7421 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7422
7423         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
7424         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
7425         MASK_68010 alongside MASK_68020.
7426         * doc/invoke.texi: Document -m68010.
7427         * config/m68k/m68k.opt (m68010): New.
7428         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
7429         if TUNE_68010.
7430         (TUNE_68010): New macro.
7431         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
7432         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
7433         (M68K_CPU_m68332): Add MASK_68010.
7434         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
7435         fallback definition.
7436         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
7437         defines.
7438         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
7439         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
7440         to all entries that use MASK_68020.
7441         (output_move_simode_const, output_move_himode, output_move_qimode)
7442         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
7443         instead of TARGET_68020 to select clr behavior.  Remove comment
7444         about there being no TARGET_68010.
7445         * config/m68k/m68k.md: Likewise throughout.
7446
7447 2007-01-12  Julian Brown  <julian@codesourcery.com>
7448
7449         * config/m68k/m68k.h (TARGET_ISAB): New macro.
7450         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
7451         * config/m68k/m68k.md: Likewise.
7452
7453 2007-01-12  Julian Brown  <julian@codesourcery.com>
7454
7455         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
7456         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
7457
7458 2007-01-12  Julian Brown  <julian@codesourcery.com>
7459
7460         * config/m68k/m68k.h (TUNE_68040_60): New macro.
7461         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
7462         * config/m68k/m68k.md: Likewise.
7463
7464 2007-01-12  Julian Brown  <julian@codesourcery.com>
7465             Richard Sandiford  <richard@codesourcery.com>
7466
7467         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
7468         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
7469         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
7470         TARGET_CPU32.
7471         (TARGET_CPU32): Rename to...
7472         (TUNE_CPU32): ...this.
7473         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
7474         (TUNE_CFV2): New macros.
7475         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
7476         remove conditions that are implied by TARGET_68020.
7477         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
7478         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
7479         (m68k_output_function_epilogue): Likewise.
7480         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
7481         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
7482         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
7483         non-68000 timings.  Refactor multiplication and division costs.
7484         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
7485         TUNE_CPU32 instead of TARGET_CPU32.
7486         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
7487         and TUNE_68060 instead of TARGET_68060.
7488         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
7489         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
7490         TARGET_CPU32.
7491         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
7492         && !TARGET_COLDFIRE" to choose between moveq and clr.
7493         Likewise in the unnamed movsf pattern.
7494         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
7495         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
7496         ashiftrt pattern.
7497
7498 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
7499
7500         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
7501         of tabbing before backslashes.
7502
7503 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7504
7505         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
7506         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
7507         (ASM_OUTPUT_INTERNAL_LABEL): Define.
7508
7509 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
7510
7511         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
7512         find_interesting_uses_cond.
7513         (find_interesting_uses_cond): Use extract_cond_operands.
7514         (rewrite_use_compare): Use extract_cond_operands and
7515         force_gimple_operand_bsi.  Do not call update_stmt.
7516         (determine_use_iv_cost_condition): Use extract_cond_operands.
7517         Return cheaper of using original bound and changing the exit bound.
7518
7519 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
7520
7521         PR tree-optimization/29516
7522         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
7523         most_expensive_mult_to_index, addr_to_parts,
7524         create_mem_ref, maybe_fold_tmr): Make the type of
7525         fields of TARGET_MEM_REF sizetype.
7526         (move_fixed_address_to_symbol, move_pointer_to_base):
7527         New functions.
7528         * tree.def (TARGET_MEM_REF): Add comment on types of
7529         the operands.
7530
7531 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
7532
7533         * c-common.c (vector_types_convertible_p): Treat opaque types as
7534         always convertible if they have the same size, but not otherwise.
7535
7536 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
7537
7538         * ifcvt.c (struct noce_if_info): Add comments to the fields.
7539         Remove the b_unconditional field.
7540         (noce_try_sign_mask): Do not look at b_unconditional.
7541         (noce_process_if_block): Do not use merge_if_blocks.  Update
7542         the CFG here.  Do not set b_unconditional.
7543         (cond_move_process_if_block): Likewise.
7544         (find_cond_trap): Likewise.
7545         (check_cond_move_block): Require simple jump insns at the end
7546         of the basic block.
7547
7548 2007-01-11  Jan Hubicka  <jh@suse.cz>
7549
7550         PR tree-optimization/1046
7551         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
7552         when alias info is not ready.
7553         (pass_tail_recursion): Do not require aliasing.
7554         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
7555         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
7556         * tree-ssa-copy.c (pass_copy_prop): Likewise.
7557         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
7558         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
7559         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
7560         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
7561         before inlining.
7562         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
7563         When aliasing is not build, mark statement as volatile.
7564
7565 2007-01-11  Tom Tromey  <tromey@redhat.com>
7566
7567         PR preprocessor/15185, PR preprocessor/20989:
7568         * doc/cppopts.texi <-MT>: Update description of algorithm for
7569         computing default target.
7570         <-M, -MD>: Reword "basename" text.
7571
7572 2007-01-11  Roger Sayle  <roger@eyesopen.com>
7573
7574         * builtins.c (expand_builtin_pow, expand_builtin_powi,
7575         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
7576         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
7577         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
7578         fold_builtin_bswap, real_constp, fold_builtin_pow,
7579         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
7580         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
7581         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
7582         * convert.c (convert_to_pointer): Likewise.
7583         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7584         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
7585         const_binop, fold_convert_const_int_from_int,
7586         fold_convert_const_int_from_real,
7587         fold_convert_const_real_from_real, sign_bit_p,
7588         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
7589         fold_sign_changed_comparison, fold_unary, fold_comparison,
7590         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
7591         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
7592         * print-tree.c (print_node_brief, print_node): Likewise.
7593         * stor-layout.c (place_field, layout_type): Likewise.
7594         * tree-chrec.c (keep_cast): Likewise.
7595         * tree.c (build_vector, build_real, build_real_from_int_cst,
7596         build_complex): Likewise.
7597
7598 2007-01-11  Roger Sayle  <roger@eyesopen.com>
7599
7600         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
7601         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
7602
7603 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
7604
7605         * configure.ac (strict1_warn): Rename to strict_warn.
7606         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
7607         cc_set_by_configure, quoted_cc_set_by_configure,
7608         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
7609         all_boot_languages, all_stagestuff): Remove.
7610         (target_list): Remove bootstrap targets.
7611         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
7612         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
7613         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
7614         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
7615         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
7616         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
7617         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
7618         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
7619         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
7620         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
7621         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
7622         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
7623         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
7624         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
7625         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
7626         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
7627         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
7628         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
7629         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
7630         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
7631         (mostlyclean): Adjust.
7632         (clean, distclean): Don't mention bootstrap stuff.
7633         * configure: Regenerate.
7634         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
7635         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
7636         treelang/config-lang.in (stagestuff): Remove.
7637         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
7638         stageprofile, stagefeedback, stagestuff): Remove mention.
7639
7640 2007-01-11  Nick Clifton  <nickc@redhat.com>
7641
7642         * config/mcore/predicates.md (mcore_general_movesrc_operand):
7643         Accept CONSTs.
7644         (mcore_general_movdst_operand): Do not accept CONST_INTs.
7645         (mcore_arith_K_S_operand): Run the test for the S constraint not
7646         the test for the M constraint.
7647         (mcore_addsub_operand): Do not accept integer values that are
7648         larger than 32 bits.
7649         * config/mcore/mcore.md: Remove unused constraints from split.
7650         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
7651         (addsi3): Likewise.
7652         (allocate_stack): Likewise.
7653         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
7654         operands to 32 bits.
7655         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
7656         INTVAL.
7657         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
7658         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
7659         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
7660         mcore_output_bclri, mcore_output_andn, output_inline_const,
7661         mcore_output_move, mcore_output_movedouble): Likewise.
7662         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
7663         (output_inline_const): Likewise.
7664         (output_inline_const): Fix format strings used in sprintf
7665         statements.
7666         * config/mcore/mcore-protos.h: Update prototypes for changed
7667         functions in mcore.c.
7668         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
7669         HOST_WIDE_INT and not int.
7670         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
7671         CONST_OK_FOR_N): Likewise.
7672         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
7673         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
7674         an INTVAL.
7675
7676 2007-01-10  Jan Hubicka  <jh@suse.cz>
7677
7678         * tree-vrp.c (remove_range_assertions): Release defs.
7679         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
7680         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
7681
7682 2007-01-10  Paul Brook  <paul@codesourcery.com>
7683
7684         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
7685         * config/arm/arm.md (mulsi3subsi): New insn.
7686
7687 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
7688
7689         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
7690         (tree_transform_and_unroll_loop): New.
7691         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
7692         Declare.
7693
7694 2007-01-10  Robert Kennedy <jimbob@google.com>
7695
7696         * fold-const.c (fold_comparison): Fold comparisons like (x *
7697         1000 < 0) to (x < 0).
7698
7699 2007-01-10  Ian Lance Taylor  <iant@google.com>
7700
7701         * tree-pretty-print.c (dump_generic_node): Print parentheses when
7702         operands have the same priority.
7703
7704 2007-01-10  Tom Tromey  <tromey@redhat.com>
7705
7706         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
7707         (fold_binary): Likewise.
7708         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
7709         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
7710         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
7711         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
7712         * langhooks.h (struct lang_hooks): Removed field
7713         'can_use_bit_fields_p'.
7714
7715 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
7716
7717         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
7718
7719 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
7720
7721         * function.c (get_last_funcdef_no): New function.
7722         * function.h (get_last_funcdef_no): Declare.
7723         * tree-inline.c (initialize_cfun): Add initialization.
7724         (tree_function_versioning): Cleanup.
7725
7726 2007-01-10  Jan Hubicka  <jh@suse.cz>
7727
7728         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
7729         PHIs.
7730
7731 2007-01-10  Sa Liu  <saliu@de.ibm.com>
7732             Ben Elliston  <bje@au.ibm.com>
7733
7734         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
7735         for SAVE_NONLOCAL and Pmode for any other save level.
7736         * spu-protos.h (spu_restore_stack_block): Declare.
7737         * spu.md (save_stack_block): Remove.
7738         (restore_stack_block): Call spu_restore_stack_block.
7739         * spu.c (spu_restore_stack_block): New function.
7740         (spu_expand_epilogue): Remove old comment.
7741
7742 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
7743
7744         PR tree-optimization/30322
7745         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
7746         (cand_value_at): Return the value as aff_tree.
7747         (may_eliminate_iv): Convert the bound from aff_tree to tree.
7748         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
7749         aff_combination_mult): New functions.
7750         (aff_combination_add): Use aff_combination_add_cst.
7751         (aff_combination_convert): Allow conversions to a wider type.
7752         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
7753         * tree-affine.h (aff_combination_mult): Declare.
7754
7755 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
7756
7757         * doc/tm.texi: Update documentation to reflect reality of exec
7758         and start file search behaviours. Update copyright year.
7759         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
7760         header file directories.
7761
7762 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
7763
7764         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
7765         (*cosxf2): Rename to cosxf2_i387.
7766         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
7767         using X87MODEF12 mode macro. Rename patterns to
7768         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
7769         for SSE math.
7770         (*cosdf2, *cossf2): Ditto.
7771         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
7772         to match extended input operands.
7773         (sincos<mode>3): New expander.
7774         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
7775         insn patterns and corresponding splitters.
7776
7777 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7778
7779         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
7780         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
7781
7782 2007-01-09  Nicolas Pitre  <nico@cam.org>
7783
7784         PR target/30173
7785         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
7786
7787 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
7788
7789         * target.h (struct gcc_target): New field library_rtti_comdat.
7790         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
7791         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
7792         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
7793         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
7794
7795 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
7796
7797         * doc/invoke.texi (Optimize Options): Correct description of -O0.
7798
7799 2007-01-08  Richard Guenther  <rguenther@suse.de>
7800
7801         * tree.h (force_fit_type_double): Export.
7802         (force_fit_type): Remove.
7803         * fold-const.c (force_fit_type_double): New function.
7804         (force_fit_type): Remove.
7805         (int_const_binop): Use it.
7806         (fold_convert_const_int_from_int): Likewise.
7807         (fold_convert_const_int_from_real): Likewise.
7808         (fold_div_compare): Likewise.
7809         (fold_sign_changed_comparison): Likewise.
7810         (fold_unary): Likewise.
7811         (fold_negate_const): Likewise.
7812         (fold_abs_const): Likewise.
7813         (fold_not_const): Likewise.
7814         * c-common.c (shorten_compare): Use force_fit_type_double.
7815         * convert.c (convert_to_pointer): Likewise.
7816
7817 2007-01-08  Richard Guenther  <rguenther@suse.de>
7818
7819         * tree.h (build_int_cst_wide_type): Export.
7820         * tree.c (build_int_cst_wide_type): New function.
7821         (build_int_cst_wide): Fix comment.
7822         * builtins.c (fold_builtin_object_size): Use build_int_cst
7823         to build -1 or 0 of the correct type.  Use fit_double_type
7824         to check for overflow.
7825         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
7826         to build the mask.
7827         (decode_field_reference): Likewise.
7828         (all_ones_mask_p): Likewise.
7829         (native_interpret_int): Use build_int_cst_wide_type.
7830         (fold_binary): Use build_int_cst_type to build an all-ones
7831         value.
7832         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
7833
7834 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7835
7836         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
7837
7838 2007-01-09  Ben Elliston  <bje@au.ibm.com>
7839
7840         * genautomata.c (STATS_OPTION): New option.
7841         (stats_flag): New flag.
7842         (gen_automata_option): Handle it.
7843         (initiate_automaton_gen): Ditto.
7844         (write_automata): Output statistics only if stats_flag is
7845         set. Likewise, output time statistics only if time_flag is set.
7846         * doc/md.texi (Processor pipeline description): Document new flag.
7847
7848 2007-01-08  Richard Guenther  <rguenther@suse.de>
7849
7850         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
7851         * tree.c (build_int_cst_type): Likewise.
7852         (size_in_bytes): Don't call force_fit_type on the result.
7853         (int_fits_type_p): Use fit_double_type.
7854         * fold-const.c (fit_double_type): New function.
7855         (force_fit_type): Use it.
7856         * tree.h (fit_double_type): Export.
7857
7858 2007-01-08  Jan Hubicka  <jh@suse.cz>
7859
7860         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
7861         * ipa.c (function_and_variable_visibility): Fix return type.
7862
7863 2007-01-08  Richard Guenther  <rguenther@suse.de>
7864
7865         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
7866         of offset to build the index.
7867         * tree-pretty-print.c (dump_generic_node): Don't build negated
7868         const just for printing.
7869         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7870         * builtins.c (fold_builtin_int_roundingfn): Check if result
7871         fits the type by using force_fit_type and comparing the result.
7872         * predict.c (predict_loops): Use compare_tree_int for comparison.
7873         * tree.c (build_int_cst): Fall back to integer_type_node for
7874         NULL_TREE type.
7875         (build_int_cst_wide): Assert type is non-null.
7876
7877 2007-01-08  Roberto Costa  <roberto.costa@st.com>
7878
7879         * tree-vrp.c (extract_range_from_cond_expr): New.
7880         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
7881         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
7882         as expressions.
7883         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
7884         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
7885         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
7886         used as expressions.
7887         * tree-object-size.c (cond_expr_object_size): New.
7888         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
7889
7890 2007-01-08  Jan Hubicka  <jh@suse.cz>
7891
7892         * tree-ssa-forwprop.c (forward_propagate_into_cond,
7893         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
7894         statement.
7895
7896 2007-01-08  Richard Guenther  <rguenther@suse.de>
7897
7898         PR tree-optimization/23603
7899         * tree-vrp.c (set_value_range_to_truthvalue): New function.
7900         (extract_range_from_binary): Fall back to truthvalue instead of
7901         varying for TRUTH_*_EXPR.
7902         (extract_range_from_comparison): Fall back to truthvalue instead of
7903         varying.
7904         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
7905         if all visited PHI values were constant.
7906
7907 2007-01-08  Jan Hubicka  <jh@suse.cz>
7908
7909         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
7910         (cgraph_analyze_function): break out from ...
7911         (cgraph_finalize_compilation_unit): ... here.
7912         (cgraph_expand_function): Remove forgoten commented out line.
7913         (cgraph_optimize): Analyze functions.
7914
7915 2007-01-08  Jan Hubicka  <jh@suse.cz>
7916
7917         * tree-pas.h (TODO_remove_function): New flag.
7918         (TODO_update*): Renumber.
7919         (pass_ipa_increase_alignment,
7920         pass_ipa_function_and_variable_visibility): New passes.
7921         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
7922         (cgraph_function_and_variable_visibility): Move to ipa.c
7923         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
7924         cgraph_increase_alignment.
7925         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
7926         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
7927         calling tree-inline.
7928         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
7929         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
7930         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
7931         (gate_increase_alignment): New function.
7932         (pass_ipa_increase_alignment): New pass.
7933         * ipa.c: Inline tree-pass.h and timevar.h
7934         (function_and_variable_visibility): Move here from cgraphunit.c
7935         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
7936         * passes.c (init_optimization_passes): Add the two new passes.
7937         (execute_todo): Handle cgraph_remove_functions.
7938
7939 2007-01-08  Nick Clifton  <nickc@redhat.com>
7940
7941         * config/frv/predicates.md (reg_or_0_operand): Accept
7942         CONST_DOUBLEs.
7943
7944 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
7945
7946         * config/bfin/rtems.h, config/bfin/t-rtems: New.
7947         * config.gcc: Add bfin*-rtems*.
7948
7949 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
7950
7951         * c.opt: Add -flax-vector-conversions.
7952         * c-typeck.c (convert_for_assignment): Pass flag to
7953         vector_types_convertible_p to allow emission of note.
7954         (digest_init): Likewise.
7955         * c-opts.c: Handle -flax-vector-conversions.
7956         * c-common.c (flag_lax_vector_conversions): New.
7957         (vector_types_convertible_p): Unless -flax-vector conversions
7958         has been passed, disallow conversions between vectors with
7959         differing numbers of subparts and/or element types.  If such
7960         a conversion is disallowed, possibly emit a note on the first
7961         occasion only to inform the user of -flax-vector-conversions.
7962         The new last argument specifies this.
7963         * c-common.h (flag_lax_vector_conversions): New.
7964         (vector_types_convertible_p): Add extra argument.
7965         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7966         char_type_node for V*QI type vectors.
7967         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
7968         Update to satisfy new typechecking rules.
7969         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
7970         C and C++ variants.
7971         * doc/invoke.texi (C Dialect Options): Document
7972         -flax-vector-conversions.
7973
7974 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
7975
7976         PR tree-optimization/29877
7977         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
7978         a register variable on the RHS to not be replaceable.
7979
7980 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
7981         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
7982         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
7983         const_simm15, const_pow2, const_npow2): Added.
7984         * config/score/misc.md (insv, extv, extzv, movmemsi,
7985         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
7986         * config/score/score.c (score_address_cost, score_select_cc_mode):
7987         Added.
7988         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
7989         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
7990         Update score_print_operand.
7991         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
7992         Adjust register allocate order and update some macro define.
7993         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
7994         mdx_block_move_straight, mdx_block_move_loop_head,
7995         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
7996         mdx_block_move): Added.
7997         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
7998         mdp_limm): Updated and fix some bug and typo.
7999         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
8000         (movsf, movdf, doloop_end): Added.
8001
8002 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
8003
8004         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
8005         config/arm/thumb2.md: Fix comment typos.
8006         * doc/extend.texi: Fix a typo.
8007
8008 2007-01-07  Eric Christopher  <echristo@apple.com>
8009
8010         * configure.ac: Check for __stack_chk_fail for darwin.
8011         * configure: Regenerate.
8012
8013 2007-01-07  Richard Guenther  <rguenther@suse.de>
8014
8015         * tree-vrp.c (extract_range_from_assert): CSE calls to
8016         compare_values where possible.
8017         (extract_range_from_unary_expr): Likewise.
8018
8019 2007-01-07  Anatoly Sokolov <aesok@post.ru>
8020
8021         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
8022         * config/avr/avr.c (call_insn_operand): Delete function.
8023         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
8024         instead of register number. Use predicates.
8025         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
8026         call_insn_operand): Add.
8027
8028 2007-01-06  Jan Hubicka  <jh@suse.cz>
8029
8030         * tree-pass.h (pass_build_cgraph_edges): Declare.
8031         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
8032         (visited_nodes): Remove.
8033         (cgraph_create_edges): Move to cgraphbuild.c; rename to
8034         build_cgrpah_edges; make visited_nodes local.
8035         (cgraph_process_new_functions): DO not call initialize_inline_failed.
8036         (record_references_in_initializer): Move to cgraphbuild.c
8037         (initialize_inline_failed, rebuild_cgraph_edges,
8038         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
8039         (verify_cgraph_node): Make visited_nodes local.
8040         (cgraph_analyze_function): Do not call cgraph_create_edges and
8041         initialize_inline_failed.
8042         (cgraph_expand_function): Do not call cgraph_lower_function;
8043         assert that function is already lowered.
8044         * Makefile.in (cgraphbuild.o): New.
8045         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
8046         at the end of lowering passes.
8047
8048 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
8049
8050         * ifcvt.c (cond_move_convert_if_block): New function, code
8051         factored out from...
8052         (cond_move_process_if_block): ...here.  Call the new function
8053         on the THEN and ELSE blocks.
8054         (merge_if_block): Do not copy global_live_at_end, merge_blocks
8055         already takes care of this.
8056
8057 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8058
8059         PR c/19978
8060         * tree.h (TREE_OVERFLOW_P): New.
8061         * c-typeck.c (parser_build_unary_op): Warn only if result
8062         overflowed and operands did not.
8063         (parser_build_binary_op): Likewise.
8064         (convert_for_assignment): Remove redundant overflow_warning.
8065         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
8066
8067 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8068
8069         * c-typeck.c (store_init_value): Split over two lines to follow
8070         the GNU coding style.
8071
8072 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
8073
8074         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
8075         __GXX_EXPERIMENTAL_CXX0X__.
8076         * doc/cpp.texi: Same.
8077
8078 2007-01-05  Richard Guenther  <rguenther@suse.de>
8079
8080         PR middle-end/27826
8081         * tree.c (get_narrower): Do not construct COMPONENT_REFs
8082         with mismatched types.  Instead explicitly build a
8083         conversion NOP_EXPR.
8084
8085 2007-01-05  Ian Lance Taylor  <iant@google.com>
8086
8087         * c-common.c (decl_with_nonnull_addr_p): New function.
8088         (c_common_truthvalue_conversion): Call it.
8089         * c-typeck.c (build_binary_op): Likewise.
8090         * c-common.h (decl_with_nonnull_addr_p): Declare.
8091
8092 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
8093
8094         PR c/30360
8095         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
8096         denom against 0.0.
8097
8098 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
8099
8100         * doc/install.texi (Final install): Document the fact that
8101         the GNAT runtime should not be stripped.
8102
8103 2007-01-04  Jan Hubicka  <jh@suse.cz>
8104
8105         * tree-inline.c (fold_marked_statements): Update operand caches
8106         and EH after folding
8107
8108 2007-01-04  Ian Lance Taylor  <iant@google.com>
8109
8110         * c-common.c (check_function_nonnull): Whitespace fix.
8111
8112 2007-01-04  Jan Hubicka  <jh@suse.cz>
8113
8114         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
8115         comitted older version of patch.
8116         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
8117         function, celanup cfg and collect garbage.
8118
8119 2007-01-04  Mike Stump  <mrs@apple.com>
8120
8121         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
8122         (clean): Likewise.
8123
8124 2007-01-04  Eric Christopher  <echristo@apple.com>
8125
8126         * libgcc2.c (__bswapsi2): Use SItype.
8127         (__bswapdi2): Use DItype.
8128         * libgcc2.h: Update for above.
8129
8130 2007-01-04  Paul Brook  <paul@codesourcery.com>
8131
8132         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
8133         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
8134         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
8135         umulsidi3, umulsidi3adddi, smulsi3_highpart,
8136         umulsi3_highpart): Make conditional on !arm_arch6.
8137         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
8138         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
8139         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
8140         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
8141         umulsi3_highpart_v6): New insns.
8142
8143 2007-01-04  Roger Sayle  <roger@eyesopen.com>
8144
8145         * fold-const.c (fold_convert): When casting an expression to void,
8146         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
8147         have a type.  Instead of attempting to build a NOP_EXPR, return
8148         these "special" trees directly.
8149
8150 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
8151
8152         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
8153         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
8154         rs6000_cost->fp not 0 as adjustment for outer NEG.
8155
8156 2007-01-04  Jan Hubicka  <jh@suse.cz>
8157
8158         * cgraph.c (cgraph_release_function_body): New function.
8159         (cgraph_remove_node): Use it.
8160         * cgraph.h (cgraph_release_function_body): Declare.
8161         * cgraphunit.c (cgraph_expand_function): Use it.
8162         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
8163         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
8164         is initialized and while compilation of other function is running.
8165         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
8166         statement CFG annotations from here to ...
8167         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
8168
8169 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
8170
8171         * cfgloop.h (enum li_flags): Make the constants powers of two.
8172
8173 2007-01-04  Jan Hubicka  <jh@suse.cz>
8174
8175         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
8176         set.
8177         (fold_marked_statements): New function.
8178         (optimize_inline_calls, tree_function_versioning): Fold new statements.
8179         * tree-inline.h (copy_body_data): Add statements_to_fold.
8180
8181 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
8182
8183         * config.gcc: Mention libgcc/config.host.
8184         * Makefile.in: Update comments mentioning libgcc.
8185         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
8186         (all.cross, start.encap, rest.encap, rest.cross): Update
8187         dependencies for libgcc move.
8188         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
8189         (clean-target, clean-target-libgcc): Delete.
8190         (srcdirify, GCC_EXTRA_PARTS): New macros.
8191         (libgcc-support, libgcc.mvars): New rules.
8192         (distclean): Remove mention of mklibgcc.
8193         (install): Don't reference INSTALL_LIBGCC.
8194         (install-common): Don't reference EXTRA_PARTS.
8195         (install-libgcc, install-multilib): Delete rules.
8196         * mklibgcc.in: Delete file.
8197         * doc/configfiles.texi: Don't mention mklibgcc.
8198
8199         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
8200         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
8201         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
8202         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
8203         (mklibgcc, ldblspecs): Likewise.
8204
8205         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
8206         (posixpre.def): Use $(T).
8207         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
8208         (SHLIB_SRC, SHLIB_INSTALL): Delete.
8209         (SHLIB_LINK): Make dummy.
8210         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
8211
8212         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
8213
8214         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
8215         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
8216         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
8217         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
8218
8219         * configure.ac (all_outputs): Remove mklibgcc.
8220         * configure: Regenerated.
8221
8222 2007-01-03  Josh Conner  <jconner@apple.com>
8223
8224         PR middle-end/29683
8225         * calls.c (compute_argument_addresses): Set stack and stack_slot
8226         for partial args, too.
8227         (store_one_arg): Use locate.size.constant for the size when
8228         generating a save_area.
8229
8230 2007-01-03  Robert Kennedy <jimbob@google.com>
8231
8232         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
8233         whose definitions are deleted due to basic block merging.
8234
8235 2007-01-03  Paul Brook  <paul@codesourcery.com>
8236
8237         PR target/16634
8238         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
8239         functions.
8240         (use_return_insn): Return 0 for Thumb interrupt functions.
8241         (print_multi_reg): Add rfe argument for IRQ returns.
8242         (arm_output_epilogue): Pop interrupt return address directly into PC.
8243         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
8244
8245 2007-01-03  Paul Brook  <paul@codesourcery.com>
8246
8247         Merge from sourcerygxx-4_1.
8248         * config/arm/thumb2.md: New file.
8249         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
8250         Thumb-2.
8251         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
8252         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
8253         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
8254         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
8255         tables.
8256         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
8257         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
8258         comptibility.
8259         * config/arm/ieee754-sf.S: Ditto.
8260         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
8261         (thumb1_base_register_rtx_p): ... to this.
8262         (thumb_index_register_rtx_p): Rename...
8263         (thumb1_index_register_rtx_p): ... to this.
8264         (thumb_output_function_prologue): Rename...
8265         (thumb1_output_function_prologue): ... to this.
8266         (thumb_legitimate_address_p): Rename...
8267         (thumb1_legitimate_address_p): ... to this.
8268         (thumb_rtx_costs): Rename...
8269         (thumb1_rtx_costs): ... to this.
8270         (thumb_compute_save_reg_mask): Rename...
8271         (thumb1_compute_save_reg_mask): ... to this.
8272         (thumb_final_prescan_insn): Rename...
8273         (thumb1_final_prescan_insn): ... to this.
8274         (thumb_expand_epilogue): Rename...
8275         (thumb1_expand_epilogue): ... to this.
8276         (arm_unwind_emit_stm): Rename...
8277         (arm_unwind_emit_sequence): ... to this.
8278         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
8279         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
8280         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
8281         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
8282         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
8283         thumb2_output_casesi): New functions.
8284         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
8285         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
8286         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
8287         THUMB2_WORK_REGS): Define.
8288         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
8289         arm_condexec_mask, arm_condexec_masklen)): New variables.
8290         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
8291         (arm_override_options): Check new CPU capabilities.
8292         Set new architecture flag variables.
8293         (arm_isr_value): Handle v7m interrupt functions.
8294         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
8295         Thumb-2.
8296         (const_ok_for_arm): Handle Thumb-2 constants.
8297         (arm_gen_constant): Ditto.  Use movw when available.
8298         (arm_function_ok_for_sibcall): Return false for v7m interrupt
8299         functions.
8300         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
8301         (thumb_find_work_register, arm_load_pic_register,
8302         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
8303         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
8304         print_multi_reg, output_mov_long_double_fpa_from_arm,
8305         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
8306         output_mov_double_fpa_from_arm, output_move_double,
8307         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
8308         output_return_instruction, arm_output_function_prologue,
8309         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
8310         arm_output_mi_thunk, thumb_set_return_address): Ditto.
8311         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
8312         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
8313         (arithmetic_instr, shift_op): Use arm_shift_nmem.
8314         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
8315         '!' and 'L'.
8316         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
8317         (thumb_expand_prologue): Use thumb_set_frame_pointer.
8318         (arm_file_start): Output directive for unified syntax.
8319         (arm_unwind_emit_set): Handle stack alignment instruction.
8320         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
8321         Add v6t2, v7, v7a, v7r and v7m.
8322         (RETLDM): Add Thumb-2 code.
8323         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
8324         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
8325         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
8326         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
8327         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
8328         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
8329         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
8330         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
8331         ADJUST_INSN_LENGTH): Define.
8332         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
8333         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
8334         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
8335         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
8336         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
8337         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
8338         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
8339         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
8340         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
8341         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
8342         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
8343         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
8344         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
8345         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
8346         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
8347         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
8348         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
8349         cortex-m3.
8350         * config/arm/arm-tune.md: Regenerate.
8351         * config/arm/arm-protos.h: Update prototypes.
8352         * config/arm/vfp.md: Enable patterns for Thumb-2.
8353         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
8354         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
8355         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
8356         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
8357         * config/arm/libunwind.S: Add Thumb-2 code.
8358         * config/arm/constraints.md: Update include Thumb-2.
8359         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
8360         * config/arm/ieee754-df.S: Ditto.
8361         * config/arm/bpabi.S: Ditto.
8362         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
8363         * config/arm/predicates.md (low_register_operand,
8364         low_reg_or_int_operand, thumb_16bit_operator): New.
8365         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
8366         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
8367         * config/arm/t-arm-elf: Add armv7 multilib.
8368         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
8369         Include thumb2.md.
8370         (UNSPEC_STACK_ALIGN, ce_count): New.
8371         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
8372         arm_zero_extendsidi2, arm_zero_extendqidi2): New
8373         insns/expanders.
8374         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
8375         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
8376         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
8377         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
8378         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
8379         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
8380         insns.
8381         * doc/extend.texi: Document ARMv7-M interrupt functions.
8382         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
8383
8384 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8385
8386         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
8387         (struct _Unwind_Context): Rename args_size to flags, remove
8388         signal_frame field, add a new args_size field and version field.
8389         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
8390         _Unwind_IsExtendedContext): New inline functions.
8391         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
8392         Assume by_value array is only present if _Unwind_IsExtendedContext.
8393         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
8394         _Unwind_IsSignalFrame.
8395         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
8396         (uw_update_context_1): Use _Unwind_SetSignalFrame.
8397         (uw_init_context_1): Initialize context->flags to
8398         EXTENDED_CONTEXT_BIT.
8399         * config/rs6000/linux-unwind.h (frob_update_context): Use
8400         _Unwind_SetSignalFrame.
8401
8402 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8403
8404         PR middle-end/30353
8405         * gimplify.c (gimplify_modify_expr_complex_part): Move below
8406         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
8407         the value.
8408
8409 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
8410
8411         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
8412         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
8413         RET, AT_SP): Remove.
8414         * config/i386/i386.md (*sse_prologue_save_insn): Use return
8415         instead of RET.
8416
8417         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
8418         * cfgbuild.c (find_basic_blocks): Likewise.
8419         * cfgrtl.c (rtl_create_basic_block): Likewise.
8420         * function.c (temp_slots_at_level): Likewise.
8421         * reg-stack.c (stack_regs_mentioned): Likewise.
8422         * regclass.c (allocate_reg_info): Likewise.
8423         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
8424         set_bb_for_stmt, move_block_to_fn): Likewise.
8425         * tree-complex.c (tree_lower_complex): Likewise.
8426         * vec.h (VEC_safe_grow_cleared): New.
8427
8428         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
8429
8430 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
8431
8432         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
8433         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
8434         to loop_version.
8435         * cfgloopmanip.c (scale_loop_frequencies): Export.
8436         (loopify): Scale the frequencies by prescribed coefficients.
8437         (set_zero_probability): New function.
8438         (duplicate_loop_to_header_edge): Improve updating of frequencies.
8439         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
8440         and frequencies according to arguments.
8441         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
8442         correctly.
8443         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
8444         * modulo-sched.c (sms_schedule): Set probabilities for entering
8445         versioned loop correctly.
8446         * tree-vect-transform.c (vect_transform_loop): Ditto.
8447         * cfgloop.h (loopify, loop_version): Declaration changed.
8448         (scale_loop_frequencies): Declared.
8449
8450 2007-01-02  Jan Hubicka  <jh@suse.cz>
8451
8452         * cgraph.c: Include tree-flow.h
8453         (cgraph_add_new-function): Handle IPA_SSA mode; execute
8454         early_local_passes.
8455         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
8456         * tree-pass.h (pass_all_early_optimizations): Declare.
8457         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
8458         early_local_passes.
8459         (cgraph_analyze_function): Do early_local_passes.
8460         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
8461         Do not add referenced vars.
8462         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
8463         SSA form.
8464         (gate_all_early_local_passes): New gate.
8465         (pass_early_local_passes): Use new gate.
8466         (execute_early_local_optimizations): New functions.
8467         (gate_all_early_optimizations): New gate.
8468         (pass_all_early_optimizations): New pass.
8469         (execute_free_datastructures): Free SSA only when initialized.
8470         (gate_init_datastructures): Init only when optimizing.
8471         (tree_lowering_passes): Do early local passes when called late.
8472         * tree-profile.c (do_tree_profiling): Don't profile functions added
8473         late.
8474         (do_early_tree_profiling, pass_early_tree_profile): Kill.
8475         * tree-cfg.c (update_modified_stmts): Do not update when operands are
8476         not active.
8477         * passes.c (init_optimizations_passes): Reorder so we go into SSA
8478         during early_local_passes.
8479         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
8480
8481
8482 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
8483
8484         * Makefile.in: Update copyright year.
8485
8486 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
8487
8488         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
8489         in $(lang_checks) and check-consistency targets.
8490
8491 2007-01-02  Jan Hubicka  <jh@suse.cz>
8492
8493         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
8494         Do not add referenced vars.
8495         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
8496         are not active.
8497         * passes.c (init_optimization_passes): Put mudflap_2 after
8498         free_datastructures.
8499
8500 2007-01-02  Jan Hubicka  <jh@suse.cz>
8501
8502         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
8503         Set NOTHROW flag on call statements proved to be nothrow.
8504         Update statement of local calls so new pure/const functions are
8505         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
8506         goto receivers.
8507         (tree_rest_of_compilation): Register hooks and initialize bitmap
8508         early. Do not set after_inlining flag.
8509
8510 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
8511
8512         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
8513         HOST_BITS_PER_LONGLONG
8514
8515 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8516
8517         PR c/19977
8518         * c-typeck.c (store_init_value): Don't emit pedantic overflow
8519         warning for non-static initializers.
8520
8521 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
8522
8523         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
8524         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
8525         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
8526         Always use set_unique_reg_note to add REG_EQUAL notes.
8527
8528 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
8529
8530         Revert:
8531         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
8532
8533         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
8534         * cfgbuild.c (find_basic_blocks): Likewise.
8535         * cfgrtl.c (rtl_create_basic_block): Likewise.
8536         * function.c (temp_slots_at_level): Likewise.
8537         * reg-stack.c (stack_regs_mentioned): Likewise.
8538         * regclass.c (allocate_reg_info): Likewise.
8539         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
8540         set_bb_for_stmt, move_block_to_fn): Likewise.
8541         * tree-complex.c (tree_lower_complex): Likewise.
8542         * vec.h (VEC_safe_grow_cleared): New.
8543
8544 2007-01-02  Ian Lance Taylor  <iant@google.com>
8545
8546         * c-common.c (c_common_truthvalue_conversion): When warning about
8547         using an assignment as a truth value, set TREE_NO_WARNING.
8548
8549 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8550
8551         PR middle-end/7651
8552         * c.opt (Wold-style-declaration): New.
8553         * doc/invoke.texi (C-only Warning Options): New.
8554         (Wold-style-declaration): Document it.
8555         (Wextra): Enabled by -Wextra.
8556         * c-opts.c (c_common_post_options): Enabled by -Wextra.
8557         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
8558         -Wold-style-declaration.
8559
8560 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
8561
8562         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
8563         * cfgbuild.c (find_basic_blocks): Likewise.
8564         * cfgrtl.c (rtl_create_basic_block): Likewise.
8565         * function.c (temp_slots_at_level): Likewise.
8566         * reg-stack.c (stack_regs_mentioned): Likewise.
8567         * regclass.c (allocate_reg_info): Likewise.
8568         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
8569         set_bb_for_stmt, move_block_to_fn): Likewise.
8570         * tree-complex.c (tree_lower_complex): Likewise.
8571         * vec.h (VEC_safe_grow_cleared): New.
8572
8573 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
8574
8575         * c-common.c (c_common_nodes_and_builtins): Since variants of
8576         void_type_node get built before it is given a name, we need to
8577         give those variants the name, too.
8578         (complete_array_type): We need to work with the canonical main
8579         type of the array, from which we will build the qualified version.
8580         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
8581         * print-tree.c (print_node): Display canonical type information
8582         for each type.
8583         * stor-layout.c (layout_type): When we don't know the
8584         alignment of a type for which we're building an array, we end up
8585         guessing wrong, so make the type require structural equality.
8586         * tree.c (make_node_stat): When we build a new type, it is its
8587         own canonical type.
8588         (build_type_attribute_qual_variant): When building an attribute
8589         variant, its canonical type is the non-attribute variant. However,
8590         if the attributes are target-dependent and they differ, we need to
8591         use structural equality checks for this type.
8592         (build_qualified_type): A qualified type is not equivalent to its
8593         unqualified variant; set the canonical type appropriately.
8594         (build_distinct_type_copy): When building a distinct type from
8595         another type, the new type is its own canonical type.
8596         (build_variant_type_copy): When building a new type variant, we
8597         assume that it is equivalent to the original type.
8598         (build_pointer_type_for_mode): When building a pointer type, also
8599         build a canonical type pointer.
8600         (build_reference_type_for_mode): When building a reference type,
8601         also build a canonical type reference.
8602         (build_index_type): When we can't hash an index type (e.g.,
8603         because its maximum value is negative), the index type requires
8604         structural equality tests.
8605         (build_array_type): Build the canonical form of an array type.
8606         (build_function_type): Function types require structural equality,
8607         because they contain default arguments, attributes, etc.
8608         (build_method_type_directly): Ditto for method types.
8609         (build_offset_type): Build the canonical offset type.
8610         (build_complex_type): Build the canonical vector type.
8611         (make_vector_type): Build the canonical vector type.
8612         * tree.h (TYPE_CANONICAL): New.
8613         (TYPE_STRUCTURAL_EQUALITY_P): New.
8614         (SET_TYPE_STRUCTURAL_EQUALITY): New.
8615         (struct tree_type): Added "canonical" field.
8616         * params.h (VERIFY_CANONICAL_TYPES): New.
8617         * doc/c-tree.texi (TYPE_CANONICAL): Document.
8618         (TYPE_STRUCTURAL_EQUALITY_P): Document.
8619         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
8620         * doc/invoke.texi (verify-canonical-types): Document --param
8621         parameter for verifying canonical types.
8622
8623 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
8624
8625         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
8626         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
8627         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
8628         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
8629         tm_file.
8630         * config/rs6000/e500.h: New.
8631         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
8632         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
8633         Remove.
8634         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
8635         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
8636         TARGET_E500_DOUBLE): Remove.
8637         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
8638         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
8639         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
8640         * config/rs6000/rs6000.c (rs6000_override_options): Use
8641         CHECK_E500_OPTIONS.
8642
8643 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
8644
8645         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
8646         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
8647         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
8648         rs6000_emit_cmove): Don't check TARGET_E500.
8649         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
8650         sordered): Don't check TARGET_E500.
8651
8652 2007-01-01  Eric Christopher  <echristo@apple.com>
8653
8654         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
8655         HARD_REGISTER_NUM_P.
8656
8657 2007-01-01  Roger Sayle  <roger@eyesopen.com>
8658
8659         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
8660         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
8661         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
8662         eq/ne Y".
8663
8664 2007-01-01  Mike Stump  <mrs@apple.com>
8665
8666         * configure.ac: Remove support for building with Apple's gcc-3.1.
8667
8668 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
8669
8670         PR middle-end/30311
8671         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
8672         REG is a hard register.  Do not modify REG before calling
8673         subreg_nregs.
8674         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
8675         multiple of the size of YMODE for certain lowpart cases.
8676
8677 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
8678
8679         PR middle-end/30253
8680         * gimplify (voidify_wrapper_expr): Update for
8681         GIMPLE_MODIFY_STMT.
8682
8683 2007-01-01  Andreas Schwab  <schwab@suse.de>
8684
8685         PR target/29166
8686         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
8687         save of BR0 in extra_spill_size instead of spill_size.
8688         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
8689         area.
8690         (ia64_expand_epilogue): Restore BR0 from its new location.
8691
8692 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
8693
8694         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
8695         Use a temporary variable if the left hand side is not a gimple
8696         register.
8697
8698 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
8699
8700         * gimplify.c (gimplify_return_expr): Make the temporary variable
8701         for the return expression, a gimple register variable.
8702
8703 2007-01-01  Jan Hubicka  <jh@suse.cz>
8704
8705         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
8706         INSN_LIST.
8707
8708 2007-01-01  Mike Stump  <mrs@apple.com>
8709
8710         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
8711         .literal16.
8712         * config/darwin.c (machopic_select_rtx_section): Use
8713         HAVE_GAS_LITERAL16.
8714         (darwin_mergeable_constant_section): Likewise.
8715         * configure: Regenerate.
8716         * config.in: Regenerate.
8717
8718 2007-01-01  Jan Hubicka  <jh@suse.cz>
8719             Andrew Pinski  <pinskia@gmail.com>
8720
8721         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
8722         before starting IPA passes.