OSDN Git Service

* config/elfos.h: Revert my patch from 2005-02-25 since it broke
[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
3491         PR c/17297
3492         * c-typeck.c (digest_init): Only call build_vector if all constructor
3493         elements are *_CST nodes.
3494         * gimplify.c (gimplify_init_constructor): Likewise.
3495
3496         PR middle-end/19164
3497         * c-typeck.c (digest_init): Only call build_vector if inside_init
3498         is a CONSTRUCTOR.
3499
3500 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3501
3502         * toplev.c (init_asm_output): Remove dead #ifdef.
3503
3504 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3505
3506         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
3507
3508 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3509
3510         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
3511         accessing DECL_FUNCTION_CODE.
3512         * dojump.c (do_jump): Likewise.
3513         * gimplify.c (gimplify_call_expr): Likewise.
3514         * predict.c (expr_expected_value): Likewise.
3515         (strip_builtin_expect): Likewise.
3516         * tree-inline.c (estimate_num_insns_1): Likewise.
3517         * tree-ssa-loop-im.c (stmt_cost): Likewise
3518         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
3519         (tree_expr_nonnegative_p): Likewise.
3520
3521 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3522
3523         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
3524         variant of the load_pcrel_sym pattern.
3525         * config/sparc/sparc.md (P macro): Move to the top.
3526         (load_pcrel_sym): Macroize using P.
3527         (save_register_window): Likewise.
3528
3529 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
3530
3531         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
3532         ("sordered"): Same.
3533
3534 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
3535
3536         PR C/19472
3537         * c-typeck.c (build_asm_expr): Strip nops off
3538         input memory operands.
3539
3540 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
3541
3542         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
3543         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
3544         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
3545         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
3546
3547 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
3548
3549         PR target/19379
3550         * config/i386/i386.c (override_options): If the 80387 is disabled,
3551         then do not return FP values using FP registers.
3552
3553 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
3554
3555         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
3556         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
3557         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
3558         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
3559         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
3560         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
3561         output.h, postreload-gcse.c, postreload.c, recog.c,
3562         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
3563         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
3564         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
3565         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
3566         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
3567         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
3568         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
3569         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
3570
3571         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
3572         config/alpha/alpha.c, config/arm/vfp.md,
3573         config/i386/emmintrin.h, config/i386/i386-modes.def,
3574         config/i386/i386-protos.h, config/i386/i386.h,
3575         config/i386/pmmintrin.h, config/i386/ppro.md,
3576         config/i386/predicates.md, config/i386/xmmintrin.h,
3577         config/i860/i860.c, config/ia64/ia64-modes.def,
3578         config/ia64/ia64-protos.h, config/ia64/ia64.h,
3579         config/ia64/ia64.md, config/ia64/itanium1.md,
3580         config/ia64/itanium2.md, config/ia64/predicates.md,
3581         config/iq2000/iq2000.h, config/mips/linux64.h,
3582         config/rs6000/aix41.h, config/rs6000/aix43.h,
3583         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
3584         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3585         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
3586         config/sparc/linux64.h, config/sparc/litecoff.h,
3587         config/sparc/sp64-elf.h, config/sparc/sparc.c,
3588         config/sparc/sparc.h, config/sparc/sparc.md,
3589         config/sparc/sysv4-only.h: Update copyright.
3590
3591 2005-01-18  Richard Henderson  <rth@redhat.com>
3592
3593         PR target/19496
3594         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
3595
3596 2005-01-18  Marc Espie  <espie@openbsd.org>
3597         * config/i386/openbsdelf.h: Typo.
3598
3599 2005-01-18  Richard Henderson  <rth@redhat.com>
3600
3601         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
3602         special case for sse.
3603         * config/i386/predicates.md (sse_comparison_operator): Likewise.
3604
3605 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
3606
3607         * tree-inline.c (estimate_num_insns_1): Added cases for
3608         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
3609
3610 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3611
3612         PR rtl-optimization/19296
3613         * combine.c (simplify_comparison): Rewrite the condition under
3614         which a non-paradoxical SUBREG of a PLUS can be lifted when
3615         compared against a constant.
3616
3617 2005-01-18  Andi Kleen <ak@muc.de>
3618
3619         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
3620         * c.opt (-Wpointer-sign): Add.
3621         * doc/invoke.texi: (-Wpointer-sign): Add.
3622
3623 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
3624
3625         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
3626         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
3627         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
3628         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
3629         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
3630         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
3631         for TARGET_MIX_SSE_I387.
3632         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
3633         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
3634         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
3635         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
3636         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
3637         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
3638         TARGET_MIX_SSE_I387.
3639         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
3640         from expander.
3641
3642 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
3643
3644         PR target/19424
3645         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
3646         Add movaps alternative for xmm reg->reg move.
3647
3648 2005-01-17  Jeff Law  <law@redhat.com>
3649
3650         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
3651         at the end of the main DOM loop rather than just before DOM exits.
3652
3653 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
3654
3655         PR tree-optimization/19121
3656         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
3657         adding aliases to a name tag, also add them to the pointer's
3658         type tag.
3659         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
3660         sensitive alias info at all.  Only check that the two pointers
3661         have compatible pointed-to sets.
3662         * tree-ssa.c (verify_name_tags): Verify that the alias set of
3663         a pointer's type tag is a superset of the alias set of the
3664         pointer's name tag.
3665
3666 2005-01-17  James E Wilson  <wilson@specifixinc.com>
3667
3668         PR target/19357
3669         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
3670         comment to document why.
3671
3672 2005-01-17  Richard Henderson  <rth@redhat.com>
3673
3674         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
3675         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
3676         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
3677         sse2_vmsminv2df3_finite): New.
3678         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
3679         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
3680         Force op1 into register.
3681
3682 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
3683
3684         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
3685         bubblestrap from always rebuilding build directory.
3686
3687 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
3688
3689         * config/s390/s390.md ("*clc"): Remove incorrect '='.
3690         ("*cmpmem_short"): Likewise.
3691
3692 2005-01-17  Steven Bosscher  <stevenb@suse.de>
3693
3694         * basic-block.h: Document BB_* flags.
3695         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
3696         use an sbitmap instead.
3697         * sched-rgn.c (compute_trg_info): Likewise.
3698
3699 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
3700
3701         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
3702         redundant target_cpu_default and extra_parts lines.  Use the default
3703         "from-abi" ISA.
3704         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
3705         (SUBTARGET_EXTRA_SPECS): Delete.
3706         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
3707         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
3708         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
3709         and "n32" for -mabi=n32.
3710
3711 2005-01-17  Ian Lance Taylor  <ian@airs.com>
3712
3713         PR c/5675
3714         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
3715         fold constant variables into initial values.
3716
3717 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
3718
3719         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
3720
3721         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
3722         through the statements backward.
3723
3724 2005-01-17  Ian Lance Taylor  <ian@airs.com>
3725
3726         PR middle-end/13127:
3727         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
3728         a variable set to the return value of the inlined function.
3729
3730 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
3731
3732         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
3733         when modes are tieable.
3734
3735 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
3736
3737         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
3738         of pthread_create to find out if threads are enabled.
3739         * gthr-posix95.h (__gthread_active_p): Likewise.
3740
3741 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
3742
3743         * common.opt (-fnew-ra): Remove.
3744         * ra*.*: Remove.
3745         * toplev.h (flag_new_regalloc): Remove.
3746         * Makefile.in (ra*.*): Don't mention.
3747         * passes.c (rest_of_handle_new_regalloc): Remove.
3748         (rest_of_handle_combine, rest_of_compilation): Always consider
3749         flag_new_regalloc as false.
3750         * doc/invoke.texi: Don't document -fnew-ra.
3751
3752 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
3753
3754         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
3755         last parameter to reg_scan.
3756         * loop.c (loop_optimize): Likewise.
3757         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
3758         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
3759         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3760         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3761         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
3762         * regclass.c (reg_scan): Likewise, for the declaration.
3763         * rtl.h (reg_scan): Likewise, for the prototype.
3764
3765 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
3766
3767         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
3768         mark_dfs_back_edges.
3769
3770 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
3771
3772         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
3773         (compute_avail): Uses don't go in tmp_gen.
3774
3775 2005-01-16  Steven Bosscher  <stevenb@suse.de>
3776
3777         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
3778         loop to look for a free slot in a page entry.
3779
3780 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3781
3782         PR target/16304
3783         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
3784         * toplev.c (compile_file): Call process_pending_assemble_output_defs
3785         just before targetm.asm_out.file_end.
3786         * tree.h (process_pending_assemble_output_defs): Declare.
3787         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
3788         New functions.
3789         (assemble_alias): Defer generation of assembly code for defines when
3790         TARGET_DEFERRED_OUTPUT_DEFS is true.
3791         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
3792         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
3793         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
3794
3795 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3796
3797         PR target/19336
3798         * pa.c (pa_scalar_mode_supported_p): New function.
3799         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3800         * pa.h (MIN_UNITS_PER_WORD): Add comment.
3801
3802         * pa-protos.h (prefetch_operand): Delete.
3803         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
3804         * pa.c (prefetch_operand): Delete.
3805         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
3806         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
3807         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
3808         and prefetch_nocc_operand.
3809         * pa.md (prefetch): Rework to avoid reload problems handling short
3810         displacements when a cache control completer needs to be provided.
3811         (prefetch_32, prefetch_64): Delete.
3812         (prefetch_cc, prefetch_nocc): New patterns.
3813
3814 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
3815
3816         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
3817
3818 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3819
3820         PR ada/19388
3821         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
3822         exceeds maximum alignment for global common data.
3823         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
3824         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
3825
3826 2004-01-15  Roger Sayle  <roger@eyesopen.com>
3827
3828         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
3829
3830 2004-01-15  Roger Sayle  <roger@eyesopen.com>
3831
3832         * harg-reg-set.h (reg_class_names): Prototype global array.
3833         * regclass.c (reg_class_names): Declare here and initialize to
3834         REG_CLASS_NAMES.
3835         (dump_regclass): Remove local declaration of reg_class_names.
3836         (regclass): Likewise.
3837         * cfg.c (dump_flow_info): Likewise.
3838         * ra-debug.c (reg_class_names): Likewise.
3839         * regrename.c (reg_class_names): Likewise.
3840         * reload.c (reg_class_names): Likewise.
3841         * reload1.c (spill_failure): Likewise.
3842         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
3843
3844 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
3845
3846         * config/s390/s390.md ("reload_outti"): Remove predicate for
3847         output operand.  Abort if operand is not a MEM.
3848         ("reload_outdi", "reload_outdf"): Likewise.
3849
3850 2005-01-15  Marc Espie  <espie@openbsd.org>
3851
3852         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
3853         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
3854         * config/openbsd.h:  Fix C++ includes for native configurations.
3855         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
3856         Add trampoline support.
3857         * config/i386/openbsdelf.h: New.
3858
3859 2005-01-15  Marc Espie  <espie@openbsd.org>
3860
3861         * collect2.c (main): Explicitly parse -dynamic-linker option.
3862
3863 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
3864
3865         PR tree-optimization/19060
3866         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
3867         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
3868         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
3869         and handle extract_range_from_cond returning false.
3870         * fold-const.c (fold): Optimize comparisons with min/max even for
3871         width > HOST_BITS_PER_WIDE_INT.
3872
3873 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
3874
3875         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
3876         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
3877         Remove little endian multilib variants.
3878         Add mips32 multilib variant.
3879
3880 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
3881
3882         * explow.c (copy_all_reg, stabilize): Remove.
3883         * expr.h: Remove the corresponding prototypes.
3884
3885         * rtlanal.c (regs_set_between_p): Remove.
3886         * rtl.h: Remove the corresponding prototype.
3887
3888 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
3889
3890         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
3891         to rs6000_nonimmediate_operand.
3892         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
3893         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
3894         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
3895         rs6000_nonimmediate_operand.
3896         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
3897         rs6000_nonimmediate_operand.
3898
3899 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
3900
3901         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
3902
3903 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
3904
3905         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
3906         on e500v2.
3907         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
3908         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
3909
3910         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
3911         (rs6k_nonimmediate_operand): New.
3912         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
3913         correctly.
3914         (legitimate_lo_sum_address_p): Same.
3915         (rs6000_legitimize_address): Same.
3916         (rs6000_legitimize_reload_address): Same.
3917         (rs6000_legitimate_address): Same.
3918         (spe_build_register_parallel): Pass DF and DC modes in a DI
3919         register.
3920
3921         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
3922         to rs6k_nonimmediate_operand.
3923
3924         * config/rs6000/spe.md ("*frob_df_di"): New.
3925         ("*frob_di_df"): New.
3926         ("*frob_di_df_2"): New.
3927         ("*mov_sidf_e500_subreg0"): New.
3928         ("*mov_sidf_e500_subreg4"): New.
3929         ("*movdf_e500_double"): Change predicate to
3930         rs6k_nonimmediate_operand.
3931
3932 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
3933
3934         * postreload.c (move2add_note_store): Only call
3935         trunc_int_for_mode on scalar integers.
3936
3937 2005-01-14  Steven Bosscher  <stevenb@suse.de>
3938
3939         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
3940         replace BB_VISITED uses.
3941         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
3942         (propagate_necessity): Check the bitmap instead of BB_VISITED.
3943         (tree_dce_done): Free visited_control_parents.
3944         (perform_tree_ssa_dce): Allocate and clear it.
3945         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
3946         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
3947         instead of BB_VISITED.
3948
3949 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
3950
3951         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
3952         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
3953         Remove unused prototypes.
3954
3955 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
3956
3957         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
3958         64-bit register usage.
3959         (spe_func_has_64bit_regs_p): Add FIXME note.
3960
3961 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
3962
3963         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
3964         flag_finite_math_only with flag_unsafe_math_optimizations.
3965
3966 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
3967
3968         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
3969         end-of-stack check.
3970         (__tpf_eh_return): Copy TPF private stack area from the module
3971         boundary stack frame.  Add check for when module addresses are
3972         equal, but no stub address is found.
3973
3974 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
3975
3976         PR target/7525
3977         * arm.h (struct machine_function): Add call_via field.
3978         (thumb_call_via_label): Declare.
3979         * arm.c (thumb_call_via_label): New variable.
3980         (thumb_call_reg_needed): New variable.
3981         (arm_output_function_epilogue): For Thumb code, output any per-function
3982         call-indirect trampolines.
3983         (thumb_call_via_reg): New function.
3984         (arm_file_end): New function.
3985         (TARGET_ASM_FILE_END): Call arm_file_end.
3986         (aof_file_end): Likewise.
3987         * arm-protos.h (thumb_call_via_reg): Declare.
3988         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
3989         thumb_call_via_reg in normal case.
3990
3991 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
3992
3993         PR middle-end/19084
3994         PR rtl-optimization/19348
3995         * recog.c (peephole2_optimize): Do global life update if some peephole
3996         decides it doesn't need at least one of its inputs and that change
3997         influences liveness at the start of the basic block.
3998
3999         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
4000         arguments instead of 1.
4001
4002 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
4003
4004         PR middle-end/18820
4005         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
4006         zero for nested functions needing a static chain or functions
4007         with a non-constant address.
4008
4009 2005-01-13  Roger Sayle  <roger@eyesopen.com>
4010
4011         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
4012         (and (sign_extend X) C) into (zero_extend (and X C)).
4013
4014 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
4015
4016         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
4017
4018 2005-01-13  Richard Henderson  <rth@redhat.com>
4019
4020         PR target/19009
4021         PR target/19250
4022         PR target/19252
4023         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
4024         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
4025         not just TARGET_SSE.
4026         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
4027         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
4028         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
4029         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
4030         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
4031         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
4032         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
4033         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
4034         (movdicc_c_rex64): Rename with '*'.
4035         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
4036         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
4037         (movsfcc_1_387): Rename from movsfcc_1.
4038         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
4039         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
4040         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
4041         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
4042         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
4043         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
4044         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
4045         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
4046         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4047         sse_movdfcc_const0_4): Remove.
4048         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
4049         recognize min/max early.  Update for changed sse cmove patterns.
4050         (ix86_split_sse_movcc): New.
4051         * config/i386/i386-protos.h: Update.
4052
4053 2005-01-13  Steven Bosscher  <stevenb@suse.de>
4054
4055         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
4056         (fix_stmt_v_may_defs): Likewise.
4057
4058 2005-01-13  Richard Henderson  <rth@redhat.com>
4059
4060         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
4061         for converting the mask.
4062
4063 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
4064
4065         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
4066         definition to 600.
4067
4068 2005-01-13  Richard Henderson  <rth@redhat.com>
4069
4070         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
4071         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
4072         IX86_BUILTIN_MOVDQ2Q): Remove.
4073         (IX86_BUILTIN_VEC_EXT_V4SI): New.
4074         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
4075         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
4076         shuffling.
4077         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
4078         (sse2_pextrw): Fix immediate constraint.
4079         (sse2_loadq, sse2_loadq_rex64): Remove.
4080         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
4081         Use __builtin_ia32_vec_ext_<size>.
4082         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
4083
4084 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
4085
4086         * function.c (assign_parm_setup_block): Look inside original
4087         entry_parm when inspecting PARALLEL.
4088
4089 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
4090             Joel Sherrill  <joel@oarcorp.com>
4091
4092         PR target/19399
4093         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
4094         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
4095         rtems_gxx_recursive_mutex_init.
4096         (__gthread_recursive_mutex_lock): New function.
4097         (__gthread_recursive_mutex_trylock): Likewise.
4098         (__gthread_recursive_mutex_unlock): Likewise.
4099
4100 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
4101
4102         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
4103
4104 2005-01-13  Jan Beulich  <jbeulich@novell.com>
4105
4106         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
4107         (ashrti3_internal): Indicate output is early clobber. Generate result
4108         into output rather than first input. Use move for low word of output
4109         if shift count is exactly 64.
4110         (lshrti3_internal): Likewise.
4111
4112 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
4113
4114         PR target/18329
4115         PR target/18330
4116         * reload1.c (delete_output_reload): Don't delete an output reload
4117         if the pseudo lives longer than a single basic block.  Adjust and
4118         improve wording of comment.
4119
4120 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
4121
4122         PR target/19334
4123         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
4124         of TYPE_SIZE where we mean the number of bytes.
4125
4126 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
4127
4128         * function.c (assign_parm_setup_block): Relax condition on
4129         multi-register optimization.
4130
4131 2005-01-12  Nick Clifton  <nickc@redhat.com>
4132
4133         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
4134         an "in_delay_slot" attribute of "no" to prevent them being used in
4135         delay slots.  This is forbidden because they might generate
4136         exceptions.
4137
4138 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
4139
4140         PR target/19389
4141         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
4142         with r->Y and Y->r.
4143
4144 2005-01-12  Nick Clifton  <nickc@redhat.com>
4145
4146         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
4147         passed on to GAS) but do not define, as GAS no longer supports or
4148         needs the -m2000 option.
4149
4150 2005-01-11  Roger Sayle  <roger@eyesopen.com>
4151
4152         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
4153         type as args of unprototyped builtins aren't automatically promoted.
4154         (fold_builtin_abs): Likewise.
4155
4156 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4157
4158         * Makefile.in: Set a `build-warn' variable.
4159
4160 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
4161
4162         PR tree-optimization/17949
4163         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
4164         (find_interesting_uses_address): Use it.
4165
4166 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
4167
4168         * regrename.c (kill_value): Handle subreg's that won't simplify.
4169
4170 2005-01-11  Richard Henderson  <rth@redhat.com>
4171
4172         PR target/13366
4173         * config/i386/i386.h (enum ix86_builtins): Move ...
4174         * config/i386/i386.c: ... here.
4175         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
4176         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
4177         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
4178         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
4179         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
4180         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
4181         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
4182         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
4183         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
4184         IX86_BUILTIN_LOADDDUP): Remove.
4185         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
4186         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
4187         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
4188         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
4189         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
4190         (ix86_init_builtins): Make static.
4191         (ix86_init_mmx_sse_builtins): Update for changed builtins.
4192         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
4193         if all the modes match.  Otherwise, fake it.
4194         (get_element_number, ix86_expand_vec_init_builtin,
4195         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
4196         (ix86_expand_builtin): Make static.  Update for changed builtins.
4197         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
4198         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
4199         (ix86_expand_vector_init_duplicate): New.
4200         (ix86_expand_vector_init_low_nonzero): New.
4201         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
4202         Split out from ix86_expand_vector_init; handle integer modes.
4203         (ix86_expand_vector_init): Use them.
4204         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
4205         * config/i386/i386-protos.h: Update.
4206         * config/i386/predicates.md (reg_or_0_operand): New.
4207         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
4208         (movv2sf_internal): Likewise.  And a splitter to match them all.
4209         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
4210         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
4211         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
4212         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
4213         (mmx_pinsrw): Fix operand ordering.
4214         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
4215         rather than sse_loadss expander.
4216         (movv2df splitter): Similarly.
4217         (sse_loadss, sse_loadlss): Remove.
4218         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
4219         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
4220         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
4221         (sse3_movddup): Rename with '*'.
4222         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
4223         (sse2_loadsd): Remove.
4224         (vec_dupv2df_sse3): Rename from sse3_loadddup.
4225         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
4226         (sse2_pinsrw): Fix argument ordering.
4227         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
4228         (sse2_stored): Remove 'r' destination.
4229         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
4230         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
4231         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
4232         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
4233         vec_extractv16qi, vec_initv16qi): New.
4234
4235         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
4236         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
4237         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
4238         constructor form.
4239         (_mm_load_pd, _mm_store_pd): Use plain dereference.
4240         (_mm_load_si128, _mm_store_si128): Likewise.
4241         (_mm_load1_pd): Use _mm_set1_pd.
4242         (_mm_load_sd): Use _mm_set_sd.
4243         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
4244         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
4245         (_mm_set_epi64): Use _mm_set_epi64x.
4246         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
4247         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
4248         _mm_setr_epi8): Use _mm_set_foo form.
4249         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
4250         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
4251         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
4252         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
4253         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
4254         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
4255         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
4256         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
4257         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
4258         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
4259         (_mm_movedup_pd): Use _mm_shuffle_pd.
4260         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
4261         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
4262         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
4263         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
4264         Use _mm_setzero_ps.
4265         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
4266         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
4267         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
4268         (_mm_store_ps): Use raw dereference.
4269         (_mm_store1_ps): Use _mm_storeu_ps.
4270         (_mm_storer_ps): Use _mm_store_ps.
4271         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
4272         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
4273
4274 2005-01-11  Stan Shebs  <shebs@apple.com>
4275
4276         * config/rs6000/rs6000.c (machopic_output_stub): Issue
4277         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
4278
4279 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
4280
4281         PR target/18761
4282         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4283         Skip all DECLs except for FIELD_DECLs.
4284
4285 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
4286
4287         * config/s390/s390.c (override_options): Return error if
4288         -mbackchain, -mpacked-stack and -mhard-float are used together.
4289         (s390_va_start): Remove the backchain && packed-stack special case.
4290         (s390_gimplify_va_arg): Likewise.
4291         * doc/invoke.texi: Remove the ABI incompatibility note.
4292
4293 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
4294
4295         * config/s390/s390.c (struct s390_frame_layout): Remove
4296         save_backchain_p.
4297         (s390_frame_info, s390_emit_prologue): Replace occurrences of
4298         save_backchain_p with TARGET_BACKCHAIN.
4299
4300 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
4301
4302         PR target/18916
4303         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
4304         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
4305         * function.c (locate_and_pad_parm): Set new field.
4306         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
4307         Tweak where_pad test to include "none".  Always set mem align for
4308         stack_parm.
4309         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
4310         not sufficient for type.
4311         (assign_parm_setup_block): If stack_parm is zero on entry, always
4312         make a new stack local.  Block move old stack parm if necessary
4313         to new aligned stack local.
4314         (assign_parm_setup_stack): Use a block move to handle
4315         potentially misaligned entry_parm.
4316         (assign_parms_unsplit_complex): Specify required alignment when
4317         creating stack local.
4318         * calls.c (compute_argument_addresses): Override alignment of stack
4319         arg calculated from its type with the alignment given by
4320         FUNCTION_ARG_BOUNDARY.
4321         (store_one_arg): Likewise.
4322
4323 2005-01-11  Jan Beulich  <jbeulich@novell.com>
4324
4325         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
4326         Change respective itanium_class attribute to ialu.
4327         (shladdp4_internal): New.
4328         * config/ia64/predicates.md (shladd_log2_operand): New.
4329
4330 2005-01-11  Richard Henderson  <rth@redhat.com>
4331
4332         * expr.c (store_constructor): Use rtvec_alloc instead of
4333         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
4334
4335 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
4336
4337         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
4338
4339 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
4340
4341         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
4342         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
4343         (TARGET_RWRELOC): Define.
4344         (ia64_rwreloc_section_type_flags): Delete.
4345         (ia64_section_type_flags): New function.
4346         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
4347         (TARGET_RWRELOC): Define.
4348
4349 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
4350
4351         PR target/18987
4352         * config/ia64/ia64.c (process_set): For alloc insn, only call
4353         process_epilogue is !frame_pointer_needed.
4354
4355 2005-01-10  Roger Sayle  <roger@eyesopen.com>
4356
4357         PR c++/19355
4358         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
4359         unary operator and can't be treated as a binary/comparison operator.
4360
4361 2005-01-10  Richard Henderson  <rth@redhat.com>
4362
4363         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
4364         (ix86_return_in_memory): Likewise.
4365         (function_arg_advance):  Likewise.  Mirror structure in function_arg
4366         for choosing register to advance.
4367
4368 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
4369
4370         * tree-vectorizer.c, tree.def: Fix comment typos.
4371
4372 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
4373
4374         * config/s390/s390.c (struct processor_costs): 4 new fields:
4375         ddbr, ddr, debr, der.
4376         (s390_rtx_costs): More precise handling of divide instructions.
4377
4378 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
4379
4380         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
4381
4382 2005-01-10  Jan Beulich  <jbeulich@novell.com>
4383
4384         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
4385         names resulting from -ffunction-sections/-fdata-sections and linkonce
4386         ones.
4387         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
4388         based on the section name. Rearrange the section name comparison logic
4389         slightly so that each section name is compared against at most once.
4390
4391 2005-01-10  Ben Elliston  <bje@au.ibm.com>
4392
4393         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
4394         targets for which -fPIC reduces limitations on the GOT size.
4395
4396 2005-01-09  Falk Hueffner  <falk@debian.org>
4397
4398         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
4399         X/C1 cmpop C2.
4400
4401 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
4402
4403         PR target/18720
4404         * collect2.c (main): Set aixrtl_flag for -brtl option.
4405         (resolve_lib_name): Search for .so file extension before .a
4406         if aixrtl_flag set.
4407
4408 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
4409
4410         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
4411         (vect_analyze_data_refs_alignment): Add dump prints.
4412
4413 2005-01-09  Ira Rosen  <irar@il.ibm.com>
4414
4415         * tree-vectorizer.c (vect_analyze_offset_expr): Use
4416         expr_invariant_in_loop_p.
4417         Initialize outputs first thing in the function.
4418         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
4419         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
4420         (vect_analyze_pointer_ref_access): Check that the initial condition of
4421         the access function is loop invariant.
4422
4423 2005-01-09  Richard Henderson  <rth@redhat.com>
4424
4425         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
4426         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
4427         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
4428         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
4429         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
4430         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
4431         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
4432         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
4433         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
4434         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
4435         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
4436         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
4437         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
4438         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
4439         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
4440         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
4441         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
4442         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
4443         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
4444         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
4445         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
4446         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
4447         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
4448         mmx_ prefix.
4449         (mmx_clrdi, pavgusb): Remove.
4450         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
4451         with leading sse_ prefix.
4452         * config/i386/sse.md: Receive them.
4453         * config/i386/mmx.md: New file.
4454         (MMXMODE12, MMXMODE24, mmxvecsize): New.
4455         (subrv2sf3): Turn into expander for normal subtraction.
4456         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
4457         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
4458         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
4459         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
4460         commutative; use ix86_binary_operator_ok.
4461         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
4462         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
4463         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
4464         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
4465         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
4466         Macroize from existing patterns; use ix86_binary_operator_ok.
4467         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
4468         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
4469         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
4470         with vec_select+vec_concat.
4471         (mmx_pshufw, mmx_pshufw_1): Likewise.
4472         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
4473         (mmx_uavgv4hi3): Model correctly.
4474         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
4475         _mm_xor_si64): Remove casts.
4476
4477 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
4478
4479         PR tree-optimization/19224
4480         * tree-scalar-evolution.c (get_instantiated_value,
4481         set_instantiated_value): New functions.
4482         (instantiate_parameters_1): Cache the results.
4483         (instantiate_parameters, resolve_mixers): Initialize and free
4484         the cache.
4485
4486 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
4487
4488         * config/i386/i386.md (addhi_4): Correct reference in comment.
4489         (addqi_4): Same.
4490
4491 2005-01-08  Richard Henderson  <rth@redhat.com>
4492
4493         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
4494         (_mm_cvtsi128_si64x): Likewise.
4495         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
4496         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
4497         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
4498         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
4499         * config/i386/i386-protos.h: Update.
4500         * config/i386/i386.c (print_operand): Add 'H'.
4501         (ix86_fixup_binary_operands): Split out from ...
4502         (ix86_expand_binary_operator): ... here.
4503         (ix86_fixup_binary_operands_no_copy): New.
4504         (ix86_expand_fp_absneg_operator): Handle vector mode results.
4505         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
4506         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
4507         (safe_vector_operand): Use CONST0_RTX.
4508         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
4509         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
4510         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
4511         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
4512         special cases.
4513         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
4514         (IX86_BUILTIN_CMPNGESS): New.
4515         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
4516         (attr type): Add sselog1.
4517         (attr unit, attr memory): Handle it.
4518         (movti, movti_internal, movti_rex64): Move near other integer moves.
4519         (movtf, movtf_internal): Move near other fp moves.
4520         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
4521         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
4522         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
4523         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
4524         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
4525         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
4526         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
4527         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
4528         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
4529         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
4530         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
4531         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
4532         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
4533         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
4534         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
4535         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
4536         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
4537         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
4538         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
4539         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
4540         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
4541         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
4542         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
4543         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
4544         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
4545         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
4546         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4547         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
4548         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
4549         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
4550         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
4551         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
4552         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
4553         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
4554         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
4555         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
4556         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
4557         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
4558         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
4559         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
4560         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
4561         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
4562         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
4563         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
4564         same time.
4565         (SSEPUSH, push<SSEPUSH>): Remove.
4566         (MMXPUSH, push<MMXPUSH>): Remove.
4567         (sse_movaps, sse_movaps_1, sse_movups): Remove.
4568         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
4569         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
4570         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
4571         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
4572         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
4573         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
4574         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
4575         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
4576         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
4577         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
4578         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
4579         (ppro_sse_log_V4SF): Handle sselog1.
4580         * config/i386/predicates.md (const_0_to_1_operand): New.
4581         (const_0_to_255_mul_8_operand): New.
4582         (const_1_to_31_operand): Rename from const_int_1_31_operand.
4583         (const_2_to_3_operand, const_4_to_7_operand): New.
4584         * config/i386/sse.md: New file.
4585         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
4586         (sse_movups): Rename from sse_movups_1.
4587         (sse_loadlss): Rename from sse_loadss_1.
4588         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
4589         from the name.
4590         (negv4sf2): Use ix86_expand_fp_absneg_operator.
4591         (absv4sf2, negv2df, absv2df): New.
4592         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
4593         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
4594         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
4595         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
4596         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
4597         (sse3_addsubv4sf3): Model correctly.
4598         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
4599         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
4600         (sse_movhlps): Model with vec_select+vec_concat.
4601         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
4602         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
4603         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
4604         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
4605         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
4606         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
4607         sse2_pshufhw_1): Likewise.
4608         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
4609         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
4610         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
4611         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
4612         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
4613         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
4614         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
4615         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
4616         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
4617         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
4618         sminv8hi3): Mark commutative
4619         operands.  Use ix86_binary_operator_ok.
4620         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
4621         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
4622         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
4623         sse2_punpcklqdq): Allow operand2 in memory.
4624         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
4625         sse2_movsd): Add memory alternatives.
4626         (sse_storelps): Turn expander into an insn; split after reload.
4627         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
4628         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
4629
4630 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4631
4632         * configure.ac (DWARF-2 debug_line): Use objdump.
4633         * configure: Regenerate.
4634
4635 2005-01-08  Jeff Law  <law@redhat.com>
4636             Diego Novillo  <dnovillo@redhat.com>
4637
4638         PR tree-optimization/18241
4639         * tree-nrv.c (tree_nrv): Ignore volatile return values.
4640         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
4641         statements with volatile operands.
4642         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
4643         operands after marking a statement with has_volatile_ops.
4644
4645 2005-01-08  Roger Sayle  <roger@eyesopen.com>
4646
4647         * tree.c (int_fits_type_p): Always honor integer constant
4648         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
4649
4650 2005-01-08  Roger Sayle  <roger@eyesopen.com>
4651
4652         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
4653         the latent bug in rtl_delete_block has been resolved.
4654
4655 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
4656
4657         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
4658         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
4659
4660 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
4661
4662         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
4663         library as @multilib_dir@/$(SHLIB_SONAME).
4664
4665 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4666
4667         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
4668         * configure: Regenerate.
4669
4670 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
4671
4672         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
4673         TYPE_MODE.
4674
4675 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
4676
4677         PR target/13674
4678         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
4679         Convert non-word aligned offset address using ld/std into
4680         indirect address.
4681
4682 2005-01-07  Richard Henderson  <rth@redhat.com>
4683
4684         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
4685
4686 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
4687
4688         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
4689
4690 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
4691
4692         PR tree-optimization/19283
4693         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
4694         is not shorter than the original type.
4695
4696         PR rtl-optimization/19012
4697         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
4698
4699         PR rtl-optimization/18861
4700         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
4701         (FULL_STATE): Define.
4702         (mark_tablejump_edge): New function.
4703         (purge_dead_tablejump_edges): New function.
4704         (find_bb_boundaries): Use it.
4705
4706         PR tree-optimization/18828
4707         * builtins.c (expand_builtin_next_arg): Remove argument and all
4708         the argument checking.
4709         (expand_builtin): Adjust caller.
4710         (expand_builtin_va_start): Likewise.  Remove error for too many
4711         arguments.
4712         (fold_builtin_next_arg): Issue error for too many arguments.
4713         After checking arguments, replace them with magic arguments that
4714         prevent further checking of the args.
4715
4716 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4717
4718         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
4719
4720 2005-01-06  Roger Sayle  <roger@eyesopen.com>
4721
4722         PR target/6077
4723         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
4724         and %{.S:...} (and their negative variants) to test whether the
4725         input file is assembler or pre-processed-assembler independent of
4726         the actual filename extension.
4727
4728 2005-01-06  Roger Sayle  <roger@eyesopen.com>
4729
4730         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
4731         of sign or zero extended values.
4732
4733 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
4734
4735         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
4736         for IBM long double format correctly.
4737
4738 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
4739
4740         Fix PR tree-optimization/18792
4741
4742         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
4743         to first_loop_depth, and use loop depth instead of loop number.
4744         (build_classic_dir_vector): Ditto.
4745         (compute_data_dependences_for_loop): Use depth, not loop number.
4746         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
4747         number. Pass in loops, instead of loop numbers.
4748         (gather_interchange_stats): Ditto.
4749         (linear_transform_loops): Ditto.
4750
4751 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
4752
4753         PR rtl-opt/13299
4754         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
4755         biv_fits_mode_p, extension_within_bounds_p): New functions.
4756         (check_ext_dependent_givs): Use them.
4757
4758 2005-01-06  Roger Sayle  <roger@eyesopen.com>
4759
4760         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
4761         more than one barrier, in which case we should delete them all.
4762
4763 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
4764
4765         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
4766
4767 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
4768
4769         Fix PR middle-end/19286
4770         Fix PR debug/19267
4771         * dwarf2out.c (gen_subprogram_die): If we've already tried to
4772         output this subprogram, simply ignore this attempt to do it again.
4773         (add_abstract_origin_attribute): Don't abort trying to add the abstract
4774         origin attribute if it's not possible.
4775         (gen_block_die): Don't ignore subblocks of "unused" blocks.
4776         (decls_for_scope): Ditto.
4777         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
4778         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
4779
4780 2005-01-05  Richard Henderson  <rth@redhat.com>
4781
4782         PR target/11327
4783         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
4784         (bdesc_2arg): Use it.
4785         (ix86_expand_binop_builtin): Force operands into registers
4786         when optimizing.
4787         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
4788         ix86_expand_sse_compare, ix86_expand_sse_comi,
4789         ix86_expand_builtin): Likewise.
4790
4791 2005-01-05  Richard Henderson  <rth@redhat.com>
4792
4793         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
4794         and VEC_SELECT.
4795         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
4796         (mulv4hi3): Set itanium_class mmmul.
4797         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
4798         (fpack): Rename from fpack_sfsf.
4799
4800 2005-01-05  Richard Henderson  <rth@redhat.com>
4801
4802         PR rtl-opt/10692
4803         * reload1.c (do_input_reload): Restrict the optimization deleteing
4804         a previous output reload to RELOAD_FOR_INPUT.
4805
4806 2005-01-05  Steven Bosscher  <stevenb@suse.de>
4807
4808         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
4809         comment that we fall through after case.
4810         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
4811         (distribute_links): Likewise.
4812         * cse.c (cse_insn): Likewise.
4813         * cselib.c (cselib_invalidate_mem): Likewise.
4814         * df.c: Update comments at the top of the file.
4815         (read_modify_subreg_p): Update comments here too.
4816         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
4817         * flow.c (mark_set_1): Likewise.
4818         (mark_used_regs): Likewise.
4819         * gcse.c (mems_conflict_for_gcse_p): Likewise.
4820         (canon_list_insert): Likewise.
4821         (mark_set): Likewise.
4822         (try_replace_reg): Likewise.
4823         (store_killed_in_insn): Likewise.
4824         * loop.c (count_one_set): Likewise.
4825         (basic_induction_var): Likewise.
4826         * postreload-gcse.c (find_mem_conflicts): Likewise.
4827         * postreload.c (reload_combine_note_store): Likewise.
4828         (move2add_note_store): Likewise.
4829         * reload.c (find_equiv_reg): Likewise.
4830         (mark_referenced_resources): Likewise.
4831         * rtlanal.c (set_noop_p): Likewise.
4832         (note_stores): Likewise.
4833         (note_uses): Likewise.
4834         * sched-deps.c (sched_analyze_1): Likewise.
4835         * sched-rgn.c (check_live_1): Likewise.
4836         (update_live_1): Likewise.
4837         * config/i860/i860.c: Likewise.
4838
4839         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
4840         an lvalue.
4841         (ZERO_EXTRACT): Mention that this one can be an lvalue.
4842
4843         * doc/rtl.texi: Update documentation for bit-fields and SET.
4844
4845 2005-01-05  Roger Sayle  <roger@eyesopen.com>
4846
4847         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
4848
4849 2005-01-05  Jan Hubicka  <jh@suse.cz>
4850             Richard Henderson  <rth@redhat.com>
4851
4852         PR target/18910
4853         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
4854         with an offset.
4855
4856 2005-01-05  Richard Henderson  <rth@redhat.com>
4857
4858         PR target/12902
4859         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
4860         (sse_shufps): Change operand 3 to const_int_operand.
4861         (sse2_storelps): Fix typo in template.
4862         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
4863         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
4864         (ix86_expand_builtin): Likewise.
4865
4866 2005-01-05  Julian Brown  <julian@codesourcery.com>
4867
4868         * config/arm/arm.c (arm_return_in_memory): Treat complex types
4869         as aggregates for AAPCS ABIs.
4870
4871 2005-01-05  Stan Shebs  <shebs@apple.com>
4872
4873         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
4874         Mach-O getters if ppc64.
4875         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
4876         size argument.
4877         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4878         signed four-byte field for global code case.
4879         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
4880
4881 2005-01-05  Roger Sayle  <roger@eyesopen.com>
4882
4883         PR middle-end/19100
4884         * c-common.c: Include real.h.
4885         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
4886         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
4887         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
4888         * Makefile.in (c-common.o): Update dependencies.
4889
4890 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
4891
4892         * c-parse.in (asm_string): Add trailing semicolon.
4893
4894 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
4895
4896         * c-parse.in (asm_string): New.  Don't allow wide strings in
4897         'asm'.
4898         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
4899         asm_string instead of STRING.
4900
4901 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
4902
4903         * c-typeck.c (constructor_no_implicit): Remove.
4904         (set_designator, process_init_element): Don't check
4905         constructor_no_implicit.
4906
4907 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
4908             Kaz Kojima  <kkojima@gcc.gnu.org>
4909
4910         PR target/16482
4911         * lcm.c (create_pre_exit): New.
4912         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
4913         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
4914
4915 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
4916
4917         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
4918         -msoft-float in target_float_switch.
4919         * arm.c (arm_override_options): Fix processing of target_float_switch.
4920
4921 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
4922
4923         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
4924         preferencing.
4925
4926 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
4927
4928         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
4929         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
4930
4931 2005-01-04  Roger Sayle  <roger@eyesopen.com>
4932
4933         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
4934         if deleting the then-block allows the test-block to fallthru to the
4935         else-block.
4936
4937 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
4938
4939         PR c/19152
4940         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
4941         after the full declaration if the are in two different TUs.
4942
4943 2005-01-04  Richard Henderson  <rth@redhat.com>
4944
4945         PR tree-opt/19158
4946         * tree-sra.c (generate_one_element_init): Just
4947         call gimplify_and_add.
4948         (generate_element_init): Record the
4949         new referenced variables and mark them for renaming
4950         and split out to ...
4951         (generate_element_init_1): This.
4952         (scalarize_init): Don't call push_gimplify_context/
4953         pop_gimplify_context.
4954
4955 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
4956
4957         * toplev.c (get_src_pwd): Handle failure of getpwd().
4958
4959 2005-01-04  Roger Sayle  <roger@eyesopen.com>
4960
4961         * fold-const.c (fold_single_bit_test): Delete unreachable handling
4962         of TRUTH_NOT_EXPR.
4963         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
4964         all the cases handled by it are inverted by invert_truthvalue.
4965
4966 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4967
4968         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
4969         (save_register_windowsi): Likewise.
4970
4971 2005-01-04  Richard Henderson  <rth@redhat.com>
4972
4973         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
4974
4975 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
4976
4977         PR middle-end/17767
4978         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
4979         any simplifications of vector mode comparison operators.
4980         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
4981
4982 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
4983             Devang Patel  <dpatel@apple.com>
4984
4985         PR tree-optimization/18308
4986         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
4987         the operands before creating a new expression.
4988         * dojump.c (do_jump): Make drop_through_label available
4989         for all cases.  Add expansion of COND_EXPR.
4990
4991 2005-01-04  Ira Rosen  <irar@il.ibm.com>
4992
4993         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
4994         INTEGER_CST instead of TREE_CONSTANT.
4995         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
4996         instead of TREE_CONSTANT.
4997         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
4998         instead of TREE_CONSTANT.
4999
5000 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5001
5002         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
5003
5004 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
5005
5006         PR target/19240
5007         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
5008         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
5009
5010 2005-01-03  Richard Henderson  <rth@redhat.com>
5011
5012         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
5013         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
5014         fold_convert_const_real_from_real): Split out from ...
5015         (fold_convert_const): ... here.
5016
5017 2005-01-03  Richard Henderson  <rth@redhat.com>
5018
5019         PR target/19235
5020         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
5021         (mov<MMXMODEI>_internal): Likewise.
5022         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
5023         Add V2SF case; use it for SSE1; don't use TI.
5024         (movdf_integer): Likewise.
5025         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
5026
5027 2005-01-03  Ira Rosen  <irar@il.ibm.com>
5028
5029         * tree-vectorizer.c (vect_strip_conversions): New function.
5030         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
5031         check for binary class.
5032
5033 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
5034
5035         Fix PR debug/17924
5036         Fix PR debug/19191
5037         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
5038         is a decl.
5039         * gimple-low.c (mark_blocks_with_used_vars): New function.
5040         (mark_blocks_with_used_subblocks): Ditto.
5041         (mark_used_blocks): Ditto.
5042         (pass_mark_used_blocks): New pass.
5043         * tree-inline.c: Include debug.h.
5044         (expand_call_inline): Call outlining_inline_function here.
5045         * tree-optimize.c (init_tree_optimization_passes): Add
5046         pass_mark_used_blocks.
5047         * tree-pass.h (pass_mark_used_blocks): New.
5048         * Makefile.in (tree-inline.o): Add debug.h dependency.
5049
5050 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
5051
5052         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
5053         VAR_DECLs to have weak_import attribute.
5054
5055         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
5056         'struct ucontext'.
5057
5058 2004-01-03  Steven Bosscher  <stevenb@suse.de>
5059
5060         * passes.c (rest_of_compilation): Don't run regmove if only
5061         flag_expensive_optimizations, require flag_regmove instead.
5062
5063 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5064
5065         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
5066         register "sparc".
5067         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
5068         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
5069         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
5070         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
5071
5072 2005-01-03  Richard Henderson  <rth@redhat.com>
5073
5074         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
5075         (ia64_const_ok_for_letter_p): New.
5076         (ia64_const_double_ok_for_letter_p): New.
5077         (ia64_extra_constraint): New.
5078         (ia64_expand_vecint_compare): New.
5079         (ia64_expand_vcondu_v2si): New.
5080         (ia64_expand_vecint_cmov): New.
5081         (ia64_expand_vecint_minmax): New.
5082         (ia64_print_operand): Add 'v'.
5083         (ia64_preferred_reload_class): New.
5084         (ia64_vector_mode_supported_p): New.
5085         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
5086         (PREFERRED_RELOAD_CLASS): Move to function.
5087         (CONST_OK_FOR_LETTER_P): Move to function.
5088         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
5089         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
5090         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
5091         (EXTRA_CONSTRAINT): Move to function.
5092         * config/ia64/ia64.md: Include vect.md.
5093         (itanium_class): Add mmalua.
5094         (type): Handle it.
5095         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
5096         (1b_mmalua): New.
5097         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
5098         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
5099         CONST0_RTX.
5100         (const_int_2bit_operand): New.
5101         (fr_reg_or_0_operand): New.
5102         * config/ia64/ia64-modes.def: Add vector modes.
5103         * config/ia64/ia64-protos.h: Update.
5104         * config/ia64/vect.md: New file.
5105
5106 2005-01-03  Richard Henderson  <rth@redhat.com>
5107
5108         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
5109
5110 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
5111
5112         PR target/19236
5113         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
5114         to SFmode.
5115         (log1pdf2): Change mode of operands[0,1] to DFmode.
5116
5117 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5118
5119         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
5120         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
5121         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
5122         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
5123         SPARC_RELAXED_ORDERING.
5124
5125 2005-01-03  Richard Henderson  <rth@redhat.com>
5126             Uros Bizjak  <uros@kss-loka.si>
5127
5128         PR target/14631
5129         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
5130         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
5131         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
5132         handling.
5133         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
5134         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
5135         const_pow2_1_to_128_operand): New predicates.
5136
5137 2005-01-02  Greg McGary  <greg@mcgary.org>
5138
5139         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
5140         anonymous decls.
5141         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
5142         object.  [ptr_type]: Remove unused variable.
5143         Remember nearest addressable array-element or record-component
5144         when checking bitfield components.  Tolerate empty BIND_EXPR.
5145
5146 2005-01-01  Richard Henderson  <rth@redhat.com>
5147
5148         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
5149         that don't narrow the value.  Fail for other conversions.
5150
5151 2005-01-01  Richard Henderson  <rth@redhat.com>
5152
5153         PR c/19031
5154         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
5155         * c-lang.c (finish_file): Don't do it here.
5156         * objc/objc-act.c (objc_finish_file): Likewise.
5157
5158         * cgraph.c (decl_assembler_name_equal): New.
5159         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
5160         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
5161         * cgraph.h (struct cgraph_varpool_node): Add next.
5162         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
5163         * varasm.c (assemble_alias): Mark the target as needed.
5164
5165 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
5166
5167         PR middle-end/19221
5168         * function.c (get_arg_pointer_save_area): Use entry_of_function
5169         instead of get_insns.
5170
5171 2005-01-01  Roger Sayle  <roger@eyesopen.com>
5172             Andrew Pinski  <pinskia@physics.uc.edu>
5173             James E. Wilson  <wilson@specifixinc.com>
5174
5175         PR rtl-optimization/12092
5176         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
5177         is zero.
5178
5179 2005-01-01  Roger Sayle  <roger@eyesopen.com>
5180             Olivier Hainque  <hainque@act-europe.fr>
5181
5182         * tree.c (int_fits_type_p): A narrower type always fits in a
5183         wider one, except for negative values into unsigned types.
5184
5185 2005-01-01  Roger Sayle  <roger@eyesopen.com>
5186
5187         * tree.c (int_fits_type_p): Compare the result of force_fit_type
5188         with the original constant rather than require TREE_OVERFLOW.
5189
5190 2005-01-01  Steven Bosscher  <stevenb@suse.de>
5191
5192         PR middle-end/17544
5193         * c-decl.c (finish_function): If compiling C99, annotate the
5194         compiler generated return with the current file name and line 0.
5195         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
5196         the source line is greater than 0.
5197         (remove_bb): Likewise.
5198
5199 See ChangeLog.12 for earlier changes.