OSDN Git Service

b5d13144c917f48f148770e8c89c21540f2c046f
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-02-28  Julian Brown  <julian@codesourcery.com>
2
3         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
4         building libjava and caused PR regression/20228.
5
6 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
7
8         PR bootstrap/17383
9         * Makefile.in (host_subdir): New.
10         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
11         * configure: Regenerate.
12
13 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
14
15         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
16         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
17         installation directory first.
18
19 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
20
21         PR target/19065.
22         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
23         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
24         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
25         * config/cris/cris.md: Tweak comments referring to Q.
26         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
27         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
28         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
29         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
30         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
31         Insert spaces in constraints to align alternatives vertically for
32         readability.
33         ("cmphi"): Ditto.  Add separate alternative for operand 0 "Q>",
34         operand 1: "M".
35
36 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37
38         PR rtl-optimization/17728
39         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
40         operand 0 from general_operand to move_dest_operand.
41
42 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
43
44         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
45         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
46         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
47         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
48
49 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
50
51         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
52         * configure: Regenerate.
53         * libada-mk.in: Remove CC; rename
54         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
55
56 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
57
58         PR tree-opt/20188
59         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
60         for the lhs, also walk over the tree.  Likewise for rhs.
61
62 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
63
64         * tree-ssa-dom.c (simple_iv_increment_p): New function.
65         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
66         Do not propagate value of iv before increment over the increment.
67
68 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
69
70         * c-parser.c: New file.
71         * c-parse.in: Remove.
72         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
73         Remove.
74         (c-parser.o): Add dependencies.
75         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
76         maintainer-clean, TAGS): Update.
77         * c-config-lang.in (gtfiles): Update.
78         * gengtype-lex.l: Don't handle "@@".
79         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
80         objc_build_synchronized, objc_begin_try_stmt,
81         objc_begin_catch_clause, objc_finish_catch_clause,
82         objc_build_finally_clause, objc_finish_try_stmt): New.
83         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
84         type_seen_p.
85         (c_parse_init): Update comment.
86         * c-decl.c (c_init_decl_processing): Update comment.
87         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
88         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
89         new c_declspecs members.
90
91 2005-02-25  Julian Brown  <julian@codesourcery.com>
92
93         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
94         from being used for symbols with vague linkage when
95         HAVE_GAS_COMDAT_GROUP is true.
96
97 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
98
99         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
100
101 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
102
103         PR target/19930
104         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
105         (LIBGCC2_HAS_DF_MODE): New.
106         (LIBGCC2_HAS_XF_MODE): New.
107         (LIBGCC2_HAS_TF_MODE): New.
108         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
109         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
110         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
111         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
112         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
113         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
114         and add _fixtfdi, _fixunstfdi, _floatditf
115         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
116         L_fixunstfdi, L_floatditf.
117         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
118         (LIBGCC2_HAS_TF_MODE): Define.
119
120 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
121
122         PR tree-optimization/20204
123         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
124         REWRITE_THIS_STMT markers on PHI nodes.
125         (rewrite_initialize_block): Likewise.
126
127 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
128
129         * version.c (version_string): Update to 4.1.
130
131 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
132
133         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
134         Clarify that the alternative way doesn't work in GNU C++.
135
136 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
137
138         PR tree-optimization/19937
139         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
140         to the type of the induction variable.
141
142 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
143
144         PR rtl-optimization/20117
145         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
146         the block including noncopyable insn.
147
148 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
149
150         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
151         calls to find_reg_note.
152
153 2005-02-24  Richard Henderson  <rth@redhat.com>
154
155         PR tree-opt/20127
156         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
157         the type.
158
159 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
160
161         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
162         vector types if to use base reg for misaligned non-word ld/std.
163
164 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
165
166         PR target/14619
167         * config/cris/cris.c (cris_target_asm_function_prologue): Create
168         dwarf2 label manually and put it after, not before the prologue.
169
170 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
171
172         PR target/19019
173         * reload.c (operands_match_p): Only increment register number for
174         SCALAR_INT_MODE_P modes in multiple hard registers.
175
176         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
177         Fix formatting.
178
179 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
180
181         * ChangeLog.5: Fix log message typo(s).
182         * ChangeLog.7: Likewise.
183         * ChangeLog.tree-ssa: Likewise.
184         * cfgexpand.c: Fix comment typo(s).
185         * conflict.c: Likewise.
186         * defaults.h: Likewise.
187         * dwarf2out.c: Likewise.
188         * gcse.c: Likewise.
189         * ggc-page.c: Likewise.
190         * tree-eh.c: Likewise.
191         * tree-ssa-dom.c: Likewise.
192
193 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
194
195         PR target/19019
196         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
197         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
198         if SHARED is defined.
199
200         PR target/20196
201         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
202         allow splitting only if operands 0 and 3 don't overlap.
203
204 2005-02-24  Richard Henderson  <rth@redhat.com>
205
206         PR middle-end/19953
207         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
208         (fold_builtin_1): Call them.
209         * fold-const.c (fold_complex_mult_parts): Split out from ...
210         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
211         (fold_complex_div_parts, fold_complex_div): New.
212         (fold): Use them.
213         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
214
215 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
216
217         * tree-ssa-ccp.c (visit_assignment): Verify that result of
218         VIEW_CONVERT_EXPR is_gimple_min_invariant.
219
220         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
221         (print_node): Likewise.
222         Print TYPE_SIZES_GIMPLIFIED.
223
224 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
225
226         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
227         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
228         operands as commutative in constraints.
229
230 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
231
232         * tree-into-ssa.c: Re-organize internal functions.
233
234 2005-02-24  Richard Henderson  <rth@redhat.com>
235
236         PR middle-end/18902
237         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
238         for c99.
239         * common.opt (fcx-limited-range): New.
240         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
241         * toplev.c (flag_complex_method): Initialize to 1.
242         (process_options): Set flag_complex_method to 0 if
243         flag_cx_limited_range.
244         * doc/invoke.texi (-fcx-limited-range): New.
245
246 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
247
248         * cse.c (delete_trivially_dead_insns): Speed up by using
249         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
250         prev_real_insn.
251
252 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
253
254         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
255         functions when -mid-shared-library is being used.
256
257 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
258
259         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
260         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
261         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
262         * system.h: Poison LINK_LIBGCC_SPECIAL.
263
264 2005-02-23  James E Wilson  <wilson@specifixinc.com>
265
266         * gengtype.c (note_insn_name): Make 1 element larger.
267
268 2005-02-23  Roger Sayle  <roger@eyesopen.com>
269
270         PR target/20018
271         PR rtl-optimization/20097
272         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
273         BImode SUBREGs of SImode registers which confuse the ia64 backend.
274
275 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
276
277         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
278         * t-aix52 (SHLIB_INSTALL): Same.
279
280 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
281
282         * genpreds.c: Update copyright.
283
284 2005-02-23  Michael Beach  <michaelb@ieee.org>
285
286         PR target/20159
287         * config/sparc/t-elf (startup files): Assemble with CPP.
288
289 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
290
291         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
292         (write_predicate_expr): Likewise.
293
294 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
295
296         PR tree-optimization/20100
297         PR tree-optimization/20115
298         * tree-optimize.c (init_tree_optimization_passes): Remove
299         pass_maybe_create_global_var.
300         * tree-pass.h (pass_maybe_create_global_var): Remove.
301         * tree-ssa-alias.c (aliases_computed_p): Declare.
302         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
303         (count_calls_and_maybe_create_global_var): Remove.
304         (pass_maybe_create_global_var): Remove.
305         (init_alias_info): Do not declare aliases_computed_p.
306         (maybe_create_global_var): If the function contains no
307         call-clobbered variables and a mix of pure/const and regular
308         function calls, create .GLOBAL_VAR.
309         Mark all call-clobbered variables for renaming.
310         (merge_pointed_to_info): Update comment.
311         (add_pointed_to_var): Likewise.
312         (is_escape_site): Likewise.
313         Accept struct alias_info * instead of size_t *.
314         Update all users.
315         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
316         as necessary.
317         * tree-ssa-operands.c (get_call_expr_operands): If
318         ALIASES_COMPUTED_P is false, do not add call-clobbering
319         operands.
320         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
321         (delete_tree_ssa): Likewise.
322
323 2005-02-22  James E Wilson  <wilson@specifixinc.com>
324
325         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
326         (do_compile): Do call it here.
327
328 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
329
330         PR rtl-optimization/20017.
331         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
332         rest_of_handle_cse2, rest_of_handle_gcse): Call
333         delete_dead_jumptables immediately before calling cleanup_cfg.
334
335 2005-02-22  Devang Patel  <dpatel@apple.com>
336
337         PR 19952
338         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
339         all labels
340
341 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
342
343         * config/rs6000/aix.h (WINT_TYPE): Define.
344
345 2005-02-22  Stan Shebs  <shebs@apple.com>
346
347         * config/rs6000/rs6000.c (rs6000_override_options): Default to
348         natural alignment for 64-bit Darwin.
349         (rs6000_parse_alignment_option): Warn about uses of -malign-power
350         on 64-bit Darwin.
351         * doc/invoke.texi: Document this.
352
353 2005-02-22  DJ Delorie  <dj@redhat.com>
354
355         * c-common.c (c_common_type_for_mode): Pass the mode's precision
356         to make_[un]signed_type, not the mode itself.
357
358 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
359
360         * cfg.c (cached_make_edge): Call make_edge if edge cache is
361         not available.  Use tail calls wherever possible.
362         (make_edge): Call unchecked_make_edge to create an edge.
363
364         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
365         (coalesce_ssa_name): Don't check for
366         SSANORM_USE_COALESCE_LIST.
367         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
368
369 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
370
371         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
372         (rewrite_into_ssa): ... here.
373
374 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
375
376         PR tree-optimization/19786
377         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
378         tag to another's may-alias bitmap when adding to the other's list.
379
380 2005-02-21  DJ Delorie  <dj@redhat.com>
381
382         * tree-ssa-loop-ivopts.c (computation_cost): Start register
383         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
384         registers in unsupported ways.
385         * expmed.c (init_expmed): Likewise.
386
387 2005-02-21  Stan Cox  <scox@redhat.com>
388
389         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
390
391 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
392
393         * tree-cfg.c (fold_cond_expr_cond): New.
394         (make_edges): Call fold_cond_expr_cond.
395         (find_taken_edge): Accept nothing but INTEGER_CST.
396         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
397         and 1.
398         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
399
400         * flow.c (delete_dead_jumptables): Speed up by scanning insns
401         that do not belong to any basic block.
402
403 2005-02-21  Jeff Law  <law@redhat.com>
404
405         * cfganal.c (find_unreachable_blocks): Manually CSE load of
406         e->dest.
407
408 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
409
410         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
411         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
412         Adjust their definitions.
413         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
414         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
415
416         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
417         genautomata.c, langhooks.c, langhooks.h, system.h,
418         config/arm/lib1funcs.asm: Update copyright.
419
420 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
421
422         * dbxout.c (dbxout_function_end): Emit Lscope label always.
423
424 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
425
426         PR bootstrap/13770
427         * doc/install.texi: Document --with-gc.
428
429 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
430
431         * simplify-rtx.c (simplify_unary_operation): Add a missing
432         "break" statement.
433
434 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
435
436         PR tree-optimization/18663
437         * tree-ssa-dom.c (extract_range_from_cond): Return 0
438         if the type has variable bounds.
439
440 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
441
442         * gcse.c: Remove an obsolete comment.
443
444         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
445
446 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
447
448         * doc/extend.texi (Function Attributes) <Attribute const>: The
449         attribute "pure" is below this text, not above.
450
451 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
452
453         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
454         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
455         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
456
457 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
458
459         PR 18785
460         * langhooks.h (struct lang_hooks): Add to_target_charset.
461         * langhooks.c (lhd_to_target_charset): New function.
462         * langhooks-def.h: Declare lhd_to_target_charset.
463         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
464         (LANG_HOOKS_INITIALIZER): Update.
465         * c-common.c (c_common_to_target_charset): New function.
466         * c-common.h: Declare it.
467         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
468         c_common_to_target_charset.
469
470         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
471         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
472         Delete definitions.
473         * system.h: Poison them.
474         * doc/tm.texi: Don't discuss them.
475         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
476         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
477         (pp_c_char): Do not attempt to generate letter escapes for
478         newline, tab, etc.
479         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
480         * config/mips/mips.c (mips_output_ascii): Likewise.
481
482 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
483
484         PR tree-optimization/19951
485         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
486         is abnormal.
487
488 2005-02-19  Steven Bosscher  <stevenb@suse.de>
489
490         PR middle-end/19698
491         * function.h (struct function): New field `max_loop_depth'.
492         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
493         (flow_loops_find): Reset the max loop depth count before finding loops.
494         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
495         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
496         (calculate_global_regs_live): Make sure the loop will terminate
497         when the initial sets are not empty.
498
499 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
500
501         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
502         object inside.
503         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
504
505 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
506
507         PR other/19525
508         * doc/invoke.texi: Remove documentation of %M spec.
509         * gcc.c: Likewise.
510         (init_spec): Remove %M suffix from -lgcc_s.
511         (do_spec_1): Remove 'M' case.
512         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
513         to put shared libraries in the multilib directory.  Remove the
514         shlib_so_soname substitution variable.  Don't add a multilib encoding
515         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
516         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
517         SHLIB_INSTALL as well as SHLIB_LINK.
518         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
519         (SHLIB_NAME): Delete.
520         (SHLIB_DIR): New macro.
521         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
522         (SHLIB_INSTALL): Adjust accordingly.
523         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
524         * config/t-slibgcc-sld: Likewise.
525         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
526         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
527         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
528         in $(SHLIB_DIR).
529         (SHLIBUNWIND_INSTALL): Adjust accordingly.
530         * config/i386/t-nwld (SHLIB_SONAME): Delete.
531         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
532         Use @shlib_base_name@ instead of @shlib_so_name@.
533         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
534         and @shlib_base_name@.so in @multilib_dir@.
535         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
536         to the install path.
537         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
538         (SHLIB_LINK): Remove previous workaround.
539         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
540         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
541         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
542         the install path.
543         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
544         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
545         (SHLIB_INSTALL): Adjust accordingly.
546         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
547         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
548         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
549         config/t-slibgcc-elf-ver.
550
551 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
552             Jakub Jelinek  <jakub@redhat.com>
553
554         PR tree-optimization/19828
555         * tree-ssa-loop-im.c: Add a TODO comment.
556         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
557         without side-effects.
558
559 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
560
561         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
562         call fold_convert.
563
564 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
565
566         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
567         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
568         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
569         functions.
570         (ia64_reorg): Delete fixup_errata call.
571         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
572         (TARGET_SWITCHES): Delete -mb-step entry.
573
574 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
575
576         PR c/20043
577         * c-typeck.c (composite_type): Handle quals in transparent unions.
578         (type_lists_compatible_p): Likewise.
579
580 2005-02-18  Stan Shebs  <shebs@apple.com>
581
582         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
583         expressions in the .literal8 section.
584
585 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
586
587         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
588
589 2005-02-18  Roger Sayle  <roger@eyesopen.com>
590
591         * fold-const.c (constant_boolean_node): Always create values of the
592         specified type, don't bother calling truthvalue_conversion.
593
594 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
595
596         * except.c (output_function_exception_table): Call
597         assemble_external_libcall (eh_personality_libfunc).
598
599 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
600
601         PR target/19886
602         * config/ia64/ia64.h (struct machine_function): Add state_num.
603         * config/ia64/ia64.c (process_epilogue,
604         process_for_unwind_directive): Use new unwind state numbers each
605         time rather than state 1.
606
607 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
608
609         PR target/20054
610         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
611         before the "*llgt_didi" pattern.
612
613 2005-02-18  Jason Merrill  <jason@redhat.com>
614
615         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
616
617 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
618
619         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
620         (div0): Use it in place of ARM_FUNC_ALIAS.
621         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
622
623 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
624
625         PR middle-end/20030
626         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
627         access, the lower bound of the array type if it exists.
628
629 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
630
631         PR c++/20008
632         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
633         cases that are out-of-range for the index type.
634
635 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
636
637         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
638         (estimate_case_costs): Don't call convert.
639         * expmed.c (expand_shift): Likewise.
640         (make_tree): Call fold_convert instead of convert.
641
642 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
643
644         PR c++/19813
645         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
646         that ref to be marked MEM_READONLY_P doesn't have base that needs
647         constructing.
648
649 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
650
651         * genautomata.c (output_get_cpu_unit_code_func,
652         output_cpu_unit_reservation_p): Don't generate old-style function
653         definitions.
654
655 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
656
657         PR c++/20023
658         PR tree-optimization/20009
659         * convert.c (convert_to_integer): Revert 2005-02-16 change.
660
661         PR tree-optimization/18947
662         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
663         inline, remove all nodes that are inlined into the extern inline
664         being redefined.
665
666 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
667
668         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
669         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
670         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
671         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
672         Update copyright.
673
674 2005-02-17  Roger Sayle  <roger@eyesopen.com>
675
676         PR tree-optimization/19917
677         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
678         to be potentially trapping.
679
680 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
681
682         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
683
684 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
685
686         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
687         tem becomes a local variable which is set to the value of the
688         back end defined INITIAL_FRAME_ADDRESS macro.
689         (expand_builtin_frame_address): Omit the base parameter to
690         expand_builtin_return_addr.
691         (expand_builtin_profile_func): Likewise.
692         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
693         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
694         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
695
696 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
697
698         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
699         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
700         * config/frv/frv.c (frv_function_epilogue): Likewise.
701
702 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
703
704         * lambda-code (perfect_nestify): Remove mark/unmark
705         for rewriting hack.
706         * tree-loop-linear.c (linear_transform_loops): Add
707         rewrite_into_ssa call so that ssa is correct for
708         rewriting into loop closed.
709
710 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
711
712         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
713         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
714         BITMAP_FREE.
715         * bt-load.c (btr_def_live_range, combine_btr_defs,
716         migrate_btr_def, migrate_btr_defs): Likewise.
717         * cfgcleanup.c (thread_jump): Likewise.
718         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
719         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
720         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
721         df_rd_local_compute, df_reg_info_compute): Likewise.
722         * dominance.c (init_dom_info, free_dom_info): Likewise.
723         * flow.c (init_propagate_block_info,
724         free_propagate_block_info): Likewise.
725         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
726         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
727         modify_reg_pav): Likewise.
728         * loop-invariant.c (find_defs, find_invariant_insn,
729         find_invariants, free_inv_motion_data): Likewise.
730         * predict.c (tree_predict_by_opcode,
731         estimate_bb_frequencies): Likewise.
732         * stmt.c (expand_case): Likewise.
733         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
734         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
735         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
736         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
737         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
738         rewrite_ssa_into_ssa): Likewise.
739         * tree-optimize.c (tree_rest_of_compilation): Likewise.
740         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
741         analyze_edges_for_bb, perform_edge_inserts): Likewise.
742         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
743         * tree-sra.c (tree_sra): Likewise.
744         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
745         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
746         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
747         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
748         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
749         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
750         Likewise.
751         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
752         calculate_live_on_entry, calculate_live_on_exit,
753         build_tree_conflict_graph): Likewise.
754         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
755         record_important_candidates, set_use_iv_cost, find_depends,
756         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
757         tree_ssa_iv_optimize_finalize): Likewise.
758         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
759         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
760         tree_duplicate_loop_to_header_edge): Likewise.
761         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
762         * tree-ssa.c (verify_flow_insensitive_alias_info,
763         verify_name_tags, verify_ssa, init_tree_ssa,
764         delete_tree_ssa): Likewise.
765         * tree-ssanames.c (marked_ssa_names, init_ssanames,
766         fini_ssanames): Likewise.
767         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
768
769 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
770
771         * config/rs6000/t-rtems: Completely reworked.
772
773 2005-02-17  Ira Rosen  <irar@il.ibm.com>
774
775         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
776
777 2005-02-17  Ira Rosen  <irar@il.ibm.com>
778
779         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
780         POINTER_TYPE_P when checking that type is a pointer.
781         (vect_get_memtag): Remove.
782         (vect_address_analysis): Use POINTER_TYPE_P. Call
783         vect_object_analysis with dummy parameter for memtag.
784         (vect_object_analysis): Extract memtag (functionality that
785         used to be in vect_get_memtag and moved here). Fix printings.
786         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
787         with correct parameters. Remove call to vect_get_memtag.
788
789 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
790
791         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
792         (tree-vectorizer.o): Added missing dependencies.
793
794         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
795         decleration.
796         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
797         declaration in tree-vectorizer.c, now has an extern declaration in
798         tree-vectorizer.h).
799         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
800         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
801         get_vectype_for_scalar_type, vect_is_simple_use,
802         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
803         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
804         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
805         vectorizable_store, vectorizable_operation, vectorizable_assignment,
806         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
807         find_loop_location): Likewise.
808
809         * tree-vectorizer.c (langhooks.h): #include removed.
810         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
811         moved to tree-vectorized.h.
812         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
813         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
814         get_vectype_for_scalar_type, vect_is_simple_use,
815         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
816         vect_supportable_dr_alignment, new_loop_vec_info,
817         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
818         vect_set_verbosity_level, find_loop_location): Likewise.
819
820         (vect_analyze_loop): Function externalized. Declaration moved to
821         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
822         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
823         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
824         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
825         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
826         vect_enhance_data_refs_alignment, vect_analyze_operations,
827         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
828         vect_stmt_relevant_p, vect_get_loop_niters,
829         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
830         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
831         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
832         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
833         vect_get_memtag): Likewise.
834
835         (vectorizable_load): Function externalized. Declaration moved to
836         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
837         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
838         vect_transform_loop): Likewise.
839         (vect_transform_stmt): Moved to tree-vect-transform.c.
840         (vect_align_data_ref, vect_create_destination_var,
841         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
842         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
843         vect_get_vec_def_for_operand, vect_init_vector,
844         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
845         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
846         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
847         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
848         vect_do_peeling_for_loop_bound): Likewise.
849
850         * tree-vect-analyze.c: New file.
851         * tree-vect-transform.c: New file.
852
853 2005-02-17  Jason Merrill  <jason@redhat.com>
854
855         PR mudflap/19319, c++/19317
856         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
857         slot explicit.
858
859 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
860
861         * doc/install.texi (Specific): Update link for Darwin-specific
862         tool binary site.
863
864 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
865
866         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
867         constant_boolean_node.
868
869 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
870
871         PR target/19019
872         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
873         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
874
875 2005-02-16  Richard Henderson  <rth@redhat.com>
876
877         PR 19920
878         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
879         with W_TYPE_SIZE.
880         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
881         replace uses with Wtype_MAXp1_F.
882         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
883         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
884         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
885         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
886         and HAVE_TFMODE as appropriate.
887         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
888         (__floatdisf): Likewise.
889         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
890         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
891         (Wtype_MAXp1_F): New.
892         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
893         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
894
895 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
896
897         * PR target/19162
898         * arm.c (arm_apply_result_size): New function.
899         * arm.h (APPLY_RESULT_SIZE): Define.
900         * arm-protos.h (arm_apply_result_size): Add prototype.
901         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
902         (movxf): New expand.
903         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
904         (call_value_symbol): Remove predicate for operand 0.
905         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
906         (untyped_call): Rework to correclty return values for any type.
907         (untyped_return): New expand.
908         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
909
910 2005-02-16  Stan Shebs  <shebs@apple.com>
911
912         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
913         * config/rs6000/t-darwin8: New, for 64-bit multilib.
914
915 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
916
917         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
918         configure settings on Solaris 7 and later.
919
920 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
921
922         PR tree-optimization/19865
923         * tree-optimize.c (init_tree_optimization_passes): Run
924         pass_may_alias after pass_sra.
925
926 2005-02-16  Richard Henderson  <rth@redhat.com>
927             Stuart Hastings  <stuart@apple.com>
928
929         PR debug/19521
930         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
931         Do nothing if debug info suppressed for this function.
932         (dbxout_begin_function): Early exit if debug info suppressed for
933         this function.
934
935 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
936
937         PR target/20007
938         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
939         find_basic_blocks.
940         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
941
942         PR tree-optimization/19967
943         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
944         expand_builtin_strchr, expand_builtin_strrchr): Take a new
945         argument TYPE.  Adjust calls to fold_builtin_XXX.
946         (expand_builtin, fold_builtin_1): Adjust calls to
947         expand_builtin_XXX.
948         (fold_builtin_strchr, fold_builtin_strpbrk,
949         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
950         result to a requested type TYPE.
951
952 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
953
954         PR middle-end/19857
955         * fold-const.c (fold): Don't optimize (T)(x & cst) to
956         (T)x & (T)cst if (T)cst overflows.
957         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
958         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
959
960 2005-02-15  Jeff Law  <law@redhat.com>
961
962         * gcse.c (blocks_with_calls): New bitmap.
963         (alloc_gcse_mem): Allocate it.
964         (free_gcse_mem): Free it.
965         (clear_modifY_mem_tables): Clear it.
966         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
967         when we encounter CALL_INSNs.
968         (compute_transp, case MEM): Handle blocks with calls separate
969         from blocks without calls.  Use bitmap iterators rather than
970         FOR_EACH_BB.
971
972 2005-02-15  Peter O'Gorman  <peter@pogma.com>
973
974         PR bootstrap/18810
975         * mklibgcc.in (vis_hide): Use a temporary object file, not
976         -o /dev/null.
977
978 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
979
980         PR target/19924
981         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
982         access optimization.
983
984 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
985             Alan Modra  <amodra@bigpond.net.au>
986
987         PR target/19019
988         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
989         (_xlqsub): Rename to __gcc_qsub.
990         (_xlqmul): Rename to __gcc_qmul.
991         (_xlqdiv): Rename to __gcc_qdiv.
992         Provide versioned symbol aliases with old names.
993         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
994         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
995         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
996         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
997         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
998
999 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
1000
1001         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
1002         Fold ~(A - 1) and ~(A + -1) to -A.
1003
1004 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
1005
1006         PR pch/14940
1007         PR target/19300
1008         * config/host-linux.c (linux_gt_pch_use_address): Copy from
1009         config/pa/pa-host.c:pa_gt_pch_use_address.
1010
1011 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
1012
1013         * tree-vn.c (get_value_handle): Make sure that given an
1014         is_gimple_min_invariant expression, we always return it.
1015
1016 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
1017
1018         * passes.c (rest_of_handle_gcse): Fix a comment.
1019
1020 2005-02-15  Jeff Law  <law@redhat.com>
1021
1022         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
1023         bitmap.
1024         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
1025         (canon_list_insert, record_last_mem_set_info): Similarly.
1026         (clear_modify_mem_tables): Similarly.
1027
1028 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
1029
1030         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
1031         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
1032         config/mips/mips.md, config/rs6000/aix.h,
1033         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
1034
1035 2005-02-15  Richard Henderson  <rth@redhat.com>
1036
1037         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
1038         call to be best_edge.
1039
1040 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
1041
1042         * basic-block.h: Adjust the prototype for find_basic_blocks.
1043         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
1044         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
1045         find_basic_blocks.
1046
1047         * flow.c (recompute_reg_usage): Remove all arguments.
1048         * passes.c (rest_of_compilation): Adjust the call to
1049         recompute_reg_usage.
1050         * rtl.h: Adjust the prototype for recompute_reg_usage.
1051
1052 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
1053
1054         * tree-dump.c (dump_files): Update to reflect new member
1055         of dump_file_info.
1056         (dump_register): Add new argument.
1057         Set glob name.
1058         (dump_switch_p_1): Check against glob name if doglob was passed.
1059         (dump_switch_p): Check against regular first, then glob if
1060         we didn't have any hits on the dump name.
1061         * tree-optimize.c (register_one_dump_file):
1062         Pass in glob name as well.
1063         * tree-pass.h (struct dump_file_info): Add glob
1064         member.
1065
1066 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
1067
1068         PR preprocessor/16323
1069         * doc/invoke.texi: Document that -Wendif-labels is on by default.
1070
1071 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
1072
1073         PR target/19019
1074         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
1075         (trunctfdf2_internal1): New.
1076         (trunctfdf2_internal2): Renamed from trunctfdf2.
1077
1078 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
1079
1080         PR tree-optimization/19853
1081         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
1082
1083 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
1084
1085         * passes.c (rest_of_handle_loop_optimize): Remove calls to
1086         delete_dead_jumptables and cleanup_cfg.
1087
1088 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
1089
1090         * reload.c (find_reloads): Swap address_reloaded flags when
1091         swapping commutative operands.
1092
1093 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
1094
1095         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
1096         Use standard_iv_increment_position for computing the bsi position
1097         for create_iv.
1098         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
1099         the bsi position.
1100
1101 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
1102
1103         PR target/17428
1104         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
1105         life range of hard registers.
1106         * value-prof.c (insn_prefetch_values_to_profile): Only
1107         scan normal insns.
1108
1109         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
1110         profile in libcalls.
1111
1112 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
1113
1114         * bitmap.h (bitmap_and_compl_into): Return bool.
1115         * bitmap.c (bitmap_and_compl_into): Return changed flag.
1116
1117 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
1118
1119         PR tree-optimization/19944
1120         * fold-const.c (fold): Re-add ABS_EXPR folding.
1121
1122 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
1123
1124         PR target/19019
1125         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
1126         {TARGET,MASK}_XL_COMPAT.
1127         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
1128         MASK_XL_COMPAT.
1129         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
1130         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
1131         TARGET_XL_COMPAT.
1132         (rs6000_arg_partial_bytes): Same.
1133         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
1134         and XL compatibility enabled.
1135         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
1136         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
1137         test to final condition.
1138         (cmptf_internal2): New.
1139         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
1140         xl-compat.  Add TFmode information to description.
1141
1142 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
1143
1144         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
1145
1146 2005-02-13  Jason Merrill  <jason@redhat.com>
1147
1148         PR c++/16405
1149         * fold-const.c (fold_indirect_ref_1): Split out from...
1150         (build_fold_indirect_ref): Here.
1151         (fold_indirect_ref): New fn.
1152         * tree.h: Declare it.
1153         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
1154         (gimplify_modify_expr_rhs): Likewise.
1155         (gimplify_expr): Likewise.
1156
1157 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
1158
1159         PR tree-optimization/14303
1160         PR tree-optimization/15784
1161         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
1162         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
1163         ABS_EXPR<x> != 0 to x != 0.
1164
1165 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
1166
1167         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
1168         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
1169         spelling conventions.
1170
1171         * passes.c (rest_of_handle_gcse): Don't run cse_main and
1172         delete_trivially_dead_insns too many times.
1173
1174         * passes.c (rest_of_handle_gcse): Remove dead assignments to
1175         tem and tem2.
1176
1177 2005-02-12  Ira Rosen  <irar@il.ibm.com>
1178
1179         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
1180         (vect_is_simple_iv_evolution): Remove redundant parameter
1181         and step check.
1182         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
1183         without last parameter.
1184         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
1185         Return pointer step. Call vect_is_simple_iv_evolution without
1186         last parameter. Check only that the step is multiple of size
1187         type. Remove stmt_vinfo updates.
1188         (vect_get_memtag_and_dr): Remove.
1189         (vect_get_memtag): New function.
1190         (vect_address_analysis): New function.
1191         (vect_object_analysis): New function.
1192         (vect_analyze_data_refs): Call vect_object_analysis and
1193         vect_get_memtag. Update stmt_vinfo fields.
1194
1195 2005-02-12  Ira Rosen  <irar@il.ibm.com>
1196
1197         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
1198         exist and are objects. Remove checks for pointer.
1199         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
1200         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
1201         (vect_create_data_ref_ptr): Likewise.
1202         (vect_base_addr_differ_p): New function.
1203         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
1204         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
1205         Don't set the DR_BASE_NAME field of data-ref.
1206         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
1207
1208 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
1209
1210         * optabs.h (enum optab_index): Add new OTI_ldexp.
1211         (ldexp_optab): Define corresponding macro.
1212         * optabs.c (init_optabs): Initialize ldexp_optab.
1213         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
1214         patterns.
1215         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
1216         using ldexp_optab.
1217         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
1218         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
1219
1220         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
1221         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
1222         intrinsics.
1223
1224 2005-02-12  Ira Rosen  <irar@il.ibm.com>
1225
1226         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
1227         to base_address.
1228         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
1229         stmt_vec_info.
1230         (vect_get_base_and_offset): Always return an address.
1231         (vect_create_addr_base_for_vector_ref): Remove treatment for
1232         different data reference types.
1233         (vect_compute_data_ref_alignment): Rename base to base_address in
1234         stmt_vec_info. Get the object in order to force its alignment.
1235         (vect_get_memtag_and_dr): Rename base to base_address in
1236         stmt_vec_info. Extract the object for memtag analysis.
1237
1238 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
1239
1240         PR regression/19898.
1241         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
1242         changes cc_status, use apply modified_in_p to part of cc_status
1243         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
1244         body.
1245
1246 2005-02-11  Richard Henderson  <rth@redhat.com>
1247
1248         * tree-complex.c (expand_complex_libcall): New.
1249         (expand_complex_multiplication): Use it for c99 compliance.
1250         (expand_complex_division): Likewise.
1251         * fold-const.c (fold_complex_add, fold_complex_mult): New.
1252         (fold): Call them.
1253         * builtins.c (built_in_names): Remove const.
1254         * tree.c (build_common_builtin_nodes): Build complex arithmetic
1255         builtins.
1256         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
1257         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
1258         (built_in_names): Remove const.
1259         * c-common.c (c_common_type_for_mode): Handle complex modes.
1260         * flags.h, toplev.c (flag_complex_method): Rename from
1261         flag_complex_divide_method.
1262         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
1263         __mulsc3, __muldc3, __mulxc3, __multc3): New.
1264         * libgcc2.h: Declare them.
1265         * libgcc-std.ver: Export them.
1266         * mklibgcc.in (lib2funcs): Build them.
1267
1268 2005-02-11  Steven Bosscher  <stevenb@suse.de>
1269
1270         PR tree-optimization/19876
1271         Partially revert my change from 2005-01-14
1272         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
1273         (compute_antic): ...and remove the loop here.
1274
1275 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
1276
1277         PR middle-end/19858
1278         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
1279         is number of inner's bits, avoid creating a BIT_FIELD_REF.
1280
1281         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
1282         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
1283
1284 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
1285
1286         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
1287         offsets for the big-endian 32-bit case.
1288
1289 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
1290
1291         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1292
1293 2005-02-11  Dale Johannesen  <dalej@apple.com>
1294
1295         * cselib.c (cselib_process_insn):  Clear out regs where
1296         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
1297         * reload.c (find_equiv_reg): Ditto.
1298
1299 2005-02-11  Ian Lance Taylor  <ian@airs.com>
1300
1301         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
1302         with no elements.
1303
1304         * tree.c (build_function_type_list): Work correctly if there are
1305         no arguments.
1306
1307 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
1308
1309         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
1310         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
1311         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
1312         TARGET_ZARCH instead of TARGET_64BIT.
1313
1314 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
1315
1316         * config/rs6000/t-rtems:
1317         (MULTILIB_OPTIONS): Remove mcpu=602.
1318         (MUTLILIB_DIRNAMES): Remove m602.
1319         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
1320         Let mcpu=602 match mcpu=603.
1321         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
1322
1323 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1324
1325         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
1326         signal trampolines.
1327
1328 2005-02-10  David Daney  <ddaney@avtrex.com>
1329
1330         * config/alpha/linux-unwind.h: Add exception clause to copyright.
1331         * config/i386/linux-unwind.h: Likewise.
1332         * config/ia64/linux-unwind.h: Likewise.
1333         * config/mips/linux-unwind.h: Likewise.
1334         * config/pa/linux-unwind.h: Likewise.
1335         * config/rs6000/linux-unwind.h: Likewise.
1336         * config/s390/linux-unwind.h: Likewise.
1337         * config/sh/linux-unwind.h: Likewise.
1338         * config/sparc/linux-unwind.h: Likewise.
1339
1340 2005-02-10  Steven Bosscher  <stevenb@suse.de>
1341
1342         PR tree-optimization/17549
1343         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
1344         TER to replace a DEF with its expression if the DEF and the
1345         rhs of the expression we replace into have the same root
1346         variable.
1347
1348 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
1349
1350         * config/mips/mips.md: Fix the placement of the match_scratch in the
1351         lea64 peephole2.
1352
1353 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
1354
1355         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
1356         Fix comment typos.
1357
1358 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
1359
1360         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
1361         (strip_offset): Handle addresses.
1362         (add_address_candidates): Use strip_offset.
1363         (difference_cost): Reflect strip_offset change.
1364         (force_var_cost, difference_cost): Strip nops.
1365
1366 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
1367
1368         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
1369
1370         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
1371         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
1372         config/cris/cris-protos.h, config/cris/cris.c: Update
1373         copyright.
1374
1375 2005-02-10  Jeff Law  <law@redhat.com>
1376
1377         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
1378         (lookup_avail_expr): Similarly.
1379
1380 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
1381
1382         * builtins.c (fold_builtin_powi): New function.
1383         (fold_builtin_1): Call it.
1384
1385 2005-02-10  Steven Bosscher  <stevenb@suse.de>
1386
1387         PR documentation/19309
1388         * doc/cpp.texi: The __GNUC__ and related predefined macros
1389         are also defined for the "standalone" cpp.
1390         Some non-GCC compilers may also define __GNUC__.
1391
1392 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1393
1394         PR c/19342
1395         * c-typeck.c (common_type): New routine.  Old common_type renamed
1396         to...
1397         (c_common_type): ...this.
1398         (build_conditional_expr, build_binary_op): Use c_common_type instead
1399         of common_type.
1400
1401 2005-02-10  Steven Bosscher  <stevenb@suse.de>
1402
1403         * doc/md.texi: Replace @samp{length} with @code{length}.
1404
1405 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
1406
1407         PR tree-optimization/18687
1408         * tree-flow.h (find_loop_niter): Declare.
1409         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1410         Try using scev even for loops with more than one exit.
1411         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
1412         (struct ivopts_data): Added niters field.
1413         (struct nfe_cache_elt): New.
1414         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
1415         functions.
1416         (tree_ssa_iv_optimize_init): Initialize niters cache.
1417         (determine_number_of_iterations): Removed.
1418         (find_induction_variables): Do not call determine_number_of_iterations.
1419         Access niters for single exit through niter_for_single_dom_exit.
1420         (add_iv_outer_candidates): Access niters for single exit through
1421         niter_for_single_dom_exit.
1422         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
1423         number_of_iterations_cond.
1424         (iv_period): New function.
1425         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
1426         (may_replace_final_value): Take data argument.  Use
1427         niter_for_single_dom_exit.
1428         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
1429         (rewrite_use_compare): Pass data to may_eliminate_iv.
1430         (rewrite_use_outer): Pass data to may_replace_final_value.
1431         (free_loop_data): Clean up the niters cache.
1432         (tree_ssa_iv_optimize_finalize): Free the niters cache.
1433         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
1434         * tree-ssa-loop-niter.c (find_loop_niter): New function.
1435         (find_loop_niter_by_eval): Use tree_int_cst_lt.
1436         (num_ending_zeros): Moved to tree.c.
1437         * tree.h (num_ending_zeros): Declare.
1438         * tree.c (num_ending_zeros): Moved from tree.c.
1439
1440 2005-02-09  Richard Henderson  <rth@redhat.com>
1441
1442         * builtins.c (DEF_BUILTIN): Add COND argument.
1443         * tree.h (DEF_BUILTIN): Likewise.
1444         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
1445         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
1446         match.
1447         (DEF_BUILTIN_STUB): New.
1448         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
1449         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
1450         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
1451         * c-common.c (DEF_BUILTIN): Add COND argument.
1452         * tree.c (local_define_builtin): New.
1453         (build_common_builtin_nodes): New.
1454
1455 2005-02-09  Roger Sayle  <roger@eyesopen.com>
1456
1457         * fold-const.c (fold_strip_sign_ops): New function to simplify a
1458         floating point expression ignoring the sign of the result.
1459         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
1460         (fold) <MULT_EXPR>: Use it to simplify x*x.
1461         * tree.h (fold_strip_sign_ops): Prototype here.
1462         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
1463         argument.  Use fold_strip_sign_ops to simplify the first argument.
1464         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
1465         first argument when the second argument is an even integer
1466         constant, but only with -funsafe_math_optimizations.
1467         (fold_builtin_1): Update call to fold_builtin_copysign.
1468
1469 2005-02-09  Ian Lance Taylor  <ian@airs.com>
1470
1471         PR middle-end/19583
1472         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
1473         just check whether EH_FILTER_FAILURE falls through.
1474
1475 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1476
1477         * gcc/haifa-sched.c (schedule_block): Make queued sched group
1478         insns return to ready list in the next turn.
1479
1480 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
1481
1482         PR middle-end/19402
1483         * builtins.def: New __builtin_powi[lf].
1484         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
1485         (expand_builtin_powi): New function.
1486         (expand_builtin): Dispatch to expand_builtin_powi.
1487         * libgcc2.h: Add prototypes for __builtin_powi[lf].
1488         * libgcc2.c: Add __builtin_powi[lf] implementation.
1489         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
1490         * optabs.h: Add powi_optab.
1491         * optabs.c (init_optabs): Initialize powi_optab.
1492         * doc/extend.texi: Document __builtin_powi[lf].
1493
1494 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
1495
1496         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
1497         exists.
1498
1499 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
1500
1501         PR middle-end/19854
1502         * fold-const.c (try_move_mult_to_index): Remove redundant
1503         type argument.  Create ADDR_EXPR with correct type.
1504         (fold): Update callers of try_move_mult_to_index.  Convert
1505         result to the appropriate type.
1506
1507 2005-02-09  Roger Sayle  <roger@eyesopen.com>
1508
1509         PR target/19597
1510         * config/avr/avr.c (default_rtx_costs): Delete.
1511         (avr_operand_rtx_cost): New function.
1512         (avr_rtx_costs): Completely rewrite.
1513
1514 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
1515
1516         PR target/19806
1517         * config/cris/cris.c (in_code): New variable.
1518         (cris_output_addr_const): Now a static function, a wrapper for
1519         output_addr_const.
1520         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
1521         case from old cris_output_addr_const.
1522         (cris_asm_output_label_ref): Similar for LABEL_REF.
1523         (cris_output_addr_const_extra): Similar for UNSPEC.
1524         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
1525         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
1526         * config/cris/cris-protos.h (cris_output_addr_const): Remove
1527         declaration.
1528         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
1529         (cris_asm_output_label_ref): Declare.
1530
1531 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
1532
1533         PR preprocessor/19801
1534         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
1535         filenames that changed when libcpp was moved to the toplevel.
1536
1537 2005-02-07  Roger Sayle  <roger@eyesopen.com>
1538
1539         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
1540         zero extensions of BImode operands.  Call lowpart_subreg instead
1541         of gen_lowpart_common and gen_lowpart_SUBREG.
1542
1543 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1544
1545         PR ada/19489
1546         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
1547         * configure.ac: Set cc_for_cross_gnattools.
1548         * configure: Regenerate.
1549
1550 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
1551
1552         PR target/19803
1553         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
1554
1555 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1556
1557         PR debug/19327
1558         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
1559         of nested functions.
1560
1561 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
1562
1563         * doc/extend.texi: Document deprecated extensions allowing
1564         static floating-point members to have initializers and allowing
1565         floating-point literals in integral constant expressions.
1566
1567 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
1568
1569         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
1570         config/darwin7.h, config/mips/mips.c,
1571         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
1572         Update copyright.
1573
1574         * cse.c: Update comments.
1575
1576 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
1577
1578         PR middle-end/19775
1579         * builtins.c (fold_builtin_sqrt): Transform
1580         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
1581         pow(x,y*0.5).
1582
1583 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
1584             Dorit Naishlos  <dorit@il.ibm.com>
1585
1586         * doc/invoke.texi (ftree-vectorizer-verbose): New.
1587         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
1588         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
1589         was added.
1590         * tree.h (vect_set_verbosity_level): New extern function declaration
1591         added.
1592         * tree-vectorizer.h (verbosity_levels): New enum type.
1593         * tree-vectorizer.c (vect_debug_stats): Function removed.
1594         (vect_debug_details): Likewise.
1595         (vect_verbosity_level): Global variable was defined and initialized.
1596         (vect_dump): Global variable definition.
1597         (vect_print_dump_info): New function.
1598         (vect_set_dump_settings): New function.
1599         (vect_set_verbosity_level): New function.
1600         (vectorize_loops): Add call to vect_set_dump_settings.
1601
1602         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
1603         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1604         (slpeel_tree_peel_loop_to_edge): Likewise.
1605
1606         (vect_analyze_offset_expr): Call to vect_print_dump_info with
1607         appropriate verbosity level instead of call to vect_debug_details
1608         or vect_debug_stats.
1609         (vect_get_base_and_offset):
1610         (vect_create_addr_base_for_vector_ref):
1611         (get_vectype_for_scalar_type):
1612         (vect_create_data_ref_ptr):
1613         (vect_init_vector):
1614         (vect_get_vec_def_for_operand):
1615         (vect_finish_stmt_generation):
1616         (vectorizable_assignment):
1617         (vectorizable_operation):
1618         (vectorizable_store):
1619         (vectorizable_load):
1620         (vect_transform_stmt):
1621         (vect_update_ivs_after_vectorizer):
1622         (vect_do_peeling_for_loop_bound):
1623         (vect_update_inits_of_drs):
1624         (vect_do_peeling_for_alignment):
1625         (vect_transform_loop):
1626         (vect_is_simple_use):
1627         (vect_analyze_operations):
1628         (vect_is_simple_iv_evolution):
1629         (vect_analyze_scalar_cycles):
1630         (vect_analyze_data_ref_dependence):
1631         (vect_analyze_data_ref_dependences):
1632         (vect_compute_data_ref_alignment):
1633         (vect_enhance_data_refs_alignment):
1634         (vect_analyze_data_refs_alignment):
1635         (vect_analyze_data_ref_access):
1636         (vect_analyze_data_ref_accesses):
1637         (vect_analyze_pointer_ref_access):
1638         (vect_get_memtag_and_dr):
1639         (vect_analyze_data_refs):
1640         (vect_mark_relevant):
1641         (vect_stmt_relevant_p):
1642         (vect_mark_stmts_to_be_vectorized):
1643         (vect_can_advance_ivs_p):
1644         (vect_get_loop_niters):
1645         (vect_analyze_loop_form):
1646         (vect_analyze_loop):
1647         (vectorize_loops): Likewise.
1648
1649         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
1650         (vect_update_inits_of_drs):
1651         (vect_do_peeling_for_alignment):
1652         (vect_transform_loop):
1653         (vect_analyze_operations):
1654         (vect_analyze_scalar_cycles):
1655         (vect_analyze_data_ref_dependences):
1656         (vect_analyze_data_refs_alignment):
1657         (vect_analyze_data_ref_accesses):
1658         (vect_analyze_data_refs):
1659         (vect_mark_stmts_to_be_vectorized):
1660         (vect_get_loop_niters):
1661         (vect_analyze_loop_form):
1662         (vect_analyze_loop): Likewise.
1663         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
1664
1665 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
1666
1667         PR bootstrap/19796
1668         Revert:
1669         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
1670         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
1671         either -ffast-math or -funsafe-math-optimizations is in use.
1672
1673         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
1674         * config/mips/irix-csr.c: New file.
1675         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
1676         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
1677         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
1678         executables.
1679
1680 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
1681
1682         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
1683         redundant, incorrect definitions.
1684
1685         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
1686         expand.
1687         ("*tls_indirect_call"): New, reference hard regs directly.
1688         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
1689
1690 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
1691
1692         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
1693         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
1694
1695 2005-02-06  Roger Sayle  <roger@eyesopen.com>
1696
1697         PR rtl-optimization/19800
1698         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
1699         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
1700         gen_lowpart.
1701
1702 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
1703
1704         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
1705
1706 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
1707
1708         PR other/17135
1709         * doc/invoke.texi: Correct documentation of -freorder-functions.
1710
1711 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
1712
1713         PR other/14402
1714         * doc/invoke.texi: Don't mention gccbug.
1715
1716 2005-02-06  Roger Sayle  <roger@eyesopen.com>
1717             Andrew Pinski  <pinskia@physics.uc.edu>
1718             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
1719
1720         * simplify-rtx.c (simplify_relational_operation_1): Simplify
1721         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
1722         into just (zero_extract:SI FOO (const_int 1) BAR).
1723
1724 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
1725
1726         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
1727         macro locally.  Don't give last revision date.  Use GCC version
1728         number from gcc-common.texi.
1729         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
1730         revision date.  Use GCC version number from gcc-common.texi.
1731         Describe being a library as current state rather than as 3.x
1732         history.
1733         * doc/gcc.texi: Remove last update date.
1734         * doc/gccint.texi: Likewise.  Update copyright dates.
1735         * doc/install.texi: Update copyright dates.
1736
1737 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
1738
1739         PR other/7549
1740         * doc/invoke.texi: Mention for each option included in -Wall that
1741         it is included in -Wall.
1742         * doc/gcc.texi: Update copyright and last modification date.
1743
1744 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
1745
1746         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
1747         unnecessary cast to original induction variable increments.
1748
1749 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
1750
1751         PR tree-optimization/18219
1752         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
1753         in distributed form.
1754
1755 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
1756
1757         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
1758         Set bitpos and offset later in the function.  Do nothing if the
1759         target is a register and if the bitfield lies completely outside
1760         that register.
1761         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
1762         here.  Return an uninitialised register if the source value is stored
1763         in a register and the bitfield lies completely outside that register.
1764
1765 2005-02-06  Steven Bosscher  <stevenb@suse.de>
1766
1767         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
1768         not SET_DEST.
1769
1770 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
1771
1772         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
1773
1774 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
1775
1776         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
1777         * config/darwin8.h: New.
1778         * config/darwin7.h: Update comment.
1779
1780 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
1781             Dorit Naishlos  <dorit@il.ibm.com>
1782
1783         * tree-vectorizer.h (LOC): New type.
1784         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
1785         (loop_line_number): New field in struct _loop_vec_info.
1786         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
1787
1788         * tree-vectorizer.c (input.h): Included.
1789         (find_loop_location): New function.
1790         (vect_debug_stats): Argument changed from loop to LOC. Computation of
1791         loop line number removed.
1792         (vect_debug_details): Likewise.
1793         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
1794
1795         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
1796         call to vect_debug_details/stats changed from loop to loop_loc.
1797         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1798         (slpeel_tree_peel_loop_to_edge): Likewise.
1799
1800         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
1801         changed from NULL to UNKNOWN_LOC.
1802         (vect_get_base_and_offset):
1803         (vect_create_addr_base_for_vector_ref):
1804         (get_vectype_for_scalar_type):
1805         (vect_create_data_ref_ptr):
1806         (vect_init_vector):
1807         (vect_get_vec_def_for_operand):
1808         (vect_finish_stmt_generation):
1809         (vectorizable_assignment):
1810         (vectorizable_operation):
1811         (vectorizable_store):
1812         (vectorizable_load):
1813         (vect_transform_stmt):
1814         (vect_update_ivs_after_vectorizer):
1815         (vect_do_peeling_for_loop_bound):
1816         (vect_do_peeling_for_alignment):
1817         (vect_transform_loop):
1818         (vect_is_simple_use):
1819         (vect_analyze_operations):
1820         (vect_is_simple_iv_evolution):
1821         (vect_analyze_scalar_cycles):
1822         (vect_analyze_data_ref_dependences):
1823         (vect_compute_data_ref_alignment):
1824         (vect_enhance_data_refs_alignment):
1825         (vect_analyze_data_ref_access):
1826         (vect_analyze_data_ref_accesses):
1827         (vect_analyze_pointer_ref_access):
1828         (vect_get_memtag_and_dr):
1829         (vect_analyze_data_refs):
1830         (vect_mark_relevant):
1831         (vect_stmt_relevant_p):
1832         (vect_mark_stmts_to_be_vectorized):
1833         (vect_can_advance_ivs_p):
1834         (vect_get_loop_niters):
1835         (vect_analyze_loop):
1836         (vectorize_loops): Likewise.
1837
1838         (vectorizable_load): Argument in call to vect_debug_details/stats
1839         changed from loop to LOOP_LOC (loop_vinfo).
1840         (vect_transform_loop):
1841         (vect_analyze_operations):
1842         (vect_analyze_scalar_cycles):
1843         (vect_analyze_data_ref_dependence):
1844         (vect_enhance_data_refs_alignment):
1845         (vect_analyze_data_ref_accesses):
1846         (vect_analyze_pointer_ref_access):
1847         (vect_analyze_data_refs):
1848         (vect_analyze_loop): Likewise.
1849
1850         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
1851         changed from loop to loop_loc.
1852
1853         (vect_enhance_data_refs_alignment): Removed unused variable loop.
1854
1855 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
1856             Dorit Naishlos  <dorit@il.ibm.com>
1857
1858         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
1859         declaration added.
1860         (vect_analyze_data_ref_dependences): Likewise.
1861
1862         (vect_is_simple_use): Argument changed from loop structure to
1863         loop_vect_info structure.
1864         (vect_can_advance_ivs_p): Likewise.
1865         (vect_create_index_for_vector_ref): Likewise.
1866         (vect_update_ivs_after_vectorizer): Likewise.
1867         (new_stmt_vec_info): Likewise.
1868
1869         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
1870         changed from loop to loop_vinfo.
1871         (vect_create_data_ref_ptr): First argument in call to
1872         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
1873         (vectorizable_assignment): Second argument in call to vect_is_simple_use
1874         was changed from loop to loop_vinfo.
1875         (vectorizable_operation): Likewise.
1876         (vectorizable_store): Likewise.
1877         (vect_mark_stmts_to_be_vectorized): Likewise.
1878         (vect_do_peeling_for_loop_bound): First argument in call to
1879         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
1880         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
1881         was changed from loop to loop_vinfo.
1882         (vect_analyze_data_ref_dependences): Third argument in call to
1883         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
1884
1885         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
1886         (vect_create_data_ref_ptr): Likewise.
1887         (vect_init_vector): Likewise.
1888         (vect_get_vec_def_for_operand): Likewise.
1889         (vectorizable_assignment): Likewise.
1890         (vectorizable_operation): Likewise.
1891         (vectorizable_store): Likewise.
1892         (vectorizable_load): Likewise.
1893         (vect_update_ivs_after_vectorizer): Likewise.
1894         (vect_is_simple_use): Likewise.
1895         (vect_analyze_data_ref_dependence): Likewise.
1896         (vect_analyze_pointer_ref_access): Likewise.
1897         (vect_can_advance_ivs_p): Likewise.
1898
1899         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
1900         before _stmt_vec_info.
1901         (_stmt_vec_info): Loop field replaced by loop_vec_info.
1902         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
1903         (new_stmt_vec_info): Argument changed from loop structure to
1904         loop_vect_info structure
1905
1906         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
1907         (vect_analyze_offset_expr): Avoid 80 columns overflow.
1908         (vect_create_addr_base_for_vector_ref): Likewise.
1909         (vect_analyze_pointer_ref_access): Likewise.
1910
1911 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
1912
1913         PR tree-opt/19768
1914         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
1915         phi flag if the phi is abnormal.
1916
1917 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
1918
1919         PR tree-opt/19736
1920         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
1921         information for the new statement.
1922
1923 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
1924
1925         PR driver/19117
1926         * gcc.c (main): Include the target in -v output.
1927
1928 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
1929
1930         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
1931         Do not drop the extend if we'd have to add a paradoxical subreg
1932         later.  Include optabs.h and insn-codes.h.
1933         * Makefile.in (combine.o): Depend on $(OPTABS_H).
1934
1935 2005-02-02  Roger Sayle  <roger@eyesopen.com>
1936
1937         PR middle-end/19405
1938         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
1939         * fold-const.c (const_binop): Avoid constant folding floating
1940         point operations in modes that use composite representations.
1941         * simplify-rtx.c (simplify_binary_operation): Likewise.
1942
1943 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
1944
1945         * config/rs6000/altivec.md (altivec_dst): Make the first operand
1946         a REG, not a MEM.
1947         (altivec_dstt): Likewise.
1948         (altivec_dstst): Likewise.
1949         (altivec_dststt): Likewise.
1950         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
1951         of first operand.
1952
1953 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
1954
1955         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
1956         EXPR_LOCUS from orig_cond to the new cond_stmt.
1957         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
1958         the new vec_stmt.
1959
1960 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
1961
1962         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
1963         standard_iv_increment_position. Remove call to bsi_next
1964         (no need to bump the iterator anymore).
1965         (vect_create_index_for_vector_ref): Call
1966         standard_iv_increment_position. Remove second function argument.
1967         (vect_finish_stmt_generation): Remove call to bsi_next
1968         (no need to bump the iterator anymore).
1969         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
1970         to vect_create_index_for_vector_ref.
1971
1972 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
1973
1974         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
1975         phis are used out of the loop.
1976
1977 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
1978
1979         PR c/17807
1980         * c-decl.c (undef_nested_function): New variable.
1981         (pop_scope): Diagnose undefined nested functions.
1982         (finish_function): Don't attempt cgraph processing or genericizing
1983         if current top-level function contained an undefined nested
1984         function.  Reset undef_nested_function at the end of a top-level
1985         function.
1986
1987 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
1988
1989         * tree.c (build_int_cst_type): Take sign of the value into account
1990         when deciding whether sign extend the value.
1991
1992 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
1993
1994         PR c/18502
1995         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
1996         (cpp_options, cc1_options): Change %{std*&ansi} to
1997         %{std*&ansi&trigraphs}.
1998
1999 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
2000
2001         * cse.c: Update comments.
2002
2003 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
2004
2005         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
2006         arguments go on the stack.  Do not put complex doubles in odd/even
2007         pairs.
2008
2009 2005-02-02  Steven Bosscher  <stevenb@suse.de>
2010
2011         * doc/invoke.texi: Update the options enabled at -O1, -O2,
2012         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
2013         -ftree-pre, and -fthread-jumps.
2014
2015 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
2016
2017         PR tree-optimization/19578
2018         * tree-flow.h (modified_noreturn_calls): Declare.
2019         (noreturn_call_p): Declare.
2020         * tree-flow-inline.h (noreturn_call_p): New function.
2021         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
2022         * tree-cfg.c (modified_noreturn_calls): New variable.
2023         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
2024         that contain a mid-block noreturn call.
2025         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
2026
2027 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
2028
2029         * df.c (df_def_record_1, df_uses_record): Don't use
2030         DF_FOR_REGALLOC.
2031         * df.h (DF_FOR_REGALLOC): Remove.
2032
2033 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
2034
2035         PR c/19435
2036         * c-typeck.c (really_start_incremental_init): Reset
2037         constructor_max_index for arrays of incomplete type.
2038
2039 2005-02-02  Jeff Law  <law@redhat.com>
2040
2041         * gcse.c (struct reg_set): Store the block index where the register
2042         was set rather than the setting insn.
2043         (record_one_set, compute_transp): Corresponding changes.
2044         (pre_insert_copy_insn): Do not call replace_one_set.
2045         (replace_one_set): Remove.
2046
2047 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
2048
2049         PR other/15514
2050         * doc/gcov.texi: Fix typo.
2051
2052 2005-02-01  Richard Henderson  <rth@redhat.com
2053
2054         PR target/19680
2055         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
2056         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
2057         type to bool.
2058         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
2059         * config/i386/i386-protos.h: Update.
2060
2061 2005-02-01  Steven Bosscher  <stevenb@suse.de>
2062
2063         PR tree-optimization/19217
2064         * tree-cfg.c (verify_expr): Use the data field to see if TP was
2065         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
2066         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
2067         that it is walking a PHI node.
2068
2069 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
2070
2071         * doc/extend.texi (Nested Functions): Update.
2072
2073 2005-02-01  Richard Henderson  <rth@redhat.com>
2074
2075         PR 19696
2076         * optabs.c (expand_copysign_absneg): Export.
2077         * optabs.h (expand_copysign_absneg): Declare.
2078         * config/rs6000/rs6000.md (copysigntf3): New.
2079
2080 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
2081
2082         PR tree-optimization/19633
2083         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
2084         * tree-ssa-alias.c (init_alias_info): Initialize.
2085         (merge_pointed_to_info): Set.
2086         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
2087         (dump_points_to_info_for): Show value of pt_null.
2088         (struct count_ptr_d): Declare.
2089         (find_ptr_dereference): Remove.
2090         (ptr_is_dereferenced_by): Remove.
2091         (count_ptr_derefs): New local function.
2092         (count_uses_and_derefs): New local function.
2093         (compute_points_to_and_addr_escape): Call it.  If the number
2094         of dereferences is greater than zero, mark the pointer as
2095         dereferenced.  If there are fewer dereferences than uses of
2096         the pointer, the pointer's value escapes.
2097
2098 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
2099
2100         PR tree-optimization/19670
2101         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
2102         here...
2103         (verify_use): ... set it here, instead.
2104
2105 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
2106
2107         * doc/sourcebuild.texi (Test directives): Fix formatting.
2108
2109         * doc/sourcebuild.texi (Test directives): Describe selector
2110         expressions.
2111
2112 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
2113
2114         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
2115         specific 64-bit CPUs.
2116
2117 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
2118
2119         PR target/16201
2120         * arm.c (arm_eliminable_register): New function.
2121         (adjacent_mem_locations): Don't allow eliminable registers.  Use
2122         HOST_WIDE_INT for address offsets.
2123         * arm-protos.h (arm_eliminable_register): Add prototype.
2124
2125 2005-02-01  Steven Bosscher  <stevenb@suse.de>
2126
2127         PR optimization/15242
2128         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
2129         * basic-block.h (duplicate_computed_gotos): Add prototype.
2130         * bb-reorder.c (duplicate_computed_gotos): New function to
2131         duplicate sufficiently small blocks ending in a computed jump.
2132         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
2133         if not optimizing for size.
2134         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
2135         never do tail merging for blocks ending in a computed jump.
2136         * doc/invoke.texi: Document the max-goto-duplication-insns param.
2137
2138 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2139
2140         Patch from Richard Sandiford <rsandifo@redhat.com>
2141         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
2142         from inheriting a subreg equivalence with a non-spill register.
2143
2144         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
2145
2146 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
2147
2148         * config/frv/frv.c (movcc_fp_destination_operand): New.
2149         (gpr_or_memory_operand): Fix typo in comment.
2150         (gpr_or_memory_operand_with_scratch): New.
2151         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
2152         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
2153         movcc_fp_destination_operand.
2154         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
2155         Legitimize memory addresses using a scratch register.
2156
2157 2005-01-31  Jeff Law  <law@redhat.com>
2158
2159         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
2160         bitmap a sparse bitmap instead of a simple bitmap.
2161         (mark_def_sites_initialize_block):  Corresponding changes.
2162         (ssa_mark_def_sites_initialize_block): Likewise.
2163         (ssa_mark_phi_uses): Likewise.
2164         (mark_def_site, ssa_mark_def_sites): Likewise.
2165         (mark_def_site_blocks): Likewise.
2166         (rewrite_ssa_into_ssa): Likewise.
2167
2168         * tree-ssa-dom.c (record_cond): Pass correct variable type
2169         for last argument to htab_find_slot_with_hash.
2170
2171         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
2172         effects when optimizing 0 % X.  Do not try to optimize X % 0.
2173
2174 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
2175
2176         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
2177         1_mmalua.
2178
2179 2005-02-01  Eric Christopher  <echristo@redhat.com>
2180
2181         * config/mips/mips.c (override_options): Warn if -mint64
2182         is used.
2183         * doc/invoke.texi (MIPS Options): Document that -mint64 is
2184         deprecated.
2185
2186 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2187
2188         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
2189         timestamp.
2190         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
2191         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
2192         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
2193         (cached_regno): Initialize to INVALID_REGNUM.
2194         (cse_reg_info_table_size,
2195         cse_reg_info_table_first_uninitialized,
2196         cse_reg_info_timestamp): New.
2197         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
2198         get_cse_reg_info.
2199         (init_cse_reg_info, get_cse_reg_info_1): New.
2200         (get_cse_reg_info): Cache the last look-up.
2201         (new_basic_block): Update the code to clear mappings from
2202         registers to cse_reg_info entries.
2203         (cse_main): Call init_cse_reg_info.
2204
2205         * cse.c (get_cse_reg_info): Update a comment.
2206
2207 2005-01-31  Steven Bosscher  <stevenb@suse.de>
2208
2209         PR c/19333
2210         * c-decl.c (start_decl): Do not warn about arrays of elements with
2211         an incomplete type here.
2212         (grokdeclarator): Do it here by making a pedwarn an error.
2213         * c-typeck.c (push_init_level): If there were previous errors with
2214         the constructor type, do not warn about braces for initializers.
2215         (process_init_element): Likewise for excess initializer elements.
2216
2217 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2218
2219         * cse.c (delete_trivially_dead_insn): Don't iterate.
2220
2221 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
2222
2223         * config/rs6000/rs6000.md (copysignsf3): New expand.
2224         (copysigndf3): Likewise.
2225
2226 2005-01-31  Steven Bosscher  <stevenb@suse.de>
2227
2228         * recog.c (constrain_operands): Only look for earlyclobber operand
2229         conflicts if an '&' constraint was seen.
2230
2231 2005-01-31  Marc Espie <espie@openbsd.org>
2232
2233         * config.gcc: Don't include embedded systems fragment, switches default
2234         debugging format to ELF.
2235         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
2236         longer pick it up there.
2237
2238 2005-01-31  Dale Johannesen  <dalej@apple.com>
2239
2240         * doc/extend.texi (nested functions): Fix linkage description.
2241         Clarify that static is not allowed.
2242
2243 2005-01-31  Dale Johannesen  <dalej@apple.com>
2244
2245         * config/rs6000/darwin.md (movsf_low_di):  Make work.
2246         (movdf_low_di):  Make work.
2247
2248 2005-01-31  Dale Johannesen  <dalej@apple.com>
2249
2250         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
2251         Make work for 64 bit.
2252
2253 2005-01-31  Roger Sayle  <roger@eyesopen.com>
2254             Dale Johannesen  <dalej@apple.com>
2255
2256         PR middle-end/19650
2257         * fold-const.c (fold_binary_op_with_conditional_arg):
2258         Make types match original operands, before STRIP_NOPS.
2259
2260 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
2261
2262         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
2263         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
2264         (struct gcc_sigcontext): Delete.  Merge contents to..
2265         (struct gcc_ucontext): ..here.
2266         (get_sigcontext): Delete.
2267         (get_regs): New function, like get_sigcontext but return regs ptr.
2268         64-bit version finds regs from r1 to support vdso.
2269         (ppc_linux_aux_vector): New function.
2270         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
2271         and vector regs.
2272
2273 2005-01-31  Ira Rosen  <irar@il.ibm.com>
2274
2275         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
2276         sizetype.
2277         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
2278         redundant fold. Fix misalignment for MINUS_EXPR.
2279         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
2280         (vect_analyze_pointer_ref_access): Likewise.
2281         (vect_get_memtag_and_dr): Likewise.
2282
2283 2005-01-31  Richard Henderson  <rth@redhat.com>
2284
2285         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
2286         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
2287         absnegdf2_i387, absnegxf2_i387): Likewise.
2288
2289 2005-01-31  Richard Henderson  <rth@redhat.com>
2290
2291         PR 19696
2292         * optabs.c (expand_copysign_absneg): New.
2293         (expand_copysign_bit): Split out from ...
2294         (expand_copysign): ... here.  Use expand_copysign_absneg.
2295
2296 2005-01-30  Roger Sayle  <roger@eyesopen.com>
2297
2298         PR middle-end/19697
2299         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
2300         constant as the second operand and a register as the third.
2301
2302 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
2303
2304         PR target/19704
2305         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
2306         that dllimport'd functions do not use all call-clobbered registers
2307         to pass parameters.
2308
2309 2005-01-30  Richard Henderson  <rth@redhat.com>
2310
2311         PR 19696
2312         * optabs.c (expand_absneg_bit): Split out from expand_unop and
2313         expand_abs_nojump and generalize.  Use operand_subword and
2314         emit_no_conflict_block.  Support large modes.
2315         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
2316         back to maximum.
2317         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
2318         negation to subtraction.
2319         (expand_copysign): Check that the format has signed zeros.
2320         Use operand_subword and emit_no_conflict_block.  Support large modes.
2321
2322 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
2323
2324         Fix PR tree-optimization/19624
2325
2326         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
2327         * tree-ssa-pre.c: Add cfgloop.h.
2328         Update comment.
2329         (pre_stats): New member, constified.
2330         (inserted_exprs): New static variable.
2331         (NECESSARY): New macro.
2332         (create_expression_by_pieces): Fold the expression, and
2333         mark it as defaulting to not necessary. Also put in
2334         inserted_exprs.
2335         (fully_constant_expression): New function.
2336         (insert_into_preds_of_block): Modify to not insert phis when we
2337         are playing with induction variables.
2338         Push phis onto the inserted_exprs vector, and mark them as not
2339         necessary by default.
2340         (insert_aux): Call fully_constant_expression on eprime.
2341         If all edges produce the same value, mark it constant.
2342         (mark_operand_necessary): New function.
2343         (remove_dead_inserted_code): New function.
2344         (init_pre): Init loop optimizer to get loop info.
2345         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
2346         (execute_pre): Commit edge inserts, then remove dead code.
2347
2348 2005-01-30  Richard Henderson  <rth@redhat.com>
2349
2350         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
2351         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
2352
2353 2005-01-30  Richard Henderson  <rth@redhat.com>
2354
2355         PR target/19700
2356         * config/i386/i386.c (ix86_expand_copysign): New.
2357         (ix86_split_copysign_const): New.
2358         (ix86_split_copysign_var): Rename from ix86_split_copysign,
2359         rearrange op1/nmask operands.
2360         * config/i386/i386-protos.h: Update.
2361         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
2362         (copysigndf3): Likewise.
2363         (copysignsf3_const, copysigndf3_const): New.
2364         (copysignsf3_var): Rename from copysignsf3, split out splitter
2365         and fix split predicate for X constraint.
2366         (copysigndf3_var): Similarly.
2367
2368 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2369
2370         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
2371         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
2372         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
2373
2374 2005-01-29  Richard Henderson  <rth@redhat.com>
2375
2376         PR target/19690
2377         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
2378         of # and * in constraints.
2379
2380 2005-01-29  Richard Henderson  <rth@redhat.com>
2381
2382         PR middle-end/19689
2383         * expr.c (store_field): Don't strip sub-mode cast when the input
2384         data is even smaller.
2385
2386 2005-01-29  Richard Henderson  <rth@redhat.com>
2387
2388         PR middle-end/19687
2389         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
2390         union being empty.
2391
2392 2005-01-29  Richard Henderson  <rth@redhat.com>
2393
2394         * combine.c (make_field_assignment): Fix argument order
2395         to gen_int_mode.
2396
2397 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
2398
2399         PR tree-optimization/15791
2400         * fold-const.c (extract_array_ref): New function.
2401         (fold): Fold comparisons between &a[i] and &a[j] or
2402         semantically equivalent trees.
2403
2404 2005-01-29  Jeff Law  <law@redhat.com>
2405
2406         * gcse.c (insert_expr_in_table): Revamp handling of available
2407         and anticipatable occurrence lists to avoid unnecessary list
2408         walking.
2409         (insert_set_in_table): Similarly.
2410
2411 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
2412
2413         * c-common.c (fix_string_type): Just use c_build_qualified_type to
2414         build string type.
2415         (c_build_qualified_type): Build qualified array types with
2416         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
2417         * c-decl.c (c_make_fname_decl): Build unqualified array type
2418         before qualified type.
2419         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
2420         type is qualified, not just if type itself is.  Don't apply
2421         qualifiers to array type when declarator is processed.  Apply
2422         qualifiers to field type whether or not it is an array type.
2423         Don't handle array types specially for applying qualifiers to
2424         variables.
2425         * c-typeck.c (composite_type): Build unqualified element type and
2426         array type when forming composite of array types.
2427         (common_pointer_type, comptypes, comp_target_types,
2428         type_lists_compatible_p, build_indirect_ref, build_array_ref,
2429         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
2430         types.
2431         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
2432         (args2) in variables a1 and a2.
2433
2434 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
2435
2436         * cse.c (n_elements_made, max_elements_made): Remove.
2437         (insert): Don't touch n_elements_made.
2438         (cse_main): Don't touch n_elements_made or max_elements_made.
2439
2440 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
2441
2442         PR target/15384
2443         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
2444         configuration part of dp-bit.c to be lost.
2445
2446 2005-01-28  Roger Sayle  <roger@eyesopen.com>
2447
2448         * expmed.c (expand_mult_highpart_optab): When attempting to use
2449         a non-widening multiplication in a wider mode, the operands need
2450         to be converted (zero or sign extended) to that mode.
2451
2452 2005-01-28  Ian Lance Taylor  <ian@airs.com>
2453
2454         PR middle-end/16558
2455         PR middle-end/19583
2456         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
2457         through if both operands fall through.
2458
2459 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2460
2461         * cse.c (fold_rtx) <PC>: Don't optimize.
2462
2463 2005-01-28  Jeff Law  <law@redhat.com>
2464
2465         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
2466         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
2467
2468 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2469
2470         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
2471         cse_reg_info_used_list_end): Remove.
2472         (cse_reg_info_list, cse_reg_info_list_free): New.
2473         (get_cse_reg_info): When allocating an instance of
2474         cse_reg_info, add it to the beginning of the cse_reg_info_list
2475         list.  Remove code to maintain cse_reg_info_used_list.
2476         (new_basic_block): Reset the free list to the beginning of
2477         cse_reg_info_list.
2478
2479 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
2480
2481         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
2482         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
2483         (frv_expand_mdpackh_builtin): New function.
2484         (frv_expand_builtin): Use it to expand __MDPACKH.
2485         * doc/extend.texi (__MDPACKH): Update documentation.
2486
2487 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
2488
2489         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
2490         SSE_FLOAT_MODE_P for use_sse computation.
2491
2492 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
2493
2494         PR target/19663
2495         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
2496
2497 2005-01-27  Richard Henderson  <rth@redhat.com>
2498
2499         * builtins.c (expand_builtin_copysign): New.
2500         (expand_builtin): Call it.
2501         * genopinit.c (optabs): Add copysign_optab.
2502         * optabs.c (init_optabs): Initialize it.
2503         (expand_copysign): New.
2504         * optabs.h (OTI_copysign, copysign_optab): New.
2505         (expand_copysign): Declare.
2506
2507         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
2508         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
2509
2510         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
2511         (ix86_expand_fp_absneg_operator): ... here.
2512         (ix86_split_copysign): New.
2513         * config/i386/i386-protos.h: Update.
2514         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
2515         (copysignsf3, copysigndf3): New.
2516
2517         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
2518         (copysignsf3, ncopysignsf3): New.
2519         (copysigndf3, ncopysigndf3): New.
2520         (copysignxf3, ncopysignxf3): New.
2521         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
2522
2523 2005-01-27  Arend Bayer  <arend.bayer@web.de>
2524             Kazu Hirata  <kazu@cs.umass.edu>
2525
2526         * cse.c: (find_best_addr): Don't call copy_rtx before calling
2527         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
2528         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
2529         NULL_RTX.
2530
2531 2005-01-27  Jeff Law  <law@redhat.com>
2532
2533         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
2534         definitions of SSA_NAMEs which are not being rewritten.
2535         (rewrite_ssa_into_ssa): Only initialize the current definition
2536         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
2537         If checking is enabled, assert that SSA_NAME_AUX is clear for all
2538         SSA_NAMEs before returning.
2539
2540 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
2541
2542         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
2543         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
2544         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
2545         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
2546         config/mips/iris6.h, config/sh/sh.c: Update copyright.
2547
2548 2005-01-27  Steven Bosscher  <stevenb@suse.de>
2549
2550         PR middle-end/17278
2551         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
2552         higher to -O2 and higher.  Likewise for tree PRE.
2553         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
2554         and better.
2555
2556 2005-01-27  Ian Lance Taylor  <ian@airs.com>
2557
2558         PR middle-end/19583
2559         * gimple-low.c (try_catch_may_fallthru): New static function.
2560         (block_may_fallthru): Handle TRY_CATCH_EXPR.
2561         * tree-inline.c (expand_call_inline): Don't warn about reaching
2562         the end of a non-void function being inlined if the function uses
2563         a return slot.
2564
2565 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
2566
2567         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
2568
2569         PR c/18946
2570         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
2571         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
2572         (implicitly_declare): Handle error_mark_node.
2573
2574 2005-01-27  Richard Henderson  <rth@redhat.com>
2575
2576         PR tree-opt/14329
2577         * tree.h (struct tree_decl): Add debug_expr_is_from.
2578         (DECL_DEBUG_EXPR_IS_FROM): New.
2579         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
2580         * dwarf2out.c (dwarf2out_var_location): Update to match.
2581         * tree-outof-ssa.c (create_temp): Likewise.
2582         * var-tracking.c (track_expr_p): Likewise.
2583         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
2584         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
2585         * toplev.c (default_tree_printer): Likewise.
2586
2587 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
2588
2589         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
2590         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
2591
2592 2005-01-27  Steven Bosscher  <stevenb@suse.de>
2593
2594         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
2595         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
2596         ASM_CLOBBERS): Add tree checks.
2597
2598         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
2599         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
2600         * c-common.def (SWITCH_STMT): Update to match.
2601         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
2602         macros instead of SWITCH_EXPR ones.
2603         * c-dump.c (c_dump_tree): Likewise.
2604         * c-gimplify.c (gimplify_switch_stmt): Likewise.
2605         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
2606
2607         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
2608
2609 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
2610
2611         * unwind-dw2.c (execute_stack_op): Add missing cases for
2612         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
2613
2614 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2615
2616         * config.gcc (Obsolete configurations): Remove 'dummy', add
2617         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
2618         sparc-*-openbsd*.
2619
2620 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
2621
2622         PR tree-optimization/19633
2623         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
2624         CALL_EXPRs.
2625         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
2626         are no call-clobbered variables.
2627         * tree-outof-ssa.c (check_replaceable): Return false for calls
2628         with side-effects.
2629
2630 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
2631
2632         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
2633         even for variables with NULL DECL_INITIAL.
2634
2635 2005-01-26  Stuart Hastings  <stuart@apple.com>
2636
2637         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
2638
2639 2005-01-26  Richard Henderson  <rth@redhat.com>
2640
2641         PR middle-end/18008
2642         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
2643         field's type.
2644         * expr.c (store_field): Strip conversions to odd-bit-sized types
2645         if the destination field width matches.
2646
2647 2005-01-26  Richard Henderson  <rth@redhat.com>
2648
2649         * c-decl.c, expmed.c, expr.c: Revert last change.
2650
2651 2005-01-26  Richard Henderson  <rth@redhat.com>
2652
2653         PR middle-end/18008
2654         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
2655         field's type.
2656         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
2657         if we don't need the bits above those present in the current mode.
2658         * expr.c (store_field): Strip conversions to odd-bit-sized types
2659         if the destination field width matches.
2660
2661 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
2662
2663         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
2664         either -ffast-math or -funsafe-math-optimizations is in use.
2665
2666 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2667
2668         PR target/19293
2669         PR target/19329
2670         * config/avr/avr.c (notice_update_cc): Only set condition code for
2671         ashrqi3 if shift count > 0.
2672         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
2673         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
2674         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
2675         count <= 0 as a no-op, and shift count >= width by copying zero
2676         or sign bit to all bits of the result.
2677         * config/avr/avr.md (all shifts): Add alternatives for zero shift
2678         count, with attribute "length" set to 0 and "cc" set to "none".
2679
2680 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
2681
2682         * doc/invoke.texi: Document -mTLS.
2683
2684         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
2685         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
2686         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
2687         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
2688         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
2689         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
2690         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
2691         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
2692
2693         * configure.ac: Check for a TLS capable gas.
2694
2695         * configure: Regenerate.
2696
2697 2005-01-26  Richard Henderson  <rth@redhat.com>
2698
2699         PR middle-end/18008
2700         * combine.c (make_field_assignment): Simplify store to zero_extract
2701         from a source with an overlapping mask.
2702
2703 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
2704
2705         2004-11-11  Eric Christopher  <echristo@redhat.com>
2706
2707         * config/frv/frv.md: Add fr400_integer automaton. Don't
2708         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
2709         to TYPE_MACC.
2710
2711 2005-01-26  Steven Bosscher  <stevenb@suse.de>
2712
2713         PR middle-end/16585
2714         * cfgbuild.c (make_edges): Do not clear or set
2715         current_function_has_computed_jump.
2716         * function.h (struct function): Remove the has_computed_jump field.
2717         (current_function_has_computed_jump): Do not define.
2718         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
2719         in a computed jump.  Ignore current_function_has_computed_jump.
2720
2721 2005-01-26  Richard Henderson  <rth@redhat.com>
2722
2723         PR middle-end/19515
2724         * expr.c (categorize_ctor_elements): New argument p_must_clear.
2725         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
2726         fully initialized.
2727         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
2728         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
2729         objects into static storage if they have more than one non-zero value.
2730         * tree.h (categorize_ctor_elements): Update decl.
2731
2732 2005-01-26  Steven Bosscher  <stevenb@suse.de>
2733
2734         PR middle-end/19616
2735         * tree.h (CALL_EXPR_TAILCALL): Add comment.
2736         * calls.c (check_sibcall_argument_overlap_1): Revert the change
2737         to this function from 2004-07-10.
2738         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
2739         the current function for tail call optimizations if the address
2740         of one of it its arguments is taken.
2741
2742 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2743
2744         * cse.c (fold_rtx): Call equiv_constant only when necessary.
2745
2746 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
2747
2748         * function.c (expand_function_end): If current_function_calls_alloca,
2749         emit stack restore in a place that is reached when the function falls
2750         through at the end.
2751
2752 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
2753
2754         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
2755         rule to avoid matching inappropriate suffix rule.
2756
2757 2005-01-26  Jan Hubicka  <jh@suse.cz>
2758
2759         PR tree-optimization/19241
2760         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
2761
2762 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
2763
2764         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
2765         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
2766         of doubling.
2767         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
2768         <sim*>: Always use crt1.o, regardless of N in simN.
2769         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
2770         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
2771         (CRT_CALL_STATIC_FUNCTION): Remove.
2772         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
2773         use crt1.o, regardless of N in simN.
2774         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
2775         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
2776         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
2777         case isystem setting.
2778         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
2779
2780 2005-01-25  Ian Lance Taylor  <ian@airs.com>
2781
2782         * gimple-low.c (block_may_fallthru): Correct handling of
2783         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
2784
2785 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
2786
2787         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
2788         handlers to match indentation; nested under the mtune=* handler.
2789         Similar for mcpu= and march=.
2790
2791 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
2792
2793         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
2794         * config/mips/linux64.h (LIB_SPEC): Likewise.
2795         * config/mn10300/linux.h (LIB_SPEC): Likewise.
2796         * config/sh/linux.h (LIB_SPEC): Likewise.
2797
2798 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
2799
2800         * config/frv/frv.c (frv_legitimize_tls_address): New.
2801         (TARGET_HAVE_TLS): Define.
2802         (FRV_SYMBOL_REF_TLS_P): Define.
2803         (frv_override_options): Handle new register classes.
2804         (frv_legitimate_address_p): Reject tls addresses.
2805         (frv_legitimize_address): Handle TLS addresses.
2806         (gen_inlined_tls_plt): New.
2807         (gen_tlsmoff): New.
2808         (frv_legitimize_tls_address): New.
2809         (unspec_got_name): Add TLS entries.
2810         (got12_operand): Add R_FRV_TLSMOFF12 case.
2811         (frv_emit_move): Fixup TLS addresses.
2812         (frv_emit_movsi): Legitimize TLS addresses.
2813
2814         * config/frv/frv.h (MASK_BIG_TLS): New.
2815         (TARGET_BIG_TLS): New.
2816         (HAVE_AS_TLS): Define.
2817         (TARGET_SWITCHES): Add -mTLS and -mtls options.
2818         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
2819         (REG_CLASS_NAMES): Same.
2820         (REG_CLASS_CONTENTS): Same.
2821         (CONSTRAINT_LEN): New.
2822         (REG_CLASS_FROM_CONSTRAINT): New.
2823         (PREDICATE_CODES): Add symbolic_operand.
2824
2825         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
2826         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
2827         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
2828         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
2829         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
2830         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
2831         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
2832         GR9_REG, GR14_REG, LRREG.
2833         (type): Add load_or_call attribute.
2834         ("load_or_call"): New reservation.
2835         ("call_gettlsoff"): New.
2836         ("tls_indirect_call"): New.
2837         ("tls_load_gottlsoff12"): New.
2838         ("tlsoff_hilo"): New.
2839         ("tls_tlsdesc_ldd"): New.
2840         ("tls_tlsoff_ld"): New.
2841         ("tls_lddi"): New.
2842
2843         * config/frv/frv-protos.h (symbolic_operand): Protoize.
2844
2845         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
2846
2847         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
2848         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
2849         * config/frv/frv.c (TLS_BIAS): Define.
2850         (frv_output_dwarf_dtprel): New.
2851
2852 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
2853
2854         PR rtl-optimization/19579
2855         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
2856         both A and B, see if they don't clobber registers the other expr uses.
2857
2858 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
2859
2860         * real.c (do_add): Initialize signalling and canonical members.
2861
2862         * real.c (real_from_integer): Zero out destination.
2863
2864 2005-01-18  Jan Hubicka  <jh@suse.cz>
2865
2866         PR tree-optimize/19337
2867         * tree-inline.c (initialize_inlined_parameters): Copy
2868         saved_static_chain_decl only.
2869
2870 2005-01-25  Richard Henderson  <rth@redhat.com>
2871
2872         PR target/19556
2873         PR target/19584
2874         * config/i386/i386.c (x86_inter_unit_moves): Zero.
2875         (ix86_preferred_reload_class): Rewrite fp-constant section, with
2876         80387 enabled, to return a proper subclass.  Return the subset that
2877         overlaps with GENERAL_REGS for PLUS.
2878         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
2879
2880 2005-01-25  Richard Henderson  <rth@redhat.com>
2881
2882         PR middle-end/19609
2883         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
2884
2885 2005-01-25  Roger Sayle  <roger@eyesopen.com>
2886
2887         * expmed.c (choose_multiplier): Change interface to return the
2888         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
2889         (expand_divmod): Update calls to choose_multiplier.
2890
2891 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2892
2893         PR middle-end/19330
2894         * expmed.c (extract_bit_field): Use adjust_address instead of
2895         gen_lowpart when op0 is a MEM.
2896
2897 2005-01-24  Steven Bosscher  <stevenb@suse.de>
2898
2899         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
2900
2901 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
2902
2903         * config/mips/irix-csr.c: New file.
2904         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
2905         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
2906         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
2907         executables.
2908
2909 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2910
2911         PR bootstrap/19364
2912         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
2913         sparc/elf.h, add sparc/sp-elf.h.
2914         (sparc-*-rtems*): Likewise.
2915         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
2916         tm-dwarf2.h, add sparc/sp-elf.h.
2917         (sparc86x-*-elf): Likewise.
2918         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
2919         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
2920         TARGET_OS_CPP_BUILTINS.
2921         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
2922         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
2923         Undefine it.
2924         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
2925         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
2926         (SWITCH_TAKES_ARG): Likewise.
2927         (LOCAL_LABEL_PREFIX): Likewise.
2928         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2929         (TARGET_N_FORMAT_TYPES): Delete.
2930         (TARGET_FORMAT_TYPES): Likewise.
2931         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
2932         * config/sparc/elf.h: Delete.
2933         * config/sparc/sp-elf.h: New file.
2934
2935 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
2936
2937         * tree-flow-inline.h (phi_arg_from_edge): Remove.
2938         * tree-flow.h: Remove the corresponding prototype.
2939         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
2940         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
2941
2942 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
2943
2944         PR target/17751
2945         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
2946         for AIX ABI or ELF -fPIC.
2947         (rs6000_emit_load_toc_table): Don't create toc_section here.
2948         (rs6000_xcoff_file_start): Nor here.
2949
2950 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
2951
2952         * sh.c (ra.h): Don't #include.
2953         (hard_regs_intersect_p): New function, resurrected from ra.c.
2954
2955         * sh.c: Fix 1996 Copyright.
2956
2957 2005-01-24  Richard Henderson  <rth@redhat.com>
2958             Aldy Hernandez  <aldyh@redhat.com>
2959
2960         * regrename.c (note_sets): Handle subregs.
2961
2962 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
2963
2964         PR bootstrap/18058
2965         * genconditions.c (write_header, write_conditions): Elide file if
2966         not GCC >= 3.0.1.
2967
2968 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
2969
2970         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
2971         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
2972         Update copyright.
2973
2974 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
2975
2976         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
2977         expand_builtin_printf, expand_builtin_fprintf,
2978         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
2979         checking against POINTER_TYPE.
2980         (validate_arglist): Handle POINTER_TYPE code by checking
2981         POINTER_TYPE_P.
2982
2983 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2984
2985         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
2986         init_rtlanal): New.
2987         (for_each_rtx): Call for_each_rtx_1.
2988         * rtl.h (init_rtlanal): Declare.
2989         * toplev.c (backend_init): Call init_rtlanal.
2990
2991 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
2992
2993         * flow.c (propagate_one_insn): Formatting.
2994
2995         PR middle-end/19551
2996         * flow.c (libcall_dead_p): Be more conservative if unsure.
2997         If there are any instructions between insn and call, see if they are
2998         all dead before saying the libcall is dead.
2999
3000 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
3001
3002         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
3003         operand constraint for operand 0.
3004
3005 2005-01-23  Richard Henderson  <rth@redhat.com>
3006
3007         PR 19486
3008         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
3009         edges leading to join block.
3010
3011 2005-01-23  Roger Sayle  <roger@eyesopen.com>
3012
3013         * expmed.c (expand_mult_highpart): Make static.  Change type of
3014         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
3015         (expand_divmod): Updates calls to expand_mult_highpart by using
3016         gen_int_mode to pass a CONST_INT rtx.
3017         * rtl.h (expand_mult_highpart): Remove prototype.
3018
3019 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
3020
3021         * flow.c (regset_bytes, regset_size): Remove.
3022
3023         * cfganal.c: Fix a reference to Harvey's paper.
3024
3025 2005-01-23  Steven Bosscher  <stevenb@suse.de>
3026
3027         PR rtl-optimization/19464
3028         * tree-optimize.c (init_tree_optimization_passes): Add one more
3029         copyrename pass just before out-of-ssa.
3030
3031 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
3032
3033         PR bootstrap/18058
3034         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
3035         * ggc-none.c (ggc_free): Define.
3036
3037 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
3038
3039         * cse.c (max_reg, max_insn_uid): Remove.
3040         (cse_main): Don't access max_reg or max_insn_uid.
3041
3042         * c-common.c (explicit_flag_signed_bitfields,
3043         lang_statement_code_p, lang_expand_function_end): Remove.
3044         * c-common.h: Remove the corresponding declarations.
3045         * c-opts.c (c_common_handle_option): Remove all write access
3046         to explicit_flag_signed_bitfields.
3047
3048         * cgraph.c (cgraph_varpool_n_nodes): Remove.
3049         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
3050         * cgraph.h: Remove the corresponding declaration.
3051
3052         * gcse.c (null_pointer_info): Remove.
3053
3054 2005-01-23  Roger Sayle  <roger@eyesopen.com>
3055             Eric Botcazou  <ebotcazou@libertysurf.fr>
3056
3057         * combine.c (simplify_logical): Only simplify logical expressions
3058         of the form ior(and(x,y),z) by the inverse distributive law if the
3059         result is cheaper than the original.
3060
3061 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
3062
3063         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
3064         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
3065         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
3066         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
3067         config/freebsd-spec.h, config/arm/arm.h,
3068         config/h8300/h8300.md, config/i386/i386.md,
3069         config/i386/predicates.md, config/i386/sse.md,
3070         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
3071         config/vax/vax.md: Fix comment typos.  Follow spelling
3072         conventions.
3073
3074 2005-01-23  Steven Bosscher  <stevenb@suse.de>
3075
3076         * gengtype.c (walk_type): Produce `not equal to' compares for loop
3077         tests, instead of `less than'.
3078
3079 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
3080
3081         * function.c (assign_parm_setup_block): When creating a new stack slot
3082         for a parameter, get its alignment from the parameter's DECL_ALIGN
3083         rather than the type's TYPE_ALIGN.  Make sure that the parameter
3084         is at least word aligned.
3085
3086 2005-01-22  Roger Sayle  <roger@eyesopen.com>
3087
3088         PR middle-end/19378
3089         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
3090
3091 2005-01-22  Richard Henderson  <rth@redhat.com>
3092
3093         PR target/19506
3094         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
3095         in both compare operands.
3096         (movdfcc_1_sse_max): Likewise.
3097         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
3098         (movdfcc_1_sse): Likewise.
3099         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
3100         scratch register as needed.
3101
3102 2005-01-22  Richard Henderson  <rth@redhat.com>
3103
3104         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
3105
3106         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
3107
3108 2005-01-22  Richard Henderson  <rth@redhat.com>
3109
3110         * genopinit.c (optabs): Use smin/smax for floating point too.
3111         * doc/md.texi: Update to match.  Clarify that floating point
3112         results are undefined for +0/-0 and NaN.
3113         * doc/rtl.texi: Likewise.
3114         * rtl.def (SMIN, SMAX): Likewise
3115         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
3116
3117         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
3118         leading 's' to the name.
3119         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
3120         smaxxf3, sminxf3): Likewise.
3121         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
3122         Likewise.
3123
3124 2005-01-22  Paul Brook  <paul@codesourcery.com>
3125
3126         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
3127
3128 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
3129
3130         * config/s390/s390.c (struct processor_costs): New fields
3131         dlgr, dlr, dr, dsgfr, dsgr.
3132         (z900_cost, z990_cost): Values for new fields.
3133         (s390_rtx_costs): New cases MEM und COMPARE in switch
3134         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
3135         DIV, MOD, UDIV, UMOD.
3136
3137 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
3138
3139         * config/s390/s390.md ("doloop_si64"): Reload input value directly
3140         into the register being decremented.
3141         ("doloop_si31", "doloop_di"): Likewise.
3142         ("*doloop_si_long"): Adapt pattern.
3143
3144 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
3145
3146         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
3147         access registers.
3148         (CLASS_MAX_NREGS): Likewise.
3149
3150 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
3151
3152         * doc/tree-ssa.texi (Statement Operands): Add example for new
3153         must-def macro. Note deprecation of old operands interface.
3154
3155 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
3156
3157         PR tree-optimization/19484
3158         * tree-cfg.c (remove_fallthru_edge): New function.
3159         (cleanup_control_flow): Remove fallthru edges from calls that are
3160         now known not to return.
3161
3162 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
3163
3164         Fix PR tree-optimization/19038
3165         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
3166         copies with loop variant ones.
3167
3168 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
3169
3170         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
3171         config/alpha/alpha-protos.h, config/alpha/alpha.h,
3172         config/alpha/alpha.md, config/alpha/predicates.md,
3173         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
3174         config/sparc/sol2.h: Update copyright.
3175
3176         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
3177         first label to see if it is a nonlocal label.
3178
3179 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
3180             Andrew Pinski  <pinskia@physics.uc.edu>
3181
3182         PR target/19491
3183         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
3184         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
3185
3186 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
3187
3188         * config/rs6000/rtems.h: Update copyright.
3189
3190 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
3191
3192         PR target/19548
3193         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
3194         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
3195         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
3196
3197 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3198
3199         PR c/18809
3200         * c-typeck.c (convert_arguments): Check for error_mark_node.
3201
3202 2005-01-21  Ian Lance Taylor  <ian@airs.com>
3203
3204         PR tree-optimization/13000
3205         * tree-inline.c: Include "tree-flow.h".
3206         (expand_call_inline): If warn_return_type, warn if non-void inline
3207         function falls through.
3208         * tree-cfg.c (execute_warn_function_return): Don't warn about
3209         control reaching end if TREE_NO_WARNING is set.  Set
3210         TREE_NO_WARNING.
3211         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
3212         has been lowered.
3213         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
3214         branch if we don't need one.
3215         * c-typeck.c: Include "tree-flow.h"
3216         (c_finish_bc_stmt): Don't add a goto if the current statement
3217         list doesn't fall through to the current point.
3218
3219 2005-01-21  Roger Sayle  <roger@eyesopen.com>
3220
3221         PR rtl-optimization/576
3222         * real.c (real_arithmetic): Change return type from void to bool
3223         to return an indication that the result may be inexact.
3224         * real.h (real_arithmeric): Update prototype.
3225         * fold-const.c (const_binop):  Don't constant fold floating
3226         point expressions when the user specifies -frounding-math and
3227         the result may depend upon the run-time rounding mode.
3228         (fold_convert_const_real_from_real): Clean-up.
3229         (fold_initializer): Ignore flag_rounding_math for initializers.
3230         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
3231         constant fold FP operations with flag_rounding_math if the
3232         result may depend upon the run-time rounding mode.
3233
3234 2005-01-21  Tom Tromey  <tromey@redhat.com>
3235
3236         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
3237
3238 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3239
3240         * tree-cfg.c: Fix comment typos.
3241
3242 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
3243
3244         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
3245         around the call to rest_of_handle_branch_target_load_optimize.
3246
3247 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3248
3249         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
3250         (sparc64-*-openbsd*): Likewise.
3251         (sparclite-*-elf*): Include tm-dwarf2.h.
3252         (sparc86x-*-elf*): Likewise.
3253         (sparc64-*-elf*): Likewise.
3254         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
3255         (DBX_DEBUGGING_INFO): Likewise.
3256         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
3257         (PREFERRED_DEBUGGING_TYPE): Likewise.
3258         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3259         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
3260         (PREFERRED_DEBUGGING_TYPE): Likewise.
3261         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
3262         (PREFERRED_DEBUGGING_TYPE): Likewise.
3263         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
3264
3265 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
3266
3267         PR target/18701
3268         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
3269
3270 2005-01-20  Paul Brook  <paul@codesourcery.com>
3271
3272         * doc/rtl.texi: Document value extension requirements for CONST_INT.
3273
3274 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3275
3276         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
3277         label is first in a sequence of labels.
3278
3279         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
3280
3281 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
3282             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3283
3284         * doc/sourcebuild.texi (Test Directives): New.
3285
3286 2005-01-20  Roger Sayle  <roger@eyesopen.com>
3287
3288         * real.c (real_floor): Don't leave the result uninitialized when
3289         mode is VOIDMode, but return the unrounded intermediate value.
3290         (real_ceil): Likewise.
3291
3292 2005-01-20  Paul Brook  <paul@codesourcery.com>
3293
3294         * config/arm/arm.md (insv): Use gen_int_mode.
3295
3296 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3297
3298         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
3299         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
3300         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
3301         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
3302         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
3303
3304 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
3305
3306         Fix PR debug/19124
3307         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
3308         fbreg, so we have to assume we can't.
3309         (loc_descriptor_from_tree_1): Ditto.
3310         (containing_function_has_frame_base): New function.
3311         (add_location_or_const_value_attribute): Use it.
3312         Also try to generate a frame_base from a single element location
3313         list.
3314
3315 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3316
3317         PR tree-optimization/15349
3318         * timevar.def (TV_TREE_MERGE_PHI): New.
3319         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
3320         PHI_WANTED.
3321         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
3322         calls to tree_forwarder_block_p.
3323         (remove_forwarder_block_with_phi, merge_phi_nodes,
3324         gate_merge_phi, pass_merge_phi): New.
3325         * tree-optimize.c (init_tree_optimization_passes): Add
3326         pass_merge_phi.
3327         * tree-pass.h: Add an extern for pass_merge_phi;
3328
3329 2005-01-20  Richard Henderson  <rth@redhat.com>
3330
3331         PR target/19418
3332         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
3333         (_mm_castps_pd, _mm_castps_si128): New.
3334         (_mm_castsi128_ps, _mm_castsi128_pd): New.
3335
3336 2005-01-20  Richard Henderson  <rth@redhat.com>
3337
3338         PR target/19530
3339         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
3340         __builtin_ia32_vec_init_v2si.
3341         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
3342         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
3343         (ix86_init_mmx_sse_builtins): Create it.
3344         (ix86_expand_builtin): Expand it.
3345         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
3346         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
3347         (vec_extractv2si_0, vec_extractv2si_1): New.
3348
3349 2005-01-20  Richard Henderson  <rth@redhat.com>
3350
3351         PR target/16533
3352         * config/i386/i386.c (ix86_expand_push): New.
3353         * config/i386/mmx.md (push<MMXMODE>1): New.
3354         * config/i386/sse.md (push<SSEMODE>1): New.
3355         * config/i386/i386-protos.h: Update.
3356
3357 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3358
3359         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
3360         copyright.
3361
3362 2005-01-20  Richard Henderson  <rth@redhat.com>
3363
3364         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
3365         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
3366
3367 2005-01-19  Richard Henderson  <rth@redhat.com>
3368
3369         PR target/19350
3370         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
3371         to V4SFmode in SSE1 fallback load path.
3372
3373 2005-01-19  Richard Henderson  <rth@redhat.com>
3374
3375         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
3376         in QImode expansion to ix86_expand_vector_set.
3377         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
3378
3379 2005-01-19  Richard Henderson  <rth@redhat.com>
3380
3381         PR target/19511
3382         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
3383         subclass of the input class.
3384         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
3385         Always true for cross-SSE1 classes.  Rationalize conditionals.
3386         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
3387         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
3388         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
3389         (movdi_2): Add MMX/SSE zeros.
3390         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
3391         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
3392         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
3393         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
3394         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
3395         (zero_extendsidi2_rex64_1): Remove.
3396         (MOV0 peephole): Check GENERAL_REG_P.
3397
3398 2005-01-19  Richard Henderson  <rth@redhat.com>
3399
3400         PR target/19427
3401         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
3402         shufps elements.
3403         (ix86_expand_vector_extract): Likewise.
3404
3405 2005-01-19  Richard Henderson  <rth@redhat.com>
3406
3407         PR middle-end/19304
3408         * expr.c (emit_move_change_mode): New argument force; use
3409         simplify_gen_subreg if true.
3410         (emit_move_via_alt_mode): Merge into ...
3411         (emit_move_via_integer): ... here.
3412         (emit_move_ccmode): Use emit_move_change_mode directly.
3413
3414 2005-01-19  Richard Henderson  <rth@redhat.com>
3415
3416         PR target/19518
3417         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
3418         (alpha_preferred_reload_class): Handle CONST_VECTOR.
3419         (alpha_emit_set_const_1): Add no_output parameter; don't emit
3420         rtl if true.
3421         (alpha_emit_set_const): Likewise.  Make static.
3422         (alpha_emit_set_long_const): Make static.
3423         (alpha_extract_integer): Split out from alpha_expand_mov.
3424         (alpha_split_const_mov): Likewise.
3425         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
3426         (alpha_legitimate_constant_p): New.
3427         * config/alpha/alpha-protos.h: Update.
3428         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
3429         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
3430         * config/alpha/alpha.md (movsi): Add n alternative.
3431         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
3432         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
3433         (splitters for all of the above): Use alpha_split_const_mov.
3434         * config/alpha/predicates.md (non_add_const_operand): New.
3435         (non_zero_const_operand): New.
3436         (input_operand): Use alpha_legitimate_constant_p after reload.
3437
3438 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
3439
3440         PR tree-optimization/19038
3441         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
3442         (add_candidate): Add ivs with increment in latch only if
3443         allow_ip_end_pos_p is true.
3444         (determine_iv_cost): Use empty_block_p.
3445
3446 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
3447
3448         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
3449         (compute_dominance_frontiers): Ditto.
3450
3451 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
3452
3453         PR target/19529
3454         * config/sh/t-rtems: New.
3455         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
3456
3457 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
3458
3459         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
3460         the offset of the selected field.
3461
3462 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
3463
3464         * tree-cfg.c (remove_forwarder_block): Fix the check to
3465         prevent a nonlocal label from appearing in the middle of a
3466         basic block.
3467
3468 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
3469
3470         PR rtl-optimization/19462
3471         * reorg.c (find_end_label): Create return insn only if
3472         current_function_epilogue_delay_list is empty.
3473
3474 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
3475
3476         * doc/passes.texi: Remove paragraph mentioning new-ra.
3477
3478 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
3479
3480         PR rtl-optimization/15139
3481         * combine.c: Include params.h.
3482         (count_rtxs): New function.
3483         (record_value_for_reg): If replace_rtx would replace at least
3484         2 occurrences of REG in VALUE and TEM is really large, replace REG with
3485         (clobber (const_int 0)) instead of TEM.
3486         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
3487         * params.h (MAX_LAST_VALUE_RTL): New.
3488         * Makefile.in (combine.o): Depend on $(PARAMS_H).
3489         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
3490