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