OSDN Git Service

* config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
2
3         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
4         before creating new ones.  Do symlinks before creating the actual
5         targets.
6
7         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
8         to work out which multilibs are actually being built.
9
10 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
11
12         * tree-vect-transform.c, config/ms1/ms1.md,
13         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
14         Follow spelling conventions.
15         * doc/invoke.texi, doc/md.texi: Fix typos.
16
17 2005-09-30  Andrew Macleod  <amacleod@redat.com>
18
19         PR tree-optimization/21430
20         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
21         use operands, and set stmt pointer if need be.
22         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
23         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
24         present.
25
26 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27
28         PR middle-end/24053
29         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
30
31 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
32
33         * optabs.c (expand_binop): Initialize first_pass_p.
34
35 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
36
37         PR middle-end/24109
38         * c-decl.c (c_write_global_declarations_1): If any
39         wrapup_global_declaration_2 call returned true, restart the loop.
40
41 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
42         
43         Fix PR tree-optimization/24117
44         * tree-ssa-structalias.c (find_func_aliases): Strip nops
45         before considering whether to use anyoffset.
46
47 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
48
49         Revert this patch:
50
51         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
52
53         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
54         to order operands.
55         (swap_commutative_operands_with_target): New.
56
57 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
58
59         PR c/21419
60         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
61         read-only.
62
63 2005-09-29  Steven Bosscher  <stevenb@suse.de>
64
65         PR tree-optimization/23911
66         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
67         and IMAGPART_EXPR too.
68
69 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
70
71         PR 17886
72         * expmed.c (expand_shift): Move logic to reverse rotation
73         direction when  rotating by constants ...
74         * optabs.c (expand_binop): ... here.
75         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
76         (ix86_rotrdi3): New pattern.
77         (rotldi3): Handle 32-bit mode.
78         (ix86_rotldi3): New pattern.
79
80 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
81
82         PR target/24102
83         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
84         check for numbers that need no bit twiddle.
85
86 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
87
88         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
89         multilib to be built.
90
91         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
92         (stage1-start): Delete old libgcc and libunwind before moving
93         anything into the stage directory.
94         (stage2-start): Likewise.
95         (stage3-start): Likewise.
96         (stage4-start): Likewise.
97         (stageprofile-start): Likewise.
98         (stagefeedback-start): Likewise.
99         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
100         header in tm_file and CPU-specific t-darwin in tmake_file.
101         (i[34567]86-*-darwin*): Don't change tm_file.
102         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
103         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
104         shared library stub for target OS version.
105         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
106         (SHLIB_LINK): Don't make SHLIB_SOLINK.
107         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
108         (libgcc_s.%.dylib): New.
109         (LIBGCC): Define.
110         (install-darwin-libgcc-stubs): New.
111         (INSTALL_LIBGCC): New append.
112         * config/i386/darwin-libgcc.10.4.ver: New.
113         * config/i386/darwin-libgcc.10.5.ver: New.
114         * config/i386/t-darwin: New.
115         * config/rs6000/darwin-libgcc.10.4.ver: New.
116         * config/rs6000/darwin-libgcc.10.5.ver: New.
117         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
118         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
119
120 2005-09-28  Paul Brook  <paul@codesourcery.com>
121
122         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
123         denormals.
124
125 2005-09-28  Richard Guenther  <rguenther@suse.de>
126
127         PR tree-optimization/23853
128         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
129         host_integerp to verify misalignment value.
130
131 2005-09-28  Richard Henderson  <rth@redhat.com>
132
133         * builtins.c (get_builtin_sync_mode): New.
134         (expand_builtin_sync_operation): Pass in mode argument.
135         (expand_builtin_compare_and_swap): Likewise.
136         (expand_builtin_lock_test_and_set): Likewise.
137         (expand_builtin_lock_release): Likewise.
138         (expand_builtin): Update to match.
139
140 2005-09-28  Nick Clifton  <nickc@redhat.com>
141
142         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
143         formatting.  Add check to PLUS case to ensure that the offset is
144         within an acceptable range.
145
146         * config/v850/v850.md (casesi): Disable the generation of the
147         switch pattern as it is not being handled properly at the moment.
148
149         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
150         for when the high words are identical.
151
152 2005-09-27  Richard Henderson  <rth@redhat.com>
153
154         * pretty-print.c (pp_base_format): Fix typo for %>.
155
156 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
157             Devang Patel  <dpatel@apple.com>
158
159         PR tree-optimization/23625
160         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
161         LABEL_EXPR, assertion check.
162         
163 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
164
165         * optabs.c (no_conflict_move_test): Check if a result of a
166         to-be-moved insn would be clobbered by an originally
167         preceding insn.
168
169 2005-09-27  Jeff Law  <law@redhat.com>
170
171         * passes.c (init_optimization_passes): Replace copy propagation
172         passes immediately after DOM with phi-only copy propagation
173         pases.  Add phi-only copy propagation pass after first DOM pass.
174         * tree-pass.h (pass_phi_only_copy_prop): Declare.
175         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
176         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
177         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
178         to init_copy_prop.  Callers updated.
179         (do_phi_only_copy_prop): New function.
180         (pass_phi_only_copy_prop): New pass descriptor.
181
182 2005-09-27  Nick Clifton  <nickc@redhat.com>
183
184         * libgcc2.c (__popcount_tab): Remove redundant prototype.
185
186 2005-09-26  Jason Merrill  <jason@redhat.com>
187
188         PR c++/13764
189         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
190
191         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
192
193 2005-09-26  James E Wilson  <wilson@specifix.com>
194
195         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
196         copyright.  Add gcc copyright plus libgcc exception.
197         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
198         copyright.
199         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
200
201 2005-09-26  Jeff Law  <law@redhat.com>
202
203         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
204         about when to iterate.
205
206 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
207
208         PR target/23847
209         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
210         for __complex__ double in -mcpu=G5 mode.
211
212 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
213
214         PR tree-optimization/23942
215         * Makefile.in (SCEV_H): Depends on PARAMS_H.
216         * tree-scalar-evolution.c: Include params.h.
217         (t_bool): New enum.
218         (follow_ssa_edge, follow_ssa_edge_in_rhs,
219         follow_ssa_edge_in_condition_phi_branch,
220         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi): 
221         Change return type to t_bool.  Use a parameter to limit the size of
222         trees that are walked before stopping 
223         (analyze_evolution_in_loop): Initialize the limit to 0.
224         (follow_ssa_edge): Give up by returning t_dont_know if the limit 
225         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
226
227 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
228
229         PR middle-end/23831
230         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
231         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
232
233 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
234
235         * combine.c (make_extraction): Check for valid use of subreg.
236
237 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
238
239         PR target/24055
240         * config/i386/i386.md ("*fistdi2_1"): New pattern.
241         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
242         ("fist<mode>2_with_temp"): Use only register operands.
243
244 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
245
246         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
247         CALL_INSN_FUNCTION_USAGE.
248
249 2005-09-26  Richard Guenther  <rguenther@suse.de>
250
251         PR middle-end/15855
252         * gcse.c: Include hashtab.h, define ldst entry hashtable.
253         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
254         (ldst_entry): Use the hashtable instead of list-walking.
255         (find_rtx_in_ldst): Likewise.
256         (free_ldst_entry): Free the hashtable.
257         (compute_ld_motion_mems): Create the hashtable.
258         (trim_ld_motion_mems): Remove entry from hashtable if
259         removing it from list.
260         (compute_store_table): Likewise^2.
261         (store_motion): Free hashtable in case we did not see
262         any stores.
263
264 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
265
266         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
267         and arg1 if we are passing them to fold_build2.
268
269 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
270
271         PR 23828
272         * config/i386/i386.c (ix86_function_regparm): Fix the test for
273         a nested function.
274
275 2005-09-25  Richard Henderson  <rth@redhat.com>
276
277         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
278         SYMBOL_REF_TLS_MODEL to be correct.
279
280 2005-09-24  Richard Henderson  <rth@redhat.com>
281
282         * ipa-type-escape.c (discover_unique_type): Remove dead code at
283         end of function.  Reindent.
284
285 2005-09-24  Ian Lance Taylor  <ian@airs.com>
286
287         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
288         NEGATE_EXPR/BIT_NOT_EXPR case.
289
290 2005-09-24  Richard Henderson  <rth@redhat.com>
291
292         * c-common.c (handle_mode_attribute): When not modifying in place,
293         create subtypes for enumerations.
294         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
295         * gimplify.c (create_tmp_from_val): Likewise.
296
297 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
298
299         * config/i386/i386.md (*tls_global_dynamic_64,
300         *tls_local_dynamic_base_64): Add missing mode to call.
301         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
302
303 2005-09-24  Jan Hubicka  <jh@suse.cz>
304
305         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
306         (cgraph_clone_node): Likewise.
307         * cgraph.h (cgraph_clone_edge): Update prototype.
308         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
309         duplicated prototypes; add updating argument.
310         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
311         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
312         updating profile.
313         (cgraph_mark_inline_edge): Likewise.
314         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
315         (cgraph_flatten_node): Likewise.
316         (cgraph_decide_recursive_inlining): Likewise.
317         (cgraph_decide_inlining_of_small_function): Likewise.
318         * tree-optimize.c (tree_rest_of_compilation): Likewise.
319
320 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
321             Pete Steinmetz <steinmtz@us.ibm.com>
322
323         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
324         (rldic.): Set type to "compare".
325         (rldicr.): Same.
326         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
327         mfjmpr for MFCTR/MFLR.
328         (movdf_hardfloat64): Same.
329         (movdf_softfloat64): Same.  Correct order of store and move types.
330         (movti_string): Set type to store_ux/load_ux.
331         (load_multiple): Set type to load_ux.
332         (store_multiple): Set type to store_ux.
333         (movmemsi): Set type to store_ux.
334         (output_cbranch direct_return): Set type to jmpreg.
335         (stmw): Set type to store_ux.
336         (lmw): Set type to load_ux.
337         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
338         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
339         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
340         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
341         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
342         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
343         (rios1-fpstore): Increase latency to 3.
344         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
345         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
346
347 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
348             Andrew Pinski  <pinskia@physics.uc.edu>
349
350         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
351         operand2 constraint to "b".
352         (sync_<fetchop_name>di_internal): Same.
353         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
354         to "b".
355         (sync_old_<fetchop_name>di_internal): Same.
356         (sync_new_<fetchop_name>si_internal): Same.
357         (sync_new_<fetchop_name>di_internal): Same.
358
359 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
360
361         PR middle-end/23991
362         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
363         case, define as macros.
364
365         PR rtl-optimization/23837
366         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
367         clobber / clobber match between dest and p->first.
368
369         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
370         (no_conflict_move_test): Update comments.
371
372 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
373
374         * doc/install.texi: Update URL for Jacks.
375         * doc/sourcebuild.texi: Likewise.
376
377 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
378
379         PR target/24007
380         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
381         registers when choosing register preferences.
382         (movdf_hardfloat64): Same.
383
384 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
385
386         * expmed.c (expand_shift): Don't use the target of the rotate as
387         target for the first expanded shift insn.
388         * testsuite/gcc.dg/20050922-1.c: Testcase added.
389
390 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
391
392         PR tree-optimization/22438
393         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
394         preserved iv rhs rewriting specially.
395
396 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
397
398         * tree-data-ref.c (analyze_array_indexes): Only estimate when
399         estimate_only  is true.
400         * tree-flow.h (ref_contains_indirect_ref): New prototype.
401         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
402         tree-ssa-structalias.c 
403         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
404         ref_contains_indirect_ref.
405         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
406
407 2005-09-21  DJ Delorie  <dj@redhat.com>
408
409         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
410         MASK_PTR_A0D0.
411         (mn10300_return_in_memory): Support variable size types also.
412         (mn10300_pass_by_reference): Likewise.
413         (mn10300_function_value): New.
414         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
415         (FUNCTION_OUTGOING_VALUE): Likewise.
416         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
417         * doc/invoke.texi: Document it.
418
419 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
420
421         PR target/22585
422         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
423         force integer op1 into register for XFmode compares.
424
425 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
426
427         PR middle-end/23971
428         * expmed.c (alg_code): Add alg_impossible.
429         (alg_hash_entry): Add cost.
430         (synth_mult): Record alg_impossible in the hash table if
431         multiplication by a given integer is impossble within the
432         limit.  Speed up using alg_impossible.
433
434 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
435
436         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
437         argument.  Allow and set any offset if needs_anyoffset is passed
438         in.
439         (get_constraint_for): Add argument here too.
440         Pass it down.
441         (do_structure_copy): Pass NULL to get_constraint_for.
442         (handle_ptr_arith): Ditto.
443         (find_func_aliases): Ditto.
444
445 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
446
447         PR rtl-optimization/23898
448         * output.h (get_attr_min_length): Declare.
449         * final.c (get_attr_length_1): New function, broken out of:
450         (get_attr_length).
451         (get_attr_min_length): New function.
452         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
453         (duplicate_computed_gotos): Likewise.
454         * genattr.c (insn_min_length): Generate declaration.
455         * genattrtab.c (min_fn, min_attr_value): New functions.
456         (make_length_attrs): Generate insn_min_length.
457
458 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
459
460         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
461
462 2005-09-20  Richard Henderson  <rth@redhat.com>
463
464         PR tree-optimization/24059
465         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
466         EXPAND_STACK_PARM.
467
468 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
469
470         * c.opt (fextended-identifiers): New.
471         * c-opts.c (c_common_handle_option): Handle
472         -fextended-identifiers.
473         * doc/cpp.texi: Update documentation of extended identifiers.
474         * doc/cppopts.texi (-fextended-identifiers): Document.
475
476 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
477
478         PR tree-optimization/23929
479         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
480         if expr is NULL.
481
482         PR tree-optimization/23818
483         * tree-stdarg.c (execute_optimize_stdarg): Call
484         calculate_dominance_info.
485
486 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
487
488         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
489         (analyze_siv_subscript_cst_affine): Add weak SIV test.
490         (compute_overlap_steps_for_affine_1_2): Use
491         get_number_of_iters_for_loop.
492         (analyze_subscript_affine_affine): Check whether difference is
493         zero first.
494         Use get_number_of_iters_for_loop.
495         Check whether overlap occurs outside of bounds.
496         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
497
498 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
499
500         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
501         base register if possible.
502
503 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
504
505         PR tree-optimization/18463
506         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
507         converting it directly is not possible.
508         (chrec_convert_aggressive): New function.
509         * tree-chrec.h (chrec_convert_aggressive): Declare.
510         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
511         Fold chrec conversions aggressively if asked to.
512         (instantiate_parameters): Modified because of changes in
513         instantiate_parameters_1.
514
515 2005-09-19  Richard Henderson  <rth@redhat.com>
516
517         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
518         (reduc_splus_v2df): New.
519
520 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
521
522         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
523         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
524
525 2005-09-19  Richard Henderson  <rth@redhat.com>
526
527         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
528         vcondu<SSEMODE12>.
529
530 2005-09-19  Richard Henderson  <rth@redhat.com>
531
532         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
533         (ia64_expand_dot_prod_v8qi): New.
534         * config/ia64/ia64-protos.h: Update.
535         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
536         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
537         sdot_prodv8qi, sdot_prodv4hi): New.
538         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
539
540 2005-09-19  Richard Henderson  <rth@redhat.com>
541
542         PR 23941
543         * real.c (exact_real_truncate): Return false if the format cannot
544         represent the number as a normal.
545
546         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
547         for a memory source.
548
549 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
550
551         * tree-ssa-operands.c (swap_tree_operands): Export.
552         * tree.h (swap_tree_operands): Declare.
553         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
554         Call swap_tree_operands.
555         
556 2005-09-19  Richard Henderson  <rth@redhat.com>
557
558         * tree-flow.h (merge_alias_info): Declare.
559         * tree-ssa-copy.c (merge_alias_info): Export.
560         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
561         (vect_create_data_ref_ptr): Use create_iv directly.
562         (vectorizable_load): Use correct types for integer constants.
563         (vect_generate_tmps_on_preheader): Likewise.
564         (vect_gen_niters_for_prolog_loop): Likewise.
565
566 2005-09-19  Steven Bosscher  <stevenb@suse.de>
567
568         PR rtl-optimization/23943
569         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
570
571 2005-09-18  Jan Hubicka  <jh@suse.cz>
572
573         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
574
575 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
576
577         * varasm.c (output_constant): Do not abort on conversions to union
578         types between different sizes.
579
580 2005-09-18  Richard Guenther  <rguenther@suse.de>
581
582         PR middle-end/23944
583         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
584         fallback.
585
586 2005-09-18  Paul Brook  <paul@codesourcery.com>
587
588         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
589
590 2005-09-17  Richard Henderson  <rth@redhat.com>
591
592         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
593         * tree-ssa-loop.c (pass_vect_dce): Remove.
594         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
595         of pass_vectorize.
596
597 2005-09-17  Richard Henderson  <rth@redhat.com>
598
599         * tree-pass.h (pass_vect_dce): Declare.
600         * passes.c (init_optimization_passes): Add it.
601         * tree-flow.h (tree_ssa_dce): Declare.
602         * tree-ssa-dce.c (tree_ssa_dce): Export.
603         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
604         (gate_tree_vectorize): ... here.
605         (pass_vect_dce): New.
606
607 2005-09-17  Jan Hubicka  <jh@suse.cz>
608
609         * except.c (struct eh_status): Turn region_array into vec.
610         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
611         convert_from_eh_region_ranges, find_exception_handler_labels, 
612         current_function_has_exception_handlers, assign_filter_values, 
613         build_post_landing_pads, dw2_build_landing_pads,
614         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
615         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
616         foreach_reachable_handler, can_throw_internal_1,
617         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
618         region_array.
619         (duplicate_eh_region_1): Update region_array.
620         (duplicate_eh_regions): Resize region_array and avoid recomputing.
621
622 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
623
624         PR middle-end/22067
625         * expmed.c (expand_mult): Substitute simple register for op0 when
626         computing max_cost.
627
628 2005-09-17  Richard Henderson  <rth@redhat.com>
629
630         * expr.c (emit_move_via_integer): Add force argument, pass it on
631         to emit_move_change_mode.  Update callers.
632         (emit_move_complex): Pass true to new force argument.
633         * function.c (expand_function_end): Move expand_eh_return call
634         earlier.  Merge sub-word complex values into a pseudo before
635         copying to the return hard register.
636
637 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
638
639         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
640         between different sizes.
641
642 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
643
644         PR 23903
645
646         * passes.c (init_optimization_passes): Register dump files for
647         IPA passes first.
648
649 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
650
651         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
652         * config/s390/s390.c (s390_overlap_p): New function.
653         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
654         peephole2, "*xc" peephole2): Added overlap check to the peephole2
655         condition.
656
657 2005-09-16  Richard Guenther  <rguenther@suse.de>
658
659         * ipa-pure-const.c (static_execute): Free auxiliar information.
660         * ipa-type-escape.c (discover_unique_type): Free temporary key.
661         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
662
663 2005-09-15  DJ Delorie  <dj@redhat.com>
664
665         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
666
667 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
668
669         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
670         to order operands.
671         (swap_commutative_operands_with_target): New.
672
673 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
674
675         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
676         parameter.
677         Update callers.
678         (estimate_iters_using_array): New function.
679         * tree-data-ref.h (estimate_iters_using_array): Prototype
680         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
681         Use estimate_iters_using_array instead of analyze_array.
682         
683 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
684
685         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
686         as addressable.
687
688 2005-09-15  Michael Matz  <matz@suse.de>
689
690         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
691
692 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
693
694         PR tree-optimization/23835
695         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
696         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
697
698 2005-09-14  Richard Henderson  <rth@redhat.com>
699
700         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
701         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
702
703 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
704
705         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
706         in the ARRAY_TYPE case.
707
708 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
709
710         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
711
712 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
713
714         PR middle-end/22480
715         * tree-vect-transform.c (vectorizable_operation): Return false for
716         scalar shift operations and for vector shift operations with
717         non-invariant shift arguments.  Use scalar tree operand op1 as
718         a shift operand when vector shift insn pattern uses scalar shift
719         operand.
720         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
721
722 2005-09-14  Olivier Hainque  <hainque@adacore.com>
723
724         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
725         value if it has side-effects.
726
727 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
728
729         PR target/22068
730         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
731
732 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
733
734         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
735         passed as NAME as if it were label at start of function code.
736
737 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
738
739         * config/sh/sh.md (*movv4sf_i): Add general register cases to
740         the constraints.
741
742 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
743
744         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
745         as early clobber.  Rewrite so the PIC register is not implicitly used.
746
747 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
748
749         * tree.c (annotate_with_file_line): Compare line numbers before
750         file names.
751
752 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
753
754         PR target/23816
755         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
756         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
757
758 2005-09-13  Ian Lance Taylor  <ian@airs.com>
759
760         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
761         than a HOST_WIDEST_INT to gen_doloop_begin.
762
763 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
764
765         * tree-dfa.c (dump_variable): Guard against NULL annotations.
766
767 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
768
769         PR tree-optimize/23817
770         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
771
772 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
773
774         PR target/23774
775         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
776         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
777         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
778         (restore_stack_nonlocal): Likewise.
779         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
780
781 2005-09-12  Ian Lance Taylor  <ian@airs.com>
782
783         PR g++/7874
784         * c.opt (ffriend-injection): New C++ option.
785         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
786         (C++ Dialect Options): Document -ffriend-injection.
787
788 2005-09-12  Josh Conner  <jconner@apple.com>
789
790         PR middle-end/23237
791         * ipa-reference.c (static_execute): Don't mark variables in
792         named sections TREE_READONLY.
793
794 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
795
796         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
797         stack_tie.
798
799 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
800
801         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and 
802         V_MUST_DEF instead of just the first_use_p.
803         Don't mark the virtual variables for renaming on the statement which 
804         is being removed.
805         (pass_dse): Remove TODO_update_ssa.
806
807 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
808
809         PR middle-end/23290
810         * stor-layout.c (compute_record_mode): For records with a single
811         field, actually check the field's mode size against the type size.
812
813         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
814         registers for TARGET_SHMEDIA.
815         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
816         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
817         of GENERAL_REGS and FP_REGS.
818
819 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
820
821         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
822
823 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
824
825         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
826         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
827         are omitted.  Exclude stack_tie insn too.
828
829 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
830
831         PR rtl-optimization/23098
832         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
833         0.0f is easy.
834         * config/rs6000/rs6000.md (movdf splitter): Use
835         const_double_operand predicate for TARGET_POWERPC64.
836         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
837         SYMBOL_REF method to ABI_V4.
838
839         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
840         replace_equiv_address.
841         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
842         rs6000_sr_alias_set and MEM_NOTRAP.
843         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
844
845 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
846
847         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
848         handle CALL_EXPR again.
849
850 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
851
852         * arm/predicates.md (alignable_memory_operand): Delete.
853
854 2005-09-10  Richard Henderson  <rth@redhat.com>
855
856         PR debug/23806
857         * dbxout.c (dbxout_expand_expr): New.
858         (dbxout_symbol): Use it.
859
860 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
861
862         * arm.c (arm_gen_rotated_half_load): Delete.
863         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
864         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
865         (thumb_set_return_address): Likewise.
866         (thumb_load_double_from_address): Use adjust_address.
867         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
868         (extendhsisi2_mem, movhi_bytes): Use change_address.
869         (movhi): Use widen_memory_access.
870         (reload_out_df): Use replace_equiv_address.
871         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
872
873 2005-09-09  Richard Henderson  <rth@redhat.com>
874
875         PR debug/20998
876         * dbxout.c: Include expr.h.
877         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
878         (dbxout_symbol): Handle DECL_VALUE_EXPR.
879         * Makefile.in (dbxout.o): Add EXPR_H.
880
881 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
882
883         PR tree-optimization/23509
884         * tree-cfg.c (replace_uses_by): Use replace_exp.
885         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
886         pointers have name_mem_tag or type_mem_tag set.
887
888 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
889
890         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use 
891         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
892         of wrongly accessing operands.
893
894 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
895
896         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
897         * tree-chrec.c: Include tree-scalar-evolution.h.
898         (chrec_convert): Instantiate the base and step before calling
899         scev_probably_wraps_p that would fail on parametric evolutions.
900         Collect all the fails into a single section failed_to_convert,
901         print a diagnostic, and return chrec_dont_know instead of calling
902         fold_convert.
903         * tree-scalar-evolution.c (loop_closed_phi_def): New.
904         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
905         phi nodes.
906         (scev_const_prop): Don't replace the definition of a loop closed ssa
907         phi node by itself, or by another loop closed ssa phi node.
908         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
909         that base and step are defined.
910
911 2005-09-09  Richard Guenther  <rguenther@suse.de>
912
913         PR c++/23624
914         * fold-const.c (fold_ternary): Check truth_value_p before
915         calling invert_truthvalue.
916
917 2005-09-09  Nick Clifton  <nickc@redhat.com>
918
919         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
920         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
921         dimension of these arrays.
922         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
923         these arrays.
924         * longlong.h: Only provide a prototype for the __clz_tab[] array
925         if this header has not been included from libgcc2.h.
926         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
927         defining own types.
928         Provide prototypes for exported functions.
929         Use the __clz_tab[] and __popcount_tab[] arrays provided by
930         libgcc2.c.
931
932 2005-09-08  Josh Conner  <jconner@apple.com>
933
934         PR c++/21135
935         PR c++/23180
936         * expr.c (expand_expr_addr_expr_1): Don't invoke
937         expand_simple_binop for EXPAND_INITIALIZER.
938
939 2005-09-08  Richard Henderson  <rth@redhat.com>
940
941         PR debug/23190
942         * toplev.c (wrapup_global_declaration_1): Split out ...
943         (wrapup_global_declaration_2): ... from ...
944         (wrapup_global_declarations): ... here.  Return bool.
945         (check_global_declaration_1): Split out ...
946         (check_global_declarations): from here.
947         (emit_debug_global_declarations): New.
948         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
949         check_global_declaration_1, emit_debug_global_declarations): Declare.
950         * c-decl.c (c_write_global_declarations_1): Don't create a vector
951         of decls.  Call wrapup_global_declaration_1,
952         wrapup_global_declaration_2, check_global_declaration_1 directly.
953         (c_write_global_declarations_2): New.
954         (ext_block): New.
955         (c_write_global_declarations): Call c_write_global_declarations_2.
956         * langhooks.c (write_global_declarations): Call
957         emit_debug_global_declarations.
958
959         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
960         remove decls that have DECL_RTL_SET_P.
961         * passes.c (rest_of_decl_compilation): Invoke
962         cgraph_varpool_finalize_decl for all but functions.
963
964 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
965
966         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
967         the result of a conversion if the new min and max cannot be compared.
968
969 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
970
971         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
972         (override_options): Setting s390_sr_alias_set removed.
973         (save_fpr, save_gprs): Set alias set to vararg or frame.
974         (restore_fpr, restore_gprs, s390_emit_prologue): Replace 
975         s390_sr_alias_set with get_frame_alias_set ().
976         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
977         get_varargs_alias_set ().
978
979 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
980
981         PR objc/20574
982         PR objc/19324
983         * c-parser.c (c_parser_objc_method_definition): If the next
984         token is not "{", error out and don't start the function.
985
986 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
987
988         * tree-vrp.c (extract_range_from_expr): Move the check for non
989         nullness after the check for gimple invariant.
990
991 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
992
993         * tree.c (host_integerp, tree_low_cst): Correct function comment.
994
995 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
996
997         PR target/23747
998         * config/m32r.md (movmemsi_internal): Canonicalize order of
999         operands in PLUS component of template.
1000
1001 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
1002
1003         * reload1.c (fixup_eh_region_note): Remove assertion.
1004         (fixup_abnormal_edges): Reverted removal of call to 
1005         find_many_sub_basic_blocks made on 2005-08-31.
1006
1007 2005-09-07  Richard Henderson  <rth@redhat.com>
1008
1009         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
1010         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
1011         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
1012         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
1013         rearrange for better packing.
1014         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
1015         (lookup_cfa_1): Remove inline marker.
1016         (cfa_equal_p): Split out of ...
1017         (def_cfa_1): ... here.  Use INVALID_REGNUM.
1018         (build_cfa_loc): Handle !cfa->indirect.
1019         (frame_pointer_cfa_offset): New.
1020         (dbx_reg_number): Assert register elimination performed; do
1021         leaf register remapping.
1022         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
1023         (eliminate_reg_to_offset): New.
1024         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
1025         for verifiably local stack frame addresses; re-base to CFA.
1026         (mem_loc_descriptor): Remove can_use_fbreg argument.
1027         (concat_loc_descriptor, loc_descriptor): Likewise.
1028         (containing_function_has_frame_base): Remove.
1029         (rtl_for_decl_location): Don't do register elimination or
1030         leaf register remapping here.
1031         (secname_for_decl): Split out from ..
1032         (add_location_or_const_value_attribute): ... here.
1033         (convert_cfa_to_loc_list): New.
1034         (compute_frame_pointer_to_cfa_displacement): New.
1035         (gen_subprogram_die): Use them.
1036         * tree.h (frame_base_decl): Remove.
1037         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
1038         (prologue_stack_adjust): Remove.
1039         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
1040         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
1041         (set_frame_base_location): Remove.
1042         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
1043         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
1044         (vt_add_function_parameters): Don't eliminate_regs.
1045         (vt_initialize): Don't create frame_base_decl.
1046
1047 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1048
1049         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
1050         version of GNU binutils for 4.x and later.
1051
1052 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
1053
1054         * ggc-page.c (ggc_push_context): Remove.
1055         (ggc_pop_context): Likewise.
1056         * ggc.h (ggc_push_context): Remove.
1057         (ggc_pop_context): Likewise.
1058
1059 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
1060
1061         PR target/8973
1062         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
1063         returning from an interrupt handler.
1064
1065 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
1066
1067         PR target/8972
1068         * config/arc/arc.c (output_shift): Add check for loop count when
1069         optimizing.
1070
1071 2005-09-06  Steven Bosscher  <stevenb@suse.de>
1072
1073         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
1074         form manually.
1075         (abs_replacement): Likewise.
1076         (pass_phiopt): Remove TODO_update_ssa.
1077
1078 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
1079
1080         PR c/23075
1081         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
1082         if "return with no value, in function returning non-void" warning
1083         has been issued.
1084         * tree-cfg.c (execute_warn_function_return): Don't look at
1085         RETURN_EXPRs with TREE_NO_WARNING set.
1086
1087         PR target/22362
1088         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
1089         for internal functions doesn't use registers used by global registers
1090         variables.  Use fewer register parameters if there are global register
1091         variables.
1092
1093 2005-09-06  Olivier Hainque  <hainque@adacore.com>
1094             Eric Botcazou  <ebotcazou@adacore.com>
1095
1096         PR middle-end/14997
1097         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
1098         when we would be extracting outside its bit span (bitpos+bitsize
1099         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
1100         Ada unchecked conversions.
1101
1102 2005-09-06  Steven Bosscher  <stevenb@suse.de>
1103
1104         * tree-ssa-pre.c (try_look_through_load): New function.
1105         (compute_avail): Use it to try to look through loads for some
1106         more useful expressions.
1107
1108 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
1109
1110         * simplify-rtx.c (simplify_binary_operation_1): Correct the 
1111         condition for detecting cases like (a&a) and (a^a).
1112
1113 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
1114
1115         * common.opt: Add option ftree-vect-loop-version.
1116         * params.def: Add --param vect-max-version-checks.
1117         * doc/invoke.texi: Document ftree-vect-loop-version and
1118         --param vect-max-version-checks.
1119         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
1120         may_misalign_stmts and defines for accessors.
1121         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
1122         LOOP_VINFO_MAY_MISALIGN_STMTS.
1123         (destroy_loop_vec_info): VEC_free for
1124         LOOP_VINFO_MAY_MISALIGN_STMTS.
1125         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
1126         Update documentation.
1127         (vect_update_misalignment_for_peel): New.
1128         (vect_enhance_data_refs_alignment): Update to choose loop
1129         peeling or loop versioning if appropriate for the (potentially)
1130         unaligned data references in the loop.
1131         (vect_analyze_data_refs_alignment): Remove call to
1132         vect_enhance_data_refs_alignment so the checks can be done
1133         earlier.
1134         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
1135         and move up call to vect_analyze_data_refs_alignment.
1136         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
1137         (vect_transform_loop): Add call to loop_version.
1138
1139 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
1140
1141         PR rtl-optimization/23098
1142         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
1143         * simplify-rtx.c (constant_pool_reference_p): New function.
1144         * rtl.h (constant_pool_reference_p): New prototype.
1145         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
1146         constant_pool_reference_p in condition and
1147         avoid_constant_pool_reference in preparation statements.
1148
1149 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1150
1151         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for 
1152         STRICT_LOW_PART SETs.
1153
1154 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
1155
1156         PR middle-end/21460
1157         * except.c (sjlj_emit_function_enter): Find the function begin
1158         note even when it's not in first basic block.
1159
1160 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
1161
1162         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
1163         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
1164         * aclocal.m4: Regenerate.
1165
1166 2005-09-05  DJ Delorie  <dj@redhat.com>
1167
1168         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
1169         of macro.
1170
1171 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
1172
1173         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
1174         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
1175         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
1176         Follow spelling conventions.
1177         * doc/invoke.texi: Follow spelling conventions.
1178
1179 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
1180
1181         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
1182         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
1183         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
1184
1185 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
1186
1187         PR target/23683
1188         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
1189         (output_stack_adjust): Use gen_tmp_stack_mem.
1190         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
1191         (sh_set_return_address, sh_allocate_initial_value): Likewise.
1192         (sh_get_pr_initial_val): Likewise.
1193         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
1194         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
1195         * sh.md (divsi_inv_m0): Use gen_const_mem.
1196         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
1197         (movdf_i4+1): Use gen_tmp_stack_mem.
1198         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
1199         (fpu_switch+2): Likewise.
1200         (movv4sf_i, movv16sf_i): Use adjust_address.
1201         (symGOT_load): Set MEM_NOTRAP_P bit.
1202
1203 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1204
1205         PR target/23721
1206         * pa.c (emit_move_sequence): Fix typo in last change.
1207
1208 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
1209
1210         PR rtl-optimization/23454
1211         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
1212         is true.
1213
1214 2005-09-03  Richard Henderson  <rth@redhat.com>
1215             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1216
1217         PR middle-end/23671
1218         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
1219         gen_rtx_MEM.
1220
1221 2005-09-02  Nicolas Pitre <nico@cam.org>
1222
1223         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
1224         to bit_count to 32 bits.
1225
1226 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
1227
1228         PR c++/23167
1229         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
1230         generating synthetic loads from volatile lvalues.
1231
1232 005-09-02  Nick Clifton  <nickc@redhat.com>
1233
1234         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
1235         __ctzhi2, __clzhi2): New functions.
1236
1237 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
1238
1239         PR middle-end/23547
1240         * tree-nested.c (struct var_map_elt): Mark with GTY.
1241         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
1242         var_map_elt.
1243         (lookup_field_for_decl): Allocate new element in GC memory.
1244         (lookup_tramp_for_decl): Likewise.
1245         (convert_nl_goto_reference): Likewise
1246         (create_nesting_tree): Allocate info in GC memory. Likewise for
1247         info->var_map.
1248         (free_nesting_tree): Free with ggc_free instead of free.
1249         (root): New static variable.
1250         (lower_nested_functions): Remove root as local variable.  And zero out
1251         root at the end of the function.
1252
1253 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
1254
1255         PR rtl-optimization/20365
1256         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
1257         to short.  New member ix.
1258         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
1259         (simplify_plus_minus): Initialize ix members before calling qsort.
1260
1261 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
1262
1263         PR tree-optimization/23626
1264         * tree-cfg.c (replace_uses_by): Clean up eh info.
1265
1266 2005-09-01  DJ Delorie  <dj@redhat.com>
1267
1268         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
1269         fprintf.
1270
1271 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
1272
1273         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
1274         (rs6000_split_multireg_move): Use replace_equiv_address instead of
1275         gen_rtx_MEM.
1276
1277 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1278
1279         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
1280         do not issue warning for a variable definition following
1281         a declaration.
1282
1283 2005-09-01  Richard Henderson  <rth@redhat.com>
1284
1285         PR 23668
1286         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
1287         conversion to CONST_VECTOR.
1288
1289 2005-09-01  Richard Henderson  <rth@redhat.com>
1290
1291         PR 23676
1292         * reload1.c (reload_as_needed): Check !CALL_P before calling
1293         fixup_eh_region_note.
1294         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
1295
1296 2005-09-01  DJ Delorie  <dj@redhat.com>
1297
1298         * varasm.c (output_constant): Let the target resolve
1299         conversions of addresses to non-default pointer sizes.
1300
1301 2005-09-01  Nicolas Pitre <nico@cam.org>
1302
1303         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
1304         to alow matching ARM pre-indexed addressing mode.
1305         (arm_override_options): Remove now irrelevant comment.
1306
1307 2005-09-01  Phil Edwards  <phil@codesourcery.com>
1308
1309         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
1310         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
1311         * config/i386/vxworks.h:  Likewise.
1312         * config/i386/t-vxworksae:  New file, for VxWorks AE.
1313         * config/i386/vxworksae.h:  Likewise.
1314
1315 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
1316
1317         PR tree-optimization/23410
1318         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
1319         sequence is not wrapping during the first step.
1320
1321 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
1322
1323         PR debug/7241
1324         * dwarf2out.c (base_type_die): Compare char_type_node with
1325         TYPE_MAIN_VARIANT (type), not type.
1326
1327 2005-09-01  Richard Guenther  <rguenther@suse.de>
1328
1329         PR tree-optimization/15366
1330         * common.opt: Add -finline-functions-called-once.
1331         Put -fearly-inlining in alphabetically ordered place.
1332         * doc/invoke.texi: Document new option.
1333         * ipa-inline.c (cgraph_decide_inlining): Honour
1334         flag_inline_functions_called_once.
1335
1336 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
1337
1338         PR rtl-optimization/23478
1339         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
1340         (alloc_qty): Initialize it.
1341         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
1342         (combine_regs): Combine also n_throwing_calls_crossed fields.
1343         (find_free_reg): Don't attempt to caller-save pseudos crossing
1344         calls that might throw.
1345         * global.c (struct allocno): Add throwing_calls_crossed field.
1346         (global_alloc): Revert 2005-08-22 change.  Initialize
1347         throwing_calls_crossed.
1348         (find_reg): Don't attempt to caller-save pseudos crossing calls that
1349         might throw.
1350
1351 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
1352
1353         PR target/23649
1354         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
1355         (mask64_operand): Reinstate code prior to 2005-06-11 change.
1356         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
1357         (and64_2_operand): Tweak to use predicate.
1358         (and_operand): Adjust for mask_operand changes.
1359         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
1360         (print_operand): Likewise.
1361         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
1362         (mask64_1or2_operand): Delete.
1363         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
1364         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
1365         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
1366         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
1367         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
1368         (rotldi3_internal4): Likewise.
1369         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
1370         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
1371         (ashldi3_internal7): Likewise.
1372         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
1373         (ashldi3_internal, ashldi3_internal9 split): Likewise.
1374         (anddi3 split): Don't match mask64_operand.
1375         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
1376         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
1377         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
1378         't' splitter predicate.
1379         (movdi_internal64 + 2): Revert 2005-06-11 change.
1380
1381 2005-08-31  DJ Delorie  <dj@redhat.com>
1382
1383         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
1384         (m32c_asm_integer): Add support for 32 bit pointers.
1385
1386 2005-08-31  Richard Henderson  <rth@redhat.com>
1387
1388         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
1389         component-like references for setting MEM_NOTRAP_P.
1390
1391         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
1392         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1393
1394 2005-08-31  Richard Henderson  <rth@redhat.com>
1395
1396         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
1397         into a pseudo before applying gen_lowpart.
1398
1399 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
1400
1401         * doc/install.texi (Specific): Update cctools version required
1402         for full functionality.
1403         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
1404         linkers as -macosx_version_min.
1405
1406 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
1407
1408         PR target/21255
1409         * sh.c (print_operand, %R and %S): Add handling of floating point
1410         registers, memory, constants and invalid operands.
1411
1412 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
1413
1414         * ipa-pure-const.c: Change dump name.
1415
1416 2005-08-31 Uros Bizjak <uros@kss-loka.si>
1417
1418         PR target/23570
1419         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
1420         to "reg_or_0_operand".
1421         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
1422
1423 2005-08-31  Dale Johannesen  <dalej@apple.com>
1424
1425         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
1426         loops that count down.
1427
1428 2005-08-31  Richard Henderson  <rth@redhat.com>
1429
1430         PR rtl-opt/23601
1431         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
1432         (fixup_eh_region_note): New.
1433         (reload_as_needed): Call it.
1434         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
1435         don't call find_many_sub_basic_blocks; call verify_flow_info.
1436         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
1437         (keep_stack_depressed): Likewise.
1438         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
1439
1440 2005-08-31  Richard Henderson  <rth@redhat.com>
1441
1442         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
1443         fp return matching.
1444
1445 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
1446
1447         * expr.c (expand_expr_real_1): Compare size of address 
1448         mode to target's address mode size in deciding expansion of 
1449         the constant address.
1450
1451 2005-08-31  Richard Guenther  <rguenther@suse.de>
1452
1453         PR middle-end/23477
1454         * expr.c (all_zeros_p): New function.
1455         (expand_expr_real_1): Handle the case of an all-zero
1456         non-addressable constructor separately.
1457
1458 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
1459
1460         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
1461         arguments, adjust all callers.
1462         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
1463
1464 2005-08-30  Richard Henderson  <rth@redhat.com>
1465
1466         PR target/23630
1467         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
1468         whenever the mode sizes match.
1469
1470 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
1471
1472         * calls.c (load_register_parameters): Fix comment typo.
1473         * expr.c (emit_push_insn): Comment formatting.
1474
1475 2005-08-30  Ian Lance Taylor  <ian@airs.com>
1476
1477         * config/i386/x-cygwin (host-cygwin): Change dependency from
1478         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
1479
1480 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
1481
1482         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
1483         parts of 'vals'.
1484
1485 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
1486
1487         PR middle-end/23408
1488         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
1489         call to ggc_collect.
1490
1491 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
1492
1493         PR bootstrap/21268
1494         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
1495         beginning.  Remove $(INCLUDES) from all the rules, if following
1496         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
1497
1498 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
1499
1500         PR middle-end/23484
1501         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
1502         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
1503         not constant, but maxlen is, don't set len to maxlen, rather
1504         set maxlen to len if len is a constant.
1505
1506 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
1507
1508         PR tree-optimization/23475
1509         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
1510         and counts.
1511
1512 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
1513
1514         Fix PR middle-end/22455
1515
1516         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
1517         Checksum only the parts of the tree that exist for the tree code.
1518
1519 2005-08-28  Dale Johannesen  <dalej@apple.com>
1520
1521         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
1522
1523 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
1524
1525         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
1526
1527 2005-08-28  Richard Henderson  <rth@redhat.com>
1528
1529         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
1530         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
1531         of char_type_node.
1532
1533 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
1534
1535         PR ada/23593
1536         * builtins.c (get_memory_rtx): Don't strip nops
1537         in between COMPONENT_REFs.
1538
1539 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
1540
1541         PR middle-end/23463
1542         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
1543         types.
1544         (gimplify_modify_expr): Check for zero sized types and gimplify the
1545         rhs and lhs as statements.
1546
1547 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
1548
1549         PR libgcj/23508
1550         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
1551         state for return address column of signal frames.
1552
1553 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
1554
1555         PR target/23539
1556         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
1557         bytes >= 2 not bytes == 2.
1558         (expand_block_move): Same.
1559
1560 2005-08-27  Richard Guenther  <rguenther@suse.de>
1561
1562         PR target/23575
1563         * config/i386/sse.md (sse2_movsd): Add missing closing
1564         braces.
1565
1566 2005-08-27  Paul Brook  <paul@codesourcery.com>
1567
1568         * genrecog.c (enum decision_type): Add DT_num_insns.
1569         (struct decision_test): Add u.num_insns.
1570         (add_to_sequence): Add DT_num_insns test.
1571         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
1572         (write_cond, debug_decision_2): Ditto.
1573         (change_state): Assume peep2_next_insn never fails.
1574         Remove "afterward" argument.
1575         (write afterward, write_tree): Update to match.
1576         * recog.c (peep2_current_count): New variable.
1577         (peep2_next_insn): Check it.
1578         (peephole2_optimize): Set peep2_current_count.
1579         * recog.h (peep2_current_count): Declare.
1580
1581 2005-08-26  Josh Conner  <jconner@apple.com>
1582
1583         PR middle-end/23584
1584         * ipa-pure-const.c (check_tree): Check for volatile-ness
1585         when considering a dereference.
1586
1587 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
1588
1589         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
1590
1591 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
1592
1593         PR rtl-optimization/23561
1594         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
1595         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
1596         at most LEN bytes long memory fits into the field.
1597         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
1598         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
1599         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
1600
1601 2005-08-26  Richard Henderson  <rth@redhat.com>
1602
1603         PR rtl-opt/23560
1604         * loop.c (biased_biv_may_wrap_p): New.
1605         (maybe_eliminate_biv_1): Use it to suppress non-equality
1606         comparison transformations.  Delete disabled code.
1607
1608 2005-08-26  Ian Lance Taylor  <ian@airs.com>
1609
1610         * combine.c (make_extraction): Avoid reference outside object.
1611
1612 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
1613
1614         * stor-layout.c (finalize_type_size): Restore behaviour for
1615         non-aggregate types to the status quo ante of the patch for
1616         pr 23467.  Document why it matters.
1617
1618 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
1619
1620         PR c/23506
1621         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
1622         array by one element, initialize the BT_LAST element with NULL.
1623
1624 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
1625
1626         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
1627         optimizing for size.
1628         (plus_eqsi): Same.
1629         (compare_plus_eqsi): Same.
1630         (plus_eqsi_compare): Same.
1631         (neg_eq0<mode>): Same.
1632         (neg_eq<mode>): Same.
1633
1634         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
1635         PROCESSOR_POWER4.
1636
1637 2005-08-26  Nick Clifton  <nickc@redhat.com>
1638
1639         * config/v850/v850.c (ep_memory_operand): Return FALSE if
1640         TARGET_EP is not defined.
1641         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
1642         TARGET_EP is enabled.
1643         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
1644         * config/v850/v850.md (save_all_interrupt): Only use the EP
1645         register if TARGET_EP is defined.
1646         (restore_all_interrupt): Likewise.
1647         * config/v850/lib1funcs.asm: Update functions so that the EP
1648         register is only used if __EP__ is defined.
1649
1650 2005-08-26  David Ung  <davidu@mips.com>
1651
1652         * config/mips/mips.c (mips_expand_prologue): Handle case when
1653         generating for MIPS16 and the outgoing argument area is more than
1654         SMALL_OPERAND. Use the frame pointer as temporary to generate the
1655         add instruction.
1656
1657 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
1658
1659         * config/crx/crx.md: Make doloop_end pattern usage controllable
1660         via mloop-nesting=<max-nesting> command line switch. Make sure
1661         the combiner cannot use doloop_end_<mode> in an illegal way.
1662         * config/crx/crx.c: Use regs up to r6 for argument passing.
1663         Refine crx_address_cost (non cst4 displacements are expensive).
1664         * config/crx/crx.opt: Add switch for mloop-nesting=.
1665
1666 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
1667
1668         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
1669         (UNSPEC_MVST): New constant.
1670
1671 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
1672
1673         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
1674         Reject operands containing eliminable registers.
1675         * testsuite/gcc.dg/20050825-1.c: New testcase.
1676
1677 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
1678             Jan Hubicka  <jh@suse.cz>
1679
1680         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
1681
1682 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
1683
1684         PR tree-optimization/23546
1685         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
1686         and REAL_CST nodes.
1687
1688 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
1689
1690         * params.def (PARAM_MIN_SPEC_PROB): New.
1691         * sched-rgn.c (MIN_PROBABILITY): Delete.
1692         (compute_trg_info): Convert to PARAM_VALUE.
1693         * doc/invoke.texi (param): Document min-spec-prob.
1694
1695 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
1696
1697         * config/darwin.h: define __PIC__
1698         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
1699         TARGET_OS_CPP_BUILTINS macro.
1700
1701 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
1702
1703         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
1704         yesterday.
1705
1706 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
1707
1708         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
1709         to duplicate_block.
1710         * cfghooks.c (duplicate_block): Added position where to place
1711         new block as argument.
1712         * cfghooks.h (duplicate_block): Declaration changed.
1713         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
1714         duplicate_block.
1715         * cfglayout.h (copy_bbs): Declaration changed.
1716         * cfgloop.h (loop_version): Declaration changed.
1717         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
1718         position to copy_bbs.
1719         (loop_version): Pass position to duplicate_loop_to_header_edge.
1720         Add place_after argument and position new blocks according to
1721         it.
1722         * modulo-sched.c (sms_schedule): Pass place_after argument
1723         to loop_version.
1724         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
1725         * tree-cfg.c (split_edge_bb_loc): New function.
1726         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
1727         to determine position of new blocks.
1728         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
1729         to loop_version.
1730         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
1731         argument to duplicate_block.
1732         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1733         Pass position to copy_bbs.
1734
1735 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
1736
1737         * fold-const.c (ptr_difference_const): Use
1738         cst_and_fits_in_hwi instead of host_integerp.
1739
1740 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
1741
1742         * config/darwin.c (gen_pic_offset): New.
1743         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
1744         Use it.
1745
1746 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
1747
1748         PR tree-optimization/23486
1749         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
1750
1751 2005-08-23  Phil Edwards  <phil@codesourcery.com>
1752
1753         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
1754         remove use_collect2.
1755         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
1756
1757         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
1758         configuration files to override the default value.
1759
1760         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
1761         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
1762         * config/vx-common.h:  New file, split out from...
1763         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
1764         * config/vxworksae.h:  New file, for VxWorks AE.
1765         * config/vxworks.opt:  New file.
1766         * config/vxlib.c:  Update for VxWorks 6.
1767
1768         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
1769         other MULTILIB_* variables appropriately.
1770         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
1771         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
1772         * config/rs6000/vxworks.h:  Update for VxWorks 6.
1773         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
1774
1775 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
1776
1777         PR target/20799
1778         * config/darwin.c (machopic_select_section): Remove the hack to
1779         mark "::operator new" and "::operator delete" for coalescing
1780         even though they are not weak.
1781
1782 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
1783
1784         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
1785         * configure: Regenerate.
1786
1787 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
1788
1789         PR middle-end/23517
1790         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
1791         between vectors.
1792         * convert.c (convert_to_integer, convert_to_vector): Likewise.
1793         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
1794         Likewise.
1795
1796 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
1797
1798         * config/rs6000/predicates.md (equality_operator): New.
1799         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
1800         comparison with a large constant.
1801
1802 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
1803
1804         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
1805
1806 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
1807
1808         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
1809         registers is even, and we have a hardware double precision fp,
1810         align the buffer.
1811         (sh_gimplify_va_arg_expr): For floating point arguments, consider
1812         size of current argument when checking if argument was passed in
1813         registers.
1814
1815         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
1816
1817         PR middle-end/23467
1818         * stor-layout.c (finalize_type_size): Dont override
1819         existing alignment with a smaller alignment from the mode.
1820
1821 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
1822
1823         * lambda-code.c (lambda_vector_lexico_pos): Moved...
1824         * lambda.h (lambda_vector_lexico_pos): ... here.
1825         * tree-data-ref.c (build_classic_dist_vector): Return false when
1826         the distance vector is lexicographically negative.
1827
1828 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
1829
1830         PR tree-optimization/23511
1831         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't 
1832         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
1833
1834 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
1835
1836         PR tree-optimization/22043
1837         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
1838         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
1839         If ALLOW_FLEXARR, handle types ending with flexible array member.
1840         Pass false as second argument to recursive count_type_elements calls.
1841         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
1842         argument to count_type_elements call.
1843         * tree-sra.c (decide_block_copy): Likewise.
1844         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
1845         for a constant-sized object, set cleared as well.  Pass true as
1846         second argument to count_type_elements call.
1847
1848 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
1849
1850         PR target/21571
1851         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
1852         from legitimate_small_data_p, and make global.  Update use.
1853         Remove forward declaration.
1854         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
1855         Declare.
1856         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
1857
1858 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
1859
1860         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
1861         of scratch intermediates.
1862         (eq<mode>_compare): Same.
1863         (neg_eq0<mode>): New.
1864         (neg_eq<mode>): Convert to define_insn_and_split.
1865
1866 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
1867
1868         PR target/23070
1869         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
1870         stdarg functions, set/clear the fp marker even when no variable
1871         args are passed.
1872         * config/rs6000/sysv4.opt (mprototype): Describe.
1873
1874 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
1875
1876         PR rtl-optimization/23478
1877         * regs.h (reg_info): Add throw_calls_crossed.
1878         (REG_N_THROWING_CALLS_CROSSED): Define.
1879         * flow.c (allocate_reg_life_data): Initialize
1880         REG_N_THROWING_CALLS_CROSSED.
1881         (propagate_one_insn, attempt_auto_inc): Update
1882         REG_N_THROWING_CALLS_CROSSED.
1883         * global.c (global_alloc): Don't allocate pseudos across
1884         calls that may throw.
1885
1886 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
1887
1888         PR c/18715
1889         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
1890         value is inbetween the range if we did not find an exact match.
1891
1892 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
1893
1894         * doc/invoke.texi (Option Summary): Add ms1 options.
1895         * doc/extend.texi: Document interrupt handler attribute for ms1.
1896         * doc/md.texi: Document ms1 constraints.
1897         * config.gcc: Add ms1-*-elf.
1898         * config/ms1/ms1.h: New.
1899         * config/ms1/ms1.c: New.
1900         * config/ms1/ms1.md: New.
1901         * config/ms1/ms1-protos.h: New.
1902         * config/ms1/ABI.txt: New.
1903         * config/ms1/crti.asm: New.
1904         * config/ms1/crtn.asm: New.
1905         * config/ms1/lib2extra-funcs.c: New.
1906         * config/ms1/t-ms1: New.
1907         * config/ms1/ms1.opt: New.
1908
1909 2005-08-22 Ira Rosen <irar@il.ibm.com>
1910
1911         * config/rs6000/altivec.md (xorv4sf3): New.
1912         (negv4sf2, neg<mode>2): Likewise.
1913
1914 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1915
1916         PR target/23485
1917         * config/ia64/ia64.md (divsi3): Check divide by zero.
1918         (udivsi3): Likewise.
1919         (divdi3): Likewise.
1920         (udivdi3): Likewise.
1921
1922 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
1923
1924         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
1925         up to elem_bitsize bits, not max_bitsize.
1926
1927 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
1928
1929         PR tree-optimization/23433
1930         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
1931         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
1932
1933 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
1934
1935         PR tree-optimization/23434
1936         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
1937         the iteration bound is not an INTEGER_CST.
1938
1939 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
1940
1941         * tree-vect-transform.c (get_initial_def_for_reduction): Set
1942         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
1943         NULL if need_epilog_adjust is false.
1944         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
1945         Case 3 always peels first itration, not just for PLUS case, and no need
1946         to use scalar_initial_def here. Create an epilog adjustment only if
1947         scalar_initial_def is not NULL.
1948
1949         (vectorizable_reduction): Remove assert. 
1950
1951 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1952
1953         PR target/23485
1954         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
1955         (__moddi3): Likewise.
1956         (__udivdi3): Likewise.
1957         (__umoddi3): Likewise.
1958         (__divsi3): Likewise.
1959         (__modsi3): Likewise.
1960         (__udivsi3): Likewise.
1961         (__umodsi3): Likewise.
1962
1963 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
1964
1965         * tree-pass.h (TDF_GRAPH): Define.
1966         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
1967         * passes.c (finish_optimization_passes): Only call
1968         finish_graph_dump_file if TDF_GRAPH is set.
1969         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
1970         NULL.  Set TDF_GRAPH bit.
1971         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
1972
1973 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
1974
1975         * arm.h (arm_stack_offsets): Add locals_base field.
1976         * arm.c (arm_get_frame_offsets): Compute it.
1977         (thumb_compute_initial_elimination offset): Make the Thumb frame
1978         pointer point to the base of the local variables.
1979         (thumb_expand_prologue): Update accordingly.
1980         (thumb_expand_epilogue): Likewise.
1981
1982         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
1983         mode of clobbered scratch to DImode.  Handle a case that's known to
1984         need this.
1985
1986 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
1987
1988         * config/rs6000/rs6000.md (gt0<mode>): Delete.
1989         (gt0<mode>_compare): Delete.
1990         (neg_gt0<mode>): Delete.
1991
1992 2005-08-19  Eric Christopher  <echristo@apple.com>
1993
1994         * optabs.h: Change CTI_ to COI_.
1995         * optabs.c: Ditto.
1996
1997 2005-08-19  James E Wilson  <wilson@specifix.com>
1998
1999         * builtins.c (expand_builtin_return_addr): Set
2000         current_function_accesses_prior_frames when count != 0.  Use
2001         frame_pointer_rtx when count == 0.
2002         * function.h (struct function): Add accesses_prior_frames field.
2003         (current_function_accesses_prior_frames): Define.
2004         * reload1.c (init_elim_table): Check
2005         current_function_accesses_prior_frames.
2006         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
2007
2008 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
2009
2010         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
2011         indicator.  Return true if the flowgraph changed during
2012         cleanup.
2013
2014 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
2015
2016         PR 23476
2017         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
2018         conditional expression before testing its value.
2019
2020 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
2021
2022         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
2023
2024 2005-08-19  Devang Patel  <dpatel@apple.com>
2025
2026         PR tree-optimization/23048
2027         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
2028         third parameter. Check whether latch is dominated by exit
2029         block or not.
2030         (if_convertible_loop_p): Supply exit block itself to
2031         if_convertible_bb_p.
2032
2033 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
2034
2035         PR target/23473
2036         * arm.md (arm_load_pic_register): Change argument to the mask of
2037         saved registers.  Call thumb_find_work_register if we need a
2038         scratch register on Thumb.
2039         (arm_expand_prologue): Pass empty register set to
2040         arm_load_pic_register.
2041         (thumb_expand_prologue): Pass live_regs_mask directly to
2042         arm_load_pic_register.
2043         * arm-protos.h (arm_load_pic_register): Update prototype.
2044
2045 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
2046
2047         * sh.c (find_sole_member): New function.
2048         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
2049         if the record's alignment is larger than the size of its only member.
2050
2051 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
2052
2053         PR target/23436
2054         * arm.c (thumb_legitimize_reload_address): New function.
2055         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
2056         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
2057
2058 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
2059
2060         * config/crx/crx.c: Implement crx_decompose_address. Reject
2061         symbolic displacements since CRX register relative adressing
2062         mode can't handle unsigned 32-bit values as displacements.
2063         * config/crx/crx.h: Simplify definitions, remove redundant
2064         parenthesis and obsolete macros.
2065         * config/crx/crx.opt: Add new switch for debugging addresses.
2066         * config/crx/crx-protos.h: Add new declarations for above.
2067
2068 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
2069
2070         PR middle-end/20624
2071         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
2072         looking past it.
2073
2074 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2075
2076         * collect2.c (dup2): Delete.
2077         * configure.ac: Don't check for dup2.
2078
2079         * config.in, configure: Regenerate.
2080
2081 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
2082
2083         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
2084         record with the type of its only member.
2085
2086 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
2087
2088         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
2089         define_insn_and_split.
2090         (plus_ltu<mode>_compare): Same.
2091         (gtu<mode>_compare): Same.
2092         (plus_gtu<mode>_compare): Same.
2093
2094 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
2095
2096         PR tree-optimization/22228
2097         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
2098         todo_flags_start.
2099         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
2100         are recorded in vect_vnames_to_rename for renaming.
2101         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
2102         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
2103         in vect_vnames_to_rename.
2104         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
2105         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
2106
2107 2005-08-18  Jan Hubicka  <jh@suse.cz>
2108
2109         PR c++/22034
2110         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
2111         info only for local statics, not for member variables.
2112
2113 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2114
2115         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
2116
2117 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2118
2119         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
2120
2121 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
2122
2123         PR middle-end/16045
2124         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
2125
2126 2005-08-17  James E Wilson  <wilson@specifix.com>
2127
2128         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2129         array size check.
2130
2131 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
2132
2133         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
2134         (leu<mode>_compare): Same.
2135         (plus_leu<mode>): Same.
2136         (neg_leu<mode>): Same.
2137         (and_neg_leu<mode): Same.
2138         (ltu<mode>_compare): Same.
2139         (plus_ltu<mode>): Same.
2140         (geu<mode>): Same.
2141         (geu<mode>_compare): Same.
2142         (plus_geu<mode>): Same.
2143         (neg_geu<mode>): Same.
2144         (and_neg_geu<mode>): Same.
2145         (plus_gt<mode>): Same.
2146         (gtu<mode>_compare): Same.
2147         (plus_gtu<mode>): Same.
2148
2149 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
2150
2151         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
2152         Move call_table_data to end.  Delete spurious .text.
2153         (callt_save_all_interrupt): Fix comment typo.
2154
2155 2005-08-17  James E Wilson  <wilson@specifix.com>
2156             Kevin Winchester  <winchester@amirix.com>
2157
2158         PR target/21684
2159         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
2160
2161 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
2162
2163         PR target/23268
2164         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
2165         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
2166
2167 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
2168
2169         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
2170         record with the type of its only member if the modes don't match.
2171
2172         * varasm.c (decode_reg_name): Skip empty additional register names.
2173
2174 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
2175
2176         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
2177         lsm_tmp_name_length): New.
2178         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
2179         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
2180
2181 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2182             Andreas Krebbel  <krebbel1@de.ibm.com>
2183
2184         * config.gcc: Added z9-109 switch.
2185         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
2186         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
2187         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
2188         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
2189         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
2190         for "z9_109" cpu attribute.
2191         * config/s390/s390.c (z9_109_cost): New processor cost structure.
2192         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
2193         (s390_handle_arch_option): Added z9-109 switch.
2194         (override_options): Set respective cost function for z9-109.
2195         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
2196         (legitimate_reload_constant_p): Accept extended immediates.
2197         (print_operand): Three new output modifiers added: k, m and o.
2198         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
2199         (s390_output_mi_thunk): Use extended immediate when possible.
2200         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
2201         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
2202         (CONSTRAINT_LEN): Added length of O constraint.
2203         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
2204         * config/s390/s390.md ("cpu"): New value z9_109 added.
2205         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
2206         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
2207         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
2208         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
2209         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
2210         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
2211         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
2212         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
2213         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
2214         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
2215         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
2216         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
2217         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
2218         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
2219         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
2220         immediates.
2221         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
2222         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
2223         insns for TARGET_EXTIMM.
2224
2225 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2226
2227         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
2228
2229 2005-08-17  Nick Clifton  <nickc@redhat.com>
2230
2231         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
2232         Call default_encode_section_info.
2233
2234 2005-08-17  Steven Bosscher  <stevenb@suse.de>
2235
2236         PR tree-optimization/21574
2237         * tree-ssa-ccp.c (likely_value): If the right hand side is a
2238         constant, return CONSTANT.
2239         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
2240         (ccp_fold, visit_assignment): Likewise.
2241         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
2242
2243 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
2244
2245         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
2246         fold_buildN instead of buildN then fold_initializer or fold.
2247         (build_unary_op): Likewise.
2248         (build_binary_op): Likewise.
2249         * fold-const.c (fold_initializer): Remove.
2250         (fold_build1_initializer): New function.
2251         (fold_build2_initializer): New function.
2252         (fold_build3_initializer): New function.
2253         * tree.h (fold_initializer): Remove.
2254         (fold_build1_initializer): New function.
2255         (fold_build2_initializer): New function.
2256         (fold_build3_initializer): New function.
2257
2258 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
2259
2260         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
2261         (try_move_mult_to_index): Call fold_build2 instead of build2.
2262         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
2263         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
2264         fold_binary_to_constant.
2265         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
2266         fold (build.
2267         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
2268         check if A == gcd (A, B).  Remove TYPE argument.
2269         (analyze_offset) Use fold_build2 instead of fold (build.
2270         (create_data_ref): Likewise.
2271         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
2272         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
2273         then fold.
2274
2275 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
2276
2277         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
2278         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
2279
2280 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
2281
2282         PR tree-opt/23402
2283         * gimplify.c (zero_sized_type): New function.
2284         (gimplify_modify_expr_rhs): If we have a zero sized type,
2285         replace the statement with an empty statement.
2286
2287 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
2288
2289         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
2290         fxsave.
2291
2292 2005-08-16  Ian Lance Taylor  <ian@airs.com>
2293
2294         * doc/tm.texi (Label Output): Correct typo.
2295
2296 2005-08-16  Steven Bosscher  <stevenb@suse.de>
2297
2298         PR target/23376
2299         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
2300         force_operand will work later on using have_insn_for.
2301
2302 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2303
2304         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
2305
2306 2005-08-16  Ian Lance Taylor  <ian@airs.com>
2307
2308         PR c++/23337
2309         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
2310         vector type, don't try to construct it element by element.  Add an
2311         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
2312
2313 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2314
2315         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
2316
2317 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
2318
2319         * doc/invoke.texi (Precompiled Headers): Document some more options
2320         which are known to be safe.
2321
2322 2005-08-16  James E Wilson  <wilson@specifix.com>
2323
2324         PR tree-optimization/21105
2325         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2326         TREE_OVERFLOW check.
2327
2328 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
2329
2330         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
2331         (neg_ltu<mode>): Same.
2332         (gtu<mode>): Same.
2333         (neg_gtu<mode>): Same.
2334
2335 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2336
2337         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
2338         (fold_builtin_isdigit): Use fold_buildN.
2339         (build_function_call_expr): Likewise.
2340         * c-typeck.c (c_finish_loop): Likewise.
2341
2342 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
2343             Richard Shann <rshann@superh.com>
2344
2345         PR middle-end/20396:
2346         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
2347
2348 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
2349
2350         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
2351
2352 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
2353
2354         PR target/23355
2355         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
2356         arm_compure_save_reg0_reg12_mask to determine when the PIC register
2357         must be saved.
2358
2359 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2360
2361         PR middle-end/23369
2362         * fold-const.c (build_range_check): Disable optimization for function
2363         pointer expressions on targets that require function pointer
2364         canonicalization.
2365
2366 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
2367
2368         * simplify-rtx.c (simplify_const_relational_operation): When
2369         extracting arguments of a COMPARE, recompute the mode as well.
2370
2371 2005-08-15  Ian Lance Taylor  <ian@airs.com>
2372
2373         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
2374
2375 2005-08-15  DJ Delorie  <dj@redhat.com>
2376
2377         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
2378         the stack.
2379         (movsi_splittable): Allow, but split, moves to the stack.
2380         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
2381         stack.
2382
2383 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2384
2385         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
2386         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
2387         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
2388
2389         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
2390         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
2391         Delete HOST_PTR_PRINTF.
2392
2393         * configure, config.in: Regenerate.
2394
2395 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
2396
2397         * config/rs6000/rs6000.md (QHSI): New mode macro.
2398         (wd): Extend mode attr for QImode and HImode
2399         (dbits): New mode attr.
2400         (zero_extend<mode>di2): Convert to mode macro.
2401
2402 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
2403
2404         PR target/21841
2405         * doc/invoke.texi (-mgnu-ld): Update description.
2406         (-mhp-ld): Ditto.
2407
2408 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
2409
2410         PR 23391
2411         * Makefile.in (tree-chrec.o): Depends on real.h.
2412         * tree-chrec.c: Include real.h.
2413         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
2414         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
2415         * tree-scalar-evolution.c (add_to_evolution_1,
2416         interpret_rhs_modify_expr): Ditto.
2417
2418 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
2419
2420         PR 23386
2421         * tree-data-ref.c (estimate_niter_from_size_of_data): When
2422         step is negative compute the estimation from init downwards to zero.
2423
2424 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
2425
2426         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
2427
2428 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2429
2430         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
2431         constraint.
2432         (legitimate_reload_constant_p): Fix handling of lliXX operands.
2433         Accept double-word constants that can be split.
2434         * config/s390/s390.md ("movti"): Use 'P' constraint.
2435         ("*movdi_31", "*movdf_31"): Likewise.
2436
2437 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
2438
2439         Fix PR tree-optimization/22615
2440
2441         * tree-ssa-structalias.c (solution_set_add): Handle
2442         first_vi_for_offset returning NULL.
2443         (do_da_constraint): Ditto.
2444         (do_sd_constraint): Ditto.
2445         (do_ds_constraint): Ditto
2446         (find_func_aliases): Ditto.
2447         (build_constraint_graph): RHS is allowed be ANYTHING.
2448         (first_vi_for_offset): Return NULL if we couldn't find anything at
2449         the offset.
2450
2451 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2452
2453         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
2454         over memory as first operand.
2455
2456 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
2457
2458         PR target/23360
2459         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
2460         available for setting it.
2461
2462 2005-08-14  Ira Rosen  <irar@il.ibm.com>
2463
2464         PR tree-optimization/23320
2465         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
2466         data-refs' types instead of base object nullness. Add check for
2467         pointer type data-refs before first location comparison. Remove
2468         assert.
2469
2470 2005-08-14  Andreas Schwab  <schwab@suse.de>
2471
2472         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
2473
2474 2005-08-13  James E Wilson  <wilson@specifix.com>
2475
2476         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
2477         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
2478         -fstack-protector-all, --param ssp-buffer-size): Document.
2479         (-Wvariadic-macros): Alphabetize.
2480         (-fsched-stalled-insns-dep): Add missing 'f'.
2481
2482         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
2483         macros.
2484
2485 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
2486
2487         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
2488         or indirect address operand.
2489         (EXTRA_ADDRESS_CONSTRAINT): New.
2490         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
2491
2492 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
2493
2494         PR tree-optimization/22236
2495         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
2496         successors and predecessors.
2497         * tree-chrec.c (chrec_convert): Before converting, check that
2498         sequences don't wrap.
2499         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
2500         (analyze_array): Extern.
2501         (find_data_references_in_loop): Remove call to
2502         compute_estimated_nb_iterations.
2503         * tree-data-ref.h (analyze_array): Declared.
2504         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
2505         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
2506         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
2507         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
2508         condition.
2509         * tree-ssa-loop-ivcanon.c: Fix documentation.
2510         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
2511         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
2512         (infer_loop_bounds_from_undefined): New.
2513         (estimate_numbers_of_iterations_loop): Use
2514         infer_loop_bounds_from_undefined.
2515         (used_in_pointer_arithmetic_p): New.
2516         (scev_probably_wraps_p): Pass an extra parameter.  Call
2517         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
2518         (convert_step): Fix documentation.
2519         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
2520         Use initial_condition_in_loop_num and evolution_part_in_loop_num
2521         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
2522         scev_probably_wraps_p.
2523
2524 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
2525
2526         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
2527         (s390_register_info): Ignore clobbered_regs information for fixed
2528         registers, and only fixed registers.
2529         (s390_init_frame_layout): Remove redundant call.
2530
2531 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
2532
2533         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
2534         description of -Wold-style-casts.
2535
2536 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2537             Jakub Jelinek  <jakub@redhat.com>
2538
2539         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2540         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
2541         * config/s390/s390.c (print_operand): New output modifier 'G' added.
2542         (get_thread_pointer): Renamed to s390_get_thread_pointer.
2543         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
2544         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
2545         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
2546         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2547         ("stack_protect_set", "stack_protect_test"): New expanders.
2548         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
2549         "stack_protect_testdi"): New insn definitions.
2550
2551 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2552
2553         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
2554
2555 2005-08-12  Paul Brook  <paul@codesourcery.com>
2556
2557         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
2558
2559 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2560
2561         * config/s390/predicates.md (setmem_operand): New predicate.
2562         (shift_count_operand): Accept ANDs with special constants as
2563         operand.
2564         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
2565         with special constants.
2566         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
2567         shift_count_operand with setmem_operand.
2568
2569 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2570
2571         * config/s390/s390.c (s390_extract_part, s390_single_part):
2572         Type cast added.
2573         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
2574         (s390_output_mi_thunk): Don't use lg on 31 bit.
2575         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
2576         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
2577
2578 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2579
2580         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
2581         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
2582         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
2583         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
2584         with one of the new macros.
2585
2586 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2587
2588         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
2589         Don't set save_return_addr_p.
2590         (s390_register_info): Make clobbered_regs not depending on
2591         save_return_addr_p.
2592
2593 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2594
2595         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
2596         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
2597
2598 2005-08-11  James E. Wilson  <wilson@specifix.com>
2599
2600         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
2601
2602 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
2603
2604         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
2605         locations gathered by var-tracking in single entry loc_list
2606         over loc_descriptor_from_tree.
2607
2608         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
2609         pass it down to loc_descriptor.
2610         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
2611         (containing_function_has_frame_base): Move earlier in the file.
2612         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
2613         instead of always assuming fbreg can't be used.
2614
2615 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
2616
2617         * config/rs6000/altivec.md: Change constraint "m" to "Z".
2618         * config/rs6000/predicates.md (indexed_or_indirect_operand):
2619         Accept address wrapped in AND for Altivec.
2620         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2621         Strip AND wrapping offset address for Altivec.
2622
2623 2005-08-11  Richard Henderson  <rth@redhat.com>
2624
2625         PR middle-end/23312
2626         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
2627         before using TYPE_IS_SIZETYPE.
2628
2629 2005-08-11  Richard Henderson  <rth@redhat.com>
2630
2631         PR target/22225
2632         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
2633         insn types not present on ev4.
2634         (alphaev5_insn_pipe): Similarly.
2635
2636 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
2637
2638         PR target/23250
2639         * arm.c (arm_override_options): If the user has selected callee-super-
2640         interworking, then enable normal interworking.
2641
2642 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2643
2644         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
2645         redefinition.
2646
2647 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
2648
2649         * doc/rtl.texi: Fix two typos.
2650
2651 2005-08-11  Richard Guenther  <rguenther@suse.de>
2652
2653         PR target/23289
2654         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
2655         cases where we call to/from functions returning void.
2656
2657 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
2658
2659         PR c++/23225
2660         * tree.c (build_pointer_type_for_mode): Robustify.
2661
2662 2005-08-10  James E Wilson  <wilson@specifix.com>
2663
2664         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
2665         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
2666
2667         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
2668         "cum->".
2669
2670 2005-08-10  Eric Christopher  <echristo@apple.com>
2671
2672         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
2673         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
2674         V2DFmode.
2675
2676 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
2677
2678         PR target/21887
2679         * config/darwin.c (machopic_indirect_data_reference): Use a new register
2680         for the high part when generating dynamic-no-pic code.
2681
2682 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2683
2684         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
2685         (x86_64-*-linux*): Likewise.
2686
2687         * config/i386/crtfastmath.c: New file.
2688         * config/i386/t-crtfm: Likewise.
2689
2690         * config/i386/linux.h (ENDFILE_SPEC): New.
2691         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
2692
2693         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
2694         crtfastmath.o.
2695
2696 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
2697
2698         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
2699         (vec_shl, vec_shr): Document new operations.
2700         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
2701
2702 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
2703
2704         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
2705         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
2706         change predicate to indexed_or_indirect_address.
2707
2708 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
2709
2710         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
2711         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
2712         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
2713         and __aeabi_uwrite8.
2714         * config/arm/unaligned-funcs.c: New file.
2715         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
2716
2717 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
2718
2719         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
2720         Add dump.
2721         * cfglayout.c (pass_insn_locators_initialize): Add dump.
2722         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
2723         Add dump.
2724         * except.c (pass_convert_to_eh_region_ranges): Add dump.
2725         * final.c (pass_shorten_branches): Add dump.
2726         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
2727         (pass_life): Rename dump.
2728         (rest_of_handle_flow2): Remove initial verify_flow_info.
2729         * function.c (pass_instantiate_virtual_regs): Add dump.
2730         * integrate.c (pass_initial_value_sets): Add dump.
2731         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
2732         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
2733         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
2734         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
2735         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
2736         gate_rtl_unrool_and_peel_loops): New.
2737         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
2738         rtl_doloop): Do not look at flags.
2739         * mode-switching.c (pass_mode_switching): Add dump.
2740         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
2741         pass_split_before_regstack): Add dump.
2742         * regmove.c (pass_stack_adjustments): Add dump.
2743         * tree-optimize.c (pass_fixup_cfg): Add dump.
2744
2745 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2746
2747         PR 23309
2748         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
2749         deciding which instruction sequence to use.
2750
2751 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
2752
2753         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
2754         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
2755
2756 2005-08-09  Richard Guenther  <rguenther@suse.de>
2757
2758         * c-common.c (builtin_function_2): Remove.
2759         (def_builtin_1): New function.
2760         (c_common_nodes_and_builtins): Use def_builtin_1 to
2761         build builtin functions.
2762
2763 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
2764
2765         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
2766         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2767         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
2768         Visual DSP.
2769
2770 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
2771
2772         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
2773         fold_binary instead of fold_build2 since we don't care about the
2774         resulting tree.
2775         (loop_niter_by_eval): Likewise.
2776         (compare_trees): Likewise.
2777         (proved_non_wrapping_p): Likewise.
2778
2779 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
2780
2781         PR c/23161
2782         PR c/23165
2783         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
2784         if the if is really empty.
2785
2786 2005-08-09  Steven Bosscher  <stevenb@suse.de>
2787
2788         PR tree-optimization/23234
2789         * tree-ssa-math-opts.c (place_reciprocal): New enum.
2790         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
2791         argument of the new enum.
2792         (execute_cse_reciprocals): Add reciprocals for function arguments
2793         on the unique successor edge of the entry block.  Update other calls
2794         to execute_cse_reciprocals_1.
2795
2796 2005-08-08  Richard Henderson  <rth@redhat.com>
2797
2798         PR 22439
2799         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
2800
2801 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
2802
2803         * expr.c (write_complex_part): Return after handling MEM.
2804
2805 2005-08-08  Josh Conner  <jconner@apple.com>
2806
2807         PR rtl-optimization/23241
2808         * combine.c (simplify_comparison): Fix error in determining
2809         whether to lift a subreg from comparison.
2810
2811 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
2812
2813         PR target/18506
2814         * config/rs6000/altivec.md (vec_init<mode>): New.
2815         (vec_set<mode>): New.
2816         (vec_extract<mode>): New.
2817         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
2818         (rs6000_expand_vector_set): New.
2819         (rs6000_expand_vector_extract): New.
2820         (rs6000_legitimate_offset_address_p): Offset addresses are valid
2821         for Altivec modes before reload.
2822         (altivec_expand_vec_init_builtin): New.
2823         (get_element_number): New.
2824         (altivec_expand_vec_set_builtin): New.
2825         (altivec_expand_vec_ext_builtin): New.
2826         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
2827         builtins.
2828         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
2829         builtins.
2830         * config/rs6000/rs6000.h (rs6000_builtins): Add
2831         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
2832         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
2833         * config/rs6000/rs6000-protos.h: Declare new functions.
2834
2835 2005-08-08  Jan Hubicka  <jh@suse.cz>
2836
2837         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
2838         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
2839         * i386.md (movdi*): Use pic_32bit_operand.
2840         * predicates.md (pic_32bit_operand): New.
2841
2842 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
2843
2844         PR c++/21166
2845         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
2846
2847 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
2848
2849         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
2850         (test_for_singularity): Use fold_build2.
2851
2852 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2853
2854         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
2855
2856 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
2857
2858         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
2859         (COMMON_ASM_OP) Define.
2860         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
2861         (ix86_encode_section_info): Likewise.
2862         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
2863         SUBTARGET_ENCODE_SECTION_INFO.
2864
2865 2005-08-06  Richard Henderson  <rth@redhat.com>
2866
2867         PR 21894
2868         * tree-nested.c (convert_local_reference): Save and restore val_only
2869         around component_ref and friends.  Clear walk_subtrees by default.
2870
2871 2005-08-06  Peter O'Gorman  <peter@pogma.com>
2872
2873         PR 21366
2874         * gcc.c (process_command): Check the argument to -b has a dash.
2875         * doc/invoke.texi: Update -b and -V docs.
2876
2877 2005-08-06  James E Wilson  <wilson@specifix.com>
2878
2879         * config/mips/cross64.h, config/mips/t-cross64: Delete.
2880
2881 2005-08-06  Michael Matz  <matz@suse.de>
2882
2883         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
2884         member only if only one insn is associated with the value.
2885
2886 2005-08-06  Nick Clifton  <nickc@redhat.com>
2887
2888         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
2889         New define.
2890         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2891         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
2892         Check symbol flags instead of symbol name mangling.
2893         (xstormy16_asm_output_aligned_common): Likewise.  Also
2894         simplify code since the bss100_section cass is the only case
2895         where the below100 code will be triggered.
2896         (xstormy16_encode_section_info): Encode below100 attribute
2897         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
2898         the name.
2899         (xstormy16_strip_name_encoding): Delete - this function is no
2900         longer needed.
2901         (TARGET_STRIP_NAME_ENCODING): Undefine.
2902         * config/stormy16/stormy16-protos.h: Delete prototype for
2903         xstormy16_strip_name_encoding.
2904
2905 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
2906
2907         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
2908         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
2909         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
2910         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
2911         config/alpha/predicates.md, config/arc/arc.h,
2912         config/arm/arm.h, config/arm/ieee754-df.S,
2913         config/arm/ieee754-sf.S, config/bfin/bfin.c,
2914         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
2915         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
2916         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
2917         config/m68hc11/m68hc11.h, config/mips/mips.c,
2918         config/mips/mips.h, config/mips/openbsd.h,
2919         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
2920         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
2921         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2922         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
2923         config/sparc/linux.h, config/sparc/linux64.h,
2924         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
2925         doc/extend.texi, doc/gcov.texi, doc/install.texi,
2926         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
2927         typos.  Follow spelling conventions.
2928
2929 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
2930
2931         PR c/23113
2932         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
2933         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
2934         specially.  Check for side effects only for COND_EXPR.
2935         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
2936         return with TREE_NO_WARNING.
2937
2938 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
2939
2940         PR rtl-optimization/23233
2941         * loop.c (combine_movables): Require the modes to be the same.
2942         (move_movables): Remove handling of cases where the replacement
2943         had a different mode to the original.
2944
2945 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
2946
2947         PR tree-optimization/23128
2948         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
2949         subtraction wrap, and set TREE_OVERFLOW if they do.
2950
2951 2005-08-05  Richard Henderson  <rth@redhat.com>
2952
2953         PR 21728
2954         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
2955         FORCED_LABEL labels.
2956
2957 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
2958
2959         PR middle-end/23135
2960         * reload.c (find_reloads_subreg_address): Pass down TYPE
2961         unchanged.  Change all callers except find_reloads_toplev.
2962
2963 2005-08-05  Michael Matz  <matz@suse.de>
2964
2965         * genattrtab.c (current_alternative_string): Remove.
2966         (SIMPLIFY_ALTERNATIVE): Ditto.
2967         (attr_alt_bit_p): Ditto.
2968         (alternative_name): Make const char *.
2969         (evaluate_eq_attr): Remove use of above things.
2970         (simplify_test_exp): Ditto.
2971         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
2972         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
2973
2974 2005-08-04  James E Wilson  <wilson@specifix.com>
2975
2976         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
2977         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
2978         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
2979         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
2980         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
2981
2982 2005-08-04  Richard Henderson  <rth@redhat.com>
2983
2984         PR 21529
2985         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
2986         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
2987         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
2988         if we'd have to instantiate too many members.
2989
2990 2005-08-04  Richard Henderson  <rth@redhat.com>
2991
2992         PR 21291
2993         * tree-outof-ssa.c (coalesce_asm_operands): New.
2994         (coalesce_ssa_name): Use it.  Split out ...
2995         (coalesce_phi_operands, coalesce_result_decls): ... these.
2996
2997 2005-08-04  Paul Brook  <paul@codesourcery.com>
2998
2999         * read-rtl.c (read_quoted_string): Break if EOF.
3000
3001 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
3002
3003         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
3004         (fold_build2): Likewise.
3005         (fold_build3): Likewise.
3006         (fold_build1_stat): New function prototype.
3007         (fold_build2_stat): Likewise.
3008         (fold_build3_stat): Likewise.
3009         * fold-const.c (fold_build1): Rename to ..
3010         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
3011         through to build1_stat.
3012         (fold_build2): Rename to ..
3013         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
3014         through to build2_stat.
3015         (fold_build3): Rename to ..
3016         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
3017         through to build3_stat.
3018
3019 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
3020             Ian Lance Taylor  <ian@airs.com>
3021
3022         * function.c (assign_stack_local_1): Do not correct stack slot
3023         address if allocation size is smaller than mode size.
3024
3025 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
3026
3027         PR 22037
3028         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
3029         (tree_merge_blocks): Propagate anything allowed by
3030         may_propagate_copy.
3031         Clarify documentation.
3032         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
3033         SSA form, schedule an update if necessary.
3034
3035 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
3036
3037         * doc/install.texi (Binaries): Remove broken link to
3038         Sinix/Reliant Unix binaries.
3039
3040 2005-08-03  Richard Henderson  <rth@redhat.com>
3041
3042         PR 23221
3043         * function.c (stack_protect_epilogue): Export.
3044         * tree.h (stack_protect_epilogue): Declare.
3045         * calls.c (expand_call): Call it.
3046
3047 2005-08-03  Eric Christopher  <echristo@apple.com>
3048
3049         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
3050         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
3051         spec.
3052
3053 2005-08-04  Jan Hubicka  <jh@suse.cz>
3054
3055         * profile.c (branch_prob): Split edges with goto locus on them
3056         to get proper line counts.
3057         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
3058
3059 2005-08-03  Paul Brook  <paul@codesourcery.com>
3060
3061         * function.c (assign_parms): Round current_function_args_size
3062         to PARM_BOUNDARY, not STACK_BOUNDARY.
3063
3064 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
3065
3066         * config/i386/i386.c (x86_elf_aligned_common)
3067         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
3068
3069 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
3070
3071         PR tree-optimization/23157
3072         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
3073         before emitting them.
3074
3075 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3076
3077         PR tree-optimization/19899
3078         * Makefile.in (tree-scalar-evolution.o): Add real.h.
3079         * tree-scalar-evolution.c: Include real.h.
3080         (add_to_evolution): Build constant -1 of correct type.
3081
3082 2005-08-03  Jan Hubicka  <jh@suse.cz>
3083
3084         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
3085         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
3086         profile updating for complette unrolling.
3087         * loop-unroll.c (peel_loop_completely): Use it.
3088         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3089         (tree_unroll_loops_completely): Disable code growing unrolling of cold
3090         loops.
3091
3092 2005-08-03  Paul Brook  <paul@codesourcery.com>
3093
3094         * combine.c (can_change_dest_mode): New function.
3095         (try_combine, simplify_set): Use it.
3096
3097 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
3098
3099         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
3100         TFmode to BLKmode.
3101
3102 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
3103
3104         * doc/install.texi (Specific): Adjust link to openavr.org.
3105         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
3106         (Binaries): Adjust HP-UX Porting Center link.
3107         (Binaries): Adjust Free Software Foundation ordering link.
3108
3109 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
3110
3111         * convert.c (convert_to_integer): Use fold_build1 instead of
3112         build1 when converting an integer to an integer.
3113
3114 2005-08-02  Richard Henderson  <rth@redhat.com>
3115
3116         * combine.c (combine_instructions): Don't use reg_equal/equiv
3117         results if the mode doesn't match.
3118
3119 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
3120
3121         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
3122         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
3123
3124 2005-08-02  Richard Henderson  <rth@redhat.com>
3125
3126         PR 23196
3127         * explow.c (memory_address): Remove special-case for
3128         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
3129
3130 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
3131
3132         PR 23164
3133         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
3134         number of calls to cleanup_tree_cfg_1.
3135
3136 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
3137
3138         * doc/invoke.texi: document file extensions .F90 and .F95
3139
3140 2005-08-02  Richard Guenther  <rguenther@suse.de>
3141
3142         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
3143         positive if its first argument is positive.
3144
3145 2005-08-02  Richard Guenther  <rguenther@suse.de>
3146
3147         PR tree-optimization/23177
3148         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
3149         on TMR_TAG.
3150
3151 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
3152
3153         PR tree-optimization/23129
3154         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
3155         varying for divisions with anti-ranges.
3156
3157 2005-08-02  Jan Hubicka  <jh@suse.cz>
3158
3159         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
3160         * tree-ssa-threadupdate.c (thread_block): Add it here.
3161
3162 2005-08-01  James E Wilson  <wilson@specifix.com>
3163
3164         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
3165         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
3166         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
3167         New.
3168         * config/mips/predicates.md (const_call_insn_operand): Add check for
3169         SYMBOL_REF_LONG_CALL_P.
3170         * doc/extend.texi (long_call): Document the new attribute.
3171
3172 2005-08-01  Ian Lance Taylor  <ian@airs.com>
3173             Richard Henderson  <rth@redhat.com>
3174
3175         * Makefile.in (RTL_BASE_H): Add real.h.
3176         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
3177         instead of memcpy.
3178         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
3179         directly.
3180         * rtl.c (rtl_check_failed_code_mode): New.
3181         * rtl.h (struct rtx_def): Add u.rv.
3182         (XCMWINT, XCNMPRV): New.
3183         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
3184         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
3185
3186 2005-08-01  Richard Henderson  <rth@redhat.com>
3187
3188         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
3189         with auto-inc codes.
3190
3191         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
3192
3193 2005-08-01  Jan Hubicka  <jh@suse.cz>
3194
3195         * i386-protos.h (asm_preferred_eh_data_format): Declare.
3196         * i386.c: Include dwarf2.h
3197         (asm_preferred_eh_data_format): New.
3198         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
3199
3200 2005-08-01  Ian Lance Taylor  <ian@airs.com>
3201
3202         * config/host-linux.c (linux_gt_pch_get_address): Add new name
3203         randomize_va_space for virtual address randomization control.
3204
3205 2005-08-01  Steven Bosscher  <stevenb@suse.de>
3206
3207         * common.opt (flag_ipa_cp): Put in right place to maintain
3208         alphabetic sort.
3209
3210 2005-08-01  Jan Hubicka  <jh@suse.cz>
3211
3212         * profile.c (compute_value_histograms): Fix thinko.
3213         * value-prof.c: Include toplev.h
3214         (check_counter): New function.
3215         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3216         tree_mod_subtract_transform): Add sanity check.
3217
3218 2005-08-01  Richard Guenther  <rguenther@suse.de>
3219
3220         PR tree-optimization/23133
3221         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
3222         current functions parameter decls to find defs to cse
3223         reciprocals of.
3224
3225 2005-08-01  Richard Guenther  <rguenther@suse.de>
3226
3227         PR tree-optimization/23109
3228         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
3229         If trapping math is in effect, use post-dominator information
3230         to check if we'd in any case reach a trapping point before
3231         doing the reciprocal insertion.
3232         (execute_cse_reciprocals): Compute post-dominators, if necessary.
3233         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
3234         expressions are invariant only if trapping math is not in effect.
3235
3236 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
3237
3238         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
3239         cgraph_function_versioning): New declarations.
3240         * cgraphunit.c: Add include to ipa-prop.h.
3241         (update_call_expr, cgraph_copy_node_for_versioning,
3242         cgraph_function_versioning): New functions.
3243         * integrate.c (copy_decl_for_inlining): Remove.
3244         * ipa-prop.h (ipa_replace_map): New struct.
3245         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
3246         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
3247         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
3248         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
3249         ipcp_iterate_stage, ipcp_method_scale_print,
3250         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
3251         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
3252         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
3253         ipcp_update_bb_counts, ipcp_update_profiling,
3254         ipcp_update_edges_counts): New functions.
3255         (ipcp_method_cval_init): Remove restriction regarding local methods.
3256         (ipcp_init_stage): Add ipcp_method_compute_scale.
3257         (ipcp_insert_stage): Add versioning.
3258         (ipcp_structures_print): Add ipcp_method_scale_print.
3259         (ipcp_driver): Dump profiling info.
3260         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
3261         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
3262         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
3263         (struct inline_data): Add versioning_p, ipa_info, new fields.
3264         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
3265         declare_return_variable): Replace calls to copy_decl_for_inlining with
3266         copy_decl_for_dup.
3267         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
3268         versioning support.
3269         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
3270         Add argument VERSIONING.
3271         (copy_arguments_for_versioning, copy_static_chain,
3272         function_versionable_p, tree_versionable_function_p,
3273         tree_function_versioning, replace_ref_tree): New functions.
3274         * tree-inline.h: Include varray.h.
3275         (tree_versionable_function_p,  tree_function_versioning,
3276         tree copy_decl_for_dup): New declarations.
3277
3278 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
3279
3280         * ipa-cp.c: New file. Contains IPCP specific functionality.
3281         * ipa-prop.h: New file. Contains structures/definitions that can be
3282         used by several interprocedural data flow optimizations (and also IPCP).
3283         * ipa-prop.c: New file.
3284         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
3285         * common.opt: Add ipa-cp flag.
3286         * timevar.def: Add IPCP optimization.
3287         * tree-optimize.c (init_tree_optimization_passes): Schedule
3288         pass_ipa_cp.
3289         * tree-pass.h (pass_ipa_cp): Declare.
3290
3291 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
3292
3293         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
3294         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
3295         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
3296         config/i386/i386.c, config/mips/mips.h,
3297         config/rs6000/rs6000.h, config/sh/sh.c,
3298         config/stormy16/stormy16.c: Fix comment typos.
3299
3300 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
3301
3302         PR c/22311
3303         * c-typeck.c (build_binary_op): Use common_type wrapper on
3304         shortened types.
3305         (common_type): Update comment.
3306
3307 2005-07-31  Steven Bosscher  <stevenb@suse.de>
3308
3309         PR target/23095
3310         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
3311         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
3312         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
3313
3314 2005-07-31  Jan Hubicka  <jh@suse.cz>
3315
3316         * pretty-print.h (pp_widest_integer): New macro.
3317         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
3318         counts.
3319
3320 2005-07-31  Jan Hubicka  <jh@suse.cz>
3321
3322         * output.h (enum section_category): Export from varasm.c
3323         (categorize_decl_for_section): Likewise.
3324         * varasm.c (enum section_category): Kill.
3325         (categorize_decl_for_section): Make global.
3326         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
3327         Declare.
3328         * i386.c (ix86_section_threshold): New static variable.
3329         (ix86_in_large_data_p, ix86_encode_section_info,
3330         x86_64_elf_unique_section,
3331         x86_64_elf_select_section): New functions.
3332         (TARGET_ENCODE_SECTION_INFO): Define
3333         (override_options): Enable medium model for PIC.
3334         (ix86_expand_prologue): Expand gen_set_got_rex64.
3335         (legitimate_constant_p): Handle new UNSPECs.
3336         (legitimate_pic_address_disp_p): Likewise.
3337         (legitimize_pic_address): Lower MEDIUM model addressing.
3338         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
3339         (enum cmodel): Add MEDIUM_PIC.
3340         (SYMBOL_REF_FAR_ADDR_P): New macro.
3341         (SYMBOL_FLAG_FAR_ADDR): New flag.
3342         * i386.md (movdi): Support medium model.
3343         (set_got_rex64): New pattern.
3344         * i386.opt (mlarge-data-threshold): New flag.
3345         * predicates.md (zext_operand/sext_operand): Deal with medium model.
3346         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
3347         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
3348         TARGET_ASM_UNIQUE_SECTION): New.
3349
3350         * invoke.texi (-mlarge_data_threshold): Document
3351
3352 2005-07-31  Jan Hubicka  <jh@suse.cz>
3353
3354         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
3355         (coalesce_vars): Likewise.
3356         * tree-ssa-live.c (coalesce_cost): New.
3357         (build_tree_conflict_graph): Use coalesce_cost.
3358         * tree-ssa-live.h (coalesce_cost): Declare.
3359
3360 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
3361
3362         * arm.md (all peepholes for post-increment operations): Delete.
3363         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
3364         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
3365         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
3366         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
3367         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
3368
3369 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
3370
3371         * fold-const.c (tree_expr_nonnegative_p): Always return true for
3372         non-integral types.
3373
3374 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
3375
3376         PR target/22582
3377         * doc/invoke.texi: Document -rdynamic.
3378
3379 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
3380
3381         PR c/23143
3382         * c-parser.c (c_parser_parms_list_declarator): Call
3383         mark_forward_parm_decls.
3384         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
3385         decls with visibility structure.
3386
3387 2005-07-30  Paul Brook  <paul@codesourcery.com>
3388
3389         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
3390
3391 2005-07-30  Paul Brook  <paul@codesourcery.com>
3392
3393         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3394         prototype.
3395         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
3396         value for mode.
3397         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
3398
3399 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
3400
3401         PR c/529
3402         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
3403         nested function declarators.
3404         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
3405         (grokparms): Call warn_if_shadowing for parameters used within the
3406         parameter list.
3407         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
3408         not used within the parameter list.
3409         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
3410
3411 2005-07-30  Jan Hubicka  <jh@suse.cz>
3412
3413         * expr.c (expand_expr_real_1): Do not load mem targets into register.
3414         * i386.c (ix86_fixup_binary_operands): Likewise.
3415         (ix86_expand_unary_operator): Likewise.
3416         (ix86_expand_fp_absneg_operator): Likewise.
3417         * optabs.c (expand_vec_cond_expr): Validate dest.
3418
3419 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
3420
3421         PR c/21720
3422         * real.c (real_from_string): Also set last bit if there is a
3423         nonzero hex digit beyond GCC's internal precision after ".".
3424
3425 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
3426
3427         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
3428         define_constants.  Change duplicate values to unassigned numbers.
3429         Change UNSPEC_SUBS to UNSPEC_VSUBS.
3430         (*altivec_vspltsf): New.
3431         (altivec_vperm_v4sf): Delete.
3432         (altivec_vperm_<mode>): Use mode macro V.
3433         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
3434         (altivec_predicate_v4sf): Delete.
3435         (altivec_predicate_<mode>): Use mode macro V.
3436         (*altivec_lvesfx): New.
3437         (*altivec_stvesfx): New.
3438         (vec_realign_load_v4sf): Delete.
3439         (vec_realign_load_<mode>): Use mode macro V.
3440         * config/rs6000/rs6000.c (generate_set_vrsave): Use
3441         UNSPECV_SET_VRSAVE.
3442
3443 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
3444
3445         PR bootstrap/23131
3446         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
3447         string.
3448         * configure: Regenerated.
3449
3450 2005-07-29  Paul Brook  <paul@codesourcery.com>
3451
3452         * doc/install.texi: Add link to GFortran binaries wiki page.
3453
3454 2005-07-29  David Ung  <davidu@mips.com>
3455
3456         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
3457         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
3458         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
3459         * config/mips/mips.md (cpu): Add 5kf name.
3460         (includes): Includes 5k.md.
3461         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
3462         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
3463         -march flag.
3464
3465 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
3466
3467         PR 22550
3468         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
3469         (cleanup_tree_cfg): ... here.
3470         Call cleanup_tree_cfg_1 until there are no more cleanups to
3471         do.
3472
3473 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
3474
3475         * tree-vrp.c (compare_range_with_value): Return true or false
3476         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
3477         EQ_EXPR respectively.
3478
3479 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
3480
3481         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
3482         Fix comment typos.
3483
3484 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
3485
3486         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
3487         (tree_ssa_dominator_optimize): Increment it.
3488         (dump_dominator_optimization_stats): Print it.
3489
3490 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
3491             Steven Bosscher  <stevenb@suse.de>
3492
3493         PR rtl-optimization/23117
3494         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
3495         when head == tail.  Tidy comment.
3496
3497 2005-07-28  Richard Henderson  <rth@redhat.com>
3498
3499         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
3500         * cselib.c (rtx_equal_for_cselib_p): Likewise.
3501         * jump.c (rtx_renumbered_equal_p): Likewise.
3502         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
3503         CONST_INT and CONST_DOUBLE.
3504         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
3505         * reload.c (operands_match_p): Special case CONST_INT and
3506         CONST_DOUBLE; check mode earlier.
3507
3508 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
3509
3510         PR c/22240
3511         * c-typeck.c (convert_for_assignment): Do not check
3512         DECL_IN_SYSTEM_HEADER on NULL fundecl.
3513
3514 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
3515
3516         PR c/22192
3517         * c-typeck.c (composite_type): Prefer constant size arrays to
3518         VLAs.
3519
3520 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
3521
3522         PR c/21720
3523         * real.c (real_from_string): Set last bit if there is a nonzero
3524         hex digit beyond GCC's internal precision.
3525
3526 2005-07-28  Richard Henderson  <rth@redhat.com>
3527
3528         PR rtl-opt/22619
3529         * cfgcleanup.c (try_forward_edges): Watch out for end of
3530         insn chain.
3531
3532 2005-07-28  James E Wilson  <wilson@specifixinc.com>
3533
3534         PR c/23106
3535         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
3536
3537 2005-07-28  Jan Hubicka  <jh@suse.cz>
3538
3539         * Makefile.in (rtl-profile.o): Kill all traces of it.
3540         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
3541         * coverage.h (rtl_coverage_counter_ref): Kill.
3542         * opts.c (flag_speculative_prefetching_set): Kill.
3543         (flag_loop_optimize_set): New.
3544         (common_handle_option): Disable loop optimizer when profiling;
3545         do not handle speculative prefetching.
3546         * passes.c (init_optimization_passes): Replace pass_profiling combo
3547         by branch_prob pass.
3548         * profile.c (compute_value_histograms): Update for simplified value
3549         profiles.
3550         (rtl_register_profile_hooks): Kill.
3551         (pass_profiling): Kill.
3552         (rest_of_handle_branch_prob): Do not profile.
3553         * toplev.c (process_options): Remove speculative prefetching.
3554         * toplev.h (flag_tree_based_profiling): Kill.
3555         * tree-profile.c (prepare_instrumented_value,
3556         tree_gen_interval_profiler, tree_gen_pow2_profiler,
3557         tree_gen_one_value_profiler, do_tree_profiling): Update for
3558         simplified datastructures.
3559         * value-prof.c: Add comment that speculative prefetching was dropped;
3560         update rest of file for simplified datastructures.
3561         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
3562         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
3563         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
3564         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
3565         rtl_mod_subtract, gen_speculative_prefetch,
3566         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
3567         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
3568         (gate_handle_value_profile_transformations,
3569         rest_of_handle_value_profile_transformations,
3570         pass_value_profile_transformations): Kill.
3571         * value-prof.h (histogram_value_t): Remove IL based unions.
3572         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
3573         rtl_profile_hooks): Remove hooks.
3574
3575         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
3576
3577         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
3578         (cgraph_clone_node): Likewise.
3579         * cgraph.h (cgraph_clone_edge): Update prototype.
3580         (cgraph_clone_node): Likewise.
3581         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
3582         cgraph_clone_node.
3583         (lookup_recursive_calls): Consider profile.
3584         (cgraph_decide_recursive_inlining): Fix updating; use new
3585         probability argument; use profile.
3586         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
3587         * tree-inline.c (copy_bb): Update clal of clone_edge.
3588         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
3589
3590         * invoke.texi (min-inline-recursive-probability): Document.
3591
3592 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
3593
3594         * doc/install.texi (Configuration): Update Valgrind homepage.
3595
3596 2005-07-28  Richard Henderson  <rth@redhat.com>
3597
3598         PR middle-end/21362
3599         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
3600         labels we want to delete.
3601         (cfg_layout_merge_blocks): Likewise.
3602
3603 2005-07-28  Richard Henderson  <rth@redhat.com>
3604
3605         PR target/17692
3606         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
3607         when expanding to nothing.
3608
3609 2005-07-28  Josh Conner  <jconner@apple.com>
3610
3611         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
3612         (cgraph_decide_inlining_of_small_functions): Likewise.
3613
3614 2005-07-28  Josh Conner  <jconner@apple.com>
3615
3616         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
3617         direction of badness if negative.
3618         (cgraph_default_inline_p): Add reason to parameters, and assign it
3619         a value.
3620         (cgraph_decide_inlining_of_small_functions): New parameter in call
3621         to cgraph_default_inline_p.
3622         (cgraph_decide_inlining_incrementally): Likewise.
3623         * cgraphunit.c (decide_is_function_needed): Likewise.
3624         * cgraph.h (cgraph_default_inline_p): Likewise.
3625
3626 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3627
3628         * builtins.c: Fix comment typo(s).
3629         * genautomata.c: Likewise.
3630         * gimplify.c: Likewise.
3631         * tree-dfa.c: Likewise.
3632         * tree-flow-inline.h: Likewise.
3633         * tree-into-ssa.c: Likewise.
3634         * tree-ssa-alias.c: Likewise.
3635         * tree-ssa-ccp.c: Likewise.
3636         * tree-ssa-copy.c: Likewise.
3637         * tree-ssa-dce.c: Likewise.
3638         * tree-ssa-dom.c: Likewise.
3639         * tree-ssa-operands.c: Likewise.
3640         * tree-tailcall.c: Likewise.
3641         * tree-vectorizer.c: Likewise.
3642         * tree-vrp.c: Likewise.
3643         * tree.c: Likewise.
3644
3645 2005-07-28  Jeff Law  <law@redhat.com>
3646
3647         * tree-vrp.c (test_for_singularity): Extracted from  ...
3648         (simplify_cond_using_ranges): Attempt to simplify a relational
3649         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
3650
3651 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
3652
3653         PR tree-optimization/22506
3654         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
3655         phis whose argument is constant.
3656
3657 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
3658
3659         PR rtl-optimization/18992
3660         Back out this patch:
3661           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3662           PR optimization/12142
3663           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
3664           uses of the register in the SET_SRC.  Remove unnecessary argument.
3665
3666         Replace it with this:
3667         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
3668         if flag_non_call_exceptions is set and the insn may trap, pass
3669         pc_rtx as dest for recursion.
3670         In SET_SRC part of SET case, if dest is already set, pass it down
3671         unchanged.
3672
3673 2005-07-28  Jan Hubicka  <jh@suse.cz>
3674
3675         * cfg.c (update_bb_profile_for_threading): Use RDIV.
3676         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
3677         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
3678         roundoff errors.
3679         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
3680         profile when available.
3681
3682 2005-07-28  Jan Beulich <jbeulich@novell.com>
3683
3684         * config/ia64/ia64.c (ia64_load_pair_ok): New.
3685         (ia64_print_operand): Describe and handle 'X'.
3686         (ia64_register_move_cost): Also handle FP_REGS.
3687         (ia64_preferred_reload_class): Likewise.
3688         (ia64_secondary_reload_class): Likewise.
3689         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
3690         it. Also check for ITANIUM_CLASS_FLDP.
3691         * config/ia64/ia64.h (FP_REGNO_P): New.
3692         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
3693         (reg_class): Add FP_REGS.
3694         (REG_CLASS_NAMES): Adjust for it.
3695         (REG_CLASS_CONTENTS): Likewise.
3696         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
3697         (REG_CLASS_FROM_LETTER): Handle 'x'.
3698         (CLASS_MAX_NREGS): Handle FP_REGS.
3699         (MEMORY_MOVE_COST): Likewise.
3700         * config/ia64/ia64.md (itanium_class): Add fldp.
3701         (type): Handle fldp.
3702         (movti_internal): More allowable operand combinations. Use ldfp8 when
3703         splitting unnecessary. Remove predicable attribute. Adjust
3704         itanium_class attribute.
3705         (smuldi3_highpart): Remove outdated comment.
3706         (mulditi3, umulditi3, rotlti3): New expanders.
3707         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
3708         (absti2): Disabled new insn for future reference.
3709         Respective new splitters.
3710         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
3711         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
3712         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
3713
3714 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
3715
3716         PR rtl-optimization/23047
3717         * simplify-rtx.c (simplify_const_relational_operation): Respect
3718         flag_wrapv for comparisons with ABS.
3719
3720 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
3721
3722         PR tree-optimization/22493
3723         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
3724         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
3725
3726 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
3727
3728         * config/frv/frv.opt (moptimize-membar): New.
3729
3730         * doc/invoke.texi: Document -moptimize-membar and its inverse.
3731
3732         * config/frv/frv.h: Remove machine_function definition.
3733
3734         * config/frv/frv.c (struct frv_io): New.
3735         (struct machine_function): Moved from frv.h.  Add has_membar_p.
3736         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
3737         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
3738         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
3739         (frv_optimize_membar_global, frv_optimize_membar): New functions.
3740         (frv_reorg): Call frv_optimize_membar when appropriate.
3741         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
3742         (frv_expand_builtin): Adjust calls accordingly.
3743         (frv_io_address_cookie): New function.
3744         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
3745         load or store rather than a special insn.  Add ccnstant address and
3746         io-type operands to the membar.
3747         (frv_ifcvt_modify_tests): Unsign regno.
3748         (frv_ifcvt_modify_tests): Same.
3749
3750         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
3751         UNSPEC_OPTIONAL_MEMBAR constant.
3752         (builtin_read_<mode>): Delete.
3753         (builtin_write_<mode>): Delete.
3754         ("optional_membar_<mode>"): Add operand.
3755
3756         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
3757         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
3758         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
3759         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
3760         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
3761         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
3762         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
3763         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
3764         * testsuite/gcc.target/frv/all-read-write-1.c: New.
3765
3766 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3767
3768         * df.c (df_uses_record): Handle SCRATCH.
3769
3770 2005-07-28  Steven Bosscher  <stevenb@suse.de>
3771
3772         PR debug/20161
3773         * passes.c (rest_of_decl_compilation): If decl is a type and
3774         we have encountered errors, don't emit debug information.
3775
3776 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
3777
3778         * params.def: Fixed comment.
3779
3780 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
3781
3782         PR target/19885
3783         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
3784         (TARGET_ASM_UNALIGNED_HI_OP): Add.
3785         (TARGET_ASM_UNALIGNED_SI_OP): Add.
3786
3787 2005-07-27  Steven Bosscher  <stevenb@suse.de>
3788
3789         PR c++/22003
3790         * varasm.c (assemble_start_function): Don't do anything that may
3791         require a CFG if the current function is a thunk.
3792
3793 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
3794
3795         * doc/install.texi (Prerequisites): Mention that perl is needed
3796         to do export control in libstdc++ targetting Darwin.
3797
3798 2005-07-27  Steven Bosscher  <stevenb@suse.de>
3799
3800         PR rtl-optimization/17808
3801         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
3802         (sched_insns_conditions_mutex_p): Split out from...
3803         (add_dependence): ...here.  But don't call it from here.
3804         (add_dependence_list): Check sched_insns_conditions_mutex_p
3805         before calling add_dependence.
3806         (add_dependence_list_and_free): Likewise.
3807         (fixup_sched_groups): Likewise.
3808         (sched_analyze_1): Likewise.
3809         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
3810         (sched_analyze): Likewise.
3811         (sched_analyze_insn): Likewise.
3812         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3813         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
3814         dependencies on all COND_EXEC insns to jumps ending basic blocks
3815         when doing intrablock scheduling.
3816         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
3817
3818 2005-07-27  Jeff Law  <law@redhat.com>
3819
3820         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
3821         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
3822         equivalency sets, correctly handle the case were vr0 has an
3823         equivalency set, but vr1 does not.
3824
3825 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
3826
3827         PR tree-optimization/23073
3828         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
3829         vect_print_dump_info before fprintf.
3830
3831 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
3832
3833         PR tree-optimize/22348
3834         * tree-ssa-loop-niter.c (number_of_iterations_cond):
3835         Fold the partial computation.
3836
3837 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
3838
3839         PR tree-optimization/22325
3840         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
3841         Declare.
3842         * tree-scalar-evolution.c (scev_const_prop): Add generic final
3843         value replacement.
3844         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
3845         (force_var_cost): ... this function.
3846         (compute_phi_arg_on_exit): Export.
3847
3848 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
3849
3850         PR tree-optimization/20773
3851         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
3852         edge.
3853
3854 2005-07-27  Richard Guenther  <rguenther@suse.de>
3855
3856         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
3857         Avoid pushing again if current struct contains only
3858         fields we decomposed.
3859
3860 2005-07-27  Jan Hubicka  <jh@suse.cz>
3861
3862         PR tree-optimization/22574
3863         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
3864         not available.
3865
3866         * tree-tailcall.c (decrease_profile): New function.
3867         (eliminate_tail_call): Use it.
3868
3869         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
3870         visibility flags correctly in whole program mode.
3871
3872 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
3873
3874         PR rtl-optimization/22472
3875         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
3876
3877 2005-07-26  Steven Bosscher  <stevenb@suse.de>
3878
3879         PR tree-optimization/22504
3880         * tree-complex.c (expand_complex_addition): Use 'code' instead
3881         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
3882
3883 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
3884
3885         * config.gcc (cpu_type): Add frv case.
3886         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
3887         (supported_defaults): Add fr550 case.
3888
3889 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
3890
3891         PR 22591
3892         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
3893         whether a pointer of type T * may point to objects of type T *.
3894
3895 2005-07-26  DJ Delorie  <dj@redhat.com>
3896
3897         * configure: Regenerate.
3898
3899 2005-07-26  Dale Johannesen  <dalej@apple.com>
3900
3901         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
3902
3903 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
3904
3905         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
3906         Clarify use of "build" in name.
3907
3908 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
3909
3910         * doc/extend.texi (Raw read/write Functions): New section.
3911         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
3912         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
3913         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
3914         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
3915         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
3916         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
3917         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
3918         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
3919         * config/frv/frv.c: Add bdesc_loads global.
3920         Add bdesc_stores global.
3921         (frv_init_builtins): Add support for __builtin_{read/write}*.
3922         (frv_volatile_memref): New.
3923         (frv_expand_load_builtin): New.
3924         (frv_expand_store_builtin): New.
3925         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
3926         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
3927         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
3928         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
3929         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
3930         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
3931         (builtin_read_<mode>): New.
3932         (builtin_write_<mode>): New.
3933         (builtin_write64): New.
3934         (optional_membar_<mode>): New.
3935
3936 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
3937
3938         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
3939         (rather than units) against HOST_BITS_PER_WIDE_INT.
3940
3941 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
3942
3943         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
3944         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
3945         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
3946         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
3947         FSF address.
3948
3949         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
3950         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
3951         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
3952         comment typos.
3953         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
3954
3955 2005-07-26  Richard Guenther  <rguenther@suse.de>
3956
3957         PR tree-optimization/22486
3958         * fold-const.c (fold_unary): Fold away useless component
3959         references of the form (T *)&T.x, if the address
3960         doesn't change.
3961
3962 2005-07-25  James E Wilson  <wilson@specifixinc.com>
3963
3964         * dwarf2out.c (add_call_src_coords_attributes): New.
3965         (gen_inlined_subroutine_die): Call it.
3966         (maybe_emit_file, init_file_table): Add comments.
3967         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
3968         maybe_emit_file.
3969         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
3970         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
3971         * tree.h (BLOCK_SOURCE_LOCATION): New.
3972         (struct tree_block): New field locus.
3973
3974 2005-07-26  Andreas Schwab  <schwab@suse.de>
3975
3976         PR rtl-optimization/23043
3977         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
3978         when allocating a struct unoccr.
3979
3980 2005-07-25  Richard Henderson  <rth@redhat.com>
3981
3982         PR 22626
3983         * tree-complex.c (gate_no_optimization): True if errors.
3984         * Makefile.in (tree-complex.o): Update dependencies.
3985
3986 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
3987
3988         * config/frv/predicates.md (integer_register_operand): Use
3989         GPR_AP_OR_PSEUDO_P.
3990
3991 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
3992
3993         PR tree-opt/22484
3994         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
3995         after fold.
3996         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
3997
3998 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
3999
4000         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
4001         types when flag_unsafe_math_optimizations is true.
4002
4003 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
4004
4005         * gcc.c (option_map): Add --sysroot.
4006         (process_command): Handle --sysroot.
4007         (display_help): Document it.
4008         * doc/cppopts.tex (-isysroot): Document.
4009         * doc/invoke.texi (--sysroot): Document.
4010         * doc/install.texi (--with-build-sysroot): Document.
4011
4012         * Makefile.in (inhibit_libc): New variable.
4013         (INHIBIT_LIBC_CFLAGS): Likewise.
4014         (LIBGCC2_CFLAGS): Include
4015         $(INHIBIT_LIBC_CFLAGS).
4016         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
4017         ($(T)crtbegin.o): Do not use @inhibit_libc@.
4018         ($(T)crtend.o): Likewise.
4019         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
4020         ($(T)crtendS.o): Likewise.
4021         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
4022         ($(T)crtendT.o): Likewise.
4023         (stmp-fixinc): Do not complain about missing headers if
4024         inhibit_libc.
4025         * configure.ac (inhibit_libc): Set it to true/false.
4026         (--with-build-sysroot): New option.  Use it to set
4027         SYSTEM_HEADER_DIR.
4028         * configure: Regenerated.
4029
4030 2005-07-25  Manfred Hollstein  <mh@suse.com>
4031
4032         * calls.c (store_one_arg): Fix unsigned comparison warning.
4033
4034 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
4035
4036         PR other/22337
4037         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
4038         (ggc_print_statistics): Initialize variable before use.
4039
4040 2005-07-25  Richard Guenther  <rguenther@suse.de>
4041
4042         * tree-dfa.c (mark_new_vars_to_rename): Protect against
4043         calling with a PHI_NODE argument.
4044
4045         * tree-flow-inline.h (overlap_subvar): Protect against
4046         possible overflow.
4047
4048 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
4049
4050         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
4051         * configure: Regenerate.
4052
4053 2005-07-25  Ira Rosen  <irar@il.ibm.com>
4054
4055         * expr.c (highest_pow2_factor): Make extern.
4056         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
4057         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
4058         record_array_differ_p, array_ptr_differ_p): Likewise.
4059         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
4060         additional cases. Call the above functions.
4061         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
4062         base_object_differ_p when there are two base objects. Otherwise, compare
4063         base address and offset. Call may_alias_p.
4064         (dump_data_reference): Use a correct field name.
4065         (analyze_array): Make static. Initialize new data-ref fields.
4066         (analyze_indirect_ref): New function.
4067         (init_data_ref): Initialize new data-ref fields.
4068         (strip_conversion): Moved from tree-vect-analyze.c.
4069         (analyze_offset_expr, get_ptr_offset, address_analysis,
4070         object_analysis): Likewise.
4071         (analyze_offset): New function.
4072         (create_data_ref): Likewise.
4073         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
4074         dimensions for ARRAY_REFs only.
4075         (build_classic_dist_vector): Make static.
4076         (access_functions_are_affine_or_constant_p): Call macro to get the
4077         address of access functions.
4078         (compute_all_dependences): Add new parameter
4079         compute_self_and_read_read_dependences. Compute self and read-read
4080         dependences if it is true.
4081         (find_data_references_in_loop): Call create_data_ref. Initialize new
4082         data-ref fields.
4083         (compute_data_dependences_for_loop): Add new parameter
4084         compute_self_and_read_read_dependences. Remove parameter nb_loops,
4085         compute nb_loops. Call compute_all_dependences,
4086         build_classic_dist_vector and build_classic_dir_vector with correct
4087         parameters.
4088         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
4089         with correct parameters. Compare dimensions for ARRAY_REFs only.
4090         (free_data_refs): Call macro to free access functions.
4091         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
4092         fields from stmt_vinfo.
4093         (struct base_object_info): New structure.
4094         (struct data_reference): Move fields to base_object_info. Add fields
4095         first_location and object_info for above structures. Move fields from
4096         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
4097         aligned_to.  Add macros to access the new fields.
4098         Update functions declarations.
4099         * tree-flow.h (is_aliased_with): Declare.
4100         * tree-loop-linear.c (linear_transform_loops): Call
4101         compute_data_dependences_for_loop with correct parameters.
4102         * tree-ssa-alias.c (is_aliased_with): New function.
4103         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
4104         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
4105         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
4106         vect_base_addr_differ_p, compute_subscript_distance and
4107         build_classic_dist_vector. Add printings. Check absolute value of
4108         distance.
4109         (vect_analyze_data_ref_dependences): Go through ddrs instead of
4110         data-refs.
4111         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
4112         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
4113         to bytes. Add printing.
4114         (vect_compute_data_refs_alignment): Go through loads and stores in one
4115         loop.
4116         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
4117         vect_analyze_data_ref_access): Likewise.
4118         (vect_analyze_pointer_ref_access): Remove.
4119         (vect_address_analysis, vect_object_analysis): Likewise.
4120         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
4121         and analyze data-refs in the loop.
4122         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
4123         fields of data-ref instead of stmt. Add init to the offset from the
4124         base.
4125         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
4126         (vect_update_init_of_dr): Likewise.
4127         (vect_update_inits_of_drs): Go through loads and stores in one loop.
4128         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
4129         removed fields.
4130         (new_loop_vec_info): Initialize new fields.
4131         (destroy_loop_vec_info): Free new fields.
4132         (vect_strip_conversion): Remove.
4133         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
4134         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
4135         datarefs. Add new field ddrs.
4136         Add macros for the new fields access.
4137         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
4138         base_aligned_p, misalignment, memtag, ptr_info and subvars.
4139         Remove their macros.
4140         * tree.h (highest_pow2_factor): Declare.
4141
4142 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
4143
4144         * calls.c (store_one_arg): Check for sibling call MEM arguments
4145         from already clobbered incoming argument area.
4146
4147 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4148
4149         * c-common.c (check_missing_format_attribute): New.
4150         * c-common.h (check_missing_format_attribute): Likewise.
4151         * c-typeck.c (convert_for_assignment): Use it.
4152
4153 2005-07-24  Andreas Schwab  <schwab@suse.de>
4154
4155         * config/m68k/m68k.md ("extendqidi2"): When source is an address
4156         register use a word move.  Correct operand of ext.w in 68000 code.
4157
4158 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
4159
4160         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
4161         variables as declarations, rather than definitions.
4162
4163 2005-07-24  Ira Rosen  <irar@il.ibm.com>
4164
4165         PR tree-optimization/22526
4166         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
4167         of the zero node.
4168
4169 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4170
4171         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
4172         that C99 reserve for future use. Use it to define clog10,
4173         clog10f and clog10l.
4174
4175 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4176
4177         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
4178         * configure.ac: Check for -Wmissing-format-attribute.
4179
4180         * configure: Regenerate.
4181
4182 2005-07-23  Richard Henderson  <rth@redhat.com>
4183
4184         PR tree-optimization/22623
4185         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
4186
4187 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
4188
4189         PR target/22577
4190         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
4191
4192 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4193
4194         * Makefile.in (C_TREE_H): Update dependencies.
4195         * c-tree.h: Include toplev.h.
4196         * diagnostic.h (diagnostic_set_info): Add format attribute.
4197         * rtl-error.c (diagnostic_for_asm): Likewise.
4198
4199 2005-07-23  Chao-ying Fu  <fu@mips.com>
4200
4201         * config/mips/mips-dsp.md: New file.
4202         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
4203         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
4204         functions.
4205         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
4206         MIPS_BUILTIN_BPOSGE32.
4207         (mips_expand_builtin_direct): Add one parameter to indicate that
4208         builtin functions need to return a value.
4209         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
4210         functions.
4211         (mips_regno_to_class): Add classes for 12 new DSP registers.
4212         (mips_subword): Change to check four HI registers.
4213         (mips_output_move): Output move to and from 6 new DSP accumulators.
4214         (override_options): Make sure -mdsp and -mips16 are not used together.
4215         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
4216         for machine modes.
4217         (mips_conditional_register_usage): Disable 6 new DSP accumulators
4218         when !TARGET_DSP.
4219         (print_operand): Add 'q' for printing DSP accumulators.
4220         (mips_cannot_change_mode_class): Check ACC_REGS.
4221         (mips_secondary_reload_class): Check ACC_REGS.
4222         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
4223         (mips_register_move_cost): Check ACC_REGS.
4224         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
4225         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
4226         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
4227         (dsp_bdesc): New array.
4228         (bdesc_arrays): Add DSP builtin function table.
4229         (mips_prepare_builtin_arg): Check predicate again after
4230         copy_to_mode_reg.
4231         (mips_expand_builtin): Add one more parameter to
4232         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
4233         MIPS_BUILTIN_BPOSGE32.
4234         (mips_init_builtins): Initialize new function types.
4235         (mips_expand_builtin_direct): Check if builtin functions need to
4236         return a value and pass operands properly.
4237         (mips_expand_builtin_bposge): New function.
4238         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
4239         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
4240         (FIRST_PSEUDO_REGISTER): Increase to 188.
4241         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
4242         Update for 12 new DSP registers.
4243         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
4244         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
4245         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
4246         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
4247         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
4248         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
4249         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
4250         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
4251         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
4252         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
4253         (REGISTER_NAMES): Add names for 12 new DSP registers.
4254         * config/mips/mips.md: Include mips-dsp.md.
4255         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4256         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4257         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4258         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4259         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4260         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4261         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4262         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4263         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4264         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4265         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4266         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4267         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4268         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4269         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4270         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4271         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4272         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4273         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4274         (UNSPEC_RDDSP): New constants.
4275         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
4276         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
4277         A<-d alternative.
4278         * config/mips/mips.opt (-mdsp): New option.
4279         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
4280         (reg_imm10_operand): New predicates.
4281         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
4282         * doc/invoke.texi (-mdsp): Document new option.
4283
4284 2005-07-22  DJ Delorie  <dj@redhat.com>
4285
4286         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
4287         to warning calls.
4288         * tree-inline.c (inlinable_function_p): Likewise.
4289
4290 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
4291
4292         PR debug/21828
4293         * toplev.c (check_global_declarations): Do not mark undefined
4294         variables as DECL_IGNORED_P.
4295         * varasm.c (first_global_object_name): GTY it.
4296         (weak_global_object_name): Likewise.
4297         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
4298         a string to go into {weak,first}_global_object_name.
4299
4300 2005-07-22  DJ Delorie  <dj@redhat.com>
4301
4302         * c-format.c (check_function_format): Change warning control
4303         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
4304
4305 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
4306
4307         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
4308         &PTR->FLD a dereference of PTR.
4309         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
4310         a potential dereference of PTR.
4311
4312 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
4313
4314         PR rtl-optimization/20370
4315         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
4316         call allocate_reg_info if necessary.
4317
4318         PR rtl-optimization/21848
4319         * calls.c (emit_library_call_value_1): For const functions, add
4320         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
4321
4322         PR rtl-optimization/22445
4323         * cselib.c (target.h): Include.
4324         (rtx_equal_for_cselib_p): Allow commutative matches.
4325         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
4326         Remove MODE parameter.  Changed all callers.
4327
4328         PR rtl-optimization/22258
4329         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
4330         New functions.
4331         (try_combine): Use likely_spilled_retval_p.
4332
4333 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
4334
4335         * config.gcc: Add crx-elf support.
4336
4337         * doc/contrib.texi: Mention crx.
4338         * doc/extend.texi: Document crx extensions.
4339         * doc/install.texi: Document crx install.
4340         * doc/invoke.texi: Document crx options.
4341         * doc/md.texi: Document crx constraints.
4342
4343         * config/crx/crx-protos.h: New file.
4344         * config/crx/crx.c: New file.
4345         * config/crx/crx.h: New file.
4346         * config/crx/crx.md: New file.
4347         * config/crx/crx.opt: New file.
4348         * config/crx/t-crx: New file.
4349
4350 2005-07-22  Manfred Hollstein  <mh@suse.com>
4351
4352         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
4353         warnings.
4354         (int_add_graph_edge): Likewise.
4355         (collapse_nodes): Likewise.
4356         (process_unification_queue): Likewise.
4357
4358 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4359             Laurent GUERBY  <laurent@guerby.net>
4360
4361         PR tree-optimization/22336
4362         * function.c (record_block_change): Check for
4363         cfun->ib_boundaries_block.
4364
4365 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
4366
4367         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
4368         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
4369
4370 2005-07-21  DJ Delorie  <dj@redhat.com>
4371
4372         * toplev.c (warn_deprecated_use): Add warning control to warning
4373         call.
4374         * c-typeck.c (parser_build_binary_op): Likewise.
4375         (c_finish_if_stmt): Likewise.
4376         * c-common.c (check_function_sentinel): Likewise.
4377         (check_nonnull_arg): Likewise.
4378
4379 2005-07-21  Richard Henderson  <rth@redhat.com>
4380
4381         PR tree-opt/22504
4382         * tree-complex.c (complex_ssa_name_components): New.
4383         (cvc_lookup): Allow entry not found.
4384         (create_components): Remove.
4385         (create_one_component_var, get_component_var): New.
4386         (get_component_ssa_name, set_component_ssa_name): New.
4387         (extract_component): Use get_component_ssa_name.
4388         (update_complex_components): Use set_component_ssa_name.
4389         (update_complex_components_on_edge): Likewise.
4390         (update_phi_components): Create new PHI nodes directly, instead
4391         of adding insns to edges.
4392         (tree_lower_complex): Allocate and free complex_variable_components
4393         and complex_ssa_name_components here.
4394
4395 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
4396
4397         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
4398         revert to returning false.
4399
4400 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
4401
4402         PR target/21149
4403         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
4404
4405 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
4406
4407         PR target/22576
4408         * config/i386/i386.md (cmpxf): Change operand constraints
4409         to "nonmemory_operand".
4410
4411 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
4412
4413         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
4414
4415 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
4416
4417         PR middle-end/21180
4418         * fold-const.c (fold_build1): Add checksum for the operands.
4419         (fold_build2): Likewise.
4420         (fold_build3): Likewise.
4421
4422 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
4423
4424         PR middle-end/19055
4425         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
4426
4427 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
4428
4429         * common.opt (-fforward-propagate): Committed by mistake,
4430         removed.
4431
4432 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4433
4434         * reg-stack.c: Fix comment typo(s).
4435         * tree-ssa-operands.c: Likewise.
4436         * tree-vectorizer: Likewise.
4437
4438 2005-07-21  Nick Clifton  <nickc@redhat.com>
4439
4440         * config/sh/symbian.c: Replace C++ style line comments with C
4441         style line comments.
4442         (symbian_add_attribute): Do not use a ? operator on the LHS of
4443         an assignment.
4444         (sh_symbian_handle_dll_attribute): Change the type of the
4445         method vector to "VEC(tree,gc)*" and use vector accessor
4446         macros to walk over the elements.
4447         (symbian_export_vtable_and_rtti_p): Likewise.
4448         (symbian_class_needs_attribute_p): Likewise.
4449
4450 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
4451
4452         PR target/22085
4453         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
4454         initialize targetm.resolve_overloaded_builtin here.
4455         (altivec_expand_overloaded_builtin): Make it non-static.
4456         * config/rs6000/rs6000-protos.h
4457         (altivec_expand_overloaded_builtin): New prototype.
4458         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
4459         targetm.resolve_overloaded_builtin here.
4460         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
4461
4462 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
4463             Zdenek Dvorak  <dvorakz@suse.cz>
4464
4465         PR tree-optimization/19210
4466         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
4467         New.
4468         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
4469         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
4470         rely on unproven assumptions.
4471         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
4472         * tree-flow.h (number_of_iterations_exit): Add final parameter.
4473         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
4474         to number_of_iterations_exit.
4475         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
4476         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
4477         * tree-ssa-loop-niter.c (find_loop_niter,
4478         estimate_numbers_of_iterations_loop): Likewise.
4479         (number_of_iterations_exit): Honor the new options.
4480         * doc/invoke.texi (Wunsafe-loop-optimizations,
4481         funsafe-loop-optimizations): Document them.
4482
4483 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
4484
4485         PR rtl-optimization/22167
4486         * gcse.c (hoist_code): Fix hoist_exprs[] check.
4487
4488 2005-07-20  Adam Nemet  <anemet@lnxw.com>
4489
4490         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
4491         __do_global_dtors_aux longcall.
4492
4493 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
4494
4495         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
4496         (old_special_pred_table): Don't reference
4497         SPECIAL_MODE_PREDICATES.
4498         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
4499         * config/arc/arc.h: Don't mention PREDICATE_CODES.
4500         * config/sh/predicates.h: Don't mention
4501         SPECIAL_MODE_PREDICATES.
4502         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
4503         Remove.
4504
4505 2005-07-20  DJ Delorie  <dj@redhat.com>
4506
4507         * config.gcc: Add m32c-elf support.
4508
4509         * doc/contrib.texi: Mention m32c.
4510         * doc/extend.texi: Document m32c extensions.
4511         * doc/install.texi: Mention m32c.
4512         * doc/invoke.texi: Document m32c options.
4513         * doc/md.texi: Document m32c constraints.
4514
4515         * config/m32c/addsub.md: New file.
4516         * config/m32c/bitops.md: New file.
4517         * config/m32c/cond.md: New file.
4518         * config/m32c/jump.md: New file.
4519         * config/m32c/m32c-lib1.S: New file.
4520         * config/m32c/m32c-lib2.c: New file.
4521         * config/m32c/m32c-modes.def: New file.
4522         * config/m32c/m32c-pragma.c: New file.
4523         * config/m32c/m32c-protos.h: New file.
4524         * config/m32c/m32c.abi: New file.
4525         * config/m32c/m32c.c: New file.
4526         * config/m32c/m32c.h: New file.
4527         * config/m32c/m32c.md: New file.
4528         * config/m32c/m32c.opt: New file.
4529         * config/m32c/minmax.md: New file.
4530         * config/m32c/mov.md: New file.
4531         * config/m32c/muldiv.md: New file.
4532         * config/m32c/predicates.md: New file.
4533         * config/m32c/prologue.md: New file.
4534         * config/m32c/shift.md: New file.
4535         * config/m32c/t-m32c: New file.
4536
4537 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4538
4539         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
4540         (stack_protect_set, stack_protect_test): New expanders.
4541         (stack_protect_set_si, stack_protect_set_si_media,
4542         stack_protect_set_di_media, stack_protect_test_si,
4543         stack_protect_test_si_media, stack_protect_test_di_media):
4544         New insns.
4545
4546 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
4547
4548         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
4549
4550 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
4551
4552         * tree.h (tree_expr_nonzero_p): Export.
4553         * fold-const.c (tree_expr_nonzero_p): Likewise.
4554         Return true for CALL_EXPRs that are alloca calls.
4555         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
4556         against zero.
4557         * tree-flow.h (expr_computes_nonzero): Remove.
4558         * tree-vrp.c (expr_computes_nonzero): Remove.
4559         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4560         (extract_range_from_unary_expr): Likewise.
4561         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
4562         tree_expr_nonzero_p.
4563
4564 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
4565
4566         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
4567         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
4568         extra arg "picreg" and use it instead of pic_offset_table_rtx.
4569         All callers changed.
4570         (frame_related_constant_load): New arg "related" which controls
4571         setting of RTX_FRAME_RELATED_P.  All callers changed.
4572         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
4573         (bfin_expand_prologue): Add stack limit checking.
4574         * config/bfin/bfin.md (trapifcc): New pattern.
4575
4576         * config/bfin/bfin.c: Include "langhooks.h".
4577         (def_builtin): Go through lang_hooks to call builtin_function.
4578
4579         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
4580         * config/bfin/predicates.md (symbol_ref_operand): New.
4581         (call_insn_operand): Delete.  All callers changed to use
4582         register_no_elim_operand.
4583         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
4584         call_cookie field.
4585         (function_arg): Use it to generate the call's operand 2.
4586         (bfin_longcall_p): New function.
4587         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
4588         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
4589         determine if the address needs to be in a REG.
4590         (bfin_handle_longcall_attribute): New function.
4591         (bfin_attribute_table): Add "longcall" and "shortcall".
4592         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
4593         (CUMULATIVE_ARGS): New member call_cookie.
4594         (PREDICATE_CODES): Add symbol_ref_operand.
4595         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
4596         extra USE to the pattern.
4597         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
4598         New patterns, split off call_insn, sibcall_insn, call_value_insn and
4599         sibcall_value_insn; now the new patterns handle direct calls and the
4600         old ones indirect calls.
4601         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
4602
4603 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
4604
4605         * doc/trouble.texi: Update section on handling of empty loops.
4606
4607 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
4608
4609         * config.gcc: Remove support for sparc-*-openbsd*,
4610         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
4611         ns32k-*-netbsd*.
4612         * config.host: Remove support for i860-*-sysv4* as a host.
4613         * config/i860/*, config/ip2k/*, config/ns32k/*,
4614         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
4615         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
4616         mention obsolete ports.
4617
4618 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4619
4620         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
4621         soft frame pointer.
4622         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
4623         of frame_pointer_rtx.
4624         (sh_expand_epilogue): Likewise.
4625         (sh_set_return_address): Likewise.
4626         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
4627         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
4628         offsets from FRAME_POINTER_REGNUM.
4629         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
4630         (sh_register_names): Add initializer for sfp.
4631         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
4632         (VALID_REGISTER_P): Likewise.
4633         (FIRST_PSEUDO_REGISTER): Update.
4634         (DWARF_FRAME_REGISTERS): Define.
4635         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
4636         (HARD_FRAME_POINTER_REGNUM): Define.
4637         (FRAME_POINTER_REGNUM): Redefine.
4638         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
4639         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
4640         from FRAME_POINTER_REGNUM.
4641         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
4642         FRAME_POINTER_REGNUM.
4643         (REG_CLASS_CONTENTS): Add sfp.
4644         (REG_ALLOC_ORDER): Likewise.
4645         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
4646         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
4647         of frame_pointer_rtx.
4648         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4649
4650 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
4651
4652         * fold-const.c (tree_expr_nonnegative_p): Only return true for
4653         ABS_EXPR when flag_wrapv is false because of INT_MIN.
4654         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
4655         of an ABS_EXPR.
4656         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
4657         ABS_EXPR<x>.
4658
4659 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
4660
4661         Make CONSTRUCTOR use VEC to store initializers.
4662         * c-common.c (complete_array_type): Update to cope with VEC in
4663         CONSTRUCTOR_ELTS.
4664         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
4665         (pp_c_constructor_elts): New function.
4666         * c-pretty-print.h (pp_c_constructor_elts): Declare.
4667         * c-typeck.c (build_function_call, build_c_cast, digest_init,
4668         struct constructor_stack, struct initializer_stack,
4669         constructor_elements, push_init_level, pop_init_level,
4670         add_pending_init, find_init_member, output_init_element): Update to
4671         cope with VEC in CONSTRUCTOR_ELTS.
4672         * coverage.c (build_fn_info_value, build_ctr_info_value,
4673         build_gcov_info): Likewise.
4674         * expr.c (categorize_ctor_elements_1, store_constructor,
4675         expand_expr_real_1): Likewise.
4676         * fold-const.c (fold_ternary): Likewise.
4677         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
4678         gimplify_init_constructor, gimplify_expr): Likewise.
4679         * tree-dump.c (dequeue_and_dump): Likewise.
4680         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
4681         node.
4682         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
4683         CONSTRUCTOR_ELTS.
4684         * tree-sra.c (generate_element_init_1): Likewise.
4685         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4686         * tree-ssa-operands.c (get_expr_operands): Likewise.
4687         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4688         * tree-vect-transform.c (vect_get_vec_def_for_operand):
4689         (get_initial_def_for_reduction): Likewise.
4690         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
4691         value handle in annotations.
4692         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
4693         tree_node_structure): Add support for constr_kind.
4694         (build_vector_from_ctor, build_constructor_single,
4695         build_constructor_from_list): New functions.
4696         (build_constructor): Update to take a VEC instead of a TREE_LIST.
4697         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
4698         Update to cope with VEC in CONSTRUCTOR_ELTS.
4699         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
4700         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
4701         CONSTRUCTOR_APPEND_ELT): New macros.
4702         (struct constructor_elt, struct tree_constructor): New data types.
4703         (union tree_node): Add tree_constructor field.
4704         * treestruct.def: Define TS_CONSTRUCTOR.
4705         * varasm.c (const_hash_1, compare_constant, copy_constant,
4706         compute_reloc_for_constant, output_addressed_constants,
4707         initializer_constant_valid_p, output_constant,
4708         array_size_for_constructor, output_constructor): Update to cope with
4709         VEC in CONSTRUCTOR_ELTS.
4710         * vec.h (VEC_empty, VEC_copy): New macros.
4711
4712 2005-07-19  Devang Patel  <dpatel@apple.com>
4713
4714         * dbxout.c (dbxout_type): Check Objective-C++ lang.
4715
4716 2005-07-19  Richard Henderson  <rth@redhat.com>
4717
4718         PR tree-opt/22278
4719         * gimplify.c (gimplify_expr): Use main variant type for the temp
4720         destination for a discarded volatile read.
4721         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
4722         casts between non-void types that change volatility.
4723
4724 2005-07-15  DJ Delorie  <dj@redhat.com>
4725
4726         * toplev.h: Add comment about the first parameter for warning().
4727         * errors.h: Likewise.
4728
4729         * c.opt (Wpragmas): New.
4730         * doc/invoke.texi: Document it.
4731
4732         * function.c (do_warn_unused_parameter): Add warning control to
4733         warning call.
4734         * c-decl.c (warn_if_shadowing): Likewise.
4735         * c-lex.c (cb_def_pragma): Likewise.
4736         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
4737         (pop_alignment): Likewise.
4738         (handle_pragma_pack): Likewise.
4739         (apply_pragma_weak): Likewise.
4740         (handle_pragma_weak): Likewise.
4741         (handle_pragma_redefine_extname): Likewise.
4742         (add_to_renaming_pragma_list): Likewise.
4743         (handle_pragma_extern_prefix): Likewise.
4744         (maybe_apply_renaming_pragma): Likewise.
4745         (handle_pragma_visibility): Likewise.
4746
4747         * config/c4x/c4x-c.c (BAD): Likewise.
4748         (c4x_parse_pragma): Likewise.
4749         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
4750         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
4751         (rs6000_pragma_longcall): Likewise.
4752         * config/v850/v850-c.c (pop_data_area): Likewise.
4753         (ghs_pragma_section): Likewise.
4754         (ghs_pragma_section): Likewise.
4755         (ghs_pragma_interrupt): Likewise.
4756         (ghs_pragma_starttda): Likewise.
4757         (ghs_pragma_startsda): Likewise.
4758         (ghs_pragma_startzda): Likewise.
4759         (ghs_pragma_endtda): Likewise.
4760         (ghs_pragma_endsda): Likewise.
4761         (ghs_pragma_endzda): Likewise.
4762
4763 2005-07-19  Danny Berlin <dberlin@dberlin.org>
4764             Kenneth Zadeck <zadeck@naturalbridge.com>
4765
4766         * Makefile.in: Removed tree-promote-statics.c
4767         * tree-promote-statics.c: Removed.
4768         * common.opt: Removed flag-promote-statics.
4769         * opts.c: Ditto.
4770         * passes.c: Removed tree-promote-statics pass.
4771         * tree-pass.h: Ditto.
4772         * timevar.def: Removed TV_PROMOTE_STATICS.
4773
4774
4775 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
4776
4777         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
4778         and *-*-freebsd9.
4779         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
4780
4781 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4782
4783         PR c/22476
4784         * c-common.c (check_function_arguments): Call
4785         'check_function_format' if either -Wformat or
4786         -Wmissing-format-attribute are specified.
4787         * c-format.c (check_function_format): Check -Wformat before
4788         calling 'check_format_info'.
4789         * c-opts.c (c_common_post_options): Don't warn for
4790         -Wmissing-format-attribute without -Wformat.
4791         * c-typeck.c (convert_for_assignment): Detect additional cases for
4792         -Wmissing-format-attribute.
4793         * doc/invoke.texi (-Wmissing-format-attribute): Document new
4794         behavior.
4795
4796 2005-07-19  Richard Guenther  <rguenther@suse.de>
4797
4798         * config/i386/i386.md (lrint<mode>2): Use temporary
4799         instead of clobbering non-existent memory.
4800
4801 2005-07-19  Nick Clifton  <nickc@redhat.com>
4802
4803         * config/avr/avr.c (legitimate_address_p): Fix debugging print
4804         statement to avoid displaying ASCII control characters.
4805
4806 2005-07-19  Ben Elliston  <bje@au.ibm.com>
4807
4808         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
4809         * cfganal.c (find_edge_index): Ditto.
4810         * combine.c (combine_instructions): Ditto.
4811         * ddg.c (create_scc): Ditto.
4812         (find_successors): Ditto.
4813         (find_predecessors): Ditto.
4814         (find_nodes_on_paths): Ditto.
4815         (longest_simple_path): Ditto.
4816         * flow.c (update_life_info): Ditto.
4817         (count_or_remove_death_notes): Ditto.
4818         (clear_log_links): Ditto.
4819         * modulo-sched.c (generate_reg_moves): Ditto.
4820         (find_max_asap): Ditto.
4821         (find_max_hv_min_mob): Ditto.
4822         (find_max_dv_min_mob): Ditto.
4823         * sbitmap.c (sbitmap_first_set_bit): Ditto.
4824         * sched-rgn.c (extract_edgelst): Ditto.
4825         * tree-into-ssa.c (prepare_names_to_update): Ditto.
4826         (dump_update_ssa): Ditto.
4827         (ssa_names_to_replace) Ditto.
4828         (switch_virtuals_to_full_rewrite): Ditto.
4829         (update_ssa): Ditto.
4830         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
4831
4832 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
4833
4834         Fix PR tree-optimization/22483
4835
4836         * tree-complex.c (create_components): Use
4837         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
4838         * tree-flow-inline.h (fill_referenced_var_vec): New function.
4839         * tree-flow.h (safe_referenced_var_iterator): New structure.
4840         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
4841         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
4842         safe_referenced_var iterator.
4843         (add_type_alias): Ditto.
4844
4845 2005-07-19  Steven Bosscher  <stevenb@suse.de>
4846
4847         * loop-init.c (rest_of_handle_loop2): Remove.
4848         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
4849         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
4850         (pass_rtl_loop_init, pass_rtl_loop_done,
4851         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
4852         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
4853         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
4854         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
4855         pass_tree_loop_done, and pass_tree_unswitch.
4856         (gate_loop): Rename to gate_tree_loop.
4857         * passes.c (init_optimization_passes): Update for renamed tree
4858         loop passes.  Add the new loop2 passes as subpasses of loop2.
4859         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
4860         Update for the renamed tree loop passes.
4861
4862 2005-07-18  Ian Lance Taylor  <ian@airs.com>
4863
4864         PR middle-end/22057
4865         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
4866         blocks when optimizing.
4867
4868 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
4869
4870         * common.opt (frename-registers): Initialize to 2.
4871         (fweb): Ditto.
4872         (fgcse-after-reload): Ditto.
4873         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
4874         (process_options): Only change flag_web, flag_rename_registers,
4875         and flag_rerun_cse_after_loop if not explicitly set by user.
4876
4877 2005-07-18  Jan Beulich  <jbeulich@novell.com>
4878
4879         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
4880         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
4881         in 64-bit mode the same as DImode in 32-bit mode.
4882         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
4883         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
4884         mode. Add new mode parameter.
4885         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
4886         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
4887         x86_64_shift_adj): New expanders.
4888         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
4889         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
4890         insns.
4891         Respective new splitters. Use renamed shift splitter helpers in 32-bit
4892         DImode shift splitters.
4893         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
4894         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
4895         mode parameter.
4896
4897 2005-07-18  Jan Beulich  <jbeulich@novell.com>
4898
4899         * i386.md (movdi_extzv_1): New.
4900         (zero_extendhidi2): Combine alternatives and never force use of
4901         REX64 prefix.
4902         (zero_extendqidi2): Likewise. Don't restrict input selection.
4903
4904 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
4905
4906         Fix PR tree-optimization/22531
4907         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
4908          moment.
4909
4910 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
4911
4912         * tree-promote-statics.c (pass_promote_statics): Change dump file
4913          name.
4914
4915 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
4916
4917         * tree-optimize.c (init_tree_optimization_passes): Add
4918         pass_eliminate_useless_stores pass.
4919         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
4920         * tree-ssa-pre.c (is_copy_stmt): New function.
4921         (follow_copies_till_vuse): Ditto.
4922         (do_eustores): Ditto.
4923         (gate_eustores): Ditto.
4924
4925 2005-07-16  Richard Henderson  <rth@redhat.com>
4926
4927         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
4928
4929 2005-07-16 Danny Berlin <dberlin@dberlin.org>
4930            Kenneth Zadeck <zadeck@naturalbridge.com>
4931
4932         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
4933         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
4934         ipa-type-escape.h, tree-promote-statics.c
4935         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
4936         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
4937         tree-promote-statics.c: new files.
4938         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
4939         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
4940         int nonlocal_set_p, mark_constant_function): Deleted.
4941         (rest_of_handle_cfg): Removed call to mark_constant_function.
4942         (nonoverlapping_component_refs_p): Added calls to support
4943         type based aliasing.
4944         * tree-ssa-alias.c (may_alias_p,
4945         compute_flow_insensitive_aliasing): Ditto.
4946         * calls.c (flags_from_decl_or_type): Removed reference to
4947         cgraph_rtl_info.
4948         * c-typeck.c (convert_arguments): Make builtins tolerant of having
4949         too many arguments.  This is necessary for Spec 2000.
4950         * cgraph.h (const_function, pure_function): Removed.
4951         * common.opt: Added "fipa-pure-const", "fipa-reference",
4952         "fipa-type-escape", and "ftree-promote-static".
4953         * opts.c: Ditto.
4954         * passes.c: Added ipa and tree-promote-statics passes.
4955         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
4956         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
4957         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
4958         * tree-flow.h: Added exposed sra calls and addition of
4959         reference_vars_info field for FUNCTION_DECLS.
4960         * tree-pass.h: Added passes.
4961         * tree-sra.c: (sra_init_cache): New function.
4962         (sra_insert_before, sra_insert_after) Made public.
4963         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
4964         and made public.
4965         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
4966         aliasing. (may_alias_p): Added code to use type escape analysis to
4967         improve alias sets.
4968         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
4969         code to prune clobbers of static variables based on information
4970         produced in ipa-reference pass.  Changed call clobbering so that
4971         statics are not marked as clobbered if the call does not clobber
4972         them.
4973
4974 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
4975
4976         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
4977         too.
4978
4979 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
4980
4981         * doc/install.texi (*-*-solaris2*): Document recommended version
4982         of GNU binutils and mention GNU linker problem on Solaris 10.
4983
4984 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
4985
4986         PR c/22421
4987         * c-decl.c (c_build_bitfield_integer_type): New function.
4988         (finish_struct): Call it.
4989         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
4990
4991 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4992
4993         * c-typeck.c (digest_init): Call 'convert_for_assignment'
4994         before returning.
4995
4996 2005-07-16  Jan Hubicka  <jh@suse.cz>
4997
4998         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
4999         (scale_bbs_frequencies_int): Watch roundoff errors.
5000         * predict.c (return_prediction): Initialize return_stmt.
5001
5002 2005-07-16  Jan Hubicka  <jh@suse.cz>
5003
5004         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
5005         after RTL profiling.
5006
5007 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
5008
5009         PR middle-end/22398
5010         * fold-const.c (build_range_check): Convert high/low to etype
5011         if we are only comparing against exp.
5012
5013 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
5014
5015         Fix PR tree-optimization/22376
5016         * tree-ssa-structalias.c (build_constraint_graph): We really meant
5017         special var here.
5018         (need_to_solve): New function.
5019         (compute_points_to_sets): Use it.
5020
5021 2005-07-15  Jan Hubicka  <jh@suse.cz>
5022
5023         * cfg.c (update_bb_profile_for_threading): More diagnostic.
5024         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
5025
5026 2005-07-15  Richard Guenther  <rguenther@suse.de>
5027
5028         * c-common.c (handle_flatten_attribute): New function.
5029         Add flatten function attribute.
5030         * doc/extend.texi: Document flatten function attribute.
5031         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
5032         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
5033         New functions.
5034         (cgraph_decide_inlining): Handle functions with flatten
5035         attribute.
5036
5037 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
5038
5039         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
5040         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
5041         UNSPEC_XCHG, UNSPEC_AND): New.
5042         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
5043         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
5044         * config/rs6000/sync.md (FETCHOP): New code macro.
5045         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
5046         New code attrs.
5047         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
5048         (sync_compare_and_swap<mode>): Same.
5049         (sync_lock_test_and_set<mode>): Same.
5050         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
5051         for QImode and HImode, and not PPC405.
5052         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
5053         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
5054         (sync_<fetchop>{si,di}_internal): New.
5055         (sync_nand{si,di}_internal): New.
5056         (sync_old_<fetchop>{si,di}_internal): New.
5057         (sync_old_nand{si,di}_internal): New
5058         (sync_new_<fetchop>{si,di}_internal): New.
5059         (sync_new_nand{si,di}_internal): New.
5060         (atomic_and{si,di}): New.
5061         (sync_new_nand{si,di}_internal): New.
5062         (atomic_and{si,di}): New.
5063         (sync_add<mode>_internal): Delete.
5064         (sync_addshort_internal): Use unspec instead of unspec_volatile.
5065         (sync_sub<mode>_internal): Delte.
5066         (sync_subshort_internal): New.
5067         (sync_andsi_internal): Use unspec instead of unspec_volatile.
5068         (sync_anddi_internal): Delete.
5069         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
5070         (sync_booldi_internal): Delete.
5071         (sync_boolc<mode>_internal): Delete.
5072         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
5073         (sync_boolc<mode>_internal2): Delete.
5074         (sync_boolcc<mode>_internal): Delete.
5075         (isync, lwsync): Use unspec instead of unspec_volatile.
5076         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
5077         Revert UNSPEC_VOLATILE.
5078         (rs6000_split_atomic_op): New.
5079         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
5080
5081 2005-07-14  Eric Christopher  <echristo@redhat.com>
5082
5083         * config/mips/mips.c (mips_canonicalize_comparison): Cast
5084         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
5085
5086 2005-07-14  Eric Christopher  <echristo@redhat.com>
5087
5088         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
5089
5090 2005-07-14  Steven Bosscher  <stevenb@suse.de>
5091
5092         PR tree-optimization/22230
5093         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
5094         the computation of the four cross productions for "range op range".
5095
5096 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
5097             Ulrich Weigand  <uweigand@de.ibm.com>
5098
5099         PR target/20126
5100         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
5101         in some insn.
5102
5103 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
5104
5105         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
5106
5107 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
5108
5109         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
5110
5111 2005-07-14  Richard Guenther  <rguenther@suse.de>
5112
5113         PR middle-end/22347
5114         * config/i386/i386-protos.h (ix86_function_value): Change
5115         prototype to match new target hook.
5116         * config/i386/i386.c (ix86_value_regno): Change prototype
5117         to take extra type argument.
5118         (TARGET_FUNCTION_VALUE): Define.
5119         (ix86_function_ok_for_sibcall): Pass extra argument to
5120         ix86_value_regno, check return slot rtx for exact match.
5121         (ix86_function_value): Take extra parameter.  Dispatch to
5122         ix86_value_regno with fndecl/fntype as provided.
5123         (ix86_value_regno): Handle extra type argument.
5124         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
5125
5126         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
5127         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
5128         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
5129         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
5130         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
5131
5132 2005-07-14  Richard Guenther  <rguenther@suse.de>
5133
5134         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
5135         * calls.c (expand_call): Pass fntype to hard_function_value.
5136         (emit_library_call_value_1): Likewise.
5137         * explow.c: Include target.h.
5138         (hard_function_value): Take extra argument, the fntype.
5139         Use new target hook for function_value.
5140         * expr.h (hard_function_value): Change prototype.
5141         * function.c (aggregate_value_p): Pass 0 as fntype to
5142         hard_function_value.
5143         (assign_parms): Use new target hook for function_value.
5144         Pass 0 as fntype to hard_function_value.
5145         (expand_function_end): Likewise.
5146         * reg-stack.c: Include target.h.
5147         (stack_result): Use new target hook for function_value.
5148         * target-def.h: New target hook function_value.
5149         * target.h: Likewise.
5150         * targhooks.c (default_function_value): New function.
5151         * targhooks.h (default_function_value): Declare.
5152
5153 2005-07-13  Ian Lance Taylor  <ian@airs.com>
5154
5155         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5156
5157 2005-07-14  Jan Hubicka  <jh@suse.cz>
5158
5159         * tree-dfa.c (dump_variable): Use default_def function.
5160         * tree-ssa-alias.c (dump_points_to_info): Likewise.
5161         * tree-ssa.c (verify_use): Likewise.
5162         * tree-ssanames.c (release_ssa_name): Likewise.
5163         * tree-tailcall.c (eliminate_tail_call): Likewise.
5164         (tree_optimize_tail_calls_1): Likewise.
5165         * tree-vrp.c (get_value_range): Likewise.
5166
5167 2005-07-14  Ben Elliston  <bje@au.ibm.com>
5168
5169         * gcc.c (main): Compare language[0] with '*' when iterating over
5170         the infiles.
5171
5172 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
5173
5174         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
5175         "s390_emit_compare".  Add handling of CCZ1mode.
5176         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
5177         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
5178         checking.
5179         (s390_branch_condition_mask): Add CCZ1mode handling.
5180         * config/s390/s390.md: ("seq", "*seq"): New pattern.
5181         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
5182         Use CCZ1mode instead of CCZmode.
5183         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
5184
5185 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
5186
5187         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
5188         pattern.
5189         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
5190
5191 2005-07-13  Eric Christopher  <echristo@redhat.com>
5192
5193         * config/mips/mips.c (mips_canonicalize_comparison): New.
5194         (mips_emit_int_relational): Use.
5195
5196 2005-07-13  Eric Christopher  <echristo@redhat.com>
5197
5198         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
5199         static extra parts.
5200         * config/s390/s390.md: Include tpf.md. Move tpf specific
5201         patterns...
5202         * config/s390/tpf.md: To here.
5203         * config/s390/s390.opt: Move tpf specific options...
5204         * config/s390/tpf.opt: to here. Add mmain option.
5205         * config/s390/tpf-unwind.h: Remove unnecessary defines.
5206         * config/s390/tpf.h: Rewrite.
5207
5208 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * doc/tm.texi: Remove @xref{Cross-profiling}.
5211
5212 2005-07-13  Jeff Law  <law@redhat.com>
5213
5214         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
5215         expressions, test their _DECL operands for pointer equality rather
5216         than using operand_equal_p.
5217
5218 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5219
5220         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
5221         (TARGET_POSIX_IO): This.
5222         * config/darwin.h: Likewise.
5223         * config/freebsd.h: Likewise.
5224         * config/linux.h: Likewise.
5225         * config/lynx.h: Likewise.
5226         * config/netbsd.h: Likewise.
5227         * config/rs6000/linux64.h: Likewise.
5228         * config/rs6000/linux.h: Likewise.
5229         * config/s390/tpf.h: Likewise.
5230         * config/sh/embed-elf.h: Likewise.
5231         * config/sparc/linux64.h: Likewise.
5232         * config/sparc/linux.h: Likewise.
5233         * config/svr4.h: Likewise.
5234         * gcov-io.h: Likewise.
5235
5236         * doc/tm.texi: Updated.
5237
5238         * libgcov.c (create_file_directory): Defined only if
5239         TARGET_POSIX_IO is defined.
5240         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
5241         is defined.
5242
5243 2005-07-13  Jan Hubicka  <jh@suse.cz>
5244
5245         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
5246
5247 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
5248
5249         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
5250         structure as argument.
5251
5252 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
5253
5254         PR tree-optimization/21921
5255         * tree-iterator.c (tsi_link_before): Support the case when
5256         tsi_end_p (tsi) == true.
5257
5258 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
5259
5260         PR tree-optimization/22442
5261         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
5262         correctly.
5263
5264 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
5265
5266         PR rtl-optimization/20376
5267         * toplev.c (process_options): Enable -fweb and -frename-registers when
5268         unrolling.
5269         * doc/invoke.texi: Update the information about when -fweb and
5270         -frename-registers are enabled.
5271
5272 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
5273
5274         PR tree-opt/21840
5275         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
5276         if *rhs_p is not a SSA_NAME.
5277
5278 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
5279
5280         Fix PR tree-optimization/22422
5281         * tree-ssa-structalias.c (struct variable_info): Add flag for
5282         special vars.
5283         (get_varinfo): Now a static function.
5284         (new_varinfo): init has_union and is_special_var to false.
5285         (solution_set_add): Check has_union.
5286         (do_da_constraint): Move temporary variable so it gets reset
5287         properly.
5288         Also check for special variable.
5289         (do_ds_constraint): Ditto.
5290         (do_sd_constraint): Ditto.
5291         (do_structure_copy): Check for special variable.
5292         (find_func_aliases): Ditto.
5293         (init_base_vars): Set special vars properly.
5294
5295 2005-07-13  Jan Hubicka  <jh@suse.cz>
5296
5297         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
5298         do unit-at-a-time.
5299
5300         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
5301         (get_expr_operands): Fix thinko wrt flags and subvars.
5302
5303         PR tree-optimize/22379
5304         * tree-inline.c (expand_call_inline): Do not output sorry in early
5305         inlining.
5306
5307 2005-07-12  Dale Johannesen  <dalej@apple.com>
5308
5309         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
5310
5311 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
5312
5313         PR bootstrap/21704
5314         * host-linux.h: Include limits.h.
5315
5316 2005-07-12  Dale Johannesen  <dalej@apple.com>
5317
5318         * expr.c (compress_float_constant):  Add cost check.
5319         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
5320
5321 2005-07-12  Dale Johannesen  <dalej@apple.com>
5322
5323         * gcc.target/i386/compress-float-sse.c:  New.
5324         * gcc.target/i386/compress-float-sse-pic.c:  New.
5325         * gcc.target/i386/compress-float-387.c:  New.
5326         * gcc.target/i386/compress-float-387-pic.c:  New.
5327         * gcc.dg/compress-float-ppc.c:  New.
5328         * gcc.dg/compress-float-ppc-pic.c:  New.
5329
5330 2005-07-12  Eric Christopher  <echristo@redhat.com>
5331
5332         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
5333         static extra parts.
5334         * config/s390/s390.md: Include tpf.md. Move tpf specific
5335         patterns...
5336         * config/s390/tpf.md: To here.
5337         * config/s390/s390.opt: Move tpf specific options...
5338         * config/s390/tpf.opt: to here. Add mmain option.
5339         * config/s390/tpf-unwind.h: Remove unnecessary defines.
5340         * config/s390/tpf.h: Rewrite.
5341
5342 2005-07-12  Eric Christopher  <echristo@redhat.com>
5343
5344         * gcc.c (struct infile): Update comment for language.
5345         (main): Rewrite input file resetting code.
5346
5347 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
5348
5349         PR tree-opt/22335
5350         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
5351         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
5352         (lookup_avail_expr): Use constant_boolean_node instead
5353         of boolean_false_node/boolean_true_node.
5354
5355 2005-07-12  Ben Elliston  <bje@au.ibm.com>
5356
5357         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
5358         and use it when printing num_edges.
5359
5360 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
5361
5362         * doc/extend.texi (Blackfin Built-in Functions): New section.
5363         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
5364         @opindex.
5365
5366 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
5367
5368         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
5369         s/cmpstrsi/cmpstrnsi
5370         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
5371         'cmpstrnsi'.
5372         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
5373         (init_optabs): Initialize cmpstrn_optab.
5374         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
5375         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
5376         * expr.c: (enum insn_code cmpstrn_optab): Declare.
5377         * config/i386/i386.md: s/cmpstr/cmpstrn
5378         * config/c4x/c4x.md: s/cmpstr/cmpstrn
5379         * doc/md.texi: Update documentation.
5380
5381 2005-07-11  Richard Henderson  <rth@redhat.com>
5382
5383         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
5384         build_va_arg_indirect_ref.
5385         (alpha_gimplify_va_arg): Likewise.
5386         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
5387         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
5388         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
5389         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5390         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5391         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
5392         Likewise.
5393         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5394
5395 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
5396
5397         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
5398         * passes.c (init_optimization_passes): Add pass_empty_loop.
5399         * tree-pass.h (pass_empty_loop): Declare.
5400         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
5401         try_remove_empty_loop, remove_empty_loops): New functions.
5402         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
5403         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
5404
5405 2005-07-12  Peter Barada  <peter@the-baradas.com>
5406
5407         PR middle-end/16719
5408         PR middle-end/18421
5409         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
5410         in address registers.
5411         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
5412         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
5413         alternative of addsi3_5200.
5414
5415 2005-07-11  Ian Lance Taylor  <ian@airs.com>
5416
5417         * config/mips/mips.md (ffs<mode>2): Remove.
5418
5419 2005-07-11  Ian Lance Taylor  <ian@airs.com>
5420
5421         * doc/tree-ssa.texi (Cleanups): Improve description of
5422         TRY_FINALLY_EXPR.
5423         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
5424
5425 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
5426
5427         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
5428         * tree.h (DECL_ARGUMENT_FLD): New macro.
5429
5430 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
5431
5432         Fix PR tree-optimization/22404
5433
5434         * tree-ssa-structalias.c (create_variable_info_for): Use
5435         correct offset.
5436
5437 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5438
5439         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
5440         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
5441         for second comparison operand.
5442         * config/bfin/predicates.md (reg_or_const_int_operand): New.
5443
5444         * config/bfin/bfin.md (define_attr "type"): Add "sync".
5445         (define_insn_reservation "alu"): Likewise.
5446         (csync, ssync): Now of type sync.
5447         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
5448         -mcsync-anomaly -mspecld-anomaly.
5449         * config/bfin/bfin.opt (mcsync): Remove.
5450         (mcsync-anomaly, mspecld-anomaly): Add.
5451         * config/bfin/bfin.c: Include "insn-codes.h".
5452         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
5453         (TARGET_DEFAULT_TARGET_FLAGS): New.
5454         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
5455
5456 2005-07-11  Steven Bosscher  <stevenb@suse.de>
5457
5458         * basic-block.h: Give the BB flags enum a name, bb_flags.
5459         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
5460         * cfgcleanup.c (enum bb_flags): Remove here.
5461         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
5462         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
5463         (update_forwarder_flag): Likewise.
5464         (thread_jump): Likewise.
5465         (try_forward_edges): Likewise.
5466         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
5467         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
5468         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
5469
5470 2005-07-11  Richard Guenther  <rguenther@suse.de>
5471
5472         * config/i386/i386.opt: New target option -msseregparm.
5473         * config/i386/i386.c (override_options): Error out for
5474         -msseregparm but no SSE support.
5475         (ix86_function_sseregparm): Check for global sseregparm.
5476         * doc/invoke.texi: Document -msseregparm.
5477
5478 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5479
5480         * config.gcc (m32r-*-linux*): Use the default extra_parts.
5481         (m32rle-*-linux*): Ditto.
5482
5483 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
5484
5485         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
5486         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
5487         bytes.
5488
5489 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5490
5491         PR middle-end/22239
5492         PR target/20126
5493         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
5494         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
5495
5496 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
5497
5498         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
5499         (varmap): Heapify varmap.
5500         (constraints): Heapify constraints.
5501         (struct constraint_graph): Heapify succs and preds.
5502         (constraint_vec_find): Update for heapification.
5503         (constraint_set_union): Ditto.
5504         (insert_into_complex): Ditto.
5505         (constraint_edge_vec_find): Ditto.
5506         (erase_graph_self_edge): Ditto.
5507         (add_graph_edge): Ditto.
5508         (get_graph_weights): Ditto.
5509         (merge_graph_nodes): Ditto.
5510         (build_constraint_graph): Ditto.
5511         (topo_visit): Ditto.
5512         (solve_graph): Ditto.
5513         (create_variable_info_for): Ditto.
5514         (init_base_vars): Ditto.
5515         (delete_points_to_sets): Free graph, varmap, and complex constraints.
5516         (condese_varmap_nodes): Free complex vector.
5517         (clear_edges_for_node): Clear succs and preds vector.
5518
5519 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
5520
5521         * tree-ssa-structalias.c (update_alias_info): Change counting of
5522         references to not include vdefs.
5523
5524 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
5525
5526         * tree-ssa-alias.c (free_used_part_map): Add missing free.
5527         (up_insert): Ditto.
5528
5529 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5530
5531         * pa.c (pa_commutative_p): Make PLUS commutative when
5532         TARGET_NO_SPACE_REGS is true.
5533
5534 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
5535
5536         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
5537         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
5538         * tree-dfa.c (dump_subvars_for): New.
5539         (debug_subvars_for): New.
5540         (dump_variable): Show subvariables if VAR has them.
5541         * tree-flow-inline.h (get_subvar_at): New.
5542         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
5543         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
5544         Update all users.
5545         (struct subvar): Change fields offset and size to unsigned
5546         HOST_WIDE_INT.
5547         (dump_subvars_for): Declare.
5548         (debug_subvars_for): Declare.
5549         (get_subvar_at): Declare.
5550         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
5551         to unsigned HOST_WIDE_INT *.
5552         (overlap_subvar): Likewise.
5553         * tree-gimple.c (is_gimple_reg): Always return false for
5554         SFTs and memory tags.
5555         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
5556         Update all callers.
5557         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
5558         (compute_may_aliases): Call compute_points_to_sets.
5559         (collect_points_to_info_for): Remove.
5560         (compute_points_to_and_addr_escape): Remove.
5561         (delete_alias_info): Call delete_points_to_sets.
5562         (compute_flow_sensitive_aliasing): If the call to
5563         find_what_p_points_to returns false, call set_pt_anything.
5564         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
5565         (set_pt_anything): Clear pi->pt_vars.
5566         (set_pt_malloc): Remove.
5567         (merge_pointed_to_info): Remove.
5568         (add_pointed_to_expr): Remove.
5569         (add_pointed_to_var): Remove.
5570         (collect_points_to_info_r): Remove.
5571         (is_escape_site): Make extern.
5572         (create_sft): New.
5573         (create_overlap_variables_for): Call it.
5574         * tree-ssa-copy.c (merge_alias_info): Never merge
5575         flow-sensitive alias information.
5576         * tree-ssa-operands.c (get_expr_operands): Adjust variables
5577         offset and size to be unsigned HOST_WIDE_INT.
5578         (add_to_addressable_set): Rename from note_addressable.
5579         Set TREE_ADDRESSABLE as the variables are added to the set.
5580         Update all users.
5581         (add_stmt_operand): Do not try to micro-optimize unmodifiable
5582         operands into VUSEs when adding V_MAY_DEFs for members in an
5583         alias set.
5584         * tree-ssa-operands.h (add_to_addressable_set): Declare.
5585         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
5586         (struct variable_info): Add bitfield is_heap_var.
5587         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
5588         (new_var_info): Initialize is_heap_var.
5589         (get_constraint_for): Add HEAP variables to the symbol table.
5590         Mark them with is_heap_var.
5591         (update_alias_info): New.  Taken mostly from the old
5592         compute_points_to_and_addr_escape.
5593         (handle_ptr_arith): New.
5594         (find_func_aliases): Call update_alias_info.
5595         Call handle_ptr_info for tcc_binary expressions.
5596         Call mark_stmt_modified.
5597         (create_variable_info_for): If DECL has subvars, do not create
5598         variables for its subvars.  Always add all the fields.
5599         (set_uids_in_ptset): If the solution includes ANYOFFSET and
5600         SFTs, then add all the SFTs of the structure.
5601         If VI->DECL is an aggregate with subvariables, add the SFT at
5602         VI->OFFSET.
5603         (find_what_p_points_to): If VI is an artificial variable,
5604         translate to bitfields in SSA_NAME_PTR_INFO.
5605         If the solution is empty, set pi->pt_vars to NULL
5606         (init_base_vars): Create ANYOFFSET.
5607         (compute_points_to_sets): Rename from create_alias_vars.
5608         Make extern.
5609         (pass_build_pta): Remove.
5610         (delete_points_to_sets): Rename from delete_alias_vars.
5611         (pass_del_pta): Remove.
5612         * tree-ssa-structalias.h (struct alias_info): Move from
5613         tree-ssa-alias.h.
5614         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
5615         NUM_REFERENCES_SET): Likewise.
5616         (compute_points_to_sets, delete_points_to_sets): Declare.
5617
5618 2005-07-09  Richard Henderson  <rth@redhat.com>
5619
5620         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
5621         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
5622         alpha_split_lock_test_and_set_12): New functions.
5623         * config/alpha/alpha-protos.h: Update.
5624         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
5625         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
5626         * config/alpha/sync.md (I12MODE): New.
5627         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
5628         (sync_<fetchop_name><I48MODE>): Likewise.
5629         (sync_nand<I48MODE>): Likewise.
5630         (sync_old_<fetchop_name><I48MODE>): Likewise.
5631         (sync_new_<fetchop_name><I48MODE>): Likewise.
5632         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
5633         (sync_compare_and_swap<I48MODE>): Likewise.
5634         (sync_lock_test_and_set<I48MODE>): Likewise.
5635         (sync_compare_and_swap<I12MODE>): New.
5636         (sync_compare_and_swap<I12MODE>_1): New.
5637         (sync_lock_test_and_set<I12MODE>): New.
5638         (sync_lock_test_and_set<I12MODE>_1): New.
5639
5640 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
5641
5642         PR 21356
5643         PR 22332
5644         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
5645
5646 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
5647
5648         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
5649         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
5650
5651 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
5652
5653         PR target/21656
5654         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
5655
5656 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
5657
5658         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
5659         memory_operand constraint.
5660         (store_conditional_<mode>): Same.
5661         (sync_compare_and_swap<mode>): Same.
5662         (sync_lock_test_and_set<mode>): Same.
5663
5664 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
5665
5666         Rewrite PIC support to more closely model actual instructions.
5667         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
5668         (cris_symbol): Remove prototypes for removed functions.
5669         (cris_pic_symbol_type_of, cris_valid_pic_const)
5670         (cris_expand_pic_call_address): Prototypes for new functions.
5671         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
5672         variable.
5673         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
5674         modifiers.
5675         <case ':'>: Add case for new punctuation character.
5676         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
5677         emitting (extra) PIC modifier.
5678         <case UNSPEC>: Do not assert for PLT.
5679         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
5680         (cris_expand_prologue, cris_expand_epilogue): Check
5681         for pic_offset_table_rtx usage instead of taking
5682         current_function_uses_pic_offset_table as the final word.
5683         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
5684         Remove flag_pic difference.
5685         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
5686         the moral equivalents of...
5687         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
5688         functions.
5689         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
5690         (cris_handle_option): Mark ARG as unused.
5691         (cris_expand_pic_call_address): New worker function for "call",
5692         "call_value".
5693         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
5694         output PIC constructs here.
5695         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
5696         as symbol-specific modifers, not whole or part of operands.
5697         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
5698         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
5699         constants and flag_pic.
5700         (CONSTANT_INDEX_P): Adjust for new functions.
5701         (enum cris_pic_symbol_type): New helper type.
5702         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
5703         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
5704         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
5705         define_constants.
5706         ("movsi"): Emit actual instructions for GOT and relative access.
5707         ("*movsi_got_load"): New pattern to set up the register holding
5708         the GOT pointer.
5709         ("*movsi_internal"): Operand 1 is not a plain general_operand.
5710         Adjust FIXME for 'S'.
5711         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
5712         Use "movs" for -fpic cases.
5713         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
5714         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
5715         ("call", "call_value"): Just call cris_expand_pic_call_address for
5716         PIC addresses.
5717         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
5718         Remove special pattern.
5719         ("*expanded_call_side", "*expanded_call_value_side"): New
5720         patterns.
5721         (gotplt-to-plt, gotplt-to-plt-side-call)
5722         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
5723         peephole2:s.
5724         * config/cris/cris/predicates.md
5725         ("cris_general_operand_or_gotless_symbol"): Remove unused
5726         predicate.
5727         ("cris_general_operand_or_symbol"): Adjust for new functions.
5728
5729 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
5730
5731         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
5732
5733 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
5734
5735         * Makefile.in (TREE_H): Add treestruct.def.
5736         (c-decl.o): Add pointer-set.h
5737         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
5738         visibility on regular DECL's.
5739         (merge_decls): Fix the copying of decl nodes of various types for
5740         the new structures.  Don't update RTL, section name, weak status,
5741         etc, on DECL's without RTL.
5742         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
5743         Don't check volatile on non-variable types.
5744         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
5745         to check whether we have seen arguments.
5746         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
5747         flag is checked before field (flag is common, field is not).
5748         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
5749         TS_DECL_COMMON could have an origin.
5750         (add_location_or_const_value_attribute): Don't check section name
5751         on non-var/function decls.
5752         (dwarf2out_var_location): Reverse order of tests.
5753         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
5754         with DECL_WRTL_CHECK.
5755         * expmed.c (make_tree): rtl is now in decl_with_rtl.
5756         * fold-const.c (fold_binary): Don't check weakness on
5757         non-var/function decls.
5758         (tree_expr_nonzero_p): Ditto.
5759         (fold_checksum_tree): Use tree_decl_extra as sizeof
5760         buffer.
5761         * ggc-page.c (extra_order_size_table): Add sizes for
5762         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
5763         tree_field_decl.
5764         * gimplify.c (gimplify_bind_expr): Only set
5765         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
5766         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
5767         without RTL.
5768         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
5769         * langhooks.h (init_ts). New langhook.
5770         * passes.c (rest_of_decl_compilation): Reverse order of tests.
5771         * print-tree.c (print_node): Update to only print fields that
5772         exist in the structures the passed decl has.
5773         * toplev.c (wrapup_global_declarations): Don't reset
5774         DECL_DEFER_OUTPUT on DECL's that don't contain it.
5775         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
5776         * tree-inline.c (remap_decl): Ditto.
5777         * tree-outof-ssa.c (create_temp): Reverse order of tests.
5778         * tree-pretty-print.c (print_declaration): Don't print
5779         DECL_REGISTER on things that don't contain it.
5780         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
5781         non-var/function decls.
5782         * tree.c (tree_contains_struct): New structure.
5783         (init_priority_for_decl): New hashtable.
5784         (tree_int_map): New structure.
5785         (tree_int_map_eq): New function.
5786         (tree_int_map_marked_p): Ditto.
5787         (tree_int_map_hash): Ditto.
5788         (tree_map): Move to tree.h.
5789         (tree_map_eq): Externalize.
5790         (tree_map_hash): Ditto.
5791         (tree_map_marked_p): Ditto.
5792         (init_ttree): Set up tree_contains_struct and call langhook.
5793         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
5794         (tree_code_size): Update for new structures.
5795         (tree_node_structure): Update for new structures.
5796         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
5797         without the field.
5798         (copy_node_stat):  Copy init priority.
5799         (build_decl_stat): Ditto for visibility.
5800         (ts_enum_names): New.
5801         (tree_contains_struct_check_failed): New function.
5802         (decl_init_priority_lookup): Ditto.
5803         (decl_init_priority_insert): Ditto.
5804         * treestruct.def: New file.
5805         * tree.h (CODE_CONTAINS_STRUCT): New macro.
5806         (CONTAINS_STRUCT_CHECK): Ditto.
5807         (tree_contains_struct_check_failed): New prototype.
5808         (DECL_CHECK): Removed.
5809         (DECL_MINIMAL_CHECK): New.
5810         (DECL_COMMON_CHECK): Ditto.
5811         (DECL_WRTL_CHECK): Ditto.
5812         (DECL_NON_COMMON_CHECK): Ditto.
5813         (DECL_WITH_VIS_CHECK): Ditto.
5814         (VAR_OR_FUNCTION_DECL_P): Ditto
5815         (struct tree_decl_minimal): New structure.
5816         (struct tree_decl_common): Ditto.
5817         (struct tree_decl_with_rtl): Ditto.
5818         (struct tree_decl_with_vis): Ditto.
5819         (struct tree_decl_non_common): Ditto.
5820         (struct tree_field_decl): Ditto.
5821         (struct tree_parm_decl): Ditto.
5822         (struct tree_var_decl): Ditto.
5823         (struct tree_function_decl): Ditto.
5824         (struct tree_const_decl): Ditto.
5825         (struct tree_result_decl): Ditto.
5826         (union tree_node): Add new structures.
5827         * var-tracking.c (track_expr_p): Reverse order of tests.
5828
5829         * doc/c-tree.texi: Add documentation on DECL node internal structure.
5830
5831 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
5832
5833         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
5834         * system.h: Poison FINALIZE_PIC.
5835         * doc/tm.texi (FINALIZE_PIC): Remove.
5836
5837 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
5838
5839         PR tree-opt/22329
5840         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
5841         to the correct type if we have a MODIFY_EXPR.
5842
5843 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
5844
5845         PR tree-optimization/22360
5846         * tree.c (upper_bound_in_type): Fix calculations for casting
5847         to a non-wider signed type and casting a signed value to a
5848         wider unsigned type.
5849         (lower_bound_in_type): Fix calculations for casting to a
5850         non-wider signed type.
5851
5852         PR tree-optimization/20139
5853         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
5854         release_defs.
5855         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
5856         fold_cond_expr_cond.
5857         * tree-ssanames.c (release_defs): Assert in_ssa_p.
5858         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
5859
5860 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
5861
5862         PR tree-opt/22356
5863         * tree-complex.c (expand_complex_libcall): Produce
5864         REALPART_EXPR/IMAGPART_EXPR with the correct type.
5865
5866 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
5867
5868         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5869         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
5870         b" assert and inserted fastpath code for this case.
5871         (bitmap_ior): Removed "a != b" assert.
5872
5873 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5874
5875         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
5876         (ENDFILE_SPEC): Likewise.
5877         * config/m32r/m32r.h (ASM_SPEC): Likewise.
5878
5879         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
5880         a large stack frame at epilogue.
5881
5882 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
5883
5884         * final.c: Include sdbout.h when required.
5885
5886 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
5887
5888         * config.gcc (*-*-darwin*): Only one target-specific header file
5889         for generic darwin.
5890         (powerpc-*-darwin*): Add version-specific header files.
5891         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
5892         * config.in: Regenerate.
5893         * configure: Regenerate.
5894         * gcc.c: Include xregex.h.
5895         (version_compare_spec_function): New.
5896         (spec_function): Add version-compare.
5897         (replace_outfile_spec_function): Reformat comment.
5898         (compare_version_strings): New.
5899         * config/darwin-c.c (version_as_macro): New.
5900         (builtin_define): New.
5901         (darwin_cpp_builtins): New.
5902         * config/darwin-protos.h (darwin_cpp_builtins): New.
5903         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
5904         (LIB_SPEC): Make unconditional, update comment.
5905         (TARGET_C99_FUNCTIONS): Define.
5906         * config/darwin.opt: Sort.
5907         (mmacosx-version-min=): New.
5908         * config/darwin7.h: Delete.
5909         * config/darwin8.h: Delete.
5910         * config/i386/darwin.h (): Call darwin_cpp_builtins.
5911         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
5912         (TARGET_C99_FUNCTIONS): Define.
5913         * config/rs6000/darwin7.h: New.
5914         * config/rs6000/darwin8.h: New.
5915         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
5916         (-mmacosx-version-min): Document.
5917
5918 2005-07-07  Ian Lance Taylor  <ian@airs.com>
5919
5920         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
5921
5922 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
5923
5924         PR middle-end/22239
5925         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
5926
5927 2005-07-07  Khem Raj  <kraj@mvista.com>
5928
5929         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
5930         in bytes, not words.
5931
5932 2005-07-07  Paul Brook  <paul@codesourcery.com>
5933
5934         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
5935         DEFAULT_FUNCTION_ARG_PADDING to upward.
5936
5937 2005-07-07  Richard Henderson  <rth@redhat.com>
5938
5939         * function.c (locate_and_pad_parm): Record parameter alignment in
5940         stack_alignment_needed.
5941
5942 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
5943
5944         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
5945         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
5946         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
5947         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
5948         (define_attr "type"): Add isync, sync, load_l, store_c.
5949         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
5950         Create scratch volatile MEM.
5951         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
5952         sync.
5953         (load_locked_<mode>): New.
5954         (store_conditional_<mode>): New.
5955         (sync_compare_and_swap<mode>): Replace with splitter.
5956         (sync_lock_test_and_set<mode>): Replace with splitter.
5957         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
5958         and UNSPECV_ISYNC.
5959         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
5960         is ics.  Attribute isync.
5961         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
5962         lwsync.
5963         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
5964         and UNSPECV_SYNC_OP.
5965         (emit_unlikely_jump): New.
5966         (emit_load_locked): New.
5967         (emit_store_conditional): New.
5968         (rs6000_split_compare_and_swap): New.
5969         (rs6000_split_lock_test_and_set): New.
5970         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
5971         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
5972         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
5973         rs6000_split_lock_test_and_set): Declare.
5974         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
5975         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
5976         store_c, isync, sync.
5977
5978 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
5979
5980         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
5981         filenames to gtyp-gen.h.
5982         (s-typ-gen): Use it in place of for loops.
5983
5984 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
5985
5986         * hooks.c (hook_bool_rtx_int_false): New function.
5987         * hooks.h (hook_bool_rtx_int_false): Declare.
5988         * target-def.h (TARGET_COMMUTATIVE_P): Define.
5989         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
5990         * target.h (struct gcc_target): Add commutative_p member.
5991         * targhooks.c (hook_bool_rtx_commutative_p): New function.
5992         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
5993         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
5994         (pa_commutative_p): New function.
5995         * jump.c (target.h): Include.
5996         (rtx_renumbered_equal_p): Use targetm.commutative_p.
5997         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
5998
5999 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
6000
6001         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
6002         (s390_expand_setmem): New.
6003         * config/s390/s390.c: Likewise.
6004         (print_shift_count_operand): Truncate to 12 bits instead of 6.
6005         Adapt comments.
6006         * config/s390/s390.md: ("setmem<mode>"): Accept character as
6007         general_operand.  Call new function "s390_expand_setmem".
6008         ("clrmem_long", "*clrmem_long"): Rewrite to ...
6009         ("setmem_long", "*setmem_long"): ... this.
6010
6011 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
6012
6013         * config/s390/s390.c: (optimization_options): Enable
6014         TARGET_MVCLE at -Os.
6015         * doc/invoke.texi: Document changes in default behaviour.
6016         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
6017
6018 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
6019
6020         * expr.c: (set_storage_via_setmem): Convert opchar to mode
6021         defined by back-end.
6022
6023 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
6024
6025         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
6026         all sets in the pattern.
6027         * config/rs6000/rs6000.md (stack_protect_testsi,
6028         stack_protect_testdi): Likewise.
6029
6030 2005-07-06  Jeff Law  <law@redhat.com>
6031
6032         * tree-vrp.c (simplify_using_ranges): Kill.
6033         (vrp_finalize): Remove call to simplify_using_ranges.
6034         (simplify_stmt_using_ranges): New function extracted from
6035         simplify_using_ranges.
6036         (simplify_div_or_mod_using_ranges): Likewise.
6037         (simplify_abs_using_ranges): Likewise.
6038         (simplify_cond_using_ranges): New function.
6039         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
6040         * tree-ssa-propagate.c (substitute_and_fold): Call
6041         simplify_stmt_using_ranges if we have range information.
6042
6043 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
6044
6045         * config/ia64/ia64.c (ia64_reorg): Check optimize before
6046         ia64_flag_schedule_isns2.
6047
6048         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
6049         reading/writing general registers.
6050         (ia64_function_arg): Revert 2005-06-18 change.
6051
6052 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
6053
6054         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
6055         (legitimize_tls_address): Use gcc_unreachable instead of abort.
6056
6057 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
6058
6059         * function.c (expand_function_end): Revert part of 2005-06-27
6060         patch.  Do sjlj_emit_function_exit_after after return_label.
6061
6062 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
6063
6064         * doc/install.texi (--disable-libssp): New.
6065
6066 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
6067
6068         * doc/invoke.texi: Update -fforce-mem documentation.
6069         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
6070         code for -fforce-mem.
6071         * expmed.c: (store_bit_field,store_fixed_bit_field,
6072         extract_bit_field): Ditto.
6073         * expr.c: (convert_move): Ditto.
6074         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
6075         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
6076         emit_conditional_add,expand_float,expand_fix): Ditto.
6077         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
6078         (common_handle_option): Issue warning when -fforce-mem specified.
6079
6080 2005-07-06  Paul Brook  <paul@codesourcery.com>
6081
6082         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
6083         argument is empty.
6084         * configure: Regenerate.
6085
6086 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
6087
6088         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
6089
6090 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
6091
6092         Fix PR tree-optimization/22319
6093         Fix PR tree-optimization/22140
6094         Fix PR tree-optimization/22310
6095
6096         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
6097         variable sized types.
6098         Use correct type for intermediate structure on *a = *b structure
6099         copies.
6100
6101 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
6102
6103         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
6104         Remove.
6105         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
6106         (machine_function): Move typedef to...
6107         * config/rs6000/rs6000.c (machine_function): ... here.  Add
6108         varargs_save_offset field.
6109         (rs6000_stack_t): Remove varargs_size field.
6110         (setup_incoming_varargs): Allocate varargs save area using
6111         assign_stack_local, try to make it as small as possible.
6112         Save offset from virtual_stack_vars_rtx to the save area
6113         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
6114         instead of magic 8 when fp word byte size is used.
6115         (rs6000_va_start): Use cfun->machine->varargs_save_offset
6116         instead of -RS6000_VARARGS_SIZE.
6117         (rs6000_stack_info, debug_stack_info,
6118         rs6000_initial_elimination_offset): Remove all traces of
6119         varargs_size.
6120         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
6121         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
6122         RS6000_VARARGS_AREA.
6123
6124 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
6125
6126         PR tree-optimization/21963
6127         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
6128         constant_multiple_of in the same way get_computation_cost_at does.
6129
6130 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
6131
6132         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
6133         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
6134         (gen_compare_reg): If sparc_compare_emitted is set, clear it
6135         and return its previous value.
6136         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
6137         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
6138         constants.
6139         (stack_protect_set, stack_protect_test): New expanders.
6140         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
6141         stack_protect_testdi): New insns.
6142         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
6143         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
6144
6145 2005-07-06  Jeff Law  <law@redhat.com>
6146
6147         * tree-ssa-dce.c (cfg_altered): New global.
6148         (tree_dce_init): Initialize cfg_altered.
6149         (remove_dead_stmt): If we remove an edge in the CFG, then set
6150         CFG_ALTERED.
6151         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
6152         the dominators.
6153
6154 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
6155
6156         * Makefile.in (stamp-collect-ld): Use
6157         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
6158         ./collect-ld if it already exists.
6159         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
6160         Don't remove ./nm if it already exists.
6161
6162 2005-07-05  Devang Patel  <dpatel@apple.com>
6163
6164         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
6165         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
6166         * tree-vectorizer.c (vect_loop_location): New.
6167         (vect_print_dump_info): Use vect_loop_location.
6168         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
6169         (vectorize_loops): Set vect_loop_location.
6170         * tree-vect-analyze.c (vect_analyze_offset_expr,
6171         vect_determin_vectorization_factor, vect_analyze_operations,
6172         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
6173         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
6174         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
6175         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
6176         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
6177         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
6178         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
6179         vect_analyze_loop): Adjust vect_print_dump_info API.
6180         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
6181         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
6182         vect_finish_stmt_generation, vectorizable_assignment,
6183         vectorizable_operation, vectorizable_store, vectorizable_load,
6184         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
6185         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
6186         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
6187         vect_transform_loop): Same.
6188         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
6189         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
6190         Same.
6191
6192 2005-07-05  Randolph Chung  <tausq@debian.org>
6193
6194         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
6195         * configure: Regenerate.
6196         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
6197         (pa_tls_referenced_p): Declare.
6198         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
6199         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
6200         (legitimize_tls_address): New.
6201         (hppa_legitimize_address): Handle TLS addresses.
6202         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
6203         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6204         (emit_move_sequence): Handle TLS addresses.
6205         (pa_encode_section_info): Call default handler to handle common
6206         sections.
6207         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
6208         (CONSTANT_ADDRESS_P): Reject TLS operands.
6209         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
6210         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
6211         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
6212         (UNSPEC_TLSLE): Define new constants.
6213         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
6214         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
6215         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
6216         (tie_symbolic_operand, tle_symbolic_operand): New
6217
6218 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
6219
6220         * aclocal.m4: Update macros for autoconf 2.59 style.
6221         * configure.ac: Likewise.
6222
6223 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6224
6225         * pa.c (function_value): Handle small aggregates on 32-bit targets.
6226         (function_arg): Pass small aggregates in general registers on 32-bit
6227         targets.
6228         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
6229
6230 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
6231
6232         * Makefile.in (final.o): Fix dependencies.
6233
6234 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
6235
6236         PR c/22013
6237         PR c/22098
6238         * langhooks.h (struct lang_hooks): Add expr_to_decl.
6239         * langhooks.c (lhd_expr_to_decl): New.
6240         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
6241         New.
6242         (LANG_HOOKS_INITIALIZER): Update.
6243         * tree.c (recompute_tree_invarant_for_addr_expr): Call
6244         expr_to_decl langhook.
6245         * c-tree.h (c_expr_to_decl): Declare.
6246         * c-typeck.c (c_expr_to_decl): New.
6247         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
6248         specially.
6249         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
6250
6251 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
6252
6253         PR c/22308
6254         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
6255         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
6256
6257 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
6258
6259         * Makefile.in: Adjust dependencies.
6260         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
6261         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
6262         * alias.c (rest_of_handle_cfg, pass_cfg): New.
6263         * bb-reorder.c (duplicate_computed_gotos): Make it static.
6264         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
6265         rest_of_compilation.
6266
6267         * bb-reorder.c (gate_duplicate_computed_gotos,
6268         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
6269         rest_of_handle_reorder_blocks, pass_reorder_blocks,
6270         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
6271         pass_partition_blocks): New.
6272         * bt-load.c (gate_handle_branch_target_load_optimize,
6273         rest_of_handle_branch_target_load_optimize,
6274         pass_branch_target_load_optimize): New.
6275         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
6276         pass_jump2): New.
6277         * cfglayout.c (pass_insn_locators_initialize): New.
6278         * cfgrtl.c (pass_free_cfg): New.
6279         * combine.c (gate_handle_combine, rest_of_handle_combine,
6280         pass_combine): New.
6281         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
6282         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
6283         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
6284         * except.c (pass_set_nothrow_function_flags,
6285         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
6286         pass_rtl_eh): New.
6287         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
6288         rest_of_handle_shorten_branches, pass_shorten_branches,
6289         rest_of_clean_state, pass_clean_state): New.
6290         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
6291         rest_of_handle_remove_death_notes, pass_remove_death_notes,
6292         rest_of_handle_life, pass_life, rest_of_handle_flow2,
6293         pass_flow2): New.
6294         * function.c (pass_instantiate_virtual_regs, pass_init_function,
6295         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
6296         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
6297         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
6298         pass_gcse): New.
6299         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
6300         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
6301         pass_rtl_ifcvt, gate_handle_if_after_combine,
6302         rest_of_handle_if_after_combine, pass_if_after_combine,
6303         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
6304         pass_if_after_reload): New.
6305         * integrate.c (pass_initial_value_sets): New.
6306         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
6307         pass_purge_lineno_notes): New.
6308         * mode-switching.c (rest_of_handle_mode_switching,
6309         pass_mode_switching): New.
6310         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
6311         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
6312         pass_loop2): New.
6313         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
6314         pass_loop_optimize): New.
6315         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
6316         pass_sms): New.
6317         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
6318         pass_gcse2): New.
6319         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
6320         pass_postreload_cse): New.
6321         * profile.c (gate_handle_profiling, pass_profiling,
6322         rest_of_handle_branch_prob, pass_branch_prob): New.
6323         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
6324         pass_split_before_regstack, gate_handle_split_before_regstack,
6325         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
6326         rest_of_handle_split_all_insns, pass_split_all_insns): New.
6327         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
6328         pass_stack_regs): New.
6329         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
6330         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
6331         pass_stack_adjustments): New.
6332         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
6333         pass_regrename): New.
6334         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
6335         pass_delay_slots, gate_handle_machine_reorg,
6336         rest_of_handle_machine_reorg, pass_machine_reorg): New.
6337         * rtl.h (extern void purge_line_number_notes): New.
6338         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
6339         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
6340         pass_sched2): New.
6341         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
6342         pass_tracer): New.
6343         * value-prof.c (gate_handle_value_profile_transformations,
6344         rest_of_handle_value_profile_transformations,
6345         pass_value_profile_transformations): New.
6346         * var-tracking.c (gate_handle_var_tracking,
6347         pass_variable_tracking): New.
6348         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
6349
6350         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
6351         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
6352         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
6353         rest_of_handle_old_regalloc, rest_of_handle_regrename,
6354         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
6355         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
6356         rest_of_handle_gcse2, rest_of_handle_regmove,
6357         rest_of_handle_tracer, rest_of_handle_if_conversion,
6358         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
6359         rest_of_handle_web, rest_of_handle_branch_prob,
6360         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
6361         rest_of_handle_jump_bypass, rest_of_handle_combine,
6362         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
6363         rest_of_handle_gcse, rest_of_handle_loop_optimize,
6364         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
6365         rest_of_handle_mode_switching, rest_of_handle_jump,
6366         rest_of_handle_eh, rest_of_handle_stack_adjustments,
6367         rest_of_handle_flow2, rest_of_handle_jump2,
6368         rest_of_handle_peephole2, rest_of_handle_postreload,
6369         rest_of_handle_shorten_branches, rest_of_clean_state,
6370         rest_of_compilation): Remove.
6371
6372         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
6373         * passes.c (dump_flags, in_gimple_form, all_passes,
6374         all_ipa_passes, all_lowering_passes, register_one_dump_file,
6375         register_dump_files, next_pass_1, last_verified, execute_todo,
6376         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
6377         from tree-optimize.c.
6378         (init_optimization_passes): Moved from tree-optimize.c,
6379         adding the RTL optimizations.
6380         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
6381         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
6382         all_ipa_passes, all_lowering_passes, register_one_dump_file,
6383         register_dump_files, next_pass_1, last_verified, execute_todo,
6384         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
6385         init_tree_optimization_passes, ipa_passes): Delete.
6386         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
6387         the RTL dumps.
6388         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
6389         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
6390         from tree.h.
6391         (ipa_passes): Remove.
6392         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
6393         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
6394         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
6395         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
6396         (dump_info_p, dump_flag): Moved to tree-dump.h.
6397
6398         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
6399         cgraph.c, opts.c.
6400         * passes.c (finish_optimization_passes): Use dump_begin
6401         and dump_end, TDI_end.
6402         (gate_rest_of_compilation): New.
6403         (pass_rest_of_compilation): Use it.
6404         (gate_postreload, pass_postreload): New.
6405         * toplev.c (general_init): Rename init_tree_optimization_passes.
6406         * toplev.h (init_tree_optimization_passes): Rename to
6407         init_optimizations_passes.
6408         * tree-dump.c (dump_flag): Make static.
6409         (dump_files): Remove RTL dumps.
6410         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
6411         pass_cleanup_cfg, pass_free_cfg_annotations,
6412         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
6413         pass_init_datastructures, pass_fixup_cfg): Make non-static.
6414         * tree-pretty-print.c: Include tree-pass.h.
6415         * cgraph.c: Include tree-dump.h.
6416
6417 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
6418
6419         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
6420         Only fall back to saying it points to readonly memory if
6421         we can't do better.
6422
6423 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6424
6425         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
6426         * config/m32r/m32r.c (m32r_compute_frame_size,
6427         m32r_expand_prologue): Take current_function_profile into
6428         account whenever we reference
6429         current_function_uses_pic_offset_table.
6430         (m32r_finalize_pic): Remove.
6431         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
6432
6433 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
6434
6435         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
6436         instead of $<.  Don't remove ./as if it already exists.
6437
6438 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6439
6440         PR target/21723
6441         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
6442         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
6443         for complex modes when generating code for PA 1.0.
6444         (VALID_FP_MODE_P): New macro.
6445         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
6446         sets for all general and floating point modes.  Align wide floating
6447         point modes to even register boundaries to comply with architectural
6448         requirements.
6449         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
6450         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
6451         (VALID_FP_MODE_P): New macro.
6452         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
6453         sets for all general and floating point modes.  Align wide floating
6454         point modes to even register boundaries to comply with architectural
6455         requirements.
6456
6457 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
6458
6459         * tree-dump.c (dump_files): Initialize dump number for .cgraph
6460         to 0.
6461
6462 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
6463
6464         * tree-ssa-structalias.c: Don't include expr.h.
6465
6466 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
6467
6468         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
6469         comments.
6470
6471 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
6472
6473         Fix PR tree-optimization/22279
6474
6475         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
6476         correct operator.
6477
6478 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
6479
6480         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
6481
6482 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
6483
6484         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
6485         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
6486         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
6487         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
6488         config/stormy16/stormy16.c, config/v850/v850.c,
6489         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
6490         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
6491         Avoid "." or "\n" at end of diagnostics and capital letters at
6492         start of diagnostics.
6493         * combine.c, cse.c: Don't translate dump file output.
6494         * toplev.c (print_version): Only translate output if going to
6495         stderr.
6496
6497 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
6498
6499         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
6500         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
6501         typos.
6502
6503 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6504
6505         * pa.c (fix_range): Fix typo in comment.
6506
6507 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
6508
6509         * tree-vrp.c (extract_range_from_assert): Replace
6510         fold (build (...)) with fold_build2.
6511
6512 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6513
6514         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
6515         gcc_gfc_char_table, init_dynamic_gfc_info): New.
6516         (format_types_orig, handle_format_attribute): Add support for
6517         format "gcc_gfc".
6518
6519 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6520
6521         * varasm.c (assemble_variable): Fix format specifier thinko.
6522
6523 2005-07-03  Ira Rosen  <irar@il.ibm.com>
6524
6525         PR tree-optimization/22029 (and 22135)
6526         * tree-pretty-print.c (dump_generic_node): Check that the node is not
6527         a phi node before calling dump_vops.
6528
6529 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6530
6531         * tree-dump.h (dump_string_field): Declare.
6532         * tree-dump.c: Use it instead of dump_string.
6533         (dump_string_field): Make non-static.
6534
6535 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6536
6537         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
6538         up the minimal CFG stuff always when optimize > 0.  Call
6539         split_all_insns_noflow in PIC case if needed.
6540
6541 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6542             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
6543
6544         PR c++/18279
6545         * c-decl.c (c_write_global_declarations): Dump contents of
6546         external scope to.
6547         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
6548         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
6549         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
6550         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
6551         is enabled.
6552
6553 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
6554
6555         * c-common.h (GCC_DIAG_STYLE): Define.
6556         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
6557         version for format checking to 4.1.
6558         * c-format.c: Include toplev.h after c-common.h.
6559         (enum format_type): Add gcc_tdiag_format_type.
6560         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
6561         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
6562         (format_types_orig): Add gcc_tdiag.
6563         (init_dynamic_diag_info): Support gcc_tdiag formats.
6564         (handle_format_attribute): Likewise.
6565         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
6566         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
6567         version for format checking to 4.1.
6568         (warning0, warning, error, pedwarn, sorry): Use
6569         ATTRIBUTE_GCC_DIAG.
6570         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
6571         (finish_aliases_1): Do not use %qE.
6572         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
6573         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
6574         Correct format bugs.
6575         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
6576         parameter to unsigned HOST_WIDE_INT.
6577         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
6578
6579 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
6580
6581         PR middle-end/21742
6582         * expr.c (write_complex_part): Use adjust_address for MEM.
6583         (read_complex_part): Same.
6584
6585 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
6586
6587         Fix PR tree-optimization/22280
6588
6589         * tree-sra.c (generate_element_init): Remove useless loop.
6590
6591 2005-07-02  Richard Henderson  <rth@redhat.com>
6592
6593         * config/alpha/alpha.c (alpha_legitimize_address): Check for
6594         TLS_MODEL_NONE.
6595         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
6596
6597 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
6598
6599         PR middle-end/14490
6600         * fold-const.c (fold_binary): Handle the return value of
6601         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
6602         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
6603
6604 2005-07-02  Jeff Law  <law@redhat.com>
6605
6606         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
6607         a eliminate type conversion which feeds an equality comparison
6608         if the original type or either operand in the comparison is a
6609         function pointer.
6610
6611 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
6612
6613         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
6614         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
6615         texts.
6616         * config/avr/avr.c: Do not use '`' as left quote.
6617         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
6618         Remove "." from end of diagnostics.  Make diagnostics start with
6619         lowercase letter.
6620
6621 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
6622             Joseph S. Myers  <joseph@codesourcery.com>
6623
6624         * toplev.c (default_tree_printer): Handle setting location with
6625         '+' flag.
6626         * c-objc.common.c (c_tree_printer): Likewise.
6627         * c-format.c (gcc_diag_flag_specs): Add '+'.
6628         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
6629         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
6630         formats.
6631         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
6632         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
6633         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
6634         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
6635         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
6636         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
6637         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
6638         format arguments where %J is used without %D.
6639
6640 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
6641
6642         * gcc.c (LINK_SSP_SPEC): Define.
6643         (link_ssp_spec): New variable.
6644         (LINK_COMMAND_SPEC): Add %(link_ssp).
6645         (static_specs): Add link_ssp_spec.
6646         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
6647         * configure: Rebuilt.
6648         * config.in: Rebuilt.
6649
6650         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
6651         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
6652         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
6653         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
6654         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
6655         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
6656         -0x7008(2) instead of reading __stack_chk_guard variable.
6657         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
6658         number.
6659         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
6660         (stack_protect_set, stack_protect_test): Use *_tls* patterns
6661         if TARGET_THREAD_SSP_OFFSET is defined.
6662         (stack_tls_protect_set_si, stack_tls_protect_set_di,
6663         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
6664
6665         Revert:
6666         2005-06-27  Richard Henderson  <rth@redhat.com>
6667         * libgcc-std.ver (GCC_4.1.0): New.
6668         * libgcc.h (__stack_chk_guard): Declare.
6669         (__stack_chk_fail, __stack_chk_fail_local): Declare.
6670         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
6671         * mklibgcc.in (lib2funcs): Add them.
6672
6673 2005-07-01  Richard Henderson  <rth@redhat.com>
6674
6675         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
6676         void * before struct sigcontext *.
6677         (x86_fallback_frame_state): Likewise.
6678
6679 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
6680
6681         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
6682
6683 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
6684
6685         PR tree-opt/22269
6686         * tree-ssa-reassoc.c (should_transpose): Fix which operand
6687         we check for SSA_NAME for.
6688
6689 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
6690
6691         Fix PR tree-optimization/22071
6692
6693         * tree-ssa-structalias.c (offset_overlaps_with_access): New
6694         function.
6695         (get_constraint_for_component_ref): Use it.
6696
6697 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
6698
6699         PR other/22264
6700         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
6701         print out the last new line.
6702
6703 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
6704
6705         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
6706         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
6707         * config/cris/cris.c (cris_conditional_register_usage): Adjust
6708         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
6709         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
6710         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
6711         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
6712         (enum reg_class): New member CC0_REGS.
6713         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
6714         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
6715         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
6716         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
6717         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
6718         Adjust for register now described.
6719
6720 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
6721
6722         PR target/22262
6723         * config/i386/i386.md (stack_protect_test_si,
6724         stack_protect_test_di): Add earlyclobber for scratch 3.
6725         * config/rs6000/rs6000.md (stack_protect_testsi,
6726         stack_protect_testdi): Add earlyclobber for scratch 3,
6727         remove earlyclobber from scratch 4.
6728
6729 Older entries for 2005 can be found in ChangeLog-2005.