]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR c++/8271 (Templates and pointers to const member functions)
[gcc.git] / gcc / ChangeLog
CommitLineData
ec92bd4b
KK
12005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
2
3 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
4 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
5
8c2efff7
JW
62005-08-11 James E. Wilson <wilson@specifix.com>
7
8 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
9
ea93971a
JJ
102005-08-11 Jakub Jelinek <jakub@redhat.com>
11
86bd8ebf
JJ
12 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
13 locations gathered by var-tracking in single entry loc_list
14 over loc_descriptor_from_tree.
15
ea93971a
JJ
16 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
17 pass it down to loc_descriptor.
18 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
19 (containing_function_has_frame_base): Move earlier in the file.
20 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
21 instead of always assuming fbreg can't be used.
22
dec1f3aa
DE
232005-08-11 David Edelsohn <edelsohn@gnu.org>
24
25 * config/rs6000/altivec.md: Change constraint "m" to "Z".
26 * config/rs6000/predicates.md (indexed_or_indirect_operand):
27 Accept address wrapped in AND for Altivec.
28 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
29 Strip AND wrapping offset address for Altivec.
30
7fd6694b
RH
312005-08-11 Richard Henderson <rth@redhat.com>
32
33 PR middle-end/23312
34 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
35 before using TYPE_IS_SIZETYPE.
36
4ead2a39
RH
372005-08-11 Richard Henderson <rth@redhat.com>
38
39 PR target/22225
40 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
41 insn types not present on ev4.
42 (alphaev5_insn_pipe): Similarly.
43
da8ce8be
RE
442005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
45
46 PR target/23250
47 * arm.c (arm_override_options): If the user has selected callee-super-
48 interworking, then enable normal interworking.
49
eb2b0cc0
RO
502005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
51
52 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
53 redefinition.
54
b630e240
WZ
552005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
56
57 * doc/rtl.texi: Fix two typos.
58
cac32996
RG
592005-08-11 Richard Guenther <rguenther@suse.de>
60
61 PR target/23289
62 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
63 cases where we call to/from functions returning void.
64
a4faac50
JM
652005-08-10 James A. Morrison <phython@gcc.gnu.org>
66
67 PR c++/23225
68 * tree.c (build_pointer_type_for_mode): Robustify.
69
907f033f
JW
702005-08-10 James E Wilson <wilson@specifix.com>
71
72 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
73 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
74
75 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
76 "cum->".
77
bb8df8a6
EC
782005-08-10 Eric Christopher <echristo@apple.com>
79
80 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
81 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
82 V2DFmode.
83
4f8dbd34
AP
842005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
85
ce31ea84 86 PR target/21887
4f8dbd34
AP
87 * config/darwin.c (machopic_indirect_data_reference): Use a new register
88 for the high part when generating dynamic-no-pic code.
89
d75e02d6
L
902005-08-10 H.J. Lu <hongjiu.lu@intel.com>
91
92 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
93 (x86_64-*-linux*): Likewise.
94
95 * config/i386/crtfastmath.c: New file.
96 * config/i386/t-crtfm: Likewise.
97
98 * config/i386/linux.h (ENDFILE_SPEC): New.
99 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
100
101 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
102 crtfastmath.o.
103
61abee65
DN
1042005-08-10 Dorit Nuzman <dorit@il.ibm.com>
105
106 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
107 (vec_shl, vec_shr): Document new operations.
108 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
109
11aac14f
DE
1102005-08-10 David Edelsohn <edelsohn@gnu.org>
111
112 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
113 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
114 change predicate to indexed_or_indirect_address.
115
9bd05108
RS
1162005-08-10 Richard Sandiford <richard@codesourcery.com>
117
118 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
119 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
120 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
121 and __aeabi_uwrite8.
122 * config/arm/unaligned-funcs.c: New file.
123 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
124
defb77dc
PB
1252005-08-09 Paolo Bonzini <bonzini@gnu.org>
126
127 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
128 Add dump.
129 * cfglayout.c (pass_insn_locators_initialize): Add dump.
130 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
131 Add dump.
132 * except.c (pass_convert_to_eh_region_ranges): Add dump.
133 * final.c (pass_shorten_branches): Add dump.
134 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
135 (pass_life): Rename dump.
136 (rest_of_handle_flow2): Remove initial verify_flow_info.
137 * function.c (pass_instantiate_virtual_regs): Add dump.
138 * integrate.c (pass_initial_value_sets): Add dump.
139 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
140 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
141 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
142 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
143 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
144 gate_rtl_unrool_and_peel_loops): New.
145 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
146 rtl_doloop): Do not look at flags.
147 * mode-switching.c (pass_mode_switching): Add dump.
148 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
149 pass_split_before_regstack): Add dump.
150 * regmove.c (pass_stack_adjustments): Add dump.
151 * tree-optimize.c (pass_fixup_cfg): Add dump.
152
2a6a63c1
KI
1532005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
154
155 PR 23309
156 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
157 deciding which instruction sequence to use.
158
0ed414a4
DN
1592005-08-09 Dorit Nuzman <dorit@il.ibm.com>
160
bb8df8a6 161 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
0ed414a4
DN
162 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
163
9bc15050
RG
1642005-08-09 Richard Guenther <rguenther@suse.de>
165
166 * c-common.c (builtin_function_2): Remove.
167 (def_builtin_1): New function.
168 (c_common_nodes_and_builtins): Use def_builtin_1 to
169 build builtin functions.
170
07da68fd
JZ
1712005-08-09 Jie Zhang <jie.zhang@analog.com>
172
173 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
174 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
175 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
176 Visual DSP.
177
2f133f46
JM
1782005-08-09 James A. Morrison <phython@gcc.gnu.org>
179
180 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
181 fold_binary instead of fold_build2 since we don't care about the
182 resulting tree.
183 (loop_niter_by_eval): Likewise.
184 (compare_trees): Likewise.
185 (proved_non_wrapping_p): Likewise.
186
f14e694e
JM
1872005-08-09 James A. Morrison <phython@gcc.gnu.org>
188
189 PR c/23161
190 PR c/23165
191 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
192 if the if is really empty.
193
2ef571e2
SB
1942005-08-09 Steven Bosscher <stevenb@suse.de>
195
196 PR tree-optimization/23234
197 * tree-ssa-math-opts.c (place_reciprocal): New enum.
198 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
199 argument of the new enum.
200 (execute_cse_reciprocals): Add reciprocals for function arguments
201 on the unique successor edge of the entry block. Update other calls
202 to execute_cse_reciprocals_1.
203
a9c5ddf9
RH
2042005-08-08 Richard Henderson <rth@redhat.com>
205
206 PR 22439
207 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
208
22469409
BW
2092005-08-08 Bob Wilson <bob.wilson@acm.org>
210
211 * expr.c (write_complex_part): Return after handling MEM.
212
2d88fcc2
JC
2132005-08-08 Josh Conner <jconner@apple.com>
214
215 PR rtl-optimization/23241
216 * combine.c (simplify_comparison): Fix error in determining
217 whether to lift a subreg from comparison.
218
7a4eca66
DE
2192005-08-08 David Edelsohn <edelsohn@gnu.org>
220
221 PR target/18506
222 * config/rs6000/altivec.md (vec_init<mode>): New.
223 (vec_set<mode>): New.
224 (vec_extract<mode>): New.
225 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
226 (rs6000_expand_vector_set): New.
227 (rs6000_expand_vector_extract): New.
228 (rs6000_legitimate_offset_address_p): Offset addresses are valid
229 for Altivec modes before reload.
230 (altivec_expand_vec_init_builtin): New.
231 (get_element_number): New.
232 (altivec_expand_vec_set_builtin): New.
233 (altivec_expand_vec_ext_builtin): New.
234 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
235 builtins.
236 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
237 builtins.
238 * config/rs6000/rs6000.h (rs6000_builtins): Add
239 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
240 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
241 * config/rs6000/rs6000-protos.h: Declare new functions.
242
47efdea4
JH
2432005-08-08 Jan Hubicka <jh@suse.cz>
244
245 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
246 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
247 * i386.md (movdi*): Use pic_32bit_operand.
248 * predicates.md (pic_32bit_operand): New.
249
f303a996
NS
2502005-08-08 Nathan Sidwell <nathan@codesourcery.com>
251
252 PR c++/21166
253 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
254
a5ad7269
JM
2552005-08-07 James A. Morrison <phython@gcc.gnu.org>
256
257 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
258 (test_for_singularity): Use fold_build2.
259
914a6ee8
JDA
2602005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
261
262 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
263
f18faab7
DS
2642005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
265
266 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
267 (COMMON_ASM_OP) Define.
268 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
269 (ix86_encode_section_info): Likewise.
270 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
271 SUBTARGET_ENCODE_SECTION_INFO.
272
455c08cb
RH
2732005-08-06 Richard Henderson <rth@redhat.com>
274
275 PR 21894
276 * tree-nested.c (convert_local_reference): Save and restore val_only
277 around component_ref and friends. Clear walk_subtrees by default.
278
3300bf07
PG
2792005-08-06 Peter O'Gorman <peter@pogma.com>
280
281 PR 21366
282 * gcc.c (process_command): Check the argument to -b has a dash.
283 * doc/invoke.texi: Update -b and -V docs.
284
e2ba06d6
JW
2852005-08-06 James E Wilson <wilson@specifix.com>
286
287 * config/mips/cross64.h, config/mips/t-cross64: Delete.
288
3e0a6ca6
MM
2892005-08-06 Michael Matz <matz@suse.de>
290
291 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
292 member only if only one insn is associated with the value.
293
2f806f3b
NC
2942005-08-06 Nick Clifton <nickc@redhat.com>
295
296 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
297 New define.
3e0a6ca6 298 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2f806f3b
NC
299 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
300 Check symbol flags instead of symbol name mangling.
3e0a6ca6 301 (xstormy16_asm_output_aligned_common): Likewise. Also
2f806f3b
NC
302 simplify code since the bss100_section cass is the only case
303 where the below100 code will be triggered.
3e0a6ca6 304 (xstormy16_encode_section_info): Encode below100 attribute
2f806f3b
NC
305 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
306 the name.
3e0a6ca6 307 (xstormy16_strip_name_encoding): Delete - this function is no
2f806f3b 308 longer needed.
3e0a6ca6 309 (TARGET_STRIP_NAME_ENCODING): Undefine.
2f806f3b
NC
310 * config/stormy16/stormy16-protos.h: Delete prototype for
311 xstormy16_strip_name_encoding.
312
a4d05547
KH
3132005-08-06 Kazu Hirata <kazu@codesourcery.com>
314
315 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
316 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
317 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
318 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
319 config/alpha/predicates.md, config/arc/arc.h,
320 config/arm/arm.h, config/arm/ieee754-df.S,
321 config/arm/ieee754-sf.S, config/bfin/bfin.c,
322 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
323 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
324 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
325 config/m68hc11/m68hc11.h, config/mips/mips.c,
326 config/mips/mips.h, config/mips/openbsd.h,
327 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
328 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
329 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
330 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
331 config/sparc/linux.h, config/sparc/linux64.h,
332 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
333 doc/extend.texi, doc/gcov.texi, doc/install.texi,
334 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
335 typos. Follow spelling conventions.
336
591baeb0
JM
3372005-08-06 Joseph S. Myers <joseph@codesourcery.com>
338
339 PR c/23113
340 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
341 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
342 specially. Check for side effects only for COND_EXPR.
343 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
344 return with TREE_NO_WARNING.
345
f7a064b5
RS
3462005-08-06 Richard Sandiford <richard@codesourcery.com>
347
348 PR rtl-optimization/23233
349 * loop.c (combine_movables): Require the modes to be the same.
350 (move_movables): Remove handling of cases where the replacement
351 had a different mode to the original.
352
b17775ab
JM
3532005-08-05 James A. Morrison <phython@gcc.gnu.org>
354
355 PR tree-optimization/23128
356 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
357 subtraction wrap, and set TREE_OVERFLOW if they do.
358
bb1ecfe8
RH
3592005-08-05 Richard Henderson <rth@redhat.com>
360
361 PR 21728
362 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
363 FORCED_LABEL labels.
364
50aa8e71
R
3652005-08-05 J"orn Rennecke <joern.rennecke@st.com>
366
367 PR middle-end/23135
368 * reload.c (find_reloads_subreg_address): Pass down TYPE
369 unchanged. Change all callers except find_reloads_toplev.
370
b01896cc
MM
3712005-08-05 Michael Matz <matz@suse.de>
372
373 * genattrtab.c (current_alternative_string): Remove.
374 (SIMPLIFY_ALTERNATIVE): Ditto.
375 (attr_alt_bit_p): Ditto.
376 (alternative_name): Make const char *.
377 (evaluate_eq_attr): Remove use of above things.
378 (simplify_test_exp): Ditto.
379 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
380 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
381
3f94bdec
JW
3822005-08-04 James E Wilson <wilson@specifix.com>
383
384 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
385 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
386 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
387 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
388 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
389
460f84ed
RH
3902005-08-04 Richard Henderson <rth@redhat.com>
391
392 PR 21529
393 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
394 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
395 * tree-sra.c (decide_block_copy): Use it. Disable element copy
396 if we'd have to instantiate too many members.
397
5a910e43
RH
3982005-08-04 Richard Henderson <rth@redhat.com>
399
400 PR 21291
401 * tree-outof-ssa.c (coalesce_asm_operands): New.
402 (coalesce_ssa_name): Use it. Split out ...
403 (coalesce_phi_operands, coalesce_result_decls): ... these.
404
27c37000
PB
4052005-08-04 Paul Brook <paul@codesourcery.com>
406
407 * read-rtl.c (read_quoted_string): Break if EOF.
408
5808968e
AP
4092005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
410
411 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
412 (fold_build2): Likewise.
413 (fold_build3): Likewise.
414 (fold_build1_stat): New function prototype.
415 (fold_build2_stat): Likewise.
416 (fold_build3_stat): Likewise.
417 * fold-const.c (fold_build1): Rename to ..
418 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
419 through to build1_stat.
420 (fold_build2): Rename to ..
421 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
422 through to build2_stat.
423 (fold_build3): Rename to ..
424 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
425 through to build3_stat.
426
d70eadf7 4272005-08-04 David Edelsohn <edelsohn@gnu.org>
6d62ac14 428 Ian Lance Taylor <ian@airs.com>
d70eadf7
DE
429
430 * function.c (assign_stack_local_1): Do not correct stack slot
431 address if allocation size is smaller than mode size.
432
c4f548b8
DN
4332005-08-04 Diego Novillo <dnovillo@redhat.com>
434
435 PR 22037
436 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
437 (tree_merge_blocks): Propagate anything allowed by
438 may_propagate_copy.
439 Clarify documentation.
440 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
441 SSA form, schedule an update if necessary.
442
2b7c3273
GP
4432005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
444
445 * doc/install.texi (Binaries): Remove broken link to
446 Sinix/Reliant Unix binaries.
447
b755446c
RH
4482005-08-03 Richard Henderson <rth@redhat.com>
449
450 PR 23221
451 * function.c (stack_protect_epilogue): Export.
452 * tree.h (stack_protect_epilogue): Declare.
453 * calls.c (expand_call): Call it.
454
7904f95f
EC
4552005-08-03 Eric Christopher <echristo@apple.com>
456
457 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
458 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
459 spec.
460
d783b2a2
JH
4612005-08-04 Jan Hubicka <jh@suse.cz>
462
463 * profile.c (branch_prob): Split edges with goto locus on them
464 to get proper line counts.
465 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
466
53366450
PB
4672005-08-03 Paul Brook <paul@codesourcery.com>
468
469 * function.c (assign_parms): Round current_function_args_size
470 to PARM_BOUNDARY, not STACK_BOUNDARY.
471
e81d37df
GK
4722005-08-03 Geoffrey Keating <geoffk@apple.com>
473
474 * config/i386/i386.c (x86_elf_aligned_common)
475 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
476
279072c8
ZD
4772005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
478
479 PR tree-optimization/23157
480 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
481 before emitting them.
482
9d2b0e12
VR
4832005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
484
485 PR tree-optimization/19899
486 * Makefile.in (tree-scalar-evolution.o): Add real.h.
487 * tree-scalar-evolution.c: Include real.h.
488 (add_to_evolution): Build constant -1 of correct type.
489
178df94f
JH
4902005-08-03 Jan Hubicka <jh@suse.cz>
491
492 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
493 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
494 profile updating for complette unrolling.
495 * loop-unroll.c (peel_loop_completely): Use it.
496 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
497 (tree_unroll_loops_completely): Disable code growing unrolling of cold
498 loops.
499
4164b2fb
PB
5002005-08-03 Paul Brook <paul@codesourcery.com>
501
502 * combine.c (can_change_dest_mode): New function.
503 (try_combine, simplify_set): Use it.
504
4e2b3c87
EB
5052005-08-03 Eric Botcazou <ebotcazou@adacore.com>
506
507 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
508 TFmode to BLKmode.
509
1d7887ca
GP
5102005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
511
512 * doc/install.texi (Specific): Adjust link to openavr.org.
513 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
514 (Binaries): Adjust HP-UX Porting Center link.
515 (Binaries): Adjust Free Software Foundation ordering link.
1d7887ca 516
c7f59e9c
AP
5172005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
518
519 * convert.c (convert_to_integer): Use fold_build1 instead of
520 build1 when converting an integer to an integer.
521
65030b76
RH
5222005-08-02 Richard Henderson <rth@redhat.com>
523
524 * combine.c (combine_instructions): Don't use reg_equal/equiv
525 results if the mode doesn't match.
526
6d1ab63a
MM
5272005-08-02 Mark Mitchell <mark@codesourcery.com>
528
529 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
530 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
531
6d90db3a
RH
5322005-08-02 Richard Henderson <rth@redhat.com>
533
534 PR 23196
7904f95f 535 * explow.c (memory_address): Remove special-case for
6d90db3a
RH
536 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
537
78234a86
DN
5382005-08-02 Diego Novillo <dnovillo@redhat.com>
539
540 PR 23164
541 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
542 number of calls to cleanup_tree_cfg_1.
543
5a006700
MR
5442005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
545
546 * doc/invoke.texi: document file extensions .F90 and .F95
547
237504fc
RG
5482005-08-02 Richard Guenther <rguenther@suse.de>
549
550 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
551 positive if its first argument is positive.
552
e63c84d8
RG
5532005-08-02 Richard Guenther <rguenther@suse.de>
554
555 PR tree-optimization/23177
556 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
557 on TMR_TAG.
558
08303d5b
JM
5592005-08-02 James A. Morrison <phython@gcc.gnu.org>
560
561 PR tree-optimization/23129
562 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
563 varying for divisions with anti-ranges.
564
5e5a504e
JH
5652005-08-02 Jan Hubicka <jh@suse.cz>
566
567 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
568 * tree-ssa-threadupdate.c (thread_block): Add it here.
569
4dbdb061
JW
5702005-08-01 James E Wilson <wilson@specifix.com>
571
572 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
573 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
574 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
575 New.
576 * config/mips/predicates.md (const_call_insn_operand): Add check for
577 SYMBOL_REF_LONG_CALL_P.
578 * doc/extend.texi (long_call): Document the new attribute.
579
9e254451
ILT
5802005-08-01 Ian Lance Taylor <ian@airs.com>
581 Richard Henderson <rth@redhat.com>
582
583 * Makefile.in (RTL_BASE_H): Add real.h.
584 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
585 instead of memcpy.
586 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
587 directly.
588 * rtl.c (rtl_check_failed_code_mode): New.
589 * rtl.h (struct rtx_def): Add u.rv.
590 (XCMWINT, XCNMPRV): New.
591 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
592 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
593
5671655e
RH
5942005-08-01 Richard Henderson <rth@redhat.com>
595
75735872
RH
596 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
597 with auto-inc codes.
598
5671655e
RH
599 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
600
72ce3d4a
JH
6012005-08-01 Jan Hubicka <jh@suse.cz>
602
603 * i386-protos.h (asm_preferred_eh_data_format): Declare.
604 * i386.c: Include dwarf2.h
605 (asm_preferred_eh_data_format): New.
606 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
607
23d28bfe
ILT
6082005-08-01 Ian Lance Taylor <ian@airs.com>
609
610 * config/host-linux.c (linux_gt_pch_get_address): Add new name
611 randomize_va_space for virtual address randomization control.
612
d6e14e8f
SB
6132005-08-01 Steven Bosscher <stevenb@suse.de>
614
615 * common.opt (flag_ipa_cp): Put in right place to maintain
616 alphabetic sort.
617
5ded7254
JH
6182005-08-01 Jan Hubicka <jh@suse.cz>
619
620 * profile.c (compute_value_histograms): Fix thinko.
621 * value-prof.c: Include toplev.h
622 (check_counter): New function.
623 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
624 tree_mod_subtract_transform): Add sanity check.
625
a8f82ec4
RG
6262005-08-01 Richard Guenther <rguenther@suse.de>
627
628 PR tree-optimization/23133
629 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
630 current functions parameter decls to find defs to cse
631 reciprocals of.
632
ac264fef
RG
6332005-08-01 Richard Guenther <rguenther@suse.de>
634
635 PR tree-optimization/23109
636 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
637 If trapping math is in effect, use post-dominator information
638 to check if we'd in any case reach a trapping point before
639 doing the reciprocal insertion.
640 (execute_cse_reciprocals): Compute post-dominators, if necessary.
641 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
642 expressions are invariant only if trapping math is not in effect.
643
57fb5341
RL
6442005-08-01 Razya Ladelsky <razya@il.ibm.com>
645
5a006700
MR
646 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
647 cgraph_function_versioning): New declarations.
648 * cgraphunit.c: Add include to ipa-prop.h.
649 (update_call_expr, cgraph_copy_node_for_versioning,
650 cgraph_function_versioning): New functions.
651 * integrate.c (copy_decl_for_inlining): Remove.
652 * ipa-prop.h (ipa_replace_map): New struct.
653 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
654 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
655 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
656 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
657 ipcp_iterate_stage, ipcp_method_scale_print,
658 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
659 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
660 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
661 ipcp_update_bb_counts, ipcp_update_profiling,
662 ipcp_update_edges_counts): New functions.
663 (ipcp_method_cval_init): Remove restriction regarding local methods.
664 (ipcp_init_stage): Add ipcp_method_compute_scale.
665 (ipcp_insert_stage): Add versioning.
666 (ipcp_structures_print): Add ipcp_method_scale_print.
667 (ipcp_driver): Dump profiling info.
668 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
669 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
670 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
671 (struct inline_data): Add versioning_p, ipa_info, new fields.
672 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
673 declare_return_variable): Replace calls to copy_decl_for_inlining with
674 copy_decl_for_dup.
675 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
676 versioning support.
677 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
678 Add argument VERSIONING.
679 (copy_arguments_for_versioning, copy_static_chain,
680 function_versionable_p, tree_versionable_function_p,
681 tree_function_versioning, replace_ref_tree): New functions.
682 * tree-inline.h: Include varray.h.
683 (tree_versionable_function_p, tree_function_versioning,
684 tree copy_decl_for_dup): New declarations.
57fb5341
RL
685
6862005-08-01 Razya Ladelsky <razya@il.ibm.com>
687
5a006700
MR
688 * ipa-cp.c: New file. Contains IPCP specific functionality.
689 * ipa-prop.h: New file. Contains structures/definitions that can be
690 used by several interprocedural data flow optimizations (and also IPCP).
691 * ipa-prop.c: New file.
692 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
693 * common.opt: Add ipa-cp flag.
694 * timevar.def: Add IPCP optimization.
695 * tree-optimize.c (init_tree_optimization_passes): Schedule
696 pass_ipa_cp.
697 * tree-pass.h (pass_ipa_cp): Declare.
57fb5341 698
569b7f6a
KH
6992005-08-01 Kazu Hirata <kazu@codesourcery.com>
700
701 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
702 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
703 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
704 config/i386/i386.c, config/mips/mips.h,
705 config/rs6000/rs6000.h, config/sh/sh.c,
706 config/stormy16/stormy16.c: Fix comment typos.
707
5922c215
JM
7082005-08-01 Joseph S. Myers <joseph@codesourcery.com>
709
710 PR c/22311
711 * c-typeck.c (build_binary_op): Use common_type wrapper on
712 shortened types.
713 (common_type): Update comment.
714
a3f4b7d8
SB
7152005-07-31 Steven Bosscher <stevenb@suse.de>
716
717 PR target/23095
718 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
719 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
720 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
721
baf7a0d3
JH
7222005-07-31 Jan Hubicka <jh@suse.cz>
723
724 * pretty-print.h (pp_widest_integer): New macro.
725 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
726 counts.
727
7dcbf659
JH
7282005-07-31 Jan Hubicka <jh@suse.cz>
729
730 * output.h (enum section_category): Export from varasm.c
731 (categorize_decl_for_section): Likewise.
732 * varasm.c (enum section_category): Kill.
733 (categorize_decl_for_section): Make global.
734 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
735 Declare.
736 * i386.c (ix86_section_threshold): New static variable.
737 (ix86_in_large_data_p, ix86_encode_section_info,
738 x86_64_elf_unique_section,
739 x86_64_elf_select_section): New functions.
740 (TARGET_ENCODE_SECTION_INFO): Define
741 (override_options): Enable medium model for PIC.
742 (ix86_expand_prologue): Expand gen_set_got_rex64.
743 (legitimate_constant_p): Handle new UNSPECs.
744 (legitimate_pic_address_disp_p): Likewise.
745 (legitimize_pic_address): Lower MEDIUM model addressing.
746 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
747 (enum cmodel): Add MEDIUM_PIC.
748 (SYMBOL_REF_FAR_ADDR_P): New macro.
749 (SYMBOL_FLAG_FAR_ADDR): New flag.
750 * i386.md (movdi): Support medium model.
751 (set_got_rex64): New pattern.
752 * i386.opt (mlarge-data-threshold): New flag.
753 * predicates.md (zext_operand/sext_operand): Deal with medium model.
754 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
755 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
756 TARGET_ASM_UNIQUE_SECTION): New.
757
758 * invoke.texi (-mlarge_data_threshold): Document
759
0bde02b3
JH
7602005-07-31 Jan Hubicka <jh@suse.cz>
761
762 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
763 (coalesce_vars): Likewise.
764 * tree-ssa-live.c (coalesce_cost): New.
765 (build_tree_conflict_graph): Use coalesce_cost.
766 * tree-ssa-live.h (coalesce_cost): Declare.
767
a4ccc336
RE
7682005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
769
770 * arm.md (all peepholes for post-increment operations): Delete.
771 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
772 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
773 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
774 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
775 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
776
06581725
JM
7772005-07-30 James A. Morrison <phython@gcc.gnu.org>
778
779 * fold-const.c (tree_expr_nonnegative_p): Always return true for
780 non-integral types.
781
0cbc4d77 7822005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
d6e14e8f 783
0cbc4d77
WB
784 PR target/22582
785 * doc/invoke.texi: Document -rdynamic.
d6e14e8f 786
91d975b8
JM
7872005-07-30 Joseph S. Myers <joseph@codesourcery.com>
788
789 PR c/23143
790 * c-parser.c (c_parser_parms_list_declarator): Call
791 mark_forward_parm_decls.
792 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
793 decls with visibility structure.
794
f26b8ec9
PB
7952005-07-30 Paul Brook <paul@codesourcery.com>
796
797 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
798
a14b88bb
PB
7992005-07-30 Paul Brook <paul@codesourcery.com>
800
801 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
802 prototype.
803 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
804 value for mode.
805 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
806
7c47d6e9
JM
8072005-07-29 Joseph S. Myers <joseph@codesourcery.com>
808
809 PR c/529
810 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
811 nested function declarators.
812 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
813 (grokparms): Call warn_if_shadowing for parameters used within the
814 parameter list.
815 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
816 not used within the parameter list.
817 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
818
3bc751bd
JH
8192005-07-30 Jan Hubicka <jh@suse.cz>
820
821 * expr.c (expand_expr_real_1): Do not load mem targets into register.
822 * i386.c (ix86_fixup_binary_operands): Likewise.
823 (ix86_expand_unary_operator): Likewise.
824 (ix86_expand_fp_absneg_operator): Likewise.
825 * optabs.c (expand_vec_cond_expr): Validate dest.
826
bc1594c1
JM
8272005-07-29 Joseph S. Myers <joseph@codesourcery.com>
828
829 PR c/21720
830 * real.c (real_from_string): Also set last bit if there is a
831 nonzero hex digit beyond GCC's internal precision after ".".
832
3aca4bff
DE
8332005-07-29 David Edelsohn <edelsohn@gnu.org>
834
835 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
836 define_constants. Change duplicate values to unassigned numbers.
837 Change UNSPEC_SUBS to UNSPEC_VSUBS.
838 (*altivec_vspltsf): New.
839 (altivec_vperm_v4sf): Delete.
840 (altivec_vperm_<mode>): Use mode macro V.
841 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
842 (altivec_predicate_v4sf): Delete.
843 (altivec_predicate_<mode>): Use mode macro V.
844 (*altivec_lvesfx): New.
845 (*altivec_stvesfx): New.
846 (vec_realign_load_v4sf): Delete.
847 (vec_realign_load_<mode>): Use mode macro V.
848 * config/rs6000/rs6000.c (generate_set_vrsave): Use
849 UNSPECV_SET_VRSAVE.
850
b28250ab
MM
8512005-07-29 Mark Mitchell <mark@codesourcery.com>
852
853 PR bootstrap/23131
854 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7904f95f 855 string.
b28250ab
MM
856 * configure: Regenerated.
857
eae50c87
PB
8582005-07-29 Paul Brook <paul@codesourcery.com>
859
860 * doc/install.texi: Add link to GFortran binaries wiki page.
861
79dad081
DU
8622005-07-29 David Ung <davidu@mips.com>
863
864 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
865 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
866 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
867 * config/mips/mips.md (cpu): Add 5kf name.
868 (includes): Includes 5k.md.
869 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
870 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7904f95f 871 -march flag.
79dad081 872
89e80dd4
DN
8732005-07-29 Diego Novillo <dnovillo@redhat.com>
874
875 PR 22550
876 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
877 (cleanup_tree_cfg): ... here.
878 Call cleanup_tree_cfg_1 until there are no more cleanups to
879 do.
880
d2f3ffba
JM
8812005-07-29 James A. Morrison <phython@gcc.gnu.org>
882
883 * tree-vrp.c (compare_range_with_value): Return true or false
884 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
885 EQ_EXPR respectively.
886
536fa7b7
KH
8872005-07-29 Kazu Hirata <kazu@codesourcery.com>
888
889 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
890 Fix comment typos.
891
6a2cf9dc
DN
8922005-07-29 Diego Novillo <dnovillo@redhat.com>
893
894 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
895 (tree_ssa_dominator_optimize): Increment it.
896 (dump_dominator_optimization_stats): Print it.
897
abf86bf2
RE
8982005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
899 Steven Bosscher <stevenb@suse.de>
900
901 PR rtl-optimization/23117
902 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
903 when head == tail. Tidy comment.
904
37cf6116
RH
9052005-07-28 Richard Henderson <rth@redhat.com>
906
907 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
908 * cselib.c (rtx_equal_for_cselib_p): Likewise.
909 * jump.c (rtx_renumbered_equal_p): Likewise.
910 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
911 CONST_INT and CONST_DOUBLE.
912 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
913 * reload.c (operands_match_p): Special case CONST_INT and
914 CONST_DOUBLE; check mode earlier.
915
13b22d3a
JM
9162005-07-29 Joseph S. Myers <joseph@codesourcery.com>
917
918 PR c/22240
919 * c-typeck.c (convert_for_assignment): Do not check
920 DECL_IN_SYSTEM_HEADER on NULL fundecl.
921
ca8bdb78
JM
9222005-07-29 Joseph S. Myers <joseph@codesourcery.com>
923
924 PR c/22192
925 * c-typeck.c (composite_type): Prefer constant size arrays to
926 VLAs.
927
b608d27a
JM
9282005-07-29 Joseph S. Myers <joseph@codesourcery.com>
929
930 PR c/21720
931 * real.c (real_from_string): Set last bit if there is a nonzero
932 hex digit beyond GCC's internal precision.
933
a560c83a
RH
9342005-07-28 Richard Henderson <rth@redhat.com>
935
936 PR rtl-opt/22619
937 * cfgcleanup.c (try_forward_edges): Watch out for end of
938 insn chain.
939
66f33c03
JW
9402005-07-28 James E Wilson <wilson@specifixinc.com>
941
942 PR c/23106
943 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
944
c5a4444c
JH
9452005-07-28 Jan Hubicka <jh@suse.cz>
946
8a76829c
JH
947 * Makefile.in (rtl-profile.o): Kill all traces of it.
948 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
949 * coverage.h (rtl_coverage_counter_ref): Kill.
950 * opts.c (flag_speculative_prefetching_set): Kill.
951 (flag_loop_optimize_set): New.
952 (common_handle_option): Disable loop optimizer when profiling;
953 do not handle speculative prefetching.
954 * passes.c (init_optimization_passes): Replace pass_profiling combo
955 by branch_prob pass.
956 * profile.c (compute_value_histograms): Update for simplified value
957 profiles.
958 (rtl_register_profile_hooks): Kill.
959 (pass_profiling): Kill.
960 (rest_of_handle_branch_prob): Do not profile.
961 * toplev.c (process_options): Remove speculative prefetching.
962 * toplev.h (flag_tree_based_profiling): Kill.
963 * tree-profile.c (prepare_instrumented_value,
964 tree_gen_interval_profiler, tree_gen_pow2_profiler,
965 tree_gen_one_value_profiler, do_tree_profiling): Update for
966 simplified datastructures.
967 * value-prof.c: Add comment that speculative prefetching was dropped;
968 update rest of file for simplified datastructures.
969 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
970 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
971 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
972 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
973 rtl_mod_subtract, gen_speculative_prefetch,
974 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
975 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
976 (gate_handle_value_profile_transformations,
977 rest_of_handle_value_profile_transformations,
978 pass_value_profile_transformations): Kill.
979 * value-prof.h (histogram_value_t): Remove IL based unions.
980 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
981 rtl_profile_hooks): Remove hooks.
982
983 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
984
c5a4444c
JH
985 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
986 (cgraph_clone_node): Likewise.
987 * cgraph.h (cgraph_clone_edge): Update prototype.
988 (cgraph_clone_node): Likewise.
989 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
990 cgraph_clone_node.
991 (lookup_recursive_calls): Consider profile.
992 (cgraph_decide_recursive_inlining): Fix updating; use new
993 probability argument; use profile.
994 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
995 * tree-inline.c (copy_bb): Update clal of clone_edge.
996 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
997
998 * invoke.texi (min-inline-recursive-probability): Document.
999
ccf548a7
GP
10002005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1001
1002 * doc/install.texi (Configuration): Update Valgrind homepage.
1003
2c97f8e4
RH
10042005-07-28 Richard Henderson <rth@redhat.com>
1005
407ab83b 1006 PR middle-end/21362
2c97f8e4
RH
1007 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
1008 labels we want to delete.
1009 (cfg_layout_merge_blocks): Likewise.
1010
b188ebb1
RH
10112005-07-28 Richard Henderson <rth@redhat.com>
1012
1013 PR target/17692
d6e14e8f
SB
1014 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
1015 when expanding to nothing.
b188ebb1 1016
facc20ee
JC
10172005-07-28 Josh Conner <jconner@apple.com>
1018
1019 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
1020 (cgraph_decide_inlining_of_small_functions): Likewise.
1021
9de21a23
JC
10222005-07-28 Josh Conner <jconner@apple.com>
1023
1024 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
1025 direction of badness if negative.
1026 (cgraph_default_inline_p): Add reason to parameters, and assign it
1027 a value.
1028 (cgraph_decide_inlining_of_small_functions): New parameter in call
1029 to cgraph_default_inline_p.
1030 (cgraph_decide_inlining_incrementally): Likewise.
1031 * cgraphunit.c (decide_is_function_needed): Likewise.
1032 * cgraph.h (cgraph_default_inline_p): Likewise.
1033
206048bd
VR
10342005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1035
1036 * builtins.c: Fix comment typo(s).
1037 * genautomata.c: Likewise.
1038 * gimplify.c: Likewise.
1039 * tree-dfa.c: Likewise.
1040 * tree-flow-inline.h: Likewise.
1041 * tree-into-ssa.c: Likewise.
1042 * tree-ssa-alias.c: Likewise.
1043 * tree-ssa-ccp.c: Likewise.
1044 * tree-ssa-copy.c: Likewise.
1045 * tree-ssa-dce.c: Likewise.
1046 * tree-ssa-dom.c: Likewise.
1047 * tree-ssa-operands.c: Likewise.
1048 * tree-tailcall.c: Likewise.
1049 * tree-vectorizer.c: Likewise.
1050 * tree-vrp.c: Likewise.
1051 * tree.c: Likewise.
1052
d579f20b
JL
10532005-07-28 Jeff Law <law@redhat.com>
1054
d6e14e8f
SB
1055 * tree-vrp.c (test_for_singularity): Extracted from ...
1056 (simplify_cond_using_ranges): Attempt to simplify a relational
1057 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
d579f20b 1058
5bb1823d
DN
10592005-07-28 Dorit Nuzman <dorit@il.ibm.com>
1060
1061 PR tree-optimization/22506
1062 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
1063 phis whose argument is constant.
1064
b92ba6ff
R
10652005-07-28 J"orn Rennecke <joern.rennecke@st.com>
1066
1067 PR rtl-optimization/18992
1068 Back out this patch:
1069 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1070 PR optimization/12142
1071 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1072 uses of the register in the SET_SRC. Remove unnecessary argument.
1073
1074 Replace it with this:
1075 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
1076 if flag_non_call_exceptions is set and the insn may trap, pass
1077 pc_rtx as dest for recursion.
1078 In SET_SRC part of SET case, if dest is already set, pass it down
1079 unchanged.
1080
09bac500
JH
10812005-07-28 Jan Hubicka <jh@suse.cz>
1082
1083 * cfg.c (update_bb_profile_for_threading): Use RDIV.
1084 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
1085 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
1086 roundoff errors.
1087 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
1088 profile when available.
1089
10902005-07-28 Jan Beulich <jbeulich@novell.com>
a71aef0b
JB
1091
1092 * config/ia64/ia64.c (ia64_load_pair_ok): New.
1093 (ia64_print_operand): Describe and handle 'X'.
1094 (ia64_register_move_cost): Also handle FP_REGS.
1095 (ia64_preferred_reload_class): Likewise.
1096 (ia64_secondary_reload_class): Likewise.
1097 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
1098 it. Also check for ITANIUM_CLASS_FLDP.
1099 * config/ia64/ia64.h (FP_REGNO_P): New.
1100 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
1101 (reg_class): Add FP_REGS.
1102 (REG_CLASS_NAMES): Adjust for it.
1103 (REG_CLASS_CONTENTS): Likewise.
1104 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
1105 (REG_CLASS_FROM_LETTER): Handle 'x'.
1106 (CLASS_MAX_NREGS): Handle FP_REGS.
1107 (MEMORY_MOVE_COST): Likewise.
1108 * config/ia64/ia64.md (itanium_class): Add fldp.
1109 (type): Handle fldp.
1110 (movti_internal): More allowable operand combinations. Use ldfp8 when
1111 splitting unnecessary. Remove predicable attribute. Adjust
1112 itanium_class attribute.
1113 (smuldi3_highpart): Remove outdated comment.
1114 (mulditi3, umulditi3, rotlti3): New expanders.
1115 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
1116 (absti2): Disabled new insn for future reference.
1117 Respective new splitters.
1118 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
1119 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
1120 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
1121
77d1d8e0
JM
11222005-07-25 James A. Morrison <phython@gcc.gnu.org>
1123
1124 PR rtl-optimization/23047
1125 * simplify-rtx.c (simplify_const_relational_operation): Respect
1126 flag_wrapv for comparisons with ABS.
1127
ff08cbee
JM
11282005-07-27 James A. Morrison <phython@gcc.gnu.org>
1129
1130 PR tree-optimization/22493
1131 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
1132 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
1133
38c28a25
AH
11342005-07-27 Aldy Hernandez <aldyh@redhat.com>
1135
1136 * config/frv/frv.opt (moptimize-membar): New.
1137
1138 * doc/invoke.texi: Document -moptimize-membar and its inverse.
1139
1140 * config/frv/frv.h: Remove machine_function definition.
1141
d6e14e8f
SB
1142 * config/frv/frv.c (struct frv_io): New.
1143 (struct machine_function): Moved from frv.h. Add has_membar_p.
1144 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
1145 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
1146 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
1147 (frv_optimize_membar_global, frv_optimize_membar): New functions.
1148 (frv_reorg): Call frv_optimize_membar when appropriate.
1149 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
1150 (frv_expand_builtin): Adjust calls accordingly.
1151 (frv_io_address_cookie): New function.
1152 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
1153 load or store rather than a special insn. Add ccnstant address and
1154 io-type operands to the membar.
38c28a25
AH
1155 (frv_ifcvt_modify_tests): Unsign regno.
1156 (frv_ifcvt_modify_tests): Same.
1157
1158 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
1159 UNSPEC_OPTIONAL_MEMBAR constant.
1160 (builtin_read_<mode>): Delete.
1161 (builtin_write_<mode>): Delete.
1162 ("optional_membar_<mode>"): Add operand.
1163
1164 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
1165 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
1166 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
1167 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
1168 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
1169 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
1170 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
1171 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
1172 * testsuite/gcc.target/frv/all-read-write-1.c: New.
1173
47c504ea
KK
11742005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
1175
1176 * df.c (df_uses_record): Handle SCRATCH.
1177
ef11c839
SB
11782005-07-28 Steven Bosscher <stevenb@suse.de>
1179
1180 PR debug/20161
1181 * passes.c (rest_of_decl_compilation): If decl is a type and
1182 we have encountered errors, don't emit debug information.
1183
1eb68dca 11842005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
ef11c839 1185
1eb68dca 1186 * params.def: Fixed comment.
7904f95f 1187
10252a62
BH
11882005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
1189
1190 PR target/19885
1191 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
1192 (TARGET_ASM_UNALIGNED_HI_OP): Add.
1193 (TARGET_ASM_UNALIGNED_SI_OP): Add.
1194
e4598783
SB
11952005-07-27 Steven Bosscher <stevenb@suse.de>
1196
1197 PR c++/22003
1198 * varasm.c (assemble_start_function): Don't do anything that may
1199 require a CFG if the current function is a thunk.
1200
a9fdd472
GK
12012005-07-25 Geoffrey Keating <geoffk@apple.com>
1202
1203 * doc/install.texi (Prerequisites): Mention that perl is needed
1204 to do export control in libstdc++ targetting Darwin.
1205
2bd1e239
SB
12062005-07-27 Steven Bosscher <stevenb@suse.de>
1207
1208 PR rtl-optimization/17808
1209 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
1210 (sched_insns_conditions_mutex_p): Split out from...
1211 (add_dependence): ...here. But don't call it from here.
1212 (add_dependence_list): Check sched_insns_conditions_mutex_p
1213 before calling add_dependence.
1214 (add_dependence_list_and_free): Likewise.
1215 (fixup_sched_groups): Likewise.
1216 (sched_analyze_1): Likewise.
1217 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
1218 (sched_analyze): Likewise.
1219 (sched_analyze_insn): Likewise.
1220 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1221 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
1222 dependencies on all COND_EXEC insns to jumps ending basic blocks
1223 when doing intrablock scheduling.
1224 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
1225
880031e1
JL
12262005-07-27 Jeff Law <law@redhat.com>
1227
1228 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
1229 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
1230 equivalency sets, correctly handle the case were vr0 has an
1231 equivalency set, but vr1 does not.
1232
b940ce0e
DN
12332005-07-27 Dorit Nuzman <dorit@il.ibm.com>
1234
1235 PR tree-optimization/23073
7904f95f 1236 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
b940ce0e
DN
1237 vect_print_dump_info before fprintf.
1238
26c40640
ZD
12392005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1240
1241 PR tree-optimize/22348
1242 * tree-ssa-loop-niter.c (number_of_iterations_cond):
1243 Fold the partial computation.
1244
3ac01fde
ZD
12452005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1246
1247 PR tree-optimization/22325
1248 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
1249 Declare.
1250 * tree-scalar-evolution.c (scev_const_prop): Add generic final
1251 value replacement.
1252 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
1253 (force_var_cost): ... this function.
1254 (compute_phi_arg_on_exit): Export.
1255
77fcaf4b
ZD
12562005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1257
1258 PR tree-optimization/20773
1259 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
1260 edge.
1261
c11b0231
RG
12622005-07-27 Richard Guenther <rguenther@suse.de>
1263
1264 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
1265 Avoid pushing again if current struct contains only
1266 fields we decomposed.
1267
57a73709
JH
12682005-07-27 Jan Hubicka <jh@suse.cz>
1269
093c2329
JH
1270 PR tree-optimization/22574
1271 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
1272 not available.
1273
23504559
JH
1274 * tree-tailcall.c (decrease_profile): New function.
1275 (eliminate_tail_call): Use it.
1276
57a73709
JH
1277 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
1278 visibility flags correctly in whole program mode.
1279
b5395c33
SE
12802005-07-26 Steve Ellcey <sje@cup.hp.com>
1281
1282 PR rtl-optimization/22472
1283 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
1284
86979811
SB
12852005-07-26 Steven Bosscher <stevenb@suse.de>
1286
1287 PR tree-optimization/22504
1288 * tree-complex.c (expand_complex_addition): Use 'code' instead
1289 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
1290
faf9ab98
AH
12912005-07-26 Aldy Hernandez <aldyh@redhat.com>
1292
1293 * config.gcc (cpu_type): Add frv case.
1294 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
1295 (supported_defaults): Add fr550 case.
1296
31521cd4
DN
12972005-07-26 Diego Novillo <dnovillo@redhat.com>
1298
1299 PR 22591
1300 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
1301 whether a pointer of type T * may point to objects of type T *.
1302
45499411
DD
13032005-07-26 DJ Delorie <dj@redhat.com>
1304
1305 * configure: Regenerate.
1306
576a4795
DJ
13072005-07-26 Dale Johannesen <dalej@apple.com>
1308
1309 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
1310
526635cb
MM
13112005-07-26 Mark Mitchell <mark@codesourcery.com>
1312
1313 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
1314 Clarify use of "build" in name.
1315
c14ff86e
AH
13162005-07-26 Aldy Hernandez <aldyh@redhat.com>
1317
1318 * doc/extend.texi (Raw read/write Functions): New section.
1319 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
1320 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
1321 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
1322 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
1323 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
1324 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
1325 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
1326 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
1327 * config/frv/frv.c: Add bdesc_loads global.
1328 Add bdesc_stores global.
1329 (frv_init_builtins): Add support for __builtin_{read/write}*.
1330 (frv_volatile_memref): New.
1331 (frv_expand_load_builtin): New.
1332 (frv_expand_store_builtin): New.
1333 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
1334 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
1335 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
1336 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
1337 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
1338 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
1339 (builtin_read_<mode>): New.
1340 (builtin_write_<mode>): New.
1341 (builtin_write64): New.
1342 (optional_membar_<mode>): New.
1343
db487452
R
13442005-07-26 J"orn Rennecke <joern.rennecke@st.com>
1345
1346 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
1347 (rather than units) against HOST_BITS_PER_WIDE_INT.
1348
783455db
KH
13492005-07-26 Kazu Hirata <kazu@codesourcery.com>
1350
1351 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
1352 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
1353 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
1354 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
1355 FSF address.
1356
a4174ebf
KH
1357 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
1358 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
1359 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
1360 comment typos.
1361 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
1362
46c0a59d
RG
13632005-07-26 Richard Guenther <rguenther@suse.de>
1364
1365 PR tree-optimization/22486
1366 * fold-const.c (fold_unary): Fold away useless component
1367 references of the form (T *)&T.x, if the address
1368 doesn't change.
1369
3e2844cb
JW
13702005-07-25 James E Wilson <wilson@specifixinc.com>
1371
1372 * dwarf2out.c (add_call_src_coords_attributes): New.
1373 (gen_inlined_subroutine_die): Call it.
1374 (maybe_emit_file, init_file_table): Add comments.
1375 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
1376 maybe_emit_file.
1377 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
1378 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
1379 * tree.h (BLOCK_SOURCE_LOCATION): New.
1380 (struct tree_block): New field locus.
1381
9275de65
AS
13822005-07-26 Andreas Schwab <schwab@suse.de>
1383
1384 PR rtl-optimization/23043
1385 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
1386 when allocating a struct unoccr.
1387
5306ec31
RH
13882005-07-25 Richard Henderson <rth@redhat.com>
1389
1390 PR 22626
1391 * tree-complex.c (gate_no_optimization): True if errors.
1392 * Makefile.in (tree-complex.o): Update dependencies.
1393
bfa653b3
AH
13942005-07-25 Aldy Hernandez <aldyh@redhat.com>
1395
1396 * config/frv/predicates.md (integer_register_operand): Use
1397 GPR_AP_OR_PSEUDO_P.
1398
43e364dd
AP
13992005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1400
1401 PR tree-opt/22484
1402 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
1403 after fold.
1404 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1405
c72f711f
AP
14062005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1407
1408 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1409 types when flag_unsafe_math_optimizations is true.
1410
160633c6
MM
14112005-07-25 Mark Mitchell <mark@codesourcery.com>
1412
1413 * gcc.c (option_map): Add --sysroot.
1414 (process_command): Handle --sysroot.
1415 (display_help): Document it.
1416 * doc/cppopts.tex (-isysroot): Document.
1417 * doc/invoke.texi (--sysroot): Document.
1418 * doc/install.texi (--with-build-sysroot): Document.
1419
1420 * Makefile.in (inhibit_libc): New variable.
1421 (INHIBIT_LIBC_CFLAGS): Likewise.
1422 (LIBGCC2_CFLAGS): Include
1423 $(INHIBIT_LIBC_CFLAGS).
1424 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1425 ($(T)crtbegin.o): Do not use @inhibit_libc@.
1426 ($(T)crtend.o): Likewise.
1427 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1428 ($(T)crtendS.o): Likewise.
1429 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1430 ($(T)crtendT.o): Likewise.
1431 (stmp-fixinc): Do not complain about missing headers if
1432 inhibit_libc.
1433 * configure.ac (inhibit_libc): Set it to true/false.
1434 (--with-build-sysroot): New option. Use it to set
7904f95f 1435 SYSTEM_HEADER_DIR.
160633c6
MM
1436 * configure: Regenerated.
1437
1490f93a
MH
14382005-07-25 Manfred Hollstein <mh@suse.com>
1439
1440 * calls.c (store_one_arg): Fix unsigned comparison warning.
1441
76e20664
SB
14422005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1443
1444 PR other/22337
1445 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1446 (ggc_print_statistics): Initialize variable before use.
1447
5c97e2de
RG
14482005-07-25 Richard Guenther <rguenther@suse.de>
1449
1450 * tree-dfa.c (mark_new_vars_to_rename): Protect against
1451 calling with a PHI_NODE argument.
1452
1453 * tree-flow-inline.h (overlap_subvar): Protect against
1454 possible overflow.
1455
7fefc172
PB
14562005-07-25 Paolo Bonzini <bonzini@gnu.org>
1457
1458 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1459 * configure: Regenerate.
1460
86a07404
IR
14612005-07-25 Ira Rosen <irar@il.ibm.com>
1462
1463 * expr.c (highest_pow2_factor): Make extern.
1464 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1465 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1466 record_array_differ_p, array_ptr_differ_p): Likewise.
1467 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1468 additional cases. Call the above functions.
1469 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1470 base_object_differ_p when there are two base objects. Otherwise, compare
1471 base address and offset. Call may_alias_p.
1472 (dump_data_reference): Use a correct field name.
1473 (analyze_array): Make static. Initialize new data-ref fields.
1474 (analyze_indirect_ref): New function.
7904f95f
EC
1475 (init_data_ref): Initialize new data-ref fields.
1476 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
1477 (analyze_offset_expr, get_ptr_offset, address_analysis,
1478 object_analysis): Likewise.
86a07404 1479 (analyze_offset): New function.
86979811 1480 (create_data_ref): Likewise.
86a07404
IR
1481 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1482 dimensions for ARRAY_REFs only.
1483 (build_classic_dist_vector): Make static.
1484 (access_functions_are_affine_or_constant_p): Call macro to get the
1485 address of access functions.
1486 (compute_all_dependences): Add new parameter
7904f95f 1487 compute_self_and_read_read_dependences. Compute self and read-read
86a07404
IR
1488 dependences if it is true.
1489 (find_data_references_in_loop): Call create_data_ref. Initialize new
1490 data-ref fields.
1491 (compute_data_dependences_for_loop): Add new parameter
1492 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
1493 compute nb_loops. Call compute_all_dependences,
1494 build_classic_dist_vector and build_classic_dir_vector with correct
1495 parameters.
1496 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1497 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
1498 (free_data_refs): Call macro to free access functions.
1499 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1500 fields from stmt_vinfo.
1501 (struct base_object_info): New structure.
7904f95f 1502 (struct data_reference): Move fields to base_object_info. Add fields
86a07404 1503 first_location and object_info for above structures. Move fields from
7fefc172
PB
1504 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1505 aligned_to. Add macros to access the new fields.
86a07404
IR
1506 Update functions declarations.
1507 * tree-flow.h (is_aliased_with): Declare.
1508 * tree-loop-linear.c (linear_transform_loops): Call
1509 compute_data_dependences_for_loop with correct parameters.
1510 * tree-ssa-alias.c (is_aliased_with): New function.
86979811 1511 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
86a07404
IR
1512 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1513 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1514 vect_base_addr_differ_p, compute_subscript_distance and
1515 build_classic_dist_vector. Add printings. Check absolute value of
1516 distance.
7fefc172
PB
1517 (vect_analyze_data_ref_dependences): Go through ddrs instead of
1518 data-refs.
86a07404
IR
1519 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1520 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1521 to bytes. Add printing.
7fefc172
PB
1522 (vect_compute_data_refs_alignment): Go through loads and stores in one
1523 loop.
86a07404
IR
1524 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1525 vect_analyze_data_ref_access): Likewise.
1526 (vect_analyze_pointer_ref_access): Remove.
1527 (vect_address_analysis, vect_object_analysis): Likewise.
1528 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1529 and analyze data-refs in the loop.
7fefc172
PB
1530 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1531 fields of data-ref instead of stmt. Add init to the offset from the
1532 base.
86a07404
IR
1533 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1534 (vect_update_init_of_dr): Likewise.
1535 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
1536 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1537 removed fields.
86a07404
IR
1538 (new_loop_vec_info): Initialize new fields.
1539 (destroy_loop_vec_info): Free new fields.
1540 (vect_strip_conversion): Remove.
1541 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1542 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7904f95f 1543 datarefs. Add new field ddrs.
86a07404
IR
1544 Add macros for the new fields access.
1545 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1546 base_aligned_p, misalignment, memtag, ptr_info and subvars.
1547 Remove their macros.
1548 * tree.h (highest_pow2_factor): Declare.
1549
0dc42b03
JJ
15502005-07-25 Jakub Jelinek <jakub@redhat.com>
1551
1552 * calls.c (store_one_arg): Check for sibling call MEM arguments
1553 from already clobbered incoming argument area.
1554
104f8784
KG
15552005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1556
1557 * c-common.c (check_missing_format_attribute): New.
1558 * c-common.h (check_missing_format_attribute): Likewise.
1559 * c-typeck.c (convert_for_assignment): Use it.
1560
1b8452d0
AS
15612005-07-24 Andreas Schwab <schwab@suse.de>
1562
1563 * config/m68k/m68k.md ("extendqidi2"): When source is an address
1564 register use a word move. Correct operand of ext.w in 68000 code.
1565
2b402955
MM
15662005-07-23 Mark Mitchell <mark@codesourcery.com>
1567
1568 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1569 variables as declarations, rather than definitions.
1570
c8af1197
IR
15712005-07-24 Ira Rosen <irar@il.ibm.com>
1572
86979811
SB
1573 PR tree-optimization/22526
1574 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1575 of the zero node.
c8af1197 1576
1b135aa5
FXC
15772005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1578
1579 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1580 that C99 reserve for future use. Use it to define clog10,
1581 clog10f and clog10l.
1582
ac0f3f39
KG
15832005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1584
1585 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1586 * configure.ac: Check for -Wmissing-format-attribute.
7904f95f 1587
ac0f3f39
KG
1588 * configure: Regenerate.
1589
db753fa1
RH
15902005-07-23 Richard Henderson <rth@redhat.com>
1591
1592 PR tree-optimization/22623
1593 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1594
28f155be
GB
15952005-07-23 Giovanni Bajo <giovannibajo@libero.it>
1596
1597 PR target/22577
1598 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1599
db857e7d
KG
16002005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1601
1602 * Makefile.in (C_TREE_H): Update dependencies.
1603 * c-tree.h: Include toplev.h.
1604 * diagnostic.h (diagnostic_set_info): Add format attribute.
1605 * rtl-error.c (diagnostic_for_asm): Likewise.
1606
118ea793
CF
16072005-07-23 Chao-ying Fu <fu@mips.com>
1608
1609 * config/mips/mips-dsp.md: New file.
1610 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1611 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1612 functions.
1613 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1614 MIPS_BUILTIN_BPOSGE32.
1615 (mips_expand_builtin_direct): Add one parameter to indicate that
1616 builtin functions need to return a value.
1617 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1618 functions.
1619 (mips_regno_to_class): Add classes for 12 new DSP registers.
1620 (mips_subword): Change to check four HI registers.
1621 (mips_output_move): Output move to and from 6 new DSP accumulators.
1622 (override_options): Make sure -mdsp and -mips16 are not used together.
1623 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
1624 for machine modes.
1625 (mips_conditional_register_usage): Disable 6 new DSP accumulators
1626 when !TARGET_DSP.
1627 (print_operand): Add 'q' for printing DSP accumulators.
1628 (mips_cannot_change_mode_class): Check ACC_REGS.
1629 (mips_secondary_reload_class): Check ACC_REGS.
1630 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1631 (mips_register_move_cost): Check ACC_REGS.
1632 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1633 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1634 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1635 (dsp_bdesc): New array.
1636 (bdesc_arrays): Add DSP builtin function table.
1637 (mips_prepare_builtin_arg): Check predicate again after
1638 copy_to_mode_reg.
1639 (mips_expand_builtin): Add one more parameter to
1640 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1641 MIPS_BUILTIN_BPOSGE32.
1642 (mips_init_builtins): Initialize new function types.
1643 (mips_expand_builtin_direct): Check if builtin functions need to
1644 return a value and pass operands properly.
1645 (mips_expand_builtin_bposge): New function.
1646 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1647 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1648 (FIRST_PSEUDO_REGISTER): Increase to 188.
1649 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1650 Update for 12 new DSP registers.
1651 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1652 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1653 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1654 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1655 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1656 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1657 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1658 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1659 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1660 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1661 (REGISTER_NAMES): Add names for 12 new DSP registers.
1662 * config/mips/mips.md: Include mips-dsp.md.
1663 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1664 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1665 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1666 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1667 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1668 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1669 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1670 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1671 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1672 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1673 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1674 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1675 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1676 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1677 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1678 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1679 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1680 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1681 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1682 (UNSPEC_RDDSP): New constants.
1683 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1684 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
1685 A<-d alternative.
1686 * config/mips/mips.opt (-mdsp): New option.
1687 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1688 (reg_imm10_operand): New predicates.
1689 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1690 * doc/invoke.texi (-mdsp): Document new option.
1691
d2fcbf6f
DD
16922005-07-22 DJ Delorie <dj@redhat.com>
1693
1694 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1695 to warning calls.
1696 * tree-inline.c (inlinable_function_p): Likewise.
1697
9881e3e5
MM
16982005-07-22 Mark Mitchell <mark@codesourcery.com>
1699
1700 PR debug/21828
1701 * toplev.c (check_global_declarations): Do not mark undefined
1702 variables as DECL_IGNORED_P.
1703 * varasm.c (first_global_object_name): GTY it.
1704 (weak_global_object_name): Likewise.
1705 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1706 a string to go into {weak,first}_global_object_name.
1707
1a8d0d41
DD
17082005-07-22 DJ Delorie <dj@redhat.com>
1709
1710 * c-format.c (check_function_format): Change warning control
1711 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1712
17c7e33e
DN
17132005-07-22 Diego Novillo <dnovillo@redhat.com>
1714
1715 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1716 &PTR->FLD a dereference of PTR.
1717 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1718 a potential dereference of PTR.
1719
45002e59
R
17202005-07-22 J"orn Rennecke <joern.rennecke@st.com>
1721
191e1ff2
R
1722 PR rtl-optimization/20370
1723 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1724 call allocate_reg_info if necessary.
1725
475a3eef
R
1726 PR rtl-optimization/21848
1727 * calls.c (emit_library_call_value_1): For const functions, add
1728 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1729
29c1846b
R
1730 PR rtl-optimization/22445
1731 * cselib.c (target.h): Include.
1732 (rtx_equal_for_cselib_p): Allow commutative matches.
1733 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1734 Remove MODE parameter. Changed all callers.
1735
45002e59
R
1736 PR rtl-optimization/22258
1737 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1738 New functions.
1739 (try_combine): Use likely_spilled_retval_p.
1740
db869733
PW
17412005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
1742
1743 * config.gcc: Add crx-elf support.
1744
1745 * doc/contrib.texi: Mention crx.
1746 * doc/extend.texi: Document crx extensions.
1747 * doc/install.texi: Document crx install.
1748 * doc/invoke.texi: Document crx options.
1749 * doc/md.texi: Document crx constraints.
1750
1751 * config/crx/crx-protos.h: New file.
1752 * config/crx/crx.c: New file.
1753 * config/crx/crx.h: New file.
1754 * config/crx/crx.md: New file.
1755 * config/crx/crx.opt: New file.
1756 * config/crx/t-crx: New file.
7904f95f 1757
32cafd73
MH
17582005-07-22 Manfred Hollstein <mh@suse.com>
1759
1760 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1761 warnings.
1762 (int_add_graph_edge): Likewise.
1763 (collapse_nodes): Likewise.
1764 (process_unification_queue): Likewise.
1765
ee184c4d 17662005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86979811 1767 Laurent GUERBY <laurent@guerby.net>
ee184c4d 1768
86979811 1769 PR tree-optimization/22336
7904f95f 1770 * function.c (record_block_change): Check for
86979811 1771 cfun->ib_boundaries_block.
7904f95f 1772
b49ceb45
JM
17732005-07-21 James A. Morrison <phython@gcc.gnu.org>
1774
1775 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
1776 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
1777
30c54de9
DD
17782005-07-21 DJ Delorie <dj@redhat.com>
1779
1780 * toplev.c (warn_deprecated_use): Add warning control to warning
1781 call.
c303630a
DD
1782 * c-typeck.c (parser_build_binary_op): Likewise.
1783 (c_finish_if_stmt): Likewise.
30480ec4
DD
1784 * c-common.c (check_function_sentinel): Likewise.
1785 (check_nonnull_arg): Likewise.
30c54de9 1786
95a8c155
RH
17872005-07-21 Richard Henderson <rth@redhat.com>
1788
1789 PR tree-opt/22504
1790 * tree-complex.c (complex_ssa_name_components): New.
1791 (cvc_lookup): Allow entry not found.
1792 (create_components): Remove.
1793 (create_one_component_var, get_component_var): New.
1794 (get_component_ssa_name, set_component_ssa_name): New.
1795 (extract_component): Use get_component_ssa_name.
1796 (update_complex_components): Use set_component_ssa_name.
1797 (update_complex_components_on_edge): Likewise.
1798 (update_phi_components): Create new PHI nodes directly, instead
1799 of adding insns to edges.
1800 (tree_lower_complex): Allocate and free complex_variable_components
1801 and complex_ssa_name_components here.
1802
c05a0766 18032005-07-20 Daniel Berlin <dberlin@dberlin.org>
7904f95f 1804
c05a0766
DB
1805 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
1806 revert to returning false.
1807
de343c8d
UB
18082005-07-21 Uros Bizjak <uros@kss-loka.si>
1809
86979811
SB
1810 PR target/21149
1811 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
de343c8d 1812
5acc26ef
UB
18132005-07-21 Uros Bizjak <uros@kss-loka.si>
1814
1815 PR target/22576
1816 * config/i386/i386.md (cmpxf): Change operand constraints
1817 to "nonmemory_operand".
1818
61cb44fe
AP
18192005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1820
1821 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
1822
e2fe73f6
AP
18232005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1824
1825 PR middle-end/21180
1826 * fold-const.c (fold_build1): Add checksum for the operands.
7904f95f 1827 (fold_build2): Likewise.
e2fe73f6
AP
1828 (fold_build3): Likewise.
1829
9d24eb54
AP
18302005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1831
1832 PR middle-end/19055
1833 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
1834
b2e0afa0
PB
18352005-07-21 Paolo Bonzini <bonzini@gnu.org>
1836
1837 * common.opt (-fforward-propagate): Committed by mistake,
1838 removed.
1839
2e48874f
VR
18402005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1841
1842 * reg-stack.c: Fix comment typo(s).
1843 * tree-ssa-operands.c: Likewise.
1844 * tree-vectorizer: Likewise.
1845
889d8465
NC
18462005-07-21 Nick Clifton <nickc@redhat.com>
1847
1848 * config/sh/symbian.c: Replace C++ style line comments with C
1849 style line comments.
86979811 1850 (symbian_add_attribute): Do not use a ? operator on the LHS of
889d8465 1851 an assignment.
86979811 1852 (sh_symbian_handle_dll_attribute): Change the type of the
889d8465
NC
1853 method vector to "VEC(tree,gc)*" and use vector accessor
1854 macros to walk over the elements.
86979811
SB
1855 (symbian_export_vtable_and_rtti_p): Likewise.
1856 (symbian_class_needs_attribute_p): Likewise.
889d8465 1857
2fab365e
PB
18582005-07-21 Paolo Bonzini <bonzini@gnu.org>
1859
1860 PR target/22085
1861 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
1862 initialize targetm.resolve_overloaded_builtin here.
1863 (altivec_expand_overloaded_builtin): Make it non-static.
1864 * config/rs6000/rs6000-protos.h
1865 (altivec_expand_overloaded_builtin): New prototype.
1866 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
1867 targetm.resolve_overloaded_builtin here.
1868 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
1869
f9cc1a70 18702005-07-21 Paolo Bonzini <bonzini@gnu.org>
86979811 1871 Zdenek Dvorak <dvorakz@suse.cz>
f9cc1a70
PB
1872
1873 PR tree-optimization/19210
1874 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
1875 New.
1876 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
1877 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
1878 rely on unproven assumptions.
1879 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
1880 * tree-flow.h (number_of_iterations_exit): Add final parameter.
1881 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
1882 to number_of_iterations_exit.
1883 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
1884 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
1885 * tree-ssa-loop-niter.c (find_loop_niter,
1886 estimate_numbers_of_iterations_loop): Likewise.
1887 (number_of_iterations_exit): Honor the new options.
1888 * doc/invoke.texi (Wunsafe-loop-optimizations,
1889 funsafe-loop-optimizations): Document them.
1890
cb83c2ec
RS
18912005-07-21 Richard Sandiford <richard@codesourcery.com>
1892
1893 PR rtl-optimization/22167
1894 * gcse.c (hoist_code): Fix hoist_exprs[] check.
1895
5e5cbbfb
AN
18962005-07-20 Adam Nemet <anemet@lnxw.com>
1897
1898 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
1899 __do_global_dtors_aux longcall.
1900
c2acaf06
KH
19012005-07-20 Kazu Hirata <kazu@cs.umass.edu>
1902
1903 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
1904 (old_special_pred_table): Don't reference
1905 SPECIAL_MODE_PREDICATES.
1906 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
1907 * config/arc/arc.h: Don't mention PREDICATE_CODES.
1908 * config/sh/predicates.h: Don't mention
1909 SPECIAL_MODE_PREDICATES.
1910 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1911 Remove.
1912
38b2d076
DD
19132005-07-20 DJ Delorie <dj@redhat.com>
1914
1915 * config.gcc: Add m32c-elf support.
1916
1917 * doc/contrib.texi: Mention m32c.
1918 * doc/extend.texi: Document m32c extensions.
1919 * doc/install.texi: Mention m32c.
1920 * doc/invoke.texi: Document m32c options.
1921 * doc/md.texi: Document m32c constraints.
1922
1923 * config/m32c/addsub.md: New file.
1924 * config/m32c/bitops.md: New file.
1925 * config/m32c/cond.md: New file.
1926 * config/m32c/jump.md: New file.
1927 * config/m32c/m32c-lib1.S: New file.
1928 * config/m32c/m32c-lib2.c: New file.
1929 * config/m32c/m32c-modes.def: New file.
1930 * config/m32c/m32c-pragma.c: New file.
1931 * config/m32c/m32c-protos.h: New file.
1932 * config/m32c/m32c.abi: New file.
1933 * config/m32c/m32c.c: New file.
1934 * config/m32c/m32c.h: New file.
1935 * config/m32c/m32c.md: New file.
1936 * config/m32c/m32c.opt: New file.
1937 * config/m32c/minmax.md: New file.
1938 * config/m32c/mov.md: New file.
1939 * config/m32c/muldiv.md: New file.
1940 * config/m32c/predicates.md: New file.
1941 * config/m32c/prologue.md: New file.
1942 * config/m32c/shift.md: New file.
1943 * config/m32c/t-m32c: New file.
1944
50b69666
KK
19452005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1946
1947 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1948 (stack_protect_set, stack_protect_test): New expanders.
86979811 1949 (stack_protect_set_si, stack_protect_set_si_media,
50b69666 1950 stack_protect_set_di_media, stack_protect_test_si,
86979811 1951 stack_protect_test_si_media, stack_protect_test_di_media):
50b69666
KK
1952 New insns.
1953
71b50543
AP
19542005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
1955
1956 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1957
4db8040c
JM
19582005-07-20 James A. Morrison <phython@gcc.gnu.org>
1959
1960 * tree.h (tree_expr_nonzero_p): Export.
1961 * fold-const.c (tree_expr_nonzero_p): Likewise.
1962 Return true for CALL_EXPRs that are alloca calls.
1963 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1964 against zero.
1965 * tree-flow.h (expr_computes_nonzero): Remove.
1966 * tree-vrp.c (expr_computes_nonzero): Remove.
86979811 1967 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4db8040c
JM
1968 (extract_range_from_unary_expr): Likewise.
1969 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1970 tree_expr_nonzero_p.
1971
6d459e2b
BS
19722005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
1973
09350e36
BS
1974 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1975 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
1976 extra arg "picreg" and use it instead of pic_offset_table_rtx.
1977 All callers changed.
1978 (frame_related_constant_load): New arg "related" which controls
1979 setting of RTX_FRAME_RELATED_P. All callers changed.
1980 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1981 (bfin_expand_prologue): Add stack limit checking.
1982 * config/bfin/bfin.md (trapifcc): New pattern.
1983
05905337
BS
1984 * config/bfin/bfin.c: Include "langhooks.h".
1985 (def_builtin): Go through lang_hooks to call builtin_function.
1986
6d459e2b
BS
1987 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1988 * config/bfin/predicates.md (symbol_ref_operand): New.
1989 (call_insn_operand): Delete. All callers changed to use
1990 register_no_elim_operand.
1991 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1992 call_cookie field.
1993 (function_arg): Use it to generate the call's operand 2.
1994 (bfin_longcall_p): New function.
1995 (bfin_expand_call): Extra arg "cookie". All callers and declaration
1996 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
1997 determine if the address needs to be in a REG.
1998 (bfin_handle_longcall_attribute): New function.
1999 (bfin_attribute_table): Add "longcall" and "shortcall".
2000 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
2001 (CUMULATIVE_ARGS): New member call_cookie.
2002 (PREDICATE_CODES): Add symbol_ref_operand.
2003 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
2004 extra USE to the pattern.
2005 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
2006 New patterns, split off call_insn, sibcall_insn, call_value_insn and
2007 sibcall_value_insn; now the new patterns handle direct calls and the
2008 old ones indirect calls.
2009 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
2010
67135ef4
ZD
20112005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
2012
2013 * doc/trouble.texi: Update section on handling of empty loops.
2014
fdda361d
KH
20152005-07-20 Kazu Hirata <kazu@codesourcery.com>
2016
2017 * config.gcc: Remove support for sparc-*-openbsd*,
2018 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
2019 ns32k-*-netbsd*.
2020 * config.host: Remove support for i860-*-sysv4* as a host.
2021 * config/i860/*, config/ip2k/*, config/ns32k/*,
2022 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
2023 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
2024 mention obsolete ports.
2025
96a2347e
KK
20262005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2027
2028 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
2029 soft frame pointer.
2030 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
2031 of frame_pointer_rtx.
2032 (sh_expand_epilogue): Likewise.
2033 (sh_set_return_address): Likewise.
2034 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
2035 instead of FRAME_POINTER_REGNUM if needed. Add elimination
2036 offsets from FRAME_POINTER_REGNUM.
2037 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
2038 (sh_register_names): Add initializer for sfp.
2039 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
2040 (VALID_REGISTER_P): Likewise.
2041 (FIRST_PSEUDO_REGISTER): Update.
2042 (DWARF_FRAME_REGISTERS): Define.
2043 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
2044 (HARD_FRAME_POINTER_REGNUM): Define.
2045 (FRAME_POINTER_REGNUM): Redefine.
2046 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
2047 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
2048 from FRAME_POINTER_REGNUM.
2049 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
2050 FRAME_POINTER_REGNUM.
2051 (REG_CLASS_CONTENTS): Add sfp.
2052 (REG_ALLOC_ORDER): Likewise.
2053 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
2054 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
2055 of frame_pointer_rtx.
2056 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2057
1ade5842
JM
20582005-07-19 James A. Morrison <phython@gcc.gnu.org>
2059
2060 * fold-const.c (tree_expr_nonnegative_p): Only return true for
2061 ABS_EXPR when flag_wrapv is false because of INT_MIN.
2062 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
2063 of an ABS_EXPR.
2064 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
2065 ABS_EXPR<x>.
2066
4038c495
GB
20672005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2068
2069 Make CONSTRUCTOR use VEC to store initializers.
2070 * c-common.c (complete_array_type): Update to cope with VEC in
2071 CONSTRUCTOR_ELTS.
2072 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
2073 (pp_c_constructor_elts): New function.
2074 * c-pretty-print.h (pp_c_constructor_elts): Declare.
2075 * c-typeck.c (build_function_call, build_c_cast, digest_init,
2076 struct constructor_stack, struct initializer_stack,
2077 constructor_elements, push_init_level, pop_init_level,
2078 add_pending_init, find_init_member, output_init_element): Update to
2079 cope with VEC in CONSTRUCTOR_ELTS.
2080 * coverage.c (build_fn_info_value, build_ctr_info_value,
2081 build_gcov_info): Likewise.
2082 * expr.c (categorize_ctor_elements_1, store_constructor,
2083 expand_expr_real_1): Likewise.
2084 * fold-const.c (fold_ternary): Likewise.
2085 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
2086 gimplify_init_constructor, gimplify_expr): Likewise.
2087 * tree-dump.c (dequeue_and_dump): Likewise.
2088 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
2089 node.
2090 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
2091 CONSTRUCTOR_ELTS.
2092 * tree-sra.c (generate_element_init_1): Likewise.
2093 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2094 * tree-ssa-operands.c (get_expr_operands): Likewise.
2095 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2096 * tree-vect-transform.c (vect_get_vec_def_for_operand):
2097 (get_initial_def_for_reduction): Likewise.
2098 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
2099 value handle in annotations.
2100 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
2101 tree_node_structure): Add support for constr_kind.
2102 (build_vector_from_ctor, build_constructor_single,
2103 build_constructor_from_list): New functions.
2104 (build_constructor): Update to take a VEC instead of a TREE_LIST.
2105 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
2106 Update to cope with VEC in CONSTRUCTOR_ELTS.
2107 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
2108 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
2109 CONSTRUCTOR_APPEND_ELT): New macros.
2110 (struct constructor_elt, struct tree_constructor): New data types.
2111 (union tree_node): Add tree_constructor field.
2112 * treestruct.def: Define TS_CONSTRUCTOR.
2113 * varasm.c (const_hash_1, compare_constant, copy_constant,
2114 compute_reloc_for_constant, output_addressed_constants,
2115 initializer_constant_valid_p, output_constant,
2116 array_size_for_constructor, output_constructor): Update to cope with
2117 VEC in CONSTRUCTOR_ELTS.
2118 * vec.h (VEC_empty, VEC_copy): New macros.
2119
f37d7c60
DP
21202005-07-19 Devang Patel <dpatel@apple.com>
2121
2122 * dbxout.c (dbxout_type): Check Objective-C++ lang.
7904f95f 2123
af62f6f9
RH
21242005-07-19 Richard Henderson <rth@redhat.com>
2125
2126 PR tree-opt/22278
2127 * gimplify.c (gimplify_expr): Use main variant type for the temp
2128 destination for a discarded volatile read.
2129 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
2130 casts between non-void types that change volatility.
2131
b9b8dde3
DD
21322005-07-15 DJ Delorie <dj@redhat.com>
2133
2134 * toplev.h: Add comment about the first parameter for warning().
2135 * errors.h: Likewise.
2136
2137 * c.opt (Wpragmas): New.
2138 * doc/invoke.texi: Document it.
7904f95f 2139
b9b8dde3
DD
2140 * function.c (do_warn_unused_parameter): Add warning control to
2141 warning call.
2142 * c-decl.c (warn_if_shadowing): Likewise.
2143 * c-lex.c (cb_def_pragma): Likewise.
2144 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2145 (pop_alignment): Likewise.
2146 (handle_pragma_pack): Likewise.
2147 (apply_pragma_weak): Likewise.
2148 (handle_pragma_weak): Likewise.
2149 (handle_pragma_redefine_extname): Likewise.
2150 (add_to_renaming_pragma_list): Likewise.
2151 (handle_pragma_extern_prefix): Likewise.
2152 (maybe_apply_renaming_pragma): Likewise.
2153 (handle_pragma_visibility): Likewise.
7904f95f 2154
b9b8dde3
DD
2155 * config/c4x/c4x-c.c (BAD): Likewise.
2156 (c4x_parse_pragma): Likewise.
2157 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
2158 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2159 (rs6000_pragma_longcall): Likewise.
2160 * config/v850/v850-c.c (pop_data_area): Likewise.
2161 (ghs_pragma_section): Likewise.
2162 (ghs_pragma_section): Likewise.
2163 (ghs_pragma_interrupt): Likewise.
2164 (ghs_pragma_starttda): Likewise.
2165 (ghs_pragma_startsda): Likewise.
2166 (ghs_pragma_startzda): Likewise.
2167 (ghs_pragma_endtda): Likewise.
2168 (ghs_pragma_endsda): Likewise.
2169 (ghs_pragma_endzda): Likewise.
2170
6a9a79a8
DB
21712005-07-19 Danny Berlin <dberlin@dberlin.org>
2172 Kenneth Zadeck <zadeck@naturalbridge.com>
2173
2174 * Makefile.in: Removed tree-promote-statics.c
2175 * tree-promote-statics.c: Removed.
2176 * common.opt: Removed flag-promote-statics.
2177 * opts.c: Ditto.
7904f95f 2178 * passes.c: Removed tree-promote-statics pass.
6a9a79a8
DB
2179 * tree-pass.h: Ditto.
2180 * timevar.def: Removed TV_PROMOTE_STATICS.
2181
2182
0219cf3d
GP
21832005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
2184
2185 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
2186 and *-*-freebsd9.
2187 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
7904f95f 2188
7876a414
KG
21892005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2190
2191 PR c/22476
2192 * c-common.c (check_function_arguments): Call
2193 'check_function_format' if either -Wformat or
2194 -Wmissing-format-attribute are specified.
2195 * c-format.c (check_function_format): Check -Wformat before
2196 calling 'check_format_info'.
2197 * c-opts.c (c_common_post_options): Don't warn for
2198 -Wmissing-format-attribute without -Wformat.
2199 * c-typeck.c (convert_for_assignment): Detect additional cases for
2200 -Wmissing-format-attribute.
2201 * doc/invoke.texi (-Wmissing-format-attribute): Document new
2202 behavior.
2203
98ea7437
RG
22042005-07-19 Richard Guenther <rguenther@suse.de>
2205
2206 * config/i386/i386.md (lrint<mode>2): Use temporary
2207 instead of clobbering non-existent memory.
2208
89a0b917
NC
22092005-07-19 Nick Clifton <nickc@redhat.com>
2210
2211 * config/avr/avr.c (legitimate_address_p): Fix debugging print
2212 statement to avoid displaying ASCII control characters.
2213
dfea6c85
BE
22142005-07-19 Ben Elliston <bje@au.ibm.com>
2215
2216 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
2217 * cfganal.c (find_edge_index): Ditto.
2218 * combine.c (combine_instructions): Ditto.
2219 * ddg.c (create_scc): Ditto.
2220 (find_successors): Ditto.
2221 (find_predecessors): Ditto.
2222 (find_nodes_on_paths): Ditto.
2223 (longest_simple_path): Ditto.
2224 * flow.c (update_life_info): Ditto.
2225 (count_or_remove_death_notes): Ditto.
2226 (clear_log_links): Ditto.
2227 * modulo-sched.c (generate_reg_moves): Ditto.
2228 (find_max_asap): Ditto.
2229 (find_max_hv_min_mob): Ditto.
2230 (find_max_dv_min_mob): Ditto.
2231 * sbitmap.c (sbitmap_first_set_bit): Ditto.
2232 * sched-rgn.c (extract_edgelst): Ditto.
2233 * tree-into-ssa.c (prepare_names_to_update): Ditto.
2234 (dump_update_ssa): Ditto.
2235 (ssa_names_to_replace) Ditto.
2236 (switch_virtuals_to_full_rewrite): Ditto.
2237 (update_ssa): Ditto.
2238 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2239
b9d33488
DB
22402005-07-18 Daniel Berlin <dberlin@dberlin.org>
2241
2242 Fix PR tree-optimization/22483
7904f95f 2243
b9d33488
DB
2244 * tree-complex.c (create_components): Use
2245 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
2246 * tree-flow-inline.h (fill_referenced_var_vec): New function.
2247 * tree-flow.h (safe_referenced_var_iterator): New structure.
2248 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
2249 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
2250 safe_referenced_var iterator.
2251 (add_type_alias): Ditto.
2252
9fa26457
SB
22532005-07-19 Steven Bosscher <stevenb@suse.de>
2254
2255 * loop-init.c (rest_of_handle_loop2): Remove.
2256 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
2257 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
2258 (pass_rtl_loop_init, pass_rtl_loop_done,
2259 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
2260 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
2261 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
2262 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
2263 pass_tree_loop_done, and pass_tree_unswitch.
2264 (gate_loop): Rename to gate_tree_loop.
2265 * passes.c (init_optimization_passes): Update for renamed tree
2266 loop passes. Add the new loop2 passes as subpasses of loop2.
2267 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
2268 Update for the renamed tree loop passes.
2269
7825308e
ILT
22702005-07-18 Ian Lance Taylor <ian@airs.com>
2271
2272 PR middle-end/22057
2273 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
2274 blocks when optimizing.
2275
2928d0f8
SE
22762005-07-18 Steve Ellcey <sje@cup.hp.com>
2277
2278 * common.opt (frename-registers): Initialize to 2.
2279 (fweb): Ditto.
2280 (fgcse-after-reload): Ditto.
2281 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
2282 (process_options): Only change flag_web, flag_rename_registers,
2283 and flag_rerun_cse_after_loop if not explicitly set by user.
2284
28356f52
JB
22852005-07-18 Jan Beulich <jbeulich@novell.com>
2286
2287 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
2288 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
2289 in 64-bit mode the same as DImode in 32-bit mode.
2290 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
2291 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
7904f95f 2292 mode. Add new mode parameter.
28356f52
JB
2293 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
2294 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
2295 x86_64_shift_adj): New expanders.
2296 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
2297 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
2298 insns.
2299 Respective new splitters. Use renamed shift splitter helpers in 32-bit
2300 DImode shift splitters.
2301 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
2302 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
2303 mode parameter.
2304
422edd6f
JB
23052005-07-18 Jan Beulich <jbeulich@novell.com>
2306
2307 * i386.md (movdi_extzv_1): New.
2308 (zero_extendhidi2): Combine alternatives and never force use of
2309 REX64 prefix.
2310 (zero_extendqidi2): Likewise. Don't restrict input selection.
2311
c625053b
DB
23122005-07-17 Daniel Berlin <dberlin@dberlin.org>
2313
2314 Fix PR tree-optimization/22531
2315 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
2316 moment.
2317
3b1355f3
DB
23182005-07-17 Daniel Berlin <dberlin@dberlin.org>
2319
2320 * tree-promote-statics.c (pass_promote_statics): Change dump file
2321 name.
2322
23232005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
2324
2325 * tree-optimize.c (init_tree_optimization_passes): Add
2326 pass_eliminate_useless_stores pass.
2327 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
2328 * tree-ssa-pre.c (is_copy_stmt): New function.
2329 (follow_copies_till_vuse): Ditto.
2330 (do_eustores): Ditto.
7904f95f
EC
2331 (gate_eustores): Ditto.
2332
7544a87f
RH
23332005-07-16 Richard Henderson <rth@redhat.com>
2334
2335 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
2336
bf0d50f1
KZ
23372005-07-16 Danny Berlin <dberlin@dberlin.org>
2338 Kenneth Zadeck <zadeck@naturalbridge.com>
2339
2340 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
2341 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
2342 ipa-type-escape.h, tree-promote-statics.c
2343 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
7904f95f 2344 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
bf0d50f1
KZ
2345 tree-promote-statics.c: new files.
2346 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
2347 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
2348 int nonlocal_set_p, mark_constant_function): Deleted.
7904f95f 2349 (rest_of_handle_cfg): Removed call to mark_constant_function.
86979811 2350 (nonoverlapping_component_refs_p): Added calls to support
7904f95f 2351 type based aliasing.
86979811 2352 * tree-ssa-alias.c (may_alias_p,
bf0d50f1
KZ
2353 compute_flow_insensitive_aliasing): Ditto.
2354 * calls.c (flags_from_decl_or_type): Removed reference to
7904f95f 2355 cgraph_rtl_info.
86979811 2356 * c-typeck.c (convert_arguments): Make builtins tolerant of having
bf0d50f1
KZ
2357 too many arguments. This is necessary for Spec 2000.
2358 * cgraph.h (const_function, pure_function): Removed.
7904f95f 2359 * common.opt: Added "fipa-pure-const", "fipa-reference",
bf0d50f1
KZ
2360 "fipa-type-escape", and "ftree-promote-static".
2361 * opts.c: Ditto.
7904f95f 2362 * passes.c: Added ipa and tree-promote-statics passes.
bf0d50f1
KZ
2363 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
2364 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1 2365 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
7904f95f 2366 * tree-flow.h: Added exposed sra calls and addition of
bf0d50f1
KZ
2367 reference_vars_info field for FUNCTION_DECLS.
2368 * tree-pass.h: Added passes.
2369 * tree-sra.c: (sra_init_cache): New function.
2370 (sra_insert_before, sra_insert_after) Made public.
2371 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
2372 and made public.
2373 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
2374 aliasing. (may_alias_p): Added code to use type escape analysis to
2375 improve alias sets.
2376 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
2377 code to prune clobbers of static variables based on information
2378 produced in ipa-reference pass. Changed call clobbering so that
2379 statics are not marked as clobbered if the call does not clobber
2380 them.
2381
b6e0bdbd
DB
23822005-07-16 Daniel Berlin <dberlin@dberlin.org>
2383
2384 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
2385 too.
2386
2c00bd42
EB
23872005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2388
2389 * doc/install.texi (*-*-solaris2*): Document recommended version
2390 of GNU binutils and mention GNU linker problem on Solaris 10.
2391
0b359b01
JM
23922005-07-16 Joseph S. Myers <joseph@codesourcery.com>
2393
2394 PR c/22421
2395 * c-decl.c (c_build_bitfield_integer_type): New function.
2396 (finish_struct): Call it.
2397 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
2398
8fcef540
KG
23992005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2400
2401 * c-typeck.c (digest_init): Call 'convert_for_assignment'
2402 before returning.
2403
84fc24e8
JH
24042005-07-16 Jan Hubicka <jh@suse.cz>
2405
2406 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2407 (scale_bbs_frequencies_int): Watch roundoff errors.
2408 * predict.c (return_prediction): Initialize return_stmt.
2409
3258272f
JH
24102005-07-16 Jan Hubicka <jh@suse.cz>
2411
2412 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2413 after RTL profiling.
2414
01c0a9fa
AP
24152005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2416
2417 PR middle-end/22398
2418 * fold-const.c (build_range_check): Convert high/low to etype
2419 if we are only comparing against exp.
2420
27811bfe
DB
24212005-07-13 Daniel Berlin <dberlin@dberlin.org>
2422
2423 Fix PR tree-optimization/22376
2424 * tree-ssa-structalias.c (build_constraint_graph): We really meant
2425 special var here.
2426 (need_to_solve): New function.
2427 (compute_points_to_sets): Use it.
7904f95f 2428
2b151cb2
JH
24292005-07-15 Jan Hubicka <jh@suse.cz>
2430
2431 * cfg.c (update_bb_profile_for_threading): More diagnostic.
2432 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2433
0691d1d4
RG
24342005-07-15 Richard Guenther <rguenther@suse.de>
2435
2436 * c-common.c (handle_flatten_attribute): New function.
2437 Add flatten function attribute.
2438 * doc/extend.texi: Document flatten function attribute.
2439 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2440 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2441 New functions.
2442 (cgraph_decide_inlining): Handle functions with flatten
2443 attribute.
2444
9f0076e5
DE
24452005-07-14 David Edelsohn <edelsohn@gnu.org>
2446
2447 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2448 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2449 UNSPEC_XCHG, UNSPEC_AND): New.
2450 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2451 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2452 * config/rs6000/sync.md (FETCHOP): New code macro.
2453 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2454 New code attrs.
2455 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2456 (sync_compare_and_swap<mode>): Same.
2457 (sync_lock_test_and_set<mode>): Same.
2458 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2459 for QImode and HImode, and not PPC405.
2460 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2461 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2462 (sync_<fetchop>{si,di}_internal): New.
2463 (sync_nand{si,di}_internal): New.
2464 (sync_old_<fetchop>{si,di}_internal): New.
2465 (sync_old_nand{si,di}_internal): New
2466 (sync_new_<fetchop>{si,di}_internal): New.
2467 (sync_new_nand{si,di}_internal): New.
2468 (atomic_and{si,di}): New.
2469 (sync_new_nand{si,di}_internal): New.
2470 (atomic_and{si,di}): New.
2471 (sync_add<mode>_internal): Delete.
2472 (sync_addshort_internal): Use unspec instead of unspec_volatile.
2473 (sync_sub<mode>_internal): Delte.
2474 (sync_subshort_internal): New.
2475 (sync_andsi_internal): Use unspec instead of unspec_volatile.
2476 (sync_anddi_internal): Delete.
2477 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2478 (sync_booldi_internal): Delete.
2479 (sync_boolc<mode>_internal): Delete.
2480 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2481 (sync_boolc<mode>_internal2): Delete.
2482 (sync_boolcc<mode>_internal): Delete.
2483 (isync, lwsync): Use unspec instead of unspec_volatile.
2484 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2485 Revert UNSPEC_VOLATILE.
2486 (rs6000_split_atomic_op): New.
2487 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2488
06277571
EC
24892005-07-14 Eric Christopher <echristo@redhat.com>
2490
2491 * config/mips/mips.c (mips_canonicalize_comparison): Cast
2492 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2493
b838c72b
EC
24942005-07-14 Eric Christopher <echristo@redhat.com>
2495
2496 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2497
3c341936
SB
24982005-07-14 Steven Bosscher <stevenb@suse.de>
2499
2500 PR tree-optimization/22230
2501 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2502 the computation of the four cross productions for "range op range".
2503
704b6cb5 25042005-07-14 Alexandre Oliva <aoliva@redhat.com>
86979811 2505 Ulrich Weigand <uweigand@de.ibm.com>
704b6cb5
AO
2506
2507 PR target/20126
2508 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2509 in some insn.
2510
a771c4b3
UW
25112005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2512
2513 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2514
6f3113ed
SE
25152005-07-14 Steve Ellcey <sje@cup.hp.com>
2516
2517 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2518
cb1119b7
RG
25192005-07-14 Richard Guenther <rguenther@suse.de>
2520
2521 PR middle-end/22347
2522 * config/i386/i386-protos.h (ix86_function_value): Change
2523 prototype to match new target hook.
2524 * config/i386/i386.c (ix86_value_regno): Change prototype
2525 to take extra type argument.
2526 (TARGET_FUNCTION_VALUE): Define.
2527 (ix86_function_ok_for_sibcall): Pass extra argument to
2528 ix86_value_regno, check return slot rtx for exact match.
2529 (ix86_function_value): Take extra parameter. Dispatch to
2530 ix86_value_regno with fndecl/fntype as provided.
2531 (ix86_value_regno): Handle extra type argument.
2532 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2533
2534 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2535 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2536 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2537 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2538 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2539
1d636cc6
RG
25402005-07-14 Richard Guenther <rguenther@suse.de>
2541
2542 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2543 * calls.c (expand_call): Pass fntype to hard_function_value.
2544 (emit_library_call_value_1): Likewise.
2545 * explow.c: Include target.h.
2546 (hard_function_value): Take extra argument, the fntype.
2547 Use new target hook for function_value.
2548 * expr.h (hard_function_value): Change prototype.
2549 * function.c (aggregate_value_p): Pass 0 as fntype to
2550 hard_function_value.
2551 (assign_parms): Use new target hook for function_value.
2552 Pass 0 as fntype to hard_function_value.
2553 (expand_function_end): Likewise.
2554 * reg-stack.c: Include target.h.
2555 (stack_result): Use new target hook for function_value.
2556 * target-def.h: New target hook function_value.
2557 * target.h: Likewise.
2558 * targhooks.c (default_function_value): New function.
2559 * targhooks.h (default_function_value): Declare.
2560
09d8cc0e
ILT
25612005-07-13 Ian Lance Taylor <ian@airs.com>
2562
2563 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2564
df1f6f31
JH
25652005-07-14 Jan Hubicka <jh@suse.cz>
2566
2567 * tree-dfa.c (dump_variable): Use default_def function.
2568 * tree-ssa-alias.c (dump_points_to_info): Likewise.
2569 * tree-ssa.c (verify_use): Likewise.
2570 * tree-ssanames.c (release_ssa_name): Likewise.
2571 * tree-tailcall.c (eliminate_tail_call): Likewise.
2572 (tree_optimize_tail_calls_1): Likewise.
2573 * tree-vrp.c (get_value_range): Likewise.
2574
9ef0b1bd
BE
25752005-07-14 Ben Elliston <bje@au.ibm.com>
2576
2577 * gcc.c (main): Compare language[0] with '*' when iterating over
2578 the infiles.
2579
69950452
AS
2580