]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' initial state.
[gcc.git] / gcc / ChangeLog
CommitLineData
87bb8864
UB
12005-08-17 Uros Bizjak <uros@kss-loka.si>
2
3 PR target/23268
4 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
5 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
6
dd0ae678
R
72005-08-17 J"orn Rennecke <joern.rennecke@st.com>
8
9 * varasm.c (decode_reg_name): Skip empty aqdditional register names.
10
d28cbb07
ZD
112005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
12
13 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
14 lsm_tmp_name_length): New.
15 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
16 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
17
39bd07e8
UW
182005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19 Andreas Krebbel <krebbel1@de.ibm.com>
20
21 * config.gcc: Added z9-109 switch.
22 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
23 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
24 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
25 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
26 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
27 for "z9_109" cpu attribute.
28 * config/s390/s390.c (z9_109_cost): New processor cost structure.
29 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
30 (s390_handle_arch_option): Added z9-109 switch.
31 (override_options): Set respective cost function for z9-109.
32 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
33 (legitimate_reload_constant_p): Accept extended immediates.
34 (print_operand): Three new output modifiers added: k, m and o.
35 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
36 (s390_output_mi_thunk): Use extended immediate when possible.
37 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
38 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
39 (CONSTRAINT_LEN): Added length of O constraint.
40 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
41 * config/s390/s390.md ("cpu"): New value z9_109 added.
42 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
43 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
44 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
45 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
46 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
47 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
48 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
49 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
50 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
51 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
52 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
53 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
54 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
55 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
56 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
57 immediates.
58 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
59 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
60 insns for TARGET_EXTIMM.
61
33d2e547
AK
622005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
63
64 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
65
e5eb9a52
NC
662005-08-17 Nick Clifton <nickc@redhat.com>
67
68 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
69 Call default_encode_section_info.
70
a318e3ac
SB
712005-08-17 Steven Bosscher <stevenb@suse.de>
72
73 PR tree-optimization/21574
74 * tree-ssa-ccp.c (likely_value): If the right hand side is a
75 constant, return CONSTANT.
76 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
77 (ccp_fold, visit_assignment): Likewise.
78 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
79
00d1b1d6
JM
802005-08-16 James A. Morrison <phython@gcc.gnu.org>
81
82 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
83 fold_buildN instead of buildN then fold_initializer or fold.
84 (build_unary_op): Likewise.
85 (build_binary_op): Likewise.
86 * fold-const.c (fold_initializer): Remove.
87 (fold_build1_initializer): New function.
88 (fold_build2_initializer): New function.
89 (fold_build3_initializer): New function.
90 * tree.h (fold_initializer): Remove.
91 (fold_build1_initializer): New function.
92 (fold_build2_initializer): New function.
93 (fold_build3_initializer): New function.
94
f457cf40
JM
952005-08-16 James A. Morrison <phython@gcc.gnu.org>
96
97 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
98 (try_move_mult_to_index): Call fold_build2 instead of build2.
99 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
100 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
101 fold_binary_to_constant.
102 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
103 fold (build.
104 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
105 check if A == gcd (A, B). Remove TYPE argument.
106 (analyze_offset) Use fold_build2 instead of fold (build.
107 (create_data_ref): Likewise.
108 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
109 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
110 then fold.
111
4c617d12
KC
1122005-08-17 Kelley Cook <kcook@gcc.gnu.org>
113
114 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
115 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
116
d06526b7
AP
1172005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
118
119 PR tree-opt/23402
120 * gimplify.c (zero_sized_type): New function.
121 (gimplify_modify_expr_rhs): If we have a zero sized type,
122 replace the statement with an empty statement.
123
e9e68ae3
L
1242005-08-16 H.J. Lu <hongjiu.lu@intel.com>
125
126 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
127 fxsave.
128
e374d5c9
ILT
1292005-08-16 Ian Lance Taylor <ian@airs.com>
130
131 * doc/tm.texi (Label Output): Correct typo.
132
f2dd440f
SB
1332005-08-16 Steven Bosscher <stevenb@suse.de>
134
135 PR target/23376
136 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
137 force_operand will work later on using have_insn_for.
138
196f5a8d
VR
1392005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
140
141 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
142
cf0efa6a
ILT
1432005-08-16 Ian Lance Taylor <ian@airs.com>
144
145 PR c++/23337
146 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
147 vector type, don't try to construct it element by element. Add an
148 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
149
3a69437a
VR
1502005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
151
152 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
153
17ccdd2c
GK
1542005-08-16 Geoffrey Keating <geoffk@apple.com>
155
156 * doc/invoke.texi (Precompiled Headers): Document some more options
157 which are known to be safe.
158
355a9e43
JW
1592005-08-16 James E Wilson <wilson@specifix.com>
160
161 PR tree-optimization/21105
162 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
163 TREE_OVERFLOW check.
164
ce45ef46
DE
1652005-08-16 David Edelsohn <edelsohn@gnu.org>
166
167 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
168 (neg_ltu<mode>): Same.
169 (gtu<mode>): Same.
170 (neg_gtu<mode>): Same.
171
543e2cc3
VR
1722005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
173
174 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
175 (fold_builtin_isdigit): Use fold_buildN.
176 (build_function_call_expr): Likewise.
177 * c-typeck.c (c_finish_loop): Likewise.
178
28f52a4d
R
1792005-08-16 J"orn Rennecke <joern.rennecke@st.com>
180 Richard Shann <rshann@superh.com>
181
182 PR middle-end/20396:
183 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
184
546ad2d9
SP
1852005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
186
187 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
188
39c39be0
RE
1892005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
190
191 PR target/23355
192 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
193 arm_compure_save_reg0_reg12_mask to determine when the PIC register
194 must be saved.
195
f60c951c
JDA
1962005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
197
198 PR middle-end/23369
199 * fold-const.c (build_range_check): Disable optimization for function
200 pointer expressions on targets that require function pointer
201 canonicalization.
202
5b5dc475
UW
2032005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
204
205 * simplify-rtx.c (simplify_const_relational_operation): When
206 extracting arguments of a COMPARE, recompute the mode as well.
207
1595ec20
ILT
2082005-08-15 Ian Lance Taylor <ian@airs.com>
209
210 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
211
eb5f0c07
DD
2122005-08-15 DJ Delorie <dj@redhat.com>
213
214 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
215 the stack.
216 (movsi_splittable): Allow, but split, moves to the stack.
217 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
218 stack.
219
06145cb9
KG
2202005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
221
222 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
223 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
224 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
225
226 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
227 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
228 Delete HOST_PTR_PRINTF.
229
230 * configure, config.in: Regenerate.
231
b5568f07
DE
2322005-08-15 David Edelsohn <edelsohn@gnu.org>
233
234 * config/rs6000/rs6000.md (QHSI): New mode macro.
235 (wd): Extend mode attr for QImode and HImode
236 (dbits): New mode attr.
237 (zero_extend<mode>di2): Convert to mode macro.
238
a73035ae
SE
2392005-08-15 Steve Ellcey <sje@cup.hp.com>
240
241 PR target/21841
242 * doc/invoke.texi (-mgnu-ld): Update description.
243 (-mhp-ld): Ditto.
244
7e0923cd
SP
2452005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
246
247 PR 23391
248 * Makefile.in (tree-chrec.o): Depends on real.h.
249 * tree-chrec.c: Include real.h.
250 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
251 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
252 * tree-scalar-evolution.c (add_to_evolution_1,
253 interpret_rhs_modify_expr): Ditto.
254
852c19aa
SP
2552005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
256
257 PR 23386
258 * tree-data-ref.c (estimate_niter_from_size_of_data): When
259 step is negative compute the estimation from init downwards to zero.
260
b23dce24
JM
2612005-08-14 James A. Morrison <phython@gcc.gnu.org>
262
263 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
264
11598938
UW
2652005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
268 constraint.
269 (legitimate_reload_constant_p): Fix handling of lliXX operands.
270 Accept double-word constants that can be split.
271 * config/s390/s390.md ("movti"): Use 'P' constraint.
272 ("*movdi_31", "*movdf_31"): Likewise.
273
8971094d
DB
2742005-08-14 Daniel Berlin <dberlin@dberlin.org>
275
276 Fix PR tree-optimization/22615
277
278 * tree-ssa-structalias.c (solution_set_add): Handle
279 first_vi_for_offset returning NULL.
280 (do_da_constraint): Ditto.
281 (do_sd_constraint): Ditto.
282 (do_ds_constraint): Ditto
283 (find_func_aliases): Ditto.
284 (build_constraint_graph): RHS is allowed be ANYTHING.
285 (first_vi_for_offset): Return NULL if we couldn't find anything at
286 the offset.
287
c5b2a111
UW
2882005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
289
290 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
291 over memory as first operand.
292
adb7b764
L
2932005-08-14 H.J. Lu <hongjiu.lu@intel.com>
294
295 PR target/23360
296 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
297 available for setting it.
298
1f400bbb
IR
2992005-08-14 Ira Rosen <irar@il.ibm.com>
300
301 PR tree-optimization/23320
302 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
303 data-refs' types instead of base object nullness. Add check for
304 pointer type data-refs before first location comparison. Remove
305 assert.
306
db875b15
AS
3072005-08-14 Andreas Schwab <schwab@suse.de>
308
309 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
310
0aca9021
JW
3112005-08-13 James E Wilson <wilson@specifix.com>
312
313 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
314 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
315 -fstack-protector-all, --param ssp-buffer-size): Document.
316 (-Wvariadic-macros): Alphabetize.
317 (-fsched-stalled-insns-dep): Add missing 'f'.
318
0ffb94cd
JW
319 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
320 macros.
321
3256a76e
DE
3222005-08-13 David Edelsohn <edelsohn@gnu.org>
323
324 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
325 or indirect address operand.
326 (EXTRA_ADDRESS_CONSTRAINT): New.
327 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
328
d7770457
SP
3292005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
330
331 PR tree-optimization/22236
332 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
333 successors and predecessors.
334 * tree-chrec.c (chrec_convert): Before converting, check that
335 sequences don't wrap.
336 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
337 (analyze_array): Extern.
338 (find_data_references_in_loop): Remove call to
339 compute_estimated_nb_iterations.
340 * tree-data-ref.h (analyze_array): Declared.
341 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
342 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
343 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
344 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
345 condition.
346 * tree-ssa-loop-ivcanon.c: Fix documentation.
347 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
348 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
349 (infer_loop_bounds_from_undefined): New.
350 (estimate_numbers_of_iterations_loop): Use
351 infer_loop_bounds_from_undefined.
352 (used_in_pointer_arithmetic_p): New.
353 (scev_probably_wraps_p): Pass an extra parameter. Call
354 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
355 (convert_step): Fix documentation.
356 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
357 Use initial_condition_in_loop_num and evolution_part_in_loop_num
358 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
359 scev_probably_wraps_p.
360
e2df5c1d
UW
3612005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
362
363 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
364 (s390_register_info): Ignore clobbered_regs information for fixed
365 registers, and only fixed registers.
366 (s390_init_frame_layout): Remove redundant call.
367
7cd5c075
GP
3682005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
369
370 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
371 description of -Wold-style-casts.
372
7b8acc34
AK
3732005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
374 Jakub Jelinek <jakub@redhat.com>
375
376 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
377 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
378 * config/s390/s390.c (print_operand): New output modifier 'G' added.
379 (get_thread_pointer): Renamed to s390_get_thread_pointer.
380 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
381 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
382 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
383 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
384 ("stack_protect_set", "stack_protect_test"): New expanders.
385 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
386 "stack_protect_testdi"): New insn definitions.
387
4700982d
AK
3882005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
389
390 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
391
3c60bed5
PB
3922005-08-12 Paul Brook <paul@codesourcery.com>
393
394 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
395
f83a336d
AK
3962005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
397
398 * config/s390/predicates.md (setmem_operand): New predicate.
399 (shift_count_operand): Accept ANDs with special constants as
400 operand.
401 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
402 with special constants.
403 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
404 shift_count_operand with setmem_operand.
405
c4d50129
AK
4062005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
407
408 * config/s390/s390.c (s390_extract_part, s390_single_part):
409 Type cast added.
410 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
411 (s390_output_mi_thunk): Don't use lg on 31 bit.
412 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
413 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
414
b5c67a49
AK
4152005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
416
417 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
418 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
419 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
420 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
421 with one of the new macros.
422
dc4477f5
AK
4232005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
424
425 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
426 Don't set save_return_addr_p.
427 (s390_register_info): Make clobbered_regs not depending on
428 save_return_addr_p.
429
ec92bd4b
KK
4302005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
431
432 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
433 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
434
8c2efff7
JW
4352005-08-11 James E. Wilson <wilson@specifix.com>
436
437 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
438
ea93971a
JJ
4392005-08-11 Jakub Jelinek <jakub@redhat.com>
440
86bd8ebf
JJ
441 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
442 locations gathered by var-tracking in single entry loc_list
443 over loc_descriptor_from_tree.
444
ea93971a
JJ
445 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
446 pass it down to loc_descriptor.
447 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
448 (containing_function_has_frame_base): Move earlier in the file.
449 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
450 instead of always assuming fbreg can't be used.
451
dec1f3aa
DE
4522005-08-11 David Edelsohn <edelsohn@gnu.org>
453
454 * config/rs6000/altivec.md: Change constraint "m" to "Z".
455 * config/rs6000/predicates.md (indexed_or_indirect_operand):
456 Accept address wrapped in AND for Altivec.
457 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
458 Strip AND wrapping offset address for Altivec.
459
7fd6694b
RH
4602005-08-11 Richard Henderson <rth@redhat.com>
461
462 PR middle-end/23312
463 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
464 before using TYPE_IS_SIZETYPE.
465
4ead2a39
RH
4662005-08-11 Richard Henderson <rth@redhat.com>
467
468 PR target/22225
469 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
470 insn types not present on ev4.
471 (alphaev5_insn_pipe): Similarly.
472
da8ce8be
RE
4732005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
474
475 PR target/23250
476 * arm.c (arm_override_options): If the user has selected callee-super-
477 interworking, then enable normal interworking.
478
eb2b0cc0
RO
4792005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
480
481 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
482 redefinition.
483
b630e240
WZ
4842005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
485
486 * doc/rtl.texi: Fix two typos.
487
cac32996
RG
4882005-08-11 Richard Guenther <rguenther@suse.de>
489
490 PR target/23289
491 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
492 cases where we call to/from functions returning void.
493
a4faac50
JM
4942005-08-10 James A. Morrison <phython@gcc.gnu.org>
495
496 PR c++/23225
497 * tree.c (build_pointer_type_for_mode): Robustify.
498
907f033f
JW
4992005-08-10 James E Wilson <wilson@specifix.com>
500
501 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
502 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
503
504 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
505 "cum->".
506
bb8df8a6
EC
5072005-08-10 Eric Christopher <echristo@apple.com>
508
509 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
510 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
511 V2DFmode.
512
4f8dbd34
AP
5132005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
514
ce31ea84 515 PR target/21887
4f8dbd34
AP
516 * config/darwin.c (machopic_indirect_data_reference): Use a new register
517 for the high part when generating dynamic-no-pic code.
518
d75e02d6
L
5192005-08-10 H.J. Lu <hongjiu.lu@intel.com>
520
521 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
522 (x86_64-*-linux*): Likewise.
523
524 * config/i386/crtfastmath.c: New file.
525 * config/i386/t-crtfm: Likewise.
526
527 * config/i386/linux.h (ENDFILE_SPEC): New.
528 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
529
530 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
531 crtfastmath.o.
532
61abee65
DN
5332005-08-10 Dorit Nuzman <dorit@il.ibm.com>
534
535 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
536 (vec_shl, vec_shr): Document new operations.
537 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
538
11aac14f
DE
5392005-08-10 David Edelsohn <edelsohn@gnu.org>
540
541 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
542 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
543 change predicate to indexed_or_indirect_address.
544
9bd05108
RS
5452005-08-10 Richard Sandiford <richard@codesourcery.com>
546
547 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
548 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
549 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
550 and __aeabi_uwrite8.
551 * config/arm/unaligned-funcs.c: New file.
552 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
553
defb77dc
PB
5542005-08-09 Paolo Bonzini <bonzini@gnu.org>
555
556 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
557 Add dump.
558 * cfglayout.c (pass_insn_locators_initialize): Add dump.
559 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
560 Add dump.
561 * except.c (pass_convert_to_eh_region_ranges): Add dump.
562 * final.c (pass_shorten_branches): Add dump.
563 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
564 (pass_life): Rename dump.
565 (rest_of_handle_flow2): Remove initial verify_flow_info.
566 * function.c (pass_instantiate_virtual_regs): Add dump.
567 * integrate.c (pass_initial_value_sets): Add dump.
568 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
569 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
570 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
571 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
572 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
573 gate_rtl_unrool_and_peel_loops): New.
574 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
575 rtl_doloop): Do not look at flags.
576 * mode-switching.c (pass_mode_switching): Add dump.
577 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
578 pass_split_before_regstack): Add dump.
579 * regmove.c (pass_stack_adjustments): Add dump.
580 * tree-optimize.c (pass_fixup_cfg): Add dump.
581
2a6a63c1
KI
5822005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
583
584 PR 23309
585 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
586 deciding which instruction sequence to use.
587
0ed414a4
DN
5882005-08-09 Dorit Nuzman <dorit@il.ibm.com>
589
bb8df8a6 590 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
0ed414a4
DN
591 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
592
9bc15050
RG
5932005-08-09 Richard Guenther <rguenther@suse.de>
594
595 * c-common.c (builtin_function_2): Remove.
596 (def_builtin_1): New function.
597 (c_common_nodes_and_builtins): Use def_builtin_1 to
598 build builtin functions.
599
07da68fd
JZ
6002005-08-09 Jie Zhang <jie.zhang@analog.com>
601
602 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
603 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
604 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
605 Visual DSP.
606
2f133f46
JM
6072005-08-09 James A. Morrison <phython@gcc.gnu.org>
608
609 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
610 fold_binary instead of fold_build2 since we don't care about the
611 resulting tree.
612 (loop_niter_by_eval): Likewise.
613 (compare_trees): Likewise.
614 (proved_non_wrapping_p): Likewise.
615
f14e694e
JM
6162005-08-09 James A. Morrison <phython@gcc.gnu.org>
617
618 PR c/23161
619 PR c/23165
620 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
621 if the if is really empty.
622
2ef571e2
SB
6232005-08-09 Steven Bosscher <stevenb@suse.de>
624
625 PR tree-optimization/23234
626 * tree-ssa-math-opts.c (place_reciprocal): New enum.
627 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
628 argument of the new enum.
629 (execute_cse_reciprocals): Add reciprocals for function arguments
630 on the unique successor edge of the entry block. Update other calls
631 to execute_cse_reciprocals_1.
632
a9c5ddf9
RH
6332005-08-08 Richard Henderson <rth@redhat.com>
634
635 PR 22439
636 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
637
22469409
BW
6382005-08-08 Bob Wilson <bob.wilson@acm.org>
639
640 * expr.c (write_complex_part): Return after handling MEM.
641
2d88fcc2
JC
6422005-08-08 Josh Conner <jconner@apple.com>
643
644 PR rtl-optimization/23241
645 * combine.c (simplify_comparison): Fix error in determining
646 whether to lift a subreg from comparison.
647
7a4eca66
DE
6482005-08-08 David Edelsohn <edelsohn@gnu.org>
649
650 PR target/18506
651 * config/rs6000/altivec.md (vec_init<mode>): New.
652 (vec_set<mode>): New.
653 (vec_extract<mode>): New.
654 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
655 (rs6000_expand_vector_set): New.
656 (rs6000_expand_vector_extract): New.
657 (rs6000_legitimate_offset_address_p): Offset addresses are valid
658 for Altivec modes before reload.
659 (altivec_expand_vec_init_builtin): New.
660 (get_element_number): New.
661 (altivec_expand_vec_set_builtin): New.
662 (altivec_expand_vec_ext_builtin): New.
663 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
664 builtins.
665 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
666 builtins.
667 * config/rs6000/rs6000.h (rs6000_builtins): Add
668 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
669 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
670 * config/rs6000/rs6000-protos.h: Declare new functions.
671
47efdea4
JH
6722005-08-08 Jan Hubicka <jh@suse.cz>
673
674 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
675 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
676 * i386.md (movdi*): Use pic_32bit_operand.
677 * predicates.md (pic_32bit_operand): New.
678
f303a996
NS
6792005-08-08 Nathan Sidwell <nathan@codesourcery.com>
680
681 PR c++/21166
682 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
683
a5ad7269
JM
6842005-08-07 James A. Morrison <phython@gcc.gnu.org>
685
686 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
687 (test_for_singularity): Use fold_build2.
688
914a6ee8
JDA
6892005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
690
691 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
692
f18faab7
DS
6932005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
694
695 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
696 (COMMON_ASM_OP) Define.
697 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
698 (ix86_encode_section_info): Likewise.
699 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
700 SUBTARGET_ENCODE_SECTION_INFO.
701
455c08cb
RH
7022005-08-06 Richard Henderson <rth@redhat.com>
703
704 PR 21894
705 * tree-nested.c (convert_local_reference): Save and restore val_only
706 around component_ref and friends. Clear walk_subtrees by default.
707
3300bf07
PG
7082005-08-06 Peter O'Gorman <peter@pogma.com>
709
710 PR 21366
711 * gcc.c (process_command): Check the argument to -b has a dash.
712 * doc/invoke.texi: Update -b and -V docs.
713
e2ba06d6
JW
7142005-08-06 James E Wilson <wilson@specifix.com>
715
716 * config/mips/cross64.h, config/mips/t-cross64: Delete.
717
3e0a6ca6
MM
7182005-08-06 Michael Matz <matz@suse.de>
719
720 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
721 member only if only one insn is associated with the value.
722
2f806f3b
NC
7232005-08-06 Nick Clifton <nickc@redhat.com>
724
725 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
726 New define.
3e0a6ca6 727 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2f806f3b
NC
728 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
729 Check symbol flags instead of symbol name mangling.
3e0a6ca6 730 (xstormy16_asm_output_aligned_common): Likewise. Also
2f806f3b
NC
731 simplify code since the bss100_section cass is the only case
732 where the below100 code will be triggered.
3e0a6ca6 733 (xstormy16_encode_section_info): Encode below100 attribute
2f806f3b
NC
734 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
735 the name.
3e0a6ca6 736 (xstormy16_strip_name_encoding): Delete - this function is no
2f806f3b 737 longer needed.
3e0a6ca6 738 (TARGET_STRIP_NAME_ENCODING): Undefine.
2f806f3b
NC
739 * config/stormy16/stormy16-protos.h: Delete prototype for
740 xstormy16_strip_name_encoding.
741
a4d05547
KH
7422005-08-06 Kazu Hirata <kazu@codesourcery.com>
743
744 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
745 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
746 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
747 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
748 config/alpha/predicates.md, config/arc/arc.h,
749 config/arm/arm.h, config/arm/ieee754-df.S,
750 config/arm/ieee754-sf.S, config/bfin/bfin.c,
751 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
752 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
753 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
754 config/m68hc11/m68hc11.h, config/mips/mips.c,
755 config/mips/mips.h, config/mips/openbsd.h,
756 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
757 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
758 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
759 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
760 config/sparc/linux.h, config/sparc/linux64.h,
761 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
762 doc/extend.texi, doc/gcov.texi, doc/install.texi,
763 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
764 typos. Follow spelling conventions.
765
591baeb0
JM
7662005-08-06 Joseph S. Myers <joseph@codesourcery.com>
767
768 PR c/23113
769 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
770 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
771 specially. Check for side effects only for COND_EXPR.
772 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
773 return with TREE_NO_WARNING.
774
f7a064b5
RS
7752005-08-06 Richard Sandiford <richard@codesourcery.com>
776
777 PR rtl-optimization/23233
778 * loop.c (combine_movables): Require the modes to be the same.
779 (move_movables): Remove handling of cases where the replacement
780 had a different mode to the original.
781
b17775ab
JM
7822005-08-05 James A. Morrison <phython@gcc.gnu.org>
783
784 PR tree-optimization/23128
785 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
786 subtraction wrap, and set TREE_OVERFLOW if they do.
787
bb1ecfe8
RH
7882005-08-05 Richard Henderson <rth@redhat.com>
789
790 PR 21728
791 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
792 FORCED_LABEL labels.
793
50aa8e71
R
7942005-08-05 J"orn Rennecke <joern.rennecke@st.com>
795
796 PR middle-end/23135
797 * reload.c (find_reloads_subreg_address): Pass down TYPE
798 unchanged. Change all callers except find_reloads_toplev.
799
b01896cc
MM
8002005-08-05 Michael Matz <matz@suse.de>
801
802 * genattrtab.c (current_alternative_string): Remove.
803 (SIMPLIFY_ALTERNATIVE): Ditto.
804 (attr_alt_bit_p): Ditto.
805 (alternative_name): Make const char *.
806 (evaluate_eq_attr): Remove use of above things.
807 (simplify_test_exp): Ditto.
808 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
809 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
810
3f94bdec
JW
8112005-08-04 James E Wilson <wilson@specifix.com>
812
813 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
814 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
815 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
816 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
817 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
818
460f84ed
RH
8192005-08-04 Richard Henderson <rth@redhat.com>
820
821 PR 21529
822 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
823 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
824 * tree-sra.c (decide_block_copy): Use it. Disable element copy
825 if we'd have to instantiate too many members.
826
5a910e43
RH
8272005-08-04 Richard Henderson <rth@redhat.com>
828
829 PR 21291
830 * tree-outof-ssa.c (coalesce_asm_operands): New.
831 (coalesce_ssa_name): Use it. Split out ...
832 (coalesce_phi_operands, coalesce_result_decls): ... these.
833
27c37000
PB
8342005-08-04 Paul Brook <paul@codesourcery.com>
835
836 * read-rtl.c (read_quoted_string): Break if EOF.
837
5808968e
AP
8382005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
839
840 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
841 (fold_build2): Likewise.
842 (fold_build3): Likewise.
843 (fold_build1_stat): New function prototype.
844 (fold_build2_stat): Likewise.
845 (fold_build3_stat): Likewise.
846 * fold-const.c (fold_build1): Rename to ..
847 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
848 through to build1_stat.
849 (fold_build2): Rename to ..
850 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
851 through to build2_stat.
852 (fold_build3): Rename to ..
853 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
854 through to build3_stat.
855
d70eadf7 8562005-08-04 David Edelsohn <edelsohn@gnu.org>
6d62ac14 857 Ian Lance Taylor <ian@airs.com>
d70eadf7
DE
858
859 * function.c (assign_stack_local_1): Do not correct stack slot
860 address if allocation size is smaller than mode size.
861
c4f548b8
DN
8622005-08-04 Diego Novillo <dnovillo@redhat.com>
863
864 PR 22037
865 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
866 (tree_merge_blocks): Propagate anything allowed by
867 may_propagate_copy.
868 Clarify documentation.
869 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
870 SSA form, schedule an update if necessary.
871
2b7c3273
GP
8722005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
873
874 * doc/install.texi (Binaries): Remove broken link to
875 Sinix/Reliant Unix binaries.
876
b755446c
RH
8772005-08-03 Richard Henderson <rth@redhat.com>
878
879 PR 23221
880 * function.c (stack_protect_epilogue): Export.
881 * tree.h (stack_protect_epilogue): Declare.
882 * calls.c (expand_call): Call it.
883
7904f95f
EC
8842005-08-03 Eric Christopher <echristo@apple.com>
885
886 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
887 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
888 spec.
889
d783b2a2
JH
8902005-08-04 Jan Hubicka <jh@suse.cz>
891
892 * profile.c (branch_prob): Split edges with goto locus on them
893 to get proper line counts.
894 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
895
53366450
PB
8962005-08-03 Paul Brook <paul@codesourcery.com>
897
898 * function.c (assign_parms): Round current_function_args_size
899 to PARM_BOUNDARY, not STACK_BOUNDARY.
900
e81d37df
GK
9012005-08-03 Geoffrey Keating <geoffk@apple.com>
902
903 * config/i386/i386.c (x86_elf_aligned_common)
904 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
905
279072c8
ZD
9062005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
907
908 PR tree-optimization/23157
909 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
910 before emitting them.
911
9d2b0e12
VR
9122005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
913
914 PR tree-optimization/19899
915 * Makefile.in (tree-scalar-evolution.o): Add real.h.
916 * tree-scalar-evolution.c: Include real.h.
917 (add_to_evolution): Build constant -1 of correct type.
918
178df94f
JH
9192005-08-03 Jan Hubicka <jh@suse.cz>
920
921 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
922 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
923 profile updating for complette unrolling.
924 * loop-unroll.c (peel_loop_completely): Use it.
925 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
926 (tree_unroll_loops_completely): Disable code growing unrolling of cold
927 loops.
928
4164b2fb
PB
9292005-08-03 Paul Brook <paul@codesourcery.com>
930
931 * combine.c (can_change_dest_mode): New function.
932 (try_combine, simplify_set): Use it.
933
4e2b3c87
EB
9342005-08-03 Eric Botcazou <ebotcazou@adacore.com>
935
936 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
937 TFmode to BLKmode.
938
1d7887ca
GP
9392005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
940
941 * doc/install.texi (Specific): Adjust link to openavr.org.
942 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
943 (Binaries): Adjust HP-UX Porting Center link.
944 (Binaries): Adjust Free Software Foundation ordering link.
1d7887ca 945
c7f59e9c
AP
9462005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
947
948 * convert.c (convert_to_integer): Use fold_build1 instead of
949 build1 when converting an integer to an integer.
950
65030b76
RH
9512005-08-02 Richard Henderson <rth@redhat.com>
952
953 * combine.c (combine_instructions): Don't use reg_equal/equiv
954 results if the mode doesn't match.
955
6d1ab63a
MM
9562005-08-02 Mark Mitchell <mark@codesourcery.com>
957
958 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
959 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
960
6d90db3a
RH
9612005-08-02 Richard Henderson <rth@redhat.com>
962
963 PR 23196
7904f95f 964 * explow.c (memory_address): Remove special-case for
6d90db3a
RH
965 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
966
78234a86
DN
9672005-08-02 Diego Novillo <dnovillo@redhat.com>
968
969 PR 23164
970 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
971 number of calls to cleanup_tree_cfg_1.
972
5a006700
MR
9732005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
974
975 * doc/invoke.texi: document file extensions .F90 and .F95
976
237504fc
RG
9772005-08-02 Richard Guenther <rguenther@suse.de>
978
979 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
980 positive if its first argument is positive.
981
e63c84d8
RG
9822005-08-02 Richard Guenther <rguenther@suse.de>
983
984 PR tree-optimization/23177
985 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
986 on TMR_TAG.
987
08303d5b
JM
9882005-08-02 James A. Morrison <phython@gcc.gnu.org>
989
990 PR tree-optimization/23129
991 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
992 varying for divisions with anti-ranges.
993
5e5a504e
JH
9942005-08-02 Jan Hubicka <jh@suse.cz>
995
996 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
997 * tree-ssa-threadupdate.c (thread_block): Add it here.
998
4dbdb061
JW
9992005-08-01 James E Wilson <wilson@specifix.com>
1000
1001 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
1002 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
1003 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
1004 New.
1005 * config/mips/predicates.md (const_call_insn_operand): Add check for
1006 SYMBOL_REF_LONG_CALL_P.
1007 * doc/extend.texi (long_call): Document the new attribute.
1008
9e254451
ILT
10092005-08-01 Ian Lance Taylor <ian@airs.com>
1010 Richard Henderson <rth@redhat.com>
1011
1012 * Makefile.in (RTL_BASE_H): Add real.h.
1013 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
1014 instead of memcpy.
1015 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
1016 directly.
1017 * rtl.c (rtl_check_failed_code_mode): New.
1018 * rtl.h (struct rtx_def): Add u.rv.
1019 (XCMWINT, XCNMPRV): New.
1020 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
1021 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
1022
5671655e
RH
10232005-08-01 Richard Henderson <rth@redhat.com>
1024
75735872
RH
1025 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
1026 with auto-inc codes.
1027
5671655e
RH
1028 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
1029
72ce3d4a
JH
10302005-08-01 Jan Hubicka <jh@suse.cz>
1031
1032 * i386-protos.h (asm_preferred_eh_data_format): Declare.
1033 * i386.c: Include dwarf2.h
1034 (asm_preferred_eh_data_format): New.
1035 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
1036
23d28bfe
ILT
10372005-08-01 Ian Lance Taylor <ian@airs.com>
1038
1039 * config/host-linux.c (linux_gt_pch_get_address): Add new name
1040 randomize_va_space for virtual address randomization control.
1041
d6e14e8f
SB
10422005-08-01 Steven Bosscher <stevenb@suse.de>
1043
1044 * common.opt (flag_ipa_cp): Put in right place to maintain
1045 alphabetic sort.
1046
5ded7254
JH
10472005-08-01 Jan Hubicka <jh@suse.cz>
1048
1049 * profile.c (compute_value_histograms): Fix thinko.
1050 * value-prof.c: Include toplev.h
1051 (check_counter): New function.
1052 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
1053 tree_mod_subtract_transform): Add sanity check.
1054
a8f82ec4
RG
10552005-08-01 Richard Guenther <rguenther@suse.de>
1056
1057 PR tree-optimization/23133
1058 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
1059 current functions parameter decls to find defs to cse
1060 reciprocals of.
1061
ac264fef
RG
10622005-08-01 Richard Guenther <rguenther@suse.de>
1063
1064 PR tree-optimization/23109
1065 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
1066 If trapping math is in effect, use post-dominator information
1067 to check if we'd in any case reach a trapping point before
1068 doing the reciprocal insertion.
1069 (execute_cse_reciprocals): Compute post-dominators, if necessary.
1070 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
1071 expressions are invariant only if trapping math is not in effect.
1072
57fb5341
RL
10732005-08-01 Razya Ladelsky <razya@il.ibm.com>
1074
5a006700
MR
1075 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
1076 cgraph_function_versioning): New declarations.
1077 * cgraphunit.c: Add include to ipa-prop.h.
1078 (update_call_expr, cgraph_copy_node_for_versioning,
1079 cgraph_function_versioning): New functions.
1080 * integrate.c (copy_decl_for_inlining): Remove.
1081 * ipa-prop.h (ipa_replace_map): New struct.
1082 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
1083 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
1084 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
1085 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
1086 ipcp_iterate_stage, ipcp_method_scale_print,
1087 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
1088 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
1089 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
1090 ipcp_update_bb_counts, ipcp_update_profiling,
1091 ipcp_update_edges_counts): New functions.
1092 (ipcp_method_cval_init): Remove restriction regarding local methods.
1093 (ipcp_init_stage): Add ipcp_method_compute_scale.
1094 (ipcp_insert_stage): Add versioning.
1095 (ipcp_structures_print): Add ipcp_method_scale_print.
1096 (ipcp_driver): Dump profiling info.
1097 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
1098 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
1099 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
1100 (struct inline_data): Add versioning_p, ipa_info, new fields.
1101 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
1102 declare_return_variable): Replace calls to copy_decl_for_inlining with
1103 copy_decl_for_dup.
1104 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
1105 versioning support.
1106 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
1107 Add argument VERSIONING.
1108 (copy_arguments_for_versioning, copy_static_chain,
1109 function_versionable_p, tree_versionable_function_p,
1110 tree_function_versioning, replace_ref_tree): New functions.
1111 * tree-inline.h: Include varray.h.
1112 (tree_versionable_function_p, tree_function_versioning,
1113 tree copy_decl_for_dup): New declarations.
57fb5341
RL
1114
11152005-08-01 Razya Ladelsky <razya@il.ibm.com>
1116
5a006700
MR
1117 * ipa-cp.c: New file. Contains IPCP specific functionality.
1118 * ipa-prop.h: New file. Contains structures/definitions that can be
1119 used by several interprocedural data flow optimizations (and also IPCP).
1120 * ipa-prop.c: New file.
1121 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
1122 * common.opt: Add ipa-cp flag.
1123 * timevar.def: Add IPCP optimization.
1124 * tree-optimize.c (init_tree_optimization_passes): Schedule
1125 pass_ipa_cp.
1126 * tree-pass.h (pass_ipa_cp): Declare.
57fb5341 1127
569b7f6a
KH
11282005-08-01 Kazu Hirata <kazu@codesourcery.com>
1129
1130 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
1131 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
1132 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
1133 config/i386/i386.c, config/mips/mips.h,
1134 config/rs6000/rs6000.h, config/sh/sh.c,
1135 config/stormy16/stormy16.c: Fix comment typos.
1136
5922c215
JM
11372005-08-01 Joseph S. Myers <joseph@codesourcery.com>
1138
1139 PR c/22311
1140 * c-typeck.c (build_binary_op): Use common_type wrapper on
1141 shortened types.
1142 (common_type): Update comment.
1143
a3f4b7d8
SB
11442005-07-31 Steven Bosscher <stevenb@suse.de>
1145
1146 PR target/23095
1147 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
1148 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
1149 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
1150
baf7a0d3
JH
11512005-07-31 Jan Hubicka <jh@suse.cz>
1152
1153 * pretty-print.h (pp_widest_integer): New macro.
1154 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
1155 counts.
1156
7dcbf659
JH
11572005-07-31 Jan Hubicka <jh@suse.cz>
1158
1159 * output.h (enum section_category): Export from varasm.c
1160 (categorize_decl_for_section): Likewise.
1161 * varasm.c (enum section_category): Kill.
1162 (categorize_decl_for_section): Make global.
1163 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
1164 Declare.
1165 * i386.c (ix86_section_threshold): New static variable.
1166 (ix86_in_large_data_p, ix86_encode_section_info,
1167 x86_64_elf_unique_section,
1168 x86_64_elf_select_section): New functions.
1169 (TARGET_ENCODE_SECTION_INFO): Define
1170 (override_options): Enable medium model for PIC.
1171 (ix86_expand_prologue): Expand gen_set_got_rex64.
1172 (legitimate_constant_p): Handle new UNSPECs.
1173 (legitimate_pic_address_disp_p): Likewise.
1174 (legitimize_pic_address): Lower MEDIUM model addressing.
1175 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
1176 (enum cmodel): Add MEDIUM_PIC.
1177 (SYMBOL_REF_FAR_ADDR_P): New macro.
1178 (SYMBOL_FLAG_FAR_ADDR): New flag.
1179 * i386.md (movdi): Support medium model.
1180 (set_got_rex64): New pattern.
1181 * i386.opt (mlarge-data-threshold): New flag.
1182 * predicates.md (zext_operand/sext_operand): Deal with medium model.
1183 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
1184 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
1185 TARGET_ASM_UNIQUE_SECTION): New.
1186
1187 * invoke.texi (-mlarge_data_threshold): Document
1188
0bde02b3
JH
11892005-07-31 Jan Hubicka <jh@suse.cz>
1190
1191 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
1192 (coalesce_vars): Likewise.
1193 * tree-ssa-live.c (coalesce_cost): New.
1194 (build_tree_conflict_graph): Use coalesce_cost.
1195 * tree-ssa-live.h (coalesce_cost): Declare.
1196
a4ccc336
RE
11972005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
1198
1199 * arm.md (all peepholes for post-increment operations): Delete.
1200 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
1201 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
1202 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
1203 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
1204 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
1205
06581725
JM
12062005-07-30 James A. Morrison <phython@gcc.gnu.org>
1207
1208 * fold-const.c (tree_expr_nonnegative_p): Always return true for
1209 non-integral types.
1210
0cbc4d77 12112005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
d6e14e8f 1212
0cbc4d77
WB
1213 PR target/22582
1214 * doc/invoke.texi: Document -rdynamic.
d6e14e8f 1215
91d975b8
JM
12162005-07-30 Joseph S. Myers <joseph@codesourcery.com>
1217
1218 PR c/23143
1219 * c-parser.c (c_parser_parms_list_declarator): Call
1220 mark_forward_parm_decls.
1221 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
1222 decls with visibility structure.
1223
f26b8ec9
PB
12242005-07-30 Paul Brook <paul@codesourcery.com>
1225
1226 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
1227
a14b88bb
PB
12282005-07-30 Paul Brook <paul@codesourcery.com>
1229
1230 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1231 prototype.
1232 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
1233 value for mode.
1234 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
1235
7c47d6e9
JM
12362005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1237
1238 PR c/529
1239 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
1240 nested function declarators.
1241 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
1242 (grokparms): Call warn_if_shadowing for parameters used within the
1243 parameter list.
1244 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
1245 not used within the parameter list.
1246 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
1247
3bc751bd
JH
12482005-07-30 Jan Hubicka <jh@suse.cz>
1249
1250 * expr.c (expand_expr_real_1): Do not load mem targets into register.
1251 * i386.c (ix86_fixup_binary_operands): Likewise.
1252 (ix86_expand_unary_operator): Likewise.
1253 (ix86_expand_fp_absneg_operator): Likewise.
1254 * optabs.c (expand_vec_cond_expr): Validate dest.
1255
bc1594c1
JM
12562005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1257
1258 PR c/21720
1259 * real.c (real_from_string): Also set last bit if there is a
1260 nonzero hex digit beyond GCC's internal precision after ".".
1261
3aca4bff
DE
12622005-07-29 David Edelsohn <edelsohn@gnu.org>
1263
1264 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
1265 define_constants. Change duplicate values to unassigned numbers.
1266 Change UNSPEC_SUBS to UNSPEC_VSUBS.
1267 (*altivec_vspltsf): New.
1268 (altivec_vperm_v4sf): Delete.
1269 (altivec_vperm_<mode>): Use mode macro V.
1270 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
1271 (altivec_predicate_v4sf): Delete.
1272 (altivec_predicate_<mode>): Use mode macro V.
1273 (*altivec_lvesfx): New.
1274 (*altivec_stvesfx): New.
1275 (vec_realign_load_v4sf): Delete.
1276 (vec_realign_load_<mode>): Use mode macro V.
1277 * config/rs6000/rs6000.c (generate_set_vrsave): Use
1278 UNSPECV_SET_VRSAVE.
1279
b28250ab
MM
12802005-07-29 Mark Mitchell <mark@codesourcery.com>
1281
1282 PR bootstrap/23131
1283 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7904f95f 1284 string.
b28250ab
MM
1285 * configure: Regenerated.
1286
eae50c87
PB
12872005-07-29 Paul Brook <paul@codesourcery.com>
1288
1289 * doc/install.texi: Add link to GFortran binaries wiki page.
1290
79dad081
DU
12912005-07-29 David Ung <davidu@mips.com>
1292
1293 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
1294 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
1295 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
1296 * config/mips/mips.md (cpu): Add 5kf name.
1297 (includes): Includes 5k.md.
1298 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
1299 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7904f95f 1300 -march flag.
79dad081 1301
89e80dd4
DN
13022005-07-29 Diego Novillo <dnovillo@redhat.com>
1303
1304 PR 22550
1305 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
1306 (cleanup_tree_cfg): ... here.
1307 Call cleanup_tree_cfg_1 until there are no more cleanups to
1308 do.
1309
d2f3ffba
JM
13102005-07-29 James A. Morrison <phython@gcc.gnu.org>
1311
1312 * tree-vrp.c (compare_range_with_value): Return true or false
1313 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
1314 EQ_EXPR respectively.
1315
536fa7b7
KH
13162005-07-29 Kazu Hirata <kazu@codesourcery.com>
1317
1318 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
1319 Fix comment typos.
1320
6a2cf9dc
DN
13212005-07-29 Diego Novillo <dnovillo@redhat.com>
1322
1323 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
1324 (tree_ssa_dominator_optimize): Increment it.
1325 (dump_dominator_optimization_stats): Print it.
1326
abf86bf2
RE
13272005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
1328 Steven Bosscher <stevenb@suse.de>
1329
1330 PR rtl-optimization/23117
1331 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
1332 when head == tail. Tidy comment.
1333
37cf6116
RH
13342005-07-28 Richard Henderson <rth@redhat.com>
1335
1336 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
1337 * cselib.c (rtx_equal_for_cselib_p): Likewise.
1338 * jump.c (rtx_renumbered_equal_p): Likewise.
1339 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
1340 CONST_INT and CONST_DOUBLE.
1341 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
1342 * reload.c (operands_match_p): Special case CONST_INT and
1343 CONST_DOUBLE; check mode earlier.
1344
13b22d3a
JM
13452005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1346
1347 PR c/22240
1348 * c-typeck.c (convert_for_assignment): Do not check
1349 DECL_IN_SYSTEM_HEADER on NULL fundecl.
1350
ca8bdb78
JM
13512005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1352
1353 PR c/22192
1354 * c-typeck.c (composite_type): Prefer constant size arrays to
1355 VLAs.
1356
b608d27a
JM
13572005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1358
1359 PR c/21720
1360 * real.c (real_from_string): Set last bit if there is a nonzero
1361 hex digit beyond GCC's internal precision.
1362
a560c83a
RH
13632005-07-28 Richard Henderson <rth@redhat.com>
1364
1365 PR rtl-opt/22619
1366 * cfgcleanup.c (try_forward_edges): Watch out for end of
1367 insn chain.
1368
66f33c03
JW
13692005-07-28 James E Wilson <wilson@specifixinc.com>
1370
1371 PR c/23106
1372 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
1373
c5a4444c
JH
13742005-07-28 Jan Hubicka <jh@suse.cz>
1375
8a76829c
JH
1376 * Makefile.in (rtl-profile.o): Kill all traces of it.
1377 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
1378 * coverage.h (rtl_coverage_counter_ref): Kill.
1379 * opts.c (flag_speculative_prefetching_set): Kill.
1380 (flag_loop_optimize_set): New.
1381 (common_handle_option): Disable loop optimizer when profiling;
1382 do not handle speculative prefetching.
1383 * passes.c (init_optimization_passes): Replace pass_profiling combo
1384 by branch_prob pass.
1385 * profile.c (compute_value_histograms): Update for simplified value
1386 profiles.
1387 (rtl_register_profile_hooks): Kill.
1388 (pass_profiling): Kill.
1389 (rest_of_handle_branch_prob): Do not profile.
1390 * toplev.c (process_options): Remove speculative prefetching.
1391 * toplev.h (flag_tree_based_profiling): Kill.
1392 * tree-profile.c (prepare_instrumented_value,
1393 tree_gen_interval_profiler, tree_gen_pow2_profiler,
1394 tree_gen_one_value_profiler, do_tree_profiling): Update for
1395 simplified datastructures.
1396 * value-prof.c: Add comment that speculative prefetching was dropped;
1397 update rest of file for simplified datastructures.
1398 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
1399 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
1400 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
1401 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
1402 rtl_mod_subtract, gen_speculative_prefetch,
1403 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
1404 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
1405 (gate_handle_value_profile_transformations,
1406 rest_of_handle_value_profile_transformations,
1407 pass_value_profile_transformations): Kill.
1408 * value-prof.h (histogram_value_t): Remove IL based unions.
1409 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
1410 rtl_profile_hooks): Remove hooks.
1411
1412 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
1413
c5a4444c
JH
1414 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
1415 (cgraph_clone_node): Likewise.
1416 * cgraph.h (cgraph_clone_edge): Update prototype.
1417 (cgraph_clone_node): Likewise.
1418 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
1419 cgraph_clone_node.
1420 (lookup_recursive_calls): Consider profile.
1421 (cgraph_decide_recursive_inlining): Fix updating; use new
1422 probability argument; use profile.
1423 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
1424 * tree-inline.c (copy_bb): Update clal of clone_edge.
1425 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
1426
1427 * invoke.texi (min-inline-recursive-probability): Document.
1428
ccf548a7
GP
14292005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1430
1431 * doc/install.texi (Configuration): Update Valgrind homepage.
1432
2c97f8e4
RH
14332005-07-28 Richard Henderson <rth@redhat.com>
1434
407ab83b 1435 PR middle-end/21362
2c97f8e4
RH
1436 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
1437 labels we want to delete.
1438 (cfg_layout_merge_blocks): Likewise.
1439
b188ebb1
RH
14402005-07-28 Richard Henderson <rth@redhat.com>
1441
1442 PR target/17692
d6e14e8f
SB
1443 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
1444 when expanding to nothing.
b188ebb1 1445
facc20ee
JC
14462005-07-28 Josh Conner <jconner@apple.com>
1447
1448 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
1449 (cgraph_decide_inlining_of_small_functions): Likewise.
1450
9de21a23
JC
14512005-07-28 Josh Conner <jconner@apple.com>
1452
1453 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
1454 direction of badness if negative.
1455 (cgraph_default_inline_p): Add reason to parameters, and assign it
1456 a value.
1457 (cgraph_decide_inlining_of_small_functions): New parameter in call
1458 to cgraph_default_inline_p.
1459 (cgraph_decide_inlining_incrementally): Likewise.
1460 * cgraphunit.c (decide_is_function_needed): Likewise.
1461 * cgraph.h (cgraph_default_inline_p): Likewise.
1462
206048bd
VR
14632005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1464
1465 * builtins.c: Fix comment typo(s).
1466 * genautomata.c: Likewise.
1467 * gimplify.c: Likewise.
1468 * tree-dfa.c: Likewise.
1469 * tree-flow-inline.h: Likewise.
1470 * tree-into-ssa.c: Likewise.
1471 * tree-ssa-alias.c: Likewise.
1472 * tree-ssa-ccp.c: Likewise.
1473 * tree-ssa-copy.c: Likewise.
1474 * tree-ssa-dce.c: Likewise.
1475 * tree-ssa-dom.c: Likewise.
1476 * tree-ssa-operands.c: Likewise.
1477 * tree-tailcall.c: Likewise.
1478 * tree-vectorizer.c: Likewise.
1479 * tree-vrp.c: Likewise.
1480 * tree.c: Likewise.
1481
d579f20b
JL
14822005-07-28 Jeff Law <law@redhat.com>
1483
d6e14e8f
SB
1484 * tree-vrp.c (test_for_singularity): Extracted from ...
1485 (simplify_cond_using_ranges): Attempt to simplify a relational
1486 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
d579f20b 1487
5bb1823d
DN
14882005-07-28 Dorit Nuzman <dorit@il.ibm.com>
1489
1490 PR tree-optimization/22506
1491 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
1492 phis whose argument is constant.
1493
b92ba6ff
R
14942005-07-28 J"orn Rennecke <joern.rennecke@st.com>
1495
1496 PR rtl-optimization/18992
1497 Back out this patch:
1498 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1499 PR optimization/12142
1500 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1501 uses of the register in the SET_SRC. Remove unnecessary argument.
1502
1503 Replace it with this:
1504 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
1505 if flag_non_call_exceptions is set and the insn may trap, pass
1506 pc_rtx as dest for recursion.
1507 In SET_SRC part of SET case, if dest is already set, pass it down
1508 unchanged.
1509
09bac500
JH
15102005-07-28 Jan Hubicka <jh@suse.cz>
1511
1512 * cfg.c (update_bb_profile_for_threading): Use RDIV.
1513 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
1514 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
1515 roundoff errors.
1516 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
1517 profile when available.
1518
15192005-07-28 Jan Beulich <jbeulich@novell.com>
a71aef0b
JB
1520
1521 * config/ia64/ia64.c (ia64_load_pair_ok): New.
1522 (ia64_print_operand): Describe and handle 'X'.
1523 (ia64_register_move_cost): Also handle FP_REGS.
1524 (ia64_preferred_reload_class): Likewise.
1525 (ia64_secondary_reload_class): Likewise.
1526 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
1527 it. Also check for ITANIUM_CLASS_FLDP.
1528 * config/ia64/ia64.h (FP_REGNO_P): New.
1529 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
1530 (reg_class): Add FP_REGS.
1531 (REG_CLASS_NAMES): Adjust for it.
1532 (REG_CLASS_CONTENTS): Likewise.
1533 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
1534 (REG_CLASS_FROM_LETTER): Handle 'x'.
1535 (CLASS_MAX_NREGS): Handle FP_REGS.
1536 (MEMORY_MOVE_COST): Likewise.
1537 * config/ia64/ia64.md (itanium_class): Add fldp.
1538 (type): Handle fldp.
1539 (movti_internal): More allowable operand combinations. Use ldfp8 when
1540 splitting unnecessary. Remove predicable attribute. Adjust
1541 itanium_class attribute.
1542 (smuldi3_highpart): Remove outdated comment.
1543 (mulditi3, umulditi3, rotlti3): New expanders.
1544 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
1545 (absti2): Disabled new insn for future reference.
1546 Respective new splitters.
1547 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
1548 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
1549 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
1550
77d1d8e0
JM
15512005-07-25 James A. Morrison <phython@gcc.gnu.org>
1552
1553 PR rtl-optimization/23047
1554 * simplify-rtx.c (simplify_const_relational_operation): Respect
1555 flag_wrapv for comparisons with ABS.
1556
ff08cbee
JM
15572005-07-27 James A. Morrison <phython@gcc.gnu.org>
1558
1559 PR tree-optimization/22493
1560 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
1561 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
1562
38c28a25
AH
15632005-07-27 Aldy Hernandez <aldyh@redhat.com>
1564
1565 * config/frv/frv.opt (moptimize-membar): New.
1566
1567 * doc/invoke.texi: Document -moptimize-membar and its inverse.
1568
1569 * config/frv/frv.h: Remove machine_function definition.
1570
d6e14e8f
SB
1571 * config/frv/frv.c (struct frv_io): New.
1572 (struct machine_function): Moved from frv.h. Add has_membar_p.
1573 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
1574 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
1575 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
1576 (frv_optimize_membar_global, frv_optimize_membar): New functions.
1577 (frv_reorg): Call frv_optimize_membar when appropriate.
1578 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
1579 (frv_expand_builtin): Adjust calls accordingly.
1580 (frv_io_address_cookie): New function.
1581 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
1582 load or store rather than a special insn. Add ccnstant address and
1583 io-type operands to the membar.
38c28a25
AH
1584 (frv_ifcvt_modify_tests): Unsign regno.
1585 (frv_ifcvt_modify_tests): Same.
1586
1587 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
1588 UNSPEC_OPTIONAL_MEMBAR constant.
1589 (builtin_read_<mode>): Delete.
1590 (builtin_write_<mode>): Delete.
1591 ("optional_membar_<mode>"): Add operand.
1592
1593 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
1594 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
1595 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
1596 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
1597 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
1598 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
1599 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
1600 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
1601 * testsuite/gcc.target/frv/all-read-write-1.c: New.
1602
47c504ea
KK
16032005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
1604
1605 * df.c (df_uses_record): Handle SCRATCH.
1606
ef11c839
SB
16072005-07-28 Steven Bosscher <stevenb@suse.de>
1608
1609 PR debug/20161
1610 * passes.c (rest_of_decl_compilation): If decl is a type and
1611 we have encountered errors, don't emit debug information.
1612
1eb68dca 16132005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
ef11c839 1614
1eb68dca 1615 * params.def: Fixed comment.
7904f95f 1616
10252a62
BH
16172005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
1618
1619 PR target/19885
1620 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
1621 (TARGET_ASM_UNALIGNED_HI_OP): Add.
1622 (TARGET_ASM_UNALIGNED_SI_OP): Add.
1623
e4598783
SB
16242005-07-27 Steven Bosscher <stevenb@suse.de>
1625
1626 PR c++/22003
1627 * varasm.c (assemble_start_function): Don't do anything that may
1628 require a CFG if the current function is a thunk.
1629
a9fdd472
GK
16302005-07-25 Geoffrey Keating <geoffk@apple.com>
1631
1632 * doc/install.texi (Prerequisites): Mention that perl is needed
1633 to do export control in libstdc++ targetting Darwin.
1634
2bd1e239
SB
16352005-07-27 Steven Bosscher <stevenb@suse.de>
1636
1637 PR rtl-optimization/17808
1638 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
1639 (sched_insns_conditions_mutex_p): Split out from...
1640 (add_dependence): ...here. But don't call it from here.
1641 (add_dependence_list): Check sched_insns_conditions_mutex_p
1642 before calling add_dependence.
1643 (add_dependence_list_and_free): Likewise.
1644 (fixup_sched_groups): Likewise.
1645 (sched_analyze_1): Likewise.
1646 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
1647 (sched_analyze): Likewise.
1648 (sched_analyze_insn): Likewise.
1649 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1650 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
1651 dependencies on all COND_EXEC insns to jumps ending basic blocks
1652 when doing intrablock scheduling.
1653 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
1654
880031e1
JL
16552005-07-27 Jeff Law <law@redhat.com>
1656
1657 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
1658 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
1659 equivalency sets, correctly handle the case were vr0 has an
1660 equivalency set, but vr1 does not.
1661
b940ce0e
DN
16622005-07-27 Dorit Nuzman <dorit@il.ibm.com>
1663
1664 PR tree-optimization/23073
7904f95f 1665 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
b940ce0e
DN
1666 vect_print_dump_info before fprintf.
1667
26c40640
ZD
16682005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1669
1670 PR tree-optimize/22348
1671 * tree-ssa-loop-niter.c (number_of_iterations_cond):
1672 Fold the partial computation.
1673
3ac01fde
ZD
16742005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1675
1676 PR tree-optimization/22325
1677 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
1678 Declare.
1679 * tree-scalar-evolution.c (scev_const_prop): Add generic final
1680 value replacement.
1681 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
1682 (force_var_cost): ... this function.
1683 (compute_phi_arg_on_exit): Export.
1684
77fcaf4b
ZD
16852005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1686
1687 PR tree-optimization/20773
1688 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
1689 edge.
1690
c11b0231
RG
16912005-07-27 Richard Guenther <rguenther@suse.de>
1692
1693 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
1694 Avoid pushing again if current struct contains only
1695 fields we decomposed.
1696
57a73709
JH
16972005-07-27 Jan Hubicka <jh@suse.cz>
1698
093c2329
JH
1699 PR tree-optimization/22574
1700 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
1701 not available.
1702
23504559
JH
1703 * tree-tailcall.c (decrease_profile): New function.
1704 (eliminate_tail_call): Use it.
1705
57a73709
JH
1706 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
1707 visibility flags correctly in whole program mode.
1708
b5395c33
SE
17092005-07-26 Steve Ellcey <sje@cup.hp.com>
1710
1711 PR rtl-optimization/22472
1712 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
1713
86979811
SB
17142005-07-26 Steven Bosscher <stevenb@suse.de>
1715
1716 PR tree-optimization/22504
1717 * tree-complex.c (expand_complex_addition): Use 'code' instead
1718 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
1719
faf9ab98
AH
17202005-07-26 Aldy Hernandez <aldyh@redhat.com>
1721
1722 * config.gcc (cpu_type): Add frv case.
1723 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
1724 (supported_defaults): Add fr550 case.
1725
31521cd4
DN
17262005-07-26 Diego Novillo <dnovillo@redhat.com>
1727
1728 PR 22591
1729 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
1730 whether a pointer of type T * may point to objects of type T *.
1731
45499411
DD
17322005-07-26 DJ Delorie <dj@redhat.com>
1733
1734 * configure: Regenerate.
1735
576a4795
DJ
17362005-07-26 Dale Johannesen <dalej@apple.com>
1737
1738 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
1739
526635cb
MM
17402005-07-26 Mark Mitchell <mark@codesourcery.com>
1741
1742 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
1743 Clarify use of "build" in name.
1744
c14ff86e
AH
17452005-07-26 Aldy Hernandez <aldyh@redhat.com>
1746
1747 * doc/extend.texi (Raw read/write Functions): New section.
1748 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
1749 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
1750 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
1751 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
1752 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
1753 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
1754 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
1755 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
1756 * config/frv/frv.c: Add bdesc_loads global.
1757 Add bdesc_stores global.
1758 (frv_init_builtins): Add support for __builtin_{read/write}*.
1759 (frv_volatile_memref): New.
1760 (frv_expand_load_builtin): New.
1761 (frv_expand_store_builtin): New.
1762 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
1763 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
1764 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
1765 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
1766 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
1767 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
1768 (builtin_read_<mode>): New.
1769 (builtin_write_<mode>): New.
1770 (builtin_write64): New.
1771 (optional_membar_<mode>): New.
1772
db487452
R
17732005-07-26 J"orn Rennecke <joern.rennecke@st.com>
1774
1775 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
1776 (rather than units) against HOST_BITS_PER_WIDE_INT.
1777
783455db
KH
17782005-07-26 Kazu Hirata <kazu@codesourcery.com>
1779
1780 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
1781 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
1782 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
1783 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
1784 FSF address.
1785
a4174ebf
KH
1786 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
1787 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
1788 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
1789 comment typos.
1790 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
1791
46c0a59d
RG
17922005-07-26 Richard Guenther <rguenther@suse.de>
1793
1794 PR tree-optimization/22486
1795 * fold-const.c (fold_unary): Fold away useless component
1796 references of the form (T *)&T.x, if the address
1797 doesn't change.
1798
3e2844cb
JW
17992005-07-25 James E Wilson <wilson@specifixinc.com>
1800
1801 * dwarf2out.c (add_call_src_coords_attributes): New.
1802 (gen_inlined_subroutine_die): Call it.
1803 (maybe_emit_file, init_file_table): Add comments.
1804 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
1805 maybe_emit_file.
1806 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
1807 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
1808 * tree.h (BLOCK_SOURCE_LOCATION): New.
1809 (struct tree_block): New field locus.
1810
9275de65
AS
18112005-07-26 Andreas Schwab <schwab@suse.de>
1812
1813 PR rtl-optimization/23043
1814 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
1815 when allocating a struct unoccr.
1816
5306ec31
RH
18172005-07-25 Richard Henderson <rth@redhat.com>
1818
1819 PR 22626
1820 * tree-complex.c (gate_no_optimization): True if errors.
1821 * Makefile.in (tree-complex.o): Update dependencies.
1822
bfa653b3
AH
18232005-07-25 Aldy Hernandez <aldyh@redhat.com>
1824
1825 * config/frv/predicates.md (integer_register_operand): Use
1826 GPR_AP_OR_PSEUDO_P.
1827
43e364dd
AP
18282005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1829
1830 PR tree-opt/22484
1831 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
1832 after fold.
1833 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1834
c72f711f
AP
18352005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1836
1837 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1838 types when flag_unsafe_math_optimizations is true.
1839
160633c6
MM
18402005-07-25 Mark Mitchell <mark@codesourcery.com>
1841
1842 * gcc.c (option_map): Add --sysroot.
1843 (process_command): Handle --sysroot.
1844 (display_help): Document it.
1845 * doc/cppopts.tex (-isysroot): Document.
1846 * doc/invoke.texi (--sysroot): Document.
1847 * doc/install.texi (--with-build-sysroot): Document.
1848
1849 * Makefile.in (inhibit_libc): New variable.
1850 (INHIBIT_LIBC_CFLAGS): Likewise.
1851 (LIBGCC2_CFLAGS): Include
1852 $(INHIBIT_LIBC_CFLAGS).
1853 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1854 ($(T)crtbegin.o): Do not use @inhibit_libc@.
1855 ($(T)crtend.o): Likewise.
1856 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1857 ($(T)crtendS.o): Likewise.
1858 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1859 ($(T)crtendT.o): Likewise.
1860 (stmp-fixinc): Do not complain about missing headers if
1861 inhibit_libc.
1862 * configure.ac (inhibit_libc): Set it to true/false.
1863 (--with-build-sysroot): New option. Use it to set
7904f95f 1864 SYSTEM_HEADER_DIR.
160633c6
MM
1865 * configure: Regenerated.
1866
1490f93a
MH
18672005-07-25 Manfred Hollstein <mh@suse.com>
1868
1869 * calls.c (store_one_arg): Fix unsigned comparison warning.
1870
76e20664
SB
18712005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1872
1873 PR other/22337
1874 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1875 (ggc_print_statistics): Initialize variable before use.
1876
5c97e2de
RG
18772005-07-25 Richard Guenther <rguenther@suse.de>
1878
1879 * tree-dfa.c (mark_new_vars_to_rename): Protect against
1880 calling with a PHI_NODE argument.
1881
1882 * tree-flow-inline.h (overlap_subvar): Protect against
1883 possible overflow.
1884
7fefc172
PB
18852005-07-25 Paolo Bonzini <bonzini@gnu.org>
1886
1887 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1888 * configure: Regenerate.
1889
86a07404
IR
18902005-07-25 Ira Rosen <irar@il.ibm.com>
1891
1892 * expr.c (highest_pow2_factor): Make extern.
1893 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1894 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1895 record_array_differ_p, array_ptr_differ_p): Likewise.
1896 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1897 additional cases. Call the above functions.
1898 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1899 base_object_differ_p when there are two base objects. Otherwise, compare
1900 base address and offset. Call may_alias_p.
1901 (dump_data_reference): Use a correct field name.
1902 (analyze_array): Make static. Initialize new data-ref fields.
1903 (analyze_indirect_ref): New function.
7904f95f
EC
1904 (init_data_ref): Initialize new data-ref fields.
1905 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
1906 (analyze_offset_expr, get_ptr_offset, address_analysis,
1907 object_analysis): Likewise.
86a07404 1908 (analyze_offset): New function.
86979811 1909 (create_data_ref): Likewise.
86a07404
IR
1910 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1911 dimensions for ARRAY_REFs only.
1912 (build_classic_dist_vector): Make static.
1913 (access_functions_are_affine_or_constant_p): Call macro to get the
1914 address of access functions.
1915 (compute_all_dependences): Add new parameter
7904f95f 1916 compute_self_and_read_read_dependences. Compute self and read-read
86a07404
IR
1917 dependences if it is true.
1918 (find_data_references_in_loop): Call create_data_ref. Initialize new
1919 data-ref fields.
1920 (compute_data_dependences_for_loop): Add new parameter
1921 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
1922 compute nb_loops. Call compute_all_dependences,
1923 build_classic_dist_vector and build_classic_dir_vector with correct
1924 parameters.
1925 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1926 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
1927 (free_data_refs): Call macro to free access functions.
1928 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1929 fields from stmt_vinfo.
1930 (struct base_object_info): New structure.
7904f95f 1931 (struct data_reference): Move fields to base_object_info. Add fields
86a07404 1932 first_location and object_info for above structures. Move fields from
7fefc172
PB
1933 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1934 aligned_to. Add macros to access the new fields.
86a07404
IR
1935 Update functions declarations.
1936 * tree-flow.h (is_aliased_with): Declare.
1937 * tree-loop-linear.c (linear_transform_loops): Call
1938 compute_data_dependences_for_loop with correct parameters.
1939 * tree-ssa-alias.c (is_aliased_with): New function.
86979811 1940 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
86a07404
IR
1941 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1942 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1943 vect_base_addr_differ_p, compute_subscript_distance and
1944 build_classic_dist_vector. Add printings. Check absolute value of
1945 distance.
7fefc172
PB
1946 (vect_analyze_data_ref_dependences): Go through ddrs instead of
1947 data-refs.
86a07404
IR
1948 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1949 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1950 to bytes. Add printing.
7fefc172
PB
1951 (vect_compute_data_refs_alignment): Go through loads and stores in one
1952 loop.
86a07404
IR
1953 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1954 vect_analyze_data_ref_access): Likewise.
1955 (vect_analyze_pointer_ref_access): Remove.
1956 (vect_address_analysis, vect_object_analysis): Likewise.
1957 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1958 and analyze data-refs in the loop.
7fefc172
PB
1959 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1960 fields of data-ref instead of stmt. Add init to the offset from the
1961 base.
86a07404
IR
1962 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1963 (vect_update_init_of_dr): Likewise.
1964 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
1965 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1966 removed fields.
86a07404
IR
1967 (new_loop_vec_info): Initialize new fields.
1968 (destroy_loop_vec_info): Free new fields.
1969 (vect_strip_conversion): Remove.
1970 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1971 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7904f95f 1972 datarefs. Add new field ddrs.
86a07404
IR
1973 Add macros for the new fields access.
1974 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1975 base_aligned_p, misalignment, memtag, ptr_info and subvars.
1976 Remove their macros.
1977 * tree.h (highest_pow2_factor): Declare.
1978
0dc42b03
JJ
19792005-07-25 Jakub Jelinek <jakub@redhat.com>
1980
1981 * calls.c (store_one_arg): Check for sibling call MEM arguments
1982 from already clobbered incoming argument area.
1983
104f8784
KG
19842005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1985
1986 * c-common.c (check_missing_format_attribute): New.
1987 * c-common.h (check_missing_format_attribute): Likewise.
1988 * c-typeck.c (convert_for_assignment): Use it.
1989
1b8452d0
AS
19902005-07-24 Andreas Schwab <schwab@suse.de>
1991
1992 * config/m68k/m68k.md ("extendqidi2"): When source is an address
1993 register use a word move. Correct operand of ext.w in 68000 code.
1994
2b402955
MM
19952005-07-23 Mark Mitchell <mark@codesourcery.com>
1996
1997 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1998 variables as declarations, rather than definitions.
1999
c8af1197
IR
20002005-07-24 Ira Rosen <irar@il.ibm.com>
2001
86979811
SB
2002 PR tree-optimization/22526
2003 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
2004 of the zero node.
c8af1197 2005
1b135aa5
FXC
20062005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2007
2008 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
2009 that C99 reserve for future use. Use it to define clog10,
2010 clog10f and clog10l.
2011
ac0f3f39
KG
20122005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2013
2014 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
2015 * configure.ac: Check for -Wmissing-format-attribute.
7904f95f 2016
ac0f3f39
KG
2017 * configure: Regenerate.
2018
db753fa1
RH
20192005-07-23 Richard Henderson <rth@redhat.com>
2020
2021 PR tree-optimization/22623
2022 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
2023
28f155be
GB
20242005-07-23 Giovanni Bajo <giovannibajo@libero.it>
2025
2026 PR target/22577
2027 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
2028
db857e7d
KG
20292005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2030
2031 * Makefile.in (C_TREE_H): Update dependencies.
2032 * c-tree.h: Include toplev.h.
2033 * diagnostic.h (diagnostic_set_info): Add format attribute.
2034 * rtl-error.c (diagnostic_for_asm): Likewise.
2035
118ea793
CF
20362005-07-23 Chao-ying Fu <fu@mips.com>
2037
2038 * config/mips/mips-dsp.md: New file.
2039 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
2040 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
2041 functions.
2042 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
2043 MIPS_BUILTIN_BPOSGE32.
2044 (mips_expand_builtin_direct): Add one parameter to indicate that
2045 builtin functions need to return a value.
2046 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
2047 functions.
2048 (mips_regno_to_class): Add classes for 12 new DSP registers.
2049 (mips_subword): Change to check four HI registers.
2050 (mips_output_move): Output move to and from 6 new DSP accumulators.
2051 (override_options): Make sure -mdsp and -mips16 are not used together.
2052 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
2053 for machine modes.
2054 (mips_conditional_register_usage): Disable 6 new DSP accumulators
2055 when !TARGET_DSP.
2056 (print_operand): Add 'q' for printing DSP accumulators.
2057 (mips_cannot_change_mode_class): Check ACC_REGS.
2058 (mips_secondary_reload_class): Check ACC_REGS.
2059 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
2060 (mips_register_move_cost): Check ACC_REGS.
2061 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
2062 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
2063 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
2064 (dsp_bdesc): New array.
2065 (bdesc_arrays): Add DSP builtin function table.
2066 (mips_prepare_builtin_arg): Check predicate again after
2067 copy_to_mode_reg.
2068 (mips_expand_builtin): Add one more parameter to
2069 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
2070 MIPS_BUILTIN_BPOSGE32.
2071 (mips_init_builtins): Initialize new function types.
2072 (mips_expand_builtin_direct): Check if builtin functions need to
2073 return a value and pass operands properly.
2074 (mips_expand_builtin_bposge): New function.
2075 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
2076 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
2077 (FIRST_PSEUDO_REGISTER): Increase to 188.
2078 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2079 Update for 12 new DSP registers.
2080 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
2081 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
2082 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
2083 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
2084 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
2085 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
2086 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
2087 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
2088 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
2089 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
2090 (REGISTER_NAMES): Add names for 12 new DSP registers.
2091 * config/mips/mips.md: Include mips-dsp.md.
2092 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2093 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2094 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2095 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2096 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2097 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2098 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2099 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2100 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2101 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2102 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2103 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2104 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2105 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2106 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2107 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2108 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2109 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2110 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2111 (UNSPEC_RDDSP): New constants.
2112 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
2113 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
2114 A<-d alternative.
2115 * config/mips/mips.opt (-mdsp): New option.
2116 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
2117 (reg_imm10_operand): New predicates.
2118 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
2119 * doc/invoke.texi (-mdsp): Document new option.
2120
d2fcbf6f
DD
21212005-07-22 DJ Delorie <dj@redhat.com>
2122
2123 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
2124 to warning calls.
2125 * tree-inline.c (inlinable_function_p): Likewise.
2126
9881e3e5
MM
21272005-07-22 Mark Mitchell <mark@codesourcery.com>
2128
2129 PR debug/21828
2130 * toplev.c (check_global_declarations): Do not mark undefined
2131 variables as DECL_IGNORED_P.
2132 * varasm.c (first_global_object_name): GTY it.
2133 (weak_global_object_name): Likewise.
2134 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
2135 a string to go into {weak,first}_global_object_name.
2136
1a8d0d41
DD
21372005-07-22 DJ Delorie <dj@redhat.com>
2138
2139 * c-format.c (check_function_format): Change warning control
2140 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
2141
17c7e33e
DN
21422005-07-22 Diego Novillo <dnovillo@redhat.com>
2143
2144 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
2145 &PTR->FLD a dereference of PTR.
2146 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
2147 a potential dereference of PTR.
2148
45002e59
R
21492005-07-22 J"orn Rennecke <joern.rennecke@st.com>
2150
191e1ff2
R
2151 PR rtl-optimization/20370
2152 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
2153 call allocate_reg_info if necessary.
2154
475a3eef
R
2155 PR rtl-optimization/21848
2156 * calls.c (emit_library_call_value_1): For const functions, add
2157 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
2158
29c1846b
R
2159 PR rtl-optimization/22445
2160 * cselib.c (target.h): Include.
2161 (rtx_equal_for_cselib_p): Allow commutative matches.
2162 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
2163 Remove MODE parameter. Changed all callers.
2164
45002e59
R
2165 PR rtl-optimization/22258
2166 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
2167 New functions.
2168 (try_combine): Use likely_spilled_retval_p.
2169
db869733
PW
21702005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
2171
2172 * config.gcc: Add crx-elf support.
2173
2174 * doc/contrib.texi: Mention crx.
2175 * doc/extend.texi: Document crx extensions.
2176 * doc/install.texi: Document crx install.
2177 * doc/invoke.texi: Document crx options.
2178 * doc/md.texi: Document crx constraints.
2179
2180 * config/crx/crx-protos.h: New file.
2181 * config/crx/crx.c: New file.
2182 * config/crx/crx.h: New file.
2183 * config/crx/crx.md: New file.
2184 * config/crx/crx.opt: New file.
2185 * config/crx/t-crx: New file.
7904f95f 2186
32cafd73
MH
21872005-07-22 Manfred Hollstein <mh@suse.com>
2188
2189 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
2190 warnings.
2191 (int_add_graph_edge): Likewise.
2192 (collapse_nodes): Likewise.
2193 (process_unification_queue): Likewise.
2194
ee184c4d 21952005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86979811 2196 Laurent GUERBY <laurent@guerby.net>
ee184c4d 2197
86979811 2198 PR tree-optimization/22336
7904f95f 2199 * function.c (record_block_change): Check for
86979811 2200 cfun->ib_boundaries_block.
7904f95f 2201
b49ceb45
JM
22022005-07-21 James A. Morrison <phython@gcc.gnu.org>
2203
2204 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
2205 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
2206
30c54de9
DD
22072005-07-21 DJ Delorie <dj@redhat.com>
2208
2209 * toplev.c (warn_deprecated_use): Add warning control to warning
2210 call.
c303630a
DD
2211 * c-typeck.c (parser_build_binary_op): Likewise.
2212 (c_finish_if_stmt): Likewise.
30480ec4
DD
2213 * c-common.c (check_function_sentinel): Likewise.
2214 (check_nonnull_arg): Likewise.
30c54de9 2215
95a8c155
RH
22162005-07-21 Richard Henderson <rth@redhat.com>
2217
2218 PR tree-opt/22504
2219 * tree-complex.c (complex_ssa_name_components): New.
2220 (cvc_lookup): Allow entry not found.
2221 (create_components): Remove.
2222 (create_one_component_var, get_component_var): New.
2223 (get_component_ssa_name, set_component_ssa_name): New.
2224 (extract_component): Use get_component_ssa_name.
2225 (update_complex_components): Use set_component_ssa_name.
2226 (update_complex_components_on_edge): Likewise.
2227 (update_phi_components): Create new PHI nodes directly, instead
2228 of adding insns to edges.
2229 (tree_lower_complex): Allocate and free complex_variable_components
2230 and complex_ssa_name_components here.
2231
c05a0766 22322005-07-20 Daniel Berlin <dberlin@dberlin.org>
7904f95f 2233
c05a0766
DB
2234 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
2235 revert to returning false.
2236
de343c8d
UB
22372005-07-21 Uros Bizjak <uros@kss-loka.si>
2238
86979811
SB
2239 PR target/21149
2240 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
de343c8d 2241
5acc26ef
UB
22422005-07-21 Uros Bizjak <uros@kss-loka.si>
2243
2244 PR target/22576
2245 * config/i386/i386.md (cmpxf): Change operand constraints
2246 to "nonmemory_operand".
2247
61cb44fe
AP
22482005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2249
2250 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
2251
e2fe73f6
AP
22522005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2253
2254 PR middle-end/21180
2255 * fold-const.c (fold_build1): Add checksum for the operands.
7904f95f 2256 (fold_build2): Likewise.
e2fe73f6
AP
2257 (fold_build3): Likewise.
2258
9d24eb54
AP
22592005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2260
2261 PR middle-end/19055
2262 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
2263
b2e0afa0
PB
22642005-07-21 Paolo Bonzini <bonzini@gnu.org>
2265
2266 * common.opt (-fforward-propagate): Committed by mistake,
2267 removed.
2268
2e48874f
VR
22692005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2270
2271 * reg-stack.c: Fix comment typo(s).
2272 * tree-ssa-operands.c: Likewise.
2273 * tree-vectorizer: Likewise.
2274
889d8465
NC
22752005-07-21 Nick Clifton <nickc@redhat.com>
2276
2277 * config/sh/symbian.c: Replace C++ style line comments with C
2278 style line comments.
86979811 2279 (symbian_add_attribute): Do not use a ? operator on the LHS of
889d8465 2280 an assignment.
86979811 2281 (sh_symbian_handle_dll_attribute): Change the type of the
889d8465
NC
2282 method vector to "VEC(tree,gc)*" and use vector accessor
2283 macros to walk over the elements.
86979811
SB
2284 (symbian_export_vtable_and_rtti_p): Likewise.
2285 (symbian_class_needs_attribute_p): Likewise.
889d8465 2286
2fab365e
PB
22872005-07-21 Paolo Bonzini <bonzini@gnu.org>
2288
2289 PR target/22085
2290 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
2291 initialize targetm.resolve_overloaded_builtin here.
2292 (altivec_expand_overloaded_builtin): Make it non-static.
2293 * config/rs6000/rs6000-protos.h
2294 (altivec_expand_overloaded_builtin): New prototype.
2295 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
2296 targetm.resolve_overloaded_builtin here.
2297 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
2298
f9cc1a70 22992005-07-21 Paolo Bonzini <bonzini@gnu.org>
86979811 2300 Zdenek Dvorak <dvorakz@suse.cz>
f9cc1a70
PB
2301
2302 PR tree-optimization/19210
2303 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
2304 New.
2305 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
2306 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
2307 rely on unproven assumptions.
2308 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
2309 * tree-flow.h (number_of_iterations_exit): Add final parameter.
2310 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
2311 to number_of_iterations_exit.
2312 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
2313 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
2314 * tree-ssa-loop-niter.c (find_loop_niter,
2315 estimate_numbers_of_iterations_loop): Likewise.
2316 (number_of_iterations_exit): Honor the new options.
2317 * doc/invoke.texi (Wunsafe-loop-optimizations,
2318 funsafe-loop-optimizations): Document them.
2319
cb83c2ec
RS
23202005-07-21 Richard Sandiford <richard@codesourcery.com>
2321
2322 PR rtl-optimization/22167
2323 * gcse.c (hoist_code): Fix hoist_exprs[] check.
2324
5e5cbbfb
AN
23252005-07-20 Adam Nemet <anemet@lnxw.com>
2326
2327 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
2328 __do_global_dtors_aux longcall.
2329
c2acaf06
KH
23302005-07-20 Kazu Hirata <kazu@cs.umass.edu>
2331
2332 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
2333 (old_special_pred_table): Don't reference
2334 SPECIAL_MODE_PREDICATES.
2335 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
2336 * config/arc/arc.h: Don't mention PREDICATE_CODES.
2337 * config/sh/predicates.h: Don't mention
2338 SPECIAL_MODE_PREDICATES.
2339 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
2340 Remove.
2341
38b2d076
DD
23422005-07-20 DJ Delorie <dj@redhat.com>
2343
2344 * config.gcc: Add m32c-elf support.
2345
2346 * doc/contrib.texi: Mention m32c.
2347 * doc/extend.texi: Document m32c extensions.
2348 * doc/install.texi: Mention m32c.
2349 * doc/invoke.texi: Document m32c options.
2350 * doc/md.texi: Document m32c constraints.
2351
2352 * config/m32c/addsub.md: New file.
2353 * config/m32c/bitops.md: New file.
2354 * config/m32c/cond.md: New file.
2355 * config/m32c/jump.md: New file.
2356 * config/m32c/m32c-lib1.S: New file.
2357 * config/m32c/m32c-lib2.c: New file.
2358 * config/m32c/m32c-modes.def: New file.
2359 * config/m32c/m32c-pragma.c: New file.
2360 * config/m32c/m32c-protos.h: New file.
2361 * config/m32c/m32c.abi: New file.
2362 * config/m32c/m32c.c: New file.
2363 * config/m32c/m32c.h: New file.
2364 * config/m32c/m32c.md: New file.
2365 * config/m32c/m32c.opt: New file.
2366 * config/m32c/minmax.md: New file.
2367 * config/m32c/mov.md: New file.
2368 * config/m32c/muldiv.md: New file.
2369 * config/m32c/predicates.md: New file.
2370 * config/m32c/prologue.md: New file.
2371 * config/m32c/shift.md: New file.
2372 * config/m32c/t-m32c: New file.
2373
50b69666
KK
23742005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2375
2376 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2377 (stack_protect_set, stack_protect_test): New expanders.
86979811 2378 (stack_protect_set_si, stack_protect_set_si_media,
50b69666 2379 stack_protect_set_di_media, stack_protect_test_si,
86979811 2380 stack_protect_test_si_media, stack_protect_test_di_media):
50b69666
KK
2381 New insns.
2382
71b50543
AP
23832005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
2384
2385 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
2386
4db8040c
JM
23872005-07-20 James A. Morrison <phython@gcc.gnu.org>
2388
2389 * tree.h (tree_expr_nonzero_p): Export.
2390 * fold-const.c (tree_expr_nonzero_p): Likewise.
2391 Return true for CALL_EXPRs that are alloca calls.
2392 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
2393 against zero.
2394 * tree-flow.h (expr_computes_nonzero): Remove.
2395 * tree-vrp.c (expr_computes_nonzero): Remove.
86979811 2396 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4db8040c
JM
2397 (extract_range_from_unary_expr): Likewise.
2398 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
2399 tree_expr_nonzero_p.
2400
6d459e2b
BS
24012005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
2402
09350e36
BS
2403 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
2404 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
2405 extra arg "picreg" and use it instead of pic_offset_table_rtx.
2406 All callers changed.
2407 (frame_related_constant_load): New arg "related" which controls
2408 setting of RTX_FRAME_RELATED_P. All callers changed.
2409 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
2410 (bfin_expand_prologue): Add stack limit checking.
2411 * config/bfin/bfin.md (trapifcc): New pattern.
2412
05905337
BS
2413 * config/bfin/bfin.c: Include "langhooks.h".
2414 (def_builtin): Go through lang_hooks to call builtin_function.
2415
6d459e2b
BS
2416 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
2417 * config/bfin/predicates.md (symbol_ref_operand): New.
2418 (call_insn_operand): Delete. All callers changed to use
2419 register_no_elim_operand.
2420 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
2421 call_cookie field.
2422 (function_arg): Use it to generate the call's operand 2.
2423 (bfin_longcall_p): New function.
2424 (bfin_expand_call): Extra arg "cookie". All callers and declaration
2425 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
2426 determine if the address needs to be in a REG.
2427 (bfin_handle_longcall_attribute): New function.
2428 (bfin_attribute_table): Add "longcall" and "shortcall".
2429 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
2430 (CUMULATIVE_ARGS): New member call_cookie.
2431 (PREDICATE_CODES): Add symbol_ref_operand.
2432 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
2433 extra USE to the pattern.
2434 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
2435 New patterns, split off call_insn, sibcall_insn, call_value_insn and
2436 sibcall_value_insn; now the new patterns handle direct calls and the
2437 old ones indirect calls.
2438 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
2439
67135ef4
ZD
24402005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
2441
2442 * doc/trouble.texi: Update section on handling of empty loops.
2443
fdda361d
KH
24442005-07-20 Kazu Hirata <kazu@codesourcery.com>
2445
2446 * config.gcc: Remove support for sparc-*-openbsd*,
2447 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
2448 ns32k-*-netbsd*.
2449 * config.host: Remove support for i860-*-sysv4* as a host.
2450 * config/i860/*, config/ip2k/*, config/ns32k/*,
2451 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
2452 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
2453 mention obsolete ports.
2454
96a2347e
KK
24552005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2456
2457 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
2458 soft frame pointer.
2459 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
2460 of frame_pointer_rtx.
2461 (sh_expand_epilogue): Likewise.
2462 (sh_set_return_address): Likewise.
2463 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
2464 instead of FRAME_POINTER_REGNUM if needed. Add elimination
2465 offsets from FRAME_POINTER_REGNUM.
2466 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
2467 (sh_register_names): Add initializer for sfp.
2468 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
2469 (VALID_REGISTER_P): Likewise.
2470 (FIRST_PSEUDO_REGISTER): Update.
2471 (DWARF_FRAME_REGISTERS): Define.
2472 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
2473 (HARD_FRAME_POINTER_REGNUM): Define.
2474 (FRAME_POINTER_REGNUM): Redefine.
2475 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
2476 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
2477 from FRAME_POINTER_REGNUM.
2478 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
2479 FRAME_POINTER_REGNUM.
2480 (REG_CLASS_CONTENTS): Add sfp.
2481 (REG_ALLOC_ORDER): Likewise.
2482 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
2483 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
2484 of frame_pointer_rtx.
2485 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2486
1ade5842
JM
24872005-07-19 James A. Morrison <phython@gcc.gnu.org>
2488
2489 * fold-const.c (tree_expr_nonnegative_p): Only return true for
2490 ABS_EXPR when flag_wrapv is false because of INT_MIN.
2491 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
2492 of an ABS_EXPR.
2493 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
2494 ABS_EXPR<x>.
2495
4038c495
GB
24962005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2497
2498 Make CONSTRUCTOR use VEC to store initializers.
2499 * c-common.c (complete_array_type): Update to cope with VEC in
2500 CONSTRUCTOR_ELTS.
2501 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
2502 (pp_c_constructor_elts): New function.
2503 * c-pretty-print.h (pp_c_constructor_elts): Declare.
2504 * c-typeck.c (build_function_call, build_c_cast, digest_init,
2505 struct constructor_stack, struct initializer_stack,
2506 constructor_elements, push_init_level, pop_init_level,
2507 add_pending_init, find_init_member, output_init_element): Update to
2508 cope with VEC in CONSTRUCTOR_ELTS.
2509 * coverage.c (build_fn_info_value, build_ctr_info_value,
2510 build_gcov_info): Likewise.
2511 * expr.c (categorize_ctor_elements_1, store_constructor,
2512 expand_expr_real_1): Likewise.
2513 * fold-const.c (fold_ternary): Likewise.
2514 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
2515 gimplify_init_constructor, gimplify_expr): Likewise.
2516 * tree-dump.c (dequeue_and_dump): Likewise.
2517 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
2518 node.
2519 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
2520 CONSTRUCTOR_ELTS.
2521 * tree-sra.c (generate_element_init_1): Likewise.
2522 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2523 * tree-ssa-operands.c (get_expr_operands): Likewise.
2524 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2525 * tree-vect-transform.c (vect_get_vec_def_for_operand):
2526 (get_initial_def_for_reduction): Likewise.
2527 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
2528 value handle in annotations.
2529 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
2530 tree_node_structure): Add support for constr_kind.
2531 (build_vector_from_ctor, build_constructor_single,
2532 build_constructor_from_list): New functions.
2533 (build_constructor): Update to take a VEC instead of a TREE_LIST.
2534 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
2535 Update to cope with VEC in CONSTRUCTOR_ELTS.
2536 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
2537 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
2538 CONSTRUCTOR_APPEND_ELT): New macros.
2539 (struct constructor_elt, struct tree_constructor): New data types.
2540 (union tree_node): Add tree_constructor field.
2541 * treestruct.def: Define TS_CONSTRUCTOR.
2542 * varasm.c (const_hash_1, compare_constant, copy_constant,
2543 compute_reloc_for_constant, output_addressed_constants,
2544 initializer_constant_valid_p, output_constant,
2545 array_size_for_constructor, output_constructor): Update to cope with
2546 VEC in CONSTRUCTOR_ELTS.
2547 * vec.h (VEC_empty, VEC_copy): New macros.
2548
f37d7c60
DP
25492005-07-19 Devang Patel <dpatel@apple.com>
2550
2551 * dbxout.c (dbxout_type): Check Objective-C++ lang.
7904f95f 2552
af62f6f9
RH
25532005-07-19 Richard Henderson <rth@redhat.com>
2554
2555 PR tree-opt/22278
2556 * gimplify.c (gimplify_expr): Use main variant type for the temp
2557 destination for a discarded volatile read.
2558 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
2559 casts between non-void types that change volatility.
2560
b9b8dde3
DD
25612005-07-15 DJ Delorie <dj@redhat.com>
2562
2563 * toplev.h: Add comment about the first parameter for warning().
2564 * errors.h: Likewise.
2565
2566 * c.opt (Wpragmas): New.
2567 * doc/invoke.texi: Document it.
7904f95f 2568
b9b8dde3
DD
2569 * function.c (do_warn_unused_parameter): Add warning control to
2570 warning call.
2571 * c-decl.c (warn_if_shadowing): Likewise.
2572 * c-lex.c (cb_def_pragma): Likewise.
2573 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2574 (pop_alignment): Likewise.
2575 (handle_pragma_pack): Likewise.
2576 (apply_pragma_weak): Likewise.
2577 (handle_pragma_weak): Likewise.
2578 (handle_pragma_redefine_extname): Likewise.
2579 (add_to_renaming_pragma_list): Likewise.
2580 (handle_pragma_extern_prefix): Likewise.
2581 (maybe_apply_renaming_pragma): Likewise.
2582 (handle_pragma_visibility): Likewise.
7904f95f 2583
b9b8dde3
DD
2584 * config/c4x/c4x-c.c (BAD): Likewise.
2585 (c4x_parse_pragma): Likewise.
2586 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
2587 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2588 (rs6000_pragma_longcall): Likewise.
2589 * config/v850/v850-c.c (pop_data_area): Likewise.
2590 (ghs_pragma_section): Likewise.
2591 (ghs_pragma_section): Likewise.
2592 (ghs_pragma_interrupt): Likewise.
2593 (ghs_pragma_starttda): Likewise.
2594 (ghs_pragma_startsda): Likewise.
2595 (ghs_pragma_startzda): Likewise.
2596 (ghs_pragma_endtda): Likewise.
2597 (ghs_pragma_endsda): Likewise.
2598 (ghs_pragma_endzda): Likewise.
2599
6a9a79a8
DB
26002005-07-19 Danny Berlin <dberlin@dberlin.org>
2601 Kenneth Zadeck <zadeck@naturalbridge.com>
2602
2603 * Makefile.in: Removed tree-promote-statics.c
2604 * tree-promote-statics.c: Removed.
2605 * common.opt: Removed flag-promote-statics.
2606 * opts.c: Ditto.
7904f95f 2607 * passes.c: Removed tree-promote-statics pass.
6a9a79a8
DB
2608 * tree-pass.h: Ditto.
2609 * timevar.def: Removed TV_PROMOTE_STATICS.
2610
2611
0219cf3d
GP
26122005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
2613
2614 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
2615 and *-*-freebsd9.
2616 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
7904f95f 2617
7876a414
KG
26182005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2619
2620 PR c/22476
2621 * c-common.c (check_function_arguments): Call
2622 'check_function_format' if either -Wformat or
2623 -Wmissing-format-attribute are specified.
2624 * c-format.c (check_function_format): Check -Wformat before
2625 calling 'check_format_info'.
2626 * c-opts.c (c_common_post_options): Don't warn for
2627 -Wmissing-format-attribute without -Wformat.
2628 * c-typeck.c (convert_for_assignment): Detect additional cases for
2629 -Wmissing-format-attribute.
2630 * doc/invoke.texi (-Wmissing-format-attribute): Document new
2631 behavior.
2632
98ea7437
RG
26332005-07-19 Richard Guenther <rguenther@suse.de>
2634
2635 * config/i386/i386.md (lrint<mode>2): Use temporary
2636 instead of clobbering non-existent memory.
2637
89a0b917
NC
26382005-07-19 Nick Clifton <nickc@redhat.com>
2639
2640 * config/avr/avr.c (legitimate_address_p): Fix debugging print
2641 statement to avoid displaying ASCII control characters.
2642
dfea6c85
BE
26432005-07-19 Ben Elliston <bje@au.ibm.com>
2644
2645 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
2646 * cfganal.c (find_edge_index): Ditto.
2647 * combine.c (combine_instructions): Ditto.
2648 * ddg.c (create_scc): Ditto.
2649 (find_successors): Ditto.
2650 (find_predecessors): Ditto.
2651 (find_nodes_on_paths): Ditto.
2652 (longest_simple_path): Ditto.
2653 * flow.c (update_life_info): Ditto.
2654 (count_or_remove_death_notes): Ditto.
2655 (clear_log_links): Ditto.
2656 * modulo-sched.c (generate_reg_moves): Ditto.
2657 (find_max_asap): Ditto.
2658 (find_max_hv_min_mob): Ditto.
2659 (find_max_dv_min_mob): Ditto.
2660 * sbitmap.c (sbitmap_first_set_bit): Ditto.
2661 * sched-rgn.c (extract_edgelst): Ditto.
2662 * tree-into-ssa.c (prepare_names_to_update): Ditto.
2663 (dump_update_ssa): Ditto.
2664 (ssa_names_to_replace) Ditto.
2665 (switch_virtuals_to_full_rewrite): Ditto.
2666 (update_ssa): Ditto.
2667 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2668
b9d33488
DB
26692005-07-18 Daniel Berlin <dberlin@dberlin.org>
2670
2671 Fix PR tree-optimization/22483
7904f95f 2672
b9d33488
DB
2673 * tree-complex.c (create_components): Use
2674 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
2675 * tree-flow-inline.h (fill_referenced_var_vec): New function.
2676 * tree-flow.h (safe_referenced_var_iterator): New structure.
2677 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
2678 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
2679 safe_referenced_var iterator.
2680 (add_type_alias): Ditto.
2681
9fa26457
SB
26822005-07-19 Steven Bosscher <stevenb@suse.de>
2683
2684 * loop-init.c (rest_of_handle_loop2): Remove.
2685 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
2686 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
2687 (pass_rtl_loop_init, pass_rtl_loop_done,
2688 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
2689 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
2690 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
2691 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
2692 pass_tree_loop_done, and pass_tree_unswitch.
2693 (gate_loop): Rename to gate_tree_loop.
2694 * passes.c (init_optimization_passes): Update for renamed tree
2695 loop passes. Add the new loop2 passes as subpasses of loop2.
2696 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
2697 Update for the renamed tree loop passes.
2698
7825308e
ILT
26992005-07-18 Ian Lance Taylor <ian@airs.com>
2700
2701 PR middle-end/22057
2702 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
2703 blocks when optimizing.
2704
2928d0f8
SE
27052005-07-18 Steve Ellcey <sje@cup.hp.com>
2706
2707 * common.opt (frename-registers): Initialize to 2.
2708 (fweb): Ditto.
2709 (fgcse-after-reload): Ditto.
2710 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
2711 (process_options): Only change flag_web, flag_rename_registers,
2712 and flag_rerun_cse_after_loop if not explicitly set by user.
2713
28356f52
JB
27142005-07-18 Jan Beulich <jbeulich@novell.com>
2715
2716 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
2717 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
2718 in 64-bit mode the same as DImode in 32-bit mode.
2719 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
2720 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
7904f95f 2721 mode. Add new mode parameter.
28356f52
JB
2722 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
2723 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
2724 x86_64_shift_adj): New expanders.
2725 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
2726 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
2727 insns.
2728 Respective new splitters. Use renamed shift splitter helpers in 32-bit
2729 DImode shift splitters.
2730 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
2731 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
2732 mode parameter.
2733
422edd6f
JB
27342005-07-18 Jan Beulich <jbeulich@novell.com>
2735
2736 * i386.md (movdi_extzv_1): New.
2737 (zero_extendhidi2): Combine alternatives and never force use of
2738 REX64 prefix.
2739 (zero_extendqidi2): Likewise. Don't restrict input selection.
2740
c625053b
DB
27412005-07-17 Daniel Berlin <dberlin@dberlin.org>
2742
2743 Fix PR tree-optimization/22531
2744 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
2745 moment.
2746
3b1355f3
DB
27472005-07-17 Daniel Berlin <dberlin@dberlin.org>
2748
2749 * tree-promote-statics.c (pass_promote_statics): Change dump file
2750 name.
2751
27522005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
2753
2754 * tree-optimize.c (init_tree_optimization_passes): Add
2755 pass_eliminate_useless_stores pass.
2756 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
2757 * tree-ssa-pre.c (is_copy_stmt): New function.
2758 (follow_copies_till_vuse): Ditto.
2759 (do_eustores): Ditto.
7904f95f
EC
2760 (gate_eustores): Ditto.
2761
7544a87f
RH
27622005-07-16 Richard Henderson <rth@redhat.com>
2763
2764 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
2765
bf0d50f1
KZ
27662005-07-16 Danny Berlin <dberlin@dberlin.org>
2767 Kenneth Zadeck <zadeck@naturalbridge.com>
2768
2769 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
2770 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
2771 ipa-type-escape.h, tree-promote-statics.c
2772 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
7904f95f 2773 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
bf0d50f1
KZ
2774 tree-promote-statics.c: new files.
2775 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
2776 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
2777 int nonlocal_set_p, mark_constant_function): Deleted.
7904f95f 2778 (rest_of_handle_cfg): Removed call to mark_constant_function.
86979811 2779 (nonoverlapping_component_refs_p): Added calls to support
7904f95f 2780 type based aliasing.
86979811 2781 * tree-ssa-alias.c (may_alias_p,
bf0d50f1
KZ
2782 compute_flow_insensitive_aliasing): Ditto.
2783 * calls.c (flags_from_decl_or_type): Removed reference to
7904f95f 2784 cgraph_rtl_info.
86979811 2785 * c-typeck.c (convert_arguments): Make builtins tolerant of having
bf0d50f1
KZ
2786 too many arguments. This is necessary for Spec 2000.
2787 * cgraph.h (const_function, pure_function): Removed.
7904f95f 2788 * common.opt: Added "fipa-pure-const", "fipa-reference",
bf0d50f1
KZ
2789 "fipa-type-escape", and "ftree-promote-static".
2790 * opts.c: Ditto.
7904f95f 2791 * passes.c: Added ipa and tree-promote-statics passes.
bf0d50f1
KZ
2792 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
2793 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1 2794 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
7904f95f 2795 * tree-flow.h: Added exposed sra calls and addition of
bf0d50f1
KZ
2796 reference_vars_info field for FUNCTION_DECLS.
2797 * tree-pass.h: Added passes.
2798 * tree-sra.c: (sra_init_cache): New function.
2799 (sra_insert_before, sra_insert_after) Made public.
2800 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
2801 and made public.
2802 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
2803 aliasing. (may_alias_p): Added code to use type escape analysis to
2804 improve alias sets.
2805 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
2806 code to prune clobbers of static variables based on information
2807 produced in ipa-reference pass. Changed call clobbering so that
2808 statics are not marked as clobbered if the call does not clobber
2809 them.
2810
b6e0bdbd
DB
28112005-07-16 Daniel Berlin <dberlin@dberlin.org>
2812
2813 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
2814 too.
2815
2c00bd42
EB
28162005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2817
2818 * doc/install.texi (*-*-solaris2*): Document recommended version
2819 of GNU binutils and mention GNU linker problem on Solaris 10.
2820
0b359b01
JM
28212005-07-16 Joseph S. Myers <joseph@codesourcery.com>
2822
2823 PR c/22421
2824 * c-decl.c (c_build_bitfield_integer_type): New function.
2825 (finish_struct): Call it.
2826 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
2827
8fcef540
KG
28282005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2829
2830 * c-typeck.c (digest_init): Call 'convert_for_assignment'
2831 before returning.
2832
84fc24e8
JH
28332005-07-16 Jan Hubicka <jh@suse.cz>
2834
2835 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2836 (scale_bbs_frequencies_int): Watch roundoff errors.
2837 * predict.c (return_prediction): Initialize return_stmt.
2838
3258272f
JH
28392005-07-16 Jan Hubicka <jh@suse.cz>
2840
2841 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2842 after RTL profiling.
2843
01c0a9fa
AP
28442005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2845
2846 PR middle-end/22398
2847 * fold-const.c (build_range_check): Convert high/low to etype
2848 if we are only comparing against exp.
2849
27811bfe
DB
28502005-07-13 Daniel Berlin <dberlin@dberlin.org>
2851
2852 Fix PR tree-optimization/22376
2853 * tree-ssa-structalias.c (build_constraint_graph): We really meant
2854 special var here.
2855 (need_to_solve): New function.
2856 (compute_points_to_sets): Use it.
7904f95f 2857
2b151cb2
JH
28582005-07-15 Jan Hubicka <jh@suse.cz>
2859
2860 * cfg.c (update_bb_profile_for_threading): More diagnostic.
2861 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2862
0691d1d4
RG
28632005-07-15 Richard Guenther <rguenther@suse.de>
2864
2865 * c-common.c (handle_flatten_attribute): New function.
2866 Add flatten function attribute.
2867 * doc/extend.texi: Document flatten function attribute.
2868 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2869 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2870 New functions.
2871 (cgraph_decide_inlining): Handle functions with flatten
2872 attribute.
2873
9f0076e5
DE
28742005-07-14 David Edelsohn <edelsohn@gnu.org>
2875
2876 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2877 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2878 UNSPEC_XCHG, UNSPEC_AND): New.
2879 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2880 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2881 * config/rs6000/sync.md (FETCHOP): New code macro.
2882 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2883 New code attrs.
2884 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2885 (sync_compare_and_swap<mode>): Same.
2886 (sync_lock_test_and_set<mode>): Same.
2887 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2888 for QImode and HImode, and not PPC405.
2889 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2890 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2891 (sync_<fetchop>{si,di}_internal): New.
2892 (sync_nand{si,di}_internal): New.
2893 (sync_old_<fetchop>{si,di}_internal): New.
2894 (sync_old_nand{si,di}_internal): New
2895 (sync_new_<fetchop>{si,di}_internal): New.
2896 (sync_new_nand{si,di}_internal): New.
2897 (atomic_and{si,di}): New.
2898 (sync_new_nand{si,di}_internal): New.
2899 (atomic_and{si,di}): New.
2900 (sync_add<mode>_internal): Delete.
2901 (sync_addshort_internal): Use unspec instead of unspec_volatile.
2902 (sync_sub<mode>_internal): Delte.
2903 (sync_subshort_internal): New.
2904 (sync_andsi_internal): Use unspec instead of unspec_volatile.
2905 (sync_anddi_internal): Delete.
2906 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2907 (sync_booldi_internal): Delete.
2908 (sync_boolc<mode>_internal): Delete.
2909 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2910 (sync_boolc<mode>_internal2): Delete.
2911 (sync_boolcc<mode>_internal): Delete.
2912 (isync, lwsync): Use unspec instead of unspec_volatile.
2913 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2914 Revert UNSPEC_VOLATILE.
2915 (rs6000_split_atomic_op): New.
2916 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2917
06277571
EC
29182005-07-14 Eric Christopher <echristo@redhat.com>
2919
2920 * config/mips/mips.c (mips_canonicalize_comparison): Cast
2921 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2922
b838c72b
EC
29232005-07-14 Eric Christopher <echristo@redhat.com>
2924
2925 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2926
3c341936
SB
29272005-07-14 Steven Bosscher <stevenb@suse.de>
2928
2929 PR tree-optimization/22230
2930 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2931 the computation of the four cross productions for "range op range".
2932
704b6cb5 29332005-07-14 Alexandre Oliva <aoliva@redhat.com>
86979811 2934 Ulrich Weigand <uweigand@de.ibm.com>
704b6cb5
AO
2935
2936 PR target/20126
2937 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2938 in some insn.
2939
a771c4b3
UW
29402005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2941
2942 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2943
6f3113ed
SE
29442005-07-14 Steve Ellcey <sje@cup.hp.com>
2945
2946 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2947
cb1119b7
RG
29482005-07-14 Richard Guenther <rguenther@suse.de>
2949
2950 PR middle-end/22347
2951 * config/i386/i386-protos.h (ix86_function_value): Change
2952 prototype to match new target hook.
2953 * config/i386/i386.c (ix86_value_regno): Change prototype
2954 to take extra type argument.
2955 (TARGET_FUNCTION_VALUE): Define.
2956 (ix86_function_ok_for_sibcall): Pass extra argument to
2957 ix86_value_regno, check return slot rtx for exact match.
2958 (ix86_function_value): Take extra parameter. Dispatch to
2959 ix86_value_regno with fndecl/fntype as provided.
2960 (ix86_value_regno): Handle extra type argument.
2961 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2962
2963 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2964 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2965 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2966 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2967 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2968
1d636cc6
RG
29692005-07-14 Richard Guenther <rguenther@suse.de>
2970
2971 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2972 * calls.c (expand_call): Pass fntype to hard_function_value.
2973 (emit_library_call_value_1): Likewise.
2974 * explow.c: Include target.h.
2975 (hard_function_value): Take extra argument, the fntype.
2976 Use new target hook for function_value.
2977 * expr.h (hard_function_value): Change prototype.
2978 * function.c (aggregate_value_p): Pass 0 as fntype to
2979 hard_function_value.
2980 (assign_parms): Use new target hook for function_value.
2981 Pass 0 as fntype to hard_function_value.
2982 (expand_function_end): Likewise.
2983 * reg-stack.c: Include target.h.
2984 (stack_result): Use new target hook for function_value.
2985 * target-def.h: New target hook function_value.
2986 * target.h: Likewise.
2987 * targhooks.c (default_function_value): New function.
2988 * targhooks.h (default_function_value): Declare.
2989
09d8cc0e
ILT
29902005-07-13 Ian Lance Taylor <ian@airs.com>
2991
2992 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2993
df1f6f31
JH
29942005-07-14 Jan Hubicka <jh@suse.cz>
2995
2996 * tree-dfa.c (dump_variable): Use default_def function.
2997 * tree-ssa-alias.c (dump_points_to_info): Likewise.
2998 * tree-ssa.c (verify_use): Likewise.
2999 * tree-ssanames.c (release_ssa_name): Likewise.
3000 * tree-tailcall.c (eliminate_tail_call): Likewise.
3001 (tree_optimize_tail_calls_1): Likewise.
3002 * tree-vrp.c (get_value_range): Likewise.
3003
9ef0b1bd
BE
30042005-07-14 Ben Elliston <bje@au.ibm.com>
3005
3006 * gcc.c (main): Compare language[0] with '*' when iterating over
3007 the infiles.
3008
69950452
AS
3009