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