OSDN Git Service

e70eb8bb461cb63cb08243d6ff0684ff9b8f3e75
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
2
3         PR regression/19898.
4         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
5         changes cc_status, use apply modified_in_p to part of cc_status
6         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
7         body.
8
9 2005-02-11  Richard Henderson  <rth@redhat.com>
10
11         * tree-complex.c (expand_complex_libcall): New.
12         (expand_complex_multiplication): Use it for c99 compliance.
13         (expand_complex_division): Likewise.
14         * fold-const.c (fold_complex_add, fold_complex_mult): New.
15         (fold): Call them.
16         * builtins.c (built_in_names): Remove const.
17         * tree.c (build_common_builtin_nodes): Build complex arithmetic
18         builtins.
19         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
20         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
21         (built_in_names): Remove const.
22         * c-common.c (c_common_type_for_mode): Handle complex modes.
23         * flags.h, toplev.c (flag_complex_method): Rename from
24         flag_complex_divide_method.
25         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
26         __mulsc3, __muldc3, __mulxc3, __multc3): New.
27         * libgcc2.h: Declare them.
28         * libgcc-std.ver: Export them.
29         * mklibgcc.in (lib2funcs): Build them.
30
31 2005-02-11  Steven Bosscher  <stevenb@suse.de>
32
33         PR tree-optimization/19876
34         Partially revert my change from 2005-01-14
35         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
36         (compute_antic): ...and remove the loop here.
37
38 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
39
40         PR middle-end/19858
41         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
42         is number of inner's bits, avoid creating a BIT_FIELD_REF.
43
44         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
45         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
46
47 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
48
49         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
50         offsets for the big-endian 32-bit case.
51
52 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
53
54         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
55
56 2005-02-11  Dale Johannesen  <dalej@apple.com>
57
58         * cselib.c (cselib_process_insn):  Clear out regs where
59         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
60         * reload.c (find_equiv_reg): Ditto.
61
62 2005-02-11  Ian Lance Taylor  <ian@airs.com>
63
64         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
65         with no elements.
66
67         * tree.c (build_function_type_list): Work correctly if there are
68         no arguments.
69
70 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
71
72         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
73         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
74         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
75         TARGET_ZARCH instead of TARGET_64BIT.
76
77 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
78
79         * config/rs6000/t-rtems:
80         (MULTILIB_OPTIONS): Remove mcpu=602.
81         (MUTLILIB_DIRNAMES): Remove m602.
82         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}. 
83         Let mcpu=602 match mcpu=603.
84         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
85
86 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
87
88         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
89         signal trampolines.
90
91 2005-02-10  David Daney  <ddaney@avtrex.com>
92
93         * config/alpha/linux-unwind.h: Add exception clause to copyright.
94         * config/i386/linux-unwind.h: Likewise.
95         * config/ia64/linux-unwind.h: Likewise.
96         * config/mips/linux-unwind.h: Likewise.
97         * config/pa/linux-unwind.h: Likewise.
98         * config/rs6000/linux-unwind.h: Likewise.
99         * config/s390/linux-unwind.h: Likewise.
100         * config/sh/linux-unwind.h: Likewise.
101         * config/sparc/linux-unwind.h: Likewise.
102
103 2005-02-10  Steven Bosscher  <stevenb@suse.de>
104
105         PR tree-optimization/17549
106         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
107         TER to replace a DEF with its expression if the DEF and the
108         rhs of the expression we replace into have the same root
109         variable.
110
111 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
112
113         * config/mips/mips.md: Fix the placement of the match_scratch in the
114         lea64 peephole2.
115
116 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
117
118         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
119         Fix comment typos.
120
121 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
122
123         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
124         (strip_offset): Handle addresses.
125         (add_address_candidates): Use strip_offset.
126         (difference_cost): Reflect strip_offset change.
127         (force_var_cost, difference_cost): Strip nops.
128
129 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
130
131         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
132
133         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
134         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
135         config/cris/cris-protos.h, config/cris/cris.c: Update
136         copyright.
137
138 2005-02-10  Jeff Law  <law@redhat.com>
139
140         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
141         (lookup_avail_expr): Similarly.
142
143 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
144
145         * builtins.c (fold_builtin_powi): New function.
146         (fold_builtin_1): Call it.
147
148 2005-02-10  Steven Bosscher  <stevenb@suse.de>
149
150         PR documentation/19309
151         * doc/cpp.texi: The __GNUC__ and related predefined macros
152         are also defined for the "standalone" cpp.
153         Some non-GCC compilers may also define __GNUC__.
154
155 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
156
157         PR c/19342
158         * c-typeck.c (common_type): New routine.  Old common_type renamed
159         to...
160         (c_common_type): ...this.
161         (build_conditional_expr, build_binary_op): Use c_common_type instead
162         of common_type.
163
164 2005-02-10  Steven Bosscher  <stevenb@suse.de>
165
166         * doc/md.texi: Replace @samp{length} with @code{length}.
167
168 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
169
170         PR tree-optimization/18687
171         * tree-flow.h (find_loop_niter): Declare.
172         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
173         Try using scev even for loops with more than one exit.
174         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
175         (struct ivopts_data): Added niters field.
176         (struct nfe_cache_elt): New.
177         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
178         functions.
179         (tree_ssa_iv_optimize_init): Initialize niters cache.
180         (determine_number_of_iterations): Removed.
181         (find_induction_variables): Do not call determine_number_of_iterations.
182         Access niters for single exit through niter_for_single_dom_exit.
183         (add_iv_outer_candidates): Access niters for single exit through
184         niter_for_single_dom_exit.
185         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
186         number_of_iterations_cond.
187         (iv_period): New function.
188         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
189         (may_replace_final_value): Take data argument.  Use
190         niter_for_single_dom_exit.
191         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
192         (rewrite_use_compare): Pass data to may_eliminate_iv.
193         (rewrite_use_outer): Pass data to may_replace_final_value.
194         (free_loop_data): Clean up the niters cache.
195         (tree_ssa_iv_optimize_finalize): Free the niters cache.
196         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
197         * tree-ssa-loop-niter.c (find_loop_niter): New function.
198         (find_loop_niter_by_eval): Use tree_int_cst_lt.
199         (num_ending_zeros): Moved to tree.c.
200         * tree.h (num_ending_zeros): Declare.
201         * tree.c (num_ending_zeros): Moved from tree.c.
202
203 2005-02-09  Richard Henderson  <rth@redhat.com>
204
205         * builtins.c (DEF_BUILTIN): Add COND argument.
206         * tree.h (DEF_BUILTIN): Likewise.
207         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
208         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
209         match.
210         (DEF_BUILTIN_STUB): New.
211         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
212         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
213         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
214         * c-common.c (DEF_BUILTIN): Add COND argument.
215         * tree.c (local_define_builtin): New.
216         (build_common_builtin_nodes): New.
217
218 2005-02-09  Roger Sayle  <roger@eyesopen.com>
219
220         * fold-const.c (fold_strip_sign_ops): New function to simplify a
221         floating point expression ignoring the sign of the result.
222         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
223         (fold) <MULT_EXPR>: Use it to simplify x*x.
224         * tree.h (fold_strip_sign_ops): Prototype here.
225         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
226         argument.  Use fold_strip_sign_ops to simplify the first argument.
227         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
228         first argument when the second argument is an even integer
229         constant, but only with -funsafe_math_optimizations.
230         (fold_builtin_1): Update call to fold_builtin_copysign.
231
232 2005-02-09  Ian Lance Taylor  <ian@airs.com>
233
234         PR middle-end/19583
235         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
236         just check whether EH_FILTER_FAILURE falls through.
237
238 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
239
240         * gcc/haifa-sched.c (schedule_block): Make queued sched group
241         insns return to ready list in the next turn.
242
243 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
244
245         PR middle-end/19402
246         * builtins.def: New __builtin_powi[lf].
247         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
248         (expand_builtin_powi): New function.
249         (expand_builtin): Dispatch to expand_builtin_powi.
250         * libgcc2.h: Add prototypes for __builtin_powi[lf].
251         * libgcc2.c: Add __builtin_powi[lf] implementation.
252         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
253         * optabs.h: Add powi_optab.
254         * optabs.c (init_optabs): Initialize powi_optab.
255         * doc/extend.texi: Document __builtin_powi[lf].
256
257 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
258
259         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file 
260         exists.
261
262 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
263
264         PR middle-end/19854
265         * fold-const.c (try_move_mult_to_index): Remove redundant
266         type argument.  Create ADDR_EXPR with correct type.
267         (fold): Update callers of try_move_mult_to_index.  Convert
268         result to the appropriate type.
269
270 2005-02-09  Roger Sayle  <roger@eyesopen.com>
271
272         PR target/19597
273         * config/avr/avr.c (default_rtx_costs): Delete.
274         (avr_operand_rtx_cost): New function.
275         (avr_rtx_costs): Completely rewrite.
276
277 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
278
279         PR target/19806
280         * config/cris/cris.c (in_code): New variable.
281         (cris_output_addr_const): Now a static function, a wrapper for
282         output_addr_const.
283         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
284         case from old cris_output_addr_const.
285         (cris_asm_output_label_ref): Similar for LABEL_REF.
286         (cris_output_addr_const_extra): Similar for UNSPEC.
287         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
288         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
289         * config/cris/cris-protos.h (cris_output_addr_const): Remove
290         declaration.
291         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
292         (cris_asm_output_label_ref): Declare.
293
294 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
295
296         PR preprocessor/19801
297         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
298         filenames that changed when libcpp was moved to the toplevel.
299
300 2005-02-07  Roger Sayle  <roger@eyesopen.com>
301
302         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
303         zero extensions of BImode operands.  Call lowpart_subreg instead
304         of gen_lowpart_common and gen_lowpart_SUBREG.
305
306 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
307
308         PR ada/19489
309         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
310         * configure.ac: Set cc_for_cross_gnattools.
311         * configure: Regenerate.
312
313 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
314
315         PR target/19803
316         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
317
318 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
319
320         PR debug/19327
321         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
322         of nested functions.
323
324 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
325
326         * doc/extend.texi: Document deprecated extensions allowing
327         static floating-point members to have initializers and allowing
328         floating-point literals in integral constant expressions.
329
330 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
331
332         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
333         config/darwin7.h, config/mips/mips.c,
334         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
335         Update copyright.
336
337         * cse.c: Update comments.
338
339 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
340
341         PR middle-end/19775
342         * builtins.c (fold_builtin_sqrt): Transform
343         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
344         pow(x,y*0.5).
345
346 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
347             Dorit Naishlos  <dorit@il.ibm.com>
348
349         * doc/invoke.texi (ftree-vectorizer-verbose): New.
350         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
351         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
352         was added.
353         * tree.h (vect_set_verbosity_level): New extern function declaration
354         added.
355         * tree-vectorizer.h (verbosity_levels): New enum type.
356         * tree-vectorizer.c (vect_debug_stats): Function removed.
357         (vect_debug_details): Likewise.
358         (vect_verbosity_level): Global variable was defined and initialized.
359         (vect_dump): Global variable definition.
360         (vect_print_dump_info): New function.
361         (vect_set_dump_settings): New function.
362         (vect_set_verbosity_level): New function.
363         (vectorize_loops): Add call to vect_set_dump_settings.
364
365         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
366         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
367         (slpeel_tree_peel_loop_to_edge): Likewise.
368
369         (vect_analyze_offset_expr): Call to vect_print_dump_info with
370         appropriate verbosity level instead of call to vect_debug_details 
371         or vect_debug_stats. 
372         (vect_get_base_and_offset):
373         (vect_create_addr_base_for_vector_ref):
374         (get_vectype_for_scalar_type):
375         (vect_create_data_ref_ptr):
376         (vect_init_vector):
377         (vect_get_vec_def_for_operand):
378         (vect_finish_stmt_generation):
379         (vectorizable_assignment):
380         (vectorizable_operation):
381         (vectorizable_store):
382         (vectorizable_load):
383         (vect_transform_stmt):
384         (vect_update_ivs_after_vectorizer):
385         (vect_do_peeling_for_loop_bound):
386         (vect_update_inits_of_drs):
387         (vect_do_peeling_for_alignment):
388         (vect_transform_loop):
389         (vect_is_simple_use):
390         (vect_analyze_operations):
391         (vect_is_simple_iv_evolution):
392         (vect_analyze_scalar_cycles):
393         (vect_analyze_data_ref_dependence):
394         (vect_analyze_data_ref_dependences):
395         (vect_compute_data_ref_alignment):
396         (vect_enhance_data_refs_alignment):
397         (vect_analyze_data_refs_alignment):
398         (vect_analyze_data_ref_access):
399         (vect_analyze_data_ref_accesses):
400         (vect_analyze_pointer_ref_access):
401         (vect_get_memtag_and_dr):
402         (vect_analyze_data_refs):
403         (vect_mark_relevant):
404         (vect_stmt_relevant_p):
405         (vect_mark_stmts_to_be_vectorized):
406         (vect_can_advance_ivs_p):
407         (vect_get_loop_niters):
408         (vect_analyze_loop_form):
409         (vect_analyze_loop):
410         (vectorize_loops): Likewise.
411
412         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
413         (vect_update_inits_of_drs):
414         (vect_do_peeling_for_alignment):
415         (vect_transform_loop):
416         (vect_analyze_operations):
417         (vect_analyze_scalar_cycles):
418         (vect_analyze_data_ref_dependences):
419         (vect_analyze_data_refs_alignment):
420         (vect_analyze_data_ref_accesses):
421         (vect_analyze_data_refs):
422         (vect_mark_stmts_to_be_vectorized):
423         (vect_get_loop_niters):
424         (vect_analyze_loop_form):
425         (vect_analyze_loop): Likewise. 
426         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
427
428 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
429
430         PR bootstrap/19796
431         Revert:
432         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
433         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
434         either -ffast-math or -funsafe-math-optimizations is in use.
435
436         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
437         * config/mips/irix-csr.c: New file.
438         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
439         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
440         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
441         executables.
442
443 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
444
445         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
446         redundant, incorrect definitions.
447
448         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
449         expand.
450         ("*tls_indirect_call"): New, reference hard regs directly.
451         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
452
453 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
454
455         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): 
456         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
457
458 2005-02-06  Roger Sayle  <roger@eyesopen.com>
459
460         PR rtl-optimization/19800
461         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
462         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
463         gen_lowpart.
464
465 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
466
467         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
468
469 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
470
471         PR other/17135
472         * doc/invoke.texi: Correct documentation of -freorder-functions.
473
474 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
475
476         PR other/14402
477         * doc/invoke.texi: Don't mention gccbug.
478
479 2005-02-06  Roger Sayle  <roger@eyesopen.com>
480             Andrew Pinski  <pinskia@physics.uc.edu>
481             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
482
483         * simplify-rtx.c (simplify_relational_operation_1): Simplify
484         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
485         into just (zero_extract:SI FOO (const_int 1) BAR).
486
487 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
488
489         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
490         macro locally.  Don't give last revision date.  Use GCC version
491         number from gcc-common.texi.
492         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
493         revision date.  Use GCC version number from gcc-common.texi.
494         Describe being a library as current state rather than as 3.x
495         history.
496         * doc/gcc.texi: Remove last update date.
497         * doc/gccint.texi: Likewise.  Update copyright dates.
498         * doc/install.texi: Update copyright dates.
499
500 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
501
502         PR other/7549
503         * doc/invoke.texi: Mention for each option included in -Wall that
504         it is included in -Wall.
505         * doc/gcc.texi: Update copyright and last modification date.
506
507 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
508
509         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
510         unnecessary cast to original induction variable increments.
511
512 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
513
514         PR tree-optimization/18219
515         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
516         in distributed form.
517
518 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
519
520         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
521         Set bitpos and offset later in the function.  Do nothing if the
522         target is a register and if the bitfield lies completely outside
523         that register.
524         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
525         here.  Return an uninitialised register if the source value is stored
526         in a register and the bitfield lies completely outside that register.
527
528 2005-02-06  Steven Bosscher  <stevenb@suse.de>
529
530         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
531         not SET_DEST.
532
533 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
534
535         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
536
537 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
538
539         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
540         * config/darwin8.h: New.
541         * config/darwin7.h: Update comment.
542
543 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
544             Dorit Naishlos  <dorit@il.ibm.com>
545
546         * tree-vectorizer.h (LOC): New type.
547         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
548         (loop_line_number): New field in struct _loop_vec_info.
549         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
550
551         * tree-vectorizer.c (input.h): Included.
552         (find_loop_location): New function.
553         (vect_debug_stats): Argument changed from loop to LOC. Computation of
554         loop line number removed.
555         (vect_debug_details): Likewise.
556         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
557
558         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
559         call to vect_debug_details/stats changed from loop to loop_loc.
560         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
561         (slpeel_tree_peel_loop_to_edge): Likewise.
562
563         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
564         changed from NULL to UNKNOWN_LOC.
565         (vect_get_base_and_offset):
566         (vect_create_addr_base_for_vector_ref):
567         (get_vectype_for_scalar_type):
568         (vect_create_data_ref_ptr):
569         (vect_init_vector):
570         (vect_get_vec_def_for_operand):
571         (vect_finish_stmt_generation):
572         (vectorizable_assignment):
573         (vectorizable_operation):
574         (vectorizable_store):
575         (vectorizable_load):
576         (vect_transform_stmt):
577         (vect_update_ivs_after_vectorizer):
578         (vect_do_peeling_for_loop_bound):
579         (vect_do_peeling_for_alignment):
580         (vect_transform_loop):
581         (vect_is_simple_use):
582         (vect_analyze_operations):
583         (vect_is_simple_iv_evolution):
584         (vect_analyze_scalar_cycles):
585         (vect_analyze_data_ref_dependences):
586         (vect_compute_data_ref_alignment):
587         (vect_enhance_data_refs_alignment):
588         (vect_analyze_data_ref_access):
589         (vect_analyze_data_ref_accesses):
590         (vect_analyze_pointer_ref_access):
591         (vect_get_memtag_and_dr):
592         (vect_analyze_data_refs):
593         (vect_mark_relevant):
594         (vect_stmt_relevant_p):
595         (vect_mark_stmts_to_be_vectorized):
596         (vect_can_advance_ivs_p):
597         (vect_get_loop_niters):
598         (vect_analyze_loop):
599         (vectorize_loops): Likewise.
600
601         (vectorizable_load): Argument in call to vect_debug_details/stats
602         changed from loop to LOOP_LOC (loop_vinfo).
603         (vect_transform_loop):
604         (vect_analyze_operations):
605         (vect_analyze_scalar_cycles):
606         (vect_analyze_data_ref_dependence):
607         (vect_enhance_data_refs_alignment):
608         (vect_analyze_data_ref_accesses):
609         (vect_analyze_pointer_ref_access):
610         (vect_analyze_data_refs):
611         (vect_analyze_loop): Likewise.
612
613         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
614         changed from loop to loop_loc.
615
616         (vect_enhance_data_refs_alignment): Removed unused variable loop.       
617
618 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
619             Dorit Naishlos  <dorit@il.ibm.com>
620
621         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
622         declaration added.
623         (vect_analyze_data_ref_dependences): Likewise.
624
625         (vect_is_simple_use): Argument changed from loop structure to
626         loop_vect_info structure.
627         (vect_can_advance_ivs_p): Likewise.
628         (vect_create_index_for_vector_ref): Likewise.
629         (vect_update_ivs_after_vectorizer): Likewise.
630         (new_stmt_vec_info): Likewise.
631         
632         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
633         changed from loop to loop_vinfo.
634         (vect_create_data_ref_ptr): First argument in call to
635         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
636         (vectorizable_assignment): Second argument in call to vect_is_simple_use
637         was changed from loop to loop_vinfo.
638         (vectorizable_operation): Likewise.
639         (vectorizable_store): Likewise.
640         (vect_mark_stmts_to_be_vectorized): Likewise.
641         (vect_do_peeling_for_loop_bound): First argument in call to
642         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
643         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
644         was changed from loop to loop_vinfo.
645         (vect_analyze_data_ref_dependences): Third argument in call to
646         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
647         
648         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
649         (vect_create_data_ref_ptr): Likewise.
650         (vect_init_vector): Likewise.
651         (vect_get_vec_def_for_operand): Likewise.
652         (vectorizable_assignment): Likewise.
653         (vectorizable_operation): Likewise.
654         (vectorizable_store): Likewise.
655         (vectorizable_load): Likewise.
656         (vect_update_ivs_after_vectorizer): Likewise.
657         (vect_is_simple_use): Likewise.
658         (vect_analyze_data_ref_dependence): Likewise.
659         (vect_analyze_pointer_ref_access): Likewise.
660         (vect_can_advance_ivs_p): Likewise.
661
662         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
663         before _stmt_vec_info.
664         (_stmt_vec_info): Loop field replaced by loop_vec_info.
665         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
666         (new_stmt_vec_info): Argument changed from loop structure to
667         loop_vect_info structure
668
669         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
670         (vect_analyze_offset_expr): Avoid 80 columns overflow.
671         (vect_create_addr_base_for_vector_ref): Likewise.
672         (vect_analyze_pointer_ref_access): Likewise.
673
674 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
675
676         PR tree-opt/19768
677         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
678         phi flag if the phi is abnormal.
679
680 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
681
682         PR tree-opt/19736
683         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
684         information for the new statement.
685
686 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
687
688         PR driver/19117
689         * gcc.c (main): Include the target in -v output.
690
691 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
692
693         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
694         Do not drop the extend if we'd have to add a paradoxical subreg
695         later.  Include optabs.h and insn-codes.h.
696         * Makefile.in (combine.o): Depend on $(OPTABS_H).
697
698 2005-02-02  Roger Sayle  <roger@eyesopen.com>
699
700         PR middle-end/19405
701         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
702         * fold-const.c (const_binop): Avoid constant folding floating
703         point operations in modes that use composite representations.
704         * simplify-rtx.c (simplify_binary_operation): Likewise.
705
706 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
707
708         * config/rs6000/altivec.md (altivec_dst): Make the first operand
709         a REG, not a MEM.
710         (altivec_dstt): Likewise.
711         (altivec_dstst): Likewise.
712         (altivec_dststt): Likewise.
713         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
714         of first operand.
715
716 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
717
718         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
719         EXPR_LOCUS from orig_cond to the new cond_stmt.
720         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
721         the new vec_stmt.
722
723 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
724
725         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
726         standard_iv_increment_position. Remove call to bsi_next 
727         (no need to bump the iterator anymore).
728         (vect_create_index_for_vector_ref): Call
729         standard_iv_increment_position. Remove second function argument.
730         (vect_finish_stmt_generation): Remove call to bsi_next 
731         (no need to bump the iterator anymore).
732         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
733         to vect_create_index_for_vector_ref.
734
735 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
736
737         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
738         phis are used out of the loop.
739
740 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
741
742         PR c/17807
743         * c-decl.c (undef_nested_function): New variable.
744         (pop_scope): Diagnose undefined nested functions.
745         (finish_function): Don't attempt cgraph processing or genericizing
746         if current top-level function contained an undefined nested
747         function.  Reset undef_nested_function at the end of a top-level
748         function.
749
750 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
751
752         * tree.c (build_int_cst_type): Take sign of the value into account
753         when deciding whether sign extend the value.
754
755 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
756
757         PR c/18502
758         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
759         (cpp_options, cc1_options): Change %{std*&ansi} to
760         %{std*&ansi&trigraphs}.
761
762 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
763
764         * cse.c: Update comments.
765
766 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
767
768         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
769         arguments go on the stack.  Do not put complex doubles in odd/even
770         pairs.
771
772 2005-02-02  Steven Bosscher  <stevenb@suse.de>
773
774         * doc/invoke.texi: Update the options enabled at -O1, -O2,
775         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
776         -ftree-pre, and -fthread-jumps.
777
778 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
779
780         PR tree-optimization/19578
781         * tree-flow.h (modified_noreturn_calls): Declare.
782         (noreturn_call_p): Declare.
783         * tree-flow-inline.h (noreturn_call_p): New function.
784         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
785         * tree-cfg.c (modified_noreturn_calls): New variable.
786         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
787         that contain a mid-block noreturn call.
788         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
789
790 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
791
792         * df.c (df_def_record_1, df_uses_record): Don't use
793         DF_FOR_REGALLOC.
794         * df.h (DF_FOR_REGALLOC): Remove.
795
796 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
797
798         PR c/19435
799         * c-typeck.c (really_start_incremental_init): Reset
800         constructor_max_index for arrays of incomplete type.
801
802 2005-02-02  Jeff Law  <law@redhat.com>
803
804         * gcse.c (struct reg_set): Store the block index where the register
805         was set rather than the setting insn.
806         (record_one_set, compute_transp): Corresponding changes.
807         (pre_insert_copy_insn): Do not call replace_one_set.
808         (replace_one_set): Remove.
809
810 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
811
812         PR other/15514
813         * doc/gcov.texi: Fix typo.
814
815 2005-02-01  Richard Henderson  <rth@redhat.com
816
817         PR target/19680
818         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
819         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
820         type to bool.
821         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
822         * config/i386/i386-protos.h: Update.
823
824 2005-02-01  Steven Bosscher  <stevenb@suse.de>
825
826         PR tree-optimization/19217
827         * tree-cfg.c (verify_expr): Use the data field to see if TP was
828         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
829         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
830         that it is walking a PHI node.
831
832 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
833
834         * doc/extend.texi (Nested Functions): Update.
835
836 2005-02-01  Richard Henderson  <rth@redhat.com>
837
838         PR 19696
839         * optabs.c (expand_copysign_absneg): Export.
840         * optabs.h (expand_copysign_absneg): Declare.
841         * config/rs6000/rs6000.md (copysigntf3): New.
842
843 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
844
845         PR tree-optimization/19633
846         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
847         * tree-ssa-alias.c (init_alias_info): Initialize.
848         (merge_pointed_to_info): Set.
849         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
850         (dump_points_to_info_for): Show value of pt_null.
851         (struct count_ptr_d): Declare.
852         (find_ptr_dereference): Remove.
853         (ptr_is_dereferenced_by): Remove.
854         (count_ptr_derefs): New local function.
855         (count_uses_and_derefs): New local function.
856         (compute_points_to_and_addr_escape): Call it.  If the number
857         of dereferences is greater than zero, mark the pointer as
858         dereferenced.  If there are fewer dereferences than uses of
859         the pointer, the pointer's value escapes.
860
861 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
862
863         PR tree-optimization/19670
864         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
865         here...
866         (verify_use): ... set it here, instead.
867
868 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
869
870         * doc/sourcebuild.texi (Test directives): Fix formatting.
871
872         * doc/sourcebuild.texi (Test directives): Describe selector
873         expressions.
874
875 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
876
877         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
878         specific 64-bit CPUs.
879
880 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
881
882         PR target/16201
883         * arm.c (arm_eliminable_register): New function.
884         (adjacent_mem_locations): Don't allow eliminable registers.  Use
885         HOST_WIDE_INT for address offsets.
886         * arm-protos.h (arm_eliminable_register): Add prototype.
887
888 2005-02-01  Steven Bosscher  <stevenb@suse.de>
889
890         PR optimization/15242
891         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
892         * basic-block.h (duplicate_computed_gotos): Add prototype.
893         * bb-reorder.c (duplicate_computed_gotos): New function to
894         duplicate sufficiently small blocks ending in a computed jump.
895         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
896         if not optimizing for size.
897         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
898         never do tail merging for blocks ending in a computed jump.
899         * doc/invoke.texi: Document the max-goto-duplication-insns param.
900
901 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
902
903         Patch from Richard Sandiford <rsandifo@redhat.com>
904         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
905         from inheriting a subreg equivalence with a non-spill register.
906
907         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
908
909 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
910
911         * config/frv/frv.c (movcc_fp_destination_operand): New.
912         (gpr_or_memory_operand): Fix typo in comment.
913         (gpr_or_memory_operand_with_scratch): New.
914         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
915         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
916         movcc_fp_destination_operand.
917         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
918         Legitimize memory addresses using a scratch register.
919
920 2005-01-31  Jeff Law  <law@redhat.com>
921
922         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
923         bitmap a sparse bitmap instead of a simple bitmap.
924         (mark_def_sites_initialize_block):  Corresponding changes.
925         (ssa_mark_def_sites_initialize_block): Likewise.
926         (ssa_mark_phi_uses): Likewise.
927         (mark_def_site, ssa_mark_def_sites): Likewise.
928         (mark_def_site_blocks): Likewise.
929         (rewrite_ssa_into_ssa): Likewise.
930
931         * tree-ssa-dom.c (record_cond): Pass correct variable type
932         for last argument to htab_find_slot_with_hash.
933
934         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
935         effects when optimizing 0 % X.  Do not try to optimize X % 0.
936
937 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
938
939         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
940         1_mmalua.
941
942 2005-02-01  Eric Christopher  <echristo@redhat.com>
943
944         * config/mips/mips.c (override_options): Warn if -mint64
945         is used.
946         * doc/invoke.texi (MIPS Options): Document that -mint64 is
947         deprecated.
948
949 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
950
951         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
952         timestamp.
953         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
954         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
955         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
956         (cached_regno): Initialize to INVALID_REGNUM.
957         (cse_reg_info_table_size,
958         cse_reg_info_table_first_uninitialized,
959         cse_reg_info_timestamp): New.
960         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
961         get_cse_reg_info.
962         (init_cse_reg_info, get_cse_reg_info_1): New.
963         (get_cse_reg_info): Cache the last look-up.
964         (new_basic_block): Update the code to clear mappings from
965         registers to cse_reg_info entries.
966         (cse_main): Call init_cse_reg_info.
967
968         * cse.c (get_cse_reg_info): Update a comment.
969
970 2005-01-31  Steven Bosscher  <stevenb@suse.de>
971
972         PR c/19333
973         * c-decl.c (start_decl): Do not warn about arrays of elements with
974         an incomplete type here.
975         (grokdeclarator): Do it here by making a pedwarn an error.
976         * c-typeck.c (push_init_level): If there were previous errors with
977         the constructor type, do not warn about braces for initializers.
978         (process_init_element): Likewise for excess initializer elements.
979
980 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
981
982         * cse.c (delete_trivially_dead_insn): Don't iterate.
983
984 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
985
986         * config/rs6000/rs6000.md (copysignsf3): New expand.
987         (copysigndf3): Likewise.
988
989 2005-01-31  Steven Bosscher  <stevenb@suse.de>
990
991         * recog.c (constrain_operands): Only look for earlyclobber operand
992         conflicts if an '&' constraint was seen.
993
994 2005-01-31  Marc Espie <espie@openbsd.org>
995
996         * config.gcc: Don't include embedded systems fragment, switches default
997         debugging format to ELF.
998         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no 
999         longer pick it up there.
1000
1001 2005-01-31  Dale Johannesen  <dalej@apple.com>
1002         
1003         * doc/extend.texi (nested functions): Fix linkage description.
1004         Clarify that static is not allowed.
1005
1006 2005-01-31  Dale Johannesen  <dalej@apple.com>
1007         
1008         * config/rs6000/darwin.md (movsf_low_di):  Make work.
1009         (movdf_low_di):  Make work.
1010
1011 2005-01-31  Dale Johannesen  <dalej@apple.com>
1012
1013         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
1014         Make work for 64 bit.
1015
1016 2005-01-31  Roger Sayle  <roger@eyesopen.com>
1017             Dale Johannesen  <dalej@apple.com>
1018
1019         PR middle-end/19650
1020         * fold-const.c (fold_binary_op_with_conditional_arg):
1021         Make types match original operands, before STRIP_NOPS.
1022
1023 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
1024
1025         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
1026         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
1027         (struct gcc_sigcontext): Delete.  Merge contents to..
1028         (struct gcc_ucontext): ..here.
1029         (get_sigcontext): Delete.
1030         (get_regs): New function, like get_sigcontext but return regs ptr.
1031         64-bit version finds regs from r1 to support vdso.
1032         (ppc_linux_aux_vector): New function.
1033         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
1034         and vector regs.
1035
1036 2005-01-31  Ira Rosen  <irar@il.ibm.com>
1037
1038         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
1039         sizetype.
1040         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
1041         redundant fold. Fix misalignment for MINUS_EXPR.
1042         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
1043         (vect_analyze_pointer_ref_access): Likewise.
1044         (vect_get_memtag_and_dr): Likewise.
1045
1046 2005-01-31  Richard Henderson  <rth@redhat.com>
1047
1048         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
1049         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
1050         absnegdf2_i387, absnegxf2_i387): Likewise.
1051
1052 2005-01-31  Richard Henderson  <rth@redhat.com>
1053
1054         PR 19696
1055         * optabs.c (expand_copysign_absneg): New.
1056         (expand_copysign_bit): Split out from ...
1057         (expand_copysign): ... here.  Use expand_copysign_absneg.
1058
1059 2005-01-30  Roger Sayle  <roger@eyesopen.com>
1060
1061         PR middle-end/19697
1062         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
1063         constant as the second operand and a register as the third.
1064
1065 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
1066
1067         PR target/19704
1068         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
1069         that dllimport'd functions do not use all call-clobbered registers
1070         to pass parameters.
1071
1072 2005-01-30  Richard Henderson  <rth@redhat.com>
1073
1074         PR 19696
1075         * optabs.c (expand_absneg_bit): Split out from expand_unop and
1076         expand_abs_nojump and generalize.  Use operand_subword and
1077         emit_no_conflict_block.  Support large modes.
1078         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
1079         back to maximum.
1080         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
1081         negation to subtraction.
1082         (expand_copysign): Check that the format has signed zeros.
1083         Use operand_subword and emit_no_conflict_block.  Support large modes.
1084
1085 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
1086
1087         Fix PR tree-optimization/19624
1088         
1089         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
1090         * tree-ssa-pre.c: Add cfgloop.h.
1091         Update comment.
1092         (pre_stats): New member, constified.
1093         (inserted_exprs): New static variable.
1094         (NECESSARY): New macro.
1095         (create_expression_by_pieces): Fold the expression, and
1096         mark it as defaulting to not necessary. Also put in
1097         inserted_exprs.
1098         (fully_constant_expression): New function.
1099         (insert_into_preds_of_block): Modify to not insert phis when we
1100         are playing with induction variables.
1101         Push phis onto the inserted_exprs vector, and mark them as not
1102         necessary by default.
1103         (insert_aux): Call fully_constant_expression on eprime.
1104         If all edges produce the same value, mark it constant.
1105         (mark_operand_necessary): New function.
1106         (remove_dead_inserted_code): New function.
1107         (init_pre): Init loop optimizer to get loop info.
1108         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
1109         (execute_pre): Commit edge inserts, then remove dead code.
1110
1111 2005-01-30  Richard Henderson  <rth@redhat.com>
1112
1113         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
1114         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
1115
1116 2005-01-30  Richard Henderson  <rth@redhat.com>
1117
1118         PR target/19700
1119         * config/i386/i386.c (ix86_expand_copysign): New.
1120         (ix86_split_copysign_const): New.
1121         (ix86_split_copysign_var): Rename from ix86_split_copysign, 
1122         rearrange op1/nmask operands.
1123         * config/i386/i386-protos.h: Update.
1124         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
1125         (copysigndf3): Likewise.
1126         (copysignsf3_const, copysigndf3_const): New.
1127         (copysignsf3_var): Rename from copysignsf3, split out splitter
1128         and fix split predicate for X constraint.
1129         (copysigndf3_var): Similarly.
1130
1131 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
1132
1133         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
1134         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
1135         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
1136
1137 2005-01-29  Richard Henderson  <rth@redhat.com>
1138
1139         PR target/19690
1140         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
1141         of # and * in constraints.
1142
1143 2005-01-29  Richard Henderson  <rth@redhat.com>
1144
1145         PR middle-end/19689
1146         * expr.c (store_field): Don't strip sub-mode cast when the input
1147         data is even smaller.
1148
1149 2005-01-29  Richard Henderson  <rth@redhat.com>
1150
1151         PR middle-end/19687
1152         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
1153         union being empty.
1154
1155 2005-01-29  Richard Henderson  <rth@redhat.com>
1156
1157         * combine.c (make_field_assignment): Fix argument order
1158         to gen_int_mode.
1159
1160 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
1161
1162         PR tree-optimization/15791
1163         * fold-const.c (extract_array_ref): New function.
1164         (fold): Fold comparisons between &a[i] and &a[j] or
1165         semantically equivalent trees.
1166
1167 2005-01-29  Jeff Law  <law@redhat.com>
1168
1169         * gcse.c (insert_expr_in_table): Revamp handling of available
1170         and anticipatable occurrence lists to avoid unnecessary list
1171         walking.
1172         (insert_set_in_table): Similarly.
1173
1174 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
1175
1176         * c-common.c (fix_string_type): Just use c_build_qualified_type to
1177         build string type.
1178         (c_build_qualified_type): Build qualified array types with
1179         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
1180         * c-decl.c (c_make_fname_decl): Build unqualified array type
1181         before qualified type.
1182         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
1183         type is qualified, not just if type itself is.  Don't apply
1184         qualifiers to array type when declarator is processed.  Apply
1185         qualifiers to field type whether or not it is an array type.
1186         Don't handle array types specially for applying qualifiers to
1187         variables.
1188         * c-typeck.c (composite_type): Build unqualified element type and
1189         array type when forming composite of array types.
1190         (common_pointer_type, comptypes, comp_target_types,
1191         type_lists_compatible_p, build_indirect_ref, build_array_ref,
1192         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
1193         types.
1194         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
1195         (args2) in variables a1 and a2.
1196
1197 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
1198
1199         * cse.c (n_elements_made, max_elements_made): Remove.
1200         (insert): Don't touch n_elements_made.
1201         (cse_main): Don't touch n_elements_made or max_elements_made.
1202
1203 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
1204
1205         PR target/15384
1206         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
1207         configuration part of dp-bit.c to be lost.
1208
1209 2005-01-28  Roger Sayle  <roger@eyesopen.com>
1210
1211         * expmed.c (expand_mult_highpart_optab): When attempting to use
1212         a non-widening multiplication in a wider mode, the operands need
1213         to be converted (zero or sign extended) to that mode.
1214
1215 2005-01-28  Ian Lance Taylor  <ian@airs.com>
1216
1217         PR middle-end/16558
1218         PR middle-end/19583
1219         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
1220         through if both operands fall through.
1221
1222 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
1223
1224         * cse.c (fold_rtx) <PC>: Don't optimize.
1225
1226 2005-01-28  Jeff Law  <law@redhat.com>
1227
1228         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
1229         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
1230
1231 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
1232
1233         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
1234         cse_reg_info_used_list_end): Remove.
1235         (cse_reg_info_list, cse_reg_info_list_free): New.
1236         (get_cse_reg_info): When allocating an instance of
1237         cse_reg_info, add it to the beginning of the cse_reg_info_list
1238         list.  Remove code to maintain cse_reg_info_used_list.
1239         (new_basic_block): Reset the free list to the beginning of
1240         cse_reg_info_list.
1241
1242 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
1243
1244         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
1245         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
1246         (frv_expand_mdpackh_builtin): New function.
1247         (frv_expand_builtin): Use it to expand __MDPACKH.
1248         * doc/extend.texi (__MDPACKH): Update documentation.
1249
1250 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
1251
1252         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
1253         SSE_FLOAT_MODE_P for use_sse computation.
1254
1255 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
1256
1257         PR target/19663
1258         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
1259
1260 2005-01-27  Richard Henderson  <rth@redhat.com>
1261
1262         * builtins.c (expand_builtin_copysign): New.
1263         (expand_builtin): Call it.
1264         * genopinit.c (optabs): Add copysign_optab.
1265         * optabs.c (init_optabs): Initialize it.
1266         (expand_copysign): New.
1267         * optabs.h (OTI_copysign, copysign_optab): New.
1268         (expand_copysign): Declare.
1269
1270         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
1271         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
1272
1273         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
1274         (ix86_expand_fp_absneg_operator): ... here.
1275         (ix86_split_copysign): New.
1276         * config/i386/i386-protos.h: Update.
1277         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
1278         (copysignsf3, copysigndf3): New.
1279
1280         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
1281         (copysignsf3, ncopysignsf3): New.
1282         (copysigndf3, ncopysigndf3): New.
1283         (copysignxf3, ncopysignxf3): New.
1284         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
1285
1286 2005-01-27  Arend Bayer  <arend.bayer@web.de>
1287             Kazu Hirata  <kazu@cs.umass.edu>
1288
1289         * cse.c: (find_best_addr): Don't call copy_rtx before calling
1290         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
1291         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
1292         NULL_RTX.
1293
1294 2005-01-27  Jeff Law  <law@redhat.com>
1295
1296         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
1297         definitions of SSA_NAMEs which are not being rewritten.
1298         (rewrite_ssa_into_ssa): Only initialize the current definition
1299         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
1300         If checking is enabled, assert that SSA_NAME_AUX is clear for all
1301         SSA_NAMEs before returning.
1302
1303 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
1304
1305         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
1306         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
1307         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
1308         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
1309         config/mips/iris6.h, config/sh/sh.c: Update copyright.
1310
1311 2005-01-27  Steven Bosscher  <stevenb@suse.de>
1312
1313         PR middle-end/17278
1314         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
1315         higher to -O2 and higher.  Likewise for tree PRE.
1316         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
1317         and better.
1318
1319 2005-01-27  Ian Lance Taylor  <ian@airs.com>
1320
1321         PR middle-end/19583
1322         * gimple-low.c (try_catch_may_fallthru): New static function.
1323         (block_may_fallthru): Handle TRY_CATCH_EXPR.
1324         * tree-inline.c (expand_call_inline): Don't warn about reaching
1325         the end of a non-void function being inlined if the function uses
1326         a return slot.
1327
1328 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
1329
1330         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
1331
1332         PR c/18946
1333         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
1334         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
1335         (implicitly_declare): Handle error_mark_node.
1336
1337 2005-01-27  Richard Henderson  <rth@redhat.com>
1338
1339         PR tree-opt/14329
1340         * tree.h (struct tree_decl): Add debug_expr_is_from.
1341         (DECL_DEBUG_EXPR_IS_FROM): New.
1342         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
1343         * dwarf2out.c (dwarf2out_var_location): Update to match.
1344         * tree-outof-ssa.c (create_temp): Likewise.
1345         * var-tracking.c (track_expr_p): Likewise.
1346         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
1347         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
1348         * toplev.c (default_tree_printer): Likewise.
1349
1350 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
1351
1352         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
1353         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
1354
1355 2005-01-27  Steven Bosscher  <stevenb@suse.de>
1356
1357         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
1358         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
1359         ASM_CLOBBERS): Add tree checks.
1360
1361         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
1362         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
1363         * c-common.def (SWITCH_STMT): Update to match.
1364         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
1365         macros instead of SWITCH_EXPR ones.
1366         * c-dump.c (c_dump_tree): Likewise.
1367         * c-gimplify.c (gimplify_switch_stmt): Likewise.
1368         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
1369
1370         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
1371
1372 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
1373
1374         * unwind-dw2.c (execute_stack_op): Add missing cases for
1375         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
1376
1377 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1378
1379         * config.gcc (Obsolete configurations): Remove 'dummy', add
1380         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
1381         sparc-*-openbsd*.
1382
1383 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
1384
1385         PR tree-optimization/19633
1386         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
1387         CALL_EXPRs.
1388         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
1389         are no call-clobbered variables.
1390         * tree-outof-ssa.c (check_replaceable): Return false for calls
1391         with side-effects.
1392
1393 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
1394
1395         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
1396         even for variables with NULL DECL_INITIAL.
1397
1398 2005-01-26  Stuart Hastings  <stuart@apple.com>
1399
1400         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
1401
1402 2005-01-26  Richard Henderson  <rth@redhat.com>
1403
1404         PR middle-end/18008
1405         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
1406         field's type.
1407         * expr.c (store_field): Strip conversions to odd-bit-sized types
1408         if the destination field width matches.
1409
1410 2005-01-26  Richard Henderson  <rth@redhat.com>
1411
1412         * c-decl.c, expmed.c, expr.c: Revert last change.
1413
1414 2005-01-26  Richard Henderson  <rth@redhat.com>
1415
1416         PR middle-end/18008
1417         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
1418         field's type.
1419         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
1420         if we don't need the bits above those present in the current mode.
1421         * expr.c (store_field): Strip conversions to odd-bit-sized types
1422         if the destination field width matches.
1423
1424 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
1425
1426         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
1427         either -ffast-math or -funsafe-math-optimizations is in use.
1428
1429 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1430
1431         PR target/19293
1432         PR target/19329
1433         * config/avr/avr.c (notice_update_cc): Only set condition code for
1434         ashrqi3 if shift count > 0.
1435         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
1436         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
1437         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
1438         count <= 0 as a no-op, and shift count >= width by copying zero
1439         or sign bit to all bits of the result.
1440         * config/avr/avr.md (all shifts): Add alternatives for zero shift
1441         count, with attribute "length" set to 0 and "cc" set to "none".
1442
1443 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
1444
1445         * doc/invoke.texi: Document -mTLS.
1446
1447         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
1448         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
1449         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
1450         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
1451         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
1452         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
1453         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
1454         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
1455
1456         * configure.ac: Check for a TLS capable gas.
1457
1458         * configure: Regenerate.
1459
1460 2005-01-26  Richard Henderson  <rth@redhat.com>
1461
1462         PR middle-end/18008
1463         * combine.c (make_field_assignment): Simplify store to zero_extract
1464         from a source with an overlapping mask.
1465
1466 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
1467
1468         2004-11-11  Eric Christopher  <echristo@redhat.com>
1469
1470         * config/frv/frv.md: Add fr400_integer automaton. Don't
1471         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
1472         to TYPE_MACC.
1473
1474 2005-01-26  Steven Bosscher  <stevenb@suse.de>
1475
1476         PR middle-end/16585
1477         * cfgbuild.c (make_edges): Do not clear or set
1478         current_function_has_computed_jump.
1479         * function.h (struct function): Remove the has_computed_jump field.
1480         (current_function_has_computed_jump): Do not define.
1481         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
1482         in a computed jump.  Ignore current_function_has_computed_jump.
1483
1484 2005-01-26  Richard Henderson  <rth@redhat.com>
1485
1486         PR middle-end/19515
1487         * expr.c (categorize_ctor_elements): New argument p_must_clear.
1488         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
1489         fully initialized.
1490         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
1491         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
1492         objects into static storage if they have more than one non-zero value.
1493         * tree.h (categorize_ctor_elements): Update decl.
1494
1495 2005-01-26  Steven Bosscher  <stevenb@suse.de>
1496
1497         PR middle-end/19616     
1498         * tree.h (CALL_EXPR_TAILCALL): Add comment.
1499         * calls.c (check_sibcall_argument_overlap_1): Revert the change
1500         to this function from 2004-07-10.
1501         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
1502         the current function for tail call optimizations if the address
1503         of one of it its arguments is taken.
1504
1505 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
1506
1507         * cse.c (fold_rtx): Call equiv_constant only when necessary.
1508
1509 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
1510
1511         * function.c (expand_function_end): If current_function_calls_alloca,
1512         emit stack restore in a place that is reached when the function falls
1513         through at the end.
1514
1515 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
1516
1517         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
1518         rule to avoid matching inappropriate suffix rule.
1519
1520 2005-01-26  Jan Hubicka  <jh@suse.cz>
1521
1522         PR tree-optimization/19241
1523         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
1524
1525 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
1526
1527         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
1528         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
1529         of doubling.
1530         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
1531         <sim*>: Always use crt1.o, regardless of N in simN.
1532         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
1533         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
1534         (CRT_CALL_STATIC_FUNCTION): Remove.
1535         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
1536         use crt1.o, regardless of N in simN.
1537         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
1538         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
1539         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
1540         case isystem setting.
1541         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
1542
1543 2005-01-25  Ian Lance Taylor  <ian@airs.com>
1544
1545         * gimple-low.c (block_may_fallthru): Correct handling of
1546         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
1547
1548 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
1549
1550         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
1551         handlers to match indentation; nested under the mtune=* handler.
1552         Similar for mcpu= and march=.
1553
1554 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
1555
1556         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
1557         * config/mips/linux64.h (LIB_SPEC): Likewise.
1558         * config/mn10300/linux.h (LIB_SPEC): Likewise.
1559         * config/sh/linux.h (LIB_SPEC): Likewise.
1560
1561 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
1562
1563         * config/frv/frv.c (frv_legitimize_tls_address): New.
1564         (TARGET_HAVE_TLS): Define.
1565         (FRV_SYMBOL_REF_TLS_P): Define.
1566         (frv_override_options): Handle new register classes.
1567         (frv_legitimate_address_p): Reject tls addresses.
1568         (frv_legitimize_address): Handle TLS addresses.
1569         (gen_inlined_tls_plt): New.
1570         (gen_tlsmoff): New.
1571         (frv_legitimize_tls_address): New.
1572         (unspec_got_name): Add TLS entries.
1573         (got12_operand): Add R_FRV_TLSMOFF12 case.
1574         (frv_emit_move): Fixup TLS addresses.
1575         (frv_emit_movsi): Legitimize TLS addresses.
1576
1577         * config/frv/frv.h (MASK_BIG_TLS): New.
1578         (TARGET_BIG_TLS): New.
1579         (HAVE_AS_TLS): Define.
1580         (TARGET_SWITCHES): Add -mTLS and -mtls options.
1581         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
1582         (REG_CLASS_NAMES): Same.
1583         (REG_CLASS_CONTENTS): Same.
1584         (CONSTRAINT_LEN): New.
1585         (REG_CLASS_FROM_CONSTRAINT): New.
1586         (PREDICATE_CODES): Add symbolic_operand.
1587
1588         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
1589         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
1590         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
1591         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
1592         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
1593         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
1594         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
1595         GR9_REG, GR14_REG, LRREG.
1596         (type): Add load_or_call attribute.
1597         ("load_or_call"): New reservation.
1598         ("call_gettlsoff"): New.
1599         ("tls_indirect_call"): New.
1600         ("tls_load_gottlsoff12"): New.
1601         ("tlsoff_hilo"): New.
1602         ("tls_tlsdesc_ldd"): New.
1603         ("tls_tlsoff_ld"): New.
1604         ("tls_lddi"): New.
1605
1606         * config/frv/frv-protos.h (symbolic_operand): Protoize.
1607
1608         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
1609
1610         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1611         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
1612         * config/frv/frv.c (TLS_BIAS): Define.
1613         (frv_output_dwarf_dtprel): New.
1614
1615 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
1616
1617         PR rtl-optimization/19579
1618         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
1619         both A and B, see if they don't clobber registers the other expr uses.
1620
1621 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
1622
1623         * real.c (do_add): Initialize signalling and canonical members.
1624
1625         * real.c (real_from_integer): Zero out destination.
1626
1627 2005-01-18  Jan Hubicka  <jh@suse.cz>
1628
1629         PR tree-optimize/19337
1630         * tree-inline.c (initialize_inlined_parameters): Copy
1631         saved_static_chain_decl only.
1632
1633 2005-01-25  Richard Henderson  <rth@redhat.com>
1634
1635         PR target/19556
1636         PR target/19584
1637         * config/i386/i386.c (x86_inter_unit_moves): Zero.
1638         (ix86_preferred_reload_class): Rewrite fp-constant section, with
1639         80387 enabled, to return a proper subclass.  Return the subset that
1640         overlaps with GENERAL_REGS for PLUS.
1641         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
1642
1643 2005-01-25  Richard Henderson  <rth@redhat.com>
1644
1645         PR middle-end/19609
1646         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
1647
1648 2005-01-25  Roger Sayle  <roger@eyesopen.com>
1649
1650         * expmed.c (choose_multiplier): Change interface to return the
1651         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
1652         (expand_divmod): Update calls to choose_multiplier.
1653
1654 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1655
1656         PR middle-end/19330
1657         * expmed.c (extract_bit_field): Use adjust_address instead of
1658         gen_lowpart when op0 is a MEM.
1659
1660 2005-01-24  Steven Bosscher  <stevenb@suse.de>
1661
1662         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
1663
1664 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
1665
1666         * config/mips/irix-csr.c: New file.
1667         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
1668         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
1669         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
1670         executables.
1671
1672 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1673
1674         PR bootstrap/19364
1675         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
1676         sparc/elf.h, add sparc/sp-elf.h.
1677         (sparc-*-rtems*): Likewise.
1678         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
1679         tm-dwarf2.h, add sparc/sp-elf.h.
1680         (sparc86x-*-elf): Likewise.
1681         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
1682         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
1683         TARGET_OS_CPP_BUILTINS.
1684         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
1685         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
1686         Undefine it.
1687         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
1688         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
1689         (SWITCH_TAKES_ARG): Likewise.
1690         (LOCAL_LABEL_PREFIX): Likewise.
1691         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1692         (TARGET_N_FORMAT_TYPES): Delete.
1693         (TARGET_FORMAT_TYPES): Likewise.
1694         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
1695         * config/sparc/elf.h: Delete.
1696         * config/sparc/sp-elf.h: New file.
1697
1698 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1699
1700         * tree-flow-inline.h (phi_arg_from_edge): Remove.
1701         * tree-flow.h: Remove the corresponding prototype.
1702         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
1703         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
1704
1705 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
1706
1707         PR target/17751
1708         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
1709         for AIX ABI or ELF -fPIC.
1710         (rs6000_emit_load_toc_table): Don't create toc_section here.
1711         (rs6000_xcoff_file_start): Nor here.
1712
1713 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
1714
1715         * sh.c (ra.h): Don't #include.
1716         (hard_regs_intersect_p): New function, resurrected from ra.c.
1717
1718         * sh.c: Fix 1996 Copyright.
1719
1720 2005-01-24  Richard Henderson  <rth@redhat.com>
1721             Aldy Hernandez  <aldyh@redhat.com>
1722
1723         * regrename.c (note_sets): Handle subregs.
1724
1725 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
1726
1727         PR bootstrap/18058
1728         * genconditions.c (write_header, write_conditions): Elide file if
1729         not GCC >= 3.0.1.
1730
1731 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
1732
1733         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
1734         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
1735         Update copyright.
1736
1737 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
1738
1739         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
1740         expand_builtin_printf, expand_builtin_fprintf,
1741         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
1742         checking against POINTER_TYPE.
1743         (validate_arglist): Handle POINTER_TYPE code by checking
1744         POINTER_TYPE_P.
1745
1746 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
1747
1748         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
1749         init_rtlanal): New.
1750         (for_each_rtx): Call for_each_rtx_1.
1751         * rtl.h (init_rtlanal): Declare.
1752         * toplev.c (backend_init): Call init_rtlanal.
1753
1754 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * flow.c (propagate_one_insn): Formatting.
1757
1758         PR middle-end/19551
1759         * flow.c (libcall_dead_p): Be more conservative if unsure.
1760         If there are any instructions between insn and call, see if they are
1761         all dead before saying the libcall is dead.
1762
1763 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
1764
1765         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
1766         operand constraint for operand 0.
1767
1768 2005-01-23  Richard Henderson  <rth@redhat.com>
1769
1770         PR 19486
1771         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
1772         edges leading to join block.
1773
1774 2005-01-23  Roger Sayle  <roger@eyesopen.com>
1775
1776         * expmed.c (expand_mult_highpart): Make static.  Change type of
1777         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
1778         (expand_divmod): Updates calls to expand_mult_highpart by using
1779         gen_int_mode to pass a CONST_INT rtx.
1780         * rtl.h (expand_mult_highpart): Remove prototype.
1781
1782 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
1783
1784         * flow.c (regset_bytes, regset_size): Remove.
1785
1786         * cfganal.c: Fix a reference to Harvey's paper.
1787
1788 2005-01-23  Steven Bosscher  <stevenb@suse.de>
1789
1790         PR rtl-optimization/19464
1791         * tree-optimize.c (init_tree_optimization_passes): Add one more
1792         copyrename pass just before out-of-ssa.
1793
1794 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
1795
1796         PR bootstrap/18058
1797         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
1798         * ggc-none.c (ggc_free): Define.
1799
1800 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
1801
1802         * cse.c (max_reg, max_insn_uid): Remove.
1803         (cse_main): Don't access max_reg or max_insn_uid.
1804
1805         * c-common.c (explicit_flag_signed_bitfields,
1806         lang_statement_code_p, lang_expand_function_end): Remove.
1807         * c-common.h: Remove the corresponding declarations.
1808         * c-opts.c (c_common_handle_option): Remove all write access
1809         to explicit_flag_signed_bitfields.
1810
1811         * cgraph.c (cgraph_varpool_n_nodes): Remove.
1812         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
1813         * cgraph.h: Remove the corresponding declaration.
1814
1815         * gcse.c (null_pointer_info): Remove.
1816
1817 2005-01-23  Roger Sayle  <roger@eyesopen.com>
1818             Eric Botcazou  <ebotcazou@libertysurf.fr>
1819
1820         * combine.c (simplify_logical): Only simplify logical expressions
1821         of the form ior(and(x,y),z) by the inverse distributive law if the
1822         result is cheaper than the original.
1823
1824 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
1825
1826         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
1827         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
1828         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
1829         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
1830         config/freebsd-spec.h, config/arm/arm.h,
1831         config/h8300/h8300.md, config/i386/i386.md,
1832         config/i386/predicates.md, config/i386/sse.md,
1833         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
1834         config/vax/vax.md: Fix comment typos.  Follow spelling
1835         conventions.
1836
1837 2005-01-23  Steven Bosscher  <stevenb@suse.de>
1838
1839         * gengtype.c (walk_type): Produce `not equal to' compares for loop
1840         tests, instead of `less than'.
1841
1842 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
1843
1844         * function.c (assign_parm_setup_block): When creating a new stack slot
1845         for a parameter, get its alignment from the parameter's DECL_ALIGN
1846         rather than the type's TYPE_ALIGN.  Make sure that the parameter
1847         is at least word aligned.
1848
1849 2005-01-22  Roger Sayle  <roger@eyesopen.com>
1850
1851         PR middle-end/19378
1852         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1853
1854 2005-01-22  Richard Henderson  <rth@redhat.com>
1855
1856         PR target/19506
1857         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
1858         in both compare operands.
1859         (movdfcc_1_sse_max): Likewise.
1860         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
1861         (movdfcc_1_sse): Likewise.
1862         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
1863         scratch register as needed.
1864
1865 2005-01-22  Richard Henderson  <rth@redhat.com>
1866
1867         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
1868
1869         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
1870
1871 2005-01-22  Richard Henderson  <rth@redhat.com>
1872
1873         * genopinit.c (optabs): Use smin/smax for floating point too.
1874         * doc/md.texi: Update to match.  Clarify that floating point
1875         results are undefined for +0/-0 and NaN.
1876         * doc/rtl.texi: Likewise.
1877         * rtl.def (SMIN, SMAX): Likewise
1878         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
1879
1880         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
1881         leading 's' to the name.
1882         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
1883         smaxxf3, sminxf3): Likewise.
1884         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
1885         Likewise.
1886
1887 2005-01-22  Paul Brook  <paul@codesourcery.com>
1888
1889         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
1890
1891 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
1892
1893         * config/s390/s390.c (struct processor_costs): New fields 
1894         dlgr, dlr, dr, dsgfr, dsgr.
1895         (z900_cost, z990_cost): Values for new fields.
1896         (s390_rtx_costs): New cases MEM und COMPARE in switch
1897         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
1898         DIV, MOD, UDIV, UMOD.
1899
1900 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
1901
1902         * config/s390/s390.md ("doloop_si64"): Reload input value directly
1903         into the register being decremented.
1904         ("doloop_si31", "doloop_di"): Likewise.
1905         ("*doloop_si_long"): Adapt pattern.
1906
1907 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
1908
1909         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
1910         access registers.
1911         (CLASS_MAX_NREGS): Likewise.
1912
1913 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
1914
1915         * doc/tree-ssa.texi (Statement Operands): Add example for new
1916         must-def macro. Note deprecation of old operands interface.
1917
1918 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
1919
1920         PR tree-optimization/19484
1921         * tree-cfg.c (remove_fallthru_edge): New function.
1922         (cleanup_control_flow): Remove fallthru edges from calls that are
1923         now known not to return.
1924
1925 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
1926
1927         Fix PR tree-optimization/19038
1928         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
1929         copies with loop variant ones.
1930
1931 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
1932
1933         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
1934         config/alpha/alpha-protos.h, config/alpha/alpha.h,
1935         config/alpha/alpha.md, config/alpha/predicates.md,
1936         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
1937         config/sparc/sol2.h: Update copyright.
1938
1939         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
1940         first label to see if it is a nonlocal label.
1941
1942 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
1943             Andrew Pinski  <pinskia@physics.uc.edu>
1944
1945         PR target/19491
1946         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
1947         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
1948
1949 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
1950
1951         * config/rs6000/rtems.h: Update copyright.
1952
1953 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
1954
1955         PR target/19548
1956         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
1957         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
1958         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
1959
1960 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1961
1962         PR c/18809
1963         * c-typeck.c (convert_arguments): Check for error_mark_node.
1964
1965 2005-01-21  Ian Lance Taylor  <ian@airs.com>
1966
1967         PR tree-optimization/13000
1968         * tree-inline.c: Include "tree-flow.h".
1969         (expand_call_inline): If warn_return_type, warn if non-void inline
1970         function falls through.
1971         * tree-cfg.c (execute_warn_function_return): Don't warn about
1972         control reaching end if TREE_NO_WARNING is set.  Set
1973         TREE_NO_WARNING.
1974         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
1975         has been lowered.
1976         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
1977         branch if we don't need one.
1978         * c-typeck.c: Include "tree-flow.h"
1979         (c_finish_bc_stmt): Don't add a goto if the current statement
1980         list doesn't fall through to the current point.
1981
1982 2005-01-21  Roger Sayle  <roger@eyesopen.com>
1983
1984         PR rtl-optimization/576
1985         * real.c (real_arithmetic): Change return type from void to bool
1986         to return an indication that the result may be inexact.
1987         * real.h (real_arithmeric): Update prototype.
1988         * fold-const.c (const_binop):  Don't constant fold floating
1989         point expressions when the user specifies -frounding-math and
1990         the result may depend upon the run-time rounding mode.
1991         (fold_convert_const_real_from_real): Clean-up.
1992         (fold_initializer): Ignore flag_rounding_math for initializers.
1993         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
1994         constant fold FP operations with flag_rounding_math if the
1995         result may depend upon the run-time rounding mode.
1996
1997 2005-01-21  Tom Tromey  <tromey@redhat.com>
1998
1999         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
2000
2001 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
2002
2003         * tree-cfg.c: Fix comment typos.
2004
2005 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
2006
2007         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
2008         around the call to rest_of_handle_branch_target_load_optimize.
2009
2010 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2011
2012         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
2013         (sparc64-*-openbsd*): Likewise.
2014         (sparclite-*-elf*): Include tm-dwarf2.h.
2015         (sparc86x-*-elf*): Likewise.
2016         (sparc64-*-elf*): Likewise.
2017         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
2018         (DBX_DEBUGGING_INFO): Likewise.
2019         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
2020         (PREFERRED_DEBUGGING_TYPE): Likewise.
2021         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2022         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
2023         (PREFERRED_DEBUGGING_TYPE): Likewise.
2024         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
2025         (PREFERRED_DEBUGGING_TYPE): Likewise.
2026         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
2027
2028 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
2029
2030         PR target/18701
2031         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
2032
2033 2005-01-20  Paul Brook  <paul@codesourcery.com>
2034
2035         * doc/rtl.texi: Document value extension requirements for CONST_INT.
2036
2037 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
2038
2039         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
2040         label is first in a sequence of labels.
2041
2042         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
2043
2044 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
2045             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2046
2047         * doc/sourcebuild.texi (Test Directives): New.
2048
2049 2005-01-20  Roger Sayle  <roger@eyesopen.com>
2050
2051         * real.c (real_floor): Don't leave the result uninitialized when
2052         mode is VOIDMode, but return the unrounded intermediate value.
2053         (real_ceil): Likewise.
2054
2055 2005-01-20  Paul Brook  <paul@codesourcery.com>
2056
2057         * config/arm/arm.md (insv): Use gen_int_mode.
2058
2059 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2060
2061         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
2062         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
2063         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
2064         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
2065         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
2066
2067 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
2068
2069         Fix PR debug/19124
2070         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
2071         fbreg, so we have to assume we can't.
2072         (loc_descriptor_from_tree_1): Ditto.
2073         (containing_function_has_frame_base): New function.
2074         (add_location_or_const_value_attribute): Use it.
2075         Also try to generate a frame_base from a single element location
2076         list.
2077         
2078 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
2079
2080         PR tree-optimization/15349
2081         * timevar.def (TV_TREE_MERGE_PHI): New.
2082         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
2083         PHI_WANTED.
2084         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
2085         calls to tree_forwarder_block_p.
2086         (remove_forwarder_block_with_phi, merge_phi_nodes,
2087         gate_merge_phi, pass_merge_phi): New.
2088         * tree-optimize.c (init_tree_optimization_passes): Add
2089         pass_merge_phi.
2090         * tree-pass.h: Add an extern for pass_merge_phi;
2091
2092 2005-01-20  Richard Henderson  <rth@redhat.com>
2093
2094         PR target/19418
2095         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
2096         (_mm_castps_pd, _mm_castps_si128): New.
2097         (_mm_castsi128_ps, _mm_castsi128_pd): New.
2098
2099 2005-01-20  Richard Henderson  <rth@redhat.com>
2100
2101         PR target/19530
2102         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
2103         __builtin_ia32_vec_init_v2si.
2104         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
2105         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
2106         (ix86_init_mmx_sse_builtins): Create it.
2107         (ix86_expand_builtin): Expand it.
2108         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
2109         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
2110         (vec_extractv2si_0, vec_extractv2si_1): New.
2111
2112 2005-01-20  Richard Henderson  <rth@redhat.com>
2113
2114         PR target/16533
2115         * config/i386/i386.c (ix86_expand_push): New.
2116         * config/i386/mmx.md (push<MMXMODE>1): New.
2117         * config/i386/sse.md (push<SSEMODE>1): New.
2118         * config/i386/i386-protos.h: Update.
2119
2120 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
2121
2122         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
2123         copyright.
2124
2125 2005-01-20  Richard Henderson  <rth@redhat.com>
2126
2127         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
2128         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
2129
2130 2005-01-19  Richard Henderson  <rth@redhat.com>
2131
2132         PR target/19350
2133         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
2134         to V4SFmode in SSE1 fallback load path.
2135
2136 2005-01-19  Richard Henderson  <rth@redhat.com>
2137
2138         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
2139         in QImode expansion to ix86_expand_vector_set.
2140         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
2141
2142 2005-01-19  Richard Henderson  <rth@redhat.com>
2143
2144         PR target/19511
2145         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
2146         subclass of the input class.
2147         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
2148         Always true for cross-SSE1 classes.  Rationalize conditionals.
2149         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
2150         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
2151         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
2152         (movdi_2): Add MMX/SSE zeros.
2153         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
2154         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
2155         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
2156         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
2157         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
2158         (zero_extendsidi2_rex64_1): Remove.
2159         (MOV0 peephole): Check GENERAL_REG_P.
2160
2161 2005-01-19  Richard Henderson  <rth@redhat.com>
2162
2163         PR target/19427
2164         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
2165         shufps elements.
2166         (ix86_expand_vector_extract): Likewise.
2167
2168 2005-01-19  Richard Henderson  <rth@redhat.com>
2169
2170         PR middle-end/19304
2171         * expr.c (emit_move_change_mode): New argument force; use
2172         simplify_gen_subreg if true.
2173         (emit_move_via_alt_mode): Merge into ...
2174         (emit_move_via_integer): ... here.
2175         (emit_move_ccmode): Use emit_move_change_mode directly.
2176
2177 2005-01-19  Richard Henderson  <rth@redhat.com>
2178
2179         PR target/19518
2180         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
2181         (alpha_preferred_reload_class): Handle CONST_VECTOR.
2182         (alpha_emit_set_const_1): Add no_output parameter; don't emit
2183         rtl if true.
2184         (alpha_emit_set_const): Likewise.  Make static.
2185         (alpha_emit_set_long_const): Make static.
2186         (alpha_extract_integer): Split out from alpha_expand_mov.
2187         (alpha_split_const_mov): Likewise.
2188         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
2189         (alpha_legitimate_constant_p): New.
2190         * config/alpha/alpha-protos.h: Update.
2191         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
2192         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
2193         * config/alpha/alpha.md (movsi): Add n alternative.
2194         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
2195         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
2196         (splitters for all of the above): Use alpha_split_const_mov.
2197         * config/alpha/predicates.md (non_add_const_operand): New.
2198         (non_zero_const_operand): New.
2199         (input_operand): Use alpha_legitimate_constant_p after reload.
2200
2201 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
2202
2203         PR tree-optimization/19038
2204         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
2205         (add_candidate): Add ivs with increment in latch only if
2206         allow_ip_end_pos_p is true.
2207         (determine_iv_cost): Use empty_block_p.
2208
2209 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
2210
2211         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
2212         (compute_dominance_frontiers): Ditto.
2213
2214 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2215
2216         PR target/19529
2217         * config/sh/t-rtems: New. 
2218         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
2219
2220 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
2221
2222         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
2223         the offset of the selected field.
2224
2225 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
2226
2227         * tree-cfg.c (remove_forwarder_block): Fix the check to
2228         prevent a nonlocal label from appearing in the middle of a
2229         basic block.
2230
2231 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
2232
2233         PR rtl-optimization/19462
2234         * reorg.c (find_end_label): Create return insn only if
2235         current_function_epilogue_delay_list is empty.
2236
2237 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
2238
2239         * doc/passes.texi: Remove paragraph mentioning new-ra.
2240
2241 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
2242
2243         PR rtl-optimization/15139
2244         * combine.c: Include params.h.
2245         (count_rtxs): New function.
2246         (record_value_for_reg): If replace_rtx would replace at least
2247         2 occurrences of REG in VALUE and TEM is really large, replace REG with
2248         (clobber (const_int 0)) instead of TEM.
2249         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
2250         * params.h (MAX_LAST_VALUE_RTL): New.
2251         * Makefile.in (combine.o): Depend on $(PARAMS_H).
2252         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
2253
2254         PR c/17297
2255         * c-typeck.c (digest_init): Only call build_vector if all constructor
2256         elements are *_CST nodes.
2257         * gimplify.c (gimplify_init_constructor): Likewise.
2258
2259         PR middle-end/19164
2260         * c-typeck.c (digest_init): Only call build_vector if inside_init
2261         is a CONSTRUCTOR.
2262
2263 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2264
2265         * toplev.c (init_asm_output): Remove dead #ifdef.
2266
2267 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2268
2269         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
2270
2271 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2272
2273         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
2274         accessing DECL_FUNCTION_CODE.
2275         * dojump.c (do_jump): Likewise.
2276         * gimplify.c (gimplify_call_expr): Likewise.
2277         * predict.c (expr_expected_value): Likewise.
2278         (strip_builtin_expect): Likewise.
2279         * tree-inline.c (estimate_num_insns_1): Likewise.
2280         * tree-ssa-loop-im.c (stmt_cost): Likewise
2281         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
2282         (tree_expr_nonnegative_p): Likewise.
2283
2284 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2285
2286         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
2287         variant of the load_pcrel_sym pattern.
2288         * config/sparc/sparc.md (P macro): Move to the top.
2289         (load_pcrel_sym): Macroize using P.
2290         (save_register_window): Likewise.
2291
2292 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
2293
2294         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
2295         ("sordered"): Same.
2296
2297 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
2298
2299         PR C/19472
2300         * c-typeck.c (build_asm_expr): Strip nops off
2301         input memory operands.
2302
2303 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
2304
2305         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
2306         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
2307         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
2308         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
2309
2310 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
2311
2312         PR target/19379
2313         * config/i386/i386.c (override_options): If the 80387 is disabled,
2314         then do not return FP values using FP registers.
2315
2316 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
2317
2318         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
2319         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
2320         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
2321         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
2322         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
2323         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
2324         output.h, postreload-gcse.c, postreload.c, recog.c,
2325         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
2326         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
2327         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
2328         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
2329         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
2330         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
2331         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
2332         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
2333
2334         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
2335         config/alpha/alpha.c, config/arm/vfp.md,
2336         config/i386/emmintrin.h, config/i386/i386-modes.def,
2337         config/i386/i386-protos.h, config/i386/i386.h,
2338         config/i386/pmmintrin.h, config/i386/ppro.md,
2339         config/i386/predicates.md, config/i386/xmmintrin.h,
2340         config/i860/i860.c, config/ia64/ia64-modes.def,
2341         config/ia64/ia64-protos.h, config/ia64/ia64.h,
2342         config/ia64/ia64.md, config/ia64/itanium1.md,
2343         config/ia64/itanium2.md, config/ia64/predicates.md,
2344         config/iq2000/iq2000.h, config/mips/linux64.h,
2345         config/rs6000/aix41.h, config/rs6000/aix43.h,
2346         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
2347         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2348         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
2349         config/sparc/linux64.h, config/sparc/litecoff.h,
2350         config/sparc/sp64-elf.h, config/sparc/sparc.c,
2351         config/sparc/sparc.h, config/sparc/sparc.md,
2352         config/sparc/sysv4-only.h: Update copyright.
2353
2354 2005-01-18  Richard Henderson  <rth@redhat.com>
2355
2356         PR target/19496
2357         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
2358
2359 2005-01-18  Marc Espie  <espie@openbsd.org>
2360         * config/i386/openbsdelf.h: Typo.
2361
2362 2005-01-18  Richard Henderson  <rth@redhat.com>
2363
2364         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
2365         special case for sse.
2366         * config/i386/predicates.md (sse_comparison_operator): Likewise.
2367
2368 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
2369
2370         * tree-inline.c (estimate_num_insns_1): Added cases for
2371         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
2372
2373 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2374
2375         PR rtl-optimization/19296
2376         * combine.c (simplify_comparison): Rewrite the condition under
2377         which a non-paradoxical SUBREG of a PLUS can be lifted when
2378         compared against a constant.
2379
2380 2005-01-18  Andi Kleen <ak@muc.de>
2381
2382         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
2383         * c.opt (-Wpointer-sign): Add.
2384         * doc/invoke.texi: (-Wpointer-sign): Add.
2385
2386 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
2387
2388         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
2389         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
2390         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
2391         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
2392         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
2393         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
2394         for TARGET_MIX_SSE_I387.
2395         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
2396         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
2397         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
2398         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
2399         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
2400         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
2401         TARGET_MIX_SSE_I387.
2402         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
2403         from expander.
2404
2405 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
2406
2407         PR target/19424
2408         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
2409         Add movaps alternative for xmm reg->reg move.
2410
2411 2005-01-17  Jeff Law  <law@redhat.com>
2412
2413         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
2414         at the end of the main DOM loop rather than just before DOM exits.
2415
2416 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
2417
2418         PR tree-optimization/19121
2419         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
2420         adding aliases to a name tag, also add them to the pointer's
2421         type tag.
2422         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
2423         sensitive alias info at all.  Only check that the two pointers
2424         have compatible pointed-to sets.
2425         * tree-ssa.c (verify_name_tags): Verify that the alias set of
2426         a pointer's type tag is a superset of the alias set of the
2427         pointer's name tag.
2428
2429 2005-01-17  James E Wilson  <wilson@specifixinc.com>
2430
2431         PR target/19357
2432         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
2433         comment to document why.
2434
2435 2005-01-17  Richard Henderson  <rth@redhat.com>
2436
2437         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
2438         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
2439         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
2440         sse2_vmsminv2df3_finite): New.
2441         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
2442         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
2443         Force op1 into register.
2444
2445 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
2446
2447         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
2448         bubblestrap from always rebuilding build directory.
2449
2450 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
2451
2452         * config/s390/s390.md ("*clc"): Remove incorrect '='.
2453         ("*cmpmem_short"): Likewise.
2454
2455 2005-01-17  Steven Bosscher  <stevenb@suse.de>
2456
2457         * basic-block.h: Document BB_* flags.
2458         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
2459         use an sbitmap instead.
2460         * sched-rgn.c (compute_trg_info): Likewise.
2461
2462 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
2463
2464         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
2465         redundant target_cpu_default and extra_parts lines.  Use the default
2466         "from-abi" ISA.
2467         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
2468         (SUBTARGET_EXTRA_SPECS): Delete.
2469         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
2470         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
2471         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
2472         and "n32" for -mabi=n32.
2473
2474 2005-01-17  Ian Lance Taylor  <ian@airs.com>
2475
2476         PR c/5675
2477         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
2478         fold constant variables into initial values.
2479
2480 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
2481
2482         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
2483
2484         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
2485         through the statements backward.
2486
2487 2005-01-17  Ian Lance Taylor  <ian@airs.com>
2488
2489         PR middle-end/13127:
2490         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
2491         a variable set to the return value of the inlined function.
2492
2493 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
2494
2495         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
2496         when modes are tieable.
2497
2498 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
2499
2500         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
2501         of pthread_create to find out if threads are enabled.
2502         * gthr-posix95.h (__gthread_active_p): Likewise.
2503
2504 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
2505
2506         * common.opt (-fnew-ra): Remove.
2507         * ra*.*: Remove.
2508         * toplev.h (flag_new_regalloc): Remove.
2509         * Makefile.in (ra*.*): Don't mention.
2510         * passes.c (rest_of_handle_new_regalloc): Remove.
2511         (rest_of_handle_combine, rest_of_compilation): Always consider
2512         flag_new_regalloc as false.
2513         * doc/invoke.texi: Don't document -fnew-ra.
2514
2515 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
2516
2517         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
2518         last parameter to reg_scan.
2519         * loop.c (loop_optimize): Likewise.
2520         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
2521         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
2522         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2523         rest_of_handle_gcse, rest_of_handle_loop_optimize,
2524         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
2525         * regclass.c (reg_scan): Likewise, for the declaration.
2526         * rtl.h (reg_scan): Likewise, for the prototype.
2527
2528 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
2529
2530         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
2531         mark_dfs_back_edges.
2532
2533 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
2534
2535         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
2536         (compute_avail): Uses don't go in tmp_gen.
2537
2538 2005-01-16  Steven Bosscher  <stevenb@suse.de>
2539
2540         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
2541         loop to look for a free slot in a page entry.
2542
2543 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2544
2545         PR target/16304
2546         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
2547         * toplev.c (compile_file): Call process_pending_assemble_output_defs
2548         just before targetm.asm_out.file_end.
2549         * tree.h (process_pending_assemble_output_defs): Declare.
2550         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
2551         New functions.
2552         (assemble_alias): Defer generation of assembly code for defines when
2553         TARGET_DEFERRED_OUTPUT_DEFS is true.
2554         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
2555         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
2556         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
2557
2558 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2559
2560         PR target/19336
2561         * pa.c (pa_scalar_mode_supported_p): New function.
2562         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2563         * pa.h (MIN_UNITS_PER_WORD): Add comment.
2564
2565         * pa-protos.h (prefetch_operand): Delete.
2566         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
2567         * pa.c (prefetch_operand): Delete.
2568         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
2569         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
2570         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
2571         and prefetch_nocc_operand.
2572         * pa.md (prefetch): Rework to avoid reload problems handling short
2573         displacements when a cache control completer needs to be provided.
2574         (prefetch_32, prefetch_64): Delete.
2575         (prefetch_cc, prefetch_nocc): New patterns.
2576
2577 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
2578
2579         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
2580
2581 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2582
2583         PR ada/19388
2584         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
2585         exceeds maximum alignment for global common data.
2586         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
2587         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
2588
2589 2004-01-15  Roger Sayle  <roger@eyesopen.com>
2590
2591         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
2592
2593 2004-01-15  Roger Sayle  <roger@eyesopen.com>
2594
2595         * harg-reg-set.h (reg_class_names): Prototype global array.
2596         * regclass.c (reg_class_names): Declare here and initialize to
2597         REG_CLASS_NAMES.
2598         (dump_regclass): Remove local declaration of reg_class_names.
2599         (regclass): Likewise.
2600         * cfg.c (dump_flow_info): Likewise.
2601         * ra-debug.c (reg_class_names): Likewise.
2602         * regrename.c (reg_class_names): Likewise.
2603         * reload.c (reg_class_names): Likewise.
2604         * reload1.c (spill_failure): Likewise.
2605         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
2606
2607 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
2608
2609         * config/s390/s390.md ("reload_outti"): Remove predicate for
2610         output operand.  Abort if operand is not a MEM.
2611         ("reload_outdi", "reload_outdf"): Likewise.
2612
2613 2005-01-15  Marc Espie  <espie@openbsd.org>
2614
2615         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
2616         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
2617         * config/openbsd.h:  Fix C++ includes for native configurations.
2618         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
2619         Add trampoline support.
2620         * config/i386/openbsdelf.h: New.
2621
2622 2005-01-15  Marc Espie  <espie@openbsd.org>
2623
2624         * collect2.c (main): Explicitly parse -dynamic-linker option.
2625
2626 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
2627
2628         PR tree-optimization/19060
2629         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
2630         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
2631         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
2632         and handle extract_range_from_cond returning false.
2633         * fold-const.c (fold): Optimize comparisons with min/max even for
2634         width > HOST_BITS_PER_WIDE_INT.
2635
2636 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
2637
2638         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
2639         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS): 
2640         Remove little endian multilib variants.
2641         Add mips32 multilib variant.
2642
2643 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2644
2645         * explow.c (copy_all_reg, stabilize): Remove.
2646         * expr.h: Remove the corresponding prototypes.
2647
2648         * rtlanal.c (regs_set_between_p): Remove.
2649         * rtl.h: Remove the corresponding prototype.
2650
2651 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
2652
2653         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
2654         to rs6000_nonimmediate_operand.
2655         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
2656         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
2657         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
2658         rs6000_nonimmediate_operand.
2659         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
2660         rs6000_nonimmediate_operand.
2661
2662 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
2663
2664         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
2665
2666 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
2667
2668         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
2669         on e500v2.
2670         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
2671         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
2672
2673         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
2674         (rs6k_nonimmediate_operand): New.
2675         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
2676         correctly.
2677         (legitimate_lo_sum_address_p): Same.
2678         (rs6000_legitimize_address): Same.
2679         (rs6000_legitimize_reload_address): Same.
2680         (rs6000_legitimate_address): Same.
2681         (spe_build_register_parallel): Pass DF and DC modes in a DI
2682         register.
2683
2684         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
2685         to rs6k_nonimmediate_operand.
2686
2687         * config/rs6000/spe.md ("*frob_df_di"): New.
2688         ("*frob_di_df"): New.
2689         ("*frob_di_df_2"): New.
2690         ("*mov_sidf_e500_subreg0"): New.
2691         ("*mov_sidf_e500_subreg4"): New.
2692         ("*movdf_e500_double"): Change predicate to
2693         rs6k_nonimmediate_operand.
2694
2695 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
2696
2697         * postreload.c (move2add_note_store): Only call
2698         trunc_int_for_mode on scalar integers.
2699
2700 2005-01-14  Steven Bosscher  <stevenb@suse.de>
2701
2702         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
2703         replace BB_VISITED uses.
2704         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
2705         (propagate_necessity): Check the bitmap instead of BB_VISITED.
2706         (tree_dce_done): Free visited_control_parents.
2707         (perform_tree_ssa_dce): Allocate and clear it.
2708         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
2709         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
2710         instead of BB_VISITED.
2711
2712 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
2713
2714         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
2715         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
2716         Remove unused prototypes.
2717
2718 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
2719
2720         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
2721         64-bit register usage.
2722         (spe_func_has_64bit_regs_p): Add FIXME note.
2723
2724 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
2725
2726         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
2727         flag_finite_math_only with flag_unsafe_math_optimizations.
2728
2729 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
2730
2731         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
2732         end-of-stack check.
2733         (__tpf_eh_return): Copy TPF private stack area from the module
2734         boundary stack frame.  Add check for when module addresses are
2735         equal, but no stub address is found.
2736
2737 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
2738
2739         PR target/7525
2740         * arm.h (struct machine_function): Add call_via field.
2741         (thumb_call_via_label): Declare.
2742         * arm.c (thumb_call_via_label): New variable.
2743         (thumb_call_reg_needed): New variable.
2744         (arm_output_function_epilogue): For Thumb code, output any per-function
2745         call-indirect trampolines.
2746         (thumb_call_via_reg): New function.
2747         (arm_file_end): New function.
2748         (TARGET_ASM_FILE_END): Call arm_file_end.
2749         (aof_file_end): Likewise.
2750         * arm-protos.h (thumb_call_via_reg): Declare.
2751         * arm.md (call_reg_thumb, call_value_reg_thumb): Call 
2752         thumb_call_via_reg in normal case.
2753
2754 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
2755
2756         PR middle-end/19084
2757         PR rtl-optimization/19348
2758         * recog.c (peephole2_optimize): Do global life update if some peephole
2759         decides it doesn't need at least one of its inputs and that change
2760         influences liveness at the start of the basic block.
2761
2762         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
2763         arguments instead of 1.
2764
2765 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
2766
2767         PR middle-end/18820
2768         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
2769         zero for nested functions needing a static chain or functions
2770         with a non-constant address.
2771
2772 2005-01-13  Roger Sayle  <roger@eyesopen.com>
2773
2774         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
2775         (and (sign_extend X) C) into (zero_extend (and X C)).
2776
2777 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
2778
2779         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
2780
2781 2005-01-13  Richard Henderson  <rth@redhat.com>
2782
2783         PR target/19009
2784         PR target/19250
2785         PR target/19252
2786         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
2787         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
2788         not just TARGET_SSE.
2789         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
2790         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
2791         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
2792         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
2793         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
2794         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
2795         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
2796         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
2797         (movdicc_c_rex64): Rename with '*'.
2798         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
2799         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
2800         (movsfcc_1_387): Rename from movsfcc_1.
2801         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
2802         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
2803         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
2804         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
2805         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
2806         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
2807         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
2808         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
2809         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
2810         sse_movdfcc_const0_4): Remove.
2811         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
2812         recognize min/max early.  Update for changed sse cmove patterns.
2813         (ix86_split_sse_movcc): New.
2814         * config/i386/i386-protos.h: Update.
2815
2816 2005-01-13  Steven Bosscher  <stevenb@suse.de>
2817
2818         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
2819         (fix_stmt_v_may_defs): Likewise.
2820
2821 2005-01-13  Richard Henderson  <rth@redhat.com>
2822
2823         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
2824         for converting the mask.
2825
2826 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
2827
2828         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
2829         definition to 600.
2830
2831 2005-01-13  Richard Henderson  <rth@redhat.com>
2832
2833         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
2834         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
2835         IX86_BUILTIN_MOVDQ2Q): Remove.
2836         (IX86_BUILTIN_VEC_EXT_V4SI): New.
2837         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
2838         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after 
2839         shuffling.
2840         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
2841         (sse2_pextrw): Fix immediate constraint.
2842         (sse2_loadq, sse2_loadq_rex64): Remove.
2843         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
2844         Use __builtin_ia32_vec_ext_<size>.
2845         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
2846
2847 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
2848
2849         * function.c (assign_parm_setup_block): Look inside original
2850         entry_parm when inspecting PARALLEL.
2851
2852 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
2853             Joel Sherrill  <joel@oarcorp.com>
2854
2855         PR target/19399
2856         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
2857         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2858         rtems_gxx_recursive_mutex_init.
2859         (__gthread_recursive_mutex_lock): New function.
2860         (__gthread_recursive_mutex_trylock): Likewise.
2861         (__gthread_recursive_mutex_unlock): Likewise.
2862
2863 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
2864
2865         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
2866
2867 2005-01-13  Jan Beulich  <jbeulich@novell.com>
2868
2869         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
2870         (ashrti3_internal): Indicate output is early clobber. Generate result
2871         into output rather than first input. Use move for low word of output
2872         if shift count is exactly 64.
2873         (lshrti3_internal): Likewise.
2874
2875 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
2876
2877         PR target/18329
2878         PR target/18330
2879         * reload1.c (delete_output_reload): Don't delete an output reload
2880         if the pseudo lives longer than a single basic block.  Adjust and
2881         improve wording of comment.
2882
2883 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
2884
2885         PR target/19334
2886         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
2887         of TYPE_SIZE where we mean the number of bytes.
2888
2889 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
2890
2891         * function.c (assign_parm_setup_block): Relax condition on
2892         multi-register optimization.
2893
2894 2005-01-12  Nick Clifton  <nickc@redhat.com>
2895
2896         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
2897         an "in_delay_slot" attribute of "no" to prevent them being used in
2898         delay slots.  This is forbidden because they might generate
2899         exceptions.
2900
2901 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
2902
2903         PR target/19389
2904         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
2905         with r->Y and Y->r.
2906
2907 2005-01-12  Nick Clifton  <nickc@redhat.com>
2908
2909         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
2910         passed on to GAS) but do not define, as GAS no longer supports or
2911         needs the -m2000 option.
2912
2913 2005-01-11  Roger Sayle  <roger@eyesopen.com>
2914
2915         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
2916         type as args of unprototyped builtins aren't automatically promoted.
2917         (fold_builtin_abs): Likewise.
2918
2919 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2920
2921         * Makefile.in: Set a `build-warn' variable.
2922
2923 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
2924
2925         PR tree-optimization/17949
2926         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
2927         (find_interesting_uses_address): Use it.
2928
2929 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
2930
2931         * regrename.c (kill_value): Handle subreg's that won't simplify.
2932
2933 2005-01-11  Richard Henderson  <rth@redhat.com>
2934
2935         PR target/13366
2936         * config/i386/i386.h (enum ix86_builtins): Move ...
2937         * config/i386/i386.c: ... here.
2938         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
2939         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
2940         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
2941         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
2942         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
2943         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
2944         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
2945         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
2946         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
2947         IX86_BUILTIN_LOADDDUP): Remove.
2948         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
2949         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
2950         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
2951         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
2952         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
2953         (ix86_init_builtins): Make static.
2954         (ix86_init_mmx_sse_builtins): Update for changed builtins.
2955         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
2956         if all the modes match.  Otherwise, fake it.
2957         (get_element_number, ix86_expand_vec_init_builtin,
2958         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
2959         (ix86_expand_builtin): Make static.  Update for changed builtins.
2960         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
2961         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
2962         (ix86_expand_vector_init_duplicate): New.
2963         (ix86_expand_vector_init_low_nonzero): New.
2964         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
2965         Split out from ix86_expand_vector_init; handle integer modes.
2966         (ix86_expand_vector_init): Use them.
2967         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
2968         * config/i386/i386-protos.h: Update.
2969         * config/i386/predicates.md (reg_or_0_operand): New.
2970         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
2971         (movv2sf_internal): Likewise.  And a splitter to match them all.
2972         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
2973         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
2974         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
2975         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
2976         (mmx_pinsrw): Fix operand ordering.
2977         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
2978         rather than sse_loadss expander.
2979         (movv2df splitter): Similarly.
2980         (sse_loadss, sse_loadlss): Remove.
2981         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
2982         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
2983         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
2984         (sse3_movddup): Rename with '*'.
2985         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
2986         (sse2_loadsd): Remove.
2987         (vec_dupv2df_sse3): Rename from sse3_loadddup.
2988         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
2989         (sse2_pinsrw): Fix argument ordering.
2990         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
2991         (sse2_stored): Remove 'r' destination.
2992         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
2993         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
2994         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
2995         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
2996         vec_extractv16qi, vec_initv16qi): New.
2997
2998         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
2999         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x, 
3000         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
3001         constructor form.
3002         (_mm_load_pd, _mm_store_pd): Use plain dereference.
3003         (_mm_load_si128, _mm_store_si128): Likewise.
3004         (_mm_load1_pd): Use _mm_set1_pd.
3005         (_mm_load_sd): Use _mm_set_sd.
3006         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
3007         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
3008         (_mm_set_epi64): Use _mm_set_epi64x.
3009         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
3010         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
3011         _mm_setr_epi8): Use _mm_set_foo form.
3012         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
3013         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
3014         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
3015         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
3016         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
3017         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
3018         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
3019         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
3020         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
3021         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
3022         (_mm_movedup_pd): Use _mm_shuffle_pd.
3023         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
3024         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
3025         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
3026         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
3027         Use _mm_setzero_ps.
3028         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
3029         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
3030         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
3031         (_mm_store_ps): Use raw dereference.
3032         (_mm_store1_ps): Use _mm_storeu_ps.
3033         (_mm_storer_ps): Use _mm_store_ps.
3034         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
3035         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
3036
3037 2005-01-11  Stan Shebs  <shebs@apple.com>
3038
3039         * config/rs6000/rs6000.c (machopic_output_stub): Issue
3040         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
3041
3042 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
3043
3044         PR target/18761
3045         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
3046         Skip all DECLs except for FIELD_DECLs.
3047
3048 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
3049
3050         * config/s390/s390.c (override_options): Return error if
3051         -mbackchain, -mpacked-stack and -mhard-float are used together.
3052         (s390_va_start): Remove the backchain && packed-stack special case.
3053         (s390_gimplify_va_arg): Likewise.
3054         * doc/invoke.texi: Remove the ABI incompatibility note.
3055
3056 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
3057
3058         * config/s390/s390.c (struct s390_frame_layout): Remove
3059         save_backchain_p.
3060         (s390_frame_info, s390_emit_prologue): Replace occurrences of
3061         save_backchain_p with TARGET_BACKCHAIN.
3062
3063 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
3064
3065         PR target/18916
3066         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
3067         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
3068         * function.c (locate_and_pad_parm): Set new field.
3069         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
3070         Tweak where_pad test to include "none".  Always set mem align for
3071         stack_parm.
3072         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
3073         not sufficient for type.
3074         (assign_parm_setup_block): If stack_parm is zero on entry, always
3075         make a new stack local.  Block move old stack parm if necessary
3076         to new aligned stack local.
3077         (assign_parm_setup_stack): Use a block move to handle
3078         potentially misaligned entry_parm.
3079         (assign_parms_unsplit_complex): Specify required alignment when
3080         creating stack local.
3081         * calls.c (compute_argument_addresses): Override alignment of stack
3082         arg calculated from its type with the alignment given by
3083         FUNCTION_ARG_BOUNDARY.
3084         (store_one_arg): Likewise.
3085
3086 2005-01-11  Jan Beulich  <jbeulich@novell.com>
3087
3088         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
3089         Change respective itanium_class attribute to ialu.
3090         (shladdp4_internal): New.
3091         * config/ia64/predicates.md (shladd_log2_operand): New.
3092
3093 2005-01-11  Richard Henderson  <rth@redhat.com>
3094
3095         * expr.c (store_constructor): Use rtvec_alloc instead of
3096         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
3097
3098 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
3099
3100         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
3101
3102 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
3103
3104         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
3105         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
3106         (TARGET_RWRELOC): Define.
3107         (ia64_rwreloc_section_type_flags): Delete.
3108         (ia64_section_type_flags): New function.
3109         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
3110         (TARGET_RWRELOC): Define.
3111
3112 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
3113
3114         PR target/18987
3115         * config/ia64/ia64.c (process_set): For alloc insn, only call
3116         process_epilogue is !frame_pointer_needed.
3117
3118 2005-01-10  Roger Sayle  <roger@eyesopen.com>
3119
3120         PR c++/19355
3121         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
3122         unary operator and can't be treated as a binary/comparison operator.
3123
3124 2005-01-10  Richard Henderson  <rth@redhat.com>
3125
3126         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
3127         (ix86_return_in_memory): Likewise.
3128         (function_arg_advance):  Likewise.  Mirror structure in function_arg
3129         for choosing register to advance.
3130
3131 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
3132
3133         * tree-vectorizer.c, tree.def: Fix comment typos.
3134
3135 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
3136
3137         * config/s390/s390.c (struct processor_costs): 4 new fields:
3138         ddbr, ddr, debr, der.
3139         (s390_rtx_costs): More precise handling of divide instructions.
3140
3141 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
3142
3143         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
3144
3145 2005-01-10  Jan Beulich  <jbeulich@novell.com>
3146
3147         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
3148         names resulting from -ffunction-sections/-fdata-sections and linkonce
3149         ones.
3150         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
3151         based on the section name. Rearrange the section name comparison logic
3152         slightly so that each section name is compared against at most once.
3153
3154 2005-01-10  Ben Elliston  <bje@au.ibm.com>
3155
3156         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
3157         targets for which -fPIC reduces limitations on the GOT size.
3158
3159 2005-01-09  Falk Hueffner  <falk@debian.org>
3160
3161         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
3162         X/C1 cmpop C2.
3163
3164 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
3165
3166         PR target/18720
3167         * collect2.c (main): Set aixrtl_flag for -brtl option.
3168         (resolve_lib_name): Search for .so file extension before .a
3169         if aixrtl_flag set.
3170
3171 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
3172
3173         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
3174         (vect_analyze_data_refs_alignment): Add dump prints.
3175
3176 2005-01-09  Ira Rosen  <irar@il.ibm.com>
3177
3178         * tree-vectorizer.c (vect_analyze_offset_expr): Use
3179         expr_invariant_in_loop_p.
3180         Initialize outputs first thing in the function.
3181         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
3182         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
3183         (vect_analyze_pointer_ref_access): Check that the initial condition of
3184         the access function is loop invariant.
3185
3186 2005-01-09  Richard Henderson  <rth@redhat.com>
3187
3188         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
3189         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
3190         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
3191         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
3192         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
3193         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
3194         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
3195         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
3196         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
3197         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
3198         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
3199         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
3200         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
3201         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
3202         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
3203         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
3204         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
3205         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
3206         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
3207         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
3208         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
3209         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
3210         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
3211         mmx_ prefix.
3212         (mmx_clrdi, pavgusb): Remove.
3213         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
3214         with leading sse_ prefix.
3215         * config/i386/sse.md: Receive them.
3216         * config/i386/mmx.md: New file.
3217         (MMXMODE12, MMXMODE24, mmxvecsize): New.
3218         (subrv2sf3): Turn into expander for normal subtraction.
3219         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
3220         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
3221         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
3222         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
3223         commutative; use ix86_binary_operator_ok.
3224         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
3225         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
3226         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
3227         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
3228         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
3229         Macroize from existing patterns; use ix86_binary_operator_ok.
3230         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
3231         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
3232         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
3233         with vec_select+vec_concat.
3234         (mmx_pshufw, mmx_pshufw_1): Likewise.
3235         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
3236         (mmx_uavgv4hi3): Model correctly.
3237         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
3238         _mm_xor_si64): Remove casts.
3239
3240 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
3241
3242         PR tree-optimization/19224
3243         * tree-scalar-evolution.c (get_instantiated_value,
3244         set_instantiated_value): New functions.
3245         (instantiate_parameters_1): Cache the results.
3246         (instantiate_parameters, resolve_mixers): Initialize and free
3247         the cache.
3248
3249 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
3250
3251         * config/i386/i386.md (addhi_4): Correct reference in comment.
3252         (addqi_4): Same.
3253
3254 2005-01-08  Richard Henderson  <rth@redhat.com>
3255
3256         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
3257         (_mm_cvtsi128_si64x): Likewise.
3258         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
3259         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
3260         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
3261         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
3262         * config/i386/i386-protos.h: Update.
3263         * config/i386/i386.c (print_operand): Add 'H'.
3264         (ix86_fixup_binary_operands): Split out from ...
3265         (ix86_expand_binary_operator): ... here.
3266         (ix86_fixup_binary_operands_no_copy): New.
3267         (ix86_expand_fp_absneg_operator): Handle vector mode results.
3268         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
3269         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
3270         (safe_vector_operand): Use CONST0_RTX.
3271         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
3272         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
3273         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
3274         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
3275         special cases.
3276         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
3277         (IX86_BUILTIN_CMPNGESS): New.
3278         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
3279         (attr type): Add sselog1.
3280         (attr unit, attr memory): Handle it.
3281         (movti, movti_internal, movti_rex64): Move near other integer moves.
3282         (movtf, movtf_internal): Move near other fp moves.
3283         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
3284         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
3285         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
3286         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
3287         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
3288         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
3289         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
3290         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
3291         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
3292         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
3293         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
3294         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
3295         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
3296         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
3297         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
3298         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
3299         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
3300         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
3301         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
3302         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
3303         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
3304         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
3305         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
3306         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
3307         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
3308         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
3309         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3310         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
3311         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
3312         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
3313         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
3314         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
3315         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
3316         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
3317         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
3318         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
3319         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
3320         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
3321         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
3322         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
3323         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
3324         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
3325         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
3326         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
3327         same time.
3328         (SSEPUSH, push<SSEPUSH>): Remove.
3329         (MMXPUSH, push<MMXPUSH>): Remove.
3330         (sse_movaps, sse_movaps_1, sse_movups): Remove.
3331         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
3332         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
3333         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
3334         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
3335         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
3336         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
3337         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
3338         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
3339         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
3340         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
3341         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
3342         (ppro_sse_log_V4SF): Handle sselog1.
3343         * config/i386/predicates.md (const_0_to_1_operand): New.
3344         (const_0_to_255_mul_8_operand): New.
3345         (const_1_to_31_operand): Rename from const_int_1_31_operand.
3346         (const_2_to_3_operand, const_4_to_7_operand): New.
3347         * config/i386/sse.md: New file.
3348         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
3349         (sse_movups): Rename from sse_movups_1.
3350         (sse_loadlss): Rename from sse_loadss_1.
3351         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
3352         from the name.
3353         (negv4sf2): Use ix86_expand_fp_absneg_operator.
3354         (absv4sf2, negv2df, absv2df): New.
3355         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
3356         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
3357         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
3358         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
3359         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
3360         (sse3_addsubv4sf3): Model correctly.
3361         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
3362         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
3363         (sse_movhlps): Model with vec_select+vec_concat.
3364         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
3365         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
3366         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
3367         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
3368         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
3369         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
3370         sse2_pshufhw_1): Likewise.
3371         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
3372         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
3373         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
3374         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
3375         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
3376         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
3377         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
3378         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
3379         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
3380         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
3381         sminv8hi3): Mark commutative
3382         operands.  Use ix86_binary_operator_ok.
3383         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
3384         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
3385         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
3386         sse2_punpcklqdq): Allow operand2 in memory.
3387         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
3388         sse2_movsd): Add memory alternatives.
3389         (sse_storelps): Turn expander into an insn; split after reload.
3390         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
3391         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
3392
3393 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
3394
3395         * configure.ac (DWARF-2 debug_line): Use objdump.
3396         * configure: Regenerate.
3397
3398 2005-01-08  Jeff Law  <law@redhat.com>
3399             Diego Novillo  <dnovillo@redhat.com>
3400
3401         PR tree-optimization/18241
3402         * tree-nrv.c (tree_nrv): Ignore volatile return values.
3403         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
3404         statements with volatile operands.
3405         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
3406         operands after marking a statement with has_volatile_ops.
3407
3408 2005-01-08  Roger Sayle  <roger@eyesopen.com>
3409
3410         * tree.c (int_fits_type_p): Always honor integer constant
3411         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
3412
3413 2005-01-08  Roger Sayle  <roger@eyesopen.com>
3414
3415         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
3416         the latent bug in rtl_delete_block has been resolved.
3417
3418 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
3419
3420         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
3421         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
3422
3423 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
3424
3425         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
3426         library as @multilib_dir@/$(SHLIB_SONAME).
3427
3428 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3429
3430         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
3431         * configure: Regenerate.
3432
3433 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
3434
3435         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
3436         TYPE_MODE.
3437
3438 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
3439
3440         PR target/13674
3441         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3442         Convert non-word aligned offset address using ld/std into
3443         indirect address.
3444
3445 2005-01-07  Richard Henderson  <rth@redhat.com>
3446
3447         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
3448
3449 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
3450
3451         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
3452
3453 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
3454
3455         PR tree-optimization/19283
3456         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
3457         is not shorter than the original type.
3458
3459         PR rtl-optimization/19012
3460         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
3461
3462         PR rtl-optimization/18861
3463         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
3464         (FULL_STATE): Define.
3465         (mark_tablejump_edge): New function.
3466         (purge_dead_tablejump_edges): New function.
3467         (find_bb_boundaries): Use it.
3468
3469         PR tree-optimization/18828
3470         * builtins.c (expand_builtin_next_arg): Remove argument and all
3471         the argument checking.
3472         (expand_builtin): Adjust caller.
3473         (expand_builtin_va_start): Likewise.  Remove error for too many
3474         arguments.
3475         (fold_builtin_next_arg): Issue error for too many arguments.
3476         After checking arguments, replace them with magic arguments that
3477         prevent further checking of the args.
3478
3479 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3480
3481         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
3482
3483 2005-01-06  Roger Sayle  <roger@eyesopen.com>
3484
3485         PR target/6077
3486         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
3487         and %{.S:...} (and their negative variants) to test whether the
3488         input file is assembler or pre-processed-assembler independent of
3489         the actual filename extension.
3490
3491 2005-01-06  Roger Sayle  <roger@eyesopen.com>
3492
3493         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
3494         of sign or zero extended values.
3495
3496 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
3497
3498         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
3499         for IBM long double format correctly.
3500
3501 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
3502
3503         Fix PR tree-optimization/18792
3504
3505         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
3506         to first_loop_depth, and use loop depth instead of loop number.
3507         (build_classic_dir_vector): Ditto.
3508         (compute_data_dependences_for_loop): Use depth, not loop number.
3509         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
3510         number. Pass in loops, instead of loop numbers.
3511         (gather_interchange_stats): Ditto.
3512         (linear_transform_loops): Ditto.
3513
3514 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
3515
3516         PR rtl-opt/13299
3517         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
3518         biv_fits_mode_p, extension_within_bounds_p): New functions.
3519         (check_ext_dependent_givs): Use them.
3520
3521 2005-01-06  Roger Sayle  <roger@eyesopen.com>
3522
3523         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
3524         more than one barrier, in which case we should delete them all.
3525
3526 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3527
3528         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
3529
3530 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
3531
3532         Fix PR middle-end/19286
3533         Fix PR debug/19267
3534         * dwarf2out.c (gen_subprogram_die): If we've already tried to
3535         output this subprogram, simply ignore this attempt to do it again.
3536         (add_abstract_origin_attribute): Don't abort trying to add the abstract
3537         origin attribute if it's not possible.
3538         (gen_block_die): Don't ignore subblocks of "unused" blocks.
3539         (decls_for_scope): Ditto.
3540         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
3541         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
3542
3543 2005-01-05  Richard Henderson  <rth@redhat.com>
3544
3545         PR target/11327
3546         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
3547         (bdesc_2arg): Use it.
3548         (ix86_expand_binop_builtin): Force operands into registers
3549         when optimizing.
3550         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
3551         ix86_expand_sse_compare, ix86_expand_sse_comi,
3552         ix86_expand_builtin): Likewise.
3553
3554 2005-01-05  Richard Henderson  <rth@redhat.com>
3555
3556         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
3557         and VEC_SELECT.
3558         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
3559         (mulv4hi3): Set itanium_class mmmul.
3560         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
3561         (fpack): Rename from fpack_sfsf.
3562
3563 2005-01-05  Richard Henderson  <rth@redhat.com>
3564
3565         PR rtl-opt/10692
3566         * reload1.c (do_input_reload): Restrict the optimization deleteing
3567         a previous output reload to RELOAD_FOR_INPUT.
3568
3569 2005-01-05  Steven Bosscher  <stevenb@suse.de>
3570
3571         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
3572         comment that we fall through after case.
3573         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
3574         (distribute_links): Likewise.
3575         * cse.c (cse_insn): Likewise.
3576         * cselib.c (cselib_invalidate_mem): Likewise.
3577         * df.c: Update comments at the top of the file.
3578         (read_modify_subreg_p): Update comments here too.
3579         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
3580         * flow.c (mark_set_1): Likewise.
3581         (mark_used_regs): Likewise.
3582         * gcse.c (mems_conflict_for_gcse_p): Likewise.
3583         (canon_list_insert): Likewise.
3584         (mark_set): Likewise.
3585         (try_replace_reg): Likewise.
3586         (store_killed_in_insn): Likewise.
3587         * loop.c (count_one_set): Likewise.
3588         (basic_induction_var): Likewise.
3589         * postreload-gcse.c (find_mem_conflicts): Likewise.
3590         * postreload.c (reload_combine_note_store): Likewise.
3591         (move2add_note_store): Likewise.
3592         * reload.c (find_equiv_reg): Likewise.
3593         (mark_referenced_resources): Likewise.
3594         * rtlanal.c (set_noop_p): Likewise.
3595         (note_stores): Likewise.
3596         (note_uses): Likewise.
3597         * sched-deps.c (sched_analyze_1): Likewise.
3598         * sched-rgn.c (check_live_1): Likewise.
3599         (update_live_1): Likewise.
3600         * config/i860/i860.c: Likewise.
3601
3602         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
3603         an lvalue.
3604         (ZERO_EXTRACT): Mention that this one can be an lvalue.
3605
3606         * doc/rtl.texi: Update documentation for bit-fields and SET.
3607
3608 2005-01-05  Roger Sayle  <roger@eyesopen.com>
3609
3610         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
3611
3612 2005-01-05  Jan Hubicka  <jh@suse.cz>
3613             Richard Henderson  <rth@redhat.com>
3614
3615         PR target/18910
3616         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
3617         with an offset.
3618
3619 2005-01-05  Richard Henderson  <rth@redhat.com>
3620
3621         PR target/12902
3622         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
3623         (sse_shufps): Change operand 3 to const_int_operand.
3624         (sse2_storelps): Fix typo in template.
3625         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
3626         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
3627         (ix86_expand_builtin): Likewise.
3628
3629 2005-01-05  Julian Brown  <julian@codesourcery.com>
3630
3631         * config/arm/arm.c (arm_return_in_memory): Treat complex types
3632         as aggregates for AAPCS ABIs.
3633
3634 2005-01-05  Stan Shebs  <shebs@apple.com>
3635
3636         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
3637         Mach-O getters if ppc64.
3638         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
3639         size argument.
3640         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3641         signed four-byte field for global code case.
3642         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
3643
3644 2005-01-05  Roger Sayle  <roger@eyesopen.com>
3645
3646         PR middle-end/19100
3647         * c-common.c: Include real.h.
3648         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
3649         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
3650         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
3651         * Makefile.in (c-common.o): Update dependencies.
3652
3653 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
3654
3655         * c-parse.in (asm_string): Add trailing semicolon.
3656
3657 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
3658
3659         * c-parse.in (asm_string): New.  Don't allow wide strings in
3660         'asm'.
3661         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
3662         asm_string instead of STRING.
3663
3664 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
3665
3666         * c-typeck.c (constructor_no_implicit): Remove.
3667         (set_designator, process_init_element): Don't check
3668         constructor_no_implicit.
3669
3670 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
3671             Kaz Kojima  <kkojima@gcc.gnu.org>
3672
3673         PR target/16482
3674         * lcm.c (create_pre_exit): New.
3675         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
3676         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
3677
3678 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
3679
3680         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
3681         -msoft-float in target_float_switch.
3682         * arm.c (arm_override_options): Fix processing of target_float_switch.
3683
3684 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
3685
3686         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
3687         preferencing.
3688
3689 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
3690
3691         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
3692         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
3693
3694 2005-01-04  Roger Sayle  <roger@eyesopen.com>
3695
3696         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
3697         if deleting the then-block allows the test-block to fallthru to the
3698         else-block.
3699
3700 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
3701
3702         PR c/19152
3703         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
3704         after the full declaration if the are in two different TUs.
3705
3706 2005-01-04  Richard Henderson  <rth@redhat.com>
3707
3708         PR tree-opt/19158
3709         * tree-sra.c (generate_one_element_init): Just
3710         call gimplify_and_add.
3711         (generate_element_init): Record the
3712         new referenced variables and mark them for renaming
3713         and split out to ...
3714         (generate_element_init_1): This.
3715         (scalarize_init): Don't call push_gimplify_context/
3716         pop_gimplify_context.
3717
3718 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
3719
3720         * toplev.c (get_src_pwd): Handle failure of getpwd().
3721
3722 2005-01-04  Roger Sayle  <roger@eyesopen.com>
3723
3724         * fold-const.c (fold_single_bit_test): Delete unreachable handling
3725         of TRUTH_NOT_EXPR.
3726         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
3727         all the cases handled by it are inverted by invert_truthvalue.
3728
3729 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3730
3731         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
3732         (save_register_windowsi): Likewise.
3733
3734 2005-01-04  Richard Henderson  <rth@redhat.com>
3735
3736         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
3737
3738 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
3739
3740         PR middle-end/17767
3741         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
3742         any simplifications of vector mode comparison operators.
3743         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
3744
3745 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
3746             Devang Patel  <dpatel@apple.com>
3747
3748         PR tree-optimization/18308
3749         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
3750         the operands before creating a new expression.
3751         * dojump.c (do_jump): Make drop_through_label available
3752         for all cases.  Add expansion of COND_EXPR.
3753
3754 2005-01-04  Ira Rosen  <irar@il.ibm.com>
3755
3756         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
3757         INTEGER_CST instead of TREE_CONSTANT.
3758         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
3759         instead of TREE_CONSTANT.
3760         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
3761         instead of TREE_CONSTANT.
3762
3763 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3764
3765         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
3766
3767 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
3768
3769         PR target/19240
3770         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
3771         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
3772
3773 2005-01-03  Richard Henderson  <rth@redhat.com>
3774
3775         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
3776         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
3777         fold_convert_const_real_from_real): Split out from ...
3778         (fold_convert_const): ... here.
3779
3780 2005-01-03  Richard Henderson  <rth@redhat.com>
3781
3782         PR target/19235
3783         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
3784         (mov<MMXMODEI>_internal): Likewise.
3785         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
3786         Add V2SF case; use it for SSE1; don't use TI.
3787         (movdf_integer): Likewise.
3788         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
3789
3790 2005-01-03  Ira Rosen  <irar@il.ibm.com>
3791
3792         * tree-vectorizer.c (vect_strip_conversions): New function.
3793         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
3794         check for binary class.
3795
3796 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
3797
3798         Fix PR debug/17924
3799         Fix PR debug/19191
3800         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
3801         is a decl.
3802         * gimple-low.c (mark_blocks_with_used_vars): New function.
3803         (mark_blocks_with_used_subblocks): Ditto.
3804         (mark_used_blocks): Ditto.
3805         (pass_mark_used_blocks): New pass.
3806         * tree-inline.c: Include debug.h.
3807         (expand_call_inline): Call outlining_inline_function here.
3808         * tree-optimize.c (init_tree_optimization_passes): Add
3809         pass_mark_used_blocks.
3810         * tree-pass.h (pass_mark_used_blocks): New.
3811         * Makefile.in (tree-inline.o): Add debug.h dependency.
3812
3813 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
3814
3815         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
3816         VAR_DECLs to have weak_import attribute.
3817
3818         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
3819         'struct ucontext'.
3820
3821 2004-01-03  Steven Bosscher  <stevenb@suse.de>
3822
3823         * passes.c (rest_of_compilation): Don't run regmove if only
3824         flag_expensive_optimizations, require flag_regmove instead.
3825
3826 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3827
3828         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
3829         register "sparc".
3830         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
3831         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
3832         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
3833         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
3834
3835 2005-01-03  Richard Henderson  <rth@redhat.com>
3836
3837         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
3838         (ia64_const_ok_for_letter_p): New.
3839         (ia64_const_double_ok_for_letter_p): New.
3840         (ia64_extra_constraint): New.
3841         (ia64_expand_vecint_compare): New.
3842         (ia64_expand_vcondu_v2si): New.
3843         (ia64_expand_vecint_cmov): New.
3844         (ia64_expand_vecint_minmax): New.
3845         (ia64_print_operand): Add 'v'.
3846         (ia64_preferred_reload_class): New.
3847         (ia64_vector_mode_supported_p): New.
3848         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
3849         (PREFERRED_RELOAD_CLASS): Move to function.
3850         (CONST_OK_FOR_LETTER_P): Move to function.
3851         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
3852         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
3853         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
3854         (EXTRA_CONSTRAINT): Move to function.
3855         * config/ia64/ia64.md: Include vect.md.
3856         (itanium_class): Add mmalua.
3857         (type): Handle it.
3858         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
3859         (1b_mmalua): New.
3860         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
3861         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
3862         CONST0_RTX.
3863         (const_int_2bit_operand): New.
3864         (fr_reg_or_0_operand): New.
3865         * config/ia64/ia64-modes.def: Add vector modes.
3866         * config/ia64/ia64-protos.h: Update.
3867         * config/ia64/vect.md: New file.
3868
3869 2005-01-03  Richard Henderson  <rth@redhat.com>
3870
3871         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
3872
3873 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
3874
3875         PR target/19236
3876         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
3877         to SFmode.
3878         (log1pdf2): Change mode of operands[0,1] to DFmode.
3879
3880 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3881
3882         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
3883         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
3884         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
3885         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
3886         SPARC_RELAXED_ORDERING.
3887
3888 2005-01-03  Richard Henderson  <rth@redhat.com>
3889             Uros Bizjak  <uros@kss-loka.si>
3890
3891         PR target/14631
3892         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
3893         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
3894         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
3895         handling.
3896         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
3897         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
3898         const_pow2_1_to_128_operand): New predicates.
3899
3900 2005-01-02  Greg McGary  <greg@mcgary.org>
3901
3902         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
3903         anonymous decls.
3904         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
3905         object.  [ptr_type]: Remove unused variable.
3906         Remember nearest addressable array-element or record-component
3907         when checking bitfield components.  Tolerate empty BIND_EXPR.
3908
3909 2005-01-01  Richard Henderson  <rth@redhat.com>
3910
3911         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
3912         that don't narrow the value.  Fail for other conversions.
3913
3914 2005-01-01  Richard Henderson  <rth@redhat.com>
3915
3916         PR c/19031
3917         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
3918         * c-lang.c (finish_file): Don't do it here.
3919         * objc/objc-act.c (objc_finish_file): Likewise.
3920
3921         * cgraph.c (decl_assembler_name_equal): New.
3922         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
3923         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
3924         * cgraph.h (struct cgraph_varpool_node): Add next.
3925         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
3926         * varasm.c (assemble_alias): Mark the target as needed.
3927
3928 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
3929
3930         PR middle-end/19221
3931         * function.c (get_arg_pointer_save_area): Use entry_of_function
3932         instead of get_insns.
3933
3934 2005-01-01  Roger Sayle  <roger@eyesopen.com>
3935             Andrew Pinski  <pinskia@physics.uc.edu>
3936             James E. Wilson  <wilson@specifixinc.com>
3937
3938         PR rtl-optimization/12092
3939         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
3940         is zero.
3941
3942 2005-01-01  Roger Sayle  <roger@eyesopen.com>
3943             Olivier Hainque  <hainque@act-europe.fr>
3944
3945         * tree.c (int_fits_type_p): A narrower type always fits in a
3946         wider one, except for negative values into unsigned types.
3947
3948 2005-01-01  Roger Sayle  <roger@eyesopen.com>
3949
3950         * tree.c (int_fits_type_p): Compare the result of force_fit_type
3951         with the original constant rather than require TREE_OVERFLOW.
3952
3953 2005-01-01  Steven Bosscher  <stevenb@suse.de>
3954
3955         PR middle-end/17544
3956         * c-decl.c (finish_function): If compiling C99, annotate the
3957         compiler generated return with the current file name and line 0.
3958         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
3959         the source line is greater than 0.
3960         (remove_bb): Likewise.
3961
3962 See ChangeLog.12 for earlier changes.