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