OSDN Git Service

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