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