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