OSDN Git Service

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