OSDN Git Service

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