* tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
2
3         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
4         moves and unpack to speed up.
5
6 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
7
8         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
9         argument, they are always sparc_compare_op0 and sparc_compare_op1.
10         (gen_v9_scc): Update callers.
11         * config/sparc/sparc.md: Likewise.
12         * config/sparc/sparc-protos.h: Update extern declaration.
13
14         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
15
16 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
17
18         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
19         the if.
20
21 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
22
23         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
24         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
25         (negate_expr): Here.
26
27 2005-11-29  Ben Elliston  <bje@au.ibm.com>
28
29         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
30         Fix typo in comment.
31
32 2005-11-29  Ben Elliston  <bje@au.ibm.com>
33
34         * Makefile.in (clean-target): Depend on clean-target-libgcc.
35         (clean-target-libgcc): Import rule from the top-level Makefile.in.
36
37 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38
39         PR middle-end/20109
40         PR middle-end/25120
41         * builtins.c (init_target_chars): New.
42         (expand_builtin_printf, expand_builtin_fprintf,
43         expand_builtin_sprintf, fold_builtin_sprintf,
44         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
45         fold_builtin_snprintf_chk, fold_builtin_printf,
46         fold_builtin_fprintf): Check for matching format strings using
47         the target charset.
48
49 2005-11-29  Paul Brook  <paul@codesourcery.com>
50
51         * config.gcc: Do not use fixproto on m68k-elf.
52
53 2005-11-28  Roger Sayle  <roger@eyesopen.com>
54
55         * expmed.c (div_cost): Replace with...
56         (sdiv_cost, udiv_cost): New.
57         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
58         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
59         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
60         (expand_divmod): Replace use of div_cost with either sdiv_cost
61         or udiv_cost depending upon the signedness of the operation.
62
63 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
64
65         PR libfortran/24991
66         * config/darwin.c (machopic_indirection_name,
67         machopic_output_indirection): Follow transparent alias chain.
68
69 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
70
71         * varasm.c (ultimate_transparent_alias_target): Add comment.
72
73 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
74
75         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
76         SET_SRC instead of XEXP where appropriate.
77
78 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
79
80         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
81         __builtin_expect.
82
83 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
84
85         * config/fp-bit.h (LSHIFT): Take shift count parameter.
86         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
87         bit at a time.
88
89 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
90
91         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
92         secondary_input_reload_class, made static.  Adapt to new
93         infrastructure.
94         (secondary_output_reload_class): Delete.
95         (TARGET_SECONDARY_RELOAD): New macro.
96         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
97         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
98
99 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
100
101         PR c++/21166
102         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
103         when its natural alignment is > BITS_PER_UNIT.
104         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
105         * c-common.c (handle_packed_attribute): Ignore packing on a field
106         whose type is naturally char aligned.
107
108 2005-11-28  Richard Guenther  <rguenther@suse.de>
109
110         * c-common.c (strict_aliasing_warning): Handle all
111         component-ref like accesses.
112
113 2005-11-28  Roger Sayle  <roger@eyesopen.com>
114             Uros Bizjak  <uros@kss-loka.si>
115
116         PR middle-end/20219
117         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
118         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
119         when flag_unsafe_math_optimizations is set and
120         we don't care about NaNs or Infinities.
121
122         Move x/expN(y) and x/pow(y,z) transformation into common
123         flag_unsafe_math_optimizations section.
124
125 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
126
127         * gcc.c (main): Change type of argv to "char **".
128
129 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
130
131         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
132         small data sections.
133         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
134         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
135         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
136         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
137         output locals to sbss if !rs6000_elf_in_small_data_p.
138         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
139
140 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
141
142         PR target/24997
143         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
144         generated by reload.
145         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
146         indexed_or_indirect_address.
147         (indexed_or_indirect_address): Don't test for base reg.  Call
148         address_operand last.  Make it a special predicate.
149
150 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
151
152         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
153
154 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
155
156         PR middle-end/24575
157         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
158         is undefined.
159         (negate_expr): Likewise.
160
161 2005-11-27  Andreas Schwab  <schwab@suse.de>
162
163         * config/m68k/m68k.c: Reindent and fix whitespace, remove
164         redundant parens.
165
166 2005-11-27  Steven Bosscher  <stevenb@suse.de>
167
168         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
169         has EH predecessor edges.
170
171 2005-11-26  Eric Christopher  <echristo@apple.com>
172
173         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
174         register stalls by zero extending to the full register.
175
176 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
177
178         * config/floatunsisf.c, config/floatunsidf.c,
179         config/floatunsixf.c, config/floatunsitf.c: New files.
180         * config/ia64/t-hpux: Add floatunsitf.c.
181         * config/ia64/ia64.c (ia64_init_libfuncs): Use
182         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
183
184 2005-11-26  Richard Henderson  <rth@redhat.com>
185
186         * c-lex.c (pragma_lex): Rename from c_lex.
187         * c-pch.c: Update for pragma_lex rename.
188         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
189         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
190         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
191         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
192         * doc/tm.texi: Likewise.
193
194 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
195
196         PR middle-end/23669
197         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
198         when overflow is undefined.
199
200 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
201
202         * doc/md.texi (Insn Canonicalizations): Refer to the
203         function commutative_operand_precedence for further rules.
204
205 2005-11-25  Roger Sayle  <roger@eyesopen.com>
206
207         PR middle-end/21309
208         * expmed.c (choose_mult_variant): Return immediately when mult_cost
209         is less than zero.  Limit mult_cost to a reasonable upper bound for
210         the synthetic multiplication sequence.
211
212 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
213
214         PR middle-end/25022
215         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
216         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
217         Lookup the explicit replacement functions for any unlocked
218         stdio builtin transformations.
219
220 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
221
222         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
223         earlyclobber.
224         * targhooks.c (default_secondary_reload): Don't require operand 2
225         for an input reload to be earlyclobber.
226
227 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
228
229         * fold-const.c (negate_mathfn_p): Fix comment and add support
230         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
231         BUILT_IN_ATANH.
232
233 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
234
235         PR middle-end/24998
236         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
237         _Q_ulltoq for unsigned conversions from SImode and DImode to
238         TFmode.
239
240 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
241
242         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
243         (__floatundidf, __floatundisf): Likewise.
244
245 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
246
247         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
248         (rs6000_override_options): Remove initialization of
249         rs6000_sr_alias_set.
250         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
251         (rs6000_emit_stack_tie): Same.
252         (emit_frame_save): Same.
253         (gen_frame_mem_offset): Same.
254         (rs6000_emit_prologue): Same.
255         (rs6000_emit_epilogue): Same.
256
257 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
258
259         PR middle-end/24989
260         * fold-const.c (fold_build): Convert bool_var != 1 and
261         bool_var == 0 to !bool_var.
262
263 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
264
265         PR middle-end/24990
266         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
267         for C being INTEGER_CST.  Likewise for !=.
268
269 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
270
271         PR middle-end/24998
272         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
273         unsigned conversions from SImode to TFmode.
274
275 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
276
277         * expr.c (expand_expr_real_1): Fix error in last change.
278
279 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
280
281         * caller-save.c: (this_insn_sets): Move into:
282         (save_call_clobbered_regs).
283         (mark_set_regs): Get this_insn_sets from data.
284
285         (save_call_clobbered_regs): Take sets of the return value by
286         sibcalls into account.
287
288 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
289         PR target/21623:
290
291         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
292         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
293         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
294         (memory_move_secondary_cost, init_reg_autoinc): Remove
295         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
296         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
297         secondary_reload_class call.
298         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
299         callers.
300         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
301         (push_secondary_reload): Use secondary_reload target hook.
302         (secondary_reload_class, scratch_reload_class): New functions.
303         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
304         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
305         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
306         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
307         (secondary_reload_class, scratch_reload_class): Declare.
308         * reload1.c: Include target.h.
309         (reload_adjust_reg_for_temp): New function.
310         (reload_adjust_reg_for_icode): Likewise.
311         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
312         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
313         call.
314         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
315         for inheritance.  Support case when both secondary & tertiary reloads
316         are for intermediate registers.
317         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
318         with secondary_reload_class call.  Support case when both secondary
319         & tertiary reloads are for intermediate registers.
320         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
321         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
322         * target.h (secondary_reload_info): New struct / typedef.
323         (struct gcc_target): New member secondary_reload.
324         * targhooks.c Include reload.h, optabs.h and recog.h.
325         (default_secondary_reload): New function.
326         * targhooks.h (default_secondary_reload): Declare.
327         * doc/tm.texi: Document secondary_reload target hook.  Update
328         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
329         * doc/md.texi: Likewise.
330
331         * sh-protos.h (sh_secondary_reload): Declare.
332         * sh.c (TARGET_SECONDARY_RELOAD): Override.
333         (sh_secondary_reload): New function.
334         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
335         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
336         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
337         (HAVE_SECONDARY_RELOADS): Define.
338         * sh.md (reload_indf): Rename to:
339         (reload_indf__frn).
340         (reload_outdf): Rename to:
341         (reload_outdf__RnFRm).
342         (reload_insf): Rename to:
343         (reload_insf__frn).
344         (reload_insi): Rename to:
345         (reload_insi__i_fpul).
346
347 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
348
349         * configure.ac: Require at least texinfo 4.4.
350         * configure: Regenerate.
351
352         * doc/install.texi (Tools/packages necessary for building GCC):
353         Update required version of texinfo to at least 4.4.
354         (Installing GCC: Building): Update required version of texinfo
355         to at least 4.4.
356         (Installing GCC: Final installation): Update required version
357         of texi2dvi to at least 4.4.
358         (Host/target specific installation notes for GCC): Update required
359         version of texinfo to at least 4.4.
360
361 2005-11-24  Richard Guenther  <rguenther@suse.de>
362         Dirk Mueller <dmueller@suse.de>
363
364         PR c++/14024
365         * c-common.h (strict_aliasing_warning): Declare.
366         * c-common.c (strict_aliasing_warning): New function,
367         split out from ...
368         * c-typeck.c (build_c_cast): ... here.
369
370 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
371
372         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
373         to order operands.
374         (swap_commutative_operands_with_target): New.
375
376 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
377
378         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
379         also when doing PRE, rather than only for global CPROP.
380
381 2005-11-24  Ben Elliston  <bje@au.ibm.com>
382
383         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
384         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
385         formatting.
386         (expand_twoval_unop): Likewise.
387         (widen_clz): Likewise.
388         (expand_parity): Likewise.
389         (expand_unop): Likewise.
390         (emit_cmp_and_jmp_insn_1): Likewise.
391         (prepare_float_lib_cmp): Likewise.
392
393 2005-11-24  Ben Elliston  <bje@au.ibm.com>
394
395         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
396         Remove unused `class' variable.
397
398 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
399
400         PR c++/21667
401         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
402         C/C++ diagnostic function warn_array_subscript_with_type_char.
403         * c-common.h (warn_array_subscript_with_type_char): Declare.
404         * c-common.c (warn_array_subscript_with_type_char): Define.
405
406 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
407
408         PR c/21668
409         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
410         compiling at the intersection of C and C++.
411
412 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
413
414         * doc/invoke.texi: For man pages, include gcc-vers.texi.
415         List @file in the option summary.  Include the libiberty
416         documentation for @file.
417         * gcc.c (main): Call expandargv.
418         * Makefile.in (gcc-vers.texi): Define srcdir.
419
420 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
421
422         * passes.c (init_optimization_passes): Document
423         sequencing of passes.
424
425 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
426
427         * config/m68k/predicates.md (pcrel_address, extend_operator,
428         post_inc_operand, pre_dec_operand): Remove redundant
429         conditionals.
430         (const_uint32_operand, const_sint32_operand): Use gcc_assert
431         instead of abort.
432         (valid_dbcc_comparison_p): Rewrite in the lisp style.
433
434 2005-11-23  Ben Elliston  <bje@au.ibm.com>
435
436         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
437
438 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
439
440         Preparatory work for PR target/21623:
441         * alpha.c (secondary_reload_class): Rename to:
442         (alpha_secondary_reload_class).
443         * alpha.h, alpha-protos.h: Likewise.
444         * mn10300.c (secondary_reload_class): Rename to:
445         (mn10300_secondary_reload_class).
446         * mn10300.h, mn10300-protos.h: Likewise.
447         * pa.c (secondary_reload_class): Rename to:
448         (pa_secondary_reload_class).
449         * pa.h, pa-protos.h: Likewise.
450         * rs6000.c (secondary_reload_class): Rename to:
451         rs6000_secondary_reload_class.
452         * rs6000.h, rs6000-protos.h: Likewise.
453
454 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
455
456         PR middle-end/22561
457         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
458
459 2005-11-22  Ian Lance Taylor  <ian@airs.com>
460
461         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
462         a mode_class.
463         (prepare_cmp_insn): Likewise.
464
465 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
466
467         PR target/23435
468         * m68k.md (zero_extendsidi2): Force operands[1] to a register
469         if both operands[0] and operands[1] are memory.
470
471 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
472
473         PR middle-end/23606
474         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
475         COMPARISON_CLASS_P and an integral types create create a new
476         expression with the new type and fold that.
477
478 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
479
480         PR target/24988
481         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
482         to SUBTARGET_OS_CPP_BUILTINS.
483
484 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
485
486         * arm.c (emit_set_insn): New function.
487         (arm_split_constant): Call it.
488         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
489         (arm_legitimize_address): Likewise.  Use plus_constant.
490         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
491         (thumb_expand_prologue): Likewise.
492         (arm_gen_load_multiple): Use VOIDmode in SET.
493         (arm_gen_store_multiple): Likewise.
494         (vfp_emit_fstmx): Likewise.  Use plus_constant.
495         (emit_multi_reg_push): Likewise.
496         (emit_sfm): Use plus_constant.
497
498 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
499
500         PR target/24954
501         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
502         typo last change.
503
504 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
505
506         PR middle-end/24950
507         * expmed.c (store_bit_field): Don't attempt to insv a field
508         larger than the reg.
509
510 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
511
512         PR target/24954
513         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
514         explicit sign extension, not a (char) cast.
515
516 2005-11-22  Ben Elliston  <bje@au.ibm.com>
517
518         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
519         GET_MODE_CLASS (x) == MODE_FLOAT.
520         * config/i386/i386.c: Likewise.
521         * config/rs6000/xcoff.h: Likewise.
522         * config/rs6000/linux64.h: Likewise.
523         * config/rs6000/rs6000.c: Likewise.
524         * config/rs6000/rs6000.h: Likewise.
525         * config/rs6000/predicates.md: Likewise.
526         * config/rs6000/sysv4.h: Likewise.
527
528 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
529
530         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
531         flag_pic is set.
532
533         * config/alpha/freebsd.h, config/alpha/linux.h,
534         config/arm/linux-elf.h, config/bfin/bfin.h,
535         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
536         config/i386/beos-elf.h, config/i386/gnu.h,
537         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
538         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
539         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
540         config/rs6000/linux64.h, config/rs6000/sysv4.h,
541         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
542         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
543         config/sparc/linux.h, config/sparc/linux64.h,
544         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
545
546         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
547         are both defined when either flag -fpic or -fPIC are used.
548
549 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
550
551         * config/fp-bit.c (clzusi): New function.
552         (si_to_float, usi_to_float): Use it to compute proper shift.
553         (usi_to_float): Preserve guard bits when shifting right.
554         * libgcc-std.ver (GCC_4.2.0): New version.
555         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
556         __floatundisf): New functions.
557         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
558         __floatundisf): Declare.
559         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
560         _floatundixf, and _floatunditf.
561         * optabs.c (expand_float): If target does not define a pattern for
562         signed or unsigned conversion, use an unsigned libcall instead of
563         a signed one.
564         (init_optabs): Initialize ufloat_optab.
565
566 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
567
568         * config/rs6000/rs6000.opt (mmulhw): New option.
569         * doc/invoke.texi (-mmulhw): Document.
570         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
571         for 405 and 440.
572         * config/rs6000/rs6000.md: Add half-word multiply and
573         multiply-accumulate instructions for 405 and 440.
574
575 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
576
577         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
578         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
579         default now includes a linker group which makes the RTEMS one nest.
580
581 2005-11-22  Ben Elliston  <bje@au.ibm.com>
582
583         * cse.c (fold_rtx): Typo fix.
584         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
585
586 2005-11-21  Richard Henderson  <rth@redhat.com>
587
588         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
589         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
590
591         * c-tree.h (lookup_name): Move declaration ...
592         * c-common.h (lookup_name): ... here.
593         * config/darwin-c.c: Include c-common.h.
594         * config/t-darwin: Update dependencies.
595
596 2005-11-22  Ben Elliston  <bje@au.ibm.com>
597
598         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
599         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
600         * genopinit.c (gen_insn): Likewise.
601         * reload.c (find_equiv_reg): Likewise.
602         * loop.c (load_mems): Likewise.
603         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
604         * cse.c (find_comparison_args, fold_rtx): Likewise.
605         * dwarf2out.c (add_const_value_attribute): Likewise.
606         * expr.c (convert_move): Likewise.
607         * recog.c (general_operand, register_operand): Likewise.
608         * reg-stack.c (replace_reg): Likewise.
609         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
610         * c-common.c (handle_vector_size_attribute): Likewise.
611         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
612         (simplify_binary_operation_1): Likewise.
613         (simplify_const_binary_operation): Likewise.
614         (simplify_relational_operation): Likewise.
615         (simplify_const_relational_operation): Likewise.
616         (simplify_immed_subreg): Likewise.
617         * emit-rtl.c (gen_lowpart_common): Likewise.
618         * expmed.c (expand_mult): Likewise.
619         * stor-layout.c (layout_type): Likewise.
620
621 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
622
623         PR target/24951
624         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
625         cst2 only for SPE vectors.
626
627 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
628
629         PR target/24953
630         * config/rs6000/predicates.md (vrsave_operation): Check
631         UNSPEC_VOLATILE value.
632
633 2005-11-21  Jan Hubicka  <jh@suse.cz>
634
635         PR tree-optimization/24653
636         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
637
638 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
639
640         * config/i386/predicates.md (ax_reg_operand): New predicate.
641         (memory_displacement_only_operand): New predicate.
642         * config/i386/i386.md ("modrm" attribute): Return 0 if one
643         operand is AX register and the other operand is memory operand
644         with displacement only.
645
646 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
647
648         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
649         if we don't care about NaNs or Infinities.
650
651 2005-11-20  Ian Lance Taylor  <ian@airs.com>
652
653         PR rtl-optimization/24883
654         * combine.c (combinable_i3pat): When checking whether the
655         destination of i3 is used in i3, consider paradoxical subregs.
656
657 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
658
659         PR middle-end/20583
660         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
661
662 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
663
664         * combine.c (try_combine): Do not run subst on i1src and i2src in
665         the case of generating a PARALLEL for a comparison.
666
667 2005-11-20  Richard Henderson  <rth@redhat.com>
668
669         PR 24931
670         * tree-sra.c (struct sra_elt): Add all_no_warning.
671         (struct sra_walk_fns) <use>: Add use_all argument.
672         (sra_walk_expr): Pass it.
673         (sra_walk_modify_expr): Likewise.
674         (scalarize_ldst): Likewise.
675         (scan_use): Update for new argument.
676         (mark_no_warning): New.
677         (scalarize_use): Use it.
678
679 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
680
681         * expr.c (expand_expr_real): Use usmul_optab for widening
682         signed * unsigned multiplies.
683         * genopinit.c (optabs): Add usmul_widen_optab.
684         * optabs.c (init_optabs): Likewise.
685         * optabs.h (enum optab_index): Add OTI_usmul_widen.
686         (usmul_widen_optab): Define.
687         * config/bfin/bfin.md (usmulhisi3): New pattern.
688
689         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
690
691 2005-11-20  Graham Stott <btinternet.com>
692
693         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
694
695 2005-11-20  Andreas Schwab  <schwab@suse.de>
696
697         PR target/24757
698         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
699         insn.
700
701 2005-11-19  Richard Henderson  <rth@redhat.com>
702
703         PR tree-opt/24665
704         * tree-gimple.c (is_gimple_id): Export.
705         * tree-gimple.h (is_gimple_id): Declare.
706         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
707         (get_default_value): Use it.
708         (maybe_fold_stmt_indirect): Likewise.
709
710 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
711
712         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
713         than VR1 or vice-versa.
714
715 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
716
717         PR middle-end/24912
718         PR middle-end/24750
719         * reload.c (find_reloads_address_1): Mention dependency on
720         gen_reload.
721         * reload1.c (gen_reload): For IN with an unary operation, try
722         moving inner expression to OUT if trivial SET is not valid.
723         Confirm that the result is valid.  Move common code block into...
724         (emit_insn_if_valid_for_reload): New function.
725
726 2005-11-19  Richard Guenther  <rguenther@suse.de>
727
728         * fold-const.c (fold_indirect_ref_1): Make sure we fold
729         ARRAY_REFs of constant strings.
730
731 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
732
733         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
734         fatal format string.
735
736 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
737
738         * combine.c (make_compound_operation): Swap operands of
739         commutative operation if necessary before returning.
740
741 2005-11-19  Richard Guenther  <rguenther@suse.de>
742
743         PR middle-end/23294
744         * fold-const.c (fold_plusminus_mult_expr): New function.
745         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
746         cases, remove now unnecessary code.
747
748 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
749
750         * gensupport.c (old_preds): Rename to std_preds, add special field.
751         (struct old_pred_table): Rename to struct std_pred_table, add special
752         field.
753         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
754         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
755         (init_predicate_table): Adjust, and set along the way whether a
756         predicate is special.
757
758 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
759
760         * BASE-VER: Change to 4.2.0.
761
762 2005-11-18  James E Wilson  <wilson@specifix.com>
763
764         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
765         returning it.
766
767 2005-11-18  Mike Stump  <mrs@apple.com>
768
769         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
770         * config/darwin-c.c (darwin_pragma_unused): Likewise.
771         * c-decl.c (lookup_name_two) Remove.
772         * c-tree.h (lookup_name_two): Remove.
773         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
774         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
775         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
776         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
777
778 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
779
780         PR target/24914
781         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
782         when not generating code to use that co-processor.
783
784 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
785
786         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
787         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
788         these functions are now in tree-phinodes.c.
789
790 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
791
792         * config/bfin/bfin.md (trap): New pattern.
793
794 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
795
796         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
797         on types.
798
799         * expr.c (expand_expr_real): Don't call record_block_change unless
800         ib_boundaries_block is non-null
801
802         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
803
804         * fold-const.c (build_range_check): Use proper type for subtraction
805         when merging lower bound.
806
807 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
808
809         PR rtl-optimization/24497
810         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
811         the copied insn.
812
813 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
814
815         * tree-scalar-evolution.c (expression_expensive_p): New function.
816         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
817
818 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
819
820         * config/bfin/crtlibid.s: New file.
821
822 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
823
824         PR target/24348
825         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
826         when not using sjlj exceptions.
827         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
828         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
829         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
830         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
831         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
832         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
833         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
834         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
835         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
836         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
837         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
838         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
839         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
840         defines.
841         * config/pa/hpux-unwind.h: New file.
842
843 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
844
845         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
846         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
847         * varasm.c (do_assemble_alias): Adjust call.
848         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
849         is defined.
850         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
851
852 2005-11-17  James E Wilson  <wilson@specifix.com>
853
854         * tree.def (FUNCTION_DECL): Correct typo in comment.
855
856 2005-11-17  Richard Henderson  <rth@redhat.com>
857
858         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
859         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
860         and DW_CFA_def_cfa_sf.
861         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
862         (dbx_reg_number): Don't assert particular registers here.
863         (based_loc_descr): ... do it here instead.  Fold in ...
864         (eliminate_reg_to_offset): ... this function.
865         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
866         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
867         * unwind-dw2.c (execute_cfa_program): Apply data align factor
868         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
869         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
870         (instantiate_virtual_regs): Likewise.
871         * var-tracking.c (adjust_stack_reference): Likewise.
872         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
873
874 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
875
876         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
877         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
878         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
879         crtlibid.o.
880         ($(T)crtlibid.o): New rule.
881
882 2005-11-16  Richard Guenther  <rguenther@suse.de>
883
884         PR middle-end/24851
885         * fold-const.c (extract_array_ref): Return byte offset
886         in all cases.
887         (fold_binary): Fold &x[a] CMP &x[b] to
888         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
889         behavior.
890
891 2005-11-16  Richard Henderson  <rth@redhat.com>
892
893         PR middle-end/23497
894         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
895         parts of an SSA_NAME.
896
897 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
898
899         PR target/24861
900         * arm.md (split for movsf with immediate): Restrict split to insns
901         that set a general register.
902
903 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
904
905         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
906         uw_update_context.
907         * unwind-dw2.c (uw_advance_context): Likewise.
908         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
909         _Unwind_SjLj_Unregister.
910         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
911
912 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
913
914         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
915
916 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
917
918         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
919         langhook to get a DImode integer type.
920
921 2005-11-16  Richard Henderson  <rth@redhat.com>
922             J"orn Rennecke <joern.rennecke@st.com>
923             Ulrich Weigand  <uweigand@de.ibm.com>
924
925         PR rtl-opt/24160
926         PR target/24621
927         * reload1.c (reg_equiv_invariant): New.
928         (reload): Allocate, initialize, and free it.
929         (calculate_needs_all_insns): Check it when skipping equivalence
930         setting insns.
931         (alter_reg): Likewise.
932         (eliminate_regs_1): Rename from eliminate_regs.  Add new
933         may_use_invariant argument; only use reg_equiv_invariant when true.
934         (eliminate_regs): New.
935         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
936         a context for which may_use_invariant may be true.
937
938 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
939
940         * fold-const.c (const_binop): Don't constant fold the operation
941         if the result has overflowed and flag_trapping_math.
942         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
943
944 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
945
946         * config/arm/unwind-arm.c (abort): Add prototype here.
947         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
948         (struct phase1_vrs): Add prev_sp.
949         (unwind_phase2_forced): Save the original core registers instead of
950         modifying entry_vrs.  Take a new flag argument for resuming unwinding
951         and set action flags accordingly.  Always set _US_END_OF_STACK when
952         get_eit_entry fails.  Unwind before calling the stop function.
953         (_Unwind_GetCFA): New function.
954         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
955         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
956         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
957         just call unwind_phase2_forced.
958         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
959         * config/arm/unwind-arm.h (abort): Remove prototype.
960         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
961         prototypes.
962         (_Unwind_GetCFA): New prototype.
963         * config/arm/pr-support.c (abort): Add prototype here.
964         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
965         forced unwinding.
966         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
967         not schedule the prologue with non-call exceptions and EABI.
968
969 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
970
971         * config/arm/unwind-arm.h: Reorder interface function declarations.
972         (_URC_END_OF_STACK): New enumeration value.
973         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
974         (struct _Unwind_Control_Block): Document reserved field use.
975         (_Unwind_Stop_Fn): New typedef.
976         (_Unwind_ForcedUnwind): Declare.
977         (_Unwind_Resume_or_Rethrow): Declare.
978         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
979         argument.  Adjust.
980         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
981         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
982         (UCB_FORCED_STOP_ARG): New.
983         (search_EIT_table): Update boundary condition checks.
984         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
985         (unwind_phase2): Replace for with do..while.
986         (unwind_phase2_forced): New.
987         (__gnu_Unwind_RaiseException): Replace for with do..while.
988         (__gnu_Unwind_ForcedUnwind): New.
989         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
990         Use appropriate phase2 unwinder.
991         (__gnu_Unwind_Resume_or_Rethrow): New.
992         (__gnu_unwind_pr_common): Cope with forced unwinding.
993
994 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
995
996         PR target/24772
997         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
998
999         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
1000         roundsf2): Remove "s" from mnemonic.
1001
1002 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
1003
1004         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
1005         __PIC__ is defined.
1006         * config/bfin/crtn.s: Change epilogues to match.
1007         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
1008         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
1009         __PIC__ and __pic__.
1010
1011 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1012
1013         PR 24357
1014         * doc/invoke.texi: Distinguish between free and fixed form instead of
1015         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
1016         languages.
1017         * gcc.c (default_compilers): Remove double entries, add entries for
1018         suffixes '.F90' and '.F95'.
1019
1020 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
1021
1022         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
1023         in the stack probing loop.
1024
1025 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
1026
1027         * configure.ac: Use .machine power5 not power5x.
1028         * configure: Regenerate.
1029
1030 2005-11-15  Mike Stump  <mrs@apple.com>
1031
1032         * c-decl.c (lookup_name_two): Add.
1033         * c-tree.h (lookup_name_two): Likewise.
1034         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
1035         * config/darwin-c.c (darwin_pragma_unused): Likewise.
1036
1037 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
1038
1039         PR rtl-optimization/23392
1040         * regrename.c (enum scan_actions) Add mark_access.
1041         (scan_actions_name): Ditto.
1042         (scan_rtx_reg): Handle mark_access.
1043         (scan_rtx_address): Do nothing for mark_access.
1044         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
1045         and regs in REG_INC notes before closing chains for dead regs.
1046         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
1047         opening chains for new writes.
1048
1049 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
1050
1051         * c.opt (ffixed-line-length-none): New.
1052
1053 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
1054
1055         * mklibgcc.in: Change contents of eh_dummy.c.
1056
1057 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
1058
1059         * loop.c (scan_loop): Do not insert temporaries for hard registers.
1060
1061 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
1062
1063         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
1064         of making syscalls.
1065         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
1066
1067 2005-11-15  Jan Hubicka  <jh@suse.cz>
1068
1069         * invoke.texi (large-unit-insns): Document.
1070         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
1071         * params.def (large-unit-insns): New param.
1072
1073 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
1074
1075         PR target/24869
1076         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
1077         special register for operand 3.  Reindent constraints to align
1078         them vertically.
1079
1080 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
1081
1082         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
1083         -mpopcntb, -mfprnd. Add -mcpu=power5+.
1084         * configure.ac: Add test for FP rounding instructions.
1085         * configure: Regenerate.
1086         * config.in: Regenerate.
1087         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1088         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
1089         features enabled.
1090         * config/rs6000/rs6000.opt (mfprnd): New.
1091         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
1092         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
1093         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
1094         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
1095         (TARGET_FPRND): New.
1096         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
1097         UNSPEC_FRIZ): New.
1098         (btrunc<mode>2): New.
1099         (ceil<mode>2): New.
1100         (floor<mode>2): New.
1101         (round<mode>2): New.
1102
1103 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
1104
1105         * gcc.c (version_compare_spec_function): Use fatal() rather than
1106         abort().
1107
1108         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
1109         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
1110         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
1111         as empty.
1112         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
1113         link in crt2.o.
1114
1115         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
1116         on -mmacosx-version-min setting.
1117
1118 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
1119
1120         PR 24840
1121         * tree-vrp.c (infer_value_range): Return false if STMT is a
1122         block terminator and its basic block has no successors.
1123
1124 2005-11-14  Mike Stump  <mrs@apple.com>
1125
1126         * config/i386/i386.c (override_options): -masm=intel isn't
1127         supported on darwin.
1128         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
1129
1130 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
1131
1132         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
1133         vfork after including auto-host.h.
1134
1135 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
1136
1137         PR rtl-optimization/22002
1138         * combine.c (distribute_notes): Detect cases where a reg dies
1139         two or more times in a bb, including on the insn we are combining,
1140         and place the death note on the correct range.
1141
1142 2005-11-14  Dale Johannesen  <dalej@apple.com>
1143
1144         * expmed.c (store_bit_field):  Add offset unconditionally for
1145         memory targets.
1146         (extract_bit_field):  Don't force extzv or extv operand into
1147         a register if field is too big.
1148
1149 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
1150
1151         * config/arm/arm.c (pic_labelno): New.
1152         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
1153         LABEL_REF.  Pass only the labelno to PIC insns.
1154         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1155         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
1156         * arm.md (UNSPEC_PIC_LABEL): New constant.
1157         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
1158         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
1159         Use the correct label prefix.
1160
1161 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
1162
1163         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
1164         REQ_EQUIV note.
1165
1166 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
1167
1168         * loop-invariant.c: Include tm_p.h.
1169         * Makefile.in: Updated.
1170
1171 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1172
1173         * pa.c (store_reg): Revise generation of frame notes in large frames.
1174         (set_reg_plus_d): Likewise.
1175
1176 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
1177
1178         PR tree-optimization/24709
1179         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
1180         loop check.
1181
1182 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1183
1184         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
1185         and duplicate declaration of pthread_self.
1186
1187 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1188             Ian Lance Taylor  <ian@airs.com>
1189
1190         PR middle-end/24003
1191         * calls.c (expand_call): If TARGET is a MEM and some part of the
1192         argument area has been saved, force TARGET to a register.
1193
1194 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
1195
1196         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
1197         checking.
1198
1199 2005-11-13  Jason Merrill  <jason@redhat.com>
1200
1201         PR c++/22489
1202         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
1203         lazily declared methods.
1204         (force_decl_die): Stop if forcing out the context already make a
1205         DIE for the decl.
1206         (force_type_die): Likewise.
1207
1208 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
1209
1210         PR middle-end/24820
1211         * builtins.c (integer_valued_real_p): Add break in
1212         REAL_CST having TREE_OVERFLOW set.
1213
1214 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
1215
1216         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
1217         addressing modes during calculation of costs.
1218
1219 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1220
1221         * function.c (assign_stack_local_1): Restrict sanity check
1222         on frame size overflow to 32-bit and above platforms.
1223
1224 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
1225
1226         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
1227         * config/cris/cris.c: Include reload.h.
1228         (cris_initial_elimination_offset): New function.
1229         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
1230         Prototype.
1231
1232 2005-11-12  Richard Guenther  <rguenther@suse.de>
1233
1234         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
1235
1236 2005-11-12  Jan Hubicka  <jh@suse.cz>
1237
1238         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
1239         to compare against 0 when possible.
1240
1241 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
1242
1243         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
1244         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1245         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
1246         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
1247         in the new order.
1248
1249 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
1250
1251         * recog.c (constrain_operands) <case 'g'>: For a match, require
1252         that a non-register matches general_operand when strict >= 0.
1253
1254 2005-11-11  Steven Bosscher  <stevenb@suse.de>
1255
1256         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
1257         previous checkin.
1258
1259 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
1260
1261         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
1262         (memory_address_same): New.
1263         (dse_optimize_stmt): Call memory_address_same.
1264
1265 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
1266
1267         PR middle-end/24750
1268         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
1269         ZERO_EXTEND>: New cases.
1270
1271 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
1272
1273         * longlong.h (__clz_tab): Always provide.
1274
1275 2005-11-11  Steven Bosscher  <stevenb@suse.de>
1276
1277         PR 24265
1278         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
1279         can be assigned to.
1280         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
1281         before check_maybe_invariant.
1282         (move_invariant_reg): Use gen_move_insn instead of replacing
1283         SET_DEST with the temporary for the invariant.
1284         (move_loop_invariants): If checking is enabled, do internal
1285         consistency checks after completing the pass.
1286
1287 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
1288
1289         PR 24644
1290         * common.opt (Wvolatile-register-var): New.
1291         * varasm.c (make_decl_rtl): Only emit warning when option
1292         specified.  Clarify warning message.
1293         * doc/invoke.texi (Wvolatile-register-var): Document new option.
1294
1295         * doc/md.texi (copysign): Document standard named pattern.
1296
1297 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
1298
1299         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
1300         bytes when align is 2.
1301         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
1302         by the first instruction of the loop.
1303
1304 2005-11-11  Jason Merrill  <jason@redhat.com>
1305
1306         PR c++/24686
1307         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
1308         the cleanup list.
1309
1310 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
1311
1312         PR rtl-optimization/22509
1313         * local-alloc.c (memref_used_between_p): Check whether a function call
1314         could not reference the memref.
1315
1316 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
1317
1318         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
1319         algorithm so as to choose the best, not the worst, alternative.
1320         Reset accumulated register class before processing next alternative.
1321
1322 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
1323
1324         PR target/24445
1325         * calls.c (expand_call): Copy a return value to a plain register
1326         if needed.
1327
1328 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
1329
1330         PR target/24778
1331         * varasm.c (assemble_name): Recompute name only for transparent
1332         aliases.
1333
1334 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
1335
1336         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
1337
1338 2005-11-04  Jeff Law  <law@redhat.com>
1339
1340         PR middle-end/23181
1341         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
1342         perform reassociation if the parent statement will not die as
1343         a result of the optimization.
1344
1345 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
1346
1347         * tree-ssa-alias.c (compute_may_aliases): Remove call to
1348         delete_old_heap_vars.
1349         * tree-dfa.c (referenced_var_remove): Remove function.
1350         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
1351         (delete_tree_ssa): Remove call to delete_old_heapvars.
1352         Add call to delete_alias_heapvars.
1353         * tree-flow.h (referenced_var_remove): Remove prototype
1354         (init_alias_heapvars): New prototype.
1355         (delete_alias_heapvars): Ditto.
1356         * Makefile.in (tree-ssa-structalias.o): Add
1357         gt-tree-ssa-structalias.o
1358         (GTFILES): Add tree-ssa-structalias.h and
1359         tree-ssa-structalias.c.
1360         (s-gtype): Add gt-tree-ssa-structalias.h.
1361         * tree-ssa-structalias.c (heapvars): Remove.
1362         (oldheapvars): Remove.
1363         (heapvar_for_stmt): New variable.
1364         (heapvar_lookup): New function.
1365         (heapvar_insert): Ditto.
1366         (get_constraint_for): See if we have an old heapvar
1367         to reuse.
1368         (init_alias_heapvars): New function.
1369         (delete_alias_heapvars): Ditto.
1370         Add include of gt-tree-ssa-structalias.h.
1371
1372 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1373
1374         PR middle-end/22127
1375         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
1376
1377 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
1378
1379         * tree.c (int_fits_type_p): Only look at the base type
1380         if it has the same precision as the original type.
1381
1382 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
1383
1384         PR other/4372
1385         * varasm.c (assemble_alias): Use %q+D in the error
1386         message instead of %J and %qD.
1387
1388 2005-11-10  Richard Guenther  <rguenther@suse.de>
1389
1390         * gcse.c (free_ldst_entry): Only free hashtable if
1391         it exists.
1392
1393 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1394
1395         * function.c (assign_stack_local_1): Issue an error message if
1396         the frame size overflows in the signed target arithmetics.
1397
1398 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1399
1400         * tree.c (build_qualified_type): Chain the new type to the original
1401         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
1402         a POINTER_TYPE or a REFERENCE_TYPE respectively.
1403         (build_pointer_type_for_mode): Only return unqualified types.
1404         (build_reference_type_for_mode): Likewise.
1405
1406 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
1407
1408         * Makefile.in (gnucompare): Do comparison of all files using one of
1409         the chosen methods and only afterwards decide if just warning should
1410         be issued or comparison failure raised.
1411
1412 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1413
1414         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
1415         (noce_try_abs): Negate if the comparison is reversed.
1416         Look only one instruction backwards for a REG_EQUAL note.
1417
1418 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
1419
1420         PR other/4372
1421         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
1422         gthr-tpf.h: Define __gthrw.  For all identifiers that might
1423         be weak, introduce weakrefs or non-weak aliases with __gthrw,
1424         and prefix all uses with __ghtrw.
1425
1426 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
1427
1428         PR other/4372
1429         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
1430         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
1431         * c-common.c (handle_weakref_attribute): New.
1432         (c_common_attribute_table): Add weakref.
1433         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
1434         in the assembler.
1435         * configure, config.in: Rebuilt.
1436         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
1437         * doc/extend.texi: Document weakref attribute.
1438         * varasm.c (ultimate_transparent_alias_target): New
1439         (assemble_name): Use it.
1440         (weak_finish_1): Split out of...
1441         (weak_finish): ... and deal with weakrefs in...
1442         (weakref_targets): ... new list.
1443         (globalize_decl): Clean up weakref_targets.
1444         (do_assemble_alias): Handle weakrefs.
1445         (finish_aliases_1): Do not reject weakrefs to external symbols.
1446         (assemble_alias): Handle weakrefs.
1447
1448 2005-11-09  Richard Guenther  <rguenther@suse.de>
1449
1450         PR tree-optimization/24716
1451         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
1452         t_bool to track results from follow_ssa_edge.
1453
1454 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1455
1456         * final.c (force_source_line): New global variable.
1457         (final_scan_insn): Set it to true instead of clearing last_filename.
1458         (notice_source_line): Return true if force_source_line is true,
1459         unless source info is absent.
1460
1461 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
1462
1463         PR c/24644
1464         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
1465         a linkage name for a variable if it a register variable.
1466         * c-decl.c (grokdeclarator): Global register variables
1467         should be set as PUBLIC.
1468
1469 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1470
1471         PR 24624
1472         * config/s390/s390.c (struct s390_frame_layout): New fields
1473         first_save_gpr_slot and last_save_gpr_slot.
1474         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
1475         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
1476         first_save_gpr and last_save_gpr with the _slot variants.
1477         (s390_register_info): Calculate first_save_gpr_slot and
1478         last_save_gpr_slot using regs_ever_live.
1479
1480 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1481
1482         PR 24623
1483         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
1484         for a function containing a landing pad.
1485
1486 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
1487
1488         PR 24034
1489         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
1490         is live afterwards.
1491
1492 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
1493
1494         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
1495         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
1496
1497 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1498
1499         Add ms2 support
1500         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
1501         constants.
1502         (call,load,store): New insn types.
1503         (mem_access, branch_access): Adjust reservation conditions.
1504         (define_delay): Adjust condition.
1505         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
1506         type.
1507         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
1508         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
1509         insn type.
1510         (call_internal, call_value_internal, return_internal,
1511         return_interrupt_internal, eh_return_internal, indirect_jump,
1512         tablejump): Set call insn type.
1513         (blockage, ei, di): Use appropriate unspec const.
1514         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
1515         (ms1_get_attr_type): Adjust to give load & store types.
1516         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
1517         backwards past a barrier.
1518         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
1519         branch scheduling.
1520         (struct branch_info, struct label_info): New.
1521         (ms1_labels): New.
1522         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
1523         (ms1_machine_reorg): New.
1524         (TARGET_MACHINE_DEPENDENT_REORG): Override.
1525         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
1526         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
1527         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
1528         (TARGET_MS2): New.
1529
1530 2005-11-09  Per Bothner  <per@bothner.com>
1531             Uros Bizjak  <uros@kss-loka.si>
1532
1533         PR c/24101
1534         * toplev.c (process_options): Initialize debug_hooks early
1535         in case lang_hooks.post_options ends up calling a debug_hook.
1536
1537 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
1538
1539         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
1540         DBX_REGISTER_NUMBER being contiguous.
1541
1542 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
1543             Diego Novillo  <dnovillo@redhat.com>
1544
1545         PR 23046
1546         * tree-vrp.c (register_edge_assert_for): Do not register
1547         always-false predicates.
1548
1549 2005-11-08  Devang Patel <dpatel@apple.com>
1550
1551         PR tree-optimization/23115
1552         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
1553         relation.
1554
1555 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
1556
1557         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
1558         -mcpu=440.
1559
1560 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
1561
1562         Fix PR tree-optimization/23382
1563
1564         * tree-ssa-alias.c (compute_may_aliases): Call
1565         delete_old_heap_vars.
1566         * tree-dfa.c (referenced_var_remove): New function.
1567         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
1568         * tree-flow.h (referenced_var_remove): Add prototype.
1569         (delete_old_heap_vars): Ditto.
1570         * tree-ssa-structalias.c (heapvars): New variable.
1571         (oldheapvars): Ditto.
1572         (get_constraint_for): Put heap vars on heapvars list.
1573         (delete_old_heap_vars): New function.
1574
1575 2005-11-08  Jason Merrill  <jason@redhat.com>
1576
1577         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
1578
1579 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
1580
1581         PR target/19340
1582         * reg-stack.c (reg_to_stack): Update register liveness also
1583         for flag_sched2_use_traces.
1584
1585 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
1586
1587         PR target/23704
1588         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
1589         override prior explicit -mno-powerpc-gfxopt.
1590
1591 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1592
1593         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
1594         if the bitsize is zero.
1595         * doc/md.texi (Standard Pattern Names): Document it.
1596
1597         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
1598         (TARGET_PASS_BY_REFERENCE): Likewise.
1599
1600 2005-11-07  Ian Lance Taylor  <ian@airs.com>
1601
1602         PR rtl-optimization/24683
1603         * config/i386/i386.c (legitimize_pic_address): If constant operand
1604         to PLUS is too large, put it in a register.
1605
1606 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
1607
1608         * configure.ac: Enable checking assembler dwarf2 support for bfin
1609         target.
1610         * configure: Regenerate.
1611
1612 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
1613
1614         PR target/24230
1615
1616         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
1617         gen_easy_vector_constant_add_self): Delete.
1618         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
1619         New.
1620         (output_vec_const_move): Use gen_easy_altivec_constant.
1621         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
1622         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
1623         (easy_vector_constant_add_self): Rewritten.
1624         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
1625         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
1626         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
1627         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
1628         Macroize and adjust for the other changes.
1629
1630 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
1631
1632         PR c/24599
1633
1634         * c-typeck.c (build_c_cast): Try using a shared constant, and see
1635         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
1636
1637 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
1638
1639         PR rtl-optimization/23567
1640         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
1641         (noce_process_if_block): Don't do any optimizations except
1642         if (cond) x = x; if !set_b and write into orig_x may trap
1643         or fault.  Remove the MEM_READONLY_P check.
1644
1645 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
1646
1647         PR 24670
1648         * tree-vrp.c (fix_equivalence_set): New.
1649         (extract_range_from_assert): Call it.
1650
1651 2005-11-05  Ian Lance Taylor  <ian@airs.com>
1652
1653         PR target/22432
1654         * combine.c (apply_distributive_law): Don't distribute across a
1655         vector mode subreg.
1656
1657 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
1658
1659         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
1660         config/ms1/ms1.h, config/rs6000/predicates.md,
1661         config/s390/s390.c, params.def, postreload-gcse.c,
1662         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
1663         tree-vrp.c, tree.c: Fix comment typos.
1664         * doc/invoke.texi: Fix typos.
1665
1666 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
1667
1668         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
1669         for testing whether the data_dependence_relation contains distance
1670         vectors.  Iterate over all distance vectors of the ddr.
1671         * lambda.h: Define a vec of lambda_vector pointers.
1672         * tree-data-ref.c (dump_data_dependence_relation,
1673         dump_data_dependence_direction): Iterate over all distance and
1674         direction vectors of the ddr.
1675         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
1676         DDR_DIST_VECTS.
1677         (build_classic_dist_vector, build_classic_dir_vector): Push a set
1678         of distance/direction vectors instead of a single one.
1679         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
1680         lambda_vectors with a vec of lambda_vectors.
1681         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
1682         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
1683         DDR_NUM_DIST_VECTS): New.
1684         * tree-loop-linear.c (gather_interchange_stats): Test for the
1685         existence of distance vectors only after having checked that there
1686         is a dependence.  Iterate over all distance vectors of the ddr.
1687         (linear_transform_loops): Use dump_data_dependence_relation.
1688         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
1689         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
1690         distance vectors of the ddr.
1691
1692 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1693
1694         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
1695         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
1696         IS_INTHANDLER; all callers changed.
1697         (n_regs_saved_by_prologue): Take interrupt handler attributes into
1698         account.
1699         (do_link, do_unlink): New argument ALL; all callers changed.
1700         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
1701         If function isn't leaf, save and restore all registers.
1702         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
1703         exception handler.
1704
1705 2005-11-05  Jan Hubicka  <jh@suse.cz>
1706
1707         PR rtl-optimization/23490
1708         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
1709         max-flow-memory-location): Document.
1710         * flow.c: Include params.h
1711         (MAX_MEM_SET_LIST_LEN): Kill.
1712         (add_to_mem_set_list): Use new param.
1713         * cse.c (cse_basic_block): Replace 1000 by new param.
1714         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
1715         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
1716         * predict.c (predict_loops): Use new param.
1717         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
1718
1719         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
1720         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1721         Do not hold memory returned by cgraph_node_name across other call.
1722
1723 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
1724
1725         PR target/23424
1726         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
1727         Disable.
1728
1729 2005-11-04  Jeff Law  <law@redhat.com>
1730
1731         PR/21883
1732         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
1733         * tree-ssa-dom.c: Include params.h.
1734         (thread_across_edge): If there are too many statements in the
1735         target block, then do not thread through it.
1736         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
1737         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
1738
1739 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
1740
1741         PR 24627
1742         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
1743         TODO_update_ssa instead of TODO_update_ssa_no_phi.
1744
1745 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
1746
1747         PR/18595
1748         * tree-scalar-evolution.c (instantiate_parameters_1,
1749         instantiate_parameters, resolve_mixers): Compute the size of an
1750         expression to be instantiated and give up the instantiation if the
1751         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1752
1753 2005-11-04  Richard Guenther  <rguenther@suse.de>
1754
1755         * tree-flow.h (ref_contains_indirect_ref): Rename to
1756         array_ref_contains_indirect_ref.
1757         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
1758         (array_ref_contains_indirect_ref): Make comment match the code
1759         and vice-versa.
1760         (ref_contains_array_ref): Likewise.
1761         * tree-ssa-structalias.c (find_func_aliases): Remove call to
1762         ref_contains_indirect_ref.
1763         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1764         Rename calls to ref_contains_indirect_ref.
1765
1766 2005-11-04 Paul Brook  <paul@codesourcery.com>
1767
1768         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
1769         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
1770         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
1771         * config/arm/arm.md: Use match_operand in peephole input templates
1772         and match_dup in peephole output templates.
1773
1774 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1775
1776         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
1777         __aeabi_uidiv.
1778
1779 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
1780             Daniel Jacobowitz  <dan@codesourcery.com>
1781
1782         * longlong.h (add_ssaaaa): Clobber condition code register
1783         in ARM version.
1784         (sub_ddmmss): Likewise.
1785         (umul_ppmm): Likewise.
1786
1787 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1788             Paul Brook  <paul@codesourcery.com>
1789             Phil Blundell  <pb@reciva.com>
1790
1791         * configure.ac: Add test for ARM TLS support.
1792         * configure: Regenerated.
1793         * config/arm/arm-protos.h (legitimize_tls_address)
1794         (arm_tls_referenced_p, tls_mentioned_p)
1795         (arm_output_addr_const_extra): New prototypes.
1796         (thumb_legitimize_pic_address): Delete.
1797         * config/arm/arm.c: Include "gt-arm.h".
1798         (enum tls_reloc): New.
1799         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
1800         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
1801         (arm_call_tls_get_addr, legitimize_tls_address)
1802         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
1803         (arm_init_tls_builtins, arm_emit_tls_decoration)
1804         (arm_output_addr_const_extra): New functions.
1805         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
1806         (TARGET_HAVE_TLS): Define.
1807         (target_thread_pointer): New.
1808         (arm_override_options): Handle -mtp=.
1809         (legitimize_pic_address): Ignore UNSPECs.
1810         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
1811         relative symbols.
1812         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
1813         (tls_get_addr_libfunc): New variable.
1814         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
1815         (arm_init_builtins): Call arm_init_tls_builtins.
1816         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
1817         (arm_encode_section_info): Call default_encode_section_info.
1818         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
1819         (enum arm_tp_type): New.
1820         (target_thread_pointer): Add declaration.
1821         (LEGITIMATE_CONSTANT_P): Handle TLS.
1822         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
1823         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
1824         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
1825         * config/arm/arm.md: Add UNSPEC_TLS.
1826         (movsi): Handle TLS.
1827         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
1828         non-PIC.
1829         (tls_load_dot_plus_eight): New insn and a peephole to create it.
1830         (load_tp_hard, load_tp_soft): New insns.
1831         * arm.opt: Add -mtp=.
1832         * doc/invoke.texi (ARM Options): Document -mtp.
1833
1834 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
1835
1836         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
1837         * config/arm/libunwind.S: Include "lib1funcs.asm".
1838         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
1839         (LIB2ADDEH): Add libunwind.S.
1840         (LIB2ADDEHDEP): Add lib1funcs.asm.
1841         * mklibgcc.in: Handle asm files in libgcc_eh.a.
1842
1843 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1844
1845         PR fortran/18452
1846         * gcc/c.opt: Add a -lang-fortran option.
1847         * gcc/c-opts.c: Add a lang_fortran flag.
1848         (c_common_init_options): Handling the -lang-fortran option.
1849         (c_common_handle_option): Add a case for Fortran options in
1850         preprocessing. Remove cases for -ffixed-form and
1851         -ffixed-line-length. Add a case for -lang-fortran.
1852
1853 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
1854
1855         * config/rs6000/rs6000.c: Include params.h
1856         (optimization_options): Set max-grow-copy-bb-insns default to 16.
1857         (bdesc_2arg): Delete vpkuhss and vpkuwss.
1858         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
1859         (UNSPEC_VPKUWSS): Delete.
1860         (altivec_vpkuhss): Delete.
1861         (altivec_vpkuwss): Delete.
1862         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
1863         final condition.
1864         (neg_eq0<mode>): Remove final condition.
1865         (neg_eq<mode>): Remove condition and split-condition.
1866
1867 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
1868
1869         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
1870         Use associated print macros.
1871
1872 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
1873
1874         PR c++/17964
1875         * diagnostic.c (diagnostic_set_info_translated): New function.
1876         (diagnostic_set_info): Use it.  Add comment.
1877         * diagnostic.h (diagnostic_set_info_translated): Declare.
1878
1879 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1880
1881         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
1882         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
1883         reference only if 'public' is true.
1884         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
1885         emit the .hidden directive only if the indirect reference is public.
1886         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
1887         Pass it to dw2_force_const_mem.
1888         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
1889         * dwarf2out.c (output_cfi): Adjust calls to above function.
1890         (output_call_frame_info): Likewise.
1891         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
1892         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
1893
1894 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
1895
1896         PR tree-optimization/24483
1897         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
1898         field to elts if possible.
1899
1900 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
1901
1902         PR middle-end/23155
1903         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
1904         CONSTRUCTOR.
1905
1906 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
1907
1908         Fix PR tree-optimization/24351
1909
1910         * tree-ssa-structalias.c (struct variable_info): Add
1911         collapsed_into.
1912         (get_varinfo_fc): New function to follow collapsing.
1913         (new_var_info): Set collapsed_to to NULL.
1914         (dump_constraint): Follow collapsing.
1915         (build_constraint_graph): Handle collapsing.
1916         (do_simple_structure_copy): Return false if something bad
1917         happened.
1918         (collapse_rest_of_var): New function.
1919         (do_structure_copy): Collapse if do_simple_structure_copy returns
1920         false.
1921
1922 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
1923
1924         PR middle-end/24589
1925         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
1926         expressions to a statement list instead of gimplifying them.
1927
1928 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1929
1930         PR rtl-optimization/23585
1931         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
1932         that can't trap plus a constant integer, if the mode has zero size.
1933
1934 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
1935
1936         PR target/24620
1937         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
1938         as operand 2.
1939         ("*insv<mode>_reg_extimm"): Likewise.
1940
1941 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
1942
1943         PR c/24329
1944         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
1945         c_common_type_for_mode returns an unnamed type.
1946
1947 2005-11-02  Richard Henderson  <rth@redhat.com>
1948
1949         PR target/9350
1950         PR target/24374
1951         * dwarf2out.c (dwarf2out_reg_save_reg): New.
1952         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
1953         * function.c (assign_parms): Use calls.internal_arg_pointer.
1954         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
1955         code.
1956         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
1957         (TARGET_CALLS): Add it.
1958         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
1959         * targhooks.c (default_internal_arg_pointer): New.
1960         * targhooks.h (default_internal_arg_pointer): Declare.
1961         * tree.h (dwarf2out_reg_save_reg): Declare.
1962         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
1963         * config/i386/i386.c (dbx_register_map): Add return column.
1964         (dbx64_register_map, svr4_dbx_register_map): Likewise.
1965         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
1966         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
1967         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
1968         (ix86_save_reg): Save force_align_arg_pointer.
1969         (ix86_emit_save_regs): Make regno unsigned.
1970         (ix86_emit_save_regs_using_mov): Likewise.
1971         (ix86_expand_prologue): Handle force_align_arg_pointer.
1972         (ix86_expand_epilogue): Likewise.
1973         * config/i386/i386.h: (dbx_register_map): Update.
1974         (dbx64_register_map, svr4_dbx_register_map): Update.
1975         (struct machine_function): Add force_align_arg_pointer.
1976         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
1977         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
1978         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
1979
1980 2005-11-02  Jan Hubicka  <jh@suse.cz>
1981
1982         PR target/23303
1983         * i386.md: Add peep2 for simplyfing array accesses.
1984
1985 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1986
1987         PR target/24615
1988         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
1989         * config/s390/s390.c (s390_decompose_shift_count): New function.
1990         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
1991         (print_shift_count_operand): Use s390_decompose_shift_count.
1992         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
1993         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
1994
1995 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1996
1997         PR target/24600
1998         * loop.c (loop_givs_rescan): Use force_operand to expand
1999         complex GIVs.
2000
2001 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
2002
2003         PR 22429
2004         * fold-const.c (build_range_check): Use unsigned when signed
2005         overflow is undefined also.  If etype is subtype, make sure that
2006         the subtraction is in the supertype.
2007
2008 2005-11-02  Richard Henderson  <rth@redhat.com>
2009
2010         PR target/24178
2011         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
2012         by MEM_ALIGN.
2013
2014 2005-11-01  Richard Henderson  <rth@redhat.com>
2015
2016         PR 21518
2017         * loop.c (scan_loop): Do not propagate computations to a hard
2018         register destination with SMALL_REGISTER_CLASSES.
2019
2020 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
2021
2022         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
2023         costs for MULT inside PLUS or MINUS.
2024
2025 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
2026
2027         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
2028         (TRAMPOLINE_SIZE): Round up to 60.
2029         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
2030
2031 2005-10-31  James E. Wilson  <wilson@specifix.com>
2032
2033         PR debug/24444
2034         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
2035         ifdef.  Put ifdefs around call in gen_subprogram_die.
2036         (compute_frame_pointer_to_cfa_displacement): Likewise.
2037         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
2038         not defined.
2039
2040         PR rtl-optimization/17356
2041         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
2042         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
2043
2044 2005-10-31  Jan Hubicka  <jh@suse.cz>
2045
2046         PR middle-end/24093
2047         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
2048
2049         PR target/20928
2050         * i386.c (legitimize_pic_address): Deal with large immediates.
2051
2052         PR profile/20815
2053         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
2054         from symbol names while computing checkup.
2055
2056         PR profile/24487
2057         * predict.c (predict_loops): Do not estimate more than
2058         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
2059         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
2060
2061 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
2062
2063         PR tree-optimization/19097
2064         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
2065
2066 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
2067
2068         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
2069
2070 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
2071
2072         PR middle-end/23492
2073         * tree-inline.c (setup_one_parameter): If the init_stmt
2074         is NULL, don't insert the statement.
2075
2076 2005-10-30  Jan Hubicka  <jh@suse.cz>
2077
2078         PR tree-optimization/24172
2079         * tree-inline.c (copy_body_r): Unshare the substituted value first.
2080
2081 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2082
2083         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
2084         constants for hosts with long != 32 bits.
2085
2086 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
2087
2088         PR middle-end/24093
2089         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
2090
2091 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
2092
2093         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
2094         (TARGET_MS1_16_002): New.
2095         (TARGET_MS1_16_003): New.
2096
2097         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
2098         ("*decrement_and_branch_until_zero_no_clobber"): New.
2099         Add corresponding splitter for decrement_and_branch_until_zero
2100         instruction.
2101         Key all decrement_and_branch_until_zero patterns off of
2102         TARGET_MS1_16_003.
2103
2104 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
2105
2106         PR middle-end/24362
2107         * tree-complex.c (extract_component): Treat RESULT_DECL
2108         like the rest of the decls.
2109
2110 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2111
2112         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
2113         indirect call to _mcount if the function needs a static chain.
2114
2115 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2116             Caroline Tice  <ctice@apple.com>
2117
2118         PR rtl-optimization/24460
2119         * dwarf2out.c (have_switched_text_sections): New boolean variable.
2120         (dwarf2out_switch_text_section): Set it to true instead of
2121         incrementing separate_line_info_table_in_use.
2122         (output_loc_list): Additionally test have_switched_text_sections.
2123         (output_ranges): Likewise.
2124         (dwarf2out_finish): Likewise.
2125         * varasm.c (assemble_start_function): Do not call
2126         insert_section_boundary_note.
2127         (assemble_end_function): If flag_reorder_blocks_and_partition,
2128         switch to the function's section before emitting the .size directive.
2129         * bb-reorder.c (insert_section_boundary_note): Staticify.
2130         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
2131         * output.h (insert_section_boundary_note): Delete.
2132
2133 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
2134
2135         PR c/23103
2136         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
2137         instead of pointer equality when comparing types.
2138
2139 2005-10-24  James E. Wilson  <wilson@specifix.com>
2140
2141         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
2142         add_dependence_list_and_free calls.
2143
2144 2005-10-24  Steven Bosscher  <stevenb@suse.de>
2145
2146         * contrib.texi: Add the names of the LLNL folks who donated
2147         Cray pointer support for gfortran.
2148
2149 2005-10-24  Steven Bosscher  <stevenb@suse.de>
2150
2151         PR tree-optimization/24225
2152         * profile.c (branch_prob): Look from end to start through a
2153         basic block when looking for a locus.
2154
2155 2005-10-24  Richard Henderson  <rth@redhat.com>
2156
2157         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
2158         parallel.
2159         (hppa_expand_prologue): Likewise.
2160
2161 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2162
2163         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
2164         (NO_DEFERRED_PROFILE_COUNTERS): Define.
2165         * pa.h (NO_PROFILE_COUNTERS): Define.
2166         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
2167         (funcdef_nos): New vector to hold label numbers of deferred profile
2168         counters.
2169         (output_deferred_profile_counters): New function.
2170         (hppa_profile_hook): Push label number onto funcdef_nos.
2171         (pa_hpux_file_end): Call output_deferred_profile_counters if
2172         NO_DEFERRED_PROFILE_COUNTERS is false.
2173
2174         * pa-protos.h (get_deferred_plabel): New prototype.
2175         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
2176         Make global.
2177         (output_call): Adjust calls.
2178
2179 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
2180
2181         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
2182         peculiarity of GOT/TOC section usage.
2183
2184 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
2185
2186         PR objc/24435
2187          * c-common.c (constant_string_class_name): Add documentation.
2188
2189 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
2190
2191         PR target/23832
2192         * recog.c (peephole2_optimize): Increment peep2_current_count
2193         only when the slot is empty.
2194
2195 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2196
2197         PR ada/23957
2198         * except.c (output_function_exception_table): Call
2199         assemble_external_libcall if we need a personality function.
2200
2201 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2202
2203         PR rtl-optimization/24460
2204         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
2205         set the basic block for barriers.
2206
2207 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
2208
2209         * var-tracking.c (vt_initialize): Initialize post.
2210
2211 2005-10-21  Devang Patel  <dpatel@apple.com>
2212
2213         PR/24220
2214         * c-common.c (vector_types_convertible_p): Check vector element type.
2215
2216 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2217
2218         * config/sh/sh.c (prepare_move_operands): Handle the address
2219         constant which is a tls symbolic address plus a constant.
2220
2221 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
2222
2223         PR driver/24473
2224         * gcc.c (main): Use the correct counter for erroring out
2225         about mulitple files.
2226
2227 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
2228
2229         PR target/24465
2230         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
2231         use r2 for 64-bit tls .got access.
2232
2233 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
2234
2235         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
2236         TRUTH_OR_EXPR.
2237
2238 2005-10-20  Steven Bosscher  <stevenb@suse.de>
2239
2240         PR tree-optimization/24307
2241         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
2242
2243 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
2244
2245         PR middle-end/24295
2246         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
2247         alias targets.
2248         * varasm.c (find_decl_and_mark_needed): After cgraph global info
2249         is ready, stop marking functions, but still mark variables.
2250
2251 2005-10-20  Richard Guenther  <rguenther@suse.de>
2252
2253         PR c++/24439
2254         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
2255         void type operands.
2256
2257 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2258
2259         PR rtl-optimization/23585
2260         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
2261         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
2262         (may_trap_p_1): New predicate extracted from...
2263         (may_trap_p): ... here.  Invoke may_trap_p_1.
2264         (may_trap_or_fault_p): New predicate.
2265         * rtl.h (may_trap_or_fault_p): Declare it.
2266         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
2267         instead of may_trap_p.
2268         (steal_delay_list_from_fallthrough): Likewise.
2269         (fill_simple_delay_slots): Likewise.
2270         (fill_slots_from_thread): Likewise.
2271         * function.c (pad_to_arg_alignment): Rework comment about
2272         SPARC_STACK_BOUNDARY_HACK.
2273         * config/sparc/sparc.h: Likewise.
2274
2275 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
2276
2277         * config/s390/s390.c (s390_expand_insv): New.
2278         * config/s390/s390-protos.h (s390_expand_insv): Declare.
2279         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
2280         ("icm_hi"): Remove mode attribute.
2281         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
2282         Adjust all uses.
2283         ("*extracthi", "*extractqi"): Remove.
2284         (extv<mode>", "*extzv<mode>"): New.
2285         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
2286         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
2287
2288 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2289
2290         * cfgexpand.c (discover_nonconstant_array_refs_r,
2291         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
2292         (tree_expand_cfg): Call discover_nonconstant_array_refs.
2293         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
2294         discover_nonconstant_array_refs.
2295
2296 2005-10-19  Steven Bosscher  <stevenb@suse.de>
2297
2298         PR c/23228
2299         * c-decl.c (pop_scope): Don't warn about an unused variable
2300         if it is marked with TREE_NO_WARNING.
2301         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
2302         somenow mismatch and olddecl is to be replaced.
2303
2304 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
2305
2306         PR middle-end/23199
2307         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
2308         whether registers live on the edge can be saved/restored.
2309
2310 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2311
2312         * config/sh/sh.c (fixup_mova): Skip notes.
2313
2314 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2315
2316         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
2317         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
2318         (s390_can_eliminate): Handle BASE_REGNUM elimination.
2319         (s390_initial_elimination_offset): Likewise.
2320         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
2321         register on TARGET_ZARCH targets.
2322         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
2323         (INITIAL_FRAME_POINTER_OFFSET): Remove.
2324         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
2325         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
2326
2327 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2328
2329         * config/s390/s390.md: Comment describing output modifiers updated.
2330         * config/s390/s390.c (print_operand): Likewise.
2331
2332 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2333
2334         * config/s390/s390.c (override_options): Added check for -mstack-size
2335         64k limitation.
2336         * doc/invoke.texi: Mention that limit in the documenation.
2337
2338 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
2339
2340         PR #19672
2341         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
2342
2343 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
2344
2345         Fix PR tree-optimization/24231
2346
2347         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
2348         (compute_avail): Ditto.
2349
2350 2005-10-18  Richard Henderson  <rth@redhat.com>
2351
2352         PR target/24428
2353         * config/i386/i386.c (legitimate_constant_p): Check
2354         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
2355         if LABEL_REF.
2356         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
2357         (legitimate_pic_address_disp_p): Reorg CONST checking to make
2358         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
2359         directly.
2360         (print_operand_address): Likewise.
2361         * config/i386/predicates.md (x86_64_immediate_operand): Test
2362         SYMBOL_REF_TLS_MODEL properly inside CONST.
2363         (x86_64_zext_immediate_operand): Likewise.
2364         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
2365         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
2366         * config/i386/i386-protos.h: Remove predicates.md entries.
2367
2368 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
2369
2370         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
2371         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
2372
2373 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
2374             Ian Lance Taylor <ian@airs.com>
2375
2376         PR middle-end/23522
2377         * fold-const.c (fold_widened_comparison): Do not allow range based
2378         constant folding when right operand cannot be unwidened.
2379
2380 2005-10-17  Richard Henderson  <rth@redhat.com>
2381
2382         * builtins.c (expand_builtin_synchronize): Build a new-style asm
2383         with a memory clobber.
2384
2385 2005-10-17  James E Wilson  <wilson@specifix.com>
2386
2387         PR rtl-optimization/17356
2388         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
2389         checking for EDGE_EH.
2390
2391 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2392
2393         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
2394         the slot on an even boundary for any type with 16-byte alignment.
2395
2396 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
2397
2398         PR target/23424
2399         * md.texi (Modifiers) <%>: Clarify that % doesn't work
2400         after register allocation.
2401
2402 2005-10-17  DJ Delorie  <dj@redhat.com>
2403
2404         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
2405         as frame related.
2406
2407 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
2408
2409         PR c++/22551
2410         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
2411         overflow flags.
2412
2413 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2414
2415         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
2416         to 2 if it's already non-zero.
2417         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
2418         is set and warn about it if flag_schedule_insns is 1.
2419
2420 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
2421
2422         * config/crx/crx.md: Compare-and-branch instructions need to
2423         invalidate CC.
2424
2425 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
2426
2427         PR target/24315
2428         * config/i386/i386.md (*pushdi2_rex64 splitter)
2429         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
2430         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
2431         flow2 pass only when (optimize > 0 && flag_peephole2).
2432
2433 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
2434
2435         PR driver/22544
2436         * gcc.c (have_c): New static variable.
2437         (have_o): Likewise.
2438         (process_command): Remove declation of have_c.
2439         Set have_o to 1 when handling -o.
2440         (main): Add a fatel error if there are multiple
2441         files specified and -o and -c/-S is passed witout
2442         -combine or multiple languages.
2443
2444 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
2445
2446         Fix PR tree-optimization/22444
2447         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
2448         Assert that we don't hit something with subvars.
2449         (setup_pointers_and_addressables): Don't add things with subvars,
2450         because we'll already process the subvars for aliasing purposes.
2451
2452 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
2453
2454         PR target/23424
2455         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
2456         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
2457         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
2458         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
2459         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
2460         swapped, alternatives for the R constraint.
2461
2462         PR middle-end/24341
2463         * builtins.c (get_builtin_sync_mode): Make unlimited
2464         mode_for_size request.
2465
2466 2005-10-15  Richard Henderson  <rth@redhat.com>
2467
2468         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
2469         (gimplify_expr): ... here.
2470         (gimplify_compound_lval): Use it in initial scan loop.  Allow
2471         fb_lvalue in base expression.
2472
2473 2005-10-15  Richard Henderson  <rth@redhat.com>
2474
2475         PR 23714
2476         * builtins.c (expand_builtin_trap): Export.
2477         * expr.h (expand_builtin_trap): Declare.
2478         * expr.c (expand_assignment): Emit a trap for integral offsets
2479         from registers that weren't reduced to bitpos.
2480
2481         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
2482         (mark_array_ref_addressable): Remove.
2483         * tree-flow.h (mark_array_ref_addressable): Remove.
2484         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
2485
2486 2005-10-15  James E Wilson  <wilson@specifix.com>
2487
2488         PR target/24232
2489         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
2490         (add_dependence_list_and_free): Likewise.
2491         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
2492         call.
2493
2494 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
2495
2496         PR 23141
2497         PR 23142
2498         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
2499         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
2500         anti-range.
2501         (vrp_visit_phi_node): Only prevent infinite iterations when
2502         the previous result and the new result are both VR_RANGEs.
2503
2504 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
2505
2506         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
2507         function comment.
2508
2509 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2510
2511         PR c/23439
2512         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
2513         to initialize loc.
2514
2515 2005-10-14  Per Bothner  <per@bothner.com>
2516
2517         PR preprocessor/21250
2518         * c-ppoutput.c (print_line): Print internal line 0 as 1.
2519
2520 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
2521
2522         PR c++/22551
2523         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
2524         overflow flags.  Refactor some conditionals.
2525
2526 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
2527
2528         PR tree-opt/21304
2529         * tree-dfa.c (add_referenced_var): Only look at decls which
2530         have TREE_CONSTANT or TREE_READONLY set instead of if
2531         !TREE_PUBLIC or !TREE_CONSTANT.
2532
2533 2005-10-13  James E Wilson  <wilson@specifix.com>
2534
2535         * doc/invoke.texi: For -x, add f95-cpp-input.
2536         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
2537
2538 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
2539
2540         PR tree-optimization/24262
2541         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
2542         in loop all the time.
2543
2544 2005-10-12  Richard Henderson  <rth@redhat.com>
2545
2546         PR c/24255
2547         * tree.h (DECL_TRANSPARENT_UNION): Remove.
2548         * function.c (assign_parm_find_data_types): Don't support it.
2549         * print-tree.c (print_node): Likewise.
2550         * c-common.c (handle_transparent_union_attribute): Likewise.
2551         Use build_duplicate_type.
2552         * tree-inline.c (remap_type_1): Split out of remap_type;
2553         properly remap aggregate fields.
2554         (build_duplicate_type): New.
2555         * doc/extend.texi (Variable Attributes): Remove documentation
2556         for transparent_union.
2557
2558 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2559
2560         PR target/24284
2561         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
2562         (gen_stack_pointer_dec): Likewise.
2563
2564 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
2565
2566         PR middle-end/21275
2567         PR middle-end/21766
2568         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
2569         target hook.
2570         (struct cxx): Add adjust_class_at_definition target hook.
2571         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
2572         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
2573         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
2574         hook_void_tree. Add to TARGET_CXX.
2575         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
2576         dllimport_flag.
2577         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
2578         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
2579         instead of attribute. Check for dllexport override.  Warn if
2580         inconsistent dll linkage. Don't lose old dllimport if decl has
2581         had address referenced.   Tweak lookup of dllimport atribute.
2582         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
2583         for target specific rules.  Don't add dllimport attribute if
2584         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
2585         dllimport attribute.
2586         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
2587         * varasm.c (initializer_constant_valid_p): Replace
2588         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
2589
2590         PR target/21801
2591         PR target/23589
2592         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
2593         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
2594         (i[34567]86-*-mingw32*): Likewise.
2595
2596         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
2597         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
2598
2599         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
2600         C++-specific code. Change return value to bool.
2601         (i386_pe_dllimport_p): Likewise.
2602         (associated_type): Simplify and make language-independent
2603         (i386_pe_encode_section_info): Replace override of ambiguous
2604         dllimport symbol refs with a gcc_assert.
2605         (i386_pe_valid_dllimport_attribute_p): Define.
2606         * config/i386/winnt-cxx.c: New file. Define C++ versions of
2607         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2608         i386_pe_adjust_class_at_definition.
2609         * config/i386/winnt-stubs.c: New file. Define stub versions of
2610         lang-specific functions.
2611         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
2612         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
2613         i386_pe_adjust_class_at_definition.
2614         (i386_pe_valid_dllimport_attribute_p): Declare.
2615         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
2616         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
2617         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
2618
2619         PR target/19704
2620         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
2621         dllimport attribute with test of DECL_DLLIMPORT_P.
2622
2623 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
2624
2625         * combine.c (make_extraction): Correct offset computation.
2626
2627 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
2628
2629         * config/cris/t-linux (LIMITS_H_TEST): Define.
2630
2631 2005-10-12  Richard Henderson  <rth@redhat.com>
2632
2633         PR rtl-opt/23324
2634         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
2635
2636 2005-10-12  Richard Guenther  <rguenther@suse.de>
2637
2638         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
2639
2640 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
2641
2642         PR c++/19964
2643         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
2644         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
2645         type.
2646
2647 2005-10-12  Richard Guenther  <rguenther@suse.de>
2648
2649         PR c++/23799
2650         * varasm.c (output_constant): Correct typo from previous
2651         patch by DJ.
2652
2653 2005-10-11  Ian Lance Taylor  <ian@airs.com>
2654
2655         PR rtl-optimization/13931
2656         * combine.c: Revert patch of 2003-05-14, and:
2657         (try_combine): Only set elim_i1 and elim_i2 if the destination is
2658         completely killed in the appropriate insn.
2659         (distribute_notes): Don't skip multiple hard register test for
2660         elim_i1 and elim_i2.
2661
2662 2005-10-11  Richard Henderson  <rth@redhat.com>
2663
2664         PR c/24255
2665         * c-typeck.c (convert_for_assignment): Use build_constructor_single
2666         to initialize a transparent union instead of a nop_expr.
2667
2668 2005-10-11  Richard Henderson  <rth@redhat.com>
2669
2670         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
2671         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
2672         (tree_ssa_dce_loop): Call scev_reset.
2673
2674         PR tree-opt/24300
2675         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
2676         * tree-ssa-dce.c: Include cfgloop.h.
2677         (tree_ssa_dce_loop, pass_dce_loop): New.
2678         * tree-pass.h (pass_dce_loop): Declare it.
2679         * passes.c (init_optimization_passes): Use it.
2680
2681 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2682
2683         PR middle-end/24263
2684         * convert.c (convert_to_real): Revert 2005-10-05 patch.
2685         Only apply the optimization for rounding builtins if the inner
2686         cast is also an extension.
2687
2688 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
2689
2690         PR tree-opt/23946
2691         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
2692         mark_new_vars_to_rename instead of update_stmt.
2693
2694 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2695
2696         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
2697
2698 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2699
2700         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
2701         for setting MMX register to 0 rather than mmx.
2702
2703 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
2704
2705         PR target/12098
2706         * configure.ac: Move gas check from mips specific case to common case.
2707         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
2708         * configure: Regenerate
2709         * doc/install.texi: Update.
2710
2711 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2712
2713         PR target/24284
2714         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
2715
2716 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
2717
2718         * gcc.c (do_spec_1): Accept numeric characters in file name
2719         suffixes.
2720
2721 2005-10-10  Nick Clifton  <nickc@redhat.com>
2722
2723         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
2724         describing the deleted arm_gen_rotated_half_load function.
2725
2726 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2727
2728         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
2729         __fpscr_values.
2730
2731 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
2732
2733         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
2734         gnu_ld assignments.
2735         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
2736         (EXTRA_MULTILIB_PARTS): Define.
2737         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2738         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2739         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
2740         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
2741         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
2742         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
2743
2744 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
2745
2746         PR tree-optimization/24226
2747         * tree-cfg.c (remove_bb): Clean up unreachable loops.
2748         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
2749         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
2750         Export.
2751
2752 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
2753
2754         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
2755
2756 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
2757
2758         PR target/24136
2759         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
2760         Rewrite for no need for the early clobber.
2761
2762 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
2763
2764         Merge from csl-arm-branch:
2765         2005-09-07  Paul Brook  <paul@codesourcery.com>
2766         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
2767         space to string.
2768
2769         2005-04-30  Paul Brook  <paul@codesourcery.com>
2770         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
2771         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
2772
2773         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
2774         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
2775         (arm_override_options): Use TARGET_AAPCS_BASED.
2776         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
2777         (PTRDIFF_TYPE): Use int for AAPCS.
2778         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
2779         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
2780         (DEFAULT_SHORT_ENUMS): Delete.
2781         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
2782
2783         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
2784         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
2785         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
2786         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
2787
2788         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
2789         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
2790
2791         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
2792         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
2793
2794         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
2795         * config.gcc (arm*-*-linux-gnueabi): Add it.
2796         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
2797         redefining it.
2798         (TARGET_OS_CPP_BUILTINS): Likeiwse.
2799         * config/arm/linux-eabi.h: New file.
2800         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
2801         (LINUX_TARET_LINK_SPEC): Likewise.
2802         (LINK_SPEC): Use it.
2803         * config/arm/t-linux-eabi: New file.
2804
2805 2005-10-08  Steven Bosscher  <stevenb@suse.de>
2806
2807         PR other/22202
2808         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
2809         spaces.
2810         (PARAM_SMS_DFA_HISTORY): Likewise.
2811
2812 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
2813
2814         PR middle-end/23150
2815         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
2816         (load_register_parameters): Call it.
2817         (check_sibcall_argument_overlap_1): Likewise.
2818         (store_one_arg): Likewise.
2819
2820 2005-10-07  James E. Wilson  <wilson@specifix.com>
2821
2822         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
2823         DImode not VECINT24 for operand 2.
2824
2825         PR target/23644
2826         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
2827         -mtune-arch.
2828
2829         PR target/24193
2830         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
2831         fr_spill): Use destination_operand for operand 0.
2832
2833 2005-10-07  DJ Delorie  <dj@redhat.com>
2834
2835         * varasm.c (output_constant): Limit error to expanding
2836         conversions.
2837
2838 2005-10-07  Richard Guenther  <rguenther@suse.de>
2839
2840         PR middle-end/24227
2841         * fold-const.c (fold_binary): Fix operand types during folding
2842         of X op (A, Y).  Evaluation order of the side-effects of
2843         X and A are frontend-defined, so ensure we honour that even for
2844         tcc_comparison class operands; eased by removing duplicate code.
2845
2846 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
2847
2848         * stor-layout.c (layout_type): Do not allow alignment of array
2849         elements to be greater than their size.
2850
2851 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
2852
2853         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
2854         host_xmake_file.
2855         (hppa*-*-linux*): Ditto.
2856         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
2857         * config/host-hpux.c: New.
2858         * config/x-hpux: New.
2859         * config/pa/x-hpux: Remove.
2860         * config/pa/x-linux: Remove.
2861         * config/pa/pa-host.c: Remove.
2862
2863 2005-10-07  Jeff Law  <law@redhat.com>
2864
2865         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
2866         determine whether or not to try and thread outgoing edges.
2867
2868 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
2869
2870         * config/rs6000/rs6000.md (eqsi_power): New.
2871         (neg_eq0si): Add TARGET_POWER to final condition.
2872         (neg_eqsi): Same.
2873
2874 2005-10-06  Richard Henderson  <rth@redhat.com>
2875
2876         * config/rs6000/rs6000.c: Revert last change.
2877
2878 2005-10-06  Richard Henderson  <rth@redhat.com>
2879
2880         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
2881         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
2882
2883 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
2884
2885         PR middle-end/22216
2886         PR middle-end/23651
2887         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
2888         out return_label and naked_return_label.
2889
2890 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
2891
2892         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
2893         change.
2894
2895 2005-10-06  Richard Henderson  <rth@redhat.com>
2896
2897         PR tree-opt/22237
2898         * tree-inline.c (declare_return_variable): Handle modify_dest not
2899         being a DECL.
2900
2901 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
2902
2903         Fix PR tree-optimization/22488
2904         * tree-ssa-structalias.c (check_for_overlaps): New function.
2905         (create_variable_info_for): Use it.
2906
2907 2005-10-06  Richard Henderson  <rth@redhat.com>
2908
2909         PR debug/24070
2910         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
2911         (dwarf2out_start_source_file): Print it.
2912
2913 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
2914
2915         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
2916
2917 2005-10-06  Richard Henderson  <rth@redhat.com>
2918
2919         PR 23706
2920         * mode-switching.c (optimize_mode_switching): Clear transp bit
2921         for block with incomming abnormal edges.
2922
2923         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
2924         (fpscr_set_from_mem): Use them.
2925         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
2926         (fpscr postinc splitters): Rewrite as peephole2+split.
2927
2928 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
2929
2930         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
2931         (eq<mode>_compare): Same.
2932
2933 2005-10-06  Richard Guenther  <rguenther@suse.de>
2934
2935         PR tree-optimization/24238
2936         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
2937
2938 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
2939
2940         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
2941         here.  Use AC_PATH_PROG for environment variables instead of
2942         test -x.
2943         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
2944         objdump also.
2945         * configure: Regenerated.
2946
2947 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
2948
2949         PR target/23783
2950         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
2951         then force it into a register.
2952         (call_value): Likewise.
2953
2954 2005-10-06  Richard Henderson  <rth@redhat.com>
2955
2956         PR 24049
2957         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
2958         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
2959         under pass_vectorize.
2960
2961 2005-10-05  Devang Patel  <dpatel@apple.com>
2962
2963         PR Debug/23205
2964         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
2965         handling constants. Check NAMESPACE_DECL context for constants.
2966
2967 2005-10-05  Eric Christopher  <echristo@apple.com>
2968
2969         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
2970
2971 2005-10-05  Richard Henderson  <rth@redhat.com>
2972
2973         PR 23714
2974         * tree-cfg.c (mark_array_ref_addressable_1): New.
2975         (mark_array_ref_addressable): New.
2976         * tree-flow.h (mark_array_ref_addressable): Declare.
2977         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
2978
2979 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
2980
2981         PR middle-end/20606
2982         PR middle-end/24069
2983         * reload.c (subst_reloads): When adding a REG_LABEL to a
2984         jump instruction, also update JUMP_LABEL.
2985
2986 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
2987
2988         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
2989         * bb-reorder.c (copy_bb_p): Use it.
2990         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
2991
2992 2005-10-05  Richard Henderson  <rth@redhat.com>
2993
2994         PR target/23602
2995         * toplev.c (process_options): Warn about unsupported combinations
2996         of unwind tables and omit-frame-pointer.
2997         * config/i386/i386.c (override_options): Similarly.  Enable
2998         accumulate-outgoing-args if not explicitly disabled.
2999
3000 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
3001
3002         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
3003         Handle big endian vs. small endian.
3004         (vec_initv2sf): Handle big endian vs. small endian.
3005         (*vec_extractv2sf_1): Ditto.
3006
3007 2005-10-05  Dale Johannesen  <dalej@apple.com>
3008
3009         * convert.c (convert_to_real):  Don't convert
3010         (float)floor(double d) to floorf((float)d).
3011
3012 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
3013
3014         * config/arm/arm.md (insv): Use gen_int_mode in more places.
3015
3016 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
3017
3018         PR tree-optimization/18587
3019         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
3020         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
3021         build_vuses): Change to VEC type.
3022         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
3023         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
3024         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
3025         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
3026         (get_name_decl): New.  Return DECL_UID of base variable.
3027         (operand_build_cmp): New.  qsort comparison routine.
3028         (operand_build_sort_virtual): New.  Sort virtual build vector.
3029         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
3030         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
3031         (FINALIZE_BASE): Use get_name_decl.
3032         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
3033         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
3034         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
3035         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
3036         direct VEC_* manipulations.
3037         (build_ssa_operands): Call operand_build_sort_virtual.
3038         (copy_virtual_operand, create_ssa_artficial_load_stmt,
3039         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
3040         with direct VEC_* manipulations.
3041         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
3042         with direct VEC manipulations.
3043
3044 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
3045
3046         PR tree-optimization/21419
3047         PR tree-optimization/24146
3048         PR tree-optimization/24151
3049
3050         * c-typeck.c (readonly_error): Handle USE being lv_asm.
3051         (build_asm_expr): Call it if outputs are read-only.
3052         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
3053
3054 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
3055             Paolo Bonzini  <bonzini@gnu.org>
3056
3057         PR target/23809
3058
3059         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
3060         enable the instructions and not just the built-ins.
3061         * doc/invoke.texi (x86 Options): Likewise.
3062
3063 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
3064
3065         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
3066
3067         * doc/invoke.texi (Option Summary): Correct spelling
3068         of -mmacosx-version-min.
3069
3070 2005-10-04  Devang Patel  <dpatel@apple.com>
3071
3072         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
3073         real types.
3074
3075 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
3076
3077         * tree-vect-transform.c (vect_create_epilog_for_reduction):
3078         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
3079
3080 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
3081
3082         * config/s390/s390.md ("TDSI","DP"): New mode macros.
3083         ("TE","tg"): New mode attributes.
3084         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
3085         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
3086         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
3087         dword_mode and one for GPRmode.
3088
3089 2005-10-04  Ian Lance Taylor  <ian@airs.com>
3090
3091         PR preprocessor/13726
3092         * c-ppoutput.c (cb_include): Add comments parameter, and print out
3093         any comments passed in.
3094
3095 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
3096
3097         * tree.c (annotate_with_file_line): Fix typo.
3098
3099 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3100
3101         PR ada/19382
3102         * builtins.c (fold_builtin_memcmp): When constructing the pointer
3103         type used to access data in the inlined length == 1 case, use
3104         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
3105         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3106
3107 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
3108
3109         * config/i386/i386.h (TARGET_FISTTP): Enable also for
3110         TARGET_SSE3 and only for TARGET_80387.
3111         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
3112         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
3113         Do not depend on TARGET_80387.
3114
3115 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
3116
3117         * tree.c (last_annotated_node): Change type to location_t*.
3118         (annotate_with_file_line): Reflect the change of
3119         last_annotated_node type.
3120
3121 2005-10-04  Richard Guenther  <rguenther@suse.de>
3122
3123         PR c/23576
3124         * c-decl.c (grokdeclarator): Don't write to fields
3125         of error_mark_node.
3126
3127 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
3128
3129         PR middle-end/23125
3130         * c-decl.c (finish_decl): Use set_user_assembler_name even for
3131         register variables.
3132         * varasm.c (make_decl_rtl): If a register variable does not
3133         have a set user assmbler name, error out.
3134         Decode the asmspec is now name+1 bypassing '*'.
3135
3136 2005-10-04  Steven Bosscher  <stevenb@suse.de>
3137
3138         PR tree-optimization/23049
3139         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
3140         of a COND_EXPR is folded before calling fold on the whole rhs of a
3141         conditional assignment.
3142         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
3143         document that a COND_EXPR may appear there.
3144
3145 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
3146
3147         PR 23445
3148         * tree-vrp.c (extract_range_from_assert): If the new numeric
3149         range created out of the assertion contradicts the existing
3150         numeric range of the ASSERT_EXPR variable, make the new range
3151         varying.
3152
3153 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3154
3155         * config/sh/sh.c (sh_register_move_cost): Add case for moving
3156         from T_REGS to FP register class.
3157
3158 2005-10-03  Richard Henderson  <rth@redhat.com>
3159
3160         PR 24135
3161         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
3162         before creating a new one.
3163
3164 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
3165
3166         * config/rs6000/t-aix43 (LDFLAGS): New.
3167         * config/rs6000/t-aix52 (LDFLAGS): New.
3168
3169 2005-10-03  Ian Lance Taylor  <ian@airs.com>
3170
3171         * gimplify.c (find_single_pointer_decl_1): New static function.
3172         (find_single_pointer_decl): New static function.
3173         (internal_get_tmp_var): For a formal variable, set restrict base
3174         information if appropriate.
3175         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
3176         return it.
3177         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
3178         (DECL_GET_RESTRICT_BASE): Define.
3179         (SET_DECL_RESTRICT_BASE): Define.
3180         (decl_restrict_base_lookup): Declare.
3181         (decl_restrict_base_insert): Declare.
3182         (struct tree_decl_with_vis): Add based_on_restrict_p field.
3183         * tree.c (restrict_base_for_decl): New static variable.
3184         (init_ttree): Initialize restrict_base_for_decl.
3185         (copy_node_stat): Copy restrict base information.
3186         (decl_restrict_base_lookup): New function.
3187         (decl_restrict_base_insert): New function.
3188         (print_restrict_base_statistics): New static function.
3189         (dump_tree_statistics): Call print_restrict_base_statistics.
3190
3191 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
3192
3193         PR 24142
3194         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
3195         case of anti-ranges.
3196
3197 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
3198
3199         PR c/18851
3200         * c-typeck.c (tagged_tu_seen): Rename to ...
3201         (tagged_tu_seen_cache): this and add val field.
3202         (comptypes): Move functional to comptypes_internal
3203         and free tagged_tu_seen.
3204         (comptypes_internal): New function and call comptypes_internal
3205         instead of comptypes. Speed up by sibcalling
3206         tagged_types_tu_compatible_p.
3207         (alloc_tagged_tu_seen): New function
3208         (free_all_tagged_tu_seen_up_to): New function.
3209         (tagged_types_tu_compatible_p): Return the val of the seen two
3210         types.
3211         Add that the two types are the same to tagged_tu_seen_base
3212         if they are and call comptypes_internal instead of comptypes.
3213         <case UNION_TYPE>: Speed up common type where the fields are
3214         in the same order.
3215         (function_types_compatible_p): Call comptypes_internal instead of
3216         comptypes.
3217         (type_lists_compatible_p): Likewise.
3218         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
3219
3220 2005-10-02  Matthias Klose  <doko@debian.org>
3221
3222         * doc/invoke.texi: Fix typo and speling error.
3223
3224 2005-10-01  Richard Henderson  <rth@redhat.com>
3225
3226         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
3227
3228 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
3229
3230         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
3231         using --start-group and --end-group.
3232
3233 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
3234
3235         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
3236         FIXME note regarding quirky semantics.
3237
3238 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
3239
3240         PR 24141
3241         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
3242         non-null range as a last resort.
3243
3244 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
3245             Diego Novillo  <dnovillo@redhat.com>
3246
3247         PR 23604
3248         * tree-vrp.c (extract_range_from_assert): For !=
3249         assertions, only build an anti-range if LIMIT is a
3250         single-valued range.
3251
3252 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
3253
3254         * arm.md (movqi): On thumb when optimizing, handle loading from
3255         memory by describing this as taking a subreg of a zero-extended load
3256         into an SImode register.
3257         (movhi): Likewise.
3258
3259 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
3260
3261         * reload1.c (merge_assigned_reloads): Do not change any
3262         RELOAD_FOR_OUTPUT_ADDRESS reloads.
3263
3264 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
3265
3266         * Makefile.in (LIPO_FOR_TARGET): Define.
3267         (STRIP_FOR_TARGET): Define.
3268
3269         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
3270         before creating new ones.  Do symlinks before creating the actual
3271         targets.
3272
3273         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
3274         to work out which multilibs are actually being built.
3275
3276 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
3277
3278         * tree-vect-transform.c, config/ms1/ms1.md,
3279         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
3280         Follow spelling conventions.
3281         * doc/invoke.texi, doc/md.texi: Fix typos.
3282
3283 2005-09-30  Andrew Macleod  <amacleod@redat.com>
3284
3285         PR tree-optimization/21430
3286         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
3287         use operands, and set stmt pointer if need be.
3288         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
3289         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
3290         present.
3291
3292 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3293
3294         PR middle-end/24053
3295         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
3296
3297 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
3298
3299         * optabs.c (expand_binop): Initialize first_pass_p.
3300
3301 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
3302
3303         PR middle-end/24109
3304         * c-decl.c (c_write_global_declarations_1): If any
3305         wrapup_global_declaration_2 call returned true, restart the loop.
3306
3307 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
3308
3309         Fix PR tree-optimization/24117
3310         * tree-ssa-structalias.c (find_func_aliases): Strip nops
3311         before considering whether to use anyoffset.
3312
3313 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
3314
3315         Revert this patch:
3316
3317         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
3318
3319         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3320         to order operands.
3321         (swap_commutative_operands_with_target): New.
3322
3323 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
3324
3325         PR c/21419
3326         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
3327         read-only.
3328
3329 2005-09-29  Steven Bosscher  <stevenb@suse.de>
3330
3331         PR tree-optimization/23911
3332         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
3333         and IMAGPART_EXPR too.
3334
3335 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
3336
3337         PR 17886
3338         * expmed.c (expand_shift): Move logic to reverse rotation
3339         direction when  rotating by constants ...
3340         * optabs.c (expand_binop): ... here.
3341         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
3342         (ix86_rotrdi3): New pattern.
3343         (rotldi3): Handle 32-bit mode.
3344         (ix86_rotldi3): New pattern.
3345
3346 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
3347
3348         PR target/24102
3349         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
3350         check for numbers that need no bit twiddle.
3351
3352 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
3353
3354         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
3355         multilib to be built.
3356
3357         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
3358         (stage1-start): Delete old libgcc and libunwind before moving
3359         anything into the stage directory.
3360         (stage2-start): Likewise.
3361         (stage3-start): Likewise.
3362         (stage4-start): Likewise.
3363         (stageprofile-start): Likewise.
3364         (stagefeedback-start): Likewise.
3365         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
3366         header in tm_file and CPU-specific t-darwin in tmake_file.
3367         (i[34567]86-*-darwin*): Don't change tm_file.
3368         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
3369         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
3370         shared library stub for target OS version.
3371         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
3372         (SHLIB_LINK): Don't make SHLIB_SOLINK.
3373         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
3374         (libgcc_s.%.dylib): New.
3375         (LIBGCC): Define.
3376         (install-darwin-libgcc-stubs): New.
3377         (INSTALL_LIBGCC): New append.
3378         * config/i386/darwin-libgcc.10.4.ver: New.
3379         * config/i386/darwin-libgcc.10.5.ver: New.
3380         * config/i386/t-darwin: New.
3381         * config/rs6000/darwin-libgcc.10.4.ver: New.
3382         * config/rs6000/darwin-libgcc.10.5.ver: New.
3383         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
3384         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
3385
3386 2005-09-28  Paul Brook  <paul@codesourcery.com>
3387
3388         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
3389         denormals.
3390
3391 2005-09-28  Richard Guenther  <rguenther@suse.de>
3392
3393         PR tree-optimization/23853
3394         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
3395         host_integerp to verify misalignment value.
3396
3397 2005-09-28  Richard Henderson  <rth@redhat.com>
3398
3399         * builtins.c (get_builtin_sync_mode): New.
3400         (expand_builtin_sync_operation): Pass in mode argument.
3401         (expand_builtin_compare_and_swap): Likewise.
3402         (expand_builtin_lock_test_and_set): Likewise.
3403         (expand_builtin_lock_release): Likewise.
3404         (expand_builtin): Update to match.
3405
3406 2005-09-28  Nick Clifton  <nickc@redhat.com>
3407
3408         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
3409         formatting.  Add check to PLUS case to ensure that the offset is
3410         within an acceptable range.
3411
3412         * config/v850/v850.md (casesi): Disable the generation of the
3413         switch pattern as it is not being handled properly at the moment.
3414
3415         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
3416         for when the high words are identical.
3417
3418 2005-09-27  Richard Henderson  <rth@redhat.com>
3419
3420         * pretty-print.c (pp_base_format): Fix typo for %>.
3421
3422 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
3423             Devang Patel  <dpatel@apple.com>
3424
3425         PR tree-optimization/23625
3426         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
3427         LABEL_EXPR, assertion check.
3428
3429 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
3430
3431         * optabs.c (no_conflict_move_test): Check if a result of a
3432         to-be-moved insn would be clobbered by an originally
3433         preceding insn.
3434
3435 2005-09-27  Jeff Law  <law@redhat.com>
3436
3437         * passes.c (init_optimization_passes): Replace copy propagation
3438         passes immediately after DOM with phi-only copy propagation
3439         pases.  Add phi-only copy propagation pass after first DOM pass.
3440         * tree-pass.h (pass_phi_only_copy_prop): Declare.
3441         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
3442         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
3443         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
3444         to init_copy_prop.  Callers updated.
3445         (do_phi_only_copy_prop): New function.
3446         (pass_phi_only_copy_prop): New pass descriptor.
3447
3448 2005-09-27  Nick Clifton  <nickc@redhat.com>
3449
3450         * libgcc2.c (__popcount_tab): Remove redundant prototype.
3451
3452 2005-09-26  Jason Merrill  <jason@redhat.com>
3453
3454         PR c++/13764
3455         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
3456
3457         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
3458
3459 2005-09-26  James E Wilson  <wilson@specifix.com>
3460
3461         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
3462         copyright.  Add gcc copyright plus libgcc exception.
3463         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
3464         copyright.
3465         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
3466
3467 2005-09-26  Jeff Law  <law@redhat.com>
3468
3469         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
3470         about when to iterate.
3471
3472 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
3473
3474         PR target/23847
3475         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
3476         for __complex__ double in -mcpu=G5 mode.
3477
3478 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
3479
3480         PR tree-optimization/23942
3481         * Makefile.in (SCEV_H): Depends on PARAMS_H.
3482         * tree-scalar-evolution.c: Include params.h.
3483         (t_bool): New enum.
3484         (follow_ssa_edge, follow_ssa_edge_in_rhs,
3485         follow_ssa_edge_in_condition_phi_branch,
3486         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
3487         Change return type to t_bool.  Use a parameter to limit the size of
3488         trees that are walked before stopping
3489         (analyze_evolution_in_loop): Initialize the limit to 0.
3490         (follow_ssa_edge): Give up by returning t_dont_know if the limit
3491         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3492
3493 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
3494
3495         PR middle-end/23831
3496         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
3497         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
3498
3499 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
3500
3501         * combine.c (make_extraction): Check for valid use of subreg.
3502
3503 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
3504
3505         PR target/24055
3506         * config/i386/i386.md ("*fistdi2_1"): New pattern.
3507         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
3508         ("fist<mode>2_with_temp"): Use only register operands.
3509
3510 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
3511
3512         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
3513         CALL_INSN_FUNCTION_USAGE.
3514
3515 2005-09-26  Richard Guenther  <rguenther@suse.de>
3516
3517         PR middle-end/15855
3518         * gcse.c: Include hashtab.h, define ldst entry hashtable.
3519         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
3520         (ldst_entry): Use the hashtable instead of list-walking.
3521         (find_rtx_in_ldst): Likewise.
3522         (free_ldst_entry): Free the hashtable.
3523         (compute_ld_motion_mems): Create the hashtable.
3524         (trim_ld_motion_mems): Remove entry from hashtable if
3525         removing it from list.
3526         (compute_store_table): Likewise^2.
3527         (store_motion): Free hashtable in case we did not see
3528         any stores.
3529
3530 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
3531
3532         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
3533         and arg1 if we are passing them to fold_build2.
3534
3535 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
3536
3537         PR 23828
3538         * config/i386/i386.c (ix86_function_regparm): Fix the test for
3539         a nested function.
3540
3541 2005-09-25  Richard Henderson  <rth@redhat.com>
3542
3543         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
3544         SYMBOL_REF_TLS_MODEL to be correct.
3545
3546 2005-09-24  Richard Henderson  <rth@redhat.com>
3547
3548         * ipa-type-escape.c (discover_unique_type): Remove dead code at
3549         end of function.  Reindent.
3550
3551 2005-09-24  Ian Lance Taylor  <ian@airs.com>
3552
3553         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
3554         NEGATE_EXPR/BIT_NOT_EXPR case.
3555
3556 2005-09-24  Richard Henderson  <rth@redhat.com>
3557
3558         * c-common.c (handle_mode_attribute): When not modifying in place,
3559         create subtypes for enumerations.
3560         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
3561         * gimplify.c (create_tmp_from_val): Likewise.
3562
3563 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
3564
3565         * config/i386/i386.md (*tls_global_dynamic_64,
3566         *tls_local_dynamic_base_64): Add missing mode to call.
3567         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
3568
3569 2005-09-24  Jan Hubicka  <jh@suse.cz>
3570
3571         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
3572         (cgraph_clone_node): Likewise.
3573         * cgraph.h (cgraph_clone_edge): Update prototype.
3574         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
3575         duplicated prototypes; add updating argument.
3576         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
3577         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
3578         updating profile.
3579         (cgraph_mark_inline_edge): Likewise.
3580         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
3581         (cgraph_flatten_node): Likewise.
3582         (cgraph_decide_recursive_inlining): Likewise.
3583         (cgraph_decide_inlining_of_small_function): Likewise.
3584         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3585
3586 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
3587             Pete Steinmetz <steinmtz@us.ibm.com>
3588
3589         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
3590         (rldic.): Set type to "compare".
3591         (rldicr.): Same.
3592         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
3593         mfjmpr for MFCTR/MFLR.
3594         (movdf_hardfloat64): Same.
3595         (movdf_softfloat64): Same.  Correct order of store and move types.
3596         (movti_string): Set type to store_ux/load_ux.
3597         (load_multiple): Set type to load_ux.
3598         (store_multiple): Set type to store_ux.
3599         (movmemsi): Set type to store_ux.
3600         (output_cbranch direct_return): Set type to jmpreg.
3601         (stmw): Set type to store_ux.
3602         (lmw): Set type to load_ux.
3603         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
3604         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
3605         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
3606         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
3607         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
3608         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
3609         (rios1-fpstore): Increase latency to 3.
3610         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
3611         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
3612
3613 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
3614             Andrew Pinski  <pinskia@physics.uc.edu>
3615
3616         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
3617         operand2 constraint to "b".
3618         (sync_<fetchop_name>di_internal): Same.
3619         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
3620         to "b".
3621         (sync_old_<fetchop_name>di_internal): Same.
3622         (sync_new_<fetchop_name>si_internal): Same.
3623         (sync_new_<fetchop_name>di_internal): Same.
3624
3625 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
3626
3627         PR middle-end/23991
3628         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
3629         case, define as macros.
3630
3631         PR rtl-optimization/23837
3632         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
3633         clobber / clobber match between dest and p->first.
3634
3635         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
3636         (no_conflict_move_test): Update comments.
3637
3638 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
3639
3640         * doc/install.texi: Update URL for Jacks.
3641         * doc/sourcebuild.texi: Likewise.
3642
3643 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
3644
3645         PR target/24007
3646         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
3647         registers when choosing register preferences.
3648         (movdf_hardfloat64): Same.
3649
3650 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
3651
3652         * expmed.c (expand_shift): Don't use the target of the rotate as
3653         target for the first expanded shift insn.
3654         * testsuite/gcc.dg/20050922-1.c: Testcase added.
3655
3656 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
3657
3658         PR tree-optimization/22438
3659         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
3660         preserved iv rhs rewriting specially.
3661
3662 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
3663
3664         * tree-data-ref.c (analyze_array_indexes): Only estimate when
3665         estimate_only  is true.
3666         * tree-flow.h (ref_contains_indirect_ref): New prototype.
3667         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
3668         tree-ssa-structalias.c
3669         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
3670         ref_contains_indirect_ref.
3671         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
3672
3673 2005-09-21  DJ Delorie  <dj@redhat.com>
3674
3675         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
3676         MASK_PTR_A0D0.
3677         (mn10300_return_in_memory): Support variable size types also.
3678         (mn10300_pass_by_reference): Likewise.
3679         (mn10300_function_value): New.
3680         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
3681         (FUNCTION_OUTGOING_VALUE): Likewise.
3682         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
3683         * doc/invoke.texi: Document it.
3684
3685 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
3686
3687         PR target/22585
3688         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
3689         force integer op1 into register for XFmode compares.
3690
3691 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
3692
3693         PR middle-end/23971
3694         * expmed.c (alg_code): Add alg_impossible.
3695         (alg_hash_entry): Add cost.
3696         (synth_mult): Record alg_impossible in the hash table if
3697         multiplication by a given integer is impossble within the
3698         limit.  Speed up using alg_impossible.
3699
3700 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
3701
3702         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
3703         argument.  Allow and set any offset if needs_anyoffset is passed
3704         in.
3705         (get_constraint_for): Add argument here too.
3706         Pass it down.
3707         (do_structure_copy): Pass NULL to get_constraint_for.
3708         (handle_ptr_arith): Ditto.
3709         (find_func_aliases): Ditto.
3710
3711 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
3712
3713         PR rtl-optimization/23898
3714         * output.h (get_attr_min_length): Declare.
3715         * final.c (get_attr_length_1): New function, broken out of:
3716         (get_attr_length).
3717         (get_attr_min_length): New function.
3718         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
3719         (duplicate_computed_gotos): Likewise.
3720         * genattr.c (insn_min_length): Generate declaration.
3721         * genattrtab.c (min_fn, min_attr_value): New functions.
3722         (make_length_attrs): Generate insn_min_length.
3723
3724 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
3725
3726         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
3727
3728 2005-09-20  Richard Henderson  <rth@redhat.com>
3729
3730         PR tree-optimization/24059
3731         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
3732         EXPAND_STACK_PARM.
3733
3734 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
3735
3736         * c.opt (fextended-identifiers): New.
3737         * c-opts.c (c_common_handle_option): Handle
3738         -fextended-identifiers.
3739         * doc/cpp.texi: Update documentation of extended identifiers.
3740         * doc/cppopts.texi (-fextended-identifiers): Document.
3741
3742 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3743
3744         PR tree-optimization/23929
3745         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
3746         if expr is NULL.
3747
3748         PR tree-optimization/23818
3749         * tree-stdarg.c (execute_optimize_stdarg): Call
3750         calculate_dominance_info.
3751
3752 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
3753
3754         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
3755         (analyze_siv_subscript_cst_affine): Add weak SIV test.
3756         (compute_overlap_steps_for_affine_1_2): Use
3757         get_number_of_iters_for_loop.
3758         (analyze_subscript_affine_affine): Check whether difference is
3759         zero first.
3760         Use get_number_of_iters_for_loop.
3761         Check whether overlap occurs outside of bounds.
3762         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
3763
3764 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
3765
3766         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
3767         base register if possible.
3768
3769 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
3770
3771         PR tree-optimization/18463
3772         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
3773         converting it directly is not possible.
3774         (chrec_convert_aggressive): New function.
3775         * tree-chrec.h (chrec_convert_aggressive): Declare.
3776         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
3777         Fold chrec conversions aggressively if asked to.
3778         (instantiate_parameters): Modified because of changes in
3779         instantiate_parameters_1.
3780
3781 2005-09-19  Richard Henderson  <rth@redhat.com>
3782
3783         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
3784         (reduc_splus_v2df): New.
3785
3786 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
3787
3788         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
3789         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
3790
3791 2005-09-19  Richard Henderson  <rth@redhat.com>
3792
3793         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
3794         vcondu<SSEMODE12>.
3795
3796 2005-09-19  Richard Henderson  <rth@redhat.com>
3797
3798         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
3799         (ia64_expand_dot_prod_v8qi): New.
3800         * config/ia64/ia64-protos.h: Update.
3801         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
3802         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
3803         sdot_prodv8qi, sdot_prodv4hi): New.
3804         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
3805
3806 2005-09-19  Richard Henderson  <rth@redhat.com>
3807
3808         PR 23941
3809         * real.c (exact_real_truncate): Return false if the format cannot
3810         represent the number as a normal.
3811
3812         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
3813         for a memory source.
3814
3815 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
3816
3817         * tree-ssa-operands.c (swap_tree_operands): Export.
3818         * tree.h (swap_tree_operands): Declare.
3819         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
3820         Call swap_tree_operands.
3821
3822 2005-09-19  Richard Henderson  <rth@redhat.com>
3823
3824         * tree-flow.h (merge_alias_info): Declare.
3825         * tree-ssa-copy.c (merge_alias_info): Export.
3826         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
3827         (vect_create_data_ref_ptr): Use create_iv directly.
3828         (vectorizable_load): Use correct types for integer constants.
3829         (vect_generate_tmps_on_preheader): Likewise.
3830         (vect_gen_niters_for_prolog_loop): Likewise.
3831
3832 2005-09-19  Steven Bosscher  <stevenb@suse.de>
3833
3834         PR rtl-optimization/23943
3835         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
3836
3837 2005-09-18  Jan Hubicka  <jh@suse.cz>
3838
3839         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
3840
3841 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3842
3843         * varasm.c (output_constant): Do not abort on conversions to union
3844         types between different sizes.
3845
3846 2005-09-18  Richard Guenther  <rguenther@suse.de>
3847
3848         PR middle-end/23944
3849         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
3850         fallback.
3851
3852 2005-09-18  Paul Brook  <paul@codesourcery.com>
3853
3854         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
3855
3856 2005-09-17  Richard Henderson  <rth@redhat.com>
3857
3858         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
3859         * tree-ssa-loop.c (pass_vect_dce): Remove.
3860         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
3861         of pass_vectorize.
3862
3863 2005-09-17  Richard Henderson  <rth@redhat.com>
3864
3865         * tree-pass.h (pass_vect_dce): Declare.
3866         * passes.c (init_optimization_passes): Add it.
3867         * tree-flow.h (tree_ssa_dce): Declare.
3868         * tree-ssa-dce.c (tree_ssa_dce): Export.
3869         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
3870         (gate_tree_vectorize): ... here.
3871         (pass_vect_dce): New.
3872
3873 2005-09-17  Jan Hubicka  <jh@suse.cz>
3874
3875         * except.c (struct eh_status): Turn region_array into vec.
3876         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
3877         convert_from_eh_region_ranges, find_exception_handler_labels,
3878         current_function_has_exception_handlers, assign_filter_values,
3879         build_post_landing_pads, dw2_build_landing_pads,
3880         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
3881         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
3882         foreach_reachable_handler, can_throw_internal_1,
3883         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
3884         region_array.
3885         (duplicate_eh_region_1): Update region_array.
3886         (duplicate_eh_regions): Resize region_array and avoid recomputing.
3887
3888 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
3889
3890         PR middle-end/22067
3891         * expmed.c (expand_mult): Substitute simple register for op0 when
3892         computing max_cost.
3893
3894 2005-09-17  Richard Henderson  <rth@redhat.com>
3895
3896         * expr.c (emit_move_via_integer): Add force argument, pass it on
3897         to emit_move_change_mode.  Update callers.
3898         (emit_move_complex): Pass true to new force argument.
3899         * function.c (expand_function_end): Move expand_eh_return call
3900         earlier.  Merge sub-word complex values into a pseudo before
3901         copying to the return hard register.
3902
3903 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3904
3905         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
3906         between different sizes.
3907
3908 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
3909
3910         PR 23903
3911
3912         * passes.c (init_optimization_passes): Register dump files for
3913         IPA passes first.
3914
3915 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3916
3917         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
3918         * config/s390/s390.c (s390_overlap_p): New function.
3919         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
3920         peephole2, "*xc" peephole2): Added overlap check to the peephole2
3921         condition.
3922
3923 2005-09-16  Richard Guenther  <rguenther@suse.de>
3924
3925         * ipa-pure-const.c (static_execute): Free auxiliar information.
3926         * ipa-type-escape.c (discover_unique_type): Free temporary key.
3927         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
3928
3929 2005-09-15  DJ Delorie  <dj@redhat.com>
3930
3931         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
3932
3933 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
3934
3935         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
3936         to order operands.
3937         (swap_commutative_operands_with_target): New.
3938
3939 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
3940
3941         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
3942         parameter.
3943         Update callers.
3944         (estimate_iters_using_array): New function.
3945         * tree-data-ref.h (estimate_iters_using_array): Prototype
3946         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3947         Use estimate_iters_using_array instead of analyze_array.
3948
3949 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3950
3951         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
3952         as addressable.
3953
3954 2005-09-15  Michael Matz  <matz@suse.de>
3955
3956         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
3957
3958 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
3959
3960         PR tree-optimization/23835
3961         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
3962         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
3963
3964 2005-09-14  Richard Henderson  <rth@redhat.com>
3965
3966         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
3967         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
3968
3969 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
3970
3971         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
3972         in the ARRAY_TYPE case.
3973
3974 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3975
3976         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
3977
3978 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
3979
3980         PR middle-end/22480
3981         * tree-vect-transform.c (vectorizable_operation): Return false for
3982         scalar shift operations and for vector shift operations with
3983         non-invariant shift arguments.  Use scalar tree operand op1 as
3984         a shift operand when vector shift insn pattern uses scalar shift
3985         operand.
3986         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
3987
3988 2005-09-14  Olivier Hainque  <hainque@adacore.com>
3989
3990         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
3991         value if it has side-effects.
3992
3993 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
3994
3995         PR target/22068
3996         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
3997
3998 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
3999
4000         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
4001         passed as NAME as if it were label at start of function code.
4002
4003 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4004
4005         * config/sh/sh.md (*movv4sf_i): Add general register cases to
4006         the constraints.
4007
4008 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
4009
4010         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
4011         as early clobber.  Rewrite so the PIC register is not implicitly used.
4012
4013 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4014
4015         * tree.c (annotate_with_file_line): Compare line numbers before
4016         file names.
4017
4018 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
4019
4020         PR target/23816
4021         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
4022         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
4023
4024 2005-09-13  Ian Lance Taylor  <ian@airs.com>
4025
4026         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
4027         than a HOST_WIDEST_INT to gen_doloop_begin.
4028
4029 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
4030
4031         * tree-dfa.c (dump_variable): Guard against NULL annotations.
4032
4033 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
4034
4035         PR tree-optimize/23817
4036         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
4037
4038 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
4039
4040         PR target/23774
4041         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
4042         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
4043         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
4044         (restore_stack_nonlocal): Likewise.
4045         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
4046
4047 2005-09-12  Ian Lance Taylor  <ian@airs.com>
4048
4049         PR g++/7874
4050         * c.opt (ffriend-injection): New C++ option.
4051         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
4052         (C++ Dialect Options): Document -ffriend-injection.
4053
4054 2005-09-12  Josh Conner  <jconner@apple.com>
4055
4056         PR middle-end/23237
4057         * ipa-reference.c (static_execute): Don't mark variables in
4058         named sections TREE_READONLY.
4059
4060 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
4061
4062         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
4063         stack_tie.
4064
4065 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
4066
4067         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
4068         V_MUST_DEF instead of just the first_use_p.
4069         Don't mark the virtual variables for renaming on the statement which
4070         is being removed.
4071         (pass_dse): Remove TODO_update_ssa.
4072
4073 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
4074
4075         PR middle-end/23290
4076         * stor-layout.c (compute_record_mode): For records with a single
4077         field, actually check the field's mode size against the type size.
4078
4079         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
4080         registers for TARGET_SHMEDIA.
4081         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
4082         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
4083         of GENERAL_REGS and FP_REGS.
4084
4085 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
4086
4087         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
4088
4089 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
4090
4091         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
4092         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
4093         are omitted.  Exclude stack_tie insn too.
4094
4095 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
4096
4097         PR rtl-optimization/23098
4098         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
4099         0.0f is easy.
4100         * config/rs6000/rs6000.md (movdf splitter): Use
4101         const_double_operand predicate for TARGET_POWERPC64.
4102         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
4103         SYMBOL_REF method to ABI_V4.
4104
4105         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
4106         replace_equiv_address.
4107         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
4108         rs6000_sr_alias_set and MEM_NOTRAP.
4109         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
4110
4111 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
4112
4113         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
4114         handle CALL_EXPR again.
4115
4116 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
4117
4118         * arm/predicates.md (alignable_memory_operand): Delete.
4119
4120 2005-09-10  Richard Henderson  <rth@redhat.com>
4121
4122         PR debug/23806
4123         * dbxout.c (dbxout_expand_expr): New.
4124         (dbxout_symbol): Use it.
4125
4126 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
4127
4128         * arm.c (arm_gen_rotated_half_load): Delete.
4129         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
4130         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
4131         (thumb_set_return_address): Likewise.
4132         (thumb_load_double_from_address): Use adjust_address.
4133         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
4134         (extendhsisi2_mem, movhi_bytes): Use change_address.
4135         (movhi): Use widen_memory_access.
4136         (reload_out_df): Use replace_equiv_address.
4137         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
4138
4139 2005-09-09  Richard Henderson  <rth@redhat.com>
4140
4141         PR debug/20998
4142         * dbxout.c: Include expr.h.
4143         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
4144         (dbxout_symbol): Handle DECL_VALUE_EXPR.
4145         * Makefile.in (dbxout.o): Add EXPR_H.
4146
4147 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
4148
4149         PR tree-optimization/23509
4150         * tree-cfg.c (replace_uses_by): Use replace_exp.
4151         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
4152         pointers have name_mem_tag or type_mem_tag set.
4153
4154 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
4155
4156         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
4157         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
4158         of wrongly accessing operands.
4159
4160 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
4161
4162         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
4163         * tree-chrec.c: Include tree-scalar-evolution.h.
4164         (chrec_convert): Instantiate the base and step before calling
4165         scev_probably_wraps_p that would fail on parametric evolutions.
4166         Collect all the fails into a single section failed_to_convert,
4167         print a diagnostic, and return chrec_dont_know instead of calling
4168         fold_convert.
4169         * tree-scalar-evolution.c (loop_closed_phi_def): New.
4170         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
4171         phi nodes.
4172         (scev_const_prop): Don't replace the definition of a loop closed ssa
4173         phi node by itself, or by another loop closed ssa phi node.
4174         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
4175         that base and step are defined.
4176
4177 2005-09-09  Richard Guenther  <rguenther@suse.de>
4178
4179         PR c++/23624
4180         * fold-const.c (fold_ternary): Check truth_value_p before
4181         calling invert_truthvalue.
4182
4183 2005-09-09  Nick Clifton  <nickc@redhat.com>
4184
4185         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
4186         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
4187         dimension of these arrays.
4188         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
4189         these arrays.
4190         * longlong.h: Only provide a prototype for the __clz_tab[] array
4191         if this header has not been included from libgcc2.h.
4192         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
4193         defining own types.
4194         Provide prototypes for exported functions.
4195         Use the __clz_tab[] and __popcount_tab[] arrays provided by
4196         libgcc2.c.
4197
4198 2005-09-08  Josh Conner  <jconner@apple.com>
4199
4200         PR c++/21135
4201         PR c++/23180
4202         * expr.c (expand_expr_addr_expr_1): Don't invoke
4203         expand_simple_binop for EXPAND_INITIALIZER.
4204
4205 2005-09-08  Richard Henderson  <rth@redhat.com>
4206
4207         PR debug/23190
4208         * toplev.c (wrapup_global_declaration_1): Split out ...
4209         (wrapup_global_declaration_2): ... from ...
4210         (wrapup_global_declarations): ... here.  Return bool.
4211         (check_global_declaration_1): Split out ...
4212         (check_global_declarations): from here.
4213         (emit_debug_global_declarations): New.
4214         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
4215         check_global_declaration_1, emit_debug_global_declarations): Declare.
4216         * c-decl.c (c_write_global_declarations_1): Don't create a vector
4217         of decls.  Call wrapup_global_declaration_1,
4218         wrapup_global_declaration_2, check_global_declaration_1 directly.
4219         (c_write_global_declarations_2): New.
4220         (ext_block): New.
4221         (c_write_global_declarations): Call c_write_global_declarations_2.
4222         * langhooks.c (write_global_declarations): Call
4223         emit_debug_global_declarations.
4224
4225         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
4226         remove decls that have DECL_RTL_SET_P.
4227         * passes.c (rest_of_decl_compilation): Invoke
4228         cgraph_varpool_finalize_decl for all but functions.
4229
4230 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4231
4232         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
4233         the result of a conversion if the new min and max cannot be compared.
4234
4235 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
4236
4237         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
4238         (override_options): Setting s390_sr_alias_set removed.
4239         (save_fpr, save_gprs): Set alias set to vararg or frame.
4240         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
4241         s390_sr_alias_set with get_frame_alias_set ().
4242         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
4243         get_varargs_alias_set ().
4244
4245 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
4246
4247         PR objc/20574
4248         PR objc/19324
4249         * c-parser.c (c_parser_objc_method_definition): If the next
4250         token is not "{", error out and don't start the function.
4251
4252 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
4253
4254         * tree-vrp.c (extract_range_from_expr): Move the check for non
4255         nullness after the check for gimple invariant.
4256
4257 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4258
4259         * tree.c (host_integerp, tree_low_cst): Correct function comment.
4260
4261 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4262
4263         PR target/23747
4264         * config/m32r.md (movmemsi_internal): Canonicalize order of
4265         operands in PLUS component of template.
4266
4267 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
4268
4269         * reload1.c (fixup_eh_region_note): Remove assertion.
4270         (fixup_abnormal_edges): Reverted removal of call to
4271         find_many_sub_basic_blocks made on 2005-08-31.
4272
4273 2005-09-07  Richard Henderson  <rth@redhat.com>
4274
4275         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
4276         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
4277         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
4278         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
4279         rearrange for better packing.
4280         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
4281         (lookup_cfa_1): Remove inline marker.
4282         (cfa_equal_p): Split out of ...
4283         (def_cfa_1): ... here.  Use INVALID_REGNUM.
4284         (build_cfa_loc): Handle !cfa->indirect.
4285         (frame_pointer_cfa_offset): New.
4286         (dbx_reg_number): Assert register elimination performed; do
4287         leaf register remapping.
4288         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
4289         (eliminate_reg_to_offset): New.
4290         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
4291         for verifiably local stack frame addresses; re-base to CFA.
4292         (mem_loc_descriptor): Remove can_use_fbreg argument.
4293         (concat_loc_descriptor, loc_descriptor): Likewise.
4294         (containing_function_has_frame_base): Remove.
4295         (rtl_for_decl_location): Don't do register elimination or
4296         leaf register remapping here.
4297         (secname_for_decl): Split out from ..
4298         (add_location_or_const_value_attribute): ... here.
4299         (convert_cfa_to_loc_list): New.
4300         (compute_frame_pointer_to_cfa_displacement): New.
4301         (gen_subprogram_die): Use them.
4302         * tree.h (frame_base_decl): Remove.
4303         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
4304         (prologue_stack_adjust): Remove.
4305         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
4306         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
4307         (set_frame_base_location): Remove.
4308         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
4309         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
4310         (vt_add_function_parameters): Don't eliminate_regs.
4311         (vt_initialize): Don't create frame_base_decl.
4312
4313 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4314
4315         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
4316         version of GNU binutils for 4.x and later.
4317
4318 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
4319
4320         * ggc-page.c (ggc_push_context): Remove.
4321         (ggc_pop_context): Likewise.
4322         * ggc.h (ggc_push_context): Remove.
4323         (ggc_pop_context): Likewise.
4324
4325 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
4326
4327         PR target/8973
4328         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
4329         returning from an interrupt handler.
4330
4331 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
4332
4333         PR target/8972
4334         * config/arc/arc.c (output_shift): Add check for loop count when
4335         optimizing.
4336
4337 2005-09-06  Steven Bosscher  <stevenb@suse.de>
4338
4339         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
4340         form manually.
4341         (abs_replacement): Likewise.
4342         (pass_phiopt): Remove TODO_update_ssa.
4343
4344 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
4345
4346         PR c/23075
4347         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
4348         if "return with no value, in function returning non-void" warning
4349         has been issued.
4350         * tree-cfg.c (execute_warn_function_return): Don't look at
4351         RETURN_EXPRs with TREE_NO_WARNING set.
4352
4353         PR target/22362
4354         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
4355         for internal functions doesn't use registers used by global registers
4356         variables.  Use fewer register parameters if there are global register
4357         variables.
4358
4359 2005-09-06  Olivier Hainque  <hainque@adacore.com>
4360             Eric Botcazou  <ebotcazou@adacore.com>
4361
4362         PR middle-end/14997
4363         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
4364         when we would be extracting outside its bit span (bitpos+bitsize
4365         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
4366         Ada unchecked conversions.
4367
4368 2005-09-06  Steven Bosscher  <stevenb@suse.de>
4369
4370         * tree-ssa-pre.c (try_look_through_load): New function.
4371         (compute_avail): Use it to try to look through loads for some
4372         more useful expressions.
4373
4374 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
4375
4376         * simplify-rtx.c (simplify_binary_operation_1): Correct the
4377         condition for detecting cases like (a&a) and (a^a).
4378
4379 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
4380
4381         * common.opt: Add option ftree-vect-loop-version.
4382         * params.def: Add --param vect-max-version-checks.
4383         * doc/invoke.texi: Document ftree-vect-loop-version and
4384         --param vect-max-version-checks.
4385         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
4386         may_misalign_stmts and defines for accessors.
4387         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
4388         LOOP_VINFO_MAY_MISALIGN_STMTS.
4389         (destroy_loop_vec_info): VEC_free for
4390         LOOP_VINFO_MAY_MISALIGN_STMTS.
4391         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
4392         Update documentation.
4393         (vect_update_misalignment_for_peel): New.
4394         (vect_enhance_data_refs_alignment): Update to choose loop
4395         peeling or loop versioning if appropriate for the (potentially)
4396         unaligned data references in the loop.
4397         (vect_analyze_data_refs_alignment): Remove call to
4398         vect_enhance_data_refs_alignment so the checks can be done
4399         earlier.
4400         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
4401         and move up call to vect_analyze_data_refs_alignment.
4402         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
4403         (vect_transform_loop): Add call to loop_version.
4404
4405 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
4406
4407         PR rtl-optimization/23098
4408         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
4409         * simplify-rtx.c (constant_pool_reference_p): New function.
4410         * rtl.h (constant_pool_reference_p): New prototype.
4411         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
4412         constant_pool_reference_p in condition and
4413         avoid_constant_pool_reference in preparation statements.
4414
4415 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
4416
4417         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
4418         STRICT_LOW_PART SETs.
4419
4420 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
4421
4422         PR middle-end/21460
4423         * except.c (sjlj_emit_function_enter): Find the function begin
4424         note even when it's not in first basic block.
4425
4426 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
4427
4428         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
4429         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
4430         * aclocal.m4: Regenerate.
4431
4432 2005-09-05  DJ Delorie  <dj@redhat.com>
4433
4434         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
4435         of macro.
4436
4437 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
4438
4439         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
4440         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
4441         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
4442         Follow spelling conventions.
4443         * doc/invoke.texi: Follow spelling conventions.
4444
4445 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
4446
4447         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
4448         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
4449         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
4450
4451 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
4452
4453         PR target/23683
4454         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
4455         (output_stack_adjust): Use gen_tmp_stack_mem.
4456         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
4457         (sh_set_return_address, sh_allocate_initial_value): Likewise.
4458         (sh_get_pr_initial_val): Likewise.
4459         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
4460         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
4461         * sh.md (divsi_inv_m0): Use gen_const_mem.
4462         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
4463         (movdf_i4+1): Use gen_tmp_stack_mem.
4464         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
4465         (fpu_switch+2): Likewise.
4466         (movv4sf_i, movv16sf_i): Use adjust_address.
4467         (symGOT_load): Set MEM_NOTRAP_P bit.
4468
4469 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4470
4471         PR target/23721
4472         * pa.c (emit_move_sequence): Fix typo in last change.
4473
4474 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
4475
4476         PR rtl-optimization/23454
4477         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
4478         is true.
4479
4480 2005-09-03  Richard Henderson  <rth@redhat.com>
4481             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4482
4483         PR middle-end/23671
4484         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
4485         gen_rtx_MEM.
4486
4487 2005-09-02  Nicolas Pitre <nico@cam.org>
4488
4489         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
4490         to bit_count to 32 bits.
4491
4492 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
4493
4494         PR c++/23167
4495         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
4496         generating synthetic loads from volatile lvalues.
4497
4498 005-09-02  Nick Clifton  <nickc@redhat.com>
4499
4500         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
4501         __ctzhi2, __clzhi2): New functions.
4502
4503 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
4504
4505         PR middle-end/23547
4506         * tree-nested.c (struct var_map_elt): Mark with GTY.
4507         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
4508         var_map_elt.
4509         (lookup_field_for_decl): Allocate new element in GC memory.
4510         (lookup_tramp_for_decl): Likewise.
4511         (convert_nl_goto_reference): Likewise
4512         (create_nesting_tree): Allocate info in GC memory. Likewise for
4513         info->var_map.
4514         (free_nesting_tree): Free with ggc_free instead of free.
4515         (root): New static variable.
4516         (lower_nested_functions): Remove root as local variable.  And zero out
4517         root at the end of the function.
4518
4519 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
4520
4521         PR rtl-optimization/20365
4522         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
4523         to short.  New member ix.
4524         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
4525         (simplify_plus_minus): Initialize ix members before calling qsort.
4526
4527 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
4528
4529         PR tree-optimization/23626
4530         * tree-cfg.c (replace_uses_by): Clean up eh info.
4531
4532 2005-09-01  DJ Delorie  <dj@redhat.com>
4533
4534         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
4535         fprintf.
4536
4537 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
4538
4539         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
4540         (rs6000_split_multireg_move): Use replace_equiv_address instead of
4541         gen_rtx_MEM.
4542
4543 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4544
4545         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
4546         do not issue warning for a variable definition following
4547         a declaration.
4548
4549 2005-09-01  Richard Henderson  <rth@redhat.com>
4550
4551         PR 23668
4552         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
4553         conversion to CONST_VECTOR.
4554
4555 2005-09-01  Richard Henderson  <rth@redhat.com>
4556
4557         PR 23676
4558         * reload1.c (reload_as_needed): Check !CALL_P before calling
4559         fixup_eh_region_note.
4560         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
4561
4562 2005-09-01  DJ Delorie  <dj@redhat.com>
4563
4564         * varasm.c (output_constant): Let the target resolve
4565         conversions of addresses to non-default pointer sizes.
4566
4567 2005-09-01  Nicolas Pitre <nico@cam.org>
4568
4569         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
4570         to alow matching ARM pre-indexed addressing mode.
4571         (arm_override_options): Remove now irrelevant comment.
4572
4573 2005-09-01  Phil Edwards  <phil@codesourcery.com>
4574
4575         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
4576         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
4577         * config/i386/vxworks.h:  Likewise.
4578         * config/i386/t-vxworksae:  New file, for VxWorks AE.
4579         * config/i386/vxworksae.h:  Likewise.
4580
4581 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
4582
4583         PR tree-optimization/23410
4584         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
4585         sequence is not wrapping during the first step.
4586
4587 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
4588
4589         PR debug/7241
4590         * dwarf2out.c (base_type_die): Compare char_type_node with
4591         TYPE_MAIN_VARIANT (type), not type.
4592
4593 2005-09-01  Richard Guenther  <rguenther@suse.de>
4594
4595         PR tree-optimization/15366
4596         * common.opt: Add -finline-functions-called-once.
4597         Put -fearly-inlining in alphabetically ordered place.
4598         * doc/invoke.texi: Document new option.
4599         * ipa-inline.c (cgraph_decide_inlining): Honour
4600         flag_inline_functions_called_once.
4601
4602 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
4603
4604         PR rtl-optimization/23478
4605         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
4606         (alloc_qty): Initialize it.
4607         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
4608         (combine_regs): Combine also n_throwing_calls_crossed fields.
4609         (find_free_reg): Don't attempt to caller-save pseudos crossing
4610         calls that might throw.
4611         * global.c (struct allocno): Add throwing_calls_crossed field.
4612         (global_alloc): Revert 2005-08-22 change.  Initialize
4613         throwing_calls_crossed.
4614         (find_reg): Don't attempt to caller-save pseudos crossing calls that
4615         might throw.
4616
4617 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
4618
4619         PR target/23649
4620         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
4621         (mask64_operand): Reinstate code prior to 2005-06-11 change.
4622         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
4623         (and64_2_operand): Tweak to use predicate.
4624         (and_operand): Adjust for mask_operand changes.
4625         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
4626         (print_operand): Likewise.
4627         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
4628         (mask64_1or2_operand): Delete.
4629         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
4630         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
4631         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
4632         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
4633         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
4634         (rotldi3_internal4): Likewise.
4635         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
4636         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
4637         (ashldi3_internal7): Likewise.
4638         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
4639         (ashldi3_internal, ashldi3_internal9 split): Likewise.
4640         (anddi3 split): Don't match mask64_operand.
4641         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
4642         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
4643         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
4644         't' splitter predicate.
4645         (movdi_internal64 + 2): Revert 2005-06-11 change.
4646
4647 2005-08-31  DJ Delorie  <dj@redhat.com>
4648
4649         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
4650         (m32c_asm_integer): Add support for 32 bit pointers.
4651
4652 2005-08-31  Richard Henderson  <rth@redhat.com>
4653
4654         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
4655         component-like references for setting MEM_NOTRAP_P.
4656
4657         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
4658         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
4659
4660 2005-08-31  Richard Henderson  <rth@redhat.com>
4661
4662         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
4663         into a pseudo before applying gen_lowpart.
4664
4665 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
4666
4667         * doc/install.texi (Specific): Update cctools version required
4668         for full functionality.
4669         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
4670         linkers as -macosx_version_min.
4671
4672 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
4673
4674         PR target/21255
4675         * sh.c (print_operand, %R and %S): Add handling of floating point
4676         registers, memory, constants and invalid operands.
4677
4678 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
4679
4680         * ipa-pure-const.c: Change dump name.
4681
4682 2005-08-31 Uros Bizjak <uros@kss-loka.si>
4683
4684         PR target/23570
4685         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
4686         to "reg_or_0_operand".
4687         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
4688
4689 2005-08-31  Dale Johannesen  <dalej@apple.com>
4690
4691         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
4692         loops that count down.
4693
4694 2005-08-31  Richard Henderson  <rth@redhat.com>
4695
4696         PR rtl-opt/23601
4697         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
4698         (fixup_eh_region_note): New.
4699         (reload_as_needed): Call it.
4700         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
4701         don't call find_many_sub_basic_blocks; call verify_flow_info.
4702         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
4703         (keep_stack_depressed): Likewise.
4704         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
4705
4706 2005-08-31  Richard Henderson  <rth@redhat.com>
4707
4708         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
4709         fp return matching.
4710
4711 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
4712
4713         * expr.c (expand_expr_real_1): Compare size of address
4714         mode to target's address mode size in deciding expansion of
4715         the constant address.
4716
4717 2005-08-31  Richard Guenther  <rguenther@suse.de>
4718
4719         PR middle-end/23477
4720         * expr.c (all_zeros_p): New function.
4721         (expand_expr_real_1): Handle the case of an all-zero
4722         non-addressable constructor separately.
4723
4724 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
4725
4726         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
4727         arguments, adjust all callers.
4728         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
4729
4730 2005-08-30  Richard Henderson  <rth@redhat.com>
4731
4732         PR target/23630
4733         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
4734         whenever the mode sizes match.
4735
4736 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
4737
4738         * calls.c (load_register_parameters): Fix comment typo.
4739         * expr.c (emit_push_insn): Comment formatting.
4740
4741 2005-08-30  Ian Lance Taylor  <ian@airs.com>
4742
4743         * config/i386/x-cygwin (host-cygwin): Change dependency from
4744         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
4745
4746 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
4747
4748         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
4749         parts of 'vals'.
4750
4751 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
4752
4753         PR middle-end/23408
4754         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
4755         call to ggc_collect.
4756
4757 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
4758
4759         PR bootstrap/21268
4760         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
4761         beginning.  Remove $(INCLUDES) from all the rules, if following
4762         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
4763
4764 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
4765
4766         PR middle-end/23484
4767         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
4768         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
4769         not constant, but maxlen is, don't set len to maxlen, rather
4770         set maxlen to len if len is a constant.
4771
4772 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
4773
4774         PR tree-optimization/23475
4775         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
4776         and counts.
4777
4778 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
4779
4780         Fix PR middle-end/22455
4781
4782         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
4783         Checksum only the parts of the tree that exist for the tree code.
4784
4785 2005-08-28  Dale Johannesen  <dalej@apple.com>
4786
4787         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
4788
4789 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
4790
4791         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
4792
4793 2005-08-28  Richard Henderson  <rth@redhat.com>
4794
4795         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
4796         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
4797         of char_type_node.
4798
4799 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
4800
4801         PR ada/23593
4802         * builtins.c (get_memory_rtx): Don't strip nops
4803         in between COMPONENT_REFs.
4804
4805 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
4806
4807         PR middle-end/23463
4808         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
4809         types.
4810         (gimplify_modify_expr): Check for zero sized types and gimplify the
4811         rhs and lhs as statements.
4812
4813 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
4814
4815         PR libgcj/23508
4816         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
4817         state for return address column of signal frames.
4818
4819 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
4820
4821         PR target/23539
4822         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
4823         bytes >= 2 not bytes == 2.
4824         (expand_block_move): Same.
4825
4826 2005-08-27  Richard Guenther  <rguenther@suse.de>
4827
4828         PR target/23575
4829         * config/i386/sse.md (sse2_movsd): Add missing closing
4830         braces.
4831
4832 2005-08-27  Paul Brook  <paul@codesourcery.com>
4833
4834         * genrecog.c (enum decision_type): Add DT_num_insns.
4835         (struct decision_test): Add u.num_insns.
4836         (add_to_sequence): Add DT_num_insns test.
4837         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
4838         (write_cond, debug_decision_2): Ditto.
4839         (change_state): Assume peep2_next_insn never fails.
4840         Remove "afterward" argument.
4841         (write afterward, write_tree): Update to match.
4842         * recog.c (peep2_current_count): New variable.
4843         (peep2_next_insn): Check it.
4844         (peephole2_optimize): Set peep2_current_count.
4845         * recog.h (peep2_current_count): Declare.
4846
4847 2005-08-26  Josh Conner  <jconner@apple.com>
4848
4849         PR middle-end/23584
4850         * ipa-pure-const.c (check_tree): Check for volatile-ness
4851         when considering a dereference.
4852
4853 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
4854
4855         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
4856
4857 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
4858
4859         PR rtl-optimization/23561
4860         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
4861         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
4862         at most LEN bytes long memory fits into the field.
4863         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
4864         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
4865         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
4866
4867 2005-08-26  Richard Henderson  <rth@redhat.com>
4868
4869         PR rtl-opt/23560
4870         * loop.c (biased_biv_may_wrap_p): New.
4871         (maybe_eliminate_biv_1): Use it to suppress non-equality
4872         comparison transformations.  Delete disabled code.
4873
4874 2005-08-26  Ian Lance Taylor  <ian@airs.com>
4875
4876         * combine.c (make_extraction): Avoid reference outside object.
4877
4878 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
4879
4880         * stor-layout.c (finalize_type_size): Restore behaviour for
4881         non-aggregate types to the status quo ante of the patch for
4882         pr 23467.  Document why it matters.
4883
4884 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
4885
4886         PR c/23506
4887         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
4888         array by one element, initialize the BT_LAST element with NULL.
4889
4890 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
4891
4892         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
4893         optimizing for size.
4894         (plus_eqsi): Same.
4895         (compare_plus_eqsi): Same.
4896         (plus_eqsi_compare): Same.
4897         (neg_eq0<mode>): Same.
4898         (neg_eq<mode>): Same.
4899
4900         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
4901         PROCESSOR_POWER4.
4902
4903 2005-08-26  Nick Clifton  <nickc@redhat.com>
4904
4905         * config/v850/v850.c (ep_memory_operand): Return FALSE if
4906         TARGET_EP is not defined.
4907         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
4908         TARGET_EP is enabled.
4909         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
4910         * config/v850/v850.md (save_all_interrupt): Only use the EP
4911         register if TARGET_EP is defined.
4912         (restore_all_interrupt): Likewise.
4913         * config/v850/lib1funcs.asm: Update functions so that the EP
4914         register is only used if __EP__ is defined.
4915
4916 2005-08-26  David Ung  <davidu@mips.com>
4917
4918         * config/mips/mips.c (mips_expand_prologue): Handle case when
4919         generating for MIPS16 and the outgoing argument area is more than
4920         SMALL_OPERAND. Use the frame pointer as temporary to generate the
4921         add instruction.
4922
4923 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
4924
4925         * config/crx/crx.md: Make doloop_end pattern usage controllable
4926         via mloop-nesting=<max-nesting> command line switch. Make sure
4927         the combiner cannot use doloop_end_<mode> in an illegal way.
4928         * config/crx/crx.c: Use regs up to r6 for argument passing.
4929         Refine crx_address_cost (non cst4 displacements are expensive).
4930         * config/crx/crx.opt: Add switch for mloop-nesting=.
4931
4932 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
4933
4934         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
4935         (UNSPEC_MVST): New constant.
4936
4937 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
4938
4939         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
4940         Reject operands containing eliminable registers.
4941         * testsuite/gcc.dg/20050825-1.c: New testcase.
4942
4943 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4944             Jan Hubicka  <jh@suse.cz>
4945
4946         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
4947
4948 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4949
4950         PR tree-optimization/23546
4951         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
4952         and REAL_CST nodes.
4953
4954 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
4955
4956         * params.def (PARAM_MIN_SPEC_PROB): New.
4957         * sched-rgn.c (MIN_PROBABILITY): Delete.
4958         (compute_trg_info): Convert to PARAM_VALUE.
4959         * doc/invoke.texi (param): Document min-spec-prob.
4960
4961 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
4962
4963         * config/darwin.h: define __PIC__
4964         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
4965         TARGET_OS_CPP_BUILTINS macro.
4966
4967 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
4968
4969         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
4970         yesterday.
4971
4972 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
4973
4974         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
4975         to duplicate_block.
4976         * cfghooks.c (duplicate_block): Added position where to place
4977         new block as argument.
4978         * cfghooks.h (duplicate_block): Declaration changed.
4979         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
4980         duplicate_block.
4981         * cfglayout.h (copy_bbs): Declaration changed.
4982         * cfgloop.h (loop_version): Declaration changed.
4983         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
4984         position to copy_bbs.
4985         (loop_version): Pass position to duplicate_loop_to_header_edge.
4986         Add place_after argument and position new blocks according to
4987         it.
4988         * modulo-sched.c (sms_schedule): Pass place_after argument
4989         to loop_version.
4990         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
4991         * tree-cfg.c (split_edge_bb_loc): New function.
4992         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
4993         to determine position of new blocks.
4994         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
4995         to loop_version.
4996         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
4997         argument to duplicate_block.
4998         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4999         Pass position to copy_bbs.
5000
5001 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
5002
5003         * fold-const.c (ptr_difference_const): Use
5004         cst_and_fits_in_hwi instead of host_integerp.
5005
5006 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
5007
5008         * config/darwin.c (gen_pic_offset): New.
5009         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
5010         Use it.
5011
5012 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
5013
5014         PR tree-optimization/23486
5015         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
5016
5017 2005-08-23  Phil Edwards  <phil@codesourcery.com>
5018
5019         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
5020         remove use_collect2.
5021         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
5022
5023         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
5024         configuration files to override the default value.
5025
5026         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
5027         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
5028         * config/vx-common.h:  New file, split out from...
5029         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
5030         * config/vxworksae.h:  New file, for VxWorks AE.
5031         * config/vxworks.opt:  New file.
5032         * config/vxlib.c:  Update for VxWorks 6.
5033
5034         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
5035         other MULTILIB_* variables appropriately.
5036         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
5037         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
5038         * config/rs6000/vxworks.h:  Update for VxWorks 6.
5039         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
5040
5041 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
5042
5043         PR target/20799
5044         * config/darwin.c (machopic_select_section): Remove the hack to
5045         mark "::operator new" and "::operator delete" for coalescing
5046         even though they are not weak.
5047
5048 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
5049
5050         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
5051         * configure: Regenerate.
5052
5053 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
5054
5055         PR middle-end/23517
5056         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
5057         between vectors.
5058         * convert.c (convert_to_integer, convert_to_vector): Likewise.
5059         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
5060         Likewise.
5061
5062 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
5063
5064         * config/rs6000/predicates.md (equality_operator): New.
5065         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
5066         comparison with a large constant.
5067
5068 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
5069
5070         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
5071
5072 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
5073
5074         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
5075         registers is even, and we have a hardware double precision fp,
5076         align the buffer.
5077         (sh_gimplify_va_arg_expr): For floating point arguments, consider
5078         size of current argument when checking if argument was passed in
5079         registers.
5080
5081         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
5082
5083         PR middle-end/23467
5084         * stor-layout.c (finalize_type_size): Dont override
5085         existing alignment with a smaller alignment from the mode.
5086
5087 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
5088
5089         * lambda-code.c (lambda_vector_lexico_pos): Moved...
5090         * lambda.h (lambda_vector_lexico_pos): ... here.
5091         * tree-data-ref.c (build_classic_dist_vector): Return false when
5092         the distance vector is lexicographically negative.
5093
5094 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
5095
5096         PR tree-optimization/23511
5097         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
5098         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
5099
5100 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
5101
5102         PR tree-optimization/22043
5103         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
5104         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
5105         If ALLOW_FLEXARR, handle types ending with flexible array member.
5106         Pass false as second argument to recursive count_type_elements calls.
5107         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
5108         argument to count_type_elements call.
5109         * tree-sra.c (decide_block_copy): Likewise.
5110         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
5111         for a constant-sized object, set cleared as well.  Pass true as
5112         second argument to count_type_elements call.
5113
5114 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
5115
5116         PR target/21571
5117         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
5118         from legitimate_small_data_p, and make global.  Update use.
5119         Remove forward declaration.
5120         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
5121         Declare.
5122         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
5123
5124 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
5125
5126         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
5127         of scratch intermediates.
5128         (eq<mode>_compare): Same.
5129         (neg_eq0<mode>): New.
5130         (neg_eq<mode>): Convert to define_insn_and_split.
5131
5132 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
5133
5134         PR target/23070
5135         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
5136         stdarg functions, set/clear the fp marker even when no variable
5137         args are passed.
5138         * config/rs6000/sysv4.opt (mprototype): Describe.
5139
5140 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
5141
5142         PR rtl-optimization/23478
5143         * regs.h (reg_info): Add throw_calls_crossed.
5144         (REG_N_THROWING_CALLS_CROSSED): Define.
5145         * flow.c (allocate_reg_life_data): Initialize
5146         REG_N_THROWING_CALLS_CROSSED.
5147         (propagate_one_insn, attempt_auto_inc): Update
5148         REG_N_THROWING_CALLS_CROSSED.
5149         * global.c (global_alloc): Don't allocate pseudos across
5150         calls that may throw.
5151
5152 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
5153
5154         PR c/18715
5155         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
5156         value is inbetween the range if we did not find an exact match.
5157
5158 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
5159
5160         * doc/invoke.texi (Option Summary): Add ms1 options.
5161         * doc/extend.texi: Document interrupt handler attribute for ms1.
5162         * doc/md.texi: Document ms1 constraints.
5163         * config.gcc: Add ms1-*-elf.
5164         * config/ms1/ms1.h: New.
5165         * config/ms1/ms1.c: New.
5166         * config/ms1/ms1.md: New.
5167         * config/ms1/ms1-protos.h: New.
5168         * config/ms1/ABI.txt: New.
5169         * config/ms1/crti.asm: New.
5170         * config/ms1/crtn.asm: New.
5171         * config/ms1/lib2extra-funcs.c: New.
5172         * config/ms1/t-ms1: New.
5173         * config/ms1/ms1.opt: New.
5174
5175 2005-08-22 Ira Rosen <irar@il.ibm.com>
5176
5177         * config/rs6000/altivec.md (xorv4sf3): New.
5178         (negv4sf2, neg<mode>2): Likewise.
5179
5180 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5181
5182         PR target/23485
5183         * config/ia64/ia64.md (divsi3): Check divide by zero.
5184         (udivsi3): Likewise.
5185         (divdi3): Likewise.
5186         (udivdi3): Likewise.
5187
5188 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
5189
5190         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
5191         up to elem_bitsize bits, not max_bitsize.
5192
5193 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
5194
5195         PR tree-optimization/23433
5196         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
5197         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
5198
5199 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
5200
5201         PR tree-optimization/23434
5202         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
5203         the iteration bound is not an INTEGER_CST.
5204
5205 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
5206
5207         * tree-vect-transform.c (get_initial_def_for_reduction): Set
5208         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
5209         NULL if need_epilog_adjust is false.
5210         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
5211         Case 3 always peels first itration, not just for PLUS case, and no need
5212         to use scalar_initial_def here. Create an epilog adjustment only if
5213         scalar_initial_def is not NULL.
5214
5215         (vectorizable_reduction): Remove assert.
5216
5217 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5218
5219         PR target/23485
5220         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
5221         (__moddi3): Likewise.
5222         (__udivdi3): Likewise.
5223         (__umoddi3): Likewise.
5224         (__divsi3): Likewise.
5225         (__modsi3): Likewise.
5226         (__udivsi3): Likewise.
5227         (__umodsi3): Likewise.
5228
5229 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
5230
5231         * tree-pass.h (TDF_GRAPH): Define.
5232         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
5233         * passes.c (finish_optimization_passes): Only call
5234         finish_graph_dump_file if TDF_GRAPH is set.
5235         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
5236         NULL.  Set TDF_GRAPH bit.
5237         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
5238
5239 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
5240
5241         * arm.h (arm_stack_offsets): Add locals_base field.
5242         * arm.c (arm_get_frame_offsets): Compute it.
5243         (thumb_compute_initial_elimination offset): Make the Thumb frame
5244         pointer point to the base of the local variables.
5245         (thumb_expand_prologue): Update accordingly.
5246         (thumb_expand_epilogue): Likewise.
5247
5248         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
5249         mode of clobbered scratch to DImode.  Handle a case that's known to
5250         need this.
5251
5252 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
5253
5254         * config/rs6000/rs6000.md (gt0<mode>): Delete.
5255         (gt0<mode>_compare): Delete.
5256         (neg_gt0<mode>): Delete.
5257
5258 2005-08-19  Eric Christopher  <echristo@apple.com>
5259
5260         * optabs.h: Change CTI_ to COI_.
5261         * optabs.c: Ditto.
5262
5263 2005-08-19  James E Wilson  <wilson@specifix.com>
5264
5265         * builtins.c (expand_builtin_return_addr): Set
5266         current_function_accesses_prior_frames when count != 0.  Use
5267         frame_pointer_rtx when count == 0.
5268         * function.h (struct function): Add accesses_prior_frames field.
5269         (current_function_accesses_prior_frames): Define.
5270         * reload1.c (init_elim_table): Check
5271         current_function_accesses_prior_frames.
5272         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
5273
5274 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
5275
5276         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
5277         indicator.  Return true if the flowgraph changed during
5278         cleanup.
5279
5280 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
5281
5282         PR 23476
5283         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
5284         conditional expression before testing its value.
5285
5286 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
5287
5288         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
5289
5290 2005-08-19  Devang Patel  <dpatel@apple.com>
5291
5292         PR tree-optimization/23048
5293         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
5294         third parameter. Check whether latch is dominated by exit
5295         block or not.
5296         (if_convertible_loop_p): Supply exit block itself to
5297         if_convertible_bb_p.
5298
5299 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
5300
5301         PR target/23473
5302         * arm.md (arm_load_pic_register): Change argument to the mask of
5303         saved registers.  Call thumb_find_work_register if we need a
5304         scratch register on Thumb.
5305         (arm_expand_prologue): Pass empty register set to
5306         arm_load_pic_register.
5307         (thumb_expand_prologue): Pass live_regs_mask directly to
5308         arm_load_pic_register.
5309         * arm-protos.h (arm_load_pic_register): Update prototype.
5310
5311 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
5312
5313         * sh.c (find_sole_member): New function.
5314         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
5315         if the record's alignment is larger than the size of its only member.
5316
5317 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
5318
5319         PR target/23436
5320         * arm.c (thumb_legitimize_reload_address): New function.
5321         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
5322         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
5323
5324 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
5325
5326         * config/crx/crx.c: Implement crx_decompose_address. Reject
5327         symbolic displacements since CRX register relative adressing
5328         mode can't handle unsigned 32-bit values as displacements.
5329         * config/crx/crx.h: Simplify definitions, remove redundant
5330         parenthesis and obsolete macros.
5331         * config/crx/crx.opt: Add new switch for debugging addresses.
5332         * config/crx/crx-protos.h: Add new declarations for above.
5333
5334 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
5335
5336         PR middle-end/20624
5337         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
5338         looking past it.
5339
5340 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5341
5342         * collect2.c (dup2): Delete.
5343         * configure.ac: Don't check for dup2.
5344
5345         * config.in, configure: Regenerate.
5346
5347 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
5348
5349         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
5350         record with the type of its only member.
5351
5352 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
5353
5354         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
5355         define_insn_and_split.
5356         (plus_ltu<mode>_compare): Same.
5357         (gtu<mode>_compare): Same.
5358         (plus_gtu<mode>_compare): Same.
5359
5360 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
5361
5362         PR tree-optimization/22228
5363         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
5364         todo_flags_start.
5365         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
5366         are recorded in vect_vnames_to_rename for renaming.
5367         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
5368         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
5369         in vect_vnames_to_rename.
5370         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
5371         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
5372
5373 2005-08-18  Jan Hubicka  <jh@suse.cz>
5374
5375         PR c++/22034
5376         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
5377         info only for local statics, not for member variables.
5378
5379 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5380
5381         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
5382
5383 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5384
5385         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
5386
5387 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
5388
5389         PR middle-end/16045
5390         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
5391
5392 2005-08-17  James E Wilson  <wilson@specifix.com>
5393
5394         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
5395         array size check.
5396
5397 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
5398
5399         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
5400         (leu<mode>_compare): Same.
5401         (plus_leu<mode>): Same.
5402         (neg_leu<mode>): Same.
5403         (and_neg_leu<mode): Same.
5404         (ltu<mode>_compare): Same.
5405         (plus_ltu<mode>): Same.
5406         (geu<mode>): Same.
5407         (geu<mode>_compare): Same.
5408         (plus_geu<mode>): Same.
5409         (neg_geu<mode>): Same.
5410         (and_neg_geu<mode>): Same.
5411         (plus_gt<mode>): Same.
5412         (gtu<mode>_compare): Same.
5413         (plus_gtu<mode>): Same.
5414
5415 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
5416
5417         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
5418         Move call_table_data to end.  Delete spurious .text.
5419         (callt_save_all_interrupt): Fix comment typo.
5420
5421 2005-08-17  James E Wilson  <wilson@specifix.com>
5422             Kevin Winchester  <winchester@amirix.com>
5423
5424         PR target/21684
5425         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
5426
5427 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
5428
5429         PR target/23268
5430         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
5431         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
5432
5433 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
5434
5435         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
5436         record with the type of its only member if the modes don't match.
5437
5438         * varasm.c (decode_reg_name): Skip empty additional register names.
5439
5440 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
5441
5442         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
5443         lsm_tmp_name_length): New.
5444         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
5445         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
5446
5447 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5448             Andreas Krebbel  <krebbel1@de.ibm.com>
5449
5450         * config.gcc: Added z9-109 switch.
5451         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
5452         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
5453         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
5454         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
5455         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
5456         for "z9_109" cpu attribute.
5457         * config/s390/s390.c (z9_109_cost): New processor cost structure.
5458         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
5459         (s390_handle_arch_option): Added z9-109 switch.
5460         (override_options): Set respective cost function for z9-109.
5461         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
5462         (legitimate_reload_constant_p): Accept extended immediates.
5463         (print_operand): Three new output modifiers added: k, m and o.
5464         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
5465         (s390_output_mi_thunk): Use extended immediate when possible.
5466         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
5467         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
5468         (CONSTRAINT_LEN): Added length of O constraint.
5469         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
5470         * config/s390/s390.md ("cpu"): New value z9_109 added.
5471         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
5472         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
5473         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
5474         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
5475         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
5476         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
5477         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
5478         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
5479         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
5480         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
5481         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
5482         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
5483         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
5484         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
5485         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
5486         immediates.
5487         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
5488         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
5489         insns for TARGET_EXTIMM.
5490
5491 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
5492
5493         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
5494
5495 2005-08-17  Nick Clifton  <nickc@redhat.com>
5496
5497         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
5498         Call default_encode_section_info.
5499
5500 2005-08-17  Steven Bosscher  <stevenb@suse.de>
5501
5502         PR tree-optimization/21574
5503         * tree-ssa-ccp.c (likely_value): If the right hand side is a
5504         constant, return CONSTANT.
5505         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
5506         (ccp_fold, visit_assignment): Likewise.
5507         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
5508
5509 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
5510
5511         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
5512         fold_buildN instead of buildN then fold_initializer or fold.
5513         (build_unary_op): Likewise.
5514         (build_binary_op): Likewise.
5515         * fold-const.c (fold_initializer): Remove.
5516         (fold_build1_initializer): New function.
5517         (fold_build2_initializer): New function.
5518         (fold_build3_initializer): New function.
5519         * tree.h (fold_initializer): Remove.
5520         (fold_build1_initializer): New function.
5521         (fold_build2_initializer): New function.
5522         (fold_build3_initializer): New function.
5523
5524 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
5525
5526         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
5527         (try_move_mult_to_index): Call fold_build2 instead of build2.
5528         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
5529         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
5530         fold_binary_to_constant.
5531         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
5532         fold (build.
5533         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
5534         check if A == gcd (A, B).  Remove TYPE argument.
5535         (analyze_offset) Use fold_build2 instead of fold (build.
5536         (create_data_ref): Likewise.
5537         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
5538         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
5539         then fold.
5540
5541 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
5542
5543         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
5544         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
5545
5546 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
5547
5548         PR tree-opt/23402
5549         * gimplify.c (zero_sized_type): New function.
5550         (gimplify_modify_expr_rhs): If we have a zero sized type,
5551         replace the statement with an empty statement.
5552
5553 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5554
5555         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
5556         fxsave.
5557
5558 2005-08-16  Ian Lance Taylor  <ian@airs.com>
5559
5560         * doc/tm.texi (Label Output): Correct typo.
5561
5562 2005-08-16  Steven Bosscher  <stevenb@suse.de>
5563
5564         PR target/23376
5565         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
5566         force_operand will work later on using have_insn_for.
5567
5568 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5569
5570         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
5571
5572 2005-08-16  Ian Lance Taylor  <ian@airs.com>
5573
5574         PR c++/23337
5575         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
5576         vector type, don't try to construct it element by element.  Add an
5577         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
5578
5579 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5580
5581         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
5582
5583 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
5584
5585         * doc/invoke.texi (Precompiled Headers): Document some more options
5586         which are known to be safe.
5587
5588 2005-08-16  James E Wilson  <wilson@specifix.com>
5589
5590         PR tree-optimization/21105
5591         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
5592         TREE_OVERFLOW check.
5593
5594 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
5595
5596         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
5597         (neg_ltu<mode>): Same.
5598         (gtu<mode>): Same.
5599         (neg_gtu<mode>): Same.
5600
5601 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5602
5603         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
5604         (fold_builtin_isdigit): Use fold_buildN.
5605         (build_function_call_expr): Likewise.
5606         * c-typeck.c (c_finish_loop): Likewise.
5607
5608 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
5609             Richard Shann <rshann@superh.com>
5610
5611         PR middle-end/20396:
5612         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
5613
5614 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
5615
5616         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
5617
5618 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
5619
5620         PR target/23355
5621         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
5622         arm_compure_save_reg0_reg12_mask to determine when the PIC register
5623         must be saved.
5624
5625 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5626
5627         PR middle-end/23369
5628         * fold-const.c (build_range_check): Disable optimization for function
5629         pointer expressions on targets that require function pointer
5630         canonicalization.
5631
5632 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
5633
5634         * simplify-rtx.c (simplify_const_relational_operation): When
5635         extracting arguments of a COMPARE, recompute the mode as well.
5636
5637 2005-08-15  Ian Lance Taylor  <ian@airs.com>
5638
5639         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
5640
5641 2005-08-15  DJ Delorie  <dj@redhat.com>
5642
5643         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
5644         the stack.
5645         (movsi_splittable): Allow, but split, moves to the stack.
5646         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
5647         stack.
5648
5649 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5650
5651         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
5652         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
5653         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
5654
5655         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
5656         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
5657         Delete HOST_PTR_PRINTF.
5658
5659         * configure, config.in: Regenerate.
5660
5661 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
5662
5663         * config/rs6000/rs6000.md (QHSI): New mode macro.
5664         (wd): Extend mode attr for QImode and HImode
5665         (dbits): New mode attr.
5666         (zero_extend<mode>di2): Convert to mode macro.
5667
5668 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
5669
5670         PR target/21841
5671         * doc/invoke.texi (-mgnu-ld): Update description.
5672         (-mhp-ld): Ditto.
5673
5674 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
5675
5676         PR 23391
5677         * Makefile.in (tree-chrec.o): Depends on real.h.
5678         * tree-chrec.c: Include real.h.
5679         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
5680         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
5681         * tree-scalar-evolution.c (add_to_evolution_1,
5682         interpret_rhs_modify_expr): Ditto.
5683
5684 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
5685
5686         PR 23386
5687         * tree-data-ref.c (estimate_niter_from_size_of_data): When
5688         step is negative compute the estimation from init downwards to zero.
5689
5690 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
5691
5692         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
5693
5694 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
5695
5696         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
5697         constraint.
5698         (legitimate_reload_constant_p): Fix handling of lliXX operands.
5699         Accept double-word constants that can be split.
5700         * config/s390/s390.md ("movti"): Use 'P' constraint.
5701         ("*movdi_31", "*movdf_31"): Likewise.
5702
5703 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
5704
5705         Fix PR tree-optimization/22615
5706
5707         * tree-ssa-structalias.c (solution_set_add): Handle
5708         first_vi_for_offset returning NULL.
5709         (do_da_constraint): Ditto.
5710         (do_sd_constraint): Ditto.
5711         (do_ds_constraint): Ditto
5712         (find_func_aliases): Ditto.
5713         (build_constraint_graph): RHS is allowed be ANYTHING.
5714         (first_vi_for_offset): Return NULL if we couldn't find anything at
5715         the offset.
5716
5717 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
5718
5719         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
5720         over memory as first operand.
5721
5722 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
5723
5724         PR target/23360
5725         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
5726         available for setting it.
5727
5728 2005-08-14  Ira Rosen  <irar@il.ibm.com>
5729
5730         PR tree-optimization/23320
5731         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
5732         data-refs' types instead of base object nullness. Add check for
5733         pointer type data-refs before first location comparison. Remove
5734         assert.
5735
5736 2005-08-14  Andreas Schwab  <schwab@suse.de>
5737
5738         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
5739
5740 2005-08-13  James E Wilson  <wilson@specifix.com>
5741
5742         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
5743         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
5744         -fstack-protector-all, --param ssp-buffer-size): Document.
5745         (-Wvariadic-macros): Alphabetize.
5746         (-fsched-stalled-insns-dep): Add missing 'f'.
5747
5748         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
5749         macros.
5750
5751 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
5752
5753         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
5754         or indirect address operand.
5755         (EXTRA_ADDRESS_CONSTRAINT): New.
5756         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
5757
5758 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
5759
5760         PR tree-optimization/22236
5761         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
5762         successors and predecessors.
5763         * tree-chrec.c (chrec_convert): Before converting, check that
5764         sequences don't wrap.
5765         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
5766         (analyze_array): Extern.
5767         (find_data_references_in_loop): Remove call to
5768         compute_estimated_nb_iterations.
5769         * tree-data-ref.h (analyze_array): Declared.
5770         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
5771         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
5772         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
5773         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
5774         condition.
5775         * tree-ssa-loop-ivcanon.c: Fix documentation.
5776         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
5777         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
5778         (infer_loop_bounds_from_undefined): New.
5779         (estimate_numbers_of_iterations_loop): Use
5780         infer_loop_bounds_from_undefined.
5781         (used_in_pointer_arithmetic_p): New.
5782         (scev_probably_wraps_p): Pass an extra parameter.  Call
5783         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
5784         (convert_step): Fix documentation.
5785         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
5786         Use initial_condition_in_loop_num and evolution_part_in_loop_num
5787         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
5788         scev_probably_wraps_p.
5789
5790 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
5791
5792         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
5793         (s390_register_info): Ignore clobbered_regs information for fixed
5794         registers, and only fixed registers.
5795         (s390_init_frame_layout): Remove redundant call.
5796
5797 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
5798
5799         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
5800         description of -Wold-style-casts.
5801
5802 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5803             Jakub Jelinek  <jakub@redhat.com>
5804
5805         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5806         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
5807         * config/s390/s390.c (print_operand): New output modifier 'G' added.
5808         (get_thread_pointer): Renamed to s390_get_thread_pointer.
5809         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
5810         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
5811         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
5812         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
5813         ("stack_protect_set", "stack_protect_test"): New expanders.
5814         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
5815         "stack_protect_testdi"): New insn definitions.
5816
5817 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5818
5819         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
5820
5821 2005-08-12  Paul Brook  <paul@codesourcery.com>
5822
5823         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
5824
5825 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5826
5827         * config/s390/predicates.md (setmem_operand): New predicate.
5828         (shift_count_operand): Accept ANDs with special constants as
5829         operand.
5830         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
5831         with special constants.
5832         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
5833         shift_count_operand with setmem_operand.
5834
5835 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5836
5837         * config/s390/s390.c (s390_extract_part, s390_single_part):
5838         Type cast added.
5839         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
5840         (s390_output_mi_thunk): Don't use lg on 31 bit.
5841         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
5842         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
5843
5844 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5845
5846         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
5847         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
5848         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
5849         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
5850         with one of the new macros.
5851
5852 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5853
5854         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
5855         Don't set save_return_addr_p.
5856         (s390_register_info): Make clobbered_regs not depending on
5857         save_return_addr_p.
5858
5859 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5860
5861         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
5862         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
5863
5864 2005-08-11  James E. Wilson  <wilson@specifix.com>
5865
5866         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
5867
5868 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
5869
5870         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
5871         locations gathered by var-tracking in single entry loc_list
5872         over loc_descriptor_from_tree.
5873
5874         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
5875         pass it down to loc_descriptor.
5876         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
5877         (containing_function_has_frame_base): Move earlier in the file.
5878         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
5879         instead of always assuming fbreg can't be used.
5880
5881 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
5882
5883         * config/rs6000/altivec.md: Change constraint "m" to "Z".
5884         * config/rs6000/predicates.md (indexed_or_indirect_operand):
5885         Accept address wrapped in AND for Altivec.
5886         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
5887         Strip AND wrapping offset address for Altivec.
5888
5889 2005-08-11  Richard Henderson  <rth@redhat.com>
5890
5891         PR middle-end/23312
5892         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
5893         before using TYPE_IS_SIZETYPE.
5894
5895 2005-08-11  Richard Henderson  <rth@redhat.com>
5896
5897         PR target/22225
5898         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
5899         insn types not present on ev4.
5900         (alphaev5_insn_pipe): Similarly.
5901
5902 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
5903
5904         PR target/23250
5905         * arm.c (arm_override_options): If the user has selected callee-super-
5906         interworking, then enable normal interworking.
5907
5908 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5909
5910         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
5911         redefinition.
5912
5913 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
5914
5915         * doc/rtl.texi: Fix two typos.
5916
5917 2005-08-11  Richard Guenther  <rguenther@suse.de>
5918
5919         PR target/23289
5920         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
5921         cases where we call to/from functions returning void.
5922
5923 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
5924
5925         PR c++/23225
5926         * tree.c (build_pointer_type_for_mode): Robustify.
5927
5928 2005-08-10  James E Wilson  <wilson@specifix.com>
5929
5930         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
5931         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
5932
5933         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
5934         "cum->".
5935
5936 2005-08-10  Eric Christopher  <echristo@apple.com>
5937
5938         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
5939         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
5940         V2DFmode.
5941
5942 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
5943
5944         PR target/21887
5945         * config/darwin.c (machopic_indirect_data_reference): Use a new register
5946         for the high part when generating dynamic-no-pic code.
5947
5948 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
5949
5950         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
5951         (x86_64-*-linux*): Likewise.
5952
5953         * config/i386/crtfastmath.c: New file.
5954         * config/i386/t-crtfm: Likewise.
5955
5956         * config/i386/linux.h (ENDFILE_SPEC): New.
5957         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
5958
5959         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
5960         crtfastmath.o.
5961
5962 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
5963
5964         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
5965         (vec_shl, vec_shr): Document new operations.
5966         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
5967
5968 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
5969
5970         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
5971         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
5972         change predicate to indexed_or_indirect_address.
5973
5974 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
5975
5976         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
5977         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
5978         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
5979         and __aeabi_uwrite8.
5980         * config/arm/unaligned-funcs.c: New file.
5981         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
5982
5983 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
5984
5985         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
5986         Add dump.
5987         * cfglayout.c (pass_insn_locators_initialize): Add dump.
5988         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
5989         Add dump.
5990         * except.c (pass_convert_to_eh_region_ranges): Add dump.
5991         * final.c (pass_shorten_branches): Add dump.
5992         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
5993         (pass_life): Rename dump.
5994         (rest_of_handle_flow2): Remove initial verify_flow_info.
5995         * function.c (pass_instantiate_virtual_regs): Add dump.
5996         * integrate.c (pass_initial_value_sets): Add dump.
5997         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
5998         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
5999         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
6000         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
6001         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
6002         gate_rtl_unrool_and_peel_loops): New.
6003         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
6004         rtl_doloop): Do not look at flags.
6005         * mode-switching.c (pass_mode_switching): Add dump.
6006         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
6007         pass_split_before_regstack): Add dump.
6008         * regmove.c (pass_stack_adjustments): Add dump.
6009         * tree-optimize.c (pass_fixup_cfg): Add dump.
6010
6011 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6012
6013         PR 23309
6014         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
6015         deciding which instruction sequence to use.
6016
6017 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
6018
6019         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
6020         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
6021
6022 2005-08-09  Richard Guenther  <rguenther@suse.de>
6023
6024         * c-common.c (builtin_function_2): Remove.
6025         (def_builtin_1): New function.
6026         (c_common_nodes_and_builtins): Use def_builtin_1 to
6027         build builtin functions.
6028
6029 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
6030
6031         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
6032         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
6033         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
6034         Visual DSP.
6035
6036 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
6037
6038         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
6039         fold_binary instead of fold_build2 since we don't care about the
6040         resulting tree.
6041         (loop_niter_by_eval): Likewise.
6042         (compare_trees): Likewise.
6043         (proved_non_wrapping_p): Likewise.
6044
6045 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
6046
6047         PR c/23161
6048         PR c/23165
6049         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
6050         if the if is really empty.
6051
6052 2005-08-09  Steven Bosscher  <stevenb@suse.de>
6053
6054         PR tree-optimization/23234
6055         * tree-ssa-math-opts.c (place_reciprocal): New enum.
6056         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
6057         argument of the new enum.
6058         (execute_cse_reciprocals): Add reciprocals for function arguments
6059         on the unique successor edge of the entry block.  Update other calls
6060         to execute_cse_reciprocals_1.
6061
6062 2005-08-08  Richard Henderson  <rth@redhat.com>
6063
6064         PR 22439
6065         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
6066
6067 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
6068
6069         * expr.c (write_complex_part): Return after handling MEM.
6070
6071 2005-08-08  Josh Conner  <jconner@apple.com>
6072
6073         PR rtl-optimization/23241
6074         * combine.c (simplify_comparison): Fix error in determining
6075         whether to lift a subreg from comparison.
6076
6077 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
6078
6079         PR target/18506
6080         * config/rs6000/altivec.md (vec_init<mode>): New.
6081         (vec_set<mode>): New.
6082         (vec_extract<mode>): New.
6083         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
6084         (rs6000_expand_vector_set): New.
6085         (rs6000_expand_vector_extract): New.
6086         (rs6000_legitimate_offset_address_p): Offset addresses are valid
6087         for Altivec modes before reload.
6088         (altivec_expand_vec_init_builtin): New.
6089         (get_element_number): New.
6090         (altivec_expand_vec_set_builtin): New.
6091         (altivec_expand_vec_ext_builtin): New.
6092         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
6093         builtins.
6094         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
6095         builtins.
6096         * config/rs6000/rs6000.h (rs6000_builtins): Add
6097         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
6098         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
6099         * config/rs6000/rs6000-protos.h: Declare new functions.
6100
6101 2005-08-08  Jan Hubicka  <jh@suse.cz>
6102
6103         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
6104         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
6105         * i386.md (movdi*): Use pic_32bit_operand.
6106         * predicates.md (pic_32bit_operand): New.
6107
6108 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
6109
6110         PR c++/21166
6111         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
6112
6113 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
6114
6115         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
6116         (test_for_singularity): Use fold_build2.
6117
6118 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6119
6120         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
6121
6122 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
6123
6124         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
6125         (COMMON_ASM_OP) Define.
6126         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
6127         (ix86_encode_section_info): Likewise.
6128         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
6129         SUBTARGET_ENCODE_SECTION_INFO.
6130
6131 2005-08-06  Richard Henderson  <rth@redhat.com>
6132
6133         PR 21894
6134         * tree-nested.c (convert_local_reference): Save and restore val_only
6135         around component_ref and friends.  Clear walk_subtrees by default.
6136
6137 2005-08-06  Peter O'Gorman  <peter@pogma.com>
6138
6139         PR 21366
6140         * gcc.c (process_command): Check the argument to -b has a dash.
6141         * doc/invoke.texi: Update -b and -V docs.
6142
6143 2005-08-06  James E Wilson  <wilson@specifix.com>
6144
6145         * config/mips/cross64.h, config/mips/t-cross64: Delete.
6146
6147 2005-08-06  Michael Matz  <matz@suse.de>
6148
6149         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
6150         member only if only one insn is associated with the value.
6151
6152 2005-08-06  Nick Clifton  <nickc@redhat.com>
6153
6154         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
6155         New define.
6156         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
6157         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
6158         Check symbol flags instead of symbol name mangling.
6159         (xstormy16_asm_output_aligned_common): Likewise.  Also
6160         simplify code since the bss100_section cass is the only case
6161         where the below100 code will be triggered.
6162         (xstormy16_encode_section_info): Encode below100 attribute
6163         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
6164         the name.
6165         (xstormy16_strip_name_encoding): Delete - this function is no
6166         longer needed.
6167         (TARGET_STRIP_NAME_ENCODING): Undefine.
6168         * config/stormy16/stormy16-protos.h: Delete prototype for
6169         xstormy16_strip_name_encoding.
6170
6171 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
6172
6173         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
6174         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
6175         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
6176         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
6177         config/alpha/predicates.md, config/arc/arc.h,
6178         config/arm/arm.h, config/arm/ieee754-df.S,
6179         config/arm/ieee754-sf.S, config/bfin/bfin.c,
6180         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
6181         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
6182         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
6183         config/m68hc11/m68hc11.h, config/mips/mips.c,
6184         config/mips/mips.h, config/mips/openbsd.h,
6185         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
6186         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
6187         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
6188         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
6189         config/sparc/linux.h, config/sparc/linux64.h,
6190         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
6191         doc/extend.texi, doc/gcov.texi, doc/install.texi,
6192         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
6193         typos.  Follow spelling conventions.
6194
6195 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
6196
6197         PR c/23113
6198         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
6199         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
6200         specially.  Check for side effects only for COND_EXPR.
6201         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
6202         return with TREE_NO_WARNING.
6203
6204 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
6205
6206         PR rtl-optimization/23233
6207         * loop.c (combine_movables): Require the modes to be the same.
6208         (move_movables): Remove handling of cases where the replacement
6209         had a different mode to the original.
6210
6211 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
6212
6213         PR tree-optimization/23128
6214         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
6215         subtraction wrap, and set TREE_OVERFLOW if they do.
6216
6217 2005-08-05  Richard Henderson  <rth@redhat.com>
6218
6219         PR 21728
6220         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
6221         FORCED_LABEL labels.
6222
6223 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
6224
6225         PR middle-end/23135
6226         * reload.c (find_reloads_subreg_address): Pass down TYPE
6227         unchanged.  Change all callers except find_reloads_toplev.
6228
6229 2005-08-05  Michael Matz  <matz@suse.de>
6230
6231         * genattrtab.c (current_alternative_string): Remove.
6232         (SIMPLIFY_ALTERNATIVE): Ditto.
6233         (attr_alt_bit_p): Ditto.
6234         (alternative_name): Make const char *.
6235         (evaluate_eq_attr): Remove use of above things.
6236         (simplify_test_exp): Ditto.
6237         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
6238         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
6239
6240 2005-08-04  James E Wilson  <wilson@specifix.com>
6241
6242         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
6243         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
6244         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
6245         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
6246         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
6247
6248 2005-08-04  Richard Henderson  <rth@redhat.com>
6249
6250         PR 21529
6251         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
6252         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
6253         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
6254         if we'd have to instantiate too many members.
6255
6256 2005-08-04  Richard Henderson  <rth@redhat.com>
6257
6258         PR 21291
6259         * tree-outof-ssa.c (coalesce_asm_operands): New.
6260         (coalesce_ssa_name): Use it.  Split out ...
6261         (coalesce_phi_operands, coalesce_result_decls): ... these.
6262
6263 2005-08-04  Paul Brook  <paul@codesourcery.com>
6264
6265         * read-rtl.c (read_quoted_string): Break if EOF.
6266
6267 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
6268
6269         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
6270         (fold_build2): Likewise.
6271         (fold_build3): Likewise.
6272         (fold_build1_stat): New function prototype.
6273         (fold_build2_stat): Likewise.
6274         (fold_build3_stat): Likewise.
6275         * fold-const.c (fold_build1): Rename to ..
6276         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
6277         through to build1_stat.
6278         (fold_build2): Rename to ..
6279         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
6280         through to build2_stat.
6281         (fold_build3): Rename to ..
6282         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
6283         through to build3_stat.
6284
6285 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
6286             Ian Lance Taylor  <ian@airs.com>
6287
6288         * function.c (assign_stack_local_1): Do not correct stack slot
6289         address if allocation size is smaller than mode size.
6290
6291 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
6292
6293         PR 22037
6294         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
6295         (tree_merge_blocks): Propagate anything allowed by
6296         may_propagate_copy.
6297         Clarify documentation.
6298         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
6299         SSA form, schedule an update if necessary.
6300
6301 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
6302
6303         * doc/install.texi (Binaries): Remove broken link to
6304         Sinix/Reliant Unix binaries.
6305
6306 2005-08-03  Richard Henderson  <rth@redhat.com>
6307
6308         PR 23221
6309         * function.c (stack_protect_epilogue): Export.
6310         * tree.h (stack_protect_epilogue): Declare.
6311         * calls.c (expand_call): Call it.
6312
6313 2005-08-03  Eric Christopher  <echristo@apple.com>
6314
6315         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
6316         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
6317         spec.
6318
6319 2005-08-04  Jan Hubicka  <jh@suse.cz>
6320
6321         * profile.c (branch_prob): Split edges with goto locus on them
6322         to get proper line counts.
6323         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
6324
6325 2005-08-03  Paul Brook  <paul@codesourcery.com>
6326
6327         * function.c (assign_parms): Round current_function_args_size
6328         to PARM_BOUNDARY, not STACK_BOUNDARY.
6329
6330 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
6331
6332         * config/i386/i386.c (x86_elf_aligned_common)
6333         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
6334
6335 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
6336
6337         PR tree-optimization/23157
6338         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
6339         before emitting them.
6340
6341 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6342
6343         PR tree-optimization/19899
6344         * Makefile.in (tree-scalar-evolution.o): Add real.h.
6345         * tree-scalar-evolution.c: Include real.h.
6346         (add_to_evolution): Build constant -1 of correct type.
6347
6348 2005-08-03  Jan Hubicka  <jh@suse.cz>
6349
6350         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
6351         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
6352         profile updating for complette unrolling.
6353         * loop-unroll.c (peel_loop_completely): Use it.
6354         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
6355         (tree_unroll_loops_completely): Disable code growing unrolling of cold
6356         loops.
6357
6358 2005-08-03  Paul Brook  <paul@codesourcery.com>
6359
6360         * combine.c (can_change_dest_mode): New function.
6361         (try_combine, simplify_set): Use it.
6362
6363 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
6364
6365         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
6366         TFmode to BLKmode.
6367
6368 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
6369
6370         * doc/install.texi (Specific): Adjust link to openavr.org.
6371         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
6372         (Binaries): Adjust HP-UX Porting Center link.
6373         (Binaries): Adjust Free Software Foundation ordering link.
6374
6375 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
6376
6377         * convert.c (convert_to_integer): Use fold_build1 instead of
6378         build1 when converting an integer to an integer.
6379
6380 2005-08-02  Richard Henderson  <rth@redhat.com>
6381
6382         * combine.c (combine_instructions): Don't use reg_equal/equiv
6383         results if the mode doesn't match.
6384
6385 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
6386
6387         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
6388         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
6389
6390 2005-08-02  Richard Henderson  <rth@redhat.com>
6391
6392         PR 23196
6393         * explow.c (memory_address): Remove special-case for
6394         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
6395
6396 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
6397
6398         PR 23164
6399         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
6400         number of calls to cleanup_tree_cfg_1.
6401
6402 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
6403
6404         * doc/invoke.texi: document file extensions .F90 and .F95
6405
6406 2005-08-02  Richard Guenther  <rguenther@suse.de>
6407
6408         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
6409         positive if its first argument is positive.
6410
6411 2005-08-02  Richard Guenther  <rguenther@suse.de>
6412
6413         PR tree-optimization/23177
6414         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
6415         on TMR_TAG.
6416
6417 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
6418
6419         PR tree-optimization/23129
6420         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
6421         varying for divisions with anti-ranges.
6422
6423 2005-08-02  Jan Hubicka  <jh@suse.cz>
6424
6425         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
6426         * tree-ssa-threadupdate.c (thread_block): Add it here.
6427
6428 2005-08-01  James E Wilson  <wilson@specifix.com>
6429
6430         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
6431         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
6432         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
6433         New.
6434         * config/mips/predicates.md (const_call_insn_operand): Add check for
6435         SYMBOL_REF_LONG_CALL_P.
6436         * doc/extend.texi (long_call): Document the new attribute.
6437
6438 2005-08-01  Ian Lance Taylor  <ian@airs.com>
6439             Richard Henderson  <rth@redhat.com>
6440
6441         * Makefile.in (RTL_BASE_H): Add real.h.
6442         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
6443         instead of memcpy.
6444         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
6445         directly.
6446         * rtl.c (rtl_check_failed_code_mode): New.
6447         * rtl.h (struct rtx_def): Add u.rv.
6448         (XCMWINT, XCNMPRV): New.
6449         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
6450         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
6451
6452 2005-08-01  Richard Henderson  <rth@redhat.com>
6453
6454         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
6455         with auto-inc codes.
6456
6457         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
6458
6459 2005-08-01  Jan Hubicka  <jh@suse.cz>
6460
6461         * i386-protos.h (asm_preferred_eh_data_format): Declare.
6462         * i386.c: Include dwarf2.h
6463         (asm_preferred_eh_data_format): New.
6464         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
6465
6466 2005-08-01  Ian Lance Taylor  <ian@airs.com>
6467
6468         * config/host-linux.c (linux_gt_pch_get_address): Add new name
6469         randomize_va_space for virtual address randomization control.
6470
6471 2005-08-01  Steven Bosscher  <stevenb@suse.de>
6472
6473         * common.opt (flag_ipa_cp): Put in right place to maintain
6474         alphabetic sort.
6475
6476 2005-08-01  Jan Hubicka  <jh@suse.cz>
6477
6478         * profile.c (compute_value_histograms): Fix thinko.
6479         * value-prof.c: Include toplev.h
6480         (check_counter): New function.
6481         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
6482         tree_mod_subtract_transform): Add sanity check.
6483
6484 2005-08-01  Richard Guenther  <rguenther@suse.de>
6485
6486         PR tree-optimization/23133
6487         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
6488         current functions parameter decls to find defs to cse
6489         reciprocals of.
6490
6491 2005-08-01  Richard Guenther  <rguenther@suse.de>
6492
6493         PR tree-optimization/23109
6494         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
6495         If trapping math is in effect, use post-dominator information
6496         to check if we'd in any case reach a trapping point before
6497         doing the reciprocal insertion.
6498         (execute_cse_reciprocals): Compute post-dominators, if necessary.
6499         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
6500         expressions are invariant only if trapping math is not in effect.
6501
6502 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
6503
6504         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
6505         cgraph_function_versioning): New declarations.
6506         * cgraphunit.c: Add include to ipa-prop.h.
6507         (update_call_expr, cgraph_copy_node_for_versioning,
6508         cgraph_function_versioning): New functions.
6509         * integrate.c (copy_decl_for_inlining): Remove.
6510         * ipa-prop.h (ipa_replace_map): New struct.
6511         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
6512         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
6513         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
6514         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
6515         ipcp_iterate_stage, ipcp_method_scale_print,
6516         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
6517         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
6518         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
6519         ipcp_update_bb_counts, ipcp_update_profiling,
6520         ipcp_update_edges_counts): New functions.
6521         (ipcp_method_cval_init): Remove restriction regarding local methods.
6522         (ipcp_init_stage): Add ipcp_method_compute_scale.
6523         (ipcp_insert_stage): Add versioning.
6524         (ipcp_structures_print): Add ipcp_method_scale_print.
6525         (ipcp_driver): Dump profiling info.
6526         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
6527         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
6528         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
6529         (struct inline_data): Add versioning_p, ipa_info, new fields.
6530         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
6531         declare_return_variable): Replace calls to copy_decl_for_inlining with
6532         copy_decl_for_dup.
6533         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
6534         versioning support.
6535         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
6536         Add argument VERSIONING.
6537         (copy_arguments_for_versioning, copy_static_chain,
6538         function_versionable_p, tree_versionable_function_p,
6539         tree_function_versioning, replace_ref_tree): New functions.
6540         * tree-inline.h: Include varray.h.
6541         (tree_versionable_function_p,  tree_function_versioning,
6542         tree copy_decl_for_dup): New declarations.
6543
6544 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
6545
6546         * ipa-cp.c: New file. Contains IPCP specific functionality.
6547         * ipa-prop.h: New file. Contains structures/definitions that can be
6548         used by several interprocedural data flow optimizations (and also IPCP).
6549         * ipa-prop.c: New file.
6550         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
6551         * common.opt: Add ipa-cp flag.
6552         * timevar.def: Add IPCP optimization.
6553         * tree-optimize.c (init_tree_optimization_passes): Schedule
6554         pass_ipa_cp.
6555         * tree-pass.h (pass_ipa_cp): Declare.
6556
6557 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
6558
6559         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
6560         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
6561         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
6562         config/i386/i386.c, config/mips/mips.h,
6563         config/rs6000/rs6000.h, config/sh/sh.c,
6564         config/stormy16/stormy16.c: Fix comment typos.
6565
6566 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
6567
6568         PR c/22311
6569         * c-typeck.c (build_binary_op): Use common_type wrapper on
6570         shortened types.
6571         (common_type): Update comment.
6572
6573 2005-07-31  Steven Bosscher  <stevenb@suse.de>
6574
6575         PR target/23095
6576         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
6577         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
6578         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
6579
6580 2005-07-31  Jan Hubicka  <jh@suse.cz>
6581
6582         * pretty-print.h (pp_widest_integer): New macro.
6583         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
6584         counts.
6585
6586 2005-07-31  Jan Hubicka  <jh@suse.cz>
6587
6588         * output.h (enum section_category): Export from varasm.c
6589         (categorize_decl_for_section): Likewise.
6590         * varasm.c (enum section_category): Kill.
6591         (categorize_decl_for_section): Make global.
6592         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
6593         Declare.
6594         * i386.c (ix86_section_threshold): New static variable.
6595         (ix86_in_large_data_p, ix86_encode_section_info,
6596         x86_64_elf_unique_section,
6597         x86_64_elf_select_section): New functions.
6598         (TARGET_ENCODE_SECTION_INFO): Define
6599         (override_options): Enable medium model for PIC.
6600         (ix86_expand_prologue): Expand gen_set_got_rex64.
6601         (legitimate_constant_p): Handle new UNSPECs.
6602         (legitimate_pic_address_disp_p): Likewise.
6603         (legitimize_pic_address): Lower MEDIUM model addressing.
6604         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
6605         (enum cmodel): Add MEDIUM_PIC.
6606         (SYMBOL_REF_FAR_ADDR_P): New macro.
6607         (SYMBOL_FLAG_FAR_ADDR): New flag.
6608         * i386.md (movdi): Support medium model.
6609         (set_got_rex64): New pattern.
6610         * i386.opt (mlarge-data-threshold): New flag.
6611         * predicates.md (zext_operand/sext_operand): Deal with medium model.
6612         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
6613         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
6614         TARGET_ASM_UNIQUE_SECTION): New.
6615
6616         * invoke.texi (-mlarge_data_threshold): Document
6617
6618 2005-07-31  Jan Hubicka  <jh@suse.cz>
6619
6620         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
6621         (coalesce_vars): Likewise.
6622         * tree-ssa-live.c (coalesce_cost): New.
6623         (build_tree_conflict_graph): Use coalesce_cost.
6624         * tree-ssa-live.h (coalesce_cost): Declare.
6625
6626 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
6627
6628         * arm.md (all peepholes for post-increment operations): Delete.
6629         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
6630         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
6631         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
6632         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
6633         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
6634
6635 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
6636
6637         * fold-const.c (tree_expr_nonnegative_p): Always return true for
6638         non-integral types.
6639
6640 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
6641
6642         PR target/22582
6643         * doc/invoke.texi: Document -rdynamic.
6644
6645 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
6646
6647         PR c/23143
6648         * c-parser.c (c_parser_parms_list_declarator): Call
6649         mark_forward_parm_decls.
6650         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
6651         decls with visibility structure.
6652
6653 2005-07-30  Paul Brook  <paul@codesourcery.com>
6654
6655         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
6656
6657 2005-07-30  Paul Brook  <paul@codesourcery.com>
6658
6659         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6660         prototype.
6661         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
6662         value for mode.
6663         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
6664
6665 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6666
6667         PR c/529
6668         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
6669         nested function declarators.
6670         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
6671         (grokparms): Call warn_if_shadowing for parameters used within the
6672         parameter list.
6673         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
6674         not used within the parameter list.
6675         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
6676
6677 2005-07-30  Jan Hubicka  <jh@suse.cz>
6678
6679         * expr.c (expand_expr_real_1): Do not load mem targets into register.
6680         * i386.c (ix86_fixup_binary_operands): Likewise.
6681         (ix86_expand_unary_operator): Likewise.
6682         (ix86_expand_fp_absneg_operator): Likewise.
6683         * optabs.c (expand_vec_cond_expr): Validate dest.
6684
6685 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6686
6687         PR c/21720
6688         * real.c (real_from_string): Also set last bit if there is a
6689         nonzero hex digit beyond GCC's internal precision after ".".
6690
6691 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
6692
6693         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
6694         define_constants.  Change duplicate values to unassigned numbers.
6695         Change UNSPEC_SUBS to UNSPEC_VSUBS.
6696         (*altivec_vspltsf): New.
6697         (altivec_vperm_v4sf): Delete.
6698         (altivec_vperm_<mode>): Use mode macro V.
6699         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
6700         (altivec_predicate_v4sf): Delete.
6701         (altivec_predicate_<mode>): Use mode macro V.
6702         (*altivec_lvesfx): New.
6703         (*altivec_stvesfx): New.
6704         (vec_realign_load_v4sf): Delete.
6705         (vec_realign_load_<mode>): Use mode macro V.
6706         * config/rs6000/rs6000.c (generate_set_vrsave): Use
6707         UNSPECV_SET_VRSAVE.
6708
6709 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
6710
6711         PR bootstrap/23131
6712         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
6713         string.
6714         * configure: Regenerated.
6715
6716 2005-07-29  Paul Brook  <paul@codesourcery.com>
6717
6718         * doc/install.texi: Add link to GFortran binaries wiki page.
6719
6720 2005-07-29  David Ung  <davidu@mips.com>
6721
6722         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
6723         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
6724         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
6725         * config/mips/mips.md (cpu): Add 5kf name.
6726         (includes): Includes 5k.md.
6727         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
6728         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
6729         -march flag.
6730
6731 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
6732
6733         PR 22550
6734         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
6735         (cleanup_tree_cfg): ... here.
6736         Call cleanup_tree_cfg_1 until there are no more cleanups to
6737         do.
6738
6739 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
6740
6741         * tree-vrp.c (compare_range_with_value): Return true or false
6742         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
6743         EQ_EXPR respectively.
6744
6745 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
6746
6747         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
6748         Fix comment typos.
6749
6750 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
6751
6752         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
6753         (tree_ssa_dominator_optimize): Increment it.
6754         (dump_dominator_optimization_stats): Print it.
6755
6756 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
6757             Steven Bosscher  <stevenb@suse.de>
6758
6759         PR rtl-optimization/23117
6760         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
6761         when head == tail.  Tidy comment.
6762
6763 2005-07-28  Richard Henderson  <rth@redhat.com>
6764
6765         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
6766         * cselib.c (rtx_equal_for_cselib_p): Likewise.
6767         * jump.c (rtx_renumbered_equal_p): Likewise.
6768         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
6769         CONST_INT and CONST_DOUBLE.
6770         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
6771         * reload.c (operands_match_p): Special case CONST_INT and
6772         CONST_DOUBLE; check mode earlier.
6773
6774 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6775
6776         PR c/22240
6777         * c-typeck.c (convert_for_assignment): Do not check
6778         DECL_IN_SYSTEM_HEADER on NULL fundecl.
6779
6780 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6781
6782         PR c/22192
6783         * c-typeck.c (composite_type): Prefer constant size arrays to
6784         VLAs.
6785
6786 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
6787
6788         PR c/21720
6789         * real.c (real_from_string): Set last bit if there is a nonzero
6790         hex digit beyond GCC's internal precision.
6791
6792 2005-07-28  Richard Henderson  <rth@redhat.com>
6793
6794         PR rtl-opt/22619
6795         * cfgcleanup.c (try_forward_edges): Watch out for end of
6796         insn chain.
6797
6798 2005-07-28  James E Wilson  <wilson@specifixinc.com>
6799
6800         PR c/23106
6801         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
6802
6803 2005-07-28  Jan Hubicka  <jh@suse.cz>
6804
6805         * Makefile.in (rtl-profile.o): Kill all traces of it.
6806         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
6807         * coverage.h (rtl_coverage_counter_ref): Kill.
6808         * opts.c (flag_speculative_prefetching_set): Kill.
6809         (flag_loop_optimize_set): New.
6810         (common_handle_option): Disable loop optimizer when profiling;
6811         do not handle speculative prefetching.
6812         * passes.c (init_optimization_passes): Replace pass_profiling combo
6813         by branch_prob pass.
6814         * profile.c (compute_value_histograms): Update for simplified value
6815         profiles.
6816         (rtl_register_profile_hooks): Kill.
6817         (pass_profiling): Kill.
6818         (rest_of_handle_branch_prob): Do not profile.
6819         * toplev.c (process_options): Remove speculative prefetching.
6820         * toplev.h (flag_tree_based_profiling): Kill.
6821         * tree-profile.c (prepare_instrumented_value,
6822         tree_gen_interval_profiler, tree_gen_pow2_profiler,
6823         tree_gen_one_value_profiler, do_tree_profiling): Update for
6824         simplified datastructures.
6825         * value-prof.c: Add comment that speculative prefetching was dropped;
6826         update rest of file for simplified datastructures.
6827         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
6828         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
6829         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
6830         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
6831         rtl_mod_subtract, gen_speculative_prefetch,
6832         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
6833         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
6834         (gate_handle_value_profile_transformations,
6835         rest_of_handle_value_profile_transformations,
6836         pass_value_profile_transformations): Kill.
6837         * value-prof.h (histogram_value_t): Remove IL based unions.
6838         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
6839         rtl_profile_hooks): Remove hooks.
6840
6841         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
6842
6843         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
6844         (cgraph_clone_node): Likewise.
6845         * cgraph.h (cgraph_clone_edge): Update prototype.
6846         (cgraph_clone_node): Likewise.
6847         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
6848         cgraph_clone_node.
6849         (lookup_recursive_calls): Consider profile.
6850         (cgraph_decide_recursive_inlining): Fix updating; use new
6851         probability argument; use profile.
6852         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
6853         * tree-inline.c (copy_bb): Update clal of clone_edge.
6854         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
6855
6856         * invoke.texi (min-inline-recursive-probability): Document.
6857
6858 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
6859
6860         * doc/install.texi (Configuration): Update Valgrind homepage.
6861
6862 2005-07-28  Richard Henderson  <rth@redhat.com>
6863
6864         PR middle-end/21362
6865         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
6866         labels we want to delete.
6867         (cfg_layout_merge_blocks): Likewise.
6868
6869 2005-07-28  Richard Henderson  <rth@redhat.com>
6870
6871         PR target/17692
6872         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
6873         when expanding to nothing.
6874
6875 2005-07-28  Josh Conner  <jconner@apple.com>
6876
6877         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
6878         (cgraph_decide_inlining_of_small_functions): Likewise.
6879
6880 2005-07-28  Josh Conner  <jconner@apple.com>
6881
6882         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
6883         direction of badness if negative.
6884         (cgraph_default_inline_p): Add reason to parameters, and assign it
6885         a value.
6886         (cgraph_decide_inlining_of_small_functions): New parameter in call
6887         to cgraph_default_inline_p.
6888         (cgraph_decide_inlining_incrementally): Likewise.
6889         * cgraphunit.c (decide_is_function_needed): Likewise.
6890         * cgraph.h (cgraph_default_inline_p): Likewise.
6891
6892 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6893
6894         * builtins.c: Fix comment typo(s).
6895         * genautomata.c: Likewise.
6896         * gimplify.c: Likewise.
6897         * tree-dfa.c: Likewise.
6898         * tree-flow-inline.h: Likewise.
6899         * tree-into-ssa.c: Likewise.
6900         * tree-ssa-alias.c: Likewise.
6901         * tree-ssa-ccp.c: Likewise.
6902         * tree-ssa-copy.c: Likewise.
6903         * tree-ssa-dce.c: Likewise.
6904         * tree-ssa-dom.c: Likewise.
6905         * tree-ssa-operands.c: Likewise.
6906         * tree-tailcall.c: Likewise.
6907         * tree-vectorizer.c: Likewise.
6908         * tree-vrp.c: Likewise.
6909         * tree.c: Likewise.
6910
6911 2005-07-28  Jeff Law  <law@redhat.com>
6912
6913         * tree-vrp.c (test_for_singularity): Extracted from  ...
6914         (simplify_cond_using_ranges): Attempt to simplify a relational
6915         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
6916
6917 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
6918
6919         PR tree-optimization/22506
6920         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
6921         phis whose argument is constant.
6922
6923 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
6924
6925         PR rtl-optimization/18992
6926         Back out this patch:
6927           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6928           PR optimization/12142
6929           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
6930           uses of the register in the SET_SRC.  Remove unnecessary argument.
6931
6932         Replace it with this:
6933         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
6934         if flag_non_call_exceptions is set and the insn may trap, pass
6935         pc_rtx as dest for recursion.
6936         In SET_SRC part of SET case, if dest is already set, pass it down
6937         unchanged.
6938
6939 2005-07-28  Jan Hubicka  <jh@suse.cz>
6940
6941         * cfg.c (update_bb_profile_for_threading): Use RDIV.
6942         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
6943         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
6944         roundoff errors.
6945         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
6946         profile when available.
6947
6948 2005-07-28  Jan Beulich <jbeulich@novell.com>
6949
6950         * config/ia64/ia64.c (ia64_load_pair_ok): New.
6951         (ia64_print_operand): Describe and handle 'X'.
6952         (ia64_register_move_cost): Also handle FP_REGS.
6953         (ia64_preferred_reload_class): Likewise.
6954         (ia64_secondary_reload_class): Likewise.
6955         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
6956         it. Also check for ITANIUM_CLASS_FLDP.
6957         * config/ia64/ia64.h (FP_REGNO_P): New.
6958         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
6959         (reg_class): Add FP_REGS.
6960         (REG_CLASS_NAMES): Adjust for it.
6961         (REG_CLASS_CONTENTS): Likewise.
6962         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
6963         (REG_CLASS_FROM_LETTER): Handle 'x'.
6964         (CLASS_MAX_NREGS): Handle FP_REGS.
6965         (MEMORY_MOVE_COST): Likewise.
6966         * config/ia64/ia64.md (itanium_class): Add fldp.
6967         (type): Handle fldp.
6968         (movti_internal): More allowable operand combinations. Use ldfp8 when
6969         splitting unnecessary. Remove predicable attribute. Adjust
6970         itanium_class attribute.
6971         (smuldi3_highpart): Remove outdated comment.
6972         (mulditi3, umulditi3, rotlti3): New expanders.
6973         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
6974         (absti2): Disabled new insn for future reference.
6975         Respective new splitters.
6976         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
6977         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
6978         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
6979
6980 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
6981
6982         PR rtl-optimization/23047
6983         * simplify-rtx.c (simplify_const_relational_operation): Respect
6984         flag_wrapv for comparisons with ABS.
6985
6986 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
6987
6988         PR tree-optimization/22493
6989         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
6990         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
6991
6992 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
6993
6994         * config/frv/frv.opt (moptimize-membar): New.
6995
6996         * doc/invoke.texi: Document -moptimize-membar and its inverse.
6997
6998         * config/frv/frv.h: Remove machine_function definition.
6999
7000         * config/frv/frv.c (struct frv_io): New.
7001         (struct machine_function): Moved from frv.h.  Add has_membar_p.
7002         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
7003         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
7004         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
7005         (frv_optimize_membar_global, frv_optimize_membar): New functions.
7006         (frv_reorg): Call frv_optimize_membar when appropriate.
7007         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
7008         (frv_expand_builtin): Adjust calls accordingly.
7009         (frv_io_address_cookie): New function.
7010         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
7011         load or store rather than a special insn.  Add ccnstant address and
7012         io-type operands to the membar.
7013         (frv_ifcvt_modify_tests): Unsign regno.
7014         (frv_ifcvt_modify_tests): Same.
7015
7016         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
7017         UNSPEC_OPTIONAL_MEMBAR constant.
7018         (builtin_read_<mode>): Delete.
7019         (builtin_write_<mode>): Delete.
7020         ("optional_membar_<mode>"): Add operand.
7021
7022         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
7023         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
7024         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
7025         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
7026         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
7027         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
7028         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
7029         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
7030         * testsuite/gcc.target/frv/all-read-write-1.c: New.
7031
7032 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
7033
7034         * df.c (df_uses_record): Handle SCRATCH.
7035
7036 2005-07-28  Steven Bosscher  <stevenb@suse.de>
7037
7038         PR debug/20161
7039         * passes.c (rest_of_decl_compilation): If decl is a type and
7040         we have encountered errors, don't emit debug information.
7041
7042 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
7043
7044         * params.def: Fixed comment.
7045
7046 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
7047
7048         PR target/19885
7049         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
7050         (TARGET_ASM_UNALIGNED_HI_OP): Add.
7051         (TARGET_ASM_UNALIGNED_SI_OP): Add.
7052
7053 2005-07-27  Steven Bosscher  <stevenb@suse.de>
7054
7055         PR c++/22003
7056         * varasm.c (assemble_start_function): Don't do anything that may
7057         require a CFG if the current function is a thunk.
7058
7059 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
7060
7061         * doc/install.texi (Prerequisites): Mention that perl is needed
7062         to do export control in libstdc++ targetting Darwin.
7063
7064 2005-07-27  Steven Bosscher  <stevenb@suse.de>
7065
7066         PR rtl-optimization/17808
7067         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
7068         (sched_insns_conditions_mutex_p): Split out from...
7069         (add_dependence): ...here.  But don't call it from here.
7070         (add_dependence_list): Check sched_insns_conditions_mutex_p
7071         before calling add_dependence.
7072         (add_dependence_list_and_free): Likewise.
7073         (fixup_sched_groups): Likewise.
7074         (sched_analyze_1): Likewise.
7075         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
7076         (sched_analyze): Likewise.
7077         (sched_analyze_insn): Likewise.
7078         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7079         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
7080         dependencies on all COND_EXEC insns to jumps ending basic blocks
7081         when doing intrablock scheduling.
7082         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
7083
7084 2005-07-27  Jeff Law  <law@redhat.com>
7085
7086         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
7087         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
7088         equivalency sets, correctly handle the case were vr0 has an
7089         equivalency set, but vr1 does not.
7090
7091 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
7092
7093         PR tree-optimization/23073
7094         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
7095         vect_print_dump_info before fprintf.
7096
7097 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
7098
7099         PR tree-optimize/22348
7100         * tree-ssa-loop-niter.c (number_of_iterations_cond):
7101         Fold the partial computation.
7102
7103 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
7104
7105         PR tree-optimization/22325
7106         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
7107         Declare.
7108         * tree-scalar-evolution.c (scev_const_prop): Add generic final
7109         value replacement.
7110         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
7111         (force_var_cost): ... this function.
7112         (compute_phi_arg_on_exit): Export.
7113
7114 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
7115
7116         PR tree-optimization/20773
7117         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
7118         edge.
7119
7120 2005-07-27  Richard Guenther  <rguenther@suse.de>
7121
7122         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
7123         Avoid pushing again if current struct contains only
7124         fields we decomposed.
7125
7126 2005-07-27  Jan Hubicka  <jh@suse.cz>
7127
7128         PR tree-optimization/22574
7129         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
7130         not available.
7131
7132         * tree-tailcall.c (decrease_profile): New function.
7133         (eliminate_tail_call): Use it.
7134
7135         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
7136         visibility flags correctly in whole program mode.
7137
7138 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
7139
7140         PR rtl-optimization/22472
7141         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
7142
7143 2005-07-26  Steven Bosscher  <stevenb@suse.de>
7144
7145         PR tree-optimization/22504
7146         * tree-complex.c (expand_complex_addition): Use 'code' instead
7147         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
7148
7149 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
7150
7151         * config.gcc (cpu_type): Add frv case.
7152         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
7153         (supported_defaults): Add fr550 case.
7154
7155 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
7156
7157         PR 22591
7158         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
7159         whether a pointer of type T * may point to objects of type T *.
7160
7161 2005-07-26  DJ Delorie  <dj@redhat.com>
7162
7163         * configure: Regenerate.
7164
7165 2005-07-26  Dale Johannesen  <dalej@apple.com>
7166
7167         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
7168
7169 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
7170
7171         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
7172         Clarify use of "build" in name.
7173
7174 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
7175
7176         * doc/extend.texi (Raw read/write Functions): New section.
7177         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
7178         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
7179         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
7180         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
7181         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
7182         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
7183         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
7184         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
7185         * config/frv/frv.c: Add bdesc_loads global.
7186         Add bdesc_stores global.
7187         (frv_init_builtins): Add support for __builtin_{read/write}*.
7188         (frv_volatile_memref): New.
7189         (frv_expand_load_builtin): New.
7190         (frv_expand_store_builtin): New.
7191         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
7192         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
7193         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
7194         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
7195         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
7196         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
7197         (builtin_read_<mode>): New.
7198         (builtin_write_<mode>): New.
7199         (builtin_write64): New.
7200         (optional_membar_<mode>): New.
7201
7202 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
7203
7204         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
7205         (rather than units) against HOST_BITS_PER_WIDE_INT.
7206
7207 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
7208
7209         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
7210         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
7211         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
7212         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
7213         FSF address.
7214
7215         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
7216         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
7217         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
7218         comment typos.
7219         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
7220
7221 2005-07-26  Richard Guenther  <rguenther@suse.de>
7222
7223         PR tree-optimization/22486
7224         * fold-const.c (fold_unary): Fold away useless component
7225         references of the form (T *)&T.x, if the address
7226         doesn't change.
7227
7228 2005-07-25  James E Wilson  <wilson@specifixinc.com>
7229
7230         * dwarf2out.c (add_call_src_coords_attributes): New.
7231         (gen_inlined_subroutine_die): Call it.
7232         (maybe_emit_file, init_file_table): Add comments.
7233         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
7234         maybe_emit_file.
7235         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
7236         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
7237         * tree.h (BLOCK_SOURCE_LOCATION): New.
7238         (struct tree_block): New field locus.
7239
7240 2005-07-26  Andreas Schwab  <schwab@suse.de>
7241
7242         PR rtl-optimization/23043
7243         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
7244         when allocating a struct unoccr.
7245
7246 2005-07-25  Richard Henderson  <rth@redhat.com>
7247
7248         PR 22626
7249         * tree-complex.c (gate_no_optimization): True if errors.
7250         * Makefile.in (tree-complex.o): Update dependencies.
7251
7252 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
7253
7254         * config/frv/predicates.md (integer_register_operand): Use
7255         GPR_AP_OR_PSEUDO_P.
7256
7257 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
7258
7259         PR tree-opt/22484
7260         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
7261         after fold.
7262         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
7263
7264 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
7265
7266         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
7267         types when flag_unsafe_math_optimizations is true.
7268
7269 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
7270
7271         * gcc.c (option_map): Add --sysroot.
7272         (process_command): Handle --sysroot.
7273         (display_help): Document it.
7274         * doc/cppopts.tex (-isysroot): Document.
7275         * doc/invoke.texi (--sysroot): Document.
7276         * doc/install.texi (--with-build-sysroot): Document.
7277
7278         * Makefile.in (inhibit_libc): New variable.
7279         (INHIBIT_LIBC_CFLAGS): Likewise.
7280         (LIBGCC2_CFLAGS): Include
7281         $(INHIBIT_LIBC_CFLAGS).
7282         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
7283         ($(T)crtbegin.o): Do not use @inhibit_libc@.
7284         ($(T)crtend.o): Likewise.
7285         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
7286         ($(T)crtendS.o): Likewise.
7287         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
7288         ($(T)crtendT.o): Likewise.
7289         (stmp-fixinc): Do not complain about missing headers if
7290         inhibit_libc.
7291         * configure.ac (inhibit_libc): Set it to true/false.
7292         (--with-build-sysroot): New option.  Use it to set
7293         SYSTEM_HEADER_DIR.
7294         * configure: Regenerated.
7295
7296 2005-07-25  Manfred Hollstein  <mh@suse.com>
7297
7298         * calls.c (store_one_arg): Fix unsigned comparison warning.
7299
7300 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
7301
7302         PR other/22337
7303         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
7304         (ggc_print_statistics): Initialize variable before use.
7305
7306 2005-07-25  Richard Guenther  <rguenther@suse.de>
7307
7308         * tree-dfa.c (mark_new_vars_to_rename): Protect against
7309         calling with a PHI_NODE argument.
7310
7311         * tree-flow-inline.h (overlap_subvar): Protect against
7312         possible overflow.
7313
7314 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
7315
7316         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
7317         * configure: Regenerate.
7318
7319 2005-07-25  Ira Rosen  <irar@il.ibm.com>
7320
7321         * expr.c (highest_pow2_factor): Make extern.
7322         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
7323         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
7324         record_array_differ_p, array_ptr_differ_p): Likewise.
7325         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
7326         additional cases. Call the above functions.
7327         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
7328         base_object_differ_p when there are two base objects. Otherwise, compare
7329         base address and offset. Call may_alias_p.
7330         (dump_data_reference): Use a correct field name.
7331         (analyze_array): Make static. Initialize new data-ref fields.
7332         (analyze_indirect_ref): New function.
7333         (init_data_ref): Initialize new data-ref fields.
7334         (strip_conversion): Moved from tree-vect-analyze.c.
7335         (analyze_offset_expr, get_ptr_offset, address_analysis,
7336         object_analysis): Likewise.
7337         (analyze_offset): New function.
7338         (create_data_ref): Likewise.
7339         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
7340         dimensions for ARRAY_REFs only.
7341         (build_classic_dist_vector): Make static.
7342         (access_functions_are_affine_or_constant_p): Call macro to get the
7343         address of access functions.
7344         (compute_all_dependences): Add new parameter
7345         compute_self_and_read_read_dependences. Compute self and read-read
7346         dependences if it is true.
7347         (find_data_references_in_loop): Call create_data_ref. Initialize new
7348         data-ref fields.
7349         (compute_data_dependences_for_loop): Add new parameter
7350         compute_self_and_read_read_dependences. Remove parameter nb_loops,
7351         compute nb_loops. Call compute_all_dependences,
7352         build_classic_dist_vector and build_classic_dir_vector with correct
7353         parameters.
7354         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
7355         with correct parameters. Compare dimensions for ARRAY_REFs only.
7356         (free_data_refs): Call macro to free access functions.
7357         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
7358         fields from stmt_vinfo.
7359         (struct base_object_info): New structure.
7360         (struct data_reference): Move fields to base_object_info. Add fields
7361         first_location and object_info for above structures. Move fields from
7362         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
7363         aligned_to.  Add macros to access the new fields.
7364         Update functions declarations.
7365         * tree-flow.h (is_aliased_with): Declare.
7366         * tree-loop-linear.c (linear_transform_loops): Call
7367         compute_data_dependences_for_loop with correct parameters.
7368         * tree-ssa-alias.c (is_aliased_with): New function.
7369         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
7370         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
7371         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
7372         vect_base_addr_differ_p, compute_subscript_distance and
7373         build_classic_dist_vector. Add printings. Check absolute value of
7374         distance.
7375         (vect_analyze_data_ref_dependences): Go through ddrs instead of
7376         data-refs.
7377         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
7378         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
7379         to bytes. Add printing.
7380         (vect_compute_data_refs_alignment): Go through loads and stores in one
7381         loop.
7382         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
7383         vect_analyze_data_ref_access): Likewise.
7384         (vect_analyze_pointer_ref_access): Remove.
7385         (vect_address_analysis, vect_object_analysis): Likewise.
7386         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
7387         and analyze data-refs in the loop.
7388         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
7389         fields of data-ref instead of stmt. Add init to the offset from the
7390         base.
7391         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
7392         (vect_update_init_of_dr): Likewise.
7393         (vect_update_inits_of_drs): Go through loads and stores in one loop.
7394         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
7395         removed fields.
7396         (new_loop_vec_info): Initialize new fields.
7397         (destroy_loop_vec_info): Free new fields.
7398         (vect_strip_conversion): Remove.
7399         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
7400         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7401         datarefs. Add new field ddrs.
7402         Add macros for the new fields access.
7403         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
7404         base_aligned_p, misalignment, memtag, ptr_info and subvars.
7405         Remove their macros.
7406         * tree.h (highest_pow2_factor): Declare.
7407
7408 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
7409
7410         * calls.c (store_one_arg): Check for sibling call MEM arguments
7411         from already clobbered incoming argument area.
7412
7413 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7414
7415         * c-common.c (check_missing_format_attribute): New.
7416         * c-common.h (check_missing_format_attribute): Likewise.
7417         * c-typeck.c (convert_for_assignment): Use it.
7418
7419 2005-07-24  Andreas Schwab  <schwab@suse.de>
7420
7421         * config/m68k/m68k.md ("extendqidi2"): When source is an address
7422         register use a word move.  Correct operand of ext.w in 68000 code.
7423
7424 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
7425
7426         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
7427         variables as declarations, rather than definitions.
7428
7429 2005-07-24  Ira Rosen  <irar@il.ibm.com>
7430
7431         PR tree-optimization/22526
7432         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
7433         of the zero node.
7434
7435 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7436
7437         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
7438         that C99 reserve for future use. Use it to define clog10,
7439         clog10f and clog10l.
7440
7441 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7442
7443         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
7444         * configure.ac: Check for -Wmissing-format-attribute.
7445
7446         * configure: Regenerate.
7447
7448 2005-07-23  Richard Henderson  <rth@redhat.com>
7449
7450         PR tree-optimization/22623
7451         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
7452
7453 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
7454
7455         PR target/22577
7456         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
7457
7458 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7459
7460         * Makefile.in (C_TREE_H): Update dependencies.
7461         * c-tree.h: Include toplev.h.
7462         * diagnostic.h (diagnostic_set_info): Add format attribute.
7463         * rtl-error.c (diagnostic_for_asm): Likewise.
7464
7465 2005-07-23  Chao-ying Fu  <fu@mips.com>
7466
7467         * config/mips/mips-dsp.md: New file.
7468         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
7469         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
7470         functions.
7471         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
7472         MIPS_BUILTIN_BPOSGE32.
7473         (mips_expand_builtin_direct): Add one parameter to indicate that
7474         builtin functions need to return a value.
7475         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
7476         functions.
7477         (mips_regno_to_class): Add classes for 12 new DSP registers.
7478         (mips_subword): Change to check four HI registers.
7479         (mips_output_move): Output move to and from 6 new DSP accumulators.
7480         (override_options): Make sure -mdsp and -mips16 are not used together.
7481         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
7482         for machine modes.
7483         (mips_conditional_register_usage): Disable 6 new DSP accumulators
7484         when !TARGET_DSP.
7485         (print_operand): Add 'q' for printing DSP accumulators.
7486         (mips_cannot_change_mode_class): Check ACC_REGS.
7487         (mips_secondary_reload_class): Check ACC_REGS.
7488         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
7489         (mips_register_move_cost): Check ACC_REGS.
7490         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
7491         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
7492         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
7493         (dsp_bdesc): New array.
7494         (bdesc_arrays): Add DSP builtin function table.
7495         (mips_prepare_builtin_arg): Check predicate again after
7496         copy_to_mode_reg.
7497         (mips_expand_builtin): Add one more parameter to
7498         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
7499         MIPS_BUILTIN_BPOSGE32.
7500         (mips_init_builtins): Initialize new function types.
7501         (mips_expand_builtin_direct): Check if builtin functions need to
7502         return a value and pass operands properly.
7503         (mips_expand_builtin_bposge): New function.
7504         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
7505         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
7506         (FIRST_PSEUDO_REGISTER): Increase to 188.
7507         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
7508         Update for 12 new DSP registers.
7509         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
7510         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
7511         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
7512         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
7513         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
7514         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
7515         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
7516         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
7517         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
7518         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
7519         (REGISTER_NAMES): Add names for 12 new DSP registers.
7520         * config/mips/mips.md: Include mips-dsp.md.
7521         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
7522         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
7523         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
7524         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
7525         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
7526         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
7527         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
7528         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
7529         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
7530         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
7531         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
7532         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
7533         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
7534         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
7535         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
7536         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
7537         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
7538         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
7539         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7540         (UNSPEC_RDDSP): New constants.
7541         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
7542         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
7543         A<-d alternative.
7544         * config/mips/mips.opt (-mdsp): New option.
7545         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
7546         (reg_imm10_operand): New predicates.
7547         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
7548         * doc/invoke.texi (-mdsp): Document new option.
7549
7550 2005-07-22  DJ Delorie  <dj@redhat.com>
7551
7552         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
7553         to warning calls.
7554         * tree-inline.c (inlinable_function_p): Likewise.
7555
7556 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
7557
7558         PR debug/21828
7559         * toplev.c (check_global_declarations): Do not mark undefined
7560         variables as DECL_IGNORED_P.
7561         * varasm.c (first_global_object_name): GTY it.
7562         (weak_global_object_name): Likewise.
7563         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
7564         a string to go into {weak,first}_global_object_name.
7565
7566 2005-07-22  DJ Delorie  <dj@redhat.com>
7567
7568         * c-format.c (check_function_format): Change warning control
7569         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
7570
7571 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
7572
7573         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
7574         &PTR->FLD a dereference of PTR.
7575         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
7576         a potential dereference of PTR.
7577
7578 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
7579
7580         PR rtl-optimization/20370
7581         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
7582         call allocate_reg_info if necessary.
7583
7584         PR rtl-optimization/21848
7585         * calls.c (emit_library_call_value_1): For const functions, add
7586         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
7587
7588         PR rtl-optimization/22445
7589         * cselib.c (target.h): Include.
7590         (rtx_equal_for_cselib_p): Allow commutative matches.
7591         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
7592         Remove MODE parameter.  Changed all callers.
7593
7594         PR rtl-optimization/22258
7595         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
7596         New functions.
7597         (try_combine): Use likely_spilled_retval_p.
7598
7599 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
7600
7601         * config.gcc: Add crx-elf support.
7602
7603         * doc/contrib.texi: Mention crx.
7604         * doc/extend.texi: Document crx extensions.
7605         * doc/install.texi: Document crx install.
7606         * doc/invoke.texi: Document crx options.
7607         * doc/md.texi: Document crx constraints.
7608
7609         * config/crx/crx-protos.h: New file.
7610         * config/crx/crx.c: New file.
7611         * config/crx/crx.h: New file.
7612         * config/crx/crx.md: New file.
7613         * config/crx/crx.opt: New file.
7614         * config/crx/t-crx: New file.
7615
7616 2005-07-22  Manfred Hollstein  <mh@suse.com>
7617
7618         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
7619         warnings.
7620         (int_add_graph_edge): Likewise.
7621         (collapse_nodes): Likewise.
7622         (process_unification_queue): Likewise.
7623
7624 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7625             Laurent GUERBY  <laurent@guerby.net>
7626
7627         PR tree-optimization/22336
7628         * function.c (record_block_change): Check for
7629         cfun->ib_boundaries_block.
7630
7631 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
7632
7633         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
7634         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
7635
7636 2005-07-21  DJ Delorie  <dj@redhat.com>
7637
7638         * toplev.c (warn_deprecated_use): Add warning control to warning
7639         call.
7640         * c-typeck.c (parser_build_binary_op): Likewise.
7641         (c_finish_if_stmt): Likewise.
7642         * c-common.c (check_function_sentinel): Likewise.
7643         (check_nonnull_arg): Likewise.
7644
7645 2005-07-21  Richard Henderson  <rth@redhat.com>
7646
7647         PR tree-opt/22504
7648         * tree-complex.c (complex_ssa_name_components): New.
7649         (cvc_lookup): Allow entry not found.
7650         (create_components): Remove.
7651         (create_one_component_var, get_component_var): New.
7652         (get_component_ssa_name, set_component_ssa_name): New.
7653         (extract_component): Use get_component_ssa_name.
7654         (update_complex_components): Use set_component_ssa_name.
7655         (update_complex_components_on_edge): Likewise.
7656         (update_phi_components): Create new PHI nodes directly, instead
7657         of adding insns to edges.
7658         (tree_lower_complex): Allocate and free complex_variable_components
7659         and complex_ssa_name_components here.
7660
7661 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
7662
7663         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
7664         revert to returning false.
7665
7666 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
7667
7668         PR target/21149
7669         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
7670
7671 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
7672
7673         PR target/22576
7674         * config/i386/i386.md (cmpxf): Change operand constraints
7675         to "nonmemory_operand".
7676
7677 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
7678
7679         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
7680
7681 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
7682
7683         PR middle-end/21180
7684         * fold-const.c (fold_build1): Add checksum for the operands.
7685         (fold_build2): Likewise.
7686         (fold_build3): Likewise.
7687
7688 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
7689
7690         PR middle-end/19055
7691         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
7692
7693 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
7694
7695         * common.opt (-fforward-propagate): Committed by mistake,
7696         removed.
7697
7698 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7699
7700         * reg-stack.c: Fix comment typo(s).
7701         * tree-ssa-operands.c: Likewise.
7702         * tree-vectorizer: Likewise.
7703
7704 2005-07-21  Nick Clifton  <nickc@redhat.com>
7705
7706         * config/sh/symbian.c: Replace C++ style line comments with C
7707         style line comments.
7708         (symbian_add_attribute): Do not use a ? operator on the LHS of
7709         an assignment.
7710         (sh_symbian_handle_dll_attribute): Change the type of the
7711         method vector to "VEC(tree,gc)*" and use vector accessor
7712         macros to walk over the elements.
7713         (symbian_export_vtable_and_rtti_p): Likewise.
7714         (symbian_class_needs_attribute_p): Likewise.
7715
7716 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
7717
7718         PR target/22085
7719         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
7720         initialize targetm.resolve_overloaded_builtin here.
7721         (altivec_expand_overloaded_builtin): Make it non-static.
7722         * config/rs6000/rs6000-protos.h
7723         (altivec_expand_overloaded_builtin): New prototype.
7724         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
7725         targetm.resolve_overloaded_builtin here.
7726         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
7727
7728 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
7729             Zdenek Dvorak  <dvorakz@suse.cz>
7730
7731         PR tree-optimization/19210
7732         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
7733         New.
7734         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
7735         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
7736         rely on unproven assumptions.
7737         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
7738         * tree-flow.h (number_of_iterations_exit): Add final parameter.
7739         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
7740         to number_of_iterations_exit.
7741         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
7742         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
7743         * tree-ssa-loop-niter.c (find_loop_niter,
7744         estimate_numbers_of_iterations_loop): Likewise.
7745         (number_of_iterations_exit): Honor the new options.
7746         * doc/invoke.texi (Wunsafe-loop-optimizations,
7747         funsafe-loop-optimizations): Document them.
7748
7749 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
7750
7751         PR rtl-optimization/22167
7752         * gcse.c (hoist_code): Fix hoist_exprs[] check.
7753
7754 2005-07-20  Adam Nemet  <anemet@lnxw.com>
7755
7756         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
7757         __do_global_dtors_aux longcall.
7758
7759 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
7760
7761         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
7762         (old_special_pred_table): Don't reference
7763         SPECIAL_MODE_PREDICATES.
7764         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
7765         * config/arc/arc.h: Don't mention PREDICATE_CODES.
7766         * config/sh/predicates.h: Don't mention
7767         SPECIAL_MODE_PREDICATES.
7768         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
7769         Remove.
7770
7771 2005-07-20  DJ Delorie  <dj@redhat.com>
7772
7773         * config.gcc: Add m32c-elf support.
7774
7775         * doc/contrib.texi: Mention m32c.
7776         * doc/extend.texi: Document m32c extensions.
7777         * doc/install.texi: Mention m32c.
7778         * doc/invoke.texi: Document m32c options.
7779         * doc/md.texi: Document m32c constraints.
7780
7781         * config/m32c/addsub.md: New file.
7782         * config/m32c/bitops.md: New file.
7783         * config/m32c/cond.md: New file.
7784         * config/m32c/jump.md: New file.
7785         * config/m32c/m32c-lib1.S: New file.
7786         * config/m32c/m32c-lib2.c: New file.
7787         * config/m32c/m32c-modes.def: New file.
7788         * config/m32c/m32c-pragma.c: New file.
7789         * config/m32c/m32c-protos.h: New file.
7790         * config/m32c/m32c.abi: New file.
7791         * config/m32c/m32c.c: New file.
7792         * config/m32c/m32c.h: New file.
7793         * config/m32c/m32c.md: New file.
7794         * config/m32c/m32c.opt: New file.
7795         * config/m32c/minmax.md: New file.
7796         * config/m32c/mov.md: New file.
7797         * config/m32c/muldiv.md: New file.
7798         * config/m32c/predicates.md: New file.
7799         * config/m32c/prologue.md: New file.
7800         * config/m32c/shift.md: New file.
7801         * config/m32c/t-m32c: New file.
7802
7803 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7804
7805         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
7806         (stack_protect_set, stack_protect_test): New expanders.
7807         (stack_protect_set_si, stack_protect_set_si_media,
7808         stack_protect_set_di_media, stack_protect_test_si,
7809         stack_protect_test_si_media, stack_protect_test_di_media):
7810         New insns.
7811
7812 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
7813
7814         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
7815
7816 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
7817
7818         * tree.h (tree_expr_nonzero_p): Export.
7819         * fold-const.c (tree_expr_nonzero_p): Likewise.
7820         Return true for CALL_EXPRs that are alloca calls.
7821         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
7822         against zero.
7823         * tree-flow.h (expr_computes_nonzero): Remove.
7824         * tree-vrp.c (expr_computes_nonzero): Remove.
7825         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
7826         (extract_range_from_unary_expr): Likewise.
7827         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
7828         tree_expr_nonzero_p.
7829
7830 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
7831
7832         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
7833         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
7834         extra arg "picreg" and use it instead of pic_offset_table_rtx.
7835         All callers changed.
7836         (frame_related_constant_load): New arg "related" which controls
7837         setting of RTX_FRAME_RELATED_P.  All callers changed.
7838         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
7839         (bfin_expand_prologue): Add stack limit checking.
7840         * config/bfin/bfin.md (trapifcc): New pattern.
7841
7842         * config/bfin/bfin.c: Include "langhooks.h".
7843         (def_builtin): Go through lang_hooks to call builtin_function.
7844
7845         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
7846         * config/bfin/predicates.md (symbol_ref_operand): New.
7847         (call_insn_operand): Delete.  All callers changed to use
7848         register_no_elim_operand.
7849         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
7850         call_cookie field.
7851         (function_arg): Use it to generate the call's operand 2.
7852         (bfin_longcall_p): New function.
7853         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
7854         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
7855         determine if the address needs to be in a REG.
7856         (bfin_handle_longcall_attribute): New function.
7857         (bfin_attribute_table): Add "longcall" and "shortcall".
7858         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
7859         (CUMULATIVE_ARGS): New member call_cookie.
7860         (PREDICATE_CODES): Add symbol_ref_operand.
7861         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
7862         extra USE to the pattern.
7863         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
7864         New patterns, split off call_insn, sibcall_insn, call_value_insn and
7865         sibcall_value_insn; now the new patterns handle direct calls and the
7866         old ones indirect calls.
7867         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
7868
7869 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
7870
7871         * doc/trouble.texi: Update section on handling of empty loops.
7872
7873 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
7874
7875         * config.gcc: Remove support for sparc-*-openbsd*,
7876         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
7877         ns32k-*-netbsd*.
7878         * config.host: Remove support for i860-*-sysv4* as a host.
7879         * config/i860/*, config/ip2k/*, config/ns32k/*,
7880         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
7881         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
7882         mention obsolete ports.
7883
7884 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7885
7886         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
7887         soft frame pointer.
7888         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
7889         of frame_pointer_rtx.
7890         (sh_expand_epilogue): Likewise.
7891         (sh_set_return_address): Likewise.
7892         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
7893         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
7894         offsets from FRAME_POINTER_REGNUM.
7895         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
7896         (sh_register_names): Add initializer for sfp.
7897         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
7898         (VALID_REGISTER_P): Likewise.
7899         (FIRST_PSEUDO_REGISTER): Update.
7900         (DWARF_FRAME_REGISTERS): Define.
7901         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
7902         (HARD_FRAME_POINTER_REGNUM): Define.
7903         (FRAME_POINTER_REGNUM): Redefine.
7904         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
7905         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
7906         from FRAME_POINTER_REGNUM.
7907         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
7908         FRAME_POINTER_REGNUM.
7909         (REG_CLASS_CONTENTS): Add sfp.
7910         (REG_ALLOC_ORDER): Likewise.
7911         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
7912         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
7913         of frame_pointer_rtx.
7914         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7915
7916 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
7917
7918         * fold-const.c (tree_expr_nonnegative_p): Only return true for
7919         ABS_EXPR when flag_wrapv is false because of INT_MIN.
7920         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
7921         of an ABS_EXPR.
7922         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
7923         ABS_EXPR<x>.
7924
7925 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
7926
7927         Make CONSTRUCTOR use VEC to store initializers.
7928         * c-common.c (complete_array_type): Update to cope with VEC in
7929         CONSTRUCTOR_ELTS.
7930         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
7931         (pp_c_constructor_elts): New function.
7932         * c-pretty-print.h (pp_c_constructor_elts): Declare.
7933         * c-typeck.c (build_function_call, build_c_cast, digest_init,
7934         struct constructor_stack, struct initializer_stack,
7935         constructor_elements, push_init_level, pop_init_level,
7936         add_pending_init, find_init_member, output_init_element): Update to
7937         cope with VEC in CONSTRUCTOR_ELTS.
7938         * coverage.c (build_fn_info_value, build_ctr_info_value,
7939         build_gcov_info): Likewise.
7940         * expr.c (categorize_ctor_elements_1, store_constructor,
7941         expand_expr_real_1): Likewise.
7942         * fold-const.c (fold_ternary): Likewise.
7943         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
7944         gimplify_init_constructor, gimplify_expr): Likewise.
7945         * tree-dump.c (dequeue_and_dump): Likewise.
7946         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
7947         node.
7948         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
7949         CONSTRUCTOR_ELTS.
7950         * tree-sra.c (generate_element_init_1): Likewise.
7951         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
7952         * tree-ssa-operands.c (get_expr_operands): Likewise.
7953         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7954         * tree-vect-transform.c (vect_get_vec_def_for_operand):
7955         (get_initial_def_for_reduction): Likewise.
7956         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
7957         value handle in annotations.
7958         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
7959         tree_node_structure): Add support for constr_kind.
7960         (build_vector_from_ctor, build_constructor_single,
7961         build_constructor_from_list): New functions.
7962         (build_constructor): Update to take a VEC instead of a TREE_LIST.
7963         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
7964         Update to cope with VEC in CONSTRUCTOR_ELTS.
7965         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
7966         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
7967         CONSTRUCTOR_APPEND_ELT): New macros.
7968         (struct constructor_elt, struct tree_constructor): New data types.
7969         (union tree_node): Add tree_constructor field.
7970         * treestruct.def: Define TS_CONSTRUCTOR.
7971         * varasm.c (const_hash_1, compare_constant, copy_constant,
7972         compute_reloc_for_constant, output_addressed_constants,
7973         initializer_constant_valid_p, output_constant,
7974         array_size_for_constructor, output_constructor): Update to cope with
7975         VEC in CONSTRUCTOR_ELTS.
7976         * vec.h (VEC_empty, VEC_copy): New macros.
7977
7978 2005-07-19  Devang Patel  <dpatel@apple.com>
7979
7980         * dbxout.c (dbxout_type): Check Objective-C++ lang.
7981
7982 2005-07-19  Richard Henderson  <rth@redhat.com>
7983
7984         PR tree-opt/22278
7985         * gimplify.c (gimplify_expr): Use main variant type for the temp
7986         destination for a discarded volatile read.
7987         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
7988         casts between non-void types that change volatility.
7989
7990 2005-07-15  DJ Delorie  <dj@redhat.com>
7991
7992         * toplev.h: Add comment about the first parameter for warning().
7993         * errors.h: Likewise.
7994
7995         * c.opt (Wpragmas): New.
7996         * doc/invoke.texi: Document it.
7997
7998         * function.c (do_warn_unused_parameter): Add warning control to
7999         warning call.
8000         * c-decl.c (warn_if_shadowing): Likewise.
8001         * c-lex.c (cb_def_pragma): Likewise.
8002         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
8003         (pop_alignment): Likewise.
8004         (handle_pragma_pack): Likewise.
8005         (apply_pragma_weak): Likewise.
8006         (handle_pragma_weak): Likewise.
8007         (handle_pragma_redefine_extname): Likewise.
8008         (add_to_renaming_pragma_list): Likewise.
8009         (handle_pragma_extern_prefix): Likewise.
8010         (maybe_apply_renaming_pragma): Likewise.
8011         (handle_pragma_visibility): Likewise.
8012
8013         * config/c4x/c4x-c.c (BAD): Likewise.
8014         (c4x_parse_pragma): Likewise.
8015         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
8016         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
8017         (rs6000_pragma_longcall): Likewise.
8018         * config/v850/v850-c.c (pop_data_area): Likewise.
8019         (ghs_pragma_section): Likewise.
8020         (ghs_pragma_section): Likewise.
8021         (ghs_pragma_interrupt): Likewise.
8022         (ghs_pragma_starttda): Likewise.
8023         (ghs_pragma_startsda): Likewise.
8024         (ghs_pragma_startzda): Likewise.
8025         (ghs_pragma_endtda): Likewise.
8026         (ghs_pragma_endsda): Likewise.
8027         (ghs_pragma_endzda): Likewise.
8028
8029 2005-07-19  Danny Berlin <dberlin@dberlin.org>
8030             Kenneth Zadeck <zadeck@naturalbridge.com>
8031
8032         * Makefile.in: Removed tree-promote-statics.c
8033         * tree-promote-statics.c: Removed.
8034         * common.opt: Removed flag-promote-statics.
8035         * opts.c: Ditto.
8036         * passes.c: Removed tree-promote-statics pass.
8037         * tree-pass.h: Ditto.
8038         * timevar.def: Removed TV_PROMOTE_STATICS.
8039
8040
8041 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
8042
8043         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
8044         and *-*-freebsd9.
8045         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
8046
8047 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8048
8049         PR c/22476
8050         * c-common.c (check_function_arguments): Call
8051         'check_function_format' if either -Wformat or
8052         -Wmissing-format-attribute are specified.
8053         * c-format.c (check_function_format): Check -Wformat before
8054         calling 'check_format_info'.
8055         * c-opts.c (c_common_post_options): Don't warn for
8056         -Wmissing-format-attribute without -Wformat.
8057         * c-typeck.c (convert_for_assignment): Detect additional cases for
8058         -Wmissing-format-attribute.
8059         * doc/invoke.texi (-Wmissing-format-attribute): Document new
8060         behavior.
8061
8062 2005-07-19  Richard Guenther  <rguenther@suse.de>
8063
8064         * config/i386/i386.md (lrint<mode>2): Use temporary
8065         instead of clobbering non-existent memory.
8066
8067 2005-07-19  Nick Clifton  <nickc@redhat.com>
8068
8069         * config/avr/avr.c (legitimate_address_p): Fix debugging print
8070         statement to avoid displaying ASCII control characters.
8071
8072 2005-07-19  Ben Elliston  <bje@au.ibm.com>
8073
8074         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
8075         * cfganal.c (find_edge_index): Ditto.
8076         * combine.c (combine_instructions): Ditto.
8077         * ddg.c (create_scc): Ditto.
8078         (find_successors): Ditto.
8079         (find_predecessors): Ditto.
8080         (find_nodes_on_paths): Ditto.
8081         (longest_simple_path): Ditto.
8082         * flow.c (update_life_info): Ditto.
8083         (count_or_remove_death_notes): Ditto.
8084         (clear_log_links): Ditto.
8085         * modulo-sched.c (generate_reg_moves): Ditto.
8086         (find_max_asap): Ditto.
8087         (find_max_hv_min_mob): Ditto.
8088         (find_max_dv_min_mob): Ditto.
8089         * sbitmap.c (sbitmap_first_set_bit): Ditto.
8090         * sched-rgn.c (extract_edgelst): Ditto.
8091         * tree-into-ssa.c (prepare_names_to_update): Ditto.
8092         (dump_update_ssa): Ditto.
8093         (ssa_names_to_replace) Ditto.
8094         (switch_virtuals_to_full_rewrite): Ditto.
8095         (update_ssa): Ditto.
8096         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
8097
8098 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
8099
8100         Fix PR tree-optimization/22483
8101
8102         * tree-complex.c (create_components): Use
8103         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
8104         * tree-flow-inline.h (fill_referenced_var_vec): New function.
8105         * tree-flow.h (safe_referenced_var_iterator): New structure.
8106         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
8107         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
8108         safe_referenced_var iterator.
8109         (add_type_alias): Ditto.
8110
8111 2005-07-19  Steven Bosscher  <stevenb@suse.de>
8112
8113         * loop-init.c (rest_of_handle_loop2): Remove.
8114         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
8115         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
8116         (pass_rtl_loop_init, pass_rtl_loop_done,
8117         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
8118         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
8119         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
8120         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
8121         pass_tree_loop_done, and pass_tree_unswitch.
8122         (gate_loop): Rename to gate_tree_loop.
8123         * passes.c (init_optimization_passes): Update for renamed tree
8124         loop passes.  Add the new loop2 passes as subpasses of loop2.
8125         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
8126         Update for the renamed tree loop passes.
8127
8128 2005-07-18  Ian Lance Taylor  <ian@airs.com>
8129
8130         PR middle-end/22057
8131         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
8132         blocks when optimizing.
8133
8134 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
8135
8136         * common.opt (frename-registers): Initialize to 2.
8137         (fweb): Ditto.
8138         (fgcse-after-reload): Ditto.
8139         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
8140         (process_options): Only change flag_web, flag_rename_registers,
8141         and flag_rerun_cse_after_loop if not explicitly set by user.
8142
8143 2005-07-18  Jan Beulich  <jbeulich@novell.com>
8144
8145         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
8146         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
8147         in 64-bit mode the same as DImode in 32-bit mode.
8148         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
8149         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
8150         mode. Add new mode parameter.
8151         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
8152         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
8153         x86_64_shift_adj): New expanders.
8154         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
8155         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
8156         insns.
8157         Respective new splitters. Use renamed shift splitter helpers in 32-bit
8158         DImode shift splitters.
8159         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
8160         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
8161         mode parameter.
8162
8163 2005-07-18  Jan Beulich  <jbeulich@novell.com>
8164
8165         * i386.md (movdi_extzv_1): New.
8166         (zero_extendhidi2): Combine alternatives and never force use of
8167         REX64 prefix.
8168         (zero_extendqidi2): Likewise. Don't restrict input selection.
8169
8170 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
8171
8172         Fix PR tree-optimization/22531
8173         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
8174          moment.
8175
8176 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
8177
8178         * tree-promote-statics.c (pass_promote_statics): Change dump file
8179          name.
8180
8181 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
8182
8183         * tree-optimize.c (init_tree_optimization_passes): Add
8184         pass_eliminate_useless_stores pass.
8185         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
8186         * tree-ssa-pre.c (is_copy_stmt): New function.
8187         (follow_copies_till_vuse): Ditto.
8188         (do_eustores): Ditto.
8189         (gate_eustores): Ditto.
8190
8191 2005-07-16  Richard Henderson  <rth@redhat.com>
8192
8193         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
8194
8195 2005-07-16 Danny Berlin <dberlin@dberlin.org>
8196            Kenneth Zadeck <zadeck@naturalbridge.com>
8197
8198         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
8199         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
8200         ipa-type-escape.h, tree-promote-statics.c
8201         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
8202         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
8203         tree-promote-statics.c: new files.
8204         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
8205         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
8206         int nonlocal_set_p, mark_constant_function): Deleted.
8207         (rest_of_handle_cfg): Removed call to mark_constant_function.
8208         (nonoverlapping_component_refs_p): Added calls to support
8209         type based aliasing.
8210         * tree-ssa-alias.c (may_alias_p,
8211         compute_flow_insensitive_aliasing): Ditto.
8212         * calls.c (flags_from_decl_or_type): Removed reference to
8213         cgraph_rtl_info.
8214         * c-typeck.c (convert_arguments): Make builtins tolerant of having
8215         too many arguments.  This is necessary for Spec 2000.
8216         * cgraph.h (const_function, pure_function): Removed.
8217         * common.opt: Added "fipa-pure-const", "fipa-reference",
8218         "fipa-type-escape", and "ftree-promote-static".
8219         * opts.c: Ditto.
8220         * passes.c: Added ipa and tree-promote-statics passes.
8221         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
8222         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
8223         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
8224         * tree-flow.h: Added exposed sra calls and addition of
8225         reference_vars_info field for FUNCTION_DECLS.
8226         * tree-pass.h: Added passes.
8227         * tree-sra.c: (sra_init_cache): New function.
8228         (sra_insert_before, sra_insert_after) Made public.
8229         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
8230         and made public.
8231         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
8232         aliasing. (may_alias_p): Added code to use type escape analysis to
8233         improve alias sets.
8234         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
8235         code to prune clobbers of static variables based on information
8236         produced in ipa-reference pass.  Changed call clobbering so that
8237         statics are not marked as clobbered if the call does not clobber
8238         them.
8239
8240 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
8241
8242         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
8243         too.
8244
8245 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
8246
8247         * doc/install.texi (*-*-solaris2*): Document recommended version
8248         of GNU binutils and mention GNU linker problem on Solaris 10.
8249
8250 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
8251
8252         PR c/22421
8253         * c-decl.c (c_build_bitfield_integer_type): New function.
8254         (finish_struct): Call it.
8255         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
8256
8257 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8258
8259         * c-typeck.c (digest_init): Call 'convert_for_assignment'
8260         before returning.
8261
8262 2005-07-16  Jan Hubicka  <jh@suse.cz>
8263
8264         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
8265         (scale_bbs_frequencies_int): Watch roundoff errors.
8266         * predict.c (return_prediction): Initialize return_stmt.
8267
8268 2005-07-16  Jan Hubicka  <jh@suse.cz>
8269
8270         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
8271         after RTL profiling.
8272
8273 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
8274
8275         PR middle-end/22398
8276         * fold-const.c (build_range_check): Convert high/low to etype
8277         if we are only comparing against exp.
8278
8279 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
8280
8281         Fix PR tree-optimization/22376
8282         * tree-ssa-structalias.c (build_constraint_graph): We really meant
8283         special var here.
8284         (need_to_solve): New function.
8285         (compute_points_to_sets): Use it.
8286
8287 2005-07-15  Jan Hubicka  <jh@suse.cz>
8288
8289         * cfg.c (update_bb_profile_for_threading): More diagnostic.
8290         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
8291
8292 2005-07-15  Richard Guenther  <rguenther@suse.de>
8293
8294         * c-common.c (handle_flatten_attribute): New function.
8295         Add flatten function attribute.
8296         * doc/extend.texi: Document flatten function attribute.
8297         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
8298         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
8299         New functions.
8300         (cgraph_decide_inlining): Handle functions with flatten
8301         attribute.
8302
8303 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
8304
8305         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
8306         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
8307         UNSPEC_XCHG, UNSPEC_AND): New.
8308         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
8309         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
8310         * config/rs6000/sync.md (FETCHOP): New code macro.
8311         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
8312         New code attrs.
8313         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
8314         (sync_compare_and_swap<mode>): Same.
8315         (sync_lock_test_and_set<mode>): Same.
8316         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
8317         for QImode and HImode, and not PPC405.
8318         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
8319         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
8320         (sync_<fetchop>{si,di}_internal): New.
8321         (sync_nand{si,di}_internal): New.
8322         (sync_old_<fetchop>{si,di}_internal): New.
8323         (sync_old_nand{si,di}_internal): New
8324         (sync_new_<fetchop>{si,di}_internal): New.
8325         (sync_new_nand{si,di}_internal): New.
8326         (atomic_and{si,di}): New.
8327         (sync_new_nand{si,di}_internal): New.
8328         (atomic_and{si,di}): New.
8329         (sync_add<mode>_internal): Delete.
8330         (sync_addshort_internal): Use unspec instead of unspec_volatile.
8331         (sync_sub<mode>_internal): Delte.
8332         (sync_subshort_internal): New.
8333         (sync_andsi_internal): Use unspec instead of unspec_volatile.
8334         (sync_anddi_internal): Delete.
8335         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
8336         (sync_booldi_internal): Delete.
8337         (sync_boolc<mode>_internal): Delete.
8338         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
8339         (sync_boolc<mode>_internal2): Delete.
8340         (sync_boolcc<mode>_internal): Delete.
8341         (isync, lwsync): Use unspec instead of unspec_volatile.
8342         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
8343         Revert UNSPEC_VOLATILE.
8344         (rs6000_split_atomic_op): New.
8345         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
8346
8347 2005-07-14  Eric Christopher  <echristo@redhat.com>
8348
8349         * config/mips/mips.c (mips_canonicalize_comparison): Cast
8350         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
8351
8352 2005-07-14  Eric Christopher  <echristo@redhat.com>
8353
8354         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
8355
8356 2005-07-14  Steven Bosscher  <stevenb@suse.de>
8357
8358         PR tree-optimization/22230
8359         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
8360         the computation of the four cross productions for "range op range".
8361
8362 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
8363             Ulrich Weigand  <uweigand@de.ibm.com>
8364
8365         PR target/20126
8366         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
8367         in some insn.
8368
8369 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
8370
8371         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
8372
8373 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
8374
8375         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
8376
8377 2005-07-14  Richard Guenther  <rguenther@suse.de>
8378
8379         PR middle-end/22347
8380         * config/i386/i386-protos.h (ix86_function_value): Change
8381         prototype to match new target hook.
8382         * config/i386/i386.c (ix86_value_regno): Change prototype
8383         to take extra type argument.
8384         (TARGET_FUNCTION_VALUE): Define.
8385         (ix86_function_ok_for_sibcall): Pass extra argument to
8386         ix86_value_regno, check return slot rtx for exact match.
8387         (ix86_function_value): Take extra parameter.  Dispatch to
8388         ix86_value_regno with fndecl/fntype as provided.
8389         (ix86_value_regno): Handle extra type argument.
8390         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
8391
8392         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
8393         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
8394         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
8395         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
8396         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
8397
8398 2005-07-14  Richard Guenther  <rguenther@suse.de>
8399
8400         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
8401         * calls.c (expand_call): Pass fntype to hard_function_value.
8402         (emit_library_call_value_1): Likewise.
8403         * explow.c: Include target.h.
8404         (hard_function_value): Take extra argument, the fntype.
8405         Use new target hook for function_value.
8406         * expr.h (hard_function_value): Change prototype.
8407         * function.c (aggregate_value_p): Pass 0 as fntype to
8408         hard_function_value.
8409         (assign_parms): Use new target hook for function_value.
8410         Pass 0 as fntype to hard_function_value.
8411         (expand_function_end): Likewise.
8412         * reg-stack.c: Include target.h.
8413         (stack_result): Use new target hook for function_value.
8414         * target-def.h: New target hook function_value.
8415         * target.h: Likewise.
8416         * targhooks.c (default_function_value): New function.
8417         * targhooks.h (default_function_value): Declare.
8418
8419 2005-07-13  Ian Lance Taylor  <ian@airs.com>
8420
8421         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8422
8423 2005-07-14  Jan Hubicka  <jh@suse.cz>
8424
8425         * tree-dfa.c (dump_variable): Use default_def function.
8426         * tree-ssa-alias.c (dump_points_to_info): Likewise.
8427         * tree-ssa.c (verify_use): Likewise.
8428         * tree-ssanames.c (release_ssa_name): Likewise.
8429         * tree-tailcall.c (eliminate_tail_call): Likewise.
8430         (tree_optimize_tail_calls_1): Likewise.
8431         * tree-vrp.c (get_value_range): Likewise.
8432
8433 2005-07-14  Ben Elliston  <bje@au.ibm.com>
8434
8435         * gcc.c (main): Compare language[0] with '*' when iterating over
8436         the infiles.
8437
8438 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
8439
8440         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
8441         "s390_emit_compare".  Add handling of CCZ1mode.
8442         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
8443         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
8444         checking.
8445         (s390_branch_condition_mask): Add CCZ1mode handling.
8446         * config/s390/s390.md: ("seq", "*seq"): New pattern.
8447         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
8448         Use CCZ1mode instead of CCZmode.
8449         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
8450
8451 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
8452
8453         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
8454         pattern.
8455         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
8456
8457 2005-07-13  Eric Christopher  <echristo@redhat.com>
8458
8459         * config/mips/mips.c (mips_canonicalize_comparison): New.
8460         (mips_emit_int_relational): Use.
8461
8462 2005-07-13  Eric Christopher  <echristo@redhat.com>
8463
8464         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
8465         static extra parts.
8466         * config/s390/s390.md: Include tpf.md. Move tpf specific
8467         patterns...
8468         * config/s390/tpf.md: To here.
8469         * config/s390/s390.opt: Move tpf specific options...
8470         * config/s390/tpf.opt: to here. Add mmain option.
8471         * config/s390/tpf-unwind.h: Remove unnecessary defines.
8472         * config/s390/tpf.h: Rewrite.
8473
8474 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8475
8476         * doc/tm.texi: Remove @xref{Cross-profiling}.
8477
8478 2005-07-13  Jeff Law  <law@redhat.com>
8479
8480         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
8481         expressions, test their _DECL operands for pointer equality rather
8482         than using operand_equal_p.
8483
8484 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8485
8486         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
8487         (TARGET_POSIX_IO): This.
8488         * config/darwin.h: Likewise.
8489         * config/freebsd.h: Likewise.
8490         * config/linux.h: Likewise.
8491         * config/lynx.h: Likewise.
8492         * config/netbsd.h: Likewise.
8493         * config/rs6000/linux64.h: Likewise.
8494         * config/rs6000/linux.h: Likewise.
8495         * config/s390/tpf.h: Likewise.
8496         * config/sh/embed-elf.h: Likewise.
8497         * config/sparc/linux64.h: Likewise.
8498         * config/sparc/linux.h: Likewise.
8499         * config/svr4.h: Likewise.
8500         * gcov-io.h: Likewise.
8501
8502         * doc/tm.texi: Updated.
8503
8504         * libgcov.c (create_file_directory): Defined only if
8505         TARGET_POSIX_IO is defined.
8506         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
8507         is defined.
8508
8509 2005-07-13  Jan Hubicka  <jh@suse.cz>
8510
8511         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
8512
8513 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
8514
8515         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
8516         structure as argument.
8517
8518 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
8519
8520         PR tree-optimization/21921
8521         * tree-iterator.c (tsi_link_before): Support the case when
8522         tsi_end_p (tsi) == true.
8523
8524 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8525
8526         PR tree-optimization/22442
8527         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
8528         correctly.
8529
8530 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8531
8532         PR rtl-optimization/20376
8533         * toplev.c (process_options): Enable -fweb and -frename-registers when
8534         unrolling.
8535         * doc/invoke.texi: Update the information about when -fweb and
8536         -frename-registers are enabled.
8537
8538 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
8539
8540         PR tree-opt/21840
8541         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
8542         if *rhs_p is not a SSA_NAME.
8543
8544 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
8545
8546         Fix PR tree-optimization/22422
8547         * tree-ssa-structalias.c (struct variable_info): Add flag for
8548         special vars.
8549         (get_varinfo): Now a static function.
8550         (new_varinfo): init has_union and is_special_var to false.
8551         (solution_set_add): Check has_union.
8552         (do_da_constraint): Move temporary variable so it gets reset
8553         properly.
8554         Also check for special variable.
8555         (do_ds_constraint): Ditto.
8556         (do_sd_constraint): Ditto.
8557         (do_structure_copy): Check for special variable.
8558         (find_func_aliases): Ditto.
8559         (init_base_vars): Set special vars properly.
8560
8561 2005-07-13  Jan Hubicka  <jh@suse.cz>
8562
8563         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
8564         do unit-at-a-time.
8565
8566         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
8567         (get_expr_operands): Fix thinko wrt flags and subvars.
8568
8569         PR tree-optimize/22379
8570         * tree-inline.c (expand_call_inline): Do not output sorry in early
8571         inlining.
8572
8573 2005-07-12  Dale Johannesen  <dalej@apple.com>
8574
8575         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
8576
8577 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
8578
8579         PR bootstrap/21704
8580         * host-linux.h: Include limits.h.
8581
8582 2005-07-12  Dale Johannesen  <dalej@apple.com>
8583
8584         * expr.c (compress_float_constant):  Add cost check.
8585         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
8586
8587 2005-07-12  Dale Johannesen  <dalej@apple.com>
8588
8589         * gcc.target/i386/compress-float-sse.c:  New.
8590         * gcc.target/i386/compress-float-sse-pic.c:  New.
8591         * gcc.target/i386/compress-float-387.c:  New.
8592         * gcc.target/i386/compress-float-387-pic.c:  New.
8593         * gcc.dg/compress-float-ppc.c:  New.
8594         * gcc.dg/compress-float-ppc-pic.c:  New.
8595
8596 2005-07-12  Eric Christopher  <echristo@redhat.com>
8597
8598         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
8599         static extra parts.
8600         * config/s390/s390.md: Include tpf.md. Move tpf specific
8601         patterns...
8602         * config/s390/tpf.md: To here.
8603         * config/s390/s390.opt: Move tpf specific options...
8604         * config/s390/tpf.opt: to here. Add mmain option.
8605         * config/s390/tpf-unwind.h: Remove unnecessary defines.
8606         * config/s390/tpf.h: Rewrite.
8607
8608 2005-07-12  Eric Christopher  <echristo@redhat.com>
8609
8610         * gcc.c (struct infile): Update comment for language.
8611         (main): Rewrite input file resetting code.
8612
8613 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
8614
8615         PR tree-opt/22335
8616         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
8617         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
8618         (lookup_avail_expr): Use constant_boolean_node instead
8619         of boolean_false_node/boolean_true_node.
8620
8621 2005-07-12  Ben Elliston  <bje@au.ibm.com>
8622
8623         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
8624         and use it when printing num_edges.
8625
8626 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
8627
8628         * doc/extend.texi (Blackfin Built-in Functions): New section.
8629         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
8630         @opindex.
8631
8632 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
8633
8634         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
8635         s/cmpstrsi/cmpstrnsi
8636         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
8637         'cmpstrnsi'.
8638         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
8639         (init_optabs): Initialize cmpstrn_optab.
8640         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
8641         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
8642         * expr.c: (enum insn_code cmpstrn_optab): Declare.
8643         * config/i386/i386.md: s/cmpstr/cmpstrn
8644         * config/c4x/c4x.md: s/cmpstr/cmpstrn
8645         * doc/md.texi: Update documentation.
8646
8647 2005-07-11  Richard Henderson  <rth@redhat.com>
8648
8649         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
8650         build_va_arg_indirect_ref.
8651         (alpha_gimplify_va_arg): Likewise.
8652         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8653         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
8654         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
8655         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8656         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
8657         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
8658         Likewise.
8659         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
8660
8661 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8662
8663         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
8664         * passes.c (init_optimization_passes): Add pass_empty_loop.
8665         * tree-pass.h (pass_empty_loop): Declare.
8666         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
8667         try_remove_empty_loop, remove_empty_loops): New functions.
8668         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
8669         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
8670
8671 2005-07-12  Peter Barada  <peter@the-baradas.com>
8672
8673         PR middle-end/16719
8674         PR middle-end/18421
8675         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
8676         in address registers.
8677         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
8678         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
8679         alternative of addsi3_5200.
8680
8681 2005-07-11  Ian Lance Taylor  <ian@airs.com>
8682
8683         * config/mips/mips.md (ffs<mode>2): Remove.
8684
8685 2005-07-11  Ian Lance Taylor  <ian@airs.com>
8686
8687         * doc/tree-ssa.texi (Cleanups): Improve description of
8688         TRY_FINALLY_EXPR.
8689         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
8690
8691 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
8692
8693         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
8694         * tree.h (DECL_ARGUMENT_FLD): New macro.
8695
8696 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
8697
8698         Fix PR tree-optimization/22404
8699
8700         * tree-ssa-structalias.c (create_variable_info_for): Use
8701         correct offset.
8702
8703 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8704
8705         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
8706         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
8707         for second comparison operand.
8708         * config/bfin/predicates.md (reg_or_const_int_operand): New.
8709
8710         * config/bfin/bfin.md (define_attr "type"): Add "sync".
8711         (define_insn_reservation "alu"): Likewise.
8712         (csync, ssync): Now of type sync.
8713         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
8714         -mcsync-anomaly -mspecld-anomaly.
8715         * config/bfin/bfin.opt (mcsync): Remove.
8716         (mcsync-anomaly, mspecld-anomaly): Add.
8717         * config/bfin/bfin.c: Include "insn-codes.h".
8718         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
8719         (TARGET_DEFAULT_TARGET_FLAGS): New.
8720         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
8721
8722 2005-07-11  Steven Bosscher  <stevenb@suse.de>
8723
8724         * basic-block.h: Give the BB flags enum a name, bb_flags.
8725         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
8726         * cfgcleanup.c (enum bb_flags): Remove here.
8727         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
8728         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
8729         (update_forwarder_flag): Likewise.
8730         (thread_jump): Likewise.
8731         (try_forward_edges): Likewise.
8732         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
8733         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
8734         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
8735
8736 2005-07-11  Richard Guenther  <rguenther@suse.de>
8737
8738         * config/i386/i386.opt: New target option -msseregparm.
8739         * config/i386/i386.c (override_options): Error out for
8740         -msseregparm but no SSE support.
8741         (ix86_function_sseregparm): Check for global sseregparm.
8742         * doc/invoke.texi: Document -msseregparm.
8743
8744 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8745
8746         * config.gcc (m32r-*-linux*): Use the default extra_parts.
8747         (m32rle-*-linux*): Ditto.
8748
8749 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
8750
8751         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
8752         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
8753         bytes.
8754
8755 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8756
8757         PR middle-end/22239
8758         PR target/20126
8759         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
8760         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
8761
8762 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
8763
8764         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
8765         (varmap): Heapify varmap.
8766         (constraints): Heapify constraints.
8767         (struct constraint_graph): Heapify succs and preds.
8768         (constraint_vec_find): Update for heapification.
8769         (constraint_set_union): Ditto.
8770         (insert_into_complex): Ditto.
8771         (constraint_edge_vec_find): Ditto.
8772         (erase_graph_self_edge): Ditto.
8773         (add_graph_edge): Ditto.
8774         (get_graph_weights): Ditto.
8775         (merge_graph_nodes): Ditto.
8776         (build_constraint_graph): Ditto.
8777         (topo_visit): Ditto.
8778         (solve_graph): Ditto.
8779         (create_variable_info_for): Ditto.
8780         (init_base_vars): Ditto.
8781         (delete_points_to_sets): Free graph, varmap, and complex constraints.
8782         (condese_varmap_nodes): Free complex vector.
8783         (clear_edges_for_node): Clear succs and preds vector.
8784
8785 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
8786
8787         * tree-ssa-structalias.c (update_alias_info): Change counting of
8788         references to not include vdefs.
8789
8790 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
8791
8792         * tree-ssa-alias.c (free_used_part_map): Add missing free.
8793         (up_insert): Ditto.
8794
8795 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8796
8797         * pa.c (pa_commutative_p): Make PLUS commutative when
8798         TARGET_NO_SPACE_REGS is true.
8799
8800 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
8801
8802         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
8803         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
8804         * tree-dfa.c (dump_subvars_for): New.
8805         (debug_subvars_for): New.
8806         (dump_variable): Show subvariables if VAR has them.
8807         * tree-flow-inline.h (get_subvar_at): New.
8808         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
8809         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
8810         Update all users.
8811         (struct subvar): Change fields offset and size to unsigned
8812         HOST_WIDE_INT.
8813         (dump_subvars_for): Declare.
8814         (debug_subvars_for): Declare.
8815         (get_subvar_at): Declare.
8816         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
8817         to unsigned HOST_WIDE_INT *.
8818         (overlap_subvar): Likewise.
8819         * tree-gimple.c (is_gimple_reg): Always return false for
8820         SFTs and memory tags.
8821         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
8822         Update all callers.
8823         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
8824         (compute_may_aliases): Call compute_points_to_sets.
8825         (collect_points_to_info_for): Remove.
8826         (compute_points_to_and_addr_escape): Remove.
8827         (delete_alias_info): Call delete_points_to_sets.
8828         (compute_flow_sensitive_aliasing): If the call to
8829         find_what_p_points_to returns false, call set_pt_anything.
8830         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
8831         (set_pt_anything): Clear pi->pt_vars.
8832         (set_pt_malloc): Remove.
8833         (merge_pointed_to_info): Remove.
8834         (add_pointed_to_expr): Remove.
8835         (add_pointed_to_var): Remove.
8836         (collect_points_to_info_r): Remove.
8837         (is_escape_site): Make extern.
8838         (create_sft): New.
8839         (create_overlap_variables_for): Call it.
8840         * tree-ssa-copy.c (merge_alias_info): Never merge
8841         flow-sensitive alias information.
8842         * tree-ssa-operands.c (get_expr_operands): Adjust variables
8843         offset and size to be unsigned HOST_WIDE_INT.
8844         (add_to_addressable_set): Rename from note_addressable.
8845         Set TREE_ADDRESSABLE as the variables are added to the set.
8846         Update all users.
8847         (add_stmt_operand): Do not try to micro-optimize unmodifiable
8848         operands into VUSEs when adding V_MAY_DEFs for members in an
8849         alias set.
8850         * tree-ssa-operands.h (add_to_addressable_set): Declare.
8851         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
8852         (struct variable_info): Add bitfield is_heap_var.
8853         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
8854         (new_var_info): Initialize is_heap_var.
8855         (get_constraint_for): Add HEAP variables to the symbol table.
8856         Mark them with is_heap_var.
8857         (update_alias_info): New.  Taken mostly from the old
8858         compute_points_to_and_addr_escape.
8859         (handle_ptr_arith): New.
8860         (find_func_aliases): Call update_alias_info.
8861         Call handle_ptr_info for tcc_binary expressions.
8862         Call mark_stmt_modified.
8863         (create_variable_info_for): If DECL has subvars, do not create
8864         variables for its subvars.  Always add all the fields.
8865         (set_uids_in_ptset): If the solution includes ANYOFFSET and
8866         SFTs, then add all the SFTs of the structure.
8867         If VI->DECL is an aggregate with subvariables, add the SFT at
8868         VI->OFFSET.
8869         (find_what_p_points_to): If VI is an artificial variable,
8870         translate to bitfields in SSA_NAME_PTR_INFO.
8871         If the solution is empty, set pi->pt_vars to NULL
8872         (init_base_vars): Create ANYOFFSET.
8873         (compute_points_to_sets): Rename from create_alias_vars.
8874         Make extern.
8875         (pass_build_pta): Remove.
8876         (delete_points_to_sets): Rename from delete_alias_vars.
8877         (pass_del_pta): Remove.
8878         * tree-ssa-structalias.h (struct alias_info): Move from
8879         tree-ssa-alias.h.
8880         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
8881         NUM_REFERENCES_SET): Likewise.
8882         (compute_points_to_sets, delete_points_to_sets): Declare.
8883
8884 2005-07-09  Richard Henderson  <rth@redhat.com>
8885
8886         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
8887         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
8888         alpha_split_lock_test_and_set_12): New functions.
8889         * config/alpha/alpha-protos.h: Update.
8890         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
8891         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
8892         * config/alpha/sync.md (I12MODE): New.
8893         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
8894         (sync_<fetchop_name><I48MODE>): Likewise.
8895         (sync_nand<I48MODE>): Likewise.
8896         (sync_old_<fetchop_name><I48MODE>): Likewise.
8897         (sync_new_<fetchop_name><I48MODE>): Likewise.
8898         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
8899         (sync_compare_and_swap<I48MODE>): Likewise.
8900         (sync_lock_test_and_set<I48MODE>): Likewise.
8901         (sync_compare_and_swap<I12MODE>): New.
8902         (sync_compare_and_swap<I12MODE>_1): New.
8903         (sync_lock_test_and_set<I12MODE>): New.
8904         (sync_lock_test_and_set<I12MODE>_1): New.
8905
8906 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
8907
8908         PR 21356
8909         PR 22332
8910         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
8911
8912 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
8913
8914         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
8915         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
8916
8917 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
8918
8919         PR target/21656
8920         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
8921
8922 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
8923
8924         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
8925         memory_operand constraint.
8926         (store_conditional_<mode>): Same.
8927         (sync_compare_and_swap<mode>): Same.
8928         (sync_lock_test_and_set<mode>): Same.
8929
8930 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
8931
8932         Rewrite PIC support to more closely model actual instructions.
8933         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
8934         (cris_symbol): Remove prototypes for removed functions.
8935         (cris_pic_symbol_type_of, cris_valid_pic_const)
8936         (cris_expand_pic_call_address): Prototypes for new functions.
8937         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
8938         variable.
8939         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
8940         modifiers.
8941         <case ':'>: Add case for new punctuation character.
8942         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
8943         emitting (extra) PIC modifier.
8944         <case UNSPEC>: Do not assert for PLT.
8945         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
8946         (cris_expand_prologue, cris_expand_epilogue): Check
8947         for pic_offset_table_rtx usage instead of taking
8948         current_function_uses_pic_offset_table as the final word.
8949         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
8950         Remove flag_pic difference.
8951         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
8952         the moral equivalents of...
8953         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
8954         functions.
8955         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
8956         (cris_handle_option): Mark ARG as unused.
8957         (cris_expand_pic_call_address): New worker function for "call",
8958         "call_value".
8959         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
8960         output PIC constructs here.
8961         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
8962         as symbol-specific modifers, not whole or part of operands.
8963         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
8964         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
8965         constants and flag_pic.
8966         (CONSTANT_INDEX_P): Adjust for new functions.
8967         (enum cris_pic_symbol_type): New helper type.
8968         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
8969         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
8970         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
8971         define_constants.
8972         ("movsi"): Emit actual instructions for GOT and relative access.
8973         ("*movsi_got_load"): New pattern to set up the register holding
8974         the GOT pointer.
8975         ("*movsi_internal"): Operand 1 is not a plain general_operand.
8976         Adjust FIXME for 'S'.
8977         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
8978         Use "movs" for -fpic cases.
8979         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
8980         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
8981         ("call", "call_value"): Just call cris_expand_pic_call_address for
8982         PIC addresses.
8983         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
8984         Remove special pattern.
8985         ("*expanded_call_side", "*expanded_call_value_side"): New
8986         patterns.
8987         (gotplt-to-plt, gotplt-to-plt-side-call)
8988         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
8989         peephole2:s.
8990         * config/cris/cris/predicates.md
8991         ("cris_general_operand_or_gotless_symbol"): Remove unused
8992         predicate.
8993         ("cris_general_operand_or_symbol"): Adjust for new functions.
8994
8995 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
8996
8997         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
8998
8999 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
9000
9001         * Makefile.in (TREE_H): Add treestruct.def.
9002         (c-decl.o): Add pointer-set.h
9003         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
9004         visibility on regular DECL's.
9005         (merge_decls): Fix the copying of decl nodes of various types for
9006         the new structures.  Don't update RTL, section name, weak status,
9007         etc, on DECL's without RTL.
9008         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
9009         Don't check volatile on non-variable types.
9010         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
9011         to check whether we have seen arguments.
9012         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
9013         flag is checked before field (flag is common, field is not).
9014         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
9015         TS_DECL_COMMON could have an origin.
9016         (add_location_or_const_value_attribute): Don't check section name
9017         on non-var/function decls.
9018         (dwarf2out_var_location): Reverse order of tests.
9019         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
9020         with DECL_WRTL_CHECK.
9021         * expmed.c (make_tree): rtl is now in decl_with_rtl.
9022         * fold-const.c (fold_binary): Don't check weakness on
9023         non-var/function decls.
9024         (tree_expr_nonzero_p): Ditto.
9025         (fold_checksum_tree): Use tree_decl_extra as sizeof
9026         buffer.
9027         * ggc-page.c (extra_order_size_table): Add sizes for
9028         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
9029         tree_field_decl.
9030         * gimplify.c (gimplify_bind_expr): Only set
9031         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
9032         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
9033         without RTL.
9034         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
9035         * langhooks.h (init_ts). New langhook.
9036         * passes.c (rest_of_decl_compilation): Reverse order of tests.
9037         * print-tree.c (print_node): Update to only print fields that
9038         exist in the structures the passed decl has.
9039         * toplev.c (wrapup_global_declarations): Don't reset
9040         DECL_DEFER_OUTPUT on DECL's that don't contain it.
9041         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
9042         * tree-inline.c (remap_decl): Ditto.
9043         * tree-outof-ssa.c (create_temp): Reverse order of tests.
9044         * tree-pretty-print.c (print_declaration): Don't print
9045         DECL_REGISTER on things that don't contain it.
9046         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
9047         non-var/function decls.
9048         * tree.c (tree_contains_struct): New structure.
9049         (init_priority_for_decl): New hashtable.
9050         (tree_int_map): New structure.
9051         (tree_int_map_eq): New function.
9052         (tree_int_map_marked_p): Ditto.
9053         (tree_int_map_hash): Ditto.
9054         (tree_map): Move to tree.h.
9055         (tree_map_eq): Externalize.
9056         (tree_map_hash): Ditto.
9057         (tree_map_marked_p): Ditto.
9058         (init_ttree): Set up tree_contains_struct and call langhook.
9059         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
9060         (tree_code_size): Update for new structures.
9061         (tree_node_structure): Update for new structures.
9062         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
9063         without the field.
9064         (copy_node_stat):  Copy init priority.
9065         (build_decl_stat): Ditto for visibility.
9066         (ts_enum_names): New.
9067         (tree_contains_struct_check_failed): New function.
9068         (decl_init_priority_lookup): Ditto.
9069         (decl_init_priority_insert): Ditto.
9070         * treestruct.def: New file.
9071         * tree.h (CODE_CONTAINS_STRUCT): New macro.
9072         (CONTAINS_STRUCT_CHECK): Ditto.
9073         (tree_contains_struct_check_failed): New prototype.
9074         (DECL_CHECK): Removed.
9075         (DECL_MINIMAL_CHECK): New.
9076         (DECL_COMMON_CHECK): Ditto.
9077         (DECL_WRTL_CHECK): Ditto.
9078         (DECL_NON_COMMON_CHECK): Ditto.
9079         (DECL_WITH_VIS_CHECK): Ditto.
9080         (VAR_OR_FUNCTION_DECL_P): Ditto
9081         (struct tree_decl_minimal): New structure.
9082         (struct tree_decl_common): Ditto.
9083         (struct tree_decl_with_rtl): Ditto.
9084         (struct tree_decl_with_vis): Ditto.
9085         (struct tree_decl_non_common): Ditto.
9086         (struct tree_field_decl): Ditto.
9087         (struct tree_parm_decl): Ditto.
9088         (struct tree_var_decl): Ditto.
9089         (struct tree_function_decl): Ditto.
9090         (struct tree_const_decl): Ditto.
9091         (struct tree_result_decl): Ditto.
9092         (union tree_node): Add new structures.
9093         * var-tracking.c (track_expr_p): Reverse order of tests.
9094
9095         * doc/c-tree.texi: Add documentation on DECL node internal structure.
9096
9097 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
9098
9099         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
9100         * system.h: Poison FINALIZE_PIC.
9101         * doc/tm.texi (FINALIZE_PIC): Remove.
9102
9103 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
9104
9105         PR tree-opt/22329
9106         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
9107         to the correct type if we have a MODIFY_EXPR.
9108
9109 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
9110
9111         PR tree-optimization/22360
9112         * tree.c (upper_bound_in_type): Fix calculations for casting
9113         to a non-wider signed type and casting a signed value to a
9114         wider unsigned type.
9115         (lower_bound_in_type): Fix calculations for casting to a
9116         non-wider signed type.
9117
9118         PR tree-optimization/20139
9119         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
9120         release_defs.
9121         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
9122         fold_cond_expr_cond.
9123         * tree-ssanames.c (release_defs): Assert in_ssa_p.
9124         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
9125
9126 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
9127
9128         PR tree-opt/22356
9129         * tree-complex.c (expand_complex_libcall): Produce
9130         REALPART_EXPR/IMAGPART_EXPR with the correct type.
9131
9132 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
9133
9134         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9135         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
9136         b" assert and inserted fastpath code for this case.
9137         (bitmap_ior): Removed "a != b" assert.
9138
9139 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9140
9141         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
9142         (ENDFILE_SPEC): Likewise.
9143         * config/m32r/m32r.h (ASM_SPEC): Likewise.
9144
9145         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
9146         a large stack frame at epilogue.
9147
9148 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
9149
9150         * final.c: Include sdbout.h when required.
9151
9152 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
9153
9154         * config.gcc (*-*-darwin*): Only one target-specific header file
9155         for generic darwin.
9156         (powerpc-*-darwin*): Add version-specific header files.
9157         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
9158         * config.in: Regenerate.
9159         * configure: Regenerate.
9160         * gcc.c: Include xregex.h.
9161         (version_compare_spec_function): New.
9162         (spec_function): Add version-compare.
9163         (replace_outfile_spec_function): Reformat comment.
9164         (compare_version_strings): New.
9165         * config/darwin-c.c (version_as_macro): New.
9166         (builtin_define): New.
9167         (darwin_cpp_builtins): New.
9168         * config/darwin-protos.h (darwin_cpp_builtins): New.
9169         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
9170         (LIB_SPEC): Make unconditional, update comment.
9171         (TARGET_C99_FUNCTIONS): Define.
9172         * config/darwin.opt: Sort.
9173         (mmacosx-version-min=): New.
9174         * config/darwin7.h: Delete.
9175         * config/darwin8.h: Delete.
9176         * config/i386/darwin.h (): Call darwin_cpp_builtins.
9177         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
9178         (TARGET_C99_FUNCTIONS): Define.
9179         * config/rs6000/darwin7.h: New.
9180         * config/rs6000/darwin8.h: New.
9181         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
9182         (-mmacosx-version-min): Document.
9183
9184 2005-07-07  Ian Lance Taylor  <ian@airs.com>
9185
9186         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
9187
9188 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
9189
9190         PR middle-end/22239
9191         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
9192
9193 2005-07-07  Khem Raj  <kraj@mvista.com>
9194
9195         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
9196         in bytes, not words.
9197
9198 2005-07-07  Paul Brook  <paul@codesourcery.com>
9199
9200         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
9201         DEFAULT_FUNCTION_ARG_PADDING to upward.
9202
9203 2005-07-07  Richard Henderson  <rth@redhat.com>
9204
9205         * function.c (locate_and_pad_parm): Record parameter alignment in
9206         stack_alignment_needed.
9207
9208 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
9209
9210         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
9211         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
9212         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
9213         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
9214         (define_attr "type"): Add isync, sync, load_l, store_c.
9215         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
9216         Create scratch volatile MEM.
9217         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
9218         sync.
9219         (load_locked_<mode>): New.
9220         (store_conditional_<mode>): New.
9221         (sync_compare_and_swap<mode>): Replace with splitter.
9222         (sync_lock_test_and_set<mode>): Replace with splitter.
9223         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
9224         and UNSPECV_ISYNC.
9225         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
9226         is ics.  Attribute isync.
9227         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
9228         lwsync.
9229         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
9230         and UNSPECV_SYNC_OP.
9231         (emit_unlikely_jump): New.
9232         (emit_load_locked): New.
9233         (emit_store_conditional): New.
9234         (rs6000_split_compare_and_swap): New.
9235         (rs6000_split_lock_test_and_set): New.
9236         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
9237         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
9238         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
9239         rs6000_split_lock_test_and_set): Declare.
9240         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
9241         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
9242         store_c, isync, sync.
9243
9244 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
9245
9246         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
9247         filenames to gtyp-gen.h.
9248         (s-typ-gen): Use it in place of for loops.
9249
9250 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
9251
9252         * hooks.c (hook_bool_rtx_int_false): New function.
9253         * hooks.h (hook_bool_rtx_int_false): Declare.
9254         * target-def.h (TARGET_COMMUTATIVE_P): Define.
9255         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
9256         * target.h (struct gcc_target): Add commutative_p member.
9257         * targhooks.c (hook_bool_rtx_commutative_p): New function.
9258         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
9259         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
9260         (pa_commutative_p): New function.
9261         * jump.c (target.h): Include.
9262         (rtx_renumbered_equal_p): Use targetm.commutative_p.
9263         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
9264
9265 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
9266
9267         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
9268         (s390_expand_setmem): New.
9269         * config/s390/s390.c: Likewise.
9270         (print_shift_count_operand): Truncate to 12 bits instead of 6.
9271         Adapt comments.
9272         * config/s390/s390.md: ("setmem<mode>"): Accept character as
9273         general_operand.  Call new function "s390_expand_setmem".
9274         ("clrmem_long", "*clrmem_long"): Rewrite to ...
9275         ("setmem_long", "*setmem_long"): ... this.
9276
9277 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
9278
9279         * config/s390/s390.c: (optimization_options): Enable
9280         TARGET_MVCLE at -Os.
9281         * doc/invoke.texi: Document changes in default behaviour.
9282         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
9283
9284 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
9285
9286         * expr.c: (set_storage_via_setmem): Convert opchar to mode
9287         defined by back-end.
9288
9289 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
9290
9291         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
9292         all sets in the pattern.
9293         * config/rs6000/rs6000.md (stack_protect_testsi,
9294         stack_protect_testdi): Likewise.
9295
9296 2005-07-06  Jeff Law  <law@redhat.com>
9297
9298         * tree-vrp.c (simplify_using_ranges): Kill.
9299         (vrp_finalize): Remove call to simplify_using_ranges.
9300         (simplify_stmt_using_ranges): New function extracted from
9301         simplify_using_ranges.
9302         (simplify_div_or_mod_using_ranges): Likewise.
9303         (simplify_abs_using_ranges): Likewise.
9304         (simplify_cond_using_ranges): New function.
9305         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
9306         * tree-ssa-propagate.c (substitute_and_fold): Call
9307         simplify_stmt_using_ranges if we have range information.
9308
9309 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
9310
9311         * config/ia64/ia64.c (ia64_reorg): Check optimize before
9312         ia64_flag_schedule_isns2.
9313
9314         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
9315         reading/writing general registers.
9316         (ia64_function_arg): Revert 2005-06-18 change.
9317
9318 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
9319
9320         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
9321         (legitimize_tls_address): Use gcc_unreachable instead of abort.
9322
9323 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
9324
9325         * function.c (expand_function_end): Revert part of 2005-06-27
9326         patch.  Do sjlj_emit_function_exit_after after return_label.
9327
9328 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
9329
9330         * doc/install.texi (--disable-libssp): New.
9331
9332 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
9333
9334         * doc/invoke.texi: Update -fforce-mem documentation.
9335         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
9336         code for -fforce-mem.
9337         * expmed.c: (store_bit_field,store_fixed_bit_field,
9338         extract_bit_field): Ditto.
9339         * expr.c: (convert_move): Ditto.
9340         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
9341         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
9342         emit_conditional_add,expand_float,expand_fix): Ditto.
9343         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
9344         (common_handle_option): Issue warning when -fforce-mem specified.
9345
9346 2005-07-06  Paul Brook  <paul@codesourcery.com>
9347
9348         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
9349         argument is empty.
9350         * configure: Regenerate.
9351
9352 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
9353
9354         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
9355
9356 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
9357
9358         Fix PR tree-optimization/22319
9359         Fix PR tree-optimization/22140
9360         Fix PR tree-optimization/22310
9361
9362         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
9363         variable sized types.
9364         Use correct type for intermediate structure on *a = *b structure
9365         copies.
9366
9367 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
9368
9369         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
9370         Remove.
9371         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
9372         (machine_function): Move typedef to...
9373         * config/rs6000/rs6000.c (machine_function): ... here.  Add
9374         varargs_save_offset field.
9375         (rs6000_stack_t): Remove varargs_size field.
9376         (setup_incoming_varargs): Allocate varargs save area using
9377         assign_stack_local, try to make it as small as possible.
9378         Save offset from virtual_stack_vars_rtx to the save area
9379         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
9380         instead of magic 8 when fp word byte size is used.
9381         (rs6000_va_start): Use cfun->machine->varargs_save_offset
9382         instead of -RS6000_VARARGS_SIZE.
9383         (rs6000_stack_info, debug_stack_info,
9384         rs6000_initial_elimination_offset): Remove all traces of
9385         varargs_size.
9386         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
9387         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
9388         RS6000_VARARGS_AREA.
9389
9390 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
9391
9392         PR tree-optimization/21963
9393         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
9394         constant_multiple_of in the same way get_computation_cost_at does.
9395
9396 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
9397
9398         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
9399         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
9400         (gen_compare_reg): If sparc_compare_emitted is set, clear it
9401         and return its previous value.
9402         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
9403         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
9404         constants.
9405         (stack_protect_set, stack_protect_test): New expanders.
9406         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
9407         stack_protect_testdi): New insns.
9408         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
9409         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
9410
9411 2005-07-06  Jeff Law  <law@redhat.com>
9412
9413         * tree-ssa-dce.c (cfg_altered): New global.
9414         (tree_dce_init): Initialize cfg_altered.
9415         (remove_dead_stmt): If we remove an edge in the CFG, then set
9416         CFG_ALTERED.
9417         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
9418         the dominators.
9419
9420 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
9421
9422         * Makefile.in (stamp-collect-ld): Use
9423         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
9424         ./collect-ld if it already exists.
9425         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
9426         Don't remove ./nm if it already exists.
9427
9428 2005-07-05  Devang Patel  <dpatel@apple.com>
9429
9430         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
9431         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
9432         * tree-vectorizer.c (vect_loop_location): New.
9433         (vect_print_dump_info): Use vect_loop_location.
9434         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
9435         (vectorize_loops): Set vect_loop_location.
9436         * tree-vect-analyze.c (vect_analyze_offset_expr,
9437         vect_determin_vectorization_factor, vect_analyze_operations,
9438         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
9439         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
9440         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
9441         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
9442         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
9443         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
9444         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
9445         vect_analyze_loop): Adjust vect_print_dump_info API.
9446         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
9447         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
9448         vect_finish_stmt_generation, vectorizable_assignment,
9449         vectorizable_operation, vectorizable_store, vectorizable_load,
9450         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
9451         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
9452         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
9453         vect_transform_loop): Same.
9454         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
9455         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
9456         Same.
9457
9458 2005-07-05  Randolph Chung  <tausq@debian.org>
9459
9460         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
9461         * configure: Regenerate.
9462         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
9463         (pa_tls_referenced_p): Declare.
9464         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
9465         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
9466         (legitimize_tls_address): New.
9467         (hppa_legitimize_address): Handle TLS addresses.
9468         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
9469         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9470         (emit_move_sequence): Handle TLS addresses.
9471         (pa_encode_section_info): Call default handler to handle common
9472         sections.
9473         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
9474         (CONSTANT_ADDRESS_P): Reject TLS operands.
9475         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
9476         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
9477         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
9478         (UNSPEC_TLSLE): Define new constants.
9479         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
9480         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
9481         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
9482         (tie_symbolic_operand, tle_symbolic_operand): New
9483
9484 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
9485
9486         * aclocal.m4: Update macros for autoconf 2.59 style.
9487         * configure.ac: Likewise.
9488
9489 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9490
9491         * pa.c (function_value): Handle small aggregates on 32-bit targets.
9492         (function_arg): Pass small aggregates in general registers on 32-bit
9493         targets.
9494         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
9495
9496 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
9497
9498         * Makefile.in (final.o): Fix dependencies.
9499
9500 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
9501
9502         PR c/22013
9503         PR c/22098
9504         * langhooks.h (struct lang_hooks): Add expr_to_decl.
9505         * langhooks.c (lhd_expr_to_decl): New.
9506         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
9507         New.
9508         (LANG_HOOKS_INITIALIZER): Update.
9509         * tree.c (recompute_tree_invarant_for_addr_expr): Call
9510         expr_to_decl langhook.
9511         * c-tree.h (c_expr_to_decl): Declare.
9512         * c-typeck.c (c_expr_to_decl): New.
9513         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
9514         specially.
9515         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
9516
9517 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
9518
9519         PR c/22308
9520         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
9521         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
9522
9523 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
9524
9525         * Makefile.in: Adjust dependencies.
9526         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
9527         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
9528         * alias.c (rest_of_handle_cfg, pass_cfg): New.
9529         * bb-reorder.c (duplicate_computed_gotos): Make it static.
9530         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
9531         rest_of_compilation.
9532
9533         * bb-reorder.c (gate_duplicate_computed_gotos,
9534         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
9535         rest_of_handle_reorder_blocks, pass_reorder_blocks,
9536         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
9537         pass_partition_blocks): New.
9538         * bt-load.c (gate_handle_branch_target_load_optimize,
9539         rest_of_handle_branch_target_load_optimize,
9540         pass_branch_target_load_optimize): New.
9541         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
9542         pass_jump2): New.
9543         * cfglayout.c (pass_insn_locators_initialize): New.
9544         * cfgrtl.c (pass_free_cfg): New.
9545         * combine.c (gate_handle_combine, rest_of_handle_combine,
9546         pass_combine): New.
9547         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
9548         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
9549         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
9550         * except.c (pass_set_nothrow_function_flags,
9551         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
9552         pass_rtl_eh): New.
9553         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
9554         rest_of_handle_shorten_branches, pass_shorten_branches,
9555         rest_of_clean_state, pass_clean_state): New.
9556         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
9557         rest_of_handle_remove_death_notes, pass_remove_death_notes,
9558         rest_of_handle_life, pass_life, rest_of_handle_flow2,
9559         pass_flow2): New.
9560         * function.c (pass_instantiate_virtual_regs, pass_init_function,
9561         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
9562         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
9563         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
9564         pass_gcse): New.
9565         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
9566         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
9567         pass_rtl_ifcvt, gate_handle_if_after_combine,
9568         rest_of_handle_if_after_combine, pass_if_after_combine,
9569         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
9570         pass_if_after_reload): New.
9571         * integrate.c (pass_initial_value_sets): New.
9572         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
9573         pass_purge_lineno_notes): New.
9574         * mode-switching.c (rest_of_handle_mode_switching,
9575         pass_mode_switching): New.
9576         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
9577         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
9578         pass_loop2): New.
9579         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
9580         pass_loop_optimize): New.
9581         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
9582         pass_sms): New.
9583         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
9584         pass_gcse2): New.
9585         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
9586         pass_postreload_cse): New.
9587         * profile.c (gate_handle_profiling, pass_profiling,
9588         rest_of_handle_branch_prob, pass_branch_prob): New.
9589         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
9590         pass_split_before_regstack, gate_handle_split_before_regstack,
9591         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
9592         rest_of_handle_split_all_insns, pass_split_all_insns): New.
9593         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
9594         pass_stack_regs): New.
9595         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
9596         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
9597         pass_stack_adjustments): New.
9598         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
9599         pass_regrename): New.
9600         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
9601         pass_delay_slots, gate_handle_machine_reorg,
9602         rest_of_handle_machine_reorg, pass_machine_reorg): New.
9603         * rtl.h (extern void purge_line_number_notes): New.
9604         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
9605         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
9606         pass_sched2): New.
9607         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
9608         pass_tracer): New.
9609         * value-prof.c (gate_handle_value_profile_transformations,
9610         rest_of_handle_value_profile_transformations,
9611         pass_value_profile_transformations): New.
9612         * var-tracking.c (gate_handle_var_tracking,
9613         pass_variable_tracking): New.
9614         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
9615
9616         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
9617         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
9618         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
9619         rest_of_handle_old_regalloc, rest_of_handle_regrename,
9620         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
9621         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
9622         rest_of_handle_gcse2, rest_of_handle_regmove,
9623         rest_of_handle_tracer, rest_of_handle_if_conversion,
9624         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
9625         rest_of_handle_web, rest_of_handle_branch_prob,
9626         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
9627         rest_of_handle_jump_bypass, rest_of_handle_combine,
9628         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
9629         rest_of_handle_gcse, rest_of_handle_loop_optimize,
9630         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
9631         rest_of_handle_mode_switching, rest_of_handle_jump,
9632         rest_of_handle_eh, rest_of_handle_stack_adjustments,
9633         rest_of_handle_flow2, rest_of_handle_jump2,
9634         rest_of_handle_peephole2, rest_of_handle_postreload,
9635         rest_of_handle_shorten_branches, rest_of_clean_state,
9636         rest_of_compilation): Remove.
9637
9638         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
9639         * passes.c (dump_flags, in_gimple_form, all_passes,
9640         all_ipa_passes, all_lowering_passes, register_one_dump_file,
9641         register_dump_files, next_pass_1, last_verified, execute_todo,
9642         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
9643         from tree-optimize.c.
9644         (init_optimization_passes): Moved from tree-optimize.c,
9645         adding the RTL optimizations.
9646         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
9647         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
9648         all_ipa_passes, all_lowering_passes, register_one_dump_file,
9649         register_dump_files, next_pass_1, last_verified, execute_todo,
9650         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
9651         init_tree_optimization_passes, ipa_passes): Delete.
9652         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
9653         the RTL dumps.
9654         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
9655         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
9656         from tree.h.
9657         (ipa_passes): Remove.
9658         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
9659         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
9660         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
9661         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
9662         (dump_info_p, dump_flag): Moved to tree-dump.h.
9663
9664         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
9665         cgraph.c, opts.c.
9666         * passes.c (finish_optimization_passes): Use dump_begin
9667         and dump_end, TDI_end.
9668         (gate_rest_of_compilation): New.
9669         (pass_rest_of_compilation): Use it.
9670         (gate_postreload, pass_postreload): New.
9671         * toplev.c (general_init): Rename init_tree_optimization_passes.
9672         * toplev.h (init_tree_optimization_passes): Rename to
9673         init_optimizations_passes.
9674         * tree-dump.c (dump_flag): Make static.
9675         (dump_files): Remove RTL dumps.
9676         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
9677         pass_cleanup_cfg, pass_free_cfg_annotations,
9678         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
9679         pass_init_datastructures, pass_fixup_cfg): Make non-static.
9680         * tree-pretty-print.c: Include tree-pass.h.
9681         * cgraph.c: Include tree-dump.h.
9682
9683 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
9684
9685         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
9686         Only fall back to saying it points to readonly memory if
9687         we can't do better.
9688
9689 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
9690
9691         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
9692         * config/m32r/m32r.c (m32r_compute_frame_size,
9693         m32r_expand_prologue): Take current_function_profile into
9694         account whenever we reference
9695         current_function_uses_pic_offset_table.
9696         (m32r_finalize_pic): Remove.
9697         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
9698
9699 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
9700
9701         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
9702         instead of $<.  Don't remove ./as if it already exists.
9703
9704 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9705
9706         PR target/21723
9707         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
9708         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
9709         for complex modes when generating code for PA 1.0.
9710         (VALID_FP_MODE_P): New macro.
9711         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
9712         sets for all general and floating point modes.  Align wide floating
9713         point modes to even register boundaries to comply with architectural
9714         requirements.
9715         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
9716         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
9717         (VALID_FP_MODE_P): New macro.
9718         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
9719         sets for all general and floating point modes.  Align wide floating
9720         point modes to even register boundaries to comply with architectural
9721         requirements.
9722
9723 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
9724
9725         * tree-dump.c (dump_files): Initialize dump number for .cgraph
9726         to 0.
9727
9728 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
9729
9730         * tree-ssa-structalias.c: Don't include expr.h.
9731
9732 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
9733
9734         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
9735         comments.
9736
9737 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
9738
9739         Fix PR tree-optimization/22279
9740
9741         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
9742         correct operator.
9743
9744 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
9745
9746         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
9747
9748 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
9749
9750         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
9751         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
9752         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
9753         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
9754         config/stormy16/stormy16.c, config/v850/v850.c,
9755         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
9756         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
9757         Avoid "." or "\n" at end of diagnostics and capital letters at
9758         start of diagnostics.
9759         * combine.c, cse.c: Don't translate dump file output.
9760         * toplev.c (print_version): Only translate output if going to
9761         stderr.
9762
9763 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
9764
9765         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
9766         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
9767         typos.
9768
9769 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9770
9771         * pa.c (fix_range): Fix typo in comment.
9772
9773 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
9774
9775         * tree-vrp.c (extract_range_from_assert): Replace
9776         fold (build (...)) with fold_build2.
9777
9778 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9779
9780         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
9781         gcc_gfc_char_table, init_dynamic_gfc_info): New.
9782         (format_types_orig, handle_format_attribute): Add support for
9783         format "gcc_gfc".
9784
9785 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9786
9787         * varasm.c (assemble_variable): Fix format specifier thinko.
9788
9789 2005-07-03  Ira Rosen  <irar@il.ibm.com>
9790
9791         PR tree-optimization/22029 (and 22135)
9792         * tree-pretty-print.c (dump_generic_node): Check that the node is not
9793         a phi node before calling dump_vops.
9794
9795 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9796
9797         * tree-dump.h (dump_string_field): Declare.
9798         * tree-dump.c: Use it instead of dump_string.
9799         (dump_string_field): Make non-static.
9800
9801 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9802
9803         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
9804         up the minimal CFG stuff always when optimize > 0.  Call
9805         split_all_insns_noflow in PIC case if needed.
9806
9807 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9808             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
9809
9810         PR c++/18279
9811         * c-decl.c (c_write_global_declarations): Dump contents of
9812         external scope to.
9813         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
9814         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
9815         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
9816         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
9817         is enabled.
9818
9819 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
9820
9821         * c-common.h (GCC_DIAG_STYLE): Define.
9822         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
9823         version for format checking to 4.1.
9824         * c-format.c: Include toplev.h after c-common.h.
9825         (enum format_type): Add gcc_tdiag_format_type.
9826         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
9827         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
9828         (format_types_orig): Add gcc_tdiag.
9829         (init_dynamic_diag_info): Support gcc_tdiag formats.
9830         (handle_format_attribute): Likewise.
9831         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
9832         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
9833         version for format checking to 4.1.
9834         (warning0, warning, error, pedwarn, sorry): Use
9835         ATTRIBUTE_GCC_DIAG.
9836         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
9837         (finish_aliases_1): Do not use %qE.
9838         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
9839         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
9840         Correct format bugs.
9841         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
9842         parameter to unsigned HOST_WIDE_INT.
9843         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
9844
9845 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
9846
9847         PR middle-end/21742
9848         * expr.c (write_complex_part): Use adjust_address for MEM.
9849         (read_complex_part): Same.
9850
9851 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
9852
9853         Fix PR tree-optimization/22280
9854
9855         * tree-sra.c (generate_element_init): Remove useless loop.
9856
9857 2005-07-02  Richard Henderson  <rth@redhat.com>
9858
9859         * config/alpha/alpha.c (alpha_legitimize_address): Check for
9860         TLS_MODEL_NONE.
9861         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
9862
9863 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
9864
9865         PR middle-end/14490
9866         * fold-const.c (fold_binary): Handle the return value of
9867         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
9868         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
9869
9870 2005-07-02  Jeff Law  <law@redhat.com>
9871
9872         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
9873         a eliminate type conversion which feeds an equality comparison
9874         if the original type or either operand in the comparison is a
9875         function pointer.
9876
9877 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
9878
9879         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
9880         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
9881         texts.
9882         * config/avr/avr.c: Do not use '`' as left quote.
9883         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
9884         Remove "." from end of diagnostics.  Make diagnostics start with
9885         lowercase letter.
9886
9887 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
9888             Joseph S. Myers  <joseph@codesourcery.com>
9889
9890         * toplev.c (default_tree_printer): Handle setting location with
9891         '+' flag.
9892         * c-objc.common.c (c_tree_printer): Likewise.
9893         * c-format.c (gcc_diag_flag_specs): Add '+'.
9894         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
9895         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
9896         formats.
9897         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
9898         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
9899         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
9900         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
9901         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
9902         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
9903         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
9904         format arguments where %J is used without %D.
9905
9906 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
9907
9908         * gcc.c (LINK_SSP_SPEC): Define.
9909         (link_ssp_spec): New variable.
9910         (LINK_COMMAND_SPEC): Add %(link_ssp).
9911         (static_specs): Add link_ssp_spec.
9912         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
9913         * configure: Rebuilt.
9914         * config.in: Rebuilt.
9915
9916         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
9917         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
9918         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
9919         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
9920         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
9921         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
9922         -0x7008(2) instead of reading __stack_chk_guard variable.
9923         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
9924         number.
9925         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
9926         (stack_protect_set, stack_protect_test): Use *_tls* patterns
9927         if TARGET_THREAD_SSP_OFFSET is defined.
9928         (stack_tls_protect_set_si, stack_tls_protect_set_di,
9929         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
9930
9931         Revert:
9932         2005-06-27  Richard Henderson  <rth@redhat.com>
9933         * libgcc-std.ver (GCC_4.1.0): New.
9934         * libgcc.h (__stack_chk_guard): Declare.
9935         (__stack_chk_fail, __stack_chk_fail_local): Declare.
9936         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
9937         * mklibgcc.in (lib2funcs): Add them.
9938
9939 2005-07-01  Richard Henderson  <rth@redhat.com>
9940
9941         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
9942         void * before struct sigcontext *.
9943         (x86_fallback_frame_state): Likewise.
9944
9945 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
9946
9947         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
9948
9949 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
9950
9951         PR tree-opt/22269
9952         * tree-ssa-reassoc.c (should_transpose): Fix which operand
9953         we check for SSA_NAME for.
9954
9955 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
9956
9957         Fix PR tree-optimization/22071
9958
9959         * tree-ssa-structalias.c (offset_overlaps_with_access): New
9960         function.
9961         (get_constraint_for_component_ref): Use it.
9962
9963 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
9964
9965         PR other/22264
9966         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
9967         print out the last new line.
9968
9969 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
9970
9971         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
9972         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
9973         * config/cris/cris.c (cris_conditional_register_usage): Adjust
9974         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
9975         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
9976         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
9977         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
9978         (enum reg_class): New member CC0_REGS.
9979         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
9980         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
9981         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
9982         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
9983         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
9984         Adjust for register now described.
9985
9986 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
9987
9988         PR target/22262
9989         * config/i386/i386.md (stack_protect_test_si,
9990         stack_protect_test_di): Add earlyclobber for scratch 3.
9991         * config/rs6000/rs6000.md (stack_protect_testsi,
9992         stack_protect_testdi): Add earlyclobber for scratch 3,
9993         remove earlyclobber from scratch 4.
9994
9995 Older entries for 2005 can be found in ChangeLog-2005.