OSDN Git Service

b26eee5542f6c58a74f574ee1516cd00316d17f9
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-08-10  Eric Christopher  <echristo@apple.com>
2
3         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
4         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
5         V2DFmode.
6
7 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
8
9         PR target/21887
10         * config/darwin.c (machopic_indirect_data_reference): Use a new register
11         for the high part when generating dynamic-no-pic code.
12
13 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
14
15         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
16         (x86_64-*-linux*): Likewise.
17
18         * config/i386/crtfastmath.c: New file.
19         * config/i386/t-crtfm: Likewise.
20
21         * config/i386/linux.h (ENDFILE_SPEC): New.
22         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
23
24         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
25         crtfastmath.o.
26
27 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
28
29         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
30         (vec_shl, vec_shr): Document new operations.
31         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
32
33 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
34
35         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
36         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
37         change predicate to indexed_or_indirect_address.
38
39 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
40
41         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
42         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
43         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
44         and __aeabi_uwrite8.
45         * config/arm/unaligned-funcs.c: New file.
46         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
47
48 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
49
50         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
51         Add dump.
52         * cfglayout.c (pass_insn_locators_initialize): Add dump.
53         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
54         Add dump.
55         * except.c (pass_convert_to_eh_region_ranges): Add dump.
56         * final.c (pass_shorten_branches): Add dump.
57         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
58         (pass_life): Rename dump.
59         (rest_of_handle_flow2): Remove initial verify_flow_info.
60         * function.c (pass_instantiate_virtual_regs): Add dump.
61         * integrate.c (pass_initial_value_sets): Add dump.
62         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
63         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
64         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
65         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
66         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
67         gate_rtl_unrool_and_peel_loops): New.
68         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
69         rtl_doloop): Do not look at flags.
70         * mode-switching.c (pass_mode_switching): Add dump.
71         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
72         pass_split_before_regstack): Add dump.
73         * regmove.c (pass_stack_adjustments): Add dump.
74         * tree-optimize.c (pass_fixup_cfg): Add dump.
75
76 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
77
78         PR 23309
79         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
80         deciding which instruction sequence to use.
81
82 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
83
84         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
85         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
86
87 2005-08-09  Richard Guenther  <rguenther@suse.de>
88
89         * c-common.c (builtin_function_2): Remove.
90         (def_builtin_1): New function.
91         (c_common_nodes_and_builtins): Use def_builtin_1 to
92         build builtin functions.
93
94 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
95
96         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
97         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
98         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
99         Visual DSP.
100
101 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
102
103         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
104         fold_binary instead of fold_build2 since we don't care about the
105         resulting tree.
106         (loop_niter_by_eval): Likewise.
107         (compare_trees): Likewise.
108         (proved_non_wrapping_p): Likewise.
109
110 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
111
112         PR c/23161
113         PR c/23165
114         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
115         if the if is really empty.
116
117 2005-08-09  Steven Bosscher  <stevenb@suse.de>
118
119         PR tree-optimization/23234
120         * tree-ssa-math-opts.c (place_reciprocal): New enum.
121         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
122         argument of the new enum.
123         (execute_cse_reciprocals): Add reciprocals for function arguments
124         on the unique successor edge of the entry block.  Update other calls
125         to execute_cse_reciprocals_1.
126
127 2005-08-08  Richard Henderson  <rth@redhat.com>
128
129         PR 22439
130         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
131
132 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
133
134         * expr.c (write_complex_part): Return after handling MEM.
135
136 2005-08-08  Josh Conner  <jconner@apple.com>
137
138         PR rtl-optimization/23241
139         * combine.c (simplify_comparison): Fix error in determining
140         whether to lift a subreg from comparison.
141
142 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
143
144         PR target/18506
145         * config/rs6000/altivec.md (vec_init<mode>): New.
146         (vec_set<mode>): New.
147         (vec_extract<mode>): New.
148         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
149         (rs6000_expand_vector_set): New.
150         (rs6000_expand_vector_extract): New.
151         (rs6000_legitimate_offset_address_p): Offset addresses are valid
152         for Altivec modes before reload.
153         (altivec_expand_vec_init_builtin): New.
154         (get_element_number): New.
155         (altivec_expand_vec_set_builtin): New.
156         (altivec_expand_vec_ext_builtin): New.
157         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
158         builtins.
159         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
160         builtins.
161         * config/rs6000/rs6000.h (rs6000_builtins): Add
162         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
163         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
164         * config/rs6000/rs6000-protos.h: Declare new functions.
165
166 2005-08-08  Jan Hubicka  <jh@suse.cz>
167
168         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
169         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
170         * i386.md (movdi*): Use pic_32bit_operand.
171         * predicates.md (pic_32bit_operand): New.
172
173 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
174
175         PR c++/21166
176         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
177
178 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
179
180         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
181         (test_for_singularity): Use fold_build2.
182
183 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
184
185         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
186
187 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
188
189         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
190         (COMMON_ASM_OP) Define.
191         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
192         (ix86_encode_section_info): Likewise.
193         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
194         SUBTARGET_ENCODE_SECTION_INFO.
195
196 2005-08-06  Richard Henderson  <rth@redhat.com>
197
198         PR 21894
199         * tree-nested.c (convert_local_reference): Save and restore val_only
200         around component_ref and friends.  Clear walk_subtrees by default.
201
202 2005-08-06  Peter O'Gorman  <peter@pogma.com>
203
204         PR 21366
205         * gcc.c (process_command): Check the argument to -b has a dash.
206         * doc/invoke.texi: Update -b and -V docs.
207
208 2005-08-06  James E Wilson  <wilson@specifix.com>
209
210         * config/mips/cross64.h, config/mips/t-cross64: Delete.
211
212 2005-08-06  Michael Matz  <matz@suse.de>
213
214         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
215         member only if only one insn is associated with the value.
216
217 2005-08-06  Nick Clifton  <nickc@redhat.com>
218
219         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
220         New define.
221         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
222         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
223         Check symbol flags instead of symbol name mangling.
224         (xstormy16_asm_output_aligned_common): Likewise.  Also
225         simplify code since the bss100_section cass is the only case
226         where the below100 code will be triggered.
227         (xstormy16_encode_section_info): Encode below100 attribute
228         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
229         the name.
230         (xstormy16_strip_name_encoding): Delete - this function is no
231         longer needed.
232         (TARGET_STRIP_NAME_ENCODING): Undefine.
233         * config/stormy16/stormy16-protos.h: Delete prototype for
234         xstormy16_strip_name_encoding.
235
236 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
237
238         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
239         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
240         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
241         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
242         config/alpha/predicates.md, config/arc/arc.h,
243         config/arm/arm.h, config/arm/ieee754-df.S,
244         config/arm/ieee754-sf.S, config/bfin/bfin.c,
245         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
246         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
247         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
248         config/m68hc11/m68hc11.h, config/mips/mips.c,
249         config/mips/mips.h, config/mips/openbsd.h,
250         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
251         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
252         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
253         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
254         config/sparc/linux.h, config/sparc/linux64.h,
255         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
256         doc/extend.texi, doc/gcov.texi, doc/install.texi,
257         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
258         typos.  Follow spelling conventions.
259
260 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
261
262         PR c/23113
263         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
264         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
265         specially.  Check for side effects only for COND_EXPR.
266         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
267         return with TREE_NO_WARNING.
268
269 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
270
271         PR rtl-optimization/23233
272         * loop.c (combine_movables): Require the modes to be the same.
273         (move_movables): Remove handling of cases where the replacement
274         had a different mode to the original.
275
276 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
277
278         PR tree-optimization/23128
279         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
280         subtraction wrap, and set TREE_OVERFLOW if they do.
281
282 2005-08-05  Richard Henderson  <rth@redhat.com>
283
284         PR 21728
285         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
286         FORCED_LABEL labels.
287
288 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
289
290         PR middle-end/23135
291         * reload.c (find_reloads_subreg_address): Pass down TYPE
292         unchanged.  Change all callers except find_reloads_toplev.
293
294 2005-08-05  Michael Matz  <matz@suse.de>
295
296         * genattrtab.c (current_alternative_string): Remove.
297         (SIMPLIFY_ALTERNATIVE): Ditto.
298         (attr_alt_bit_p): Ditto.
299         (alternative_name): Make const char *.
300         (evaluate_eq_attr): Remove use of above things.
301         (simplify_test_exp): Ditto.
302         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
303         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
304
305 2005-08-04  James E Wilson  <wilson@specifix.com>
306
307         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
308         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
309         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
310         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
311         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
312
313 2005-08-04  Richard Henderson  <rth@redhat.com>
314
315         PR 21529
316         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
317         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
318         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
319         if we'd have to instantiate too many members.
320
321 2005-08-04  Richard Henderson  <rth@redhat.com>
322
323         PR 21291
324         * tree-outof-ssa.c (coalesce_asm_operands): New.
325         (coalesce_ssa_name): Use it.  Split out ...
326         (coalesce_phi_operands, coalesce_result_decls): ... these.
327
328 2005-08-04  Paul Brook  <paul@codesourcery.com>
329
330         * read-rtl.c (read_quoted_string): Break if EOF.
331
332 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
333
334         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
335         (fold_build2): Likewise.
336         (fold_build3): Likewise.
337         (fold_build1_stat): New function prototype.
338         (fold_build2_stat): Likewise.
339         (fold_build3_stat): Likewise.
340         * fold-const.c (fold_build1): Rename to ..
341         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
342         through to build1_stat.
343         (fold_build2): Rename to ..
344         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
345         through to build2_stat.
346         (fold_build3): Rename to ..
347         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
348         through to build3_stat.
349
350 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
351             Ian Lance Taylor  <ian@airs.com>
352
353         * function.c (assign_stack_local_1): Do not correct stack slot
354         address if allocation size is smaller than mode size.
355
356 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
357
358         PR 22037
359         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
360         (tree_merge_blocks): Propagate anything allowed by
361         may_propagate_copy.
362         Clarify documentation.
363         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
364         SSA form, schedule an update if necessary.
365
366 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
367
368         * doc/install.texi (Binaries): Remove broken link to
369         Sinix/Reliant Unix binaries.
370
371 2005-08-03  Richard Henderson  <rth@redhat.com>
372
373         PR 23221
374         * function.c (stack_protect_epilogue): Export.
375         * tree.h (stack_protect_epilogue): Declare.
376         * calls.c (expand_call): Call it.
377
378 2005-08-03  Eric Christopher  <echristo@apple.com>
379
380         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
381         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
382         spec.
383
384 2005-08-04  Jan Hubicka  <jh@suse.cz>
385
386         * profile.c (branch_prob): Split edges with goto locus on them
387         to get proper line counts.
388         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
389
390 2005-08-03  Paul Brook  <paul@codesourcery.com>
391
392         * function.c (assign_parms): Round current_function_args_size
393         to PARM_BOUNDARY, not STACK_BOUNDARY.
394
395 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
396
397         * config/i386/i386.c (x86_elf_aligned_common)
398         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
399
400 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
401
402         PR tree-optimization/23157
403         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
404         before emitting them.
405
406 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
407
408         PR tree-optimization/19899
409         * Makefile.in (tree-scalar-evolution.o): Add real.h.
410         * tree-scalar-evolution.c: Include real.h.
411         (add_to_evolution): Build constant -1 of correct type.
412
413 2005-08-03  Jan Hubicka  <jh@suse.cz>
414
415         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
416         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
417         profile updating for complette unrolling.
418         * loop-unroll.c (peel_loop_completely): Use it.
419         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
420         (tree_unroll_loops_completely): Disable code growing unrolling of cold
421         loops.
422
423 2005-08-03  Paul Brook  <paul@codesourcery.com>
424
425         * combine.c (can_change_dest_mode): New function.
426         (try_combine, simplify_set): Use it.
427
428 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
429
430         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
431         TFmode to BLKmode.
432
433 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
434
435         * doc/install.texi (Specific): Adjust link to openavr.org.
436         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
437         (Binaries): Adjust HP-UX Porting Center link.
438         (Binaries): Adjust Free Software Foundation ordering link.
439
440 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
441
442         * convert.c (convert_to_integer): Use fold_build1 instead of
443         build1 when converting an integer to an integer.
444
445 2005-08-02  Richard Henderson  <rth@redhat.com>
446
447         * combine.c (combine_instructions): Don't use reg_equal/equiv
448         results if the mode doesn't match.
449
450 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
451
452         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
453         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
454
455 2005-08-02  Richard Henderson  <rth@redhat.com>
456
457         PR 23196
458         * explow.c (memory_address): Remove special-case for
459         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
460
461 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
462
463         PR 23164
464         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
465         number of calls to cleanup_tree_cfg_1.
466
467 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
468
469         * doc/invoke.texi: document file extensions .F90 and .F95
470
471 2005-08-02  Richard Guenther  <rguenther@suse.de>
472
473         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
474         positive if its first argument is positive.
475
476 2005-08-02  Richard Guenther  <rguenther@suse.de>
477
478         PR tree-optimization/23177
479         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
480         on TMR_TAG.
481
482 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
483
484         PR tree-optimization/23129
485         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
486         varying for divisions with anti-ranges.
487
488 2005-08-02  Jan Hubicka  <jh@suse.cz>
489
490         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
491         * tree-ssa-threadupdate.c (thread_block): Add it here.
492
493 2005-08-01  James E Wilson  <wilson@specifix.com>
494
495         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
496         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
497         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
498         New.
499         * config/mips/predicates.md (const_call_insn_operand): Add check for
500         SYMBOL_REF_LONG_CALL_P.
501         * doc/extend.texi (long_call): Document the new attribute.
502
503 2005-08-01  Ian Lance Taylor  <ian@airs.com>
504             Richard Henderson  <rth@redhat.com>
505
506         * Makefile.in (RTL_BASE_H): Add real.h.
507         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
508         instead of memcpy.
509         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
510         directly.
511         * rtl.c (rtl_check_failed_code_mode): New.
512         * rtl.h (struct rtx_def): Add u.rv.
513         (XCMWINT, XCNMPRV): New.
514         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
515         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
516
517 2005-08-01  Richard Henderson  <rth@redhat.com>
518
519         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
520         with auto-inc codes.
521
522         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
523
524 2005-08-01  Jan Hubicka  <jh@suse.cz>
525
526         * i386-protos.h (asm_preferred_eh_data_format): Declare.
527         * i386.c: Include dwarf2.h
528         (asm_preferred_eh_data_format): New.
529         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
530
531 2005-08-01  Ian Lance Taylor  <ian@airs.com>
532
533         * config/host-linux.c (linux_gt_pch_get_address): Add new name
534         randomize_va_space for virtual address randomization control.
535
536 2005-08-01  Steven Bosscher  <stevenb@suse.de>
537
538         * common.opt (flag_ipa_cp): Put in right place to maintain
539         alphabetic sort.
540
541 2005-08-01  Jan Hubicka  <jh@suse.cz>
542
543         * profile.c (compute_value_histograms): Fix thinko.
544         * value-prof.c: Include toplev.h
545         (check_counter): New function.
546         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
547         tree_mod_subtract_transform): Add sanity check.
548
549 2005-08-01  Richard Guenther  <rguenther@suse.de>
550
551         PR tree-optimization/23133
552         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
553         current functions parameter decls to find defs to cse
554         reciprocals of.
555
556 2005-08-01  Richard Guenther  <rguenther@suse.de>
557
558         PR tree-optimization/23109
559         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
560         If trapping math is in effect, use post-dominator information
561         to check if we'd in any case reach a trapping point before
562         doing the reciprocal insertion.
563         (execute_cse_reciprocals): Compute post-dominators, if necessary.
564         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
565         expressions are invariant only if trapping math is not in effect.
566
567 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
568
569         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
570         cgraph_function_versioning): New declarations.
571         * cgraphunit.c: Add include to ipa-prop.h.
572         (update_call_expr, cgraph_copy_node_for_versioning,
573         cgraph_function_versioning): New functions.
574         * integrate.c (copy_decl_for_inlining): Remove.
575         * ipa-prop.h (ipa_replace_map): New struct.
576         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
577         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
578         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
579         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
580         ipcp_iterate_stage, ipcp_method_scale_print,
581         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
582         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
583         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
584         ipcp_update_bb_counts, ipcp_update_profiling,
585         ipcp_update_edges_counts): New functions.
586         (ipcp_method_cval_init): Remove restriction regarding local methods.
587         (ipcp_init_stage): Add ipcp_method_compute_scale.
588         (ipcp_insert_stage): Add versioning.
589         (ipcp_structures_print): Add ipcp_method_scale_print.
590         (ipcp_driver): Dump profiling info.
591         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
592         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
593         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
594         (struct inline_data): Add versioning_p, ipa_info, new fields.
595         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
596         declare_return_variable): Replace calls to copy_decl_for_inlining with
597         copy_decl_for_dup.
598         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
599         versioning support.
600         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
601         Add argument VERSIONING.
602         (copy_arguments_for_versioning, copy_static_chain,
603         function_versionable_p, tree_versionable_function_p,
604         tree_function_versioning, replace_ref_tree): New functions.
605         * tree-inline.h: Include varray.h.
606         (tree_versionable_function_p,  tree_function_versioning,
607         tree copy_decl_for_dup): New declarations.
608
609 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
610
611         * ipa-cp.c: New file. Contains IPCP specific functionality.
612         * ipa-prop.h: New file. Contains structures/definitions that can be
613         used by several interprocedural data flow optimizations (and also IPCP).
614         * ipa-prop.c: New file.
615         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
616         * common.opt: Add ipa-cp flag.
617         * timevar.def: Add IPCP optimization.
618         * tree-optimize.c (init_tree_optimization_passes): Schedule
619         pass_ipa_cp.
620         * tree-pass.h (pass_ipa_cp): Declare.
621
622 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
623
624         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
625         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
626         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
627         config/i386/i386.c, config/mips/mips.h,
628         config/rs6000/rs6000.h, config/sh/sh.c,
629         config/stormy16/stormy16.c: Fix comment typos.
630
631 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
632
633         PR c/22311
634         * c-typeck.c (build_binary_op): Use common_type wrapper on
635         shortened types.
636         (common_type): Update comment.
637
638 2005-07-31  Steven Bosscher  <stevenb@suse.de>
639
640         PR target/23095
641         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
642         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
643         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
644
645 2005-07-31  Jan Hubicka  <jh@suse.cz>
646
647         * pretty-print.h (pp_widest_integer): New macro.
648         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
649         counts.
650
651 2005-07-31  Jan Hubicka  <jh@suse.cz>
652
653         * output.h (enum section_category): Export from varasm.c
654         (categorize_decl_for_section): Likewise.
655         * varasm.c (enum section_category): Kill.
656         (categorize_decl_for_section): Make global.
657         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
658         Declare.
659         * i386.c (ix86_section_threshold): New static variable.
660         (ix86_in_large_data_p, ix86_encode_section_info,
661         x86_64_elf_unique_section,
662         x86_64_elf_select_section): New functions.
663         (TARGET_ENCODE_SECTION_INFO): Define
664         (override_options): Enable medium model for PIC.
665         (ix86_expand_prologue): Expand gen_set_got_rex64.
666         (legitimate_constant_p): Handle new UNSPECs.
667         (legitimate_pic_address_disp_p): Likewise.
668         (legitimize_pic_address): Lower MEDIUM model addressing.
669         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
670         (enum cmodel): Add MEDIUM_PIC.
671         (SYMBOL_REF_FAR_ADDR_P): New macro.
672         (SYMBOL_FLAG_FAR_ADDR): New flag.
673         * i386.md (movdi): Support medium model.
674         (set_got_rex64): New pattern.
675         * i386.opt (mlarge-data-threshold): New flag.
676         * predicates.md (zext_operand/sext_operand): Deal with medium model.
677         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
678         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
679         TARGET_ASM_UNIQUE_SECTION): New.
680
681         * invoke.texi (-mlarge_data_threshold): Document
682
683 2005-07-31  Jan Hubicka  <jh@suse.cz>
684
685         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
686         (coalesce_vars): Likewise.
687         * tree-ssa-live.c (coalesce_cost): New.
688         (build_tree_conflict_graph): Use coalesce_cost.
689         * tree-ssa-live.h (coalesce_cost): Declare.
690
691 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
692
693         * arm.md (all peepholes for post-increment operations): Delete.
694         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
695         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
696         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
697         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
698         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
699
700 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
701
702         * fold-const.c (tree_expr_nonnegative_p): Always return true for
703         non-integral types.
704
705 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
706
707         PR target/22582
708         * doc/invoke.texi: Document -rdynamic.
709
710 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
711
712         PR c/23143
713         * c-parser.c (c_parser_parms_list_declarator): Call
714         mark_forward_parm_decls.
715         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
716         decls with visibility structure.
717
718 2005-07-30  Paul Brook  <paul@codesourcery.com>
719
720         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
721
722 2005-07-30  Paul Brook  <paul@codesourcery.com>
723
724         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
725         prototype.
726         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
727         value for mode.
728         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
729
730 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
731
732         PR c/529
733         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
734         nested function declarators.
735         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
736         (grokparms): Call warn_if_shadowing for parameters used within the
737         parameter list.
738         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
739         not used within the parameter list.
740         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
741
742 2005-07-30  Jan Hubicka  <jh@suse.cz>
743
744         * expr.c (expand_expr_real_1): Do not load mem targets into register.
745         * i386.c (ix86_fixup_binary_operands): Likewise.
746         (ix86_expand_unary_operator): Likewise.
747         (ix86_expand_fp_absneg_operator): Likewise.
748         * optabs.c (expand_vec_cond_expr): Validate dest.
749
750 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
751
752         PR c/21720
753         * real.c (real_from_string): Also set last bit if there is a
754         nonzero hex digit beyond GCC's internal precision after ".".
755
756 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
757
758         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
759         define_constants.  Change duplicate values to unassigned numbers.
760         Change UNSPEC_SUBS to UNSPEC_VSUBS.
761         (*altivec_vspltsf): New.
762         (altivec_vperm_v4sf): Delete.
763         (altivec_vperm_<mode>): Use mode macro V.
764         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
765         (altivec_predicate_v4sf): Delete.
766         (altivec_predicate_<mode>): Use mode macro V.
767         (*altivec_lvesfx): New.
768         (*altivec_stvesfx): New.
769         (vec_realign_load_v4sf): Delete.
770         (vec_realign_load_<mode>): Use mode macro V.
771         * config/rs6000/rs6000.c (generate_set_vrsave): Use
772         UNSPECV_SET_VRSAVE.
773
774 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
775
776         PR bootstrap/23131
777         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
778         string.
779         * configure: Regenerated.
780
781 2005-07-29  Paul Brook  <paul@codesourcery.com>
782
783         * doc/install.texi: Add link to GFortran binaries wiki page.
784
785 2005-07-29  David Ung  <davidu@mips.com>
786
787         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
788         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
789         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
790         * config/mips/mips.md (cpu): Add 5kf name.
791         (includes): Includes 5k.md.
792         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
793         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
794         -march flag.
795
796 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
797
798         PR 22550
799         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
800         (cleanup_tree_cfg): ... here.
801         Call cleanup_tree_cfg_1 until there are no more cleanups to
802         do.
803
804 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
805
806         * tree-vrp.c (compare_range_with_value): Return true or false
807         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
808         EQ_EXPR respectively.
809
810 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
811
812         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
813         Fix comment typos.
814
815 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
816
817         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
818         (tree_ssa_dominator_optimize): Increment it.
819         (dump_dominator_optimization_stats): Print it.
820
821 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
822             Steven Bosscher  <stevenb@suse.de>
823
824         PR rtl-optimization/23117
825         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
826         when head == tail.  Tidy comment.
827
828 2005-07-28  Richard Henderson  <rth@redhat.com>
829
830         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
831         * cselib.c (rtx_equal_for_cselib_p): Likewise.
832         * jump.c (rtx_renumbered_equal_p): Likewise.
833         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
834         CONST_INT and CONST_DOUBLE.
835         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
836         * reload.c (operands_match_p): Special case CONST_INT and
837         CONST_DOUBLE; check mode earlier.
838
839 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
840
841         PR c/22240
842         * c-typeck.c (convert_for_assignment): Do not check
843         DECL_IN_SYSTEM_HEADER on NULL fundecl.
844
845 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
846
847         PR c/22192
848         * c-typeck.c (composite_type): Prefer constant size arrays to
849         VLAs.
850
851 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
852
853         PR c/21720
854         * real.c (real_from_string): Set last bit if there is a nonzero
855         hex digit beyond GCC's internal precision.
856
857 2005-07-28  Richard Henderson  <rth@redhat.com>
858
859         PR rtl-opt/22619
860         * cfgcleanup.c (try_forward_edges): Watch out for end of
861         insn chain.
862
863 2005-07-28  James E Wilson  <wilson@specifixinc.com>
864
865         PR c/23106
866         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
867
868 2005-07-28  Jan Hubicka  <jh@suse.cz>
869
870         * Makefile.in (rtl-profile.o): Kill all traces of it.
871         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
872         * coverage.h (rtl_coverage_counter_ref): Kill.
873         * opts.c (flag_speculative_prefetching_set): Kill.
874         (flag_loop_optimize_set): New.
875         (common_handle_option): Disable loop optimizer when profiling;
876         do not handle speculative prefetching.
877         * passes.c (init_optimization_passes): Replace pass_profiling combo
878         by branch_prob pass.
879         * profile.c (compute_value_histograms): Update for simplified value
880         profiles.
881         (rtl_register_profile_hooks): Kill.
882         (pass_profiling): Kill.
883         (rest_of_handle_branch_prob): Do not profile.
884         * toplev.c (process_options): Remove speculative prefetching.
885         * toplev.h (flag_tree_based_profiling): Kill.
886         * tree-profile.c (prepare_instrumented_value,
887         tree_gen_interval_profiler, tree_gen_pow2_profiler,
888         tree_gen_one_value_profiler, do_tree_profiling): Update for
889         simplified datastructures.
890         * value-prof.c: Add comment that speculative prefetching was dropped;
891         update rest of file for simplified datastructures.
892         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
893         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
894         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
895         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
896         rtl_mod_subtract, gen_speculative_prefetch,
897         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
898         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
899         (gate_handle_value_profile_transformations,
900         rest_of_handle_value_profile_transformations,
901         pass_value_profile_transformations): Kill.
902         * value-prof.h (histogram_value_t): Remove IL based unions.
903         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
904         rtl_profile_hooks): Remove hooks.
905
906         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
907
908         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
909         (cgraph_clone_node): Likewise.
910         * cgraph.h (cgraph_clone_edge): Update prototype.
911         (cgraph_clone_node): Likewise.
912         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
913         cgraph_clone_node.
914         (lookup_recursive_calls): Consider profile.
915         (cgraph_decide_recursive_inlining): Fix updating; use new
916         probability argument; use profile.
917         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
918         * tree-inline.c (copy_bb): Update clal of clone_edge.
919         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
920
921         * invoke.texi (min-inline-recursive-probability): Document.
922
923 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
924
925         * doc/install.texi (Configuration): Update Valgrind homepage.
926
927 2005-07-28  Richard Henderson  <rth@redhat.com>
928
929         PR middle-end/21362
930         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
931         labels we want to delete.
932         (cfg_layout_merge_blocks): Likewise.
933
934 2005-07-28  Richard Henderson  <rth@redhat.com>
935
936         PR target/17692
937         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
938         when expanding to nothing.
939
940 2005-07-28  Josh Conner  <jconner@apple.com>
941
942         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
943         (cgraph_decide_inlining_of_small_functions): Likewise.
944
945 2005-07-28  Josh Conner  <jconner@apple.com>
946
947         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
948         direction of badness if negative.
949         (cgraph_default_inline_p): Add reason to parameters, and assign it
950         a value.
951         (cgraph_decide_inlining_of_small_functions): New parameter in call
952         to cgraph_default_inline_p.
953         (cgraph_decide_inlining_incrementally): Likewise.
954         * cgraphunit.c (decide_is_function_needed): Likewise.
955         * cgraph.h (cgraph_default_inline_p): Likewise.
956
957 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
958
959         * builtins.c: Fix comment typo(s).
960         * genautomata.c: Likewise.
961         * gimplify.c: Likewise.
962         * tree-dfa.c: Likewise.
963         * tree-flow-inline.h: Likewise.
964         * tree-into-ssa.c: Likewise.
965         * tree-ssa-alias.c: Likewise.
966         * tree-ssa-ccp.c: Likewise.
967         * tree-ssa-copy.c: Likewise.
968         * tree-ssa-dce.c: Likewise.
969         * tree-ssa-dom.c: Likewise.
970         * tree-ssa-operands.c: Likewise.
971         * tree-tailcall.c: Likewise.
972         * tree-vectorizer.c: Likewise.
973         * tree-vrp.c: Likewise.
974         * tree.c: Likewise.
975
976 2005-07-28  Jeff Law  <law@redhat.com>
977
978         * tree-vrp.c (test_for_singularity): Extracted from  ...
979         (simplify_cond_using_ranges): Attempt to simplify a relational
980         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
981
982 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
983
984         PR tree-optimization/22506
985         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
986         phis whose argument is constant.
987
988 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
989
990         PR rtl-optimization/18992
991         Back out this patch:
992           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
993           PR optimization/12142
994           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
995           uses of the register in the SET_SRC.  Remove unnecessary argument.
996
997         Replace it with this:
998         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
999         if flag_non_call_exceptions is set and the insn may trap, pass
1000         pc_rtx as dest for recursion.
1001         In SET_SRC part of SET case, if dest is already set, pass it down
1002         unchanged.
1003
1004 2005-07-28  Jan Hubicka  <jh@suse.cz>
1005
1006         * cfg.c (update_bb_profile_for_threading): Use RDIV.
1007         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
1008         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
1009         roundoff errors.
1010         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
1011         profile when available.
1012
1013 2005-07-28  Jan Beulich <jbeulich@novell.com>
1014
1015         * config/ia64/ia64.c (ia64_load_pair_ok): New.
1016         (ia64_print_operand): Describe and handle 'X'.
1017         (ia64_register_move_cost): Also handle FP_REGS.
1018         (ia64_preferred_reload_class): Likewise.
1019         (ia64_secondary_reload_class): Likewise.
1020         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
1021         it. Also check for ITANIUM_CLASS_FLDP.
1022         * config/ia64/ia64.h (FP_REGNO_P): New.
1023         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
1024         (reg_class): Add FP_REGS.
1025         (REG_CLASS_NAMES): Adjust for it.
1026         (REG_CLASS_CONTENTS): Likewise.
1027         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
1028         (REG_CLASS_FROM_LETTER): Handle 'x'.
1029         (CLASS_MAX_NREGS): Handle FP_REGS.
1030         (MEMORY_MOVE_COST): Likewise.
1031         * config/ia64/ia64.md (itanium_class): Add fldp.
1032         (type): Handle fldp.
1033         (movti_internal): More allowable operand combinations. Use ldfp8 when
1034         splitting unnecessary. Remove predicable attribute. Adjust
1035         itanium_class attribute.
1036         (smuldi3_highpart): Remove outdated comment.
1037         (mulditi3, umulditi3, rotlti3): New expanders.
1038         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
1039         (absti2): Disabled new insn for future reference.
1040         Respective new splitters.
1041         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
1042         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
1043         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
1044
1045 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
1046
1047         PR rtl-optimization/23047
1048         * simplify-rtx.c (simplify_const_relational_operation): Respect
1049         flag_wrapv for comparisons with ABS.
1050
1051 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
1052
1053         PR tree-optimization/22493
1054         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
1055         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
1056
1057 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
1058
1059         * config/frv/frv.opt (moptimize-membar): New.
1060
1061         * doc/invoke.texi: Document -moptimize-membar and its inverse.
1062
1063         * config/frv/frv.h: Remove machine_function definition.
1064
1065         * config/frv/frv.c (struct frv_io): New.
1066         (struct machine_function): Moved from frv.h.  Add has_membar_p.
1067         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
1068         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
1069         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
1070         (frv_optimize_membar_global, frv_optimize_membar): New functions.
1071         (frv_reorg): Call frv_optimize_membar when appropriate.
1072         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
1073         (frv_expand_builtin): Adjust calls accordingly.
1074         (frv_io_address_cookie): New function.
1075         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
1076         load or store rather than a special insn.  Add ccnstant address and
1077         io-type operands to the membar.
1078         (frv_ifcvt_modify_tests): Unsign regno.
1079         (frv_ifcvt_modify_tests): Same.
1080
1081         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
1082         UNSPEC_OPTIONAL_MEMBAR constant.
1083         (builtin_read_<mode>): Delete.
1084         (builtin_write_<mode>): Delete.
1085         ("optional_membar_<mode>"): Add operand.
1086
1087         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
1088         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
1089         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
1090         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
1091         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
1092         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
1093         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
1094         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
1095         * testsuite/gcc.target/frv/all-read-write-1.c: New.
1096
1097 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1098
1099         * df.c (df_uses_record): Handle SCRATCH.
1100
1101 2005-07-28  Steven Bosscher  <stevenb@suse.de>
1102
1103         PR debug/20161
1104         * passes.c (rest_of_decl_compilation): If decl is a type and
1105         we have encountered errors, don't emit debug information.
1106
1107 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
1108
1109         * params.def: Fixed comment.
1110
1111 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
1112
1113         PR target/19885
1114         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
1115         (TARGET_ASM_UNALIGNED_HI_OP): Add.
1116         (TARGET_ASM_UNALIGNED_SI_OP): Add.
1117
1118 2005-07-27  Steven Bosscher  <stevenb@suse.de>
1119
1120         PR c++/22003
1121         * varasm.c (assemble_start_function): Don't do anything that may
1122         require a CFG if the current function is a thunk.
1123
1124 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
1125
1126         * doc/install.texi (Prerequisites): Mention that perl is needed
1127         to do export control in libstdc++ targetting Darwin.
1128
1129 2005-07-27  Steven Bosscher  <stevenb@suse.de>
1130
1131         PR rtl-optimization/17808
1132         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
1133         (sched_insns_conditions_mutex_p): Split out from...
1134         (add_dependence): ...here.  But don't call it from here.
1135         (add_dependence_list): Check sched_insns_conditions_mutex_p
1136         before calling add_dependence.
1137         (add_dependence_list_and_free): Likewise.
1138         (fixup_sched_groups): Likewise.
1139         (sched_analyze_1): Likewise.
1140         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
1141         (sched_analyze): Likewise.
1142         (sched_analyze_insn): Likewise.
1143         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1144         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
1145         dependencies on all COND_EXEC insns to jumps ending basic blocks
1146         when doing intrablock scheduling.
1147         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
1148
1149 2005-07-27  Jeff Law  <law@redhat.com>
1150
1151         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
1152         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
1153         equivalency sets, correctly handle the case were vr0 has an
1154         equivalency set, but vr1 does not.
1155
1156 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
1157
1158         PR tree-optimization/23073
1159         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
1160         vect_print_dump_info before fprintf.
1161
1162 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1163
1164         PR tree-optimize/22348
1165         * tree-ssa-loop-niter.c (number_of_iterations_cond):
1166         Fold the partial computation.
1167
1168 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1169
1170         PR tree-optimization/22325
1171         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
1172         Declare.
1173         * tree-scalar-evolution.c (scev_const_prop): Add generic final
1174         value replacement.
1175         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
1176         (force_var_cost): ... this function.
1177         (compute_phi_arg_on_exit): Export.
1178
1179 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1180
1181         PR tree-optimization/20773
1182         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
1183         edge.
1184
1185 2005-07-27  Richard Guenther  <rguenther@suse.de>
1186
1187         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
1188         Avoid pushing again if current struct contains only
1189         fields we decomposed.
1190
1191 2005-07-27  Jan Hubicka  <jh@suse.cz>
1192
1193         PR tree-optimization/22574
1194         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
1195         not available.
1196
1197         * tree-tailcall.c (decrease_profile): New function.
1198         (eliminate_tail_call): Use it.
1199
1200         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
1201         visibility flags correctly in whole program mode.
1202
1203 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
1204
1205         PR rtl-optimization/22472
1206         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
1207
1208 2005-07-26  Steven Bosscher  <stevenb@suse.de>
1209
1210         PR tree-optimization/22504
1211         * tree-complex.c (expand_complex_addition): Use 'code' instead
1212         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
1213
1214 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
1215
1216         * config.gcc (cpu_type): Add frv case.
1217         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
1218         (supported_defaults): Add fr550 case.
1219
1220 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
1221
1222         PR 22591
1223         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
1224         whether a pointer of type T * may point to objects of type T *.
1225
1226 2005-07-26  DJ Delorie  <dj@redhat.com>
1227
1228         * configure: Regenerate.
1229
1230 2005-07-26  Dale Johannesen  <dalej@apple.com>
1231
1232         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
1233
1234 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
1235
1236         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
1237         Clarify use of "build" in name.
1238
1239 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
1240
1241         * doc/extend.texi (Raw read/write Functions): New section.
1242         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
1243         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
1244         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
1245         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
1246         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
1247         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
1248         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
1249         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
1250         * config/frv/frv.c: Add bdesc_loads global.
1251         Add bdesc_stores global.
1252         (frv_init_builtins): Add support for __builtin_{read/write}*.
1253         (frv_volatile_memref): New.
1254         (frv_expand_load_builtin): New.
1255         (frv_expand_store_builtin): New.
1256         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
1257         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
1258         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
1259         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
1260         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
1261         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
1262         (builtin_read_<mode>): New.
1263         (builtin_write_<mode>): New.
1264         (builtin_write64): New.
1265         (optional_membar_<mode>): New.
1266
1267 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
1268
1269         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
1270         (rather than units) against HOST_BITS_PER_WIDE_INT.
1271
1272 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
1273
1274         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
1275         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
1276         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
1277         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
1278         FSF address.
1279
1280         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
1281         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
1282         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
1283         comment typos.
1284         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
1285
1286 2005-07-26  Richard Guenther  <rguenther@suse.de>
1287
1288         PR tree-optimization/22486
1289         * fold-const.c (fold_unary): Fold away useless component
1290         references of the form (T *)&T.x, if the address
1291         doesn't change.
1292
1293 2005-07-25  James E Wilson  <wilson@specifixinc.com>
1294
1295         * dwarf2out.c (add_call_src_coords_attributes): New.
1296         (gen_inlined_subroutine_die): Call it.
1297         (maybe_emit_file, init_file_table): Add comments.
1298         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
1299         maybe_emit_file.
1300         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
1301         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
1302         * tree.h (BLOCK_SOURCE_LOCATION): New.
1303         (struct tree_block): New field locus.
1304
1305 2005-07-26  Andreas Schwab  <schwab@suse.de>
1306
1307         PR rtl-optimization/23043
1308         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
1309         when allocating a struct unoccr.
1310
1311 2005-07-25  Richard Henderson  <rth@redhat.com>
1312
1313         PR 22626
1314         * tree-complex.c (gate_no_optimization): True if errors.
1315         * Makefile.in (tree-complex.o): Update dependencies.
1316
1317 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
1318
1319         * config/frv/predicates.md (integer_register_operand): Use
1320         GPR_AP_OR_PSEUDO_P.
1321
1322 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
1323
1324         PR tree-opt/22484
1325         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
1326         after fold.
1327         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1328
1329 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
1330
1331         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1332         types when flag_unsafe_math_optimizations is true.
1333
1334 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
1335
1336         * gcc.c (option_map): Add --sysroot.
1337         (process_command): Handle --sysroot.
1338         (display_help): Document it.
1339         * doc/cppopts.tex (-isysroot): Document.
1340         * doc/invoke.texi (--sysroot): Document.
1341         * doc/install.texi (--with-build-sysroot): Document.
1342
1343         * Makefile.in (inhibit_libc): New variable.
1344         (INHIBIT_LIBC_CFLAGS): Likewise.
1345         (LIBGCC2_CFLAGS): Include
1346         $(INHIBIT_LIBC_CFLAGS).
1347         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1348         ($(T)crtbegin.o): Do not use @inhibit_libc@.
1349         ($(T)crtend.o): Likewise.
1350         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1351         ($(T)crtendS.o): Likewise.
1352         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1353         ($(T)crtendT.o): Likewise.
1354         (stmp-fixinc): Do not complain about missing headers if
1355         inhibit_libc.
1356         * configure.ac (inhibit_libc): Set it to true/false.
1357         (--with-build-sysroot): New option.  Use it to set
1358         SYSTEM_HEADER_DIR.
1359         * configure: Regenerated.
1360
1361 2005-07-25  Manfred Hollstein  <mh@suse.com>
1362
1363         * calls.c (store_one_arg): Fix unsigned comparison warning.
1364
1365 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
1366
1367         PR other/22337
1368         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1369         (ggc_print_statistics): Initialize variable before use.
1370
1371 2005-07-25  Richard Guenther  <rguenther@suse.de>
1372
1373         * tree-dfa.c (mark_new_vars_to_rename): Protect against
1374         calling with a PHI_NODE argument.
1375
1376         * tree-flow-inline.h (overlap_subvar): Protect against
1377         possible overflow.
1378
1379 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
1380
1381         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1382         * configure: Regenerate.
1383
1384 2005-07-25  Ira Rosen  <irar@il.ibm.com>
1385
1386         * expr.c (highest_pow2_factor): Make extern.
1387         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1388         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1389         record_array_differ_p, array_ptr_differ_p): Likewise.
1390         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1391         additional cases. Call the above functions.
1392         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1393         base_object_differ_p when there are two base objects. Otherwise, compare
1394         base address and offset. Call may_alias_p.
1395         (dump_data_reference): Use a correct field name.
1396         (analyze_array): Make static. Initialize new data-ref fields.
1397         (analyze_indirect_ref): New function.
1398         (init_data_ref): Initialize new data-ref fields.
1399         (strip_conversion): Moved from tree-vect-analyze.c.
1400         (analyze_offset_expr, get_ptr_offset, address_analysis,
1401         object_analysis): Likewise.
1402         (analyze_offset): New function.
1403         (create_data_ref): Likewise.
1404         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1405         dimensions for ARRAY_REFs only.
1406         (build_classic_dist_vector): Make static.
1407         (access_functions_are_affine_or_constant_p): Call macro to get the
1408         address of access functions.
1409         (compute_all_dependences): Add new parameter
1410         compute_self_and_read_read_dependences. Compute self and read-read
1411         dependences if it is true.
1412         (find_data_references_in_loop): Call create_data_ref. Initialize new
1413         data-ref fields.
1414         (compute_data_dependences_for_loop): Add new parameter
1415         compute_self_and_read_read_dependences. Remove parameter nb_loops,
1416         compute nb_loops. Call compute_all_dependences,
1417         build_classic_dist_vector and build_classic_dir_vector with correct
1418         parameters.
1419         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1420         with correct parameters. Compare dimensions for ARRAY_REFs only.
1421         (free_data_refs): Call macro to free access functions.
1422         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1423         fields from stmt_vinfo.
1424         (struct base_object_info): New structure.
1425         (struct data_reference): Move fields to base_object_info. Add fields
1426         first_location and object_info for above structures. Move fields from
1427         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1428         aligned_to.  Add macros to access the new fields.
1429         Update functions declarations.
1430         * tree-flow.h (is_aliased_with): Declare.
1431         * tree-loop-linear.c (linear_transform_loops): Call
1432         compute_data_dependences_for_loop with correct parameters.
1433         * tree-ssa-alias.c (is_aliased_with): New function.
1434         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
1435         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1436         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1437         vect_base_addr_differ_p, compute_subscript_distance and
1438         build_classic_dist_vector. Add printings. Check absolute value of
1439         distance.
1440         (vect_analyze_data_ref_dependences): Go through ddrs instead of
1441         data-refs.
1442         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1443         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1444         to bytes. Add printing.
1445         (vect_compute_data_refs_alignment): Go through loads and stores in one
1446         loop.
1447         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1448         vect_analyze_data_ref_access): Likewise.
1449         (vect_analyze_pointer_ref_access): Remove.
1450         (vect_address_analysis, vect_object_analysis): Likewise.
1451         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1452         and analyze data-refs in the loop.
1453         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1454         fields of data-ref instead of stmt. Add init to the offset from the
1455         base.
1456         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1457         (vect_update_init_of_dr): Likewise.
1458         (vect_update_inits_of_drs): Go through loads and stores in one loop.
1459         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1460         removed fields.
1461         (new_loop_vec_info): Initialize new fields.
1462         (destroy_loop_vec_info): Free new fields.
1463         (vect_strip_conversion): Remove.
1464         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1465         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
1466         datarefs. Add new field ddrs.
1467         Add macros for the new fields access.
1468         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1469         base_aligned_p, misalignment, memtag, ptr_info and subvars.
1470         Remove their macros.
1471         * tree.h (highest_pow2_factor): Declare.
1472
1473 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
1474
1475         * calls.c (store_one_arg): Check for sibling call MEM arguments
1476         from already clobbered incoming argument area.
1477
1478 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1479
1480         * c-common.c (check_missing_format_attribute): New.
1481         * c-common.h (check_missing_format_attribute): Likewise.
1482         * c-typeck.c (convert_for_assignment): Use it.
1483
1484 2005-07-24  Andreas Schwab  <schwab@suse.de>
1485
1486         * config/m68k/m68k.md ("extendqidi2"): When source is an address
1487         register use a word move.  Correct operand of ext.w in 68000 code.
1488
1489 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
1490
1491         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1492         variables as declarations, rather than definitions.
1493
1494 2005-07-24  Ira Rosen  <irar@il.ibm.com>
1495
1496         PR tree-optimization/22526
1497         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1498         of the zero node.
1499
1500 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1501
1502         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1503         that C99 reserve for future use. Use it to define clog10,
1504         clog10f and clog10l.
1505
1506 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1507
1508         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1509         * configure.ac: Check for -Wmissing-format-attribute.
1510
1511         * configure: Regenerate.
1512
1513 2005-07-23  Richard Henderson  <rth@redhat.com>
1514
1515         PR tree-optimization/22623
1516         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1517
1518 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
1519
1520         PR target/22577
1521         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1522
1523 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1524
1525         * Makefile.in (C_TREE_H): Update dependencies.
1526         * c-tree.h: Include toplev.h.
1527         * diagnostic.h (diagnostic_set_info): Add format attribute.
1528         * rtl-error.c (diagnostic_for_asm): Likewise.
1529
1530 2005-07-23  Chao-ying Fu  <fu@mips.com>
1531
1532         * config/mips/mips-dsp.md: New file.
1533         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1534         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1535         functions.
1536         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1537         MIPS_BUILTIN_BPOSGE32.
1538         (mips_expand_builtin_direct): Add one parameter to indicate that
1539         builtin functions need to return a value.
1540         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1541         functions.
1542         (mips_regno_to_class): Add classes for 12 new DSP registers.
1543         (mips_subword): Change to check four HI registers.
1544         (mips_output_move): Output move to and from 6 new DSP accumulators.
1545         (override_options): Make sure -mdsp and -mips16 are not used together.
1546         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
1547         for machine modes.
1548         (mips_conditional_register_usage): Disable 6 new DSP accumulators
1549         when !TARGET_DSP.
1550         (print_operand): Add 'q' for printing DSP accumulators.
1551         (mips_cannot_change_mode_class): Check ACC_REGS.
1552         (mips_secondary_reload_class): Check ACC_REGS.
1553         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1554         (mips_register_move_cost): Check ACC_REGS.
1555         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1556         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1557         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1558         (dsp_bdesc): New array.
1559         (bdesc_arrays): Add DSP builtin function table.
1560         (mips_prepare_builtin_arg): Check predicate again after
1561         copy_to_mode_reg.
1562         (mips_expand_builtin): Add one more parameter to
1563         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1564         MIPS_BUILTIN_BPOSGE32.
1565         (mips_init_builtins): Initialize new function types.
1566         (mips_expand_builtin_direct): Check if builtin functions need to
1567         return a value and pass operands properly.
1568         (mips_expand_builtin_bposge): New function.
1569         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1570         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1571         (FIRST_PSEUDO_REGISTER): Increase to 188.
1572         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1573         Update for 12 new DSP registers.
1574         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1575         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1576         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1577         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1578         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1579         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1580         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1581         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1582         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1583         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1584         (REGISTER_NAMES): Add names for 12 new DSP registers.
1585         * config/mips/mips.md: Include mips-dsp.md.
1586         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1587         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1588         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1589         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1590         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1591         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1592         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1593         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1594         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1595         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1596         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1597         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1598         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1599         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1600         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1601         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1602         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1603         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1604         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1605         (UNSPEC_RDDSP): New constants.
1606         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1607         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
1608         A<-d alternative.
1609         * config/mips/mips.opt (-mdsp): New option.
1610         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1611         (reg_imm10_operand): New predicates.
1612         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1613         * doc/invoke.texi (-mdsp): Document new option.
1614
1615 2005-07-22  DJ Delorie  <dj@redhat.com>
1616
1617         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1618         to warning calls.
1619         * tree-inline.c (inlinable_function_p): Likewise.
1620
1621 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
1622
1623         PR debug/21828
1624         * toplev.c (check_global_declarations): Do not mark undefined
1625         variables as DECL_IGNORED_P.
1626         * varasm.c (first_global_object_name): GTY it.
1627         (weak_global_object_name): Likewise.
1628         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1629         a string to go into {weak,first}_global_object_name.
1630
1631 2005-07-22  DJ Delorie  <dj@redhat.com>
1632
1633         * c-format.c (check_function_format): Change warning control
1634         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1635
1636 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
1637
1638         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1639         &PTR->FLD a dereference of PTR.
1640         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1641         a potential dereference of PTR.
1642
1643 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
1644
1645         PR rtl-optimization/20370
1646         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1647         call allocate_reg_info if necessary.
1648
1649         PR rtl-optimization/21848
1650         * calls.c (emit_library_call_value_1): For const functions, add
1651         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1652
1653         PR rtl-optimization/22445
1654         * cselib.c (target.h): Include.
1655         (rtx_equal_for_cselib_p): Allow commutative matches.
1656         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1657         Remove MODE parameter.  Changed all callers.
1658
1659         PR rtl-optimization/22258
1660         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1661         New functions.
1662         (try_combine): Use likely_spilled_retval_p.
1663
1664 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
1665
1666         * config.gcc: Add crx-elf support.
1667
1668         * doc/contrib.texi: Mention crx.
1669         * doc/extend.texi: Document crx extensions.
1670         * doc/install.texi: Document crx install.
1671         * doc/invoke.texi: Document crx options.
1672         * doc/md.texi: Document crx constraints.
1673
1674         * config/crx/crx-protos.h: New file.
1675         * config/crx/crx.c: New file.
1676         * config/crx/crx.h: New file.
1677         * config/crx/crx.md: New file.
1678         * config/crx/crx.opt: New file.
1679         * config/crx/t-crx: New file.
1680
1681 2005-07-22  Manfred Hollstein  <mh@suse.com>
1682
1683         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1684         warnings.
1685         (int_add_graph_edge): Likewise.
1686         (collapse_nodes): Likewise.
1687         (process_unification_queue): Likewise.
1688
1689 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1690             Laurent GUERBY  <laurent@guerby.net>
1691
1692         PR tree-optimization/22336
1693         * function.c (record_block_change): Check for
1694         cfun->ib_boundaries_block.
1695
1696 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
1697
1698         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
1699         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
1700
1701 2005-07-21  DJ Delorie  <dj@redhat.com>
1702
1703         * toplev.c (warn_deprecated_use): Add warning control to warning
1704         call.
1705         * c-typeck.c (parser_build_binary_op): Likewise.
1706         (c_finish_if_stmt): Likewise.
1707         * c-common.c (check_function_sentinel): Likewise.
1708         (check_nonnull_arg): Likewise.
1709
1710 2005-07-21  Richard Henderson  <rth@redhat.com>
1711
1712         PR tree-opt/22504
1713         * tree-complex.c (complex_ssa_name_components): New.
1714         (cvc_lookup): Allow entry not found.
1715         (create_components): Remove.
1716         (create_one_component_var, get_component_var): New.
1717         (get_component_ssa_name, set_component_ssa_name): New.
1718         (extract_component): Use get_component_ssa_name.
1719         (update_complex_components): Use set_component_ssa_name.
1720         (update_complex_components_on_edge): Likewise.
1721         (update_phi_components): Create new PHI nodes directly, instead
1722         of adding insns to edges.
1723         (tree_lower_complex): Allocate and free complex_variable_components
1724         and complex_ssa_name_components here.
1725
1726 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
1727
1728         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
1729         revert to returning false.
1730
1731 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
1732
1733         PR target/21149
1734         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
1735
1736 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
1737
1738         PR target/22576
1739         * config/i386/i386.md (cmpxf): Change operand constraints
1740         to "nonmemory_operand".
1741
1742 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1743
1744         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
1745
1746 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1747
1748         PR middle-end/21180
1749         * fold-const.c (fold_build1): Add checksum for the operands.
1750         (fold_build2): Likewise.
1751         (fold_build3): Likewise.
1752
1753 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1754
1755         PR middle-end/19055
1756         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
1757
1758 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
1759
1760         * common.opt (-fforward-propagate): Committed by mistake,
1761         removed.
1762
1763 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1764
1765         * reg-stack.c: Fix comment typo(s).
1766         * tree-ssa-operands.c: Likewise.
1767         * tree-vectorizer: Likewise.
1768
1769 2005-07-21  Nick Clifton  <nickc@redhat.com>
1770
1771         * config/sh/symbian.c: Replace C++ style line comments with C
1772         style line comments.
1773         (symbian_add_attribute): Do not use a ? operator on the LHS of
1774         an assignment.
1775         (sh_symbian_handle_dll_attribute): Change the type of the
1776         method vector to "VEC(tree,gc)*" and use vector accessor
1777         macros to walk over the elements.
1778         (symbian_export_vtable_and_rtti_p): Likewise.
1779         (symbian_class_needs_attribute_p): Likewise.
1780
1781 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
1782
1783         PR target/22085
1784         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
1785         initialize targetm.resolve_overloaded_builtin here.
1786         (altivec_expand_overloaded_builtin): Make it non-static.
1787         * config/rs6000/rs6000-protos.h
1788         (altivec_expand_overloaded_builtin): New prototype.
1789         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
1790         targetm.resolve_overloaded_builtin here.
1791         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
1792
1793 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
1794             Zdenek Dvorak  <dvorakz@suse.cz>
1795
1796         PR tree-optimization/19210
1797         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
1798         New.
1799         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
1800         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
1801         rely on unproven assumptions.
1802         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
1803         * tree-flow.h (number_of_iterations_exit): Add final parameter.
1804         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
1805         to number_of_iterations_exit.
1806         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
1807         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
1808         * tree-ssa-loop-niter.c (find_loop_niter,
1809         estimate_numbers_of_iterations_loop): Likewise.
1810         (number_of_iterations_exit): Honor the new options.
1811         * doc/invoke.texi (Wunsafe-loop-optimizations,
1812         funsafe-loop-optimizations): Document them.
1813
1814 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
1815
1816         PR rtl-optimization/22167
1817         * gcse.c (hoist_code): Fix hoist_exprs[] check.
1818
1819 2005-07-20  Adam Nemet  <anemet@lnxw.com>
1820
1821         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
1822         __do_global_dtors_aux longcall.
1823
1824 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
1825
1826         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
1827         (old_special_pred_table): Don't reference
1828         SPECIAL_MODE_PREDICATES.
1829         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
1830         * config/arc/arc.h: Don't mention PREDICATE_CODES.
1831         * config/sh/predicates.h: Don't mention
1832         SPECIAL_MODE_PREDICATES.
1833         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1834         Remove.
1835
1836 2005-07-20  DJ Delorie  <dj@redhat.com>
1837
1838         * config.gcc: Add m32c-elf support.
1839
1840         * doc/contrib.texi: Mention m32c.
1841         * doc/extend.texi: Document m32c extensions.
1842         * doc/install.texi: Mention m32c.
1843         * doc/invoke.texi: Document m32c options.
1844         * doc/md.texi: Document m32c constraints.
1845
1846         * config/m32c/addsub.md: New file.
1847         * config/m32c/bitops.md: New file.
1848         * config/m32c/cond.md: New file.
1849         * config/m32c/jump.md: New file.
1850         * config/m32c/m32c-lib1.S: New file.
1851         * config/m32c/m32c-lib2.c: New file.
1852         * config/m32c/m32c-modes.def: New file.
1853         * config/m32c/m32c-pragma.c: New file.
1854         * config/m32c/m32c-protos.h: New file.
1855         * config/m32c/m32c.abi: New file.
1856         * config/m32c/m32c.c: New file.
1857         * config/m32c/m32c.h: New file.
1858         * config/m32c/m32c.md: New file.
1859         * config/m32c/m32c.opt: New file.
1860         * config/m32c/minmax.md: New file.
1861         * config/m32c/mov.md: New file.
1862         * config/m32c/muldiv.md: New file.
1863         * config/m32c/predicates.md: New file.
1864         * config/m32c/prologue.md: New file.
1865         * config/m32c/shift.md: New file.
1866         * config/m32c/t-m32c: New file.
1867
1868 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1869
1870         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1871         (stack_protect_set, stack_protect_test): New expanders.
1872         (stack_protect_set_si, stack_protect_set_si_media,
1873         stack_protect_set_di_media, stack_protect_test_si,
1874         stack_protect_test_si_media, stack_protect_test_di_media):
1875         New insns.
1876
1877 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
1878
1879         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1880
1881 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
1882
1883         * tree.h (tree_expr_nonzero_p): Export.
1884         * fold-const.c (tree_expr_nonzero_p): Likewise.
1885         Return true for CALL_EXPRs that are alloca calls.
1886         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1887         against zero.
1888         * tree-flow.h (expr_computes_nonzero): Remove.
1889         * tree-vrp.c (expr_computes_nonzero): Remove.
1890         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
1891         (extract_range_from_unary_expr): Likewise.
1892         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1893         tree_expr_nonzero_p.
1894
1895 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
1896
1897         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1898         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
1899         extra arg "picreg" and use it instead of pic_offset_table_rtx.
1900         All callers changed.
1901         (frame_related_constant_load): New arg "related" which controls
1902         setting of RTX_FRAME_RELATED_P.  All callers changed.
1903         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1904         (bfin_expand_prologue): Add stack limit checking.
1905         * config/bfin/bfin.md (trapifcc): New pattern.
1906
1907         * config/bfin/bfin.c: Include "langhooks.h".
1908         (def_builtin): Go through lang_hooks to call builtin_function.
1909
1910         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1911         * config/bfin/predicates.md (symbol_ref_operand): New.
1912         (call_insn_operand): Delete.  All callers changed to use
1913         register_no_elim_operand.
1914         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1915         call_cookie field.
1916         (function_arg): Use it to generate the call's operand 2.
1917         (bfin_longcall_p): New function.
1918         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
1919         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
1920         determine if the address needs to be in a REG.
1921         (bfin_handle_longcall_attribute): New function.
1922         (bfin_attribute_table): Add "longcall" and "shortcall".
1923         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
1924         (CUMULATIVE_ARGS): New member call_cookie.
1925         (PREDICATE_CODES): Add symbol_ref_operand.
1926         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
1927         extra USE to the pattern.
1928         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
1929         New patterns, split off call_insn, sibcall_insn, call_value_insn and
1930         sibcall_value_insn; now the new patterns handle direct calls and the
1931         old ones indirect calls.
1932         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
1933
1934 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
1935
1936         * doc/trouble.texi: Update section on handling of empty loops.
1937
1938 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
1939
1940         * config.gcc: Remove support for sparc-*-openbsd*,
1941         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
1942         ns32k-*-netbsd*.
1943         * config.host: Remove support for i860-*-sysv4* as a host.
1944         * config/i860/*, config/ip2k/*, config/ns32k/*,
1945         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
1946         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
1947         mention obsolete ports.
1948
1949 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1950
1951         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
1952         soft frame pointer.
1953         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
1954         of frame_pointer_rtx.
1955         (sh_expand_epilogue): Likewise.
1956         (sh_set_return_address): Likewise.
1957         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
1958         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
1959         offsets from FRAME_POINTER_REGNUM.
1960         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
1961         (sh_register_names): Add initializer for sfp.
1962         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
1963         (VALID_REGISTER_P): Likewise.
1964         (FIRST_PSEUDO_REGISTER): Update.
1965         (DWARF_FRAME_REGISTERS): Define.
1966         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
1967         (HARD_FRAME_POINTER_REGNUM): Define.
1968         (FRAME_POINTER_REGNUM): Redefine.
1969         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
1970         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
1971         from FRAME_POINTER_REGNUM.
1972         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
1973         FRAME_POINTER_REGNUM.
1974         (REG_CLASS_CONTENTS): Add sfp.
1975         (REG_ALLOC_ORDER): Likewise.
1976         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
1977         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
1978         of frame_pointer_rtx.
1979         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1980
1981 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
1982
1983         * fold-const.c (tree_expr_nonnegative_p): Only return true for
1984         ABS_EXPR when flag_wrapv is false because of INT_MIN.
1985         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
1986         of an ABS_EXPR.
1987         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
1988         ABS_EXPR<x>.
1989
1990 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
1991
1992         Make CONSTRUCTOR use VEC to store initializers.
1993         * c-common.c (complete_array_type): Update to cope with VEC in
1994         CONSTRUCTOR_ELTS.
1995         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
1996         (pp_c_constructor_elts): New function.
1997         * c-pretty-print.h (pp_c_constructor_elts): Declare.
1998         * c-typeck.c (build_function_call, build_c_cast, digest_init,
1999         struct constructor_stack, struct initializer_stack,
2000         constructor_elements, push_init_level, pop_init_level,
2001         add_pending_init, find_init_member, output_init_element): Update to
2002         cope with VEC in CONSTRUCTOR_ELTS.
2003         * coverage.c (build_fn_info_value, build_ctr_info_value,
2004         build_gcov_info): Likewise.
2005         * expr.c (categorize_ctor_elements_1, store_constructor,
2006         expand_expr_real_1): Likewise.
2007         * fold-const.c (fold_ternary): Likewise.
2008         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
2009         gimplify_init_constructor, gimplify_expr): Likewise.
2010         * tree-dump.c (dequeue_and_dump): Likewise.
2011         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
2012         node.
2013         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
2014         CONSTRUCTOR_ELTS.
2015         * tree-sra.c (generate_element_init_1): Likewise.
2016         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2017         * tree-ssa-operands.c (get_expr_operands): Likewise.
2018         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2019         * tree-vect-transform.c (vect_get_vec_def_for_operand):
2020         (get_initial_def_for_reduction): Likewise.
2021         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
2022         value handle in annotations.
2023         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
2024         tree_node_structure): Add support for constr_kind.
2025         (build_vector_from_ctor, build_constructor_single,
2026         build_constructor_from_list): New functions.
2027         (build_constructor): Update to take a VEC instead of a TREE_LIST.
2028         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
2029         Update to cope with VEC in CONSTRUCTOR_ELTS.
2030         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
2031         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
2032         CONSTRUCTOR_APPEND_ELT): New macros.
2033         (struct constructor_elt, struct tree_constructor): New data types.
2034         (union tree_node): Add tree_constructor field.
2035         * treestruct.def: Define TS_CONSTRUCTOR.
2036         * varasm.c (const_hash_1, compare_constant, copy_constant,
2037         compute_reloc_for_constant, output_addressed_constants,
2038         initializer_constant_valid_p, output_constant,
2039         array_size_for_constructor, output_constructor): Update to cope with
2040         VEC in CONSTRUCTOR_ELTS.
2041         * vec.h (VEC_empty, VEC_copy): New macros.
2042
2043 2005-07-19  Devang Patel  <dpatel@apple.com>
2044
2045         * dbxout.c (dbxout_type): Check Objective-C++ lang.
2046
2047 2005-07-19  Richard Henderson  <rth@redhat.com>
2048
2049         PR tree-opt/22278
2050         * gimplify.c (gimplify_expr): Use main variant type for the temp
2051         destination for a discarded volatile read.
2052         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
2053         casts between non-void types that change volatility.
2054
2055 2005-07-15  DJ Delorie  <dj@redhat.com>
2056
2057         * toplev.h: Add comment about the first parameter for warning().
2058         * errors.h: Likewise.
2059
2060         * c.opt (Wpragmas): New.
2061         * doc/invoke.texi: Document it.
2062
2063         * function.c (do_warn_unused_parameter): Add warning control to
2064         warning call.
2065         * c-decl.c (warn_if_shadowing): Likewise.
2066         * c-lex.c (cb_def_pragma): Likewise.
2067         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2068         (pop_alignment): Likewise.
2069         (handle_pragma_pack): Likewise.
2070         (apply_pragma_weak): Likewise.
2071         (handle_pragma_weak): Likewise.
2072         (handle_pragma_redefine_extname): Likewise.
2073         (add_to_renaming_pragma_list): Likewise.
2074         (handle_pragma_extern_prefix): Likewise.
2075         (maybe_apply_renaming_pragma): Likewise.
2076         (handle_pragma_visibility): Likewise.
2077
2078         * config/c4x/c4x-c.c (BAD): Likewise.
2079         (c4x_parse_pragma): Likewise.
2080         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
2081         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2082         (rs6000_pragma_longcall): Likewise.
2083         * config/v850/v850-c.c (pop_data_area): Likewise.
2084         (ghs_pragma_section): Likewise.
2085         (ghs_pragma_section): Likewise.
2086         (ghs_pragma_interrupt): Likewise.
2087         (ghs_pragma_starttda): Likewise.
2088         (ghs_pragma_startsda): Likewise.
2089         (ghs_pragma_startzda): Likewise.
2090         (ghs_pragma_endtda): Likewise.
2091         (ghs_pragma_endsda): Likewise.
2092         (ghs_pragma_endzda): Likewise.
2093
2094 2005-07-19  Danny Berlin <dberlin@dberlin.org>
2095             Kenneth Zadeck <zadeck@naturalbridge.com>
2096
2097         * Makefile.in: Removed tree-promote-statics.c
2098         * tree-promote-statics.c: Removed.
2099         * common.opt: Removed flag-promote-statics.
2100         * opts.c: Ditto.
2101         * passes.c: Removed tree-promote-statics pass.
2102         * tree-pass.h: Ditto.
2103         * timevar.def: Removed TV_PROMOTE_STATICS.
2104
2105
2106 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
2107
2108         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
2109         and *-*-freebsd9.
2110         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
2111
2112 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2113
2114         PR c/22476
2115         * c-common.c (check_function_arguments): Call
2116         'check_function_format' if either -Wformat or
2117         -Wmissing-format-attribute are specified.
2118         * c-format.c (check_function_format): Check -Wformat before
2119         calling 'check_format_info'.
2120         * c-opts.c (c_common_post_options): Don't warn for
2121         -Wmissing-format-attribute without -Wformat.
2122         * c-typeck.c (convert_for_assignment): Detect additional cases for
2123         -Wmissing-format-attribute.
2124         * doc/invoke.texi (-Wmissing-format-attribute): Document new
2125         behavior.
2126
2127 2005-07-19  Richard Guenther  <rguenther@suse.de>
2128
2129         * config/i386/i386.md (lrint<mode>2): Use temporary
2130         instead of clobbering non-existent memory.
2131
2132 2005-07-19  Nick Clifton  <nickc@redhat.com>
2133
2134         * config/avr/avr.c (legitimate_address_p): Fix debugging print
2135         statement to avoid displaying ASCII control characters.
2136
2137 2005-07-19  Ben Elliston  <bje@au.ibm.com>
2138
2139         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
2140         * cfganal.c (find_edge_index): Ditto.
2141         * combine.c (combine_instructions): Ditto.
2142         * ddg.c (create_scc): Ditto.
2143         (find_successors): Ditto.
2144         (find_predecessors): Ditto.
2145         (find_nodes_on_paths): Ditto.
2146         (longest_simple_path): Ditto.
2147         * flow.c (update_life_info): Ditto.
2148         (count_or_remove_death_notes): Ditto.
2149         (clear_log_links): Ditto.
2150         * modulo-sched.c (generate_reg_moves): Ditto.
2151         (find_max_asap): Ditto.
2152         (find_max_hv_min_mob): Ditto.
2153         (find_max_dv_min_mob): Ditto.
2154         * sbitmap.c (sbitmap_first_set_bit): Ditto.
2155         * sched-rgn.c (extract_edgelst): Ditto.
2156         * tree-into-ssa.c (prepare_names_to_update): Ditto.
2157         (dump_update_ssa): Ditto.
2158         (ssa_names_to_replace) Ditto.
2159         (switch_virtuals_to_full_rewrite): Ditto.
2160         (update_ssa): Ditto.
2161         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2162
2163 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
2164
2165         Fix PR tree-optimization/22483
2166
2167         * tree-complex.c (create_components): Use
2168         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
2169         * tree-flow-inline.h (fill_referenced_var_vec): New function.
2170         * tree-flow.h (safe_referenced_var_iterator): New structure.
2171         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
2172         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
2173         safe_referenced_var iterator.
2174         (add_type_alias): Ditto.
2175
2176 2005-07-19  Steven Bosscher  <stevenb@suse.de>
2177
2178         * loop-init.c (rest_of_handle_loop2): Remove.
2179         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
2180         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
2181         (pass_rtl_loop_init, pass_rtl_loop_done,
2182         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
2183         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
2184         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
2185         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
2186         pass_tree_loop_done, and pass_tree_unswitch.
2187         (gate_loop): Rename to gate_tree_loop.
2188         * passes.c (init_optimization_passes): Update for renamed tree
2189         loop passes.  Add the new loop2 passes as subpasses of loop2.
2190         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
2191         Update for the renamed tree loop passes.
2192
2193 2005-07-18  Ian Lance Taylor  <ian@airs.com>
2194
2195         PR middle-end/22057
2196         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
2197         blocks when optimizing.
2198
2199 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
2200
2201         * common.opt (frename-registers): Initialize to 2.
2202         (fweb): Ditto.
2203         (fgcse-after-reload): Ditto.
2204         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
2205         (process_options): Only change flag_web, flag_rename_registers,
2206         and flag_rerun_cse_after_loop if not explicitly set by user.
2207
2208 2005-07-18  Jan Beulich  <jbeulich@novell.com>
2209
2210         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
2211         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
2212         in 64-bit mode the same as DImode in 32-bit mode.
2213         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
2214         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
2215         mode. Add new mode parameter.
2216         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
2217         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
2218         x86_64_shift_adj): New expanders.
2219         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
2220         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
2221         insns.
2222         Respective new splitters. Use renamed shift splitter helpers in 32-bit
2223         DImode shift splitters.
2224         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
2225         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
2226         mode parameter.
2227
2228 2005-07-18  Jan Beulich  <jbeulich@novell.com>
2229
2230         * i386.md (movdi_extzv_1): New.
2231         (zero_extendhidi2): Combine alternatives and never force use of
2232         REX64 prefix.
2233         (zero_extendqidi2): Likewise. Don't restrict input selection.
2234
2235 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
2236
2237         Fix PR tree-optimization/22531
2238         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
2239          moment.
2240
2241 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
2242
2243         * tree-promote-statics.c (pass_promote_statics): Change dump file
2244          name.
2245
2246 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
2247
2248         * tree-optimize.c (init_tree_optimization_passes): Add
2249         pass_eliminate_useless_stores pass.
2250         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
2251         * tree-ssa-pre.c (is_copy_stmt): New function.
2252         (follow_copies_till_vuse): Ditto.
2253         (do_eustores): Ditto.
2254         (gate_eustores): Ditto.
2255
2256 2005-07-16  Richard Henderson  <rth@redhat.com>
2257
2258         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
2259
2260 2005-07-16 Danny Berlin <dberlin@dberlin.org>
2261            Kenneth Zadeck <zadeck@naturalbridge.com>
2262
2263         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
2264         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
2265         ipa-type-escape.h, tree-promote-statics.c
2266         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
2267         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
2268         tree-promote-statics.c: new files.
2269         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
2270         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
2271         int nonlocal_set_p, mark_constant_function): Deleted.
2272         (rest_of_handle_cfg): Removed call to mark_constant_function.
2273         (nonoverlapping_component_refs_p): Added calls to support
2274         type based aliasing.
2275         * tree-ssa-alias.c (may_alias_p,
2276         compute_flow_insensitive_aliasing): Ditto.
2277         * calls.c (flags_from_decl_or_type): Removed reference to
2278         cgraph_rtl_info.
2279         * c-typeck.c (convert_arguments): Make builtins tolerant of having
2280         too many arguments.  This is necessary for Spec 2000.
2281         * cgraph.h (const_function, pure_function): Removed.
2282         * common.opt: Added "fipa-pure-const", "fipa-reference",
2283         "fipa-type-escape", and "ftree-promote-static".
2284         * opts.c: Ditto.
2285         * passes.c: Added ipa and tree-promote-statics passes.
2286         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
2287         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
2288         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
2289         * tree-flow.h: Added exposed sra calls and addition of
2290         reference_vars_info field for FUNCTION_DECLS.
2291         * tree-pass.h: Added passes.
2292         * tree-sra.c: (sra_init_cache): New function.
2293         (sra_insert_before, sra_insert_after) Made public.
2294         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
2295         and made public.
2296         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
2297         aliasing. (may_alias_p): Added code to use type escape analysis to
2298         improve alias sets.
2299         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
2300         code to prune clobbers of static variables based on information
2301         produced in ipa-reference pass.  Changed call clobbering so that
2302         statics are not marked as clobbered if the call does not clobber
2303         them.
2304
2305 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
2306
2307         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
2308         too.
2309
2310 2005-07-16  Eric Botcazou <ebotcazou@libertysurf.fr>
2311
2312         * doc/install.texi (*-*-solaris2*): Document recommended version
2313         of GNU binutils and mention GNU linker problem on Solaris 10.
2314
2315 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
2316
2317         PR c/22421
2318         * c-decl.c (c_build_bitfield_integer_type): New function.
2319         (finish_struct): Call it.
2320         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
2321
2322 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2323
2324         * c-typeck.c (digest_init): Call 'convert_for_assignment'
2325         before returning.
2326
2327 2005-07-16  Jan Hubicka  <jh@suse.cz>
2328
2329         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2330         (scale_bbs_frequencies_int): Watch roundoff errors.
2331         * predict.c (return_prediction): Initialize return_stmt.
2332
2333 2005-07-16  Jan Hubicka  <jh@suse.cz>
2334
2335         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2336         after RTL profiling.
2337
2338 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
2339
2340         PR middle-end/22398
2341         * fold-const.c (build_range_check): Convert high/low to etype
2342         if we are only comparing against exp.
2343
2344 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
2345
2346         Fix PR tree-optimization/22376
2347         * tree-ssa-structalias.c (build_constraint_graph): We really meant
2348         special var here.
2349         (need_to_solve): New function.
2350         (compute_points_to_sets): Use it.
2351
2352 2005-07-15  Jan Hubicka  <jh@suse.cz>
2353
2354         * cfg.c (update_bb_profile_for_threading): More diagnostic.
2355         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2356
2357 2005-07-15  Richard Guenther  <rguenther@suse.de>
2358
2359         * c-common.c (handle_flatten_attribute): New function.
2360         Add flatten function attribute.
2361         * doc/extend.texi: Document flatten function attribute.
2362         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2363         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2364         New functions.
2365         (cgraph_decide_inlining): Handle functions with flatten
2366         attribute.
2367
2368 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
2369
2370         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2371         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2372         UNSPEC_XCHG, UNSPEC_AND): New.
2373         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2374         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2375         * config/rs6000/sync.md (FETCHOP): New code macro.
2376         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2377         New code attrs.
2378         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2379         (sync_compare_and_swap<mode>): Same.
2380         (sync_lock_test_and_set<mode>): Same.
2381         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2382         for QImode and HImode, and not PPC405.
2383         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2384         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2385         (sync_<fetchop>{si,di}_internal): New.
2386         (sync_nand{si,di}_internal): New.
2387         (sync_old_<fetchop>{si,di}_internal): New.
2388         (sync_old_nand{si,di}_internal): New
2389         (sync_new_<fetchop>{si,di}_internal): New.
2390         (sync_new_nand{si,di}_internal): New.
2391         (atomic_and{si,di}): New.
2392         (sync_new_nand{si,di}_internal): New.
2393         (atomic_and{si,di}): New.
2394         (sync_add<mode>_internal): Delete.
2395         (sync_addshort_internal): Use unspec instead of unspec_volatile.
2396         (sync_sub<mode>_internal): Delte.
2397         (sync_subshort_internal): New.
2398         (sync_andsi_internal): Use unspec instead of unspec_volatile.
2399         (sync_anddi_internal): Delete.
2400         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2401         (sync_booldi_internal): Delete.
2402         (sync_boolc<mode>_internal): Delete.
2403         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2404         (sync_boolc<mode>_internal2): Delete.
2405         (sync_boolcc<mode>_internal): Delete.
2406         (isync, lwsync): Use unspec instead of unspec_volatile.
2407         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2408         Revert UNSPEC_VOLATILE.
2409         (rs6000_split_atomic_op): New.
2410         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2411
2412 2005-07-14  Eric Christopher  <echristo@redhat.com>
2413
2414         * config/mips/mips.c (mips_canonicalize_comparison): Cast
2415         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2416
2417 2005-07-14  Eric Christopher  <echristo@redhat.com>
2418
2419         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2420
2421 2005-07-14  Steven Bosscher  <stevenb@suse.de>
2422
2423         PR tree-optimization/22230
2424         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2425         the computation of the four cross productions for "range op range".
2426
2427 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
2428             Ulrich Weigand  <uweigand@de.ibm.com>
2429
2430         PR target/20126
2431         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2432         in some insn.
2433
2434 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
2435
2436         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2437
2438 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
2439
2440         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2441
2442 2005-07-14  Richard Guenther  <rguenther@suse.de>
2443
2444         PR middle-end/22347
2445         * config/i386/i386-protos.h (ix86_function_value): Change
2446         prototype to match new target hook.
2447         * config/i386/i386.c (ix86_value_regno): Change prototype
2448         to take extra type argument.
2449         (TARGET_FUNCTION_VALUE): Define.
2450         (ix86_function_ok_for_sibcall): Pass extra argument to
2451         ix86_value_regno, check return slot rtx for exact match.
2452         (ix86_function_value): Take extra parameter.  Dispatch to
2453         ix86_value_regno with fndecl/fntype as provided.
2454         (ix86_value_regno): Handle extra type argument.
2455         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2456
2457         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2458         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2459         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2460         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2461         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2462
2463 2005-07-14  Richard Guenther  <rguenther@suse.de>
2464
2465         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2466         * calls.c (expand_call): Pass fntype to hard_function_value.
2467         (emit_library_call_value_1): Likewise.
2468         * explow.c: Include target.h.
2469         (hard_function_value): Take extra argument, the fntype.
2470         Use new target hook for function_value.
2471         * expr.h (hard_function_value): Change prototype.
2472         * function.c (aggregate_value_p): Pass 0 as fntype to
2473         hard_function_value.
2474         (assign_parms): Use new target hook for function_value.
2475         Pass 0 as fntype to hard_function_value.
2476         (expand_function_end): Likewise.
2477         * reg-stack.c: Include target.h.
2478         (stack_result): Use new target hook for function_value.
2479         * target-def.h: New target hook function_value.
2480         * target.h: Likewise.
2481         * targhooks.c (default_function_value): New function.
2482         * targhooks.h (default_function_value): Declare.
2483
2484 2005-07-13  Ian Lance Taylor  <ian@airs.com>
2485
2486         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2487
2488 2005-07-14  Jan Hubicka  <jh@suse.cz>
2489
2490         * tree-dfa.c (dump_variable): Use default_def function.
2491         * tree-ssa-alias.c (dump_points_to_info): Likewise.
2492         * tree-ssa.c (verify_use): Likewise.
2493         * tree-ssanames.c (release_ssa_name): Likewise.
2494         * tree-tailcall.c (eliminate_tail_call): Likewise.
2495         (tree_optimize_tail_calls_1): Likewise.
2496         * tree-vrp.c (get_value_range): Likewise.
2497
2498 2005-07-14  Ben Elliston  <bje@au.ibm.com>
2499
2500         * gcc.c (main): Compare language[0] with '*' when iterating over
2501         the infiles.
2502
2503 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
2504
2505         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
2506         "s390_emit_compare".  Add handling of CCZ1mode.
2507         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
2508         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
2509         checking.
2510         (s390_branch_condition_mask): Add CCZ1mode handling.
2511         * config/s390/s390.md: ("seq", "*seq"): New pattern.
2512         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
2513         Use CCZ1mode instead of CCZmode.
2514         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
2515
2516 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
2517
2518         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
2519         pattern.
2520         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
2521
2522 2005-07-13  Eric Christopher  <echristo@redhat.com>
2523
2524         * config/mips/mips.c (mips_canonicalize_comparison): New.
2525         (mips_emit_int_relational): Use.
2526
2527 2005-07-13  Eric Christopher  <echristo@redhat.com>
2528
2529         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2530         static extra parts.
2531         * config/s390/s390.md: Include tpf.md. Move tpf specific
2532         patterns...
2533         * config/s390/tpf.md: To here.
2534         * config/s390/s390.opt: Move tpf specific options...
2535         * config/s390/tpf.opt: to here. Add mmain option.
2536         * config/s390/tpf-unwind.h: Remove unnecessary defines.
2537         * config/s390/tpf.h: Rewrite.
2538
2539 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2540
2541         * doc/tm.texi: Remove @xref{Cross-profiling}.
2542
2543 2005-07-13  Jeff Law  <law@redhat.com>
2544
2545         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
2546         expressions, test their _DECL operands for pointer equality rather
2547         than using operand_equal_p.
2548
2549 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2550
2551         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
2552         (TARGET_POSIX_IO): This.
2553         * config/darwin.h: Likewise.
2554         * config/freebsd.h: Likewise.
2555         * config/linux.h: Likewise.
2556         * config/lynx.h: Likewise.
2557         * config/netbsd.h: Likewise.
2558         * config/rs6000/linux64.h: Likewise.
2559         * config/rs6000/linux.h: Likewise.
2560         * config/s390/tpf.h: Likewise.
2561         * config/sh/embed-elf.h: Likewise.
2562         * config/sparc/linux64.h: Likewise.
2563         * config/sparc/linux.h: Likewise.
2564         * config/svr4.h: Likewise.
2565         * gcov-io.h: Likewise.
2566
2567         * doc/tm.texi: Updated.
2568
2569         * libgcov.c (create_file_directory): Defined only if
2570         TARGET_POSIX_IO is defined.
2571         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
2572         is defined.
2573
2574 2005-07-13  Jan Hubicka  <jh@suse.cz>
2575
2576         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
2577
2578 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
2579
2580         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
2581         structure as argument.
2582
2583 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
2584
2585         PR tree-optimization/21921
2586         * tree-iterator.c (tsi_link_before): Support the case when
2587         tsi_end_p (tsi) == true.
2588
2589 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2590
2591         PR tree-optimization/22442
2592         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
2593         correctly.
2594
2595 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2596
2597         PR rtl-optimization/20376
2598         * toplev.c (process_options): Enable -fweb and -frename-registers when
2599         unrolling.
2600         * doc/invoke.texi: Update the information about when -fweb and
2601         -frename-registers are enabled.
2602
2603 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2604
2605         PR tree-opt/21840
2606         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
2607         if *rhs_p is not a SSA_NAME.
2608
2609 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
2610
2611         Fix PR tree-optimization/22422
2612         * tree-ssa-structalias.c (struct variable_info): Add flag for
2613         special vars.
2614         (get_varinfo): Now a static function.
2615         (new_varinfo): init has_union and is_special_var to false.
2616         (solution_set_add): Check has_union.
2617         (do_da_constraint): Move temporary variable so it gets reset
2618         properly.
2619         Also check for special variable.
2620         (do_ds_constraint): Ditto.
2621         (do_sd_constraint): Ditto.
2622         (do_structure_copy): Check for special variable.
2623         (find_func_aliases): Ditto.
2624         (init_base_vars): Set special vars properly.
2625
2626 2005-07-13  Jan Hubicka  <jh@suse.cz>
2627
2628         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
2629         do unit-at-a-time.
2630
2631         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
2632         (get_expr_operands): Fix thinko wrt flags and subvars.
2633
2634         PR tree-optimize/22379
2635         * tree-inline.c (expand_call_inline): Do not output sorry in early
2636         inlining.
2637
2638 2005-07-12  Dale Johannesen  <dalej@apple.com>
2639
2640         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
2641
2642 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2643
2644         PR bootstrap/21704
2645         * host-linux.h: Include limits.h.
2646
2647 2005-07-12  Dale Johannesen  <dalej@apple.com>
2648
2649         * expr.c (compress_float_constant):  Add cost check.
2650         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
2651
2652 2005-07-12  Dale Johannesen  <dalej@apple.com>
2653
2654         * gcc.target/i386/compress-float-sse.c:  New.
2655         * gcc.target/i386/compress-float-sse-pic.c:  New.
2656         * gcc.target/i386/compress-float-387.c:  New.
2657         * gcc.target/i386/compress-float-387-pic.c:  New.
2658         * gcc.dg/compress-float-ppc.c:  New.
2659         * gcc.dg/compress-float-ppc-pic.c:  New.
2660
2661 2005-07-12  Eric Christopher  <echristo@redhat.com>
2662
2663         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2664         static extra parts.
2665         * config/s390/s390.md: Include tpf.md. Move tpf specific
2666         patterns...
2667         * config/s390/tpf.md: To here.
2668         * config/s390/s390.opt: Move tpf specific options...
2669         * config/s390/tpf.opt: to here. Add mmain option.
2670         * config/s390/tpf-unwind.h: Remove unnecessary defines.
2671         * config/s390/tpf.h: Rewrite.
2672
2673 2005-07-12  Eric Christopher  <echristo@redhat.com>
2674
2675         * gcc.c (struct infile): Update comment for language.
2676         (main): Rewrite input file resetting code.
2677
2678 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2679
2680         PR tree-opt/22335
2681         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
2682         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
2683         (lookup_avail_expr): Use constant_boolean_node instead
2684         of boolean_false_node/boolean_true_node.
2685
2686 2005-07-12  Ben Elliston  <bje@au.ibm.com>
2687
2688         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
2689         and use it when printing num_edges.
2690
2691 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2692
2693         * doc/extend.texi (Blackfin Built-in Functions): New section.
2694         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
2695         @opindex.
2696
2697 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
2698
2699         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
2700         s/cmpstrsi/cmpstrnsi
2701         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
2702         'cmpstrnsi'.
2703         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
2704         (init_optabs): Initialize cmpstrn_optab.
2705         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
2706         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
2707         * expr.c: (enum insn_code cmpstrn_optab): Declare.
2708         * config/i386/i386.md: s/cmpstr/cmpstrn
2709         * config/c4x/c4x.md: s/cmpstr/cmpstrn
2710         * doc/md.texi: Update documentation.
2711
2712 2005-07-11  Richard Henderson  <rth@redhat.com>
2713
2714         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
2715         build_va_arg_indirect_ref.
2716         (alpha_gimplify_va_arg): Likewise.
2717         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2718         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
2719         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
2720         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2721         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2722         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
2723         Likewise.
2724         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2725
2726 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2727
2728         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
2729         * passes.c (init_optimization_passes): Add pass_empty_loop.
2730         * tree-pass.h (pass_empty_loop): Declare.
2731         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
2732         try_remove_empty_loop, remove_empty_loops): New functions.
2733         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
2734         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
2735
2736 2005-07-12  Peter Barada  <peter@the-baradas.com>
2737
2738         PR middle-end/16719
2739         PR middle-end/18421
2740         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
2741         in address registers.
2742         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
2743         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
2744         alternative of addsi3_5200.
2745
2746 2005-07-11  Ian Lance Taylor  <ian@airs.com>
2747
2748         * config/mips/mips.md (ffs<mode>2): Remove.
2749
2750 2005-07-11  Ian Lance Taylor  <ian@airs.com>
2751
2752         * doc/tree-ssa.texi (Cleanups): Improve description of
2753         TRY_FINALLY_EXPR.
2754         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
2755
2756 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
2757
2758         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
2759         * tree.h (DECL_ARGUMENT_FLD): New macro.
2760
2761 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
2762
2763         Fix PR tree-optimization/22404
2764
2765         * tree-ssa-structalias.c (create_variable_info_for): Use
2766         correct offset.
2767
2768 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2769
2770         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
2771         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
2772         for second comparison operand.
2773         * config/bfin/predicates.md (reg_or_const_int_operand): New.
2774
2775         * config/bfin/bfin.md (define_attr "type"): Add "sync".
2776         (define_insn_reservation "alu"): Likewise.
2777         (csync, ssync): Now of type sync.
2778         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
2779         -mcsync-anomaly -mspecld-anomaly.
2780         * config/bfin/bfin.opt (mcsync): Remove.
2781         (mcsync-anomaly, mspecld-anomaly): Add.
2782         * config/bfin/bfin.c: Include "insn-codes.h".
2783         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
2784         (TARGET_DEFAULT_TARGET_FLAGS): New.
2785         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
2786
2787 2005-07-11  Steven Bosscher  <stevenb@suse.de>
2788
2789         * basic-block.h: Give the BB flags enum a name, bb_flags.
2790         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
2791         * cfgcleanup.c (enum bb_flags): Remove here.
2792         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
2793         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
2794         (update_forwarder_flag): Likewise.
2795         (thread_jump): Likewise.
2796         (try_forward_edges): Likewise.
2797         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
2798         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
2799         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
2800
2801 2005-07-11  Richard Guenther  <rguenther@suse.de>
2802
2803         * config/i386/i386.opt: New target option -msseregparm.
2804         * config/i386/i386.c (override_options): Error out for
2805         -msseregparm but no SSE support.
2806         (ix86_function_sseregparm): Check for global sseregparm.
2807         * doc/invoke.texi: Document -msseregparm.
2808
2809 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2810
2811         * config.gcc (m32r-*-linux*): Use the default extra_parts.
2812         (m32rle-*-linux*): Ditto.
2813
2814 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
2815
2816         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
2817         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
2818         bytes.
2819
2820 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2821
2822         PR middle-end/22239
2823         PR target/20126
2824         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
2825         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
2826
2827 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
2828
2829         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
2830         (varmap): Heapify varmap.
2831         (constraints): Heapify constraints.
2832         (struct constraint_graph): Heapify succs and preds.
2833         (constraint_vec_find): Update for heapification.
2834         (constraint_set_union): Ditto.
2835         (insert_into_complex): Ditto.
2836         (constraint_edge_vec_find): Ditto.
2837         (erase_graph_self_edge): Ditto.
2838         (add_graph_edge): Ditto.
2839         (get_graph_weights): Ditto.
2840         (merge_graph_nodes): Ditto.
2841         (build_constraint_graph): Ditto.
2842         (topo_visit): Ditto.
2843         (solve_graph): Ditto.
2844         (create_variable_info_for): Ditto.
2845         (init_base_vars): Ditto.
2846         (delete_points_to_sets): Free graph, varmap, and complex constraints.
2847         (condese_varmap_nodes): Free complex vector.
2848         (clear_edges_for_node): Clear succs and preds vector.
2849
2850 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
2851
2852         * tree-ssa-structalias.c (update_alias_info): Change counting of
2853         references to not include vdefs.
2854
2855 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
2856
2857         * tree-ssa-alias.c (free_used_part_map): Add missing free.
2858         (up_insert): Ditto.
2859
2860 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2861
2862         * pa.c (pa_commutative_p): Make PLUS commutative when
2863         TARGET_NO_SPACE_REGS is true.
2864
2865 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
2866
2867         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
2868         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
2869         * tree-dfa.c (dump_subvars_for): New.
2870         (debug_subvars_for): New.
2871         (dump_variable): Show subvariables if VAR has them.
2872         * tree-flow-inline.h (get_subvar_at): New.
2873         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
2874         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
2875         Update all users.
2876         (struct subvar): Change fields offset and size to unsigned
2877         HOST_WIDE_INT.
2878         (dump_subvars_for): Declare.
2879         (debug_subvars_for): Declare.
2880         (get_subvar_at): Declare.
2881         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
2882         to unsigned HOST_WIDE_INT *.
2883         (overlap_subvar): Likewise.
2884         * tree-gimple.c (is_gimple_reg): Always return false for
2885         SFTs and memory tags.
2886         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
2887         Update all callers.
2888         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
2889         (compute_may_aliases): Call compute_points_to_sets.
2890         (collect_points_to_info_for): Remove.
2891         (compute_points_to_and_addr_escape): Remove.
2892         (delete_alias_info): Call delete_points_to_sets.
2893         (compute_flow_sensitive_aliasing): If the call to
2894         find_what_p_points_to returns false, call set_pt_anything.
2895         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
2896         (set_pt_anything): Clear pi->pt_vars.
2897         (set_pt_malloc): Remove.
2898         (merge_pointed_to_info): Remove.
2899         (add_pointed_to_expr): Remove.
2900         (add_pointed_to_var): Remove.
2901         (collect_points_to_info_r): Remove.
2902         (is_escape_site): Make extern.
2903         (create_sft): New.
2904         (create_overlap_variables_for): Call it.
2905         * tree-ssa-copy.c (merge_alias_info): Never merge
2906         flow-sensitive alias information.
2907         * tree-ssa-operands.c (get_expr_operands): Adjust variables
2908         offset and size to be unsigned HOST_WIDE_INT.
2909         (add_to_addressable_set): Rename from note_addressable.
2910         Set TREE_ADDRESSABLE as the variables are added to the set.
2911         Update all users.
2912         (add_stmt_operand): Do not try to micro-optimize unmodifiable
2913         operands into VUSEs when adding V_MAY_DEFs for members in an
2914         alias set.
2915         * tree-ssa-operands.h (add_to_addressable_set): Declare.
2916         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
2917         (struct variable_info): Add bitfield is_heap_var.
2918         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
2919         (new_var_info): Initialize is_heap_var.
2920         (get_constraint_for): Add HEAP variables to the symbol table.
2921         Mark them with is_heap_var.
2922         (update_alias_info): New.  Taken mostly from the old
2923         compute_points_to_and_addr_escape.
2924         (handle_ptr_arith): New.
2925         (find_func_aliases): Call update_alias_info.
2926         Call handle_ptr_info for tcc_binary expressions.
2927         Call mark_stmt_modified.
2928         (create_variable_info_for): If DECL has subvars, do not create
2929         variables for its subvars.  Always add all the fields.
2930         (set_uids_in_ptset): If the solution includes ANYOFFSET and
2931         SFTs, then add all the SFTs of the structure.
2932         If VI->DECL is an aggregate with subvariables, add the SFT at
2933         VI->OFFSET.
2934         (find_what_p_points_to): If VI is an artificial variable,
2935         translate to bitfields in SSA_NAME_PTR_INFO.
2936         If the solution is empty, set pi->pt_vars to NULL
2937         (init_base_vars): Create ANYOFFSET.
2938         (compute_points_to_sets): Rename from create_alias_vars.
2939         Make extern.
2940         (pass_build_pta): Remove.
2941         (delete_points_to_sets): Rename from delete_alias_vars.
2942         (pass_del_pta): Remove.
2943         * tree-ssa-structalias.h (struct alias_info): Move from
2944         tree-ssa-alias.h.
2945         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
2946         NUM_REFERENCES_SET): Likewise.
2947         (compute_points_to_sets, delete_points_to_sets): Declare.
2948
2949 2005-07-09  Richard Henderson  <rth@redhat.com>
2950
2951         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
2952         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
2953         alpha_split_lock_test_and_set_12): New functions.
2954         * config/alpha/alpha-protos.h: Update.
2955         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
2956         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
2957         * config/alpha/sync.md (I12MODE): New.
2958         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
2959         (sync_<fetchop_name><I48MODE>): Likewise.
2960         (sync_nand<I48MODE>): Likewise.
2961         (sync_old_<fetchop_name><I48MODE>): Likewise.
2962         (sync_new_<fetchop_name><I48MODE>): Likewise.
2963         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
2964         (sync_compare_and_swap<I48MODE>): Likewise.
2965         (sync_lock_test_and_set<I48MODE>): Likewise.
2966         (sync_compare_and_swap<I12MODE>): New.
2967         (sync_compare_and_swap<I12MODE>_1): New.
2968         (sync_lock_test_and_set<I12MODE>): New.
2969         (sync_lock_test_and_set<I12MODE>_1): New.
2970
2971 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
2972
2973         PR 21356
2974         PR 22332
2975         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
2976
2977 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
2978
2979         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
2980         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
2981
2982 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
2983
2984         PR target/21656
2985         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2986
2987 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
2988
2989         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
2990         memory_operand constraint.
2991         (store_conditional_<mode>): Same.
2992         (sync_compare_and_swap<mode>): Same.
2993         (sync_lock_test_and_set<mode>): Same.
2994
2995 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
2996
2997         Rewrite PIC support to more closely model actual instructions.
2998         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
2999         (cris_symbol): Remove prototypes for removed functions.
3000         (cris_pic_symbol_type_of, cris_valid_pic_const)
3001         (cris_expand_pic_call_address): Prototypes for new functions.
3002         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
3003         variable.
3004         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
3005         modifiers.
3006         <case ':'>: Add case for new punctuation character.
3007         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
3008         emitting (extra) PIC modifier.
3009         <case UNSPEC>: Do not assert for PLT.
3010         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
3011         (cris_expand_prologue, cris_expand_epilogue): Check
3012         for pic_offset_table_rtx usage instead of taking
3013         current_function_uses_pic_offset_table as the final word.
3014         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
3015         Remove flag_pic difference.
3016         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
3017         the moral equivalents of...
3018         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
3019         functions.
3020         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
3021         (cris_handle_option): Mark ARG as unused.
3022         (cris_expand_pic_call_address): New worker function for "call",
3023         "call_value".
3024         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
3025         output PIC constructs here.
3026         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
3027         as symbol-specific modifers, not whole or part of operands.
3028         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
3029         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
3030         constants and flag_pic.
3031         (CONSTANT_INDEX_P): Adjust for new functions.
3032         (enum cris_pic_symbol_type): New helper type.
3033         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
3034         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
3035         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
3036         define_constants.
3037         ("movsi"): Emit actual instructions for GOT and relative access.
3038         ("*movsi_got_load"): New pattern to set up the register holding
3039         the GOT pointer.
3040         ("*movsi_internal"): Operand 1 is not a plain general_operand.
3041         Adjust FIXME for 'S'.
3042         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
3043         Use "movs" for -fpic cases.
3044         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
3045         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
3046         ("call", "call_value"): Just call cris_expand_pic_call_address for
3047         PIC addresses.
3048         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
3049         Remove special pattern.
3050         ("*expanded_call_side", "*expanded_call_value_side"): New
3051         patterns.
3052         (gotplt-to-plt, gotplt-to-plt-side-call)
3053         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
3054         peephole2:s.
3055         * config/cris/cris/predicates.md
3056         ("cris_general_operand_or_gotless_symbol"): Remove unused
3057         predicate.
3058         ("cris_general_operand_or_symbol"): Adjust for new functions.
3059
3060 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
3061
3062         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
3063
3064 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
3065
3066         * Makefile.in (TREE_H): Add treestruct.def.
3067         (c-decl.o): Add pointer-set.h
3068         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
3069         visibility on regular DECL's.
3070         (merge_decls): Fix the copying of decl nodes of various types for
3071         the new structures.  Don't update RTL, section name, weak status,
3072         etc, on DECL's without RTL.
3073         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
3074         Don't check volatile on non-variable types.
3075         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
3076         to check whether we have seen arguments.
3077         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
3078         flag is checked before field (flag is common, field is not).
3079         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
3080         TS_DECL_COMMON could have an origin.
3081         (add_location_or_const_value_attribute): Don't check section name
3082         on non-var/function decls.
3083         (dwarf2out_var_location): Reverse order of tests.
3084         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
3085         with DECL_WRTL_CHECK.
3086         * expmed.c (make_tree): rtl is now in decl_with_rtl.
3087         * fold-const.c (fold_binary): Don't check weakness on
3088         non-var/function decls.
3089         (tree_expr_nonzero_p): Ditto.
3090         (fold_checksum_tree): Use tree_decl_extra as sizeof
3091         buffer.
3092         * ggc-page.c (extra_order_size_table): Add sizes for
3093         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
3094         tree_field_decl.
3095         * gimplify.c (gimplify_bind_expr): Only set
3096         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
3097         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
3098         without RTL.
3099         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
3100         * langhooks.h (init_ts). New langhook.
3101         * passes.c (rest_of_decl_compilation): Reverse order of tests.
3102         * print-tree.c (print_node): Update to only print fields that
3103         exist in the structures the passed decl has.
3104         * toplev.c (wrapup_global_declarations): Don't reset
3105         DECL_DEFER_OUTPUT on DECL's that don't contain it.
3106         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
3107         * tree-inline.c (remap_decl): Ditto.
3108         * tree-outof-ssa.c (create_temp): Reverse order of tests.
3109         * tree-pretty-print.c (print_declaration): Don't print
3110         DECL_REGISTER on things that don't contain it.
3111         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
3112         non-var/function decls.
3113         * tree.c (tree_contains_struct): New structure.
3114         (init_priority_for_decl): New hashtable.
3115         (tree_int_map): New structure.
3116         (tree_int_map_eq): New function.
3117         (tree_int_map_marked_p): Ditto.
3118         (tree_int_map_hash): Ditto.
3119         (tree_map): Move to tree.h.
3120         (tree_map_eq): Externalize.
3121         (tree_map_hash): Ditto.
3122         (tree_map_marked_p): Ditto.
3123         (init_ttree): Set up tree_contains_struct and call langhook.
3124         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
3125         (tree_code_size): Update for new structures.
3126         (tree_node_structure): Update for new structures.
3127         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
3128         without the field.
3129         (copy_node_stat):  Copy init priority.
3130         (build_decl_stat): Ditto for visibility.
3131         (ts_enum_names): New.
3132         (tree_contains_struct_check_failed): New function.
3133         (decl_init_priority_lookup): Ditto.
3134         (decl_init_priority_insert): Ditto.
3135         * treestruct.def: New file.
3136         * tree.h (CODE_CONTAINS_STRUCT): New macro.
3137         (CONTAINS_STRUCT_CHECK): Ditto.
3138         (tree_contains_struct_check_failed): New prototype.
3139         (DECL_CHECK): Removed.
3140         (DECL_MINIMAL_CHECK): New.
3141         (DECL_COMMON_CHECK): Ditto.
3142         (DECL_WRTL_CHECK): Ditto.
3143         (DECL_NON_COMMON_CHECK): Ditto.
3144         (DECL_WITH_VIS_CHECK): Ditto.
3145         (VAR_OR_FUNCTION_DECL_P): Ditto
3146         (struct tree_decl_minimal): New structure.
3147         (struct tree_decl_common): Ditto.
3148         (struct tree_decl_with_rtl): Ditto.
3149         (struct tree_decl_with_vis): Ditto.
3150         (struct tree_decl_non_common): Ditto.
3151         (struct tree_field_decl): Ditto.
3152         (struct tree_parm_decl): Ditto.
3153         (struct tree_var_decl): Ditto.
3154         (struct tree_function_decl): Ditto.
3155         (struct tree_const_decl): Ditto.
3156         (struct tree_result_decl): Ditto.
3157         (union tree_node): Add new structures.
3158         * var-tracking.c (track_expr_p): Reverse order of tests.
3159
3160         * doc/c-tree.texi: Add documentation on DECL node internal structure.
3161
3162 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
3163
3164         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
3165         * system.h: Poison FINALIZE_PIC.
3166         * doc/tm.texi (FINALIZE_PIC): Remove.
3167
3168 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
3169
3170         PR tree-opt/22329
3171         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
3172         to the correct type if we have a MODIFY_EXPR.
3173
3174 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
3175
3176         PR tree-optimization/22360
3177         * tree.c (upper_bound_in_type): Fix calculations for casting
3178         to a non-wider signed type and casting a signed value to a
3179         wider unsigned type.
3180         (lower_bound_in_type): Fix calculations for casting to a
3181         non-wider signed type.
3182
3183         PR tree-optimization/20139
3184         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
3185         release_defs.
3186         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
3187         fold_cond_expr_cond.
3188         * tree-ssanames.c (release_defs): Assert in_ssa_p.
3189         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
3190
3191 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
3192
3193         PR tree-opt/22356
3194         * tree-complex.c (expand_complex_libcall): Produce
3195         REALPART_EXPR/IMAGPART_EXPR with the correct type.
3196
3197 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
3198
3199         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3200         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
3201         b" assert and inserted fastpath code for this case.
3202         (bitmap_ior): Removed "a != b" assert.
3203
3204 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3205
3206         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
3207         (ENDFILE_SPEC): Likewise.
3208         * config/m32r/m32r.h (ASM_SPEC): Likewise.
3209
3210         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
3211         a large stack frame at epilogue.
3212
3213 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
3214
3215         * final.c: Include sdbout.h when required.
3216
3217 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
3218
3219         * config.gcc (*-*-darwin*): Only one target-specific header file
3220         for generic darwin.
3221         (powerpc-*-darwin*): Add version-specific header files.
3222         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
3223         * config.in: Regenerate.
3224         * configure: Regenerate.
3225         * gcc.c: Include xregex.h.
3226         (version_compare_spec_function): New.
3227         (spec_function): Add version-compare.
3228         (replace_outfile_spec_function): Reformat comment.
3229         (compare_version_strings): New.
3230         * config/darwin-c.c (version_as_macro): New.
3231         (builtin_define): New.
3232         (darwin_cpp_builtins): New.
3233         * config/darwin-protos.h (darwin_cpp_builtins): New.
3234         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
3235         (LIB_SPEC): Make unconditional, update comment.
3236         (TARGET_C99_FUNCTIONS): Define.
3237         * config/darwin.opt: Sort.
3238         (mmacosx-version-min=): New.
3239         * config/darwin7.h: Delete.
3240         * config/darwin8.h: Delete.
3241         * config/i386/darwin.h (): Call darwin_cpp_builtins.
3242         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
3243         (TARGET_C99_FUNCTIONS): Define.
3244         * config/rs6000/darwin7.h: New.
3245         * config/rs6000/darwin8.h: New.
3246         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
3247         (-mmacosx-version-min): Document.
3248
3249 2005-07-07  Ian Lance Taylor  <ian@airs.com>
3250
3251         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
3252
3253 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
3254
3255         PR middle-end/22239
3256         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
3257
3258 2005-07-07  Khem Raj  <kraj@mvista.com>
3259
3260         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
3261         in bytes, not words.
3262
3263 2005-07-07  Paul Brook  <paul@codesourcery.com>
3264
3265         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
3266         DEFAULT_FUNCTION_ARG_PADDING to upward.
3267
3268 2005-07-07  Richard Henderson  <rth@redhat.com>
3269
3270         * function.c (locate_and_pad_parm): Record parameter alignment in
3271         stack_alignment_needed.
3272
3273 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
3274
3275         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
3276         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
3277         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
3278         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
3279         (define_attr "type"): Add isync, sync, load_l, store_c.
3280         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
3281         Create scratch volatile MEM.
3282         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
3283         sync.
3284         (load_locked_<mode>): New.
3285         (store_conditional_<mode>): New.
3286         (sync_compare_and_swap<mode>): Replace with splitter.
3287         (sync_lock_test_and_set<mode>): Replace with splitter.
3288         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
3289         and UNSPECV_ISYNC.
3290         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
3291         is ics.  Attribute isync.
3292         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
3293         lwsync.
3294         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
3295         and UNSPECV_SYNC_OP.
3296         (emit_unlikely_jump): New.
3297         (emit_load_locked): New.
3298         (emit_store_conditional): New.
3299         (rs6000_split_compare_and_swap): New.
3300         (rs6000_split_lock_test_and_set): New.
3301         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
3302         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
3303         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
3304         rs6000_split_lock_test_and_set): Declare.
3305         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
3306         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
3307         store_c, isync, sync.
3308
3309 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
3310
3311         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
3312         filenames to gtyp-gen.h.
3313         (s-typ-gen): Use it in place of for loops.
3314
3315 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
3316
3317         * hooks.c (hook_bool_rtx_int_false): New function.
3318         * hooks.h (hook_bool_rtx_int_false): Declare.
3319         * target-def.h (TARGET_COMMUTATIVE_P): Define.
3320         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
3321         * target.h (struct gcc_target): Add commutative_p member.
3322         * targhooks.c (hook_bool_rtx_commutative_p): New function.
3323         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
3324         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
3325         (pa_commutative_p): New function.
3326         * jump.c (target.h): Include.
3327         (rtx_renumbered_equal_p): Use targetm.commutative_p.
3328         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
3329
3330 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
3331
3332         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
3333         (s390_expand_setmem): New.
3334         * config/s390/s390.c: Likewise.
3335         (print_shift_count_operand): Truncate to 12 bits instead of 6.
3336         Adapt comments.
3337         * config/s390/s390.md: ("setmem<mode>"): Accept character as
3338         general_operand.  Call new function "s390_expand_setmem".
3339         ("clrmem_long", "*clrmem_long"): Rewrite to ...
3340         ("setmem_long", "*setmem_long"): ... this.
3341
3342 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
3343
3344         * config/s390/s390.c: (optimization_options): Enable
3345         TARGET_MVCLE at -Os.
3346         * doc/invoke.texi: Document changes in default behaviour.
3347         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
3348
3349 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
3350
3351         * expr.c: (set_storage_via_setmem): Convert opchar to mode
3352         defined by back-end.
3353
3354 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
3355
3356         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
3357         all sets in the pattern.
3358         * config/rs6000/rs6000.md (stack_protect_testsi,
3359         stack_protect_testdi): Likewise.
3360
3361 2005-07-06  Jeff Law  <law@redhat.com>
3362
3363         * tree-vrp.c (simplify_using_ranges): Kill.
3364         (vrp_finalize): Remove call to simplify_using_ranges.
3365         (simplify_stmt_using_ranges): New function extracted from
3366         simplify_using_ranges.
3367         (simplify_div_or_mod_using_ranges): Likewise.
3368         (simplify_abs_using_ranges): Likewise.
3369         (simplify_cond_using_ranges): New function.
3370         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
3371         * tree-ssa-propagate.c (substitute_and_fold): Call
3372         simplify_stmt_using_ranges if we have range information.
3373
3374 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
3375
3376         * config/ia64/ia64.c (ia64_reorg): Check optimize before
3377         ia64_flag_schedule_isns2.
3378
3379         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
3380         reading/writing general registers.
3381         (ia64_function_arg): Revert 2005-06-18 change.
3382
3383 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
3384
3385         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
3386         (legitimize_tls_address): Use gcc_unreachable instead of abort.
3387
3388 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
3389
3390         * function.c (expand_function_end): Revert part of 2005-06-27
3391         patch.  Do sjlj_emit_function_exit_after after return_label.
3392
3393 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
3394
3395         * doc/install.texi (--disable-libssp): New.
3396
3397 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
3398
3399         * doc/invoke.texi: Update -fforce-mem documentation.
3400         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
3401         code for -fforce-mem.
3402         * expmed.c: (store_bit_field,store_fixed_bit_field,
3403         extract_bit_field): Ditto.
3404         * expr.c: (convert_move): Ditto.
3405         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
3406         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
3407         emit_conditional_add,expand_float,expand_fix): Ditto.
3408         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
3409         (common_handle_option): Issue warning when -fforce-mem specified.
3410
3411 2005-07-06  Paul Brook  <paul@codesourcery.com>
3412
3413         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
3414         argument is empty.
3415         * configure: Regenerate.
3416
3417 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
3418
3419         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
3420
3421 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
3422
3423         Fix PR tree-optimization/22319
3424         Fix PR tree-optimization/22140
3425         Fix PR tree-optimization/22310
3426
3427         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
3428         variable sized types.
3429         Use correct type for intermediate structure on *a = *b structure
3430         copies.
3431
3432 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
3433
3434         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
3435         Remove.
3436         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
3437         (machine_function): Move typedef to...
3438         * config/rs6000/rs6000.c (machine_function): ... here.  Add
3439         varargs_save_offset field.
3440         (rs6000_stack_t): Remove varargs_size field.
3441         (setup_incoming_varargs): Allocate varargs save area using
3442         assign_stack_local, try to make it as small as possible.
3443         Save offset from virtual_stack_vars_rtx to the save area
3444         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
3445         instead of magic 8 when fp word byte size is used.
3446         (rs6000_va_start): Use cfun->machine->varargs_save_offset
3447         instead of -RS6000_VARARGS_SIZE.
3448         (rs6000_stack_info, debug_stack_info,
3449         rs6000_initial_elimination_offset): Remove all traces of
3450         varargs_size.
3451         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
3452         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
3453         RS6000_VARARGS_AREA.
3454
3455 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
3456
3457         PR tree-optimization/21963
3458         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
3459         constant_multiple_of in the same way get_computation_cost_at does.
3460
3461 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
3462
3463         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
3464         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
3465         (gen_compare_reg): If sparc_compare_emitted is set, clear it
3466         and return its previous value.
3467         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
3468         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
3469         constants.
3470         (stack_protect_set, stack_protect_test): New expanders.
3471         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
3472         stack_protect_testdi): New insns.
3473         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3474         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
3475
3476 2005-07-06  Jeff Law  <law@redhat.com>
3477
3478         * tree-ssa-dce.c (cfg_altered): New global.
3479         (tree_dce_init): Initialize cfg_altered.
3480         (remove_dead_stmt): If we remove an edge in the CFG, then set
3481         CFG_ALTERED.
3482         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
3483         the dominators.
3484
3485 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
3486
3487         * Makefile.in (stamp-collect-ld): Use
3488         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
3489         ./collect-ld if it already exists.
3490         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
3491         Don't remove ./nm if it already exists.
3492
3493 2005-07-05  Devang Patel  <dpatel@apple.com>
3494
3495         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
3496         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
3497         * tree-vectorizer.c (vect_loop_location): New.
3498         (vect_print_dump_info): Use vect_loop_location.
3499         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
3500         (vectorize_loops): Set vect_loop_location.
3501         * tree-vect-analyze.c (vect_analyze_offset_expr,
3502         vect_determin_vectorization_factor, vect_analyze_operations,
3503         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
3504         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
3505         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
3506         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
3507         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
3508         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
3509         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
3510         vect_analyze_loop): Adjust vect_print_dump_info API.
3511         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
3512         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
3513         vect_finish_stmt_generation, vectorizable_assignment,
3514         vectorizable_operation, vectorizable_store, vectorizable_load,
3515         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
3516         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
3517         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
3518         vect_transform_loop): Same.
3519         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
3520         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
3521         Same.
3522
3523 2005-07-05  Randolph Chung  <tausq@debian.org>
3524
3525         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
3526         * configure: Regenerate.
3527         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
3528         (pa_tls_referenced_p): Declare.
3529         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
3530         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
3531         (legitimize_tls_address): New.
3532         (hppa_legitimize_address): Handle TLS addresses.
3533         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
3534         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3535         (emit_move_sequence): Handle TLS addresses.
3536         (pa_encode_section_info): Call default handler to handle common
3537         sections.
3538         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
3539         (CONSTANT_ADDRESS_P): Reject TLS operands.
3540         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
3541         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
3542         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
3543         (UNSPEC_TLSLE): Define new constants.
3544         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
3545         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
3546         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
3547         (tie_symbolic_operand, tle_symbolic_operand): New
3548
3549 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
3550
3551         * aclocal.m4: Update macros for autoconf 2.59 style.
3552         * configure.ac: Likewise.
3553
3554 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3555
3556         * pa.c (function_value): Handle small aggregates on 32-bit targets.
3557         (function_arg): Pass small aggregates in general registers on 32-bit
3558         targets.
3559         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
3560
3561 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
3562
3563         * Makefile.in (final.o): Fix dependencies.
3564
3565 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
3566
3567         PR c/22013
3568         PR c/22098
3569         * langhooks.h (struct lang_hooks): Add expr_to_decl.
3570         * langhooks.c (lhd_expr_to_decl): New.
3571         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
3572         New.
3573         (LANG_HOOKS_INITIALIZER): Update.
3574         * tree.c (recompute_tree_invarant_for_addr_expr): Call
3575         expr_to_decl langhook.
3576         * c-tree.h (c_expr_to_decl): Declare.
3577         * c-typeck.c (c_expr_to_decl): New.
3578         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
3579         specially.
3580         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
3581
3582 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
3583
3584         PR c/22308
3585         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
3586         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
3587
3588 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
3589
3590         * Makefile.in: Adjust dependencies.
3591         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
3592         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
3593         * alias.c (rest_of_handle_cfg, pass_cfg): New.
3594         * bb-reorder.c (duplicate_computed_gotos): Make it static.
3595         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
3596         rest_of_compilation.
3597
3598         * bb-reorder.c (gate_duplicate_computed_gotos,
3599         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
3600         rest_of_handle_reorder_blocks, pass_reorder_blocks,
3601         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
3602         pass_partition_blocks): New.
3603         * bt-load.c (gate_handle_branch_target_load_optimize,
3604         rest_of_handle_branch_target_load_optimize,
3605         pass_branch_target_load_optimize): New.
3606         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
3607         pass_jump2): New.
3608         * cfglayout.c (pass_insn_locators_initialize): New.
3609         * cfgrtl.c (pass_free_cfg): New.
3610         * combine.c (gate_handle_combine, rest_of_handle_combine,
3611         pass_combine): New.
3612         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
3613         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
3614         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
3615         * except.c (pass_set_nothrow_function_flags,
3616         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
3617         pass_rtl_eh): New.
3618         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
3619         rest_of_handle_shorten_branches, pass_shorten_branches,
3620         rest_of_clean_state, pass_clean_state): New.
3621         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
3622         rest_of_handle_remove_death_notes, pass_remove_death_notes,
3623         rest_of_handle_life, pass_life, rest_of_handle_flow2,
3624         pass_flow2): New.
3625         * function.c (pass_instantiate_virtual_regs, pass_init_function,
3626         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
3627         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
3628         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
3629         pass_gcse): New.
3630         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
3631         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
3632         pass_rtl_ifcvt, gate_handle_if_after_combine,
3633         rest_of_handle_if_after_combine, pass_if_after_combine,
3634         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
3635         pass_if_after_reload): New.
3636         * integrate.c (pass_initial_value_sets): New.
3637         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
3638         pass_purge_lineno_notes): New.
3639         * mode-switching.c (rest_of_handle_mode_switching,
3640         pass_mode_switching): New.
3641         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
3642         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
3643         pass_loop2): New.
3644         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
3645         pass_loop_optimize): New.
3646         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
3647         pass_sms): New.
3648         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
3649         pass_gcse2): New.
3650         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
3651         pass_postreload_cse): New.
3652         * profile.c (gate_handle_profiling, pass_profiling,
3653         rest_of_handle_branch_prob, pass_branch_prob): New.
3654         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
3655         pass_split_before_regstack, gate_handle_split_before_regstack,
3656         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
3657         rest_of_handle_split_all_insns, pass_split_all_insns): New.
3658         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
3659         pass_stack_regs): New.
3660         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
3661         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
3662         pass_stack_adjustments): New.
3663         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
3664         pass_regrename): New.
3665         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
3666         pass_delay_slots, gate_handle_machine_reorg,
3667         rest_of_handle_machine_reorg, pass_machine_reorg): New.
3668         * rtl.h (extern void purge_line_number_notes): New.
3669         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
3670         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
3671         pass_sched2): New.
3672         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
3673         pass_tracer): New.
3674         * value-prof.c (gate_handle_value_profile_transformations,
3675         rest_of_handle_value_profile_transformations,
3676         pass_value_profile_transformations): New.
3677         * var-tracking.c (gate_handle_var_tracking,
3678         pass_variable_tracking): New.
3679         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
3680
3681         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
3682         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3683         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3684         rest_of_handle_old_regalloc, rest_of_handle_regrename,
3685         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
3686         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
3687         rest_of_handle_gcse2, rest_of_handle_regmove,
3688         rest_of_handle_tracer, rest_of_handle_if_conversion,
3689         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
3690         rest_of_handle_web, rest_of_handle_branch_prob,
3691         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3692         rest_of_handle_jump_bypass, rest_of_handle_combine,
3693         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3694         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3695         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
3696         rest_of_handle_mode_switching, rest_of_handle_jump,
3697         rest_of_handle_eh, rest_of_handle_stack_adjustments,
3698         rest_of_handle_flow2, rest_of_handle_jump2,
3699         rest_of_handle_peephole2, rest_of_handle_postreload,
3700         rest_of_handle_shorten_branches, rest_of_clean_state,
3701         rest_of_compilation): Remove.
3702
3703         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
3704         * passes.c (dump_flags, in_gimple_form, all_passes,
3705         all_ipa_passes, all_lowering_passes, register_one_dump_file,
3706         register_dump_files, next_pass_1, last_verified, execute_todo,
3707         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
3708         from tree-optimize.c.
3709         (init_optimization_passes): Moved from tree-optimize.c,
3710         adding the RTL optimizations.
3711         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
3712         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
3713         all_ipa_passes, all_lowering_passes, register_one_dump_file,
3714         register_dump_files, next_pass_1, last_verified, execute_todo,
3715         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
3716         init_tree_optimization_passes, ipa_passes): Delete.
3717         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
3718         the RTL dumps.
3719         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
3720         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
3721         from tree.h.
3722         (ipa_passes): Remove.
3723         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
3724         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
3725         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
3726         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
3727         (dump_info_p, dump_flag): Moved to tree-dump.h.
3728
3729         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
3730         cgraph.c, opts.c.
3731         * passes.c (finish_optimization_passes): Use dump_begin
3732         and dump_end, TDI_end.
3733         (gate_rest_of_compilation): New.
3734         (pass_rest_of_compilation): Use it.
3735         (gate_postreload, pass_postreload): New.
3736         * toplev.c (general_init): Rename init_tree_optimization_passes.
3737         * toplev.h (init_tree_optimization_passes): Rename to
3738         init_optimizations_passes.
3739         * tree-dump.c (dump_flag): Make static.
3740         (dump_files): Remove RTL dumps.
3741         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3742         pass_cleanup_cfg, pass_free_cfg_annotations,
3743         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
3744         pass_init_datastructures, pass_fixup_cfg): Make non-static.
3745         * tree-pretty-print.c: Include tree-pass.h.
3746         * cgraph.c: Include tree-dump.h.
3747
3748 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
3749
3750         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
3751         Only fall back to saying it points to readonly memory if
3752         we can't do better.
3753
3754 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3755
3756         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
3757         * config/m32r/m32r.c (m32r_compute_frame_size,
3758         m32r_expand_prologue): Take current_function_profile into
3759         account whenever we reference
3760         current_function_uses_pic_offset_table.
3761         (m32r_finalize_pic): Remove.
3762         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
3763
3764 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
3765
3766         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
3767         instead of $<.  Don't remove ./as if it already exists.
3768
3769 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3770
3771         PR target/21723
3772         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
3773         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
3774         for complex modes when generating code for PA 1.0.
3775         (VALID_FP_MODE_P): New macro.
3776         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
3777         sets for all general and floating point modes.  Align wide floating
3778         point modes to even register boundaries to comply with architectural
3779         requirements.
3780         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
3781         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
3782         (VALID_FP_MODE_P): New macro.
3783         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
3784         sets for all general and floating point modes.  Align wide floating
3785         point modes to even register boundaries to comply with architectural
3786         requirements.
3787
3788 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
3789
3790         * tree-dump.c (dump_files): Initialize dump number for .cgraph
3791         to 0.
3792
3793 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
3794
3795         * tree-ssa-structalias.c: Don't include expr.h.
3796
3797 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
3798
3799         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
3800         comments.
3801
3802 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
3803
3804         Fix PR tree-optimization/22279
3805
3806         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
3807         correct operator.
3808
3809 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
3810
3811         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
3812
3813 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
3814
3815         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
3816         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
3817         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
3818         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
3819         config/stormy16/stormy16.c, config/v850/v850.c,
3820         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
3821         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
3822         Avoid "." or "\n" at end of diagnostics and capital letters at
3823         start of diagnostics.
3824         * combine.c, cse.c: Don't translate dump file output.
3825         * toplev.c (print_version): Only translate output if going to
3826         stderr.
3827
3828 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
3829
3830         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
3831         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
3832         typos.
3833
3834 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3835
3836         * pa.c (fix_range): Fix typo in comment.
3837
3838 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
3839
3840         * tree-vrp.c (extract_range_from_assert): Replace
3841         fold (build (...)) with fold_build2.
3842
3843 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3844
3845         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
3846         gcc_gfc_char_table, init_dynamic_gfc_info): New.
3847         (format_types_orig, handle_format_attribute): Add support for
3848         format "gcc_gfc".
3849
3850 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3851
3852         * varasm.c (assemble_variable): Fix format specifier thinko.
3853
3854 2005-07-03  Ira Rosen  <irar@il.ibm.com>
3855
3856         PR tree-optimization/22029 (and 22135)
3857         * tree-pretty-print.c (dump_generic_node): Check that the node is not
3858         a phi node before calling dump_vops.
3859
3860 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3861
3862         * tree-dump.h (dump_string_field): Declare.
3863         * tree-dump.c: Use it instead of dump_string.
3864         (dump_string_field): Make non-static.
3865
3866 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3867
3868         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
3869         up the minimal CFG stuff always when optimize > 0.  Call
3870         split_all_insns_noflow in PIC case if needed.
3871
3872 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3873             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3874
3875         PR c++/18279
3876         * c-decl.c (c_write_global_declarations): Dump contents of
3877         external scope to.
3878         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
3879         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
3880         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
3881         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
3882         is enabled.
3883
3884 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
3885
3886         * c-common.h (GCC_DIAG_STYLE): Define.
3887         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
3888         version for format checking to 4.1.
3889         * c-format.c: Include toplev.h after c-common.h.
3890         (enum format_type): Add gcc_tdiag_format_type.
3891         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
3892         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
3893         (format_types_orig): Add gcc_tdiag.
3894         (init_dynamic_diag_info): Support gcc_tdiag formats.
3895         (handle_format_attribute): Likewise.
3896         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
3897         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
3898         version for format checking to 4.1.
3899         (warning0, warning, error, pedwarn, sorry): Use
3900         ATTRIBUTE_GCC_DIAG.
3901         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
3902         (finish_aliases_1): Do not use %qE.
3903         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
3904         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
3905         Correct format bugs.
3906         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
3907         parameter to unsigned HOST_WIDE_INT.
3908         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
3909
3910 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
3911
3912         PR middle-end/21742
3913         * expr.c (write_complex_part): Use adjust_address for MEM.
3914         (read_complex_part): Same.
3915
3916 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
3917
3918         Fix PR tree-optimization/22280
3919
3920         * tree-sra.c (generate_element_init): Remove useless loop.
3921
3922 2005-07-02  Richard Henderson  <rth@redhat.com>
3923
3924         * config/alpha/alpha.c (alpha_legitimize_address): Check for
3925         TLS_MODEL_NONE.
3926         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
3927
3928 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
3929
3930         PR middle-end/14490
3931         * fold-const.c (fold_binary): Handle the return value of
3932         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
3933         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
3934
3935 2005-07-02  Jeff Law  <law@redhat.com>
3936
3937         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
3938         a eliminate type conversion which feeds an equality comparison
3939         if the original type or either operand in the comparison is a
3940         function pointer.
3941
3942 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
3943
3944         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
3945         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
3946         texts.
3947         * config/avr/avr.c: Do not use '`' as left quote.
3948         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
3949         Remove "." from end of diagnostics.  Make diagnostics start with
3950         lowercase letter.
3951
3952 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
3953             Joseph S. Myers  <joseph@codesourcery.com>
3954
3955         * toplev.c (default_tree_printer): Handle setting location with
3956         '+' flag.
3957         * c-objc.common.c (c_tree_printer): Likewise.
3958         * c-format.c (gcc_diag_flag_specs): Add '+'.
3959         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
3960         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
3961         formats.
3962         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
3963         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
3964         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
3965         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
3966         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
3967         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
3968         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
3969         format arguments where %J is used without %D.
3970
3971 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
3972
3973         * gcc.c (LINK_SSP_SPEC): Define.
3974         (link_ssp_spec): New variable.
3975         (LINK_COMMAND_SPEC): Add %(link_ssp).
3976         (static_specs): Add link_ssp_spec.
3977         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
3978         * configure: Rebuilt.
3979         * config.in: Rebuilt.
3980
3981         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3982         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
3983         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
3984         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
3985         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
3986         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
3987         -0x7008(2) instead of reading __stack_chk_guard variable.
3988         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
3989         number.
3990         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
3991         (stack_protect_set, stack_protect_test): Use *_tls* patterns
3992         if TARGET_THREAD_SSP_OFFSET is defined.
3993         (stack_tls_protect_set_si, stack_tls_protect_set_di,
3994         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
3995
3996         Revert:
3997         2005-06-27  Richard Henderson  <rth@redhat.com>
3998         * libgcc-std.ver (GCC_4.1.0): New.
3999         * libgcc.h (__stack_chk_guard): Declare.
4000         (__stack_chk_fail, __stack_chk_fail_local): Declare.
4001         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
4002         * mklibgcc.in (lib2funcs): Add them.
4003
4004 2005-07-01  Richard Henderson  <rth@redhat.com>
4005
4006         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
4007         void * before struct sigcontext *.
4008         (x86_fallback_frame_state): Likewise.
4009
4010 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
4011
4012         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
4013
4014 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
4015
4016         PR tree-opt/22269
4017         * tree-ssa-reassoc.c (should_transpose): Fix which operand
4018         we check for SSA_NAME for.
4019
4020 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
4021
4022         Fix PR tree-optimization/22071
4023
4024         * tree-ssa-structalias.c (offset_overlaps_with_access): New
4025         function.
4026         (get_constraint_for_component_ref): Use it.
4027
4028 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
4029
4030         PR other/22264
4031         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
4032         print out the last new line.
4033
4034 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
4035
4036         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
4037         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
4038         * config/cris/cris.c (cris_conditional_register_usage): Adjust
4039         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
4040         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
4041         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
4042         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
4043         (enum reg_class): New member CC0_REGS.
4044         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
4045         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
4046         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
4047         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
4048         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
4049         Adjust for register now described.
4050
4051 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
4052
4053         PR target/22262
4054         * config/i386/i386.md (stack_protect_test_si,
4055         stack_protect_test_di): Add earlyclobber for scratch 3.
4056         * config/rs6000/rs6000.md (stack_protect_testsi,
4057         stack_protect_testdi): Add earlyclobber for scratch 3,
4058         remove earlyclobber from scratch 4.
4059
4060 Older entries for 2005 can be found in ChangeLog-2005.