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