OSDN Git Service

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