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