OSDN Git Service

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